/*
Theme Name: MTCSW
Theme URI: https://mtcsw.org/
Description: Fast, lightweight custom theme for Southwest Mechanical Trade Contractors. No page builder. Built for Events Manager Pro and WPJobBoard Pro. Edit the homepage in Appearance → Customize → MTCSW Homepage.
Version: 1.4.20
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Author: MTCSW
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtcsw
*/

/* ==========================================================================
   1. Fonts & tokens
   ========================================================================== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff") format("woff"); }

:root {
	--blue: #1a9ad6;          /* brand blue (headings, highlights) */
	--blue-600: #1176ad;      /* buttons, links, top bar, footer (passes 4.5:1 with white text) */
	--blue-700: #0f6797;
	--blue-50: #e8f5fc;
	--orange: #f7941d;        /* brand orange (highlights) */
	--orange-600: #b85a0a;    /* orange buttons (passes 4.5:1 with white text) */
	--orange-700: #9a4f00;
	--navy: #1c355e;          /* member benefits band */
	--navbar: #0f1b33;        /* main navigation bar */
	--ink: #14213d;
	--text: #3a4253;
	--muted: #667085;
	--line: #e2e7ee;
	--tint: #f4f6f9;
	--white: #fff;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
	--shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 12px 28px rgba(16, 24, 40, .12);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 96px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 106.25%; } /* 17px base: scales all text sizes */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.icon { flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.hl { color: var(--blue-600); }
.hl-orange { color: var(--orange); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn, .entry-content .wp-block-button__link,
.entry-content input[type="submit"], .entry-content button[type="submit"],
.em .button, .em-button, .em input[type="submit"], .wpjb .wpjb-button, .wpjb input[type="submit"], .wpjb button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius-sm);
	font: 500 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
	background: var(--blue-600); color: #fff;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover, .entry-content .wp-block-button__link:hover,
.entry-content input[type="submit"]:hover, .entry-content button[type="submit"]:hover,
.em .button:hover, .em-button:hover, .em input[type="submit"]:hover, .wpjb .wpjb-button:hover, .wpjb input[type="submit"]:hover, .wpjb button[type="submit"]:hover {
	background: var(--blue-700); color: #fff;
}
.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--blue { background: var(--blue-600); }
.btn--orange { background: var(--orange-600); color: #fff; }
.btn--orange:hover { background: var(--orange-700); }
.btn--white { background: #fff; color: var(--blue-600); }
.btn--white:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--outline { background: transparent; border-color: var(--blue-600); color: var(--blue-600); }
.btn--outline:hover { background: var(--blue-600); color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .15s; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar { background: var(--blue-600); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; min-height: 36px; position: relative; }
.topbar__text { margin: 0; text-align: center; }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; }
.social a:hover { background: rgba(255, 255, 255, .18); color: inherit; }
.social--topbar { position: absolute; right: var(--gutter); }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 92px; }
.masthead__actions { display: flex; gap: 10px; }
.masthead__logo { justify-self: center; }
.masthead__logo img, .footer-logo img { max-height: 72px; width: auto; }
.masthead__tools { justify-self: end; display: flex; align-items: center; gap: 10px; }

.logo-text { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-text strong { font-size: 2rem; letter-spacing: -.02em; color: var(--blue-600); }
.logo-text span { font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-top: 4px; }

.header-search { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); }
.header-search input { border: 0; background: transparent; padding: 9px 12px; font: inherit; font-size: .85rem; width: 210px; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.header-search button { border: 0; background: var(--blue-600); color: #fff; width: 42px; cursor: pointer; display: grid; place-items: center; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.icon-link:hover { background: var(--tint); color: var(--blue-600); }

.nav-toggle { display: none; border: 0; background: none; color: var(--ink); width: 44px; height: 44px; cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Main navigation bar */
.site-nav .menu > .menu-item-has-children > a, .site-nav .menu > .page_item_has_children > a { padding-right: 6px; }
.site-nav { background: var(--navbar); position: relative; z-index: 50; }
/* Optional: Customize → MTCSW Header → "Keep the main menu visible while scrolling" */
@media (min-width: 961px) { .has-sticky-nav .site-nav { position: sticky; top: 0; } .admin-bar.has-sticky-nav .site-nav { top: 32px; } }
.site-nav .menu { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav a { display: flex; align-items: center; gap: 4px; padding: 14px 16px; color: #dbe6f5; text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_item > a { color: #fff; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { box-shadow: inset 0 -3px 0 var(--orange); }
.site-nav .menu > li > a .icon-chevron { display: none; } /* the JS toggle button replaces it */
.submenu-toggle { border: 0; background: none; color: #dbe6f5; padding: 6px; margin: 0 8px 0 0; cursor: pointer; display: grid; place-items: center; border-radius: 4px; }
.submenu-toggle:hover { color: #fff; }
.site-nav .sub-menu, .site-nav .children {
	position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px 0;
	background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--radius-sm); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu,
.site-nav li:hover > .children, .site-nav li:focus-within > .children, .site-nav li.is-open > .children { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a, .site-nav .children a { color: var(--ink); padding: 9px 18px; font-weight: 400; }
.site-nav .sub-menu a:hover, .site-nav .children a:hover { background: var(--tint); color: var(--blue-600); }
.site-nav .sub-menu .submenu-toggle { color: var(--muted); }
.site-nav__mobile-actions { display: none; }

@media (max-width: 1100px) {
	.header-search input { width: 150px; }
}
@media (max-width: 960px) {
	.masthead__inner { grid-template-columns: 1fr auto; min-height: 72px; }
	.masthead__logo { justify-self: start; grid-row: 1; }
	.masthead__logo img { max-height: 54px; }
	.masthead__actions, .header-search, .social--topbar { display: none; }
	.nav-toggle { display: grid; place-items: center; }
	.topbar__text { font-size: .8rem; }

	.site-nav { position: fixed; inset: 0; z-index: 200; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; padding-top: 12px; }
	.site-nav.is-open { transform: none; visibility: visible; }
	.nav-close { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: var(--radius-sm); cursor: pointer; }
	.site-nav .menu { flex-direction: column; }
	.site-nav li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.site-nav a { flex: 1; padding: 16px 4px; font-size: 1.05rem; }
	.submenu-toggle { margin: 0; width: 44px; height: 44px; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.site-nav .sub-menu, .site-nav .children { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 8px 12px; }
	.site-nav li.is-open > .sub-menu, .site-nav li.is-open > .children { display: block; }
	.site-nav .sub-menu a, .site-nav .children a { color: #c5d3e8; padding: 10px 4px; }
	.site-nav .sub-menu a:hover, .site-nav .children a:hover { background: none; color: #fff; }
	.site-nav .sub-menu li { border: 0; }
	.site-nav .current-menu-item > a, .site-nav .current_page_item > a { box-shadow: none; color: var(--orange); }
	.site-nav__mobile-actions { display: flex; flex-direction: column; gap: 12px; padding: 24px 0 40px; }
}
.nav-close { display: none; }
@media (max-width: 960px) { .nav-close { display: grid; } .admin-bar .site-nav { top: 46px; } }
@media (max-width: 960px) and (min-width: 783px) { .admin-bar .site-nav { top: 32px; } }

/* ==========================================================================
   5. Sections (shared)
   ========================================================================== */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; text-align: left; margin-bottom: 24px; flex-wrap: wrap; }
.section-title { text-align: center; margin-bottom: .35em; }
.section-title--left { text-align: left; margin: 0; }
.section-title--light { color: #fff; }
.section-intro { color: var(--muted); margin: 0 auto; }
.section-more { text-align: center; margin: 40px 0 0; }
.badge { display: inline-block; background: var(--orange-600); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow { display: inline-block; background: var(--blue-600); color: #fff; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; margin-bottom: 18px; }
.notice-inline { background: #fff8e6; border: 1px solid #f5d48a; color: #7a5300; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(440px, 62vh, 620px); display: flex; align-items: center; overflow: hidden;
	background: linear-gradient(135deg, #10243f 0%, #1c355e 45%, #7a3b1a 100%); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 20, 38, .82) 0%, rgba(10, 20, 38, .55) 45%, rgba(10, 20, 38, .1) 100%); }
.hero__inner { padding-top: 56px; padding-bottom: 56px; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; max-width: 18ch; margin-bottom: 28px; text-wrap: balance; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
@media (max-width: 600px) {
	.hero__buttons .btn { flex: 1 1 100%; }
	.hero::after { background: rgba(10, 20, 38, .7); }
}

/* ==========================================================================
   7. How we help
   ========================================================================== */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.help-card { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 36px 20px 30px;
	background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow);
	text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.help-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff3e4; color: var(--orange-600); margin-bottom: 16px; }
.help-card__title { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.help-card__text { color: var(--blue-600); font-size: .9rem; }
@media (max-width: 960px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .help-grid { gap: 14px; } .help-card { padding: 26px 12px; } }

/* ==========================================================================
   8. Sponsors
   ========================================================================== */
.sponsors .section-title { margin-bottom: 36px; }
.sponsors--elite .section-title { margin-bottom: .35em; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 42%), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sponsor-grid--elite { grid-template-columns: repeat(auto-fill, minmax(min(200px, 42%), 1fr)); gap: 20px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sponsor a, .sponsor > img, .sponsor > .sponsor-name { display: grid; place-items: center; height: 90px; padding: 14px 18px; text-decoration: none; }
.sponsor-grid--elite .sponsor a, .sponsor-grid--elite .sponsor > img, .sponsor-grid--elite .sponsor > .sponsor-name { height: 120px; }
.sponsor img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .15s; }
.sponsor a:hover img { filter: none; }
.sponsor-name { font-weight: 700; color: var(--ink); text-align: center; }
.sponsor:has(a:hover) { border-color: var(--blue); }

/* Sponsor slider */
.slider { position: relative; padding: 0 52px; }
.slider__track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 6px 2px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 calc((100% - 3 * 20px) / 4); scroll-snap-align: start; }
.slider__slide a, .slider__slide > img, .slider__slide > .sponsor-name { height: 120px; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: background-color .15s, color .15s; }
.slider__btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.slider__btn--prev { left: 0; }
.slider__btn--next { right: 0; }
.slider.is-static { padding: 0; }
.slider.is-static .slider__btn { display: none; }
.slider.is-static .slider__track { justify-content: center; }
@media (max-width: 960px) { .slider__slide { flex-basis: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 600px) { .slider { padding: 0 44px; } .slider__slide { flex-basis: calc((100% - 20px) / 2); } .slider__btn { width: 36px; height: 36px; } .slider__track { gap: 12px; } .slider__slide { flex-basis: calc((100% - 12px) / 2); } }

/* ==========================================================================
   9. Events (homepage cards + tabs)
   ========================================================================== */
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { border: 0; background: none; font: 500 .95rem var(--font); color: var(--muted); padding: 12px 18px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--orange-600); border-bottom-color: var(--orange); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.event-grid--home .event-card__body { padding: 16px; }
.event-grid--home .event-card__title { font-size: 1rem; }
@media (max-width: 1100px) { .event-grid, .event-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .event-grid, .event-grid--home { grid-template-columns: minmax(0, 1fr); } }

/* Events calendar page */
.events-calendar__intro { max-width: 760px; margin-bottom: 28px; }
.event-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 36px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); }
.event-filter__label { font-weight: 500; color: var(--ink); font-size: .9rem; }
.event-filter ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.event-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; font-weight: 500; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.event-filter a:hover { border-color: var(--blue); color: var(--blue-600); }
.event-filter a[aria-current="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.event-filter__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .72rem; }
.event-filter a[aria-current="true"] .event-filter__count { background: rgba(255, 255, 255, .25); color: #fff; }
.event-month + .event-month { margin-top: 40px; }
.event-month__title { font-size: 1.3rem; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--orange); display: inline-block; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event-row { display: grid; grid-template-columns: 72px 160px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.event-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.event-row__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 72px; border-radius: var(--radius-sm); background: #fff3e4; color: var(--orange-700); line-height: 1.1; }
.event-row__dow, .event-row__mon { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.event-row__day { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.event-row__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); }
.event-row__media img { width: 100%; height: 100%; object-fit: cover; }
.event-row__title { font-size: 1.1rem; margin: 0 0 4px; }
.event-row__title a { color: var(--ink); text-decoration: none; }
.event-row__title a:hover { color: var(--blue-600); }
.event-row__meta { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.event-row__cats ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.event-row__cats a { display: inline-block; font-size: .74rem; font-weight: 500; padding: 2px 9px; border-radius: 4px; background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
@media (max-width: 860px) {
	.event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
	.event-row__date { height: 64px; }
	.event-row__media { display: none; }
	.event-row__action { grid-column: 2; }
}
.event-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.event-card__media { display: block; aspect-ratio: 16 / 10; background: var(--tint); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__placeholder, .card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue-50), #fff3e4); }
.event-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card__date { display: inline-block; align-self: flex-start; background: #fff3e4; color: var(--orange-700); font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 4px; margin: 0; }
.event-card__title { font-size: 1.1rem; margin: 6px 0 0; }
.event-card__title a { color: var(--ink); text-decoration: none; }
.event-card__title a:hover { color: var(--blue-600); }
.event-card__meta { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.event-card .btn { margin-top: auto; align-self: flex-start; }
.events-empty { color: var(--muted); padding: 24px; background: var(--tint); border-radius: var(--radius); grid-column: 1 / -1; margin: 0; }

/* ==========================================================================
   10. Member benefits
   ========================================================================== */
.benefits { background: var(--navy); color: #c9d6ea; }
.benefits .section-title { margin-bottom: 44px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; text-align: center; }
.benefit__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(26, 154, 214, .25); color: #8fd3f5; margin-bottom: 14px; }
.benefit__title { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.benefit__title a { color: inherit; text-decoration: none; }
.benefit__title a:hover { color: var(--orange); }
.benefit__text { font-size: .92rem; max-width: 30ch; margin: 0 auto; }
@media (max-width: 760px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Instructor spotlight
   ========================================================================== */
.spotlight__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.spotlight__grid.has-video { grid-template-columns: 1.1fr 1fr .62fr; }
.spotlight__label { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--ink); margin: 0 0 4px; line-height: 1.2; }
.spotlight__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 20px; }
.spotlight__title a { color: var(--ink); text-decoration: none; }
.spotlight__title a:hover { color: var(--blue-600); }
.spotlight__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); font-size: 1rem; }
.spotlight__photo { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 15 / 16; }
.spotlight__photo img { width: 100%; height: 100%; object-fit: cover; }
.video-facade { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--navbar); box-shadow: var(--shadow-hover); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--blue-600); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.video-facade__play:hover { transform: scale(1.08); }
.video-facade.is-playing { aspect-ratio: 9 / 16; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1024px) {
	.spotlight__grid, .spotlight__grid.has-video { grid-template-columns: 1fr 1fr; }
	.spotlight__text { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.spotlight__grid, .spotlight__grid.has-video { grid-template-columns: 1fr; }
	.video-facade { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   12. Post cards (news)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 500; padding: 4px 10px; border-radius: 4px; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__date { color: var(--muted); font-size: .8rem; margin: 0 0 6px; }
.card__title { font-size: 1.08rem; margin-bottom: 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--blue-600); }
.card__excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.card__excerpt p { margin-bottom: 12px; }
.card .text-link { font-size: .9rem; }

/* ==========================================================================
   13. Inner pages
   ========================================================================== */
.page-banner { background: linear-gradient(120deg, var(--navy), var(--blue-600)); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.page-banner__title { color: #fff; margin: 0; }
.page-banner__sub { margin: 10px 0 0; color: #d7e6f5; }
.page-banner__sub a { color: #fff; }
.content-area { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.content-area--narrow { max-width: 860px; }
.entry-content { font-size: 1.06rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); color: var(--ink); font-size: 1.1rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--tint); color: var(--ink); }
.entry-featured { margin: 0 0 28px; }
.entry-featured img { width: 100%; border-radius: var(--radius); }
.alignwide { max-width: calc(var(--container) - 2 * var(--gutter)); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 500; }
.post-nav a { text-decoration: none; }
.post-nav__next { margin-left: auto; text-align: right; }
.search-again { max-width: 520px; margin-bottom: 32px; }
.empty { color: var(--muted); }

/* Forms (WordPress, Events Manager, WPJobBoard all inherit these) */
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"], .entry-content input[type="url"],
.entry-content input[type="password"], .entry-content input[type="number"], .entry-content input[type="search"], .entry-content input[type="date"],
.entry-content select, .entry-content textarea, .search-form input[type="search"], .gate input[type="text"], .gate input[type="password"], .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; max-width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--ink);
	background: #fff; border: 1px solid #cfd6e0; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus, .search-form input:focus, .gate input:focus {
	outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50);
}
.entry-content label { font-weight: 500; color: var(--ink); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-submit { background: var(--blue-600); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 0 20px; font: 500 .95rem var(--font); cursor: pointer; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue-600); }

/* Members-only job posting gate */
.gate { max-width: 520px; margin: 0 auto; padding: 36px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.gate__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff3e4; color: var(--orange-600); margin-bottom: 12px; }
.gate h2 { font-size: 1.4rem; }
.gate form { text-align: left; margin: 20px 0 8px; }
.gate form p { margin-bottom: 14px; }
.gate label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.gate .login-remember label { display: inline; font-weight: 400; }
.gate input[type="submit"] { width: 100%; background: var(--blue-600); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 13px; font: 500 1rem var(--font); cursor: pointer; }
.gate input[type="submit"]:hover { background: var(--blue-700); }
.gate__note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.gate__links { font-size: .9rem; margin: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Comments */
.comments { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form p { margin-bottom: 14px; }
.comment-form .submit { background: var(--blue-600); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 12px 22px; font: 500 .95rem var(--font); cursor: pointer; }

/* ==========================================================================
   14. Plugin styling: Events Manager Pro + WPJobBoard Pro
   Uses each plugin's own markup; only colors/spacing are aligned to the brand.
   ========================================================================== */
.em, .em.pixelbones { --accent-color: var(--blue-600); --accent-color-hover: var(--blue-700); font-family: var(--font); }
/* Events Manager ships a thin "Helvetica Neue Light" style; use the site font at normal weights instead. */
.em, .em *:not([class*="icon"]), .em-event-single, .em-event-single *:not([class*="icon"]) { font-family: var(--font) !important; }
.em, .em * { font-weight: 400 !important; letter-spacing: normal !important; }
.em, .em p, .em li, .em td, .em label, .em .em-item-meta-line, .em .em-event-content { color: var(--text) !important; }
.em h1, .em h2, .em h3, .em h4, .em h5, .em h6, .em strong, .em b, .em th, .em legend { font-weight: 700 !important; color: var(--ink) !important; }
.em .button, .em button, .em input[type="submit"], .em .em-button, .em a.button { font-weight: 500 !important; }
.em a { font-weight: 500 !important; }
.em p, .em li, .em .em-item-meta-line, .em .em-event-content, .em-event-content { font-size: 1rem !important; line-height: 1.7 !important; }
.em a { color: var(--blue-600); }
.em .em-item, .em .em-event { border-radius: var(--radius); }
.em .em-item-title a, .em .em-event-title a { color: var(--ink); text-decoration: none; }
.em .em-item-title a:hover { color: var(--blue-600); }
.em-booking-form, .em .em-booking-form { border-radius: var(--radius); }
/* Registration submit button: big, orange and clearly labelled (class added by main.js). */
.em input.mtcsw-em-submit, .em button.mtcsw-em-submit, .mtcsw-em-submit, html body .em.pixelbones .em-booking-form input.mtcsw-em-submit.mtcsw-em-submit.mtcsw-em-submit, html body .em.pixelbones .em-booking-form button.mtcsw-em-submit.mtcsw-em-submit.mtcsw-em-submit, html body .em.pixelbones .em-booking-form .mtcsw-em-submit.mtcsw-em-submit.mtcsw-em-submit { display: block !important; width: 100% !important; min-height: 60px !important; padding: 18px 24px !important; background: var(--orange-600) !important; color: #fff !important; border: 0 !important; border-radius: var(--radius-sm) !important; font-size: 1.2rem !important; font-weight: 700 !important; letter-spacing: .01em !important; text-transform: none !important; cursor: pointer; box-shadow: 0 6px 18px rgba(229, 122, 11, .35) !important; transition: background-color .15s, transform .15s; }
.em .mtcsw-em-submit:hover, .mtcsw-em-submit:hover, html body .em.pixelbones .em-booking-form .mtcsw-em-submit.mtcsw-em-submit.mtcsw-em-submit:hover { background: #c25e12 !important; transform: translateY(-1px); }
.em .mtcsw-em-submit:focus-visible, html body .em.pixelbones .em-booking-form .mtcsw-em-submit.mtcsw-em-submit.mtcsw-em-submit:focus-visible { outline: 3px solid var(--navy) !important; outline-offset: 3px; }
/* "Pay by phone" payment choice: sized and styled like the PayPal buttons beside it. */
.em input.mtcsw-em-offline, .em button.mtcsw-em-offline, .mtcsw-em-offline, html body .em.pixelbones .em-booking-form input.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline, html body .em.pixelbones .em-booking-form button.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline, html body .em.pixelbones .em-booking-form .mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline { display: block !important; width: 100% !important; max-width: 460px !important; min-height: 50px !important; margin: 0 auto 16px !important; padding: 12px 20px !important; line-height: 1.25 !important; background: var(--navy) !important; color: #fff !important; border: 0 !important; border-radius: 4px !important; font-size: 1.15rem !important; font-weight: 700 !important; letter-spacing: .01em !important; text-transform: none !important; cursor: pointer; }
.em input.mtcsw-em-offline.is-last, .em button.mtcsw-em-offline.is-last, html body .em.pixelbones .em-booking-form input.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline.is-last, html body .em.pixelbones .em-booking-form button.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline.is-last { margin-top: 16px !important; }
.em input.mtcsw-em-offline:hover, .em button.mtcsw-em-offline:hover, html body .em.pixelbones .em-booking-form input.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline:hover, html body .em.pixelbones .em-booking-form button.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline:hover { background: #12264a !important; }
.em input.mtcsw-em-offline:focus-visible, .em button.mtcsw-em-offline:focus-visible, html body .em.pixelbones .em-booking-form input.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline:focus-visible, html body .em.pixelbones .em-booking-form button.mtcsw-em-offline.mtcsw-em-offline.mtcsw-em-offline:focus-visible { outline: 3px solid var(--orange) !important; outline-offset: 3px; }
.em .mtcsw-em-paychoose, .mtcsw-em-paychoose, html body .em.pixelbones .em-booking-form .mtcsw-em-paychoose.mtcsw-em-paychoose.mtcsw-em-paychoose { margin: 22px auto 12px !important; max-width: 460px; text-align: center; font-weight: 700 !important; color: var(--ink) !important; font-size: 1.1rem !important; }
.em .mtcsw-paypal-note, .mtcsw-paypal-note, html body .em.pixelbones .em-booking-form .mtcsw-paypal-note.mtcsw-paypal-note.mtcsw-paypal-note { max-width: 460px; }
/* Narrower payment buttons: PayPal's buttons fill whatever box they sit in. */
.em-booking-form .paypal-buttons, .em-booking-form [id*="paypal"], .em-booking-form [class*="paypal"]:not(.mtcsw-paypal-note), html body .em.pixelbones .em-booking-form .paypal-buttons, html body .em.pixelbones .em-booking-form [id*="paypal"], html body .em.pixelbones .em-booking-form [class*="paypal"]:not(.mtcsw-paypal-note.mtcsw-paypal-note.mtcsw-paypal-note) { max-width: 460px !important; margin-left: auto !important; margin-right: auto !important; }
/* Centered payment section; space between the separately drawn Card and PayPal buttons. */
.mtcsw-paypal-slot, html body .em.pixelbones .em-booking-form .mtcsw-paypal-slot.mtcsw-paypal-slot.mtcsw-paypal-slot { width: 100%; }
.mtcsw-paypal-slot + .mtcsw-paypal-slot, html body .em.pixelbones .em-booking-form .mtcsw-paypal-slot.mtcsw-paypal-slot.mtcsw-paypal-slot + .mtcsw-paypal-slot { margin-top: 10px; }
.em .mtcsw-paypal-note, .mtcsw-paypal-note, html body .em.pixelbones .em-booking-form .mtcsw-paypal-note.mtcsw-paypal-note.mtcsw-paypal-note { margin: 14px auto !important; padding: 12px 16px !important; background: #fff8e6 !important; border: 1px solid #f5d48a !important; border-radius: var(--radius-sm) !important; color: #5c3d00 !important; font-size: .95rem !important; line-height: 1.5 !important; }
.em .mtcsw-em-submit-note, .mtcsw-em-submit-note, html body .em.pixelbones .em-booking-form .mtcsw-em-submit-note.mtcsw-em-submit-note.mtcsw-em-submit-note { margin: 18px 0 10px !important; font-weight: 600 !important; color: var(--ink) !important; font-size: 1.05rem !important; }
/* On checkout, Events Manager hides its own submit button while the payment buttons are showing: hide our note with it. */
html body .em .em-booking-form input.mtcsw-em-submit.mtcsw-em-submit.hidden, html body .em .em-booking-form button.mtcsw-em-submit.mtcsw-em-submit.hidden, html body .em .em-booking-form .mtcsw-em-submit-note.is-hidden, html body .em .em-booking-form .mtcsw-em-submit-note:has(+ .mtcsw-em-submit.hidden) { display: none !important; }
.em table.em-calendar td.eventful a, .em .em-cal-day-date.em-cal-day-has-events a { color: var(--orange-600); }

.wpjb { font-family: var(--font); color: var(--text); }
.wpjb a { color: var(--blue-600); }
.wpjb .wpjb-job-list, .wpjb .wpjb-resume-list { border-radius: var(--radius); overflow: hidden; }
.wpjb .wpjb-featured, .wpjb .wpjb-row-featured { background: #fff8ee; }
.wpjb .wpjb-flash-info { background: var(--blue-50); border-color: var(--blue); border-radius: var(--radius-sm); }
.wpjb .wpjb-flash-error { border-radius: var(--radius-sm); }

/* Cart & Checkout bar on event pages */
.em-cart-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 32px 0 8px; padding: 18px 22px; background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.em-cart-bar__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue-600); flex-shrink: 0; }
.em-cart-bar__text { flex: 1 1 260px; min-width: 0; }
.em-cart-bar__title { margin: 0; font-weight: 700; color: var(--ink); }
.em-cart-bar__sub { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.em-cart-bar__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.em-cart-bar.is-active { background: #fff8ee; border-color: #f5d48a; border-left-color: var(--orange); box-shadow: var(--shadow-hover); }
.em-cart-bar.is-active .em-cart-bar__icon { color: var(--orange-600); }
@media (max-width: 600px) { .em-cart-bar__actions { width: 100%; } .em-cart-bar__actions .btn { flex: 1; } }
/* Keep the bar's own styling even inside Events Manager's wrapper. */
.em-cart-bar .em-cart-bar__title { font-weight: 700 !important; color: var(--ink) !important; }
.em-cart-bar .em-cart-bar__sub { color: var(--muted) !important; }
.em-cart-bar .btn { font-weight: 500 !important; text-decoration: none !important; }
.em-cart-bar .btn--orange, .em-cart-bar .btn--orange:hover { color: #fff !important; }
.em-cart-bar .btn--outline { color: var(--blue-600) !important; }
.em-cart-bar .btn--outline:hover { color: #fff !important; }
.em-cart-bar .text-link { font-weight: 500 !important; color: var(--blue-600) !important; }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer { background: var(--blue-600); color: #fff; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .btn--white { color: var(--blue-600); }
.site-footer .btn--white:hover { color: var(--blue-700); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-logo .logo-text strong, .footer-logo .logo-text span { color: #fff; }
.footer-logo .logo-text { align-items: flex-start; }
.footer-logo img { filter: brightness(0) invert(1); }
.footer-org { margin: 14px 0 12px; font-weight: 500; color: #fff; }
.footer-grid > * { min-width: 0; }
.footer-heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.contact-list, .footer-menu { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 8px; }
.contact-list .icon { margin-top: 4px; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { text-decoration: none; color: #fff; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.newsletter { display: flex; background: #fff; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; }
.newsletter input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; font-size: .9rem; color: var(--ink); }
.newsletter input:focus { outline: none; }
.newsletter:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.newsletter .btn { border-radius: 0; }
.social--footer a { background: rgba(255, 255, 255, .15); border-radius: 6px; width: 36px; height: 36px; }
.social--footer a:hover { background: #fff; color: var(--blue-600); }
.site-footer .notice-inline { color: #7a5300; }
/* Newsletter forms pasted from an email service or plugin: match the footer look. */
.newsletter-plugin form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.newsletter-plugin label { color: rgba(255, 255, 255, .85); font-size: .85rem; width: 100%; }
.newsletter-plugin input[type="email"], .newsletter-plugin input[type="text"] { flex: 1 1 180px; min-width: 0; border: 0; border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: .9rem; color: var(--ink); background: #fff; }
.newsletter-plugin input[type="submit"], .newsletter-plugin button[type="submit"], .newsletter-plugin button:not([type]) { background: var(--orange); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.newsletter-plugin input[type="submit"]:hover, .newsletter-plugin button:hover { background: var(--orange-600); }
/* Campaigner (and similar) widgets ship their own boxed, inline-styled table. Flatten it into the footer. */
.site-footer .newsletter-embed, .site-footer .newsletter-embed * { background: transparent !important; background-color: transparent !important; border: 0 !important; box-shadow: none !important; font-family: inherit !important; color: #fff !important; text-align: left !important; float: none !important; }
.site-footer .newsletter-embed table, .site-footer .newsletter-embed tbody, .site-footer .newsletter-embed thead, .site-footer .newsletter-embed tr, .site-footer .newsletter-embed td, .site-footer .newsletter-embed th, .site-footer .newsletter-embed form, .site-footer .newsletter-embed div { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; position: static !important; }
.site-footer .newsletter-embed form { margin-bottom: 18px !important; }
.site-footer .newsletter-embed td, .site-footer .newsletter-embed label { font-size: .85rem !important; line-height: 1.4 !important; }
.site-footer .newsletter-embed td:empty { display: none !important; }
.site-footer .newsletter-embed input[type="text"], .site-footer .newsletter-embed input[type="email"], .site-footer .newsletter-embed input:not([type]) { display: block !important; width: 100% !important; height: auto !important; margin: 3px 0 9px !important; padding: 9px 12px !important; background: #fff !important; background-color: #fff !important; color: var(--ink) !important; border-radius: var(--radius-sm) !important; font-size: .95rem !important; box-sizing: border-box !important; }
.site-footer .newsletter-embed select { width: auto !important; padding: 6px 10px !important; background: #fff !important; color: var(--ink) !important; border-radius: var(--radius-sm) !important; }
.site-footer .newsletter-embed tr:has(select), .site-footer .newsletter-embed p:has(select), .site-footer .newsletter-embed div:has(> select) { display: none !important; }
.site-footer .newsletter-embed p, .site-footer .newsletter-embed span, .site-footer .newsletter-embed font { font-size: .78rem !important; line-height: 1.5 !important; color: #fff !important; margin: 4px 0 12px !important; }
.site-footer .newsletter-embed input[type="submit"], .site-footer .newsletter-embed button, .site-footer .newsletter-embed input[type="button"] { display: inline-block !important; width: auto !important; height: auto !important; margin: 4px 0 0 !important; padding: 12px 26px !important; background: var(--orange) !important; background-color: var(--orange) !important; color: #fff !important; border-radius: var(--radius-sm) !important; font-weight: 600 !important; font-size: .95rem !important; cursor: pointer; }
.site-footer .newsletter-embed input[type="submit"]:hover, .site-footer .newsletter-embed button:hover { background: var(--orange-600) !important; }
.site-footer .newsletter-embed b, .site-footer .newsletter-embed strong, .site-footer .newsletter-embed h1, .site-footer .newsletter-embed h2, .site-footer .newsletter-embed h3, .site-footer .newsletter-embed h4 { font-size: .9rem !important; font-weight: 600 !important; color: #fff !important; margin: 0 0 4px !important; }
.footer-bottom { background: #fff; color: var(--text); font-size: .85rem; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.legal-menu a { color: var(--text); text-decoration: none; }
.legal-menu a:hover { color: var(--blue-600); }
.footer-grid--3 { grid-template-columns: 1.3fr 1fr 1.3fr; gap: 56px; }
.footer-grid--2 { grid-template-columns: 1fr 1fr; gap: 64px; }
@media (min-width: 961px) { .footer-grid--3 > .footer-col--subscribe, .footer-grid--2 > .footer-col--subscribe { justify-self: end; width: 100%; max-width: 340px; } }
@media (max-width: 960px) { .footer-grid, .footer-grid--3 { grid-template-columns: 1fr 1fr; } .footer-grid--3 > .footer-col--about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .footer-bottom__inner { flex-direction: column; text-align: center; } }

/* Block editor alignment helpers */
.has-text-align-center { text-align: center; }
.wp-block-image figcaption, .wp-caption-text { color: var(--muted); font-size: .85rem; text-align: center; }


/* ==== Compact footer (1.4.16): about half the height ==== */
.site-footer { font-size: .88rem; }
.site-footer .footer-grid { padding-top: 32px; padding-bottom: 24px; row-gap: 24px; align-items: start; }
.site-footer .footer-logo img { max-height: 46px; }
.site-footer .footer-org { margin: 8px 0 8px; }
.site-footer .footer-heading { margin: 0 0 10px; font-size: .85rem; }
.site-footer .contact-list { margin: 0 0 12px; }
.site-footer .contact-list li { margin-bottom: 4px; }
.site-footer .footer-menu { margin: 0; }
.site-footer .footer-menu li { margin-bottom: 5px; }
.site-footer .footer-buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.site-footer .footer-col--subscribe > p { margin: 0 0 8px; font-size: .85rem; line-height: 1.45; }
.site-footer .newsletter-frame { margin-bottom: 0 !important; }
.footer-bottom__inner { padding-top: 10px; padding-bottom: 10px; }
.social--bottom { display: flex; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.social--bottom a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--blue-600); color: #fff; }
.social--bottom a:hover { background: var(--blue-700); color: #fff; }
@media (max-width: 560px) { .social--bottom { margin: 0 auto; } }


/* ==== Larger corporate sponsor logos (1.4.17; elite sponsors unchanged) ==== */
.sponsors .sponsor-grid.sponsor-grid--corporate { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.sponsors .sponsor-grid--corporate .sponsor { width: 260px; max-width: calc(50% - 10px); }
.sponsors .sponsor-grid--corporate .sponsor a, .sponsors .sponsor-grid--corporate .sponsor > img, .sponsors .sponsor-grid--corporate .sponsor > .sponsor-name { height: 150px; padding: 14px 18px; }
/* 1.4.19: logos shrink to fit BOTH the width and the height of the box (tall logos no longer spill out). */
.sponsors .sponsor-grid--corporate .sponsor a { display: block; box-sizing: border-box; overflow: hidden; }
.sponsors .sponsor-grid--corporate .sponsor > img, .sponsors .sponsor-grid--corporate .sponsor a > img { display: block; box-sizing: border-box; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; filter: none; }
.sponsors .sponsor-grid--corporate .sponsor a > img { padding: 0; }
.sponsors .sponsor-grid--corporate .sponsor > img { height: 150px; padding: 14px 18px; }
@media (max-width: 600px) { .sponsors .sponsor-grid--corporate .sponsor > img { height: 110px; } }
.sponsors .sponsor-grid--corporate .sponsor a:has(> .sponsor-name) { display: grid; place-items: center; }
.sponsors .sponsor-grid--corporate .sponsor-name { font-size: 1.5rem; }
@media (max-width: 600px) { .sponsors .sponsor-grid.sponsor-grid--corporate { gap: 12px; } .sponsors .sponsor-grid--corporate .sponsor { max-width: calc(50% - 6px); } .sponsors .sponsor-grid--corporate .sponsor a, .sponsors .sponsor-grid--corporate .sponsor > img, .sponsors .sponsor-grid--corporate .sponsor > .sponsor-name { height: 110px; } }


/* ==== Elite sponsors (1.4.20): same box size as before; logos shrink to fit width AND height ==== */
.slider__slide a, .sponsor-grid--elite .sponsor a, .sponsor-grid--default .sponsor a { display: block; box-sizing: border-box; overflow: hidden; }
.slider__slide a > img, .slider__slide > img, .sponsor-grid--elite .sponsor a > img, .sponsor-grid--elite .sponsor > img { display: block; box-sizing: border-box; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.slider__slide > img, .sponsor-grid--elite .sponsor > img { height: 120px; padding: 14px 18px; }
.slider__slide a:has(> .sponsor-name), .sponsor-grid--elite .sponsor a:has(> .sponsor-name) { display: grid; place-items: center; }
