/* IU-CEIF public site.
   Brand values come from the original Elementor kit (green #3F7D47, navy #12284B, gold #DFA61F, Roboto + Spartan).
   Every size below comes from the design tokens in :root so spacing and typography stay uniform across sections. */

@font-face {
  font-family: "spartan-regular";
  src: url("../fonts/spartan-regular.woff2") format("woff2"), url("../fonts/spartan-regular.woff") format("woff");
  font-display: swap;
}

:root {
  /* ---- brand colours */
  --green: #3F7D47;
  --green-deep: #1F5A35;
  --navy: #12284B;
  --navy-dark: #102A43;
  --gold: #DFA61F;
  --gold-light: #F5D98A;          /* gold for text on dark/green backgrounds */
  --amber: #FFC107;
  --cta-yellow: #EBC84D;
  --blue: #1A44A8;
  --blue-hover-bg: #F5D83E;

  /* ---- text colours (WCAG 2.1 AA ≥ 4.5:1 on white, #F6FBFA and #F2F5F7) */
  --heading: #0D1B2E;
  --text: #5C5E63;
  --gold-text: #8F6400;           /* brand gold darkened for text; #DFA61F stays for rules, borders, buttons */
  --muted: #66676B;

  /* ---- surfaces */
  --border: #E1E6EC;
  --tint: #F6FBFA;
  --grey-bg: #F2F5F7;
  --nav-hover: #EDF0F8;

  /* ---- typography */
  --font: "Roboto", Arial, Helvetica, sans-serif;
  --font-heading: "League Spartan", "spartan-regular", "Roboto", sans-serif;
  --fs-display: clamp(2.125rem, 1.35rem + 2.9vw, 3.5rem);    /* 34 → 56  homepage hero   */
  --fs-h1:      clamp(2rem, 1.45rem + 2.1vw, 3.25rem);        /* 32 → 52  page banners, post titles */
  --fs-h2:      clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);       /* 28 → 40  section headings */
  --fs-h3-lg:   clamp(1.375rem, 1.2rem + .7vw, 1.75rem);      /* 22 → 28  feature sub-headings */
  --fs-h3:      clamp(1.125rem, 1.06rem + .28vw, 1.3125rem);  /* 18 → 21  card titles */
  --fs-lead:    clamp(1.0625rem, 1rem + .3vw, 1.25rem);       /* 17 → 20  intros */
  --fs-body:    clamp(1rem, .97rem + .12vw, 1.0625rem);       /* 16 → 17  body copy */
  --fs-small:   .9375rem;                                     /* 15 */
  --fs-eyebrow: .8125rem;                                     /* 13, uppercase */
  --lh-tight: 1.12;
  --lh-heading: 1.22;
  --lh-body: 1.7;

  /* ---- spacing */
  --gutter: clamp(20px, 4.5vw, 64px);
  --container: 1280px;
  --space-section: clamp(3.5rem, 2.3rem + 4vw, 6rem);         /* 56 → 96  section padding */
  --space-head: clamp(2rem, 1.55rem + 1.5vw, 3rem);           /* 32 → 48  heading → content */
  --gap-grid: clamp(1rem, .75rem + 1vw, 1.75rem);             /* 16 → 28  grid gaps */
  --pad-card: clamp(1.5rem, 1.3rem + .7vw, 2rem);             /* 24 → 32  card padding */

  /* ---- shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 2px 8px rgba(16, 42, 67, .05);
  --shadow-md: 0 14px 34px rgba(16, 42, 67, .12);
  --shadow-lg: 0 24px 60px rgba(16, 42, 67, .22);

  --header-h: 88px;
}

/* ================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@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: var(--fs-body); line-height: var(--lh-body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-family: var(--font-heading); font-weight: 600; line-height: var(--lh-heading); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: #fff; color: #000; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ================================================================== preview bar */
.preview-bar { position: sticky; top: 0; z-index: 200; background: #b42318; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
.preview-bar a { color: #fff; font-weight: 600; }

/* ================================================================== header */
.topbar { background: var(--green); color: #FDFFFE; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; max-width: 1680px; padding-left: 24px; padding-right: 24px; }
.aligned-with { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 0; font-size: 13px; line-height: 24px; letter-spacing: .02em; }
.aligned-with .label { font-weight: 500; }
.aligned-with .dot { font-size: 22px; line-height: 1; margin: 0 4px; color: var(--gold-light); }
.topbar-cta { display: inline-block; background: var(--cta-yellow); color: #000; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 6px; text-decoration: none; transition: filter .2s; }
.topbar-cta:hover { filter: brightness(0.95); }

/* Main bar sticks to the top while scrolling; the green top bar scrolls away. */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 42, 67, .10); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; max-width: 1680px; padding-left: 24px; padding-right: 24px; }
.site-logo { flex: 0 0 auto; width: clamp(200px, 17vw, 260px); }
.site-logo img { width: 100%; height: auto; }
.main-nav { flex: 0 1 auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: nowrap; align-items: center; }
.main-nav a { display: block; position: relative; color: #000; text-decoration: none; font-size: 16px; line-height: 1.25; padding: 13px 11px; border-radius: 6px; white-space: nowrap; transition: background-color .2s, color .2s; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { background: var(--nav-hover); }
.main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.main-nav li { position: relative; }
.main-nav .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin-top: 12px; background: #fff; border-bottom: 4px solid var(--amber); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { display: block; }
.main-nav .submenu a { padding: 10px 20px; border-radius: 0; white-space: normal; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid transparent; padding: 0; cursor: pointer; color: #000; border-radius: var(--radius-sm); transition: background-color .2s; }
.nav-toggle:hover { background: var(--nav-hover); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu sizes: six long labels must stay on one line at common laptop widths. */
@media (max-width: 1599px) { .main-nav a { font-size: 15px; padding: 12px 9px; } }
@media (max-width: 1439px) { .main-nav a { font-size: 14px; padding: 11px 7px; } .site-logo { width: 220px; } }
@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: #fff; border-top: 1px solid #e7ebf0; border-bottom: 4px solid var(--amber); box-shadow: 0 16px 30px rgba(16, 42, 67, .14); }
  .main-nav.is-open { display: block; animation: nav-in .2s ease-out; }
  .main-nav > ul { display: block; padding: 8px 0; max-width: 720px; margin: 0 auto; }
  .main-nav > ul > li + li { border-top: 1px solid #eef1f5; }
  .main-nav a { font-size: 16px; padding: 14px 24px; min-height: 48px; border-radius: 0; white-space: normal; }
  .main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); }
  .main-nav .submenu { position: static; display: block; box-shadow: none; border: 0; margin: 0; padding-left: 16px; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  :root { --header-h: 76px; }
  .topbar .container { padding: 0 8px; }
  .aligned-with { padding: 6px 0; gap: 4px; font-size: 12px; }
  .aligned-with .dot { margin: 0 1px; font-size: 18px; }
  .topbar-cta { font-size: 12px; padding: 7px 10px; }
  .site-header .container { padding-left: 16px; padding-right: 12px; }
  .site-logo { width: min(200px, 58vw); }
}
@media (max-width: 359px) { .aligned-with .label { display: none; } }

/* ================================================================== section system */
.section { position: relative; padding-top: var(--space-section); padding-bottom: var(--space-section); background-size: cover; background-position: center; }
.section > .container { position: relative; }
/* Spacing presets chosen in the admin are multiples of the one section spacing token */
.section.pt-none { padding-top: 0; } .section.pt-sm { padding-top: calc(var(--space-section) * .5); } .section.pt-md { padding-top: calc(var(--space-section) * .75); } .section.pt-lg { padding-top: calc(var(--space-section) * 1.5); }
.section.pb-none { padding-bottom: 0; } .section.pb-sm { padding-bottom: calc(var(--space-section) * .5); } .section.pb-md { padding-bottom: calc(var(--space-section) * .75); } .section.pb-lg { padding-bottom: calc(var(--space-section) * 1.5); }
/* Two consecutive sections on the same background read as one: no double padding between them */
.section.flush-top { padding-top: 0; }
.section.theme-light { color: rgba(255, 255, 255, .9); }
.section.theme-light .section-heading, .section.theme-light .prose, .section.theme-light .lead { color: #fff; }
.section.theme-light .eyebrow { color: var(--gold-light); }
@media (max-width: 767px) { .section.hide-mobile { display: none; } }

/* Section heading block: eyebrow, heading, gold rule – identical on every section */
.section-head { max-width: 820px; margin: 0 auto var(--space-head); text-align: center; }
.section-head:last-child { margin-bottom: 0; }
.section-head.align-left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--font); font-size: var(--fs-eyebrow); font-weight: 700; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.align-left .eyebrow::after, .it-body > .eyebrow::after { display: none; }
.section-heading { display: block; font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-heading); letter-spacing: .005em; color: var(--heading); text-wrap: balance; }
.divider { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--gold); margin: 18px auto 0; border: 0; }
.section-head.align-left .divider, .it-body .divider { margin-left: 0; }

/* Body copy */
.prose { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose strong { color: var(--heading); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li + li { margin-top: .35em; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose h2 { font-size: var(--fs-h3-lg); } .prose h3 { font-size: var(--fs-h3); } .prose h4 { font-size: var(--fs-body); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--heading); font-size: var(--fs-lead); }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose img { margin: 1.4em auto; border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--border); padding: 8px 12px; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text); }
.text-center { text-align: center; } .text-justify { text-align: justify; } .text-left { text-align: left; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .text-justify { text-align: left; } }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.buttons.align-left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 13px 28px; border-radius: var(--radius-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 42, 67, .16); }
.btn:active { transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--cta-yellow); color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover-bg); color: var(--blue); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-light { background: #fff; color: var(--navy); }

/* ================================================================== hero / page banners */
.hero { position: relative; min-height: clamp(320px, 34vw, 520px); display: flex; align-items: center; background-color: var(--green-deep); background-size: cover; background-position: center; background-repeat: no-repeat; color: #fff; padding: clamp(3rem, 2.4rem + 3vw, 5rem) 0; }
.hero .container { width: 100%; position: relative; z-index: 1; }
.hero-inner { width: min(58%, 720px); }
.hero-title, .hero-eyebrow, .hero-text { text-shadow: 0 1px 14px rgba(0, 0, 0, .28); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--gold-light); }
.hero-eyebrow::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
.hero-title { font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -.005em; color: #fff; text-wrap: balance; }
.hero-text { margin-top: 20px; max-width: 640px; font-size: var(--fs-lead); line-height: 1.7; color: rgba(255, 255, 255, .92); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.hero-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 100px; background: rgba(255, 255, 255, .10); backdrop-filter: blur(6px); font-size: var(--fs-small); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.hero-pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero .buttons { margin-top: 28px; }
/* Homepage hero: larger title and a soft shade on the text side for depth */
.hero.style-home { min-height: clamp(460px, 44vw, 640px); }
.hero.style-home .hero-title { font-size: var(--fs-display); }
.hero.style-home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 38, 22, .55) 0%, rgba(8, 38, 22, .15) 55%, rgba(8, 38, 22, 0) 80%); }
/* Breadcrumb inside page banners */
.hero-crumbs { margin-bottom: 14px; }
.hero-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: rgba(255, 255, 255, .85); }
.hero-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.hero-crumbs a:hover { border-bottom-color: var(--gold); }
.hero-crumbs svg { width: 12px; height: 12px; opacity: .8; }
@media (max-width: 1024px) {
  .hero-inner { width: min(80%, 720px); }
  /* The banners are green on the left and a photo on the right: anchor to the green side and add a
     brand-green veil so white text always has enough contrast over the photo. */
  .hero { background-position: left center; }
  .hero::before, .hero.style-home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 70, 40, .88) 0%, rgba(18, 70, 40, .72) 60%, rgba(18, 70, 40, .55) 100%); }
}
@media (max-width: 767px) {
  .hero { min-height: 0; text-align: center; justify-content: center; }
  .hero.style-home { min-height: 0; }
  .hero::before, .hero.style-home::before { background: rgba(18, 70, 40, .82); }
  .hero-inner { width: 100%; }
  .hero-eyebrow { justify-content: center; }
  .hero-eyebrow::before { display: none; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-pills, .hero-crumbs ol { justify-content: center; }
  .hero-pills li { font-size: 13px; padding: 8px 13px; }
  .hero.pills-hide-mobile .hero-pills { display: none; }
  .hero[data-mobile-bg] { background-image: var(--mobile-bg) !important; }
}

/* ================================================================== image + text */
.image-text-split { display: flex; min-height: clamp(420px, 44vw, 640px); }
.image-text-split .it-image { flex: 0 0 50%; background-size: cover; background-position: center; }
.image-text-split .it-body { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; padding: var(--space-section) clamp(1.5rem, 1rem + 4vw, 5.5rem); }
.image-text-split .it-body > * { max-width: 620px; }
.image-text-split.image-right { flex-direction: row-reverse; }
.image-text .section-head { text-align: left; margin-left: 0; margin-bottom: 24px; }
.image-text-contained { display: flex; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.image-text-contained .it-image { flex: 0 0 40%; }
.image-text-contained .it-image a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.image-text-contained .it-image img { width: 100%; transition: transform .5s ease; }
.image-text-contained .it-image a:hover img { transform: scale(1.03); }
.image-text-contained .it-body { flex: 1; min-width: 0; }
.image-text-contained.image-right { flex-direction: row-reverse; }
.sub-heading { font-family: var(--font-heading); font-size: var(--fs-h3-lg); font-weight: 600; line-height: 1.3; color: var(--heading); text-wrap: balance; }
.it-body .prose { margin-top: 22px; }
@media (max-width: 767px) {
  .image-text-split, .image-text-split.image-right, .image-text-contained, .image-text-contained.image-right { flex-direction: column; min-height: 0; }
  .image-text-split .it-image { min-height: 280px; flex-basis: auto; width: 100%; }
  .image-text-split .it-body { padding: var(--space-section) var(--gutter); }
  .image-text-contained .it-image { flex-basis: auto; width: 100%; }
  .it-image.hide-mobile { display: none; }
}

/* ================================================================== cards */
/* Flex instead of grid so an incomplete last row is centred */
.cards { --gap: var(--gap-grid); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.cards > .card { flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3)); min-width: 0; }
.cards.narrow-grid { max-width: 900px; margin-left: auto; margin-right: auto; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: var(--pad-card); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dbe4; }
.card:hover::before { transform: scaleX(1); }
.card.align-left { text-align: left; }
.card-icon { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 4px; }
.card.align-left .card-icon { margin-left: 0; }
.card-title { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; color: var(--heading); }
.card-text { font-size: var(--fs-body); line-height: 1.65; color: var(--text); }
.card-text p { margin-bottom: .6em; }
.card-text ul { text-align: left; padding-left: 1.2em; margin: .4em 0 0; }
.card-text li + li { margin-top: .3em; }
.card-link { margin-top: auto; font-weight: 600; color: var(--blue); text-decoration: none; }
/* Tinted cards (e.g. Mission & Vision): gold accent on the left */
.card.style-tinted { background: var(--tint); border-left: 4px solid var(--gold); }
.card.style-tinted::before { display: none; }
.card.style-tinted .card-title { font-size: var(--fs-h3-lg); }
/* Outline cards (e.g. Working Groups): navy title bar */
.card.style-outline { padding: 0; gap: 0; text-align: left; }
.card.style-outline::before { height: 4px; transform: scaleX(1); z-index: 1; }
.card.style-outline .card-title { padding: 22px var(--pad-card) 18px; background: var(--navy-dark); color: #fff; font-size: var(--fs-h3); line-height: 1.35; }
.card.style-outline .card-text { padding: 20px var(--pad-card) var(--pad-card); }
.feature-intro, .feature-outro { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; font-size: var(--fs-lead); line-height: 1.65; color: var(--text); }
.feature-intro + .feature-image, .feature-image + .feature-intro { margin-top: 24px; }
.feature-intro + .cards, .feature-image + .cards { margin-top: var(--space-head); }
.feature-intro ~ .feature-intro { margin-top: 24px; }
.cards + .feature-outro { margin-top: var(--space-head); }
.feature-image { width: clamp(140px, 16vw, 220px); margin-left: auto; margin-right: auto; }
.feature-image img { margin: 0 auto; }
.section.theme-light .card { color: var(--text); }
@media (max-width: 1024px) { .cards > .card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 767px) { .cards > .card { flex-basis: 100%; } .card-icon { width: 56px; height: 56px; } }

/* ================================================================== image card slider (focus areas) */
.card-slider { max-width: 1120px; margin: 0 auto; overflow: hidden; }
.card-slider-track { display: flex; gap: 20px; transition: transform .6s ease; list-style: none; margin: 0; padding: 0; }
.card-slide { position: relative; flex: 0 0 auto; width: 350px; height: 450px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-slide:hover img { transform: scale(1.05); }
.card-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 20, 38, .82) 0%, rgba(6, 20, 38, .2) 45%, transparent 70%); pointer-events: none; }
.card-slide-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; margin: 0; padding-top: 14px; color: #fff; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.card-slide-caption::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--gold); }
.card-slide a { color: inherit; }
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #cfd6de; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--heading); transition: background-color .2s, color .2s, border-color .2s; }
.slider-btn:hover { border-color: var(--green); color: var(--green); }
.slider-btn.next { background: var(--green); border-color: var(--green); color: #fff; }
.slider-btn.next:hover { background: var(--green-deep); }
.slider-btn svg { width: 22px; height: 22px; }
@media (max-width: 768px) { .card-slide { width: 280px; height: 380px; } }

/* ================================================================== news tabs */
.tabs-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 var(--space-head); padding: 0; list-style: none; }
.tab-btn { min-height: 44px; border: 1px solid #cfd6de; background: #fff; color: var(--heading); border-radius: 100px; padding: 8px 26px; font-size: var(--fs-small); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tab-btn:hover { border-color: var(--gold); }
.tab-btn[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(223, 166, 31, .28); }
.tab-panel[hidden] { display: none; }
.coming-soon { max-width: 560px; margin: 0 auto; padding: 44px 24px; border: 2px dashed #d3dbe4; border-radius: var(--radius); text-align: center; color: var(--muted); font-family: var(--font-heading); font-size: var(--fs-h3-lg); font-weight: 600; }

/* ================================================================== news cards */
/* Flex so that one or two posts are centred instead of sitting in the first column */
.post-grid { --gap: var(--gap-grid); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.post-grid > * { flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3)); max-width: 420px; min-width: 0; }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-bg); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card-date { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.post-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin: 0 0 10px; font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
.post-card-title a { color: var(--heading); text-decoration: none; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; font-size: var(--fs-small); line-height: 1.65; color: var(--text); }
.post-card .btn-read { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: auto; align-self: flex-start; padding: 8px 18px; border-radius: var(--radius-sm); background: var(--blue); color: #fff; text-decoration: none; font-size: var(--fs-small); font-weight: 600; transition: background-color .2s, color .2s; }
.post-card .btn-read::after { content: "→"; transition: transform .2s; }
.post-card .btn-read:hover { background: var(--blue-hover-bg); color: var(--blue); }
.post-card .btn-read:hover::after { transform: translateX(3px); }
@media (max-width: 1024px) { .post-grid > * { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 767px) { .post-grid > * { flex-basis: 100%; max-width: 480px; } }

/* ================================================================== galleries */
.gallery-mosaic { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); grid-auto-rows: 300px 160px 230px 340px; gap: var(--gap-grid); }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap-grid); }
.gallery-grid .gallery-item { aspect-ratio: 4 / 3; }
.gallery-masonry { column-count: var(--cols, 4); column-gap: var(--gap-grid); }
.gallery-masonry .gallery-item { display: inline-block; width: 100%; margin: 0 0 var(--gap-grid); }
.gallery-masonry .gallery-item img { height: auto; }
.gallery-item { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius); background: var(--grey-bg); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 20, 38, .35), transparent 50%); opacity: 0; transition: opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.no-lightbox { cursor: default; }
@media (max-width: 1024px) { .gallery-mosaic { grid-template-columns: repeat(3, 1fr); } .gallery-masonry { column-count: 3; } }
@media (max-width: 768px) { .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .gallery-masonry { column-count: 2; } .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-masonry { column-count: 1; } }

