/*
Theme Name: NOHSA Website Theme
Author: Heron Design
Author URI: https://www.heronco.com
Tags: full-site-editing, editor-style, block-styles, block-patterns
Text Domain: nohsa
Requires at least: 6.3
Requires PHP: 7.4
Version: 2.2.0
License: Proprietary - For NOHSA website only


Description: Dynamic block theme for the NOHSA website with configurable style personalities
*/

/* ==========================================================================
   BASE STYLES (Static)
   ========================================================================== */

   html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/** Let's keep font sizes consistent, shall we? **/
html {
  font-size: 100%;                 /* keep user preferences = ~16px */
  -webkit-text-size-adjust: 100%;  /* avoid iOS font boosting */
  text-size-adjust: 100%;
}
body { font-size: 1rem; line-height: 1.4; }

.entry-content p,
.entry-content li { font-size: 1rem; }

.wp-block-details p,
.wp-block-details li { font-size: 1rem; }

h1, h2, h3, h4, h5 {line-height:1.05}

/* ==========================================================================
   CONTENT STRUCTURE (Static)
   ========================================================================== */

/* Ensure the footer sticks to the bottom */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-site-blocks > main {
    margin-block-start: 0 !important;
}

.site-footer {
margin-top: auto;
}

.wp-site-blocks .wp-block-post-content {
	margin-block-start: 0;
}

.wp-block-post-content p,
.wp-block-post-content ul li {
	margin-block-start: 0;
	font-size: 1rem;
	padding: 0.5em 0;
}

h2.has-reg-font-weight, h3.has-reg-font-weight {
	font-weight: 400;
}

body.welcome .wp-block-cover.hero, body.home .wp-block-cover.hero {
    min-height:586px !important;
}

.points-table table td:first-child, .points-table table th {background:var(--wp--preset--color--gold);color:var(--wp--preset--color--white)}

.points-table table td:first-child {width:130px}
.points-table.points-table thead {border-bottom:none}

/* Center page titles to line up with form-page content 
.page-template-wp-custom-template-form-page 
main.wp-block-group.is-style-content-width > .wp-block-post-title {
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
} */

/* ==========================================================================
   HEADER -for logo overlay (Static)
   ========================================================================== */

.wp-block-site-logo {z-index:999}

.header-logo-spacer {position:absolute;top:77px}
.header-container {min-height:120px}


/* ==========================================================================
   MEDIA & IMAGES (Static structure)
   Note: Border radius styles moved to registered-block-styles.css
   ========================================================================== */

.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
	margin: 0 1em;
}

.wp-block-media-text__content p {
	padding: 0;
	margin-top: 1em;
}

.wp-block-media-text.text-has-0-padding-mobile .wp-block-media-text__content {
	padding: 0;
}
.rotate2 img { transform: rotate(2deg); }
.rotate-2 img { transform: rotate(-2deg); }
.rotate3 img { transform: rotate(3deg); }
.rotate-3 img { transform: rotate(-3deg); }
.rotate4 img { transform: rotate(4deg); }
.bring-to-front {z-index:888}


/* ==========================================================================
   UTILITY CLASSES (Static)
   ========================================================================== */

.wide-button {
	padding-left: 3.5em;
	padding-right: 3.5em;
}

.text-has-shadow, .has-text-shadow { /* because I keep getting them mixed up */
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.67);
}

.has-padding-0 {
	padding: 0 !important;
}

.align-items-end {
	align-items: end !important;
}

.full-width {width:100% !important}

/* ==========================================================================
   COVER BLOCKS (Static)
   ========================================================================== */

.cover-hero {
	min-height: 700px;
}

.wp-block-cover .wp-block-cover__inner-container .wp-block-column.more {
	flex-basis: 116px;
	max-width: 116px;
}

.wp-block-cover .wp-block-cover__inner-container .wp-block-column.more h2 {
	max-width: 100%;
}

.wp-block-cover .wp-block-cover__inner-container .more-container {
	margin: 0;
	padding: 0;
}

.wp-block-cover.has-custom-content-position.is-position-top-left.inner-is-centered
	.wp-block-cover__inner-container {
	margin: 0 auto;
}

.wp-block-cover.inner-background-none .wp-block-cover__inner-container {
	background: none;
	padding: unset;
}

.wp-block-cover .wp-block-cover__inner-container h2.wp-block-heading {
	padding: 0;
}

.show-overflow {overflow:visible}

h1.wp-block-header.has-reey-font-family {margin-bottom:.25em}

@media screen and (min-width: 780px) { 
   h1.wp-block-header.has-reey-font-family {margin-bottom:.5em}
}

body.cinch-horsemanship-partner-shows .nohsa-embed-wrapper, .nohsa-embed-wrapper {height:850px}

h1.block-heading.has-text-shadow.has-reey-font-family {    margin-left: -12px;
    padding-top: 1em;
    font-size: 5em;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1px;
}

@media only screen and (max-width: 600px) {
body.cinch-horsemanship-partner-shows .nohsa-embed-wrapper, .nohsa-embed-wrapper {height:600px}

h1.block-heading.has-text-shadow.has-reey-font-family {text-align:left;font-size:3rem;margin-left:10px}
.world-show-logo img {max-width:160px}
.wp-block.cover h2.wp-block-heading {fonts-size:1.25rem}
.hide-on-mobile {display:none}
}

/* ==========================================================================
   COGNITO FORMS
   ========================================================================== */

body.partner-membership form.cog-cognito section.cog-section.cog-col.cog-col--24.cog-section--heading.cog-field--102, body.exhibitor-registration form.cog-cognito section.cog-section.cog-col.cog-col--24.cog-section--heading.cog-field--369 {border: solid 1.5px var(--wp--preset--color--gold);
    border-radius: 8px;
    padding: 1em;
    background: rgba(234, 162, 65, .05);}
    
/*** Membership Registration forms ***/

#member-registration-form form.cog-form, #partner-registration-form form.cog-form, {
        margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Target the specific label containing the 'Search' input */
#member-registration-form .el-radio:has(input[value="Search"]), #partner-registration-form .el-radio:has(input[value="SEARCH"])  {
  border: 2px solid var(--wp--preset--color--gold);
  background-color: var(--wp--preset--color--gold);
  font-weight:700;
  text-transform:uppercase;
}

#member-registration-form section.cog-field--73 fieldset.cog-choice--singleselectcards, #partner-registration-form section.cog-field--23 fieldset.cog-choice--singleselectcards {
    margin-top:30px;
}

#member-registration-form section.cog-field--73 .cog-section__inner .cog-row, #partner-registration-form section.cog-field--23 .cog-section__inner .cog-row {
    align-items:center;
}

#member-registration-form button.cog-button--primary, #member-registration-form button.cog-button--secondary, #partner-registration-form button.cog-button--primary, #partner-registration-form button.cog-button--secondary {
    font-size:20px;
    text-transform:uppercase;
    font-weight:700;
}

#member-registration-form section.cog-col--24 .cog-section__inner .cog-row:nth-child(7), #member-registration-form section.cog-col--24 .cog-section__inner .cog-row:nth-child(9), #member-registration-form section.cog-col--24 .cog-section__inner .cog-row:nth-child(11), #member-registration-form section.cog-col--24 .cog-section__inner .cog-row:nth-child(14), #partner-registration-form section.cog-col--23 .cog-section__inner .cog-row:nth-child(9), #partner-registration-form section.cog-col--23 .cog-section__inner .cog-row:nth-child(11), #partner-registration-form section.cog-col--23 .cog-section__inner .cog-row:nth-child(12), #partner-registration-form section.cog-col--23 .cog-section__inner .cog-row:nth-child(7) {
    border-top:solid 1px var(--wp--preset--color--gold);
}

#member-registration-form section.cog-field--4 .cog-col--24 h3, #partner-registration-form section.cog-field--4 .cog-col--24 h3 {
    color:var(--wp--preset--color--red);
}

#member-registration-form header.cog-header, #partner-registration-form header.cog-header {
    display:none;
}

#member-registration-form .cog-form__container, #partner-registration-form .cog-form__container {
    max-width:100%;
}
.min-height-960 {
    min-height:960px;
}
.min-height-1360 {
    min-height:1360px;
}

/** BUTTONS **/