/* ================================================================== image carousel */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; gap: 16px; transition: transform .5s ease; list-style: none; margin: 0; padding: 0; }
.carousel-slide { flex: 0 0 calc((100% - (var(--per, 3) - 1) * 16px) / var(--per, 3)); aspect-ratio: 350 / 250; overflow: hidden; border-radius: var(--radius); }
.carousel-slide button { padding: 0; border: 0; background: none; width: 100%; height: 100%; cursor: zoom-in; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carousel-slide button:hover img { transform: scale(1.04); }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--heading); box-shadow: var(--shadow-md); cursor: pointer; transition: background-color .2s, color .2s; }
.carousel-nav:hover { background: var(--green); color: #fff; }
.carousel-nav.prev { left: 14px; } .carousel-nav.next { right: 14px; }
.carousel-nav svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; margin-top: 18px; list-style: none; padding: 0; }
/* 24×24 tap area around a 10px dot */
.carousel-dots button { position: relative; width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; }
.carousel-dots button::before { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #b9bdc3; transition: background-color .2s, transform .2s; }
.carousel-dots button:hover::before { background: #6b6f75; }
.carousel-dots button[aria-current="true"]::before { background: var(--navy); transform: scale(1.2); }
.carousel-counter { font-size: var(--fs-small); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.rich-text + .carousel-section .carousel, .section .carousel { margin-top: 0; }
@media (max-width: 1024px) { .carousel-slide { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 767px) { .carousel-slide { flex-basis: 100%; } .carousel-nav { width: 44px; height: 44px; } }

/* ================================================================== lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(6, 9, 20, .92); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; background: #fff; }
.lightbox figcaption { color: #efe7d8; margin-top: 14px; font-size: var(--fs-body); }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(201, 162, 74, .28); background: rgba(20, 32, 70, .7); color: #e7c877; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ================================================================== team */
.team-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap-grid); }
.team-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: var(--pad-card); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.team-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .3s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card:hover::before { transform: scaleX(1); }
.team-avatar { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e4ecf2; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(223, 166, 31, .55); }
.team-avatar img, .team-avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--heading); }
.team-role { margin: 6px 0 0; font-size: .875rem; line-height: 1.5; color: #4a6278; }
.team-org { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.team-card hr { width: 100%; margin: auto 0 0; border: 0; border-top: 1px solid var(--border); }
.team-email { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; font-size: .875rem; color: #4a6278; }
.team-email svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.team-email a { display: inline-block; padding: 4px 0; color: #185FA5; text-decoration: none; word-break: break-all; }
.team-email a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ================================================================== press clippings */
.press-section { --newsprint: #f6f1e6; --charcoal: #262420; --press-red: #a92e28; --press-navy: #142046; max-width: 1000px; margin: 0 auto; padding: 0 0 12px; font-family: "Inter", sans-serif; }
.clip-grid { display: flex; justify-content: center; align-items: flex-start; gap: var(--gap-grid); }
.clip-card { flex: 1 1 0; max-width: 460px; min-width: 0; background: var(--newsprint); border-radius: 4px; padding: 22px 20px 20px; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .05); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.clip-card:nth-child(odd) { transform: rotate(.6deg); }
.clip-card:nth-child(even) { transform: rotate(-.55deg); }
.clip-card:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 30px 54px -18px rgba(0, 0, 0, .6); }
.clip-thumb { display: flex; align-items: center; justify-content: center; width: 100%; max-height: 378px; overflow: hidden; background: #fff; border: 1px solid rgba(38, 36, 32, .1); margin-bottom: 16px; padding: 0; cursor: zoom-in; }
.clip-thumb img { max-width: 100%; max-height: 378px; width: auto; object-fit: contain; transition: transform .5s ease; }
.clip-thumb:hover img { transform: scale(1.035); }
.dateline { display: block; font-family: "Courier Prime", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--press-red); margin-bottom: 6px; }
.clip-outlet { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.375rem; line-height: 1.25; color: var(--charcoal); margin: 0 0 12px; }
.clip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: .875rem; font-weight: 600; color: var(--press-navy); text-decoration: none; border-bottom: 1px solid rgba(20, 32, 70, .35); padding-bottom: 1px; }
.clip-link:hover { color: var(--press-red); border-color: var(--press-red); }
@media (max-width: 768px) { .clip-grid { flex-direction: column; align-items: center; } .clip-card { width: 100%; flex: 0 0 auto; } .clip-card:nth-child(n) { transform: none; } }

/* ================================================================== video library */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid); }
.video-card { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(200, 0, 0, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.video-card figcaption { margin-top: 12px; font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 600; color: var(--heading); }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .video-grid { grid-template-columns: 1fr; } }

/* ================================================================== contact */
.contact-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap-grid); }
.contact-card { position: relative; overflow: hidden; padding: var(--pad-card); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.contact-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .3s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 16px; }
.contact-card h3 { margin-bottom: 12px; font-size: var(--fs-h3); }
.contact-card p { margin: 0 0 4px; font-size: var(--fs-body); line-height: 1.65; color: var(--text); }
.contact-card a { display: inline-block; padding: 3px 0; color: var(--text); text-decoration: none; }
.contact-card a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

.contact-form { max-width: 760px; margin: 0 auto; padding: var(--pad-card); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: var(--fs-small); color: var(--heading); }
.form-field .req { color: #b42318; }
.form-field input, .form-field textarea { font: inherit; border: 1px solid #c9cdd2; border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; background: #fff; color: #111; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(26, 68, 168, .18); }
.form-field textarea { min-height: 150px; resize: vertical; }
.field-error { color: #b42318; font-size: .875rem; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.alert-success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }

/* ================================================================== call to action panel */
.cta-panel { position: relative; overflow: hidden; max-width: 1080px; margin: 0 auto; padding: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) clamp(1.5rem, .8rem + 4vw, 5rem); border-radius: var(--radius-lg); text-align: center; color: rgba(255, 255, 255, .92);
  background:
    radial-gradient(circle at 12% 18%, rgba(223, 166, 31, .22), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(135deg, var(--green-deep) 0%, #17423a 45%, var(--navy) 100%);
  box-shadow: var(--shadow-lg); }
.cta-panel::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); pointer-events: none; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .section-head { margin-bottom: 18px; }
.cta-panel .section-heading { color: #fff; }
.cta-panel .lead { max-width: 680px; margin: 0 auto; color: rgba(255, 255, 255, .92); }
.cta-panel .btn-outline, .cta-panel .btn-light { border-color: rgba(255, 255, 255, .7); }

/* ================================================================== stats / testimonials / faq / logos */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap-grid); text-align: center; list-style: none; padding: 0; margin: 0; }
.stats li { padding: var(--pad-card) 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-value { display: block; font-family: var(--font-heading); font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--gold-text); }
.stat-label { display: block; margin-top: 8px; font-size: var(--fs-small); color: var(--text); }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap-grid); }
.testimonial { margin: 0; padding: var(--pad-card); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.testimonial blockquote { margin: 0 0 18px; font-size: var(--fs-lead); line-height: 1.6; color: var(--heading); font-style: italic; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial .t-name { font-weight: 600; color: var(--heading); } .testimonial .t-role { font-size: .875rem; color: var(--text); }
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { margin-bottom: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 600; color: var(--heading); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-text); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .prose { padding: 0 22px 20px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 48px; list-style: none; padding: 0; margin: 0; }
.logos img { max-height: 70px; width: auto; filter: grayscale(.2); transition: filter .2s; }
.logos a:hover img { filter: none; }

/* ================================================================== single post */
.post-hero { height: clamp(240px, 42vw, 560px); background: center / cover no-repeat var(--grey-bg); }
.breadcrumbs { background: var(--navy); color: rgba(255, 255, 255, .85); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter); list-style: none; font-size: var(--fs-small); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs svg { width: 12px; height: 12px; }
.post-header { max-width: 900px; margin: 0 auto; padding-top: var(--space-section); text-align: center; }
.post-title { font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); color: var(--heading); text-wrap: balance; }
.post-meta { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
.post-meta a { color: var(--muted); }
.post-content { max-width: 760px; margin: var(--space-head) auto 0; font-size: var(--fs-body); line-height: 1.8; color: var(--text); }
.post-gallery { max-width: 1040px; margin: var(--space-head) auto 0; padding-bottom: var(--space-section); }
.related { padding-top: var(--space-section); padding-bottom: var(--space-section); background: var(--tint); }
.related-title { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-heading); text-align: center; color: var(--heading); }
.related .section-head { margin-bottom: var(--space-head); }

/* ================================================================== archive / search / errors */
.page-head { position: relative; padding: var(--space-section) 0; text-align: center; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(223, 166, 31, .18), transparent 40%), linear-gradient(135deg, var(--green-deep) 0%, var(--navy) 100%); }
.page-head h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); color: #fff; }
.page-head p { margin: 0 0 10px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto var(--space-head); }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border: 1px solid #c9cdd2; border-radius: var(--radius-sm); }
.search-results { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; }
.search-results li { padding: 22px 0; border-bottom: 1px solid var(--border); }
.search-results a { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 600; color: var(--heading); text-decoration: none; }
.search-results a:hover { color: var(--blue); }
.search-excerpt { margin-top: 6px; font-size: var(--fs-small); }
.error-search { margin-top: 28px; margin-bottom: 20px; }
.search-results .type { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); font-weight: 700; }
.error-page { padding: var(--space-section) 20px; text-align: center; }
.error-page .code { font-family: var(--font-heading); font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); font-weight: 700; line-height: 1; color: var(--gold-text); }
.error-page h1 { margin: 12px 0 14px; font-size: var(--fs-h2); }
.error-links { list-style: none; padding: 0; margin: 10px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.error-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 100px; color: var(--navy); text-decoration: none; transition: background-color .2s, border-color .2s; }
.error-links a:hover { background: var(--nav-hover); border-color: #c9d2dc; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--space-head) 0 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--navy); }
.pagination [aria-current="page"] span { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ================================================================== footer */
.site-footer { padding: clamp(3rem, 2.4rem + 2.4vw, 4.5rem) 0 28px; background: var(--navy); color: rgba(255, 255, 255, .88); }
.footer-top { display: flex; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.footer-brand { flex: 0 0 24%; }
.footer-brand img { width: 90%; max-width: 240px; margin-bottom: 20px; }
.footer-brand p { font-size: var(--fs-small); line-height: 1.7; }
.footer-col { flex: 0 0 20%; }
.footer-col.contact { flex-basis: 28%; }
.footer-col h2 { position: relative; margin-bottom: 22px; padding-bottom: 12px; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: #fff; }
.footer-col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 3px 0; }
.footer-col li:first-child { padding-top: 0; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: var(--fs-small); transition: color .25s; }
.footer-col a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.footer-col svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .8); }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .4); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover, .social a:focus-visible { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.social svg { width: 18px; height: 18px; }
.to-top { position: fixed; right: 32px; bottom: 32px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--amber); color: var(--navy); box-shadow: var(--shadow-md); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, transform .2s; }
.to-top:hover { transform: translateY(-2px); }
.to-top.visible { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 1024px) { .footer-top { flex-wrap: wrap; } .footer-brand { flex-basis: 100%; } .footer-col { flex: 1 1 28%; } }
@media (max-width: 767px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { text-align: center; } .footer-brand img { width: 60%; max-width: 210px; margin: 0 auto 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .to-top { right: 18px; bottom: 18px; }
}

/* ================================================================== print */
@media print {
  .topbar, .site-header, .site-footer, .to-top, .lightbox, .slider-controls, .carousel-nav, .carousel-dots, .preview-bar, .buttons, .skip-link { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .hero, .page-head, .cta-panel { min-height: 0; padding: 0 0 12pt; background: none !important; color: #000; box-shadow: none; }
  .hero::before, .cta-panel::after { display: none; }
  .hero-title, .hero-eyebrow, .hero-text, .cta-panel .section-heading, .cta-panel .lead, .page-head h1, .section.theme-light, .section.theme-light .section-heading { color: #000 !important; text-shadow: none; }
  .section { padding: 12pt 0; background: none !important; }
  .card, .post-card, .team-card, .contact-card { break-inside: avoid; box-shadow: none; transform: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  img { max-width: 60% !important; }
}

/* Reduced motion: no hover lifts */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .post-card:hover, .contact-card:hover, .team-card:hover, .btn:hover, .to-top:hover { transform: none; }
}