button.nohsa-choice.cta-minor {
    font-size:16px;
    outline:none;
    border:solid 2px var(--wp--preset--color--red);
    color: var(--wp--preset--color--red);
    background:white;
    margin: 1em .5em;
    padding: .75em 2em;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

button.nohsa-choice.cta-minor.is-style-blue {
    border:solid 2px var(--wp--preset--color--blue);
    color: var(--wp--preset--color--blue); 
}

button.nohsa-choice.cta-minor.is-style-gold {
    border:solid 2px var(--wp--preset--color--gold);
    color: var(--wp--preset--color--gold); 
}
button.nohsa-choice.cta-minor:hover, button.nohsa-choice.cta-minor:focus {
    background:var(--wp--preset--color--red);
    color:white;
}
button.nohsa-choice.cta-minor.is-style-gold:hover, button.nohsa-choice.cta-minor.is-style-gold:focus {
    background:var(--wp--preset--color--gold);
}

button.nohsa-choice.cta-minor.is-style-blue:hover, button.nohsa-choice.cta-minor.is-style-blue:focus {
    background:var(--wp--preset--color--blue);
}
/* ==========================================================================
   RESPONSIVE - DESKTOP
   ========================================================================== */

.show-on-mobile,
.show-on-desktop,
.show-on-tablet {
	display: none !important;
}

@media screen and (min-width: 900px) {
	.show-on-desktop {
		display: flex !important;
	}
	.hide-on-desktop {display:none}
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media screen and (min-width: 601px) and (max-width: 899px) {
	.show-on-tablet {
		display: flex !important;
	}
	.hide-on-tablet {display:none}
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media screen and (max-width: 600px) {
	.show-on-mobile {
		display: flex !important;
	}

	ol,
	ul {
		font-size: 1rem;
	}

	.wp-block-post-title {
		padding: 0.5em;
	}

	footer h3.wp-block-heading {
		font-size: 1rem;
		line-height: 1.1;
		margin: 0;
	}
	
	

	.wp-block-post-content p,
	.wp-block-post-content ul li {
		font-size: 1rem;
		line-height: 1.15;
		margin: 0.5em;
		padding-top:0;
		padding-bottom:0;
	}

	.wp-block-post-content p.has-padding-1em {
		padding-left: 1em;
		padding-right: 1em;
	}

	.wp-block-button a.wp-block-button__link {
		font-size: 1.25rem !important;
	}

	/* Cover overlay adjustments for mobile */
	body.home .wp-block-cover.hero .wp-block-cover__inner-container {
		position: absolute;
		bottom: 55px;
		background: rgba(255, 255, 255, 0);
		padding-bottom: 20px;
		padding-top: 15px;
		width:100%;
	}
	
	body.home .wp-block-cover.hero .wp-block-cover__inner-container h1 {
	    color:var(--wp--preset--color--white) !important;
	    text-shadow: 2px 2px 2px rgba(0,0,0,0.52);
	}
	
	body.home .wp-block-group.hover-blocks-container {flex-wrap:wrap}
	
	body.home .wp-block-cover.is-style-nohsa-hover-reveal {width:100%}
	
	h1.wp-block-heading.how-to-compete, h1.wp-block-heading.year-end-awards {text-align:left}
	h1.wp-block-heading.year-end-awards {line-height:1.6;margin-bottom:-4px;margin-left:.75rem;}
	h1.wp-block-heading.how-to-compete span.second-line {padding-left:4rem}
	h1.wp-block-heading.year-end-awards span.second-line {padding-left:2rem}

    .wp-block-buttons.cinch-header-buttons .wp-block-button__link {width:43vw; margin:0;font-size:.875rem !important;}

	.wp-block-cover.inner-background-none .wp-block-cover__inner-container {
		background: none;
		padding: unset;
	}

	.wp-block-cover .wp-block-cover__inner-container .wp-block-column.more {
		flex-basis: 84px;
		max-width: 84px;
	}

	.wp-block-cover .wp-block-cover__inner-container .more-container {
		margin-left: -36px !important;
	}

	.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
		margin: 0 1em;
	}

	.wp-block-group.is-vertical h2.wp-block-heading {
		padding: 0.5em 2.25em;
	}

	.wp-block-media-text__content p {
		padding: 0;
		margin-top: 1em;
	}

	.wide-button {
		padding-left: 2.5em;
		padding-right: 2.5em;
	}
}

/* ==========================================================================
   ADDITIONAL UTILITY CLASSES (Static)
   ========================================================================== */

.wp-block-group.has-240px-top-padding {
	padding-top: 240px;
}

.wp-block-details summary {
	font-size: 1.25rem;
	margin-bottom:6px;
}

ol,
ul {
	font-size: 1rem;
}

.wp-block-group.is-vertical h2.wp-block-heading {
	padding: 0;
}

ul.nohsa-class-list {column-count: 2;column-gap: 2em}

table.first-col-25 {
  table-layout: fixed;
  width: 100%;
}

.first-col-25 table th:first-child,
.first-col-25 table td:first-child {
  width: 28%;
}

.point-system table {border-collapse:collapse;text-align:center;width:100%;border:2px solid #eaa241;}
    .point-system table th {background-color:var(--wp--preset--color--gold);background-color:#eaa241;color:#ffffff;font-weight:700;padding:12px 8px;border:1px solid #ffffff}
	.point-system table th.label {min-width:12%}
    .point-system table td {border:1px solid #eaa241;padding:12px 8px}
    td.gray {background-color:#eaa241;opacity: 30%;}
	
/* ==========================================================================
   BLOCK-SPECIFIC OVERRIDES (Static)
   ========================================================================== */

/* Latest Comments */
.wp-block-latest-comments {
	padding-left: 0;
}

/* Page break before utility */
.page-break-before {
	page-break-before: always;
}