/* Madison County Health Coalition
   Look: warm and welcoming, rooted in the Ozark hills of Madison County. Navy carried over from the old site,
   teal and green for health, a sunrise gold, coral for "get help" actions.
   Fonts (self-hosted): Fraunces for headings, Public Sans for text (the U.S. Web Design System's plain,
   very readable sans). Base size 18px for older eyes. */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --navy: #0b3557; --teal: #127a6a; --teal-deep: #0c5a4e; --green: #3f9a5a; --sun: #f2a93b; --coral: #d9573a; --plum: #7b5aa6; --sky: #d8ecee; --coral-text: #b2442a;
  --bg: #fbf8f2; --bg-alt: #f3ede2; --bg-soft: #eaf3f1; --card: #ffffff; --text: #1d2a36; --muted: #55636f; --ink: #0b3557;
  --line: #e2dacb; --link: #0c6a5c; --header-bg: rgba(251, 248, 242, .92);
  --hero-top: #dcefee; --hill1: #9fd0c2; --hill2: #5fae98; --hill-f1: #1b4f6e; --hill-f2: #0b3557; --foot: #0b3557;
  --lm-sky: #dcefee; --lm-sun: #f2a93b; --lm-h1: #3f9a5a; --lm-h2: #127a6a; --lm-line: #0b3557;
  --shadow-sm: 0 1px 2px rgba(30, 40, 50, .06), 0 6px 20px rgba(30, 40, 50, .07);
  --shadow-lg: 0 2px 6px rgba(30, 40, 50, .08), 0 18px 44px rgba(30, 40, 50, .14);
  --radius: 16px; --head-font: "Fraunces", Georgia, serif; --body-font: "Public Sans", system-ui, sans-serif;
  /* names the editor styles (edit.css) use */
  --red: var(--teal); --red-deep: var(--teal-deep); --charcoal: var(--navy); --nickel: var(--muted); --shadow: var(--navy); --head: var(--ink);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #36b39b; --teal-deep: #2a9883; --green: #5cbf7a; --sun: #f5b955; --coral: #ef7c5d; --plum: #a98bd6; --sky: #17323d;
    --bg: #0e1a21; --bg-alt: #13242d; --bg-soft: #142a31; --card: #172a34; --text: #e4ecee; --muted: #a0b3ba; --ink: #f4ede0;
    --line: #26414d; --link: #6fd6c1; --header-bg: rgba(14, 26, 33, .92);
    --hero-top: #12303a; --hill1: #1b4a4a; --hill2: #1d5f55; --hill-f1: #0c2a39; --hill-f2: #081d28; --foot: #081d28;
    --lm-sky: #17394a; --lm-line: #f4ede0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 18px 44px rgba(0,0,0,.4);
    --coral-text: #ef7c5d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --coral-text: #ef7c5d;
  --teal: #36b39b; --teal-deep: #2a9883; --green: #5cbf7a; --sun: #f5b955; --coral: #ef7c5d; --plum: #a98bd6; --sky: #17323d;
  --bg: #0e1a21; --bg-alt: #13242d; --bg-soft: #142a31; --card: #172a34; --text: #e4ecee; --muted: #a0b3ba; --ink: #f4ede0;
  --line: #26414d; --link: #6fd6c1; --header-bg: rgba(14, 26, 33, .92);
  --hero-top: #12303a; --hill1: #1b4a4a; --hill2: #1d5f55; --hill-f1: #0c2a39; --hill-f2: #081d28; --foot: #081d28;
  --lm-sky: #17394a; --lm-line: #f4ede0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 18px 44px rgba(0,0,0,.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--body-font); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--head-font); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; font-optical-sizing: auto; letter-spacing: -.01em; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.15em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.eyebrow { font: 700 14px var(--body-font); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }

/* logo mark */
.mark { width: 52px; height: 52px; flex: none; }
.lm-sky { fill: var(--lm-sky); } .lm-sun { fill: var(--lm-sun); } .lm-hill1 { fill: var(--lm-h1); } .lm-hill2 { fill: var(--lm-h2); }
.lm-line { fill: none; stroke: var(--lm-line); stroke-width: 3.6; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 2px solid transparent; border-radius: 999px; padding: 10px 20px; font: 700 16px var(--body-font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
:root[data-theme="dark"] .btn { color: #082019; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #082019; } }
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-big { padding: 14px 26px; font-size: 18px; }
.btn.btn-ghost, :root[data-theme] .btn.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.btn-ghost { color: var(--ink); } }
.btn-ghost:hover { background: var(--card); border-color: var(--teal); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more:hover .ic { transform: translateX(3px); }
.more .ic { transition: transform .15s; }

.preview-banner { background: repeating-linear-gradient(45deg, #0b3557, #0b3557 12px, #12446b 12px, #12446b 24px); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 4px 16px; }

/* quit-line strip */
.helpbar { background: var(--navy); color: #f4ede0; font-size: 15px; }
:root[data-theme="dark"] .helpbar { background: #071820; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .helpbar { background: #071820; } }
.helpbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.helpbar p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.helpbar a { color: #fff; text-decoration: none; }
.helpbar a:hover { text-decoration: underline; }
.helpbar b { color: #ffd38a; letter-spacing: .02em; }
.hb-dot { width: 9px; height: 9px; border-radius: 50%; background: #5ee0a3; box-shadow: 0 0 0 0 rgba(94, 224, 163, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 163, .55); } 70% { box-shadow: 0 0 0 9px rgba(94, 224, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 224, 163, 0); } }
.hb-right { display: flex; align-items: center; gap: 12px; }
.hb-right a, .theme-btn { display: inline-flex; padding: 4px; color: #f4ede0; }
.theme-btn { background: none; border: 0; cursor: pointer; }
/* translate menu (Google's translator loads only after a language is picked) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #f4ede0; font: 600 14px/1 var(--body, inherit); padding: 5px 11px 5px 8px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.2); }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 250px; background: var(--card, #fff); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(10,30,50,.22); padding: 8px; }
.lang-menu:not([hidden]) { display: flex; flex-direction: column; }
.lang-menu p { display: block; }
.lang-menu[hidden] { display: none; }
.lang-h { margin: 4px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang-menu button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 8px; background: none; border: 0; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 15.5px; color: var(--text); text-align: left; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--soft, rgba(0,0,0,.06)); }
.lang-menu small { font-size: 12.5px; color: var(--muted); }
.lang-more-btn { color: var(--teal, inherit) !important; font-weight: 600 !important; }
.lang-menu.more .lang-more-btn { display: none; }
.lang-g { display: none; padding: 4px 10px 6px; }
.lang-menu.more .lang-g { display: block; }
.lang-g select { width: 100%; font: inherit; font-size: 15px; padding: 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg, #fff); color: var(--text); }
.lang-g .goog-te-gadget { font-size: 11px; color: var(--muted); }
.lang-note { margin: 6px 10px 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
/* keep Google's own bar and hover pop-ups out of the way */
body > .skiptranslate, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.theme-btn .ic:last-child { display: none; }
:root[data-theme="dark"] .theme-btn .ic:first-child { display: none; }
:root[data-theme="dark"] .theme-btn .ic:last-child { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ic:first-child { display: none; }
  :root:not([data-theme="light"]) .theme-btn .ic:last-child { display: inline; }
}

/* header + nav */
.header { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.02; }
.brand-txt small { font: 700 12.5px var(--body-font); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.brand-txt b { font: 600 23px var(--head-font); color: var(--ink); letter-spacing: -.01em; }
.brand:hover .lm-sun { animation: rise 1.2s ease-in-out; }
@keyframes rise { 50% { transform: translateY(-4px); } }
.brand img { max-height: 58px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: inline; } }
.nav { display: flex; align-items: center; gap: 10px; }
.nav-list { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-top { display: flex; align-items: center; }
.nav-top a { color: var(--ink); text-decoration: none; font: 700 16px var(--body-font); padding: 10px 12px; border-radius: 10px; }
.has-sub > .nav-top a::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 3px 8px; opacity: .6; }
.nav-item:hover > .nav-top a, .nav-item:focus-within > .nav-top a { background: var(--bg-soft); }
.nav-item.active > .nav-top a { color: var(--teal); box-shadow: inset 0 -3px 0 var(--sun); border-radius: 10px 10px 0 0; }
.sub-btn { display: none; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 4px); min-width: 260px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 60; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item:hover > .sub, .nav-item:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 14px; color: var(--text); text-decoration: none; font-size: 16px; border-radius: 9px; }
.sub a:hover, .sub a[aria-current] { background: var(--bg-soft); color: var(--link); }
.search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.search input { border: 0; background: transparent; color: var(--text); padding: 8px 4px 8px 14px; font: inherit; font-size: 15px; width: 110px; min-width: 0; transition: width .2s; }
.search input:focus { outline: none; width: 170px; }
.search:focus-within { outline: 3px solid var(--sun); }
.search button { border: 0; background: transparent; color: var(--muted); padding: 0 12px; cursor: pointer; display: flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; }
.nav-cta { background: var(--coral-text); padding: 9px 16px; }
.nav-cta:hover { background: #9a3a23; }
:root[data-theme="dark"] .nav-cta:hover { background: #ff9a7e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-cta:hover { background: #ff9a7e; } }
.menu-btn { display: none; align-items: center; gap: 6px; background: var(--navy); color: #fff; border: 0; border-radius: 12px; padding: 10px 14px; font: 700 16px var(--body-font); cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }

/* hills */
.hills { display: block; width: 100%; height: 70px; }
.hills .h1 { fill: var(--hill1); } .hills .h2 { fill: var(--hill2); }

/* home: hero */
.hero { position: relative; background: linear-gradient(180deg, var(--hero-top), var(--bg) 85%); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 169, 59, .35), rgba(242, 169, 59, 0) 68%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 16px; position: relative; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 650; line-height: 1.04; margin-bottom: 18px; letter-spacing: -.02em; }
.hero-lead { font-size: 21px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-height: 420px; }
.collage { position: relative; height: 420px; }
.ph { position: absolute; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-lg); border: 6px solid var(--card); background: var(--bg-alt); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-0 { left: 6%; top: 0; width: 64%; height: 76%; transform: rotate(-2deg); z-index: 2; }
.ph-1 { right: 0; top: 14%; width: 40%; height: 46%; transform: rotate(4deg); z-index: 1; }
.ph-2 { right: 6%; bottom: 0; width: 38%; height: 40%; transform: rotate(-3deg); z-index: 3; }
.quitcard { position: absolute; left: 0; bottom: 6px; z-index: 4; display: flex; align-items: center; gap: 14px; background: var(--card); color: var(--text); text-decoration: none; padding: 14px 20px 14px 14px; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 330px; transition: transform .2s; }
.quitcard:hover { transform: translateY(-3px) rotate(-.5deg); }
.qc-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; }
.qc-ic .ic { width: 24px; height: 24px; }
.quitcard small { display: block; font-weight: 700; color: var(--coral-text); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.quitcard b { display: block; font: 600 26px var(--head-font); color: var(--ink); line-height: 1.1; }
.quitcard em { display: block; font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* cards (home quick links, programs, page sections) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.mod-cards .cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.mod-cards .card { padding: 18px; }
.mod-cards .card h2, .mod-cards .card h3 { font-size: 19px; }
.mod-cards .card p { font-size: 15.5px; }
.card { --tone: var(--teal); position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--tone); }
.card h2, .card h3 { font-size: 22px; margin: 14px 0 6px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 16.5px; flex: 1; }
.card-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); }
.card-ic .ic { width: 26px; height: 26px; }
.card-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: color-mix(in srgb, var(--tone) 70%, var(--text)); font-size: 15.5px; }
a.card:hover .card-go .ic { transform: translateX(4px); }
.card-go .ic { transition: transform .15s; }
.tone-0 { --tone: var(--teal); } .tone-1 { --tone: var(--coral); } .tone-2 { --tone: #c98612; } .tone-3 { --tone: var(--plum); } .tone-4 { --tone: var(--green); } .tone-5 { --tone: #2f78b5; }
:root[data-theme="dark"] .tone-2 { --tone: var(--sun); } :root[data-theme="dark"] .tone-5 { --tone: #6fb1ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tone-2 { --tone: var(--sun); } :root:not([data-theme="light"]) .tone-5 { --tone: #6fb1ea; } }
.actions-sec { position: relative; z-index: 2; margin-top: -8px; }
.actions { grid-template-columns: repeat(4, 1fr); }
.actions .card { border-top: 5px solid var(--tone); }

/* numbers */
.stats { margin-top: 56px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--navy); color: #fff; border-radius: 24px; padding: 30px 12px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .stats-in { background: #10303f; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats-in { background: #10303f; } }
.stats-in::after { content: ""; position: absolute; right: -40px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgba(242, 169, 59, .18); }
.stat { text-align: center; padding: 6px 16px; position: relative; z-index: 1; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.16); }
.stat b { display: block; font: 600 clamp(32px, 4vw, 46px)/1.1 var(--head-font); color: #ffd38a; }
.stat span { font-size: 16px; color: #d6e4ea; }

/* Drug-Free Communities feature (colours from the DFC logos: navy, gold, red) */
.dfc-sec { margin-top: 28px; }
.dfc-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: radial-gradient(circle at 12% 50%, #1b2a5c, #0f1636 62%); color: #e9ecf7; border-radius: 24px; padding: 34px 40px; border: 2px solid #d4a20e; box-shadow: var(--shadow-lg); }
.dfc-card::after { content: "★ ★ ★ ★ ★ ★"; position: absolute; right: 26px; top: 14px; color: #d4a20e; opacity: .35; letter-spacing: .35em; font-size: 14px; }
.dfc-logos { display: flex; align-items: center; gap: 14px; }
.dfc-seal img { width: 168px; height: 168px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 0 0 6px rgba(212, 162, 14, .25); }
.dfc-sky img { width: 150px; border-radius: 14px; background: #fff; padding: 6px; display: block; }
.dfc-txt .eyebrow { color: #f2c94c; }
.dfc-txt h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.dfc-txt p { margin: 0 0 12px; color: #d7dcef; font-size: 17.5px; }
.dfc-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; margin-bottom: 18px !important; }
.dfc-contact b { color: #fff; }
.dfc-contact a { color: #f2c94c; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.dfc-contact a:hover { text-decoration: underline; }
.dfc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dfc-card .btn { background: #d4a20e; color: #0f1636; }
.dfc-card .btn:hover { background: #f2c94c; }
.dfc-card .btn.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.dfc-card .btn.btn-ghost:hover { background: rgba(255,255,255,.1); }
.f-dfc { display: flex !important; align-items: center !important; gap: 10px !important; margin-top: 8px; }
.f-dfc img { width: 46px; height: 46px; border-radius: 50%; background: #fff; flex: none; }
.f-dfc span { font-size: 14px; line-height: 1.3; }

/* about */
.about-sec { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-top: 80px; }
.about-photo { position: relative; }
.about-photo img { border-radius: 30px 30px 30px 120px; width: 100%; aspect-ratio: 4/4.3; object-fit: cover; box-shadow: var(--shadow-lg); display: block; }
.about-photo::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: 30px 30px 30px 120px; background: var(--sky); z-index: -1; }
.about-txt h2 { font-size: clamp(30px, 3.6vw, 42px); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.mv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mv-card h3 { font-size: 19px; margin-bottom: 6px; color: var(--teal); }
.mv-card p { margin: 0; font-size: 16.5px; }

/* section heads */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.sec-head > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

.programs-sec { background: var(--bg-alt); margin-top: 84px; padding: 64px 0; position: relative; }
.programs-sec::before, .programs-sec::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; background: var(--bg); }
.programs-sec::before { top: -1px; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.programs-sec::after { bottom: -1px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.programs { grid-template-columns: repeat(3, 1fr); }

/* news */
.news-sec { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 70px; }
.news-sec:not(:has(.events-box)) { grid-template-columns: 1fr; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.news-card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.news-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nc-img { display: block; aspect-ratio: 16/10; background: var(--sky); overflow: hidden; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card a:hover .nc-img img { transform: scale(1.04); }
.nc-mark { width: 40%; height: 100%; margin: 0 auto; display: block; opacity: .8; }
.nc-body { padding: 16px 18px 20px; display: block; }
.nc-body time { font-size: 14px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.nc-body h3 { font-size: 21px; margin: 6px 0 8px; }
.nc-body p { margin: 0; font-size: 16px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.events-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; align-self: start; box-shadow: var(--shadow-sm); }
.events-box h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.events-box h2 .ic { color: var(--coral); }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.events li:first-child { border-top: 0; }
.ev-date { flex: none; width: 56px; text-align: center; background: var(--bg-soft); border-radius: 12px; padding: 6px 0; font: 600 22px/1.1 var(--head-font); color: var(--ink); }
.ev-date b { display: block; font: 700 12px var(--body-font); text-transform: uppercase; letter-spacing: .1em; color: var(--coral-text); }
.ev-txt b { display: block; line-height: 1.3; }
.ev-txt small { display: block; color: var(--muted); font-size: 15px; }
.events-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; display: none; }
.editing .events-note { display: block; }

a.more { margin-top: 10px; }
.ev-txt a { color: inherit; text-decoration: none; }
.ev-txt a:hover b { color: var(--link); text-decoration: underline; }
.events-wide { margin-bottom: 30px; }
.events-wide li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.event-card { display: flex; gap: 18px; align-items: center; background: color-mix(in srgb, var(--coral) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.event-card.past { background: var(--bg-alt); border-color: var(--line); }
.event-card p { margin: 2px 0; display: flex; gap: 8px; align-items: center; }
.event-card .ic { color: var(--coral); }
.ec-when { font-weight: 700; color: var(--ink); }
.ev-date.big { width: 74px; font-size: 32px; padding: 8px 0; }

/* partners */
.partners-sec { margin-top: 80px; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.partners li { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.partners li:not(:has(.pa-img)) { padding-left: 16px; }
.pa-img { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; flex: none; }
.pa-img img { width: 100%; height: 100%; object-fit: contain; }

/* join */
.join-sec { margin-top: 80px; margin-bottom: 80px; }
.join-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: #fff; border-radius: 28px; padding: 36px 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.join-card h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.join-card p { margin: 0; color: #e3f4ef; font-size: 18px; }
.join-mark { width: 92px; height: 92px; --lm-line: #fff; --lm-sky: rgba(255,255,255,.15); }
.join-btns { display: flex; flex-direction: column; gap: 10px; }
.join-card .btn { background: #fff; color: var(--teal-deep); }
.join-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.join-card .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* inner pages */
.banner { background: linear-gradient(180deg, var(--hero-top), var(--bg)); padding: 40px 0 0; position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; width: 380px; height: 380px; right: 4%; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 169, 59, .32), rgba(242, 169, 59, 0) 68%); }
.banner .wrap { position: relative; }
.banner h1 { font-size: clamp(34px, 5vw, 54px); margin: 0; max-width: 20em; letter-spacing: -.02em; }
.banner .hills { height: 46px; margin-top: 18px; }
.banner-intro { font-size: 20px; color: var(--muted); margin: 10px 0 0; max-width: 40em; }
.banner-date { display: flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; margin: 10px 0 0; }
.crumb { font-size: 15px; margin-bottom: 8px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--link); text-decoration: underline; }
.page { display: grid; gap: 44px; padding-top: 30px; padding-bottom: 72px; }
.page.has-side { grid-template-columns: minmax(0, 1fr) 320px; }
.page.post .content { max-width: 820px; }
.content { min-width: 0; }
.lead { font-size: 20px; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.mod { margin-bottom: 44px; }
.mod-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.mod-title a { color: inherit; text-decoration: none; }
.mod-title a:hover { color: var(--link); }
.rich { overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich img { border-radius: 14px; }
.rich table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; font-size: 16.5px; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; text-align: left; }
.rich th { background: var(--bg-alt); font-weight: 700; }
.rich iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }
.rich h2, .rich h3, .rich h4 { margin-top: 1.3em; }
.rich h3 { font-size: 24px; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li { margin: .25em 0; }
.rich li::marker { color: var(--teal); }
.rich blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--sun); font-style: italic; color: var(--muted); }
.rich img.img-s { width: 200px; } .rich img.img-m { width: 320px; } .rich img.img-l { width: 480px; }
.rich img.img-left { float: left; margin: 4px 22px 12px 0; } .rich img.img-right { float: right; margin: 4px 0 12px 22px; } .rich img.img-center { display: block; margin: 12px auto; }
.rich::after { content: ""; display: table; clear: both; }
.post-summary { font-size: 21px; color: var(--muted); margin: 0 0 22px; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-sm); margin-bottom: 28px; display: block; }
.post-back { margin-top: 30px; }
.post-back .ic { transform: scaleX(-1); }

/* highlighted box */
.callout { --tone: var(--teal); display: flex; gap: 18px; background: color-mix(in srgb, var(--tone) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); border-left: 6px solid var(--tone); border-radius: var(--radius); padding: 22px 24px; position: relative; }
.callout.tone-coral { --tone: var(--coral); } .callout.tone-sun { --tone: #c98612; } .callout.tone-navy { --tone: #2f78b5; }
.callout-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--tone); color: #fff; display: grid; place-items: center; flex: none; }
.callout-ic .ic { width: 22px; height: 22px; }
.callout h2 { font-size: 24px; margin-bottom: 6px; }
.callout > div { min-width: 0; flex: 1; }

/* documents */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.doc:hover { border-color: var(--teal); transform: translateX(3px); }
.doc .ic { color: var(--coral); width: 24px; height: 24px; }
.doc-name { flex: 1; font-weight: 700; }
.doc-meta { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.g-item { margin: 0; }
.g-item a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.g-item a:hover img { transform: scale(1.05); }
.g-item figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.mod-gallery.newsletter .g-item a { aspect-ratio: auto; }

/* people */
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tone) 18%, transparent); color: color-mix(in srgb, var(--tone) 60%, var(--ink)); font: 600 20px var(--head-font); }
.person-card b { display: block; font-size: 17.5px; color: var(--ink); line-height: 1.25; }
.person-card small { display: block; color: var(--muted); font-size: 15px; }

/* directory */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.place { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.place h2, .place h3 { font-size: 21px; margin-bottom: 8px; }
.place .rich { font-size: 16.5px; }
.place .rich p { margin: 0 0 .5em; }

/* video */
.video { margin: 0; }
.v-play { display: block; position: relative; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #0b2230; cursor: pointer; box-shadow: var(--shadow-sm); }
.v-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .3s; opacity: .92; }
.v-play:hover img { transform: scale(1.03); opacity: 1; }
.v-btn { position: absolute; left: 50%; top: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .2s; }
.v-play:hover .v-btn { transform: scale(1.08); }
.v-btn .ic { width: 36px; height: 36px; margin-left: 4px; }
.video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 18px; display: block; }
.video figcaption { color: var(--muted); font-size: 16px; margin-top: 8px; }
.v-yt { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; margin-top: 4px; }

/* organization chart */
.org { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.org-top { margin: 0 auto 30px; width: max-content; max-width: 100%; background: var(--navy); color: #fff; font: 600 20px var(--head-font); padding: 12px 26px; border-radius: 14px; position: relative; text-align: center; }
:root[data-theme="dark"] .org-top { background: #1d4a63; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .org-top { background: #1d4a63; } }
.org-top::after { content: ""; position: absolute; left: 50%; top: 100%; height: 18px; border-left: 2px solid var(--line); }
.org-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 2px solid var(--line); padding-top: 16px; }
.org-group { background: color-mix(in srgb, var(--tone) 8%, transparent); border-radius: 14px; padding: 12px; }
.org-group h3 { font: 700 15.5px var(--body-font); background: color-mix(in srgb, var(--tone) 58%, #000); color: #fff; border-radius: 9px; padding: 8px 10px; margin: 0 0 10px; text-align: center; }
:root[data-theme="dark"] .org-group h3 { color: #0b1b22; background: var(--tone); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .org-group h3 { color: #0b1b22; background: var(--tone); } }
.org-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.org-group li { background: var(--card); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); border-radius: 9px; padding: 6px 10px; font-size: 15px; line-height: 1.35; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--sun), var(--teal)); border-radius: 3px; }
.timeline > li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 10px 0; position: relative; }
.tl-year { font: 600 18px var(--head-font); color: var(--ink); background: var(--card); border: 2px solid var(--teal); border-radius: 999px; text-align: center; padding: 3px 0; align-self: start; position: relative; z-index: 1; }
.tl-body { padding-top: 4px; }
.tl-body ul { margin: 0; }

/* side boxes */
.side { display: flex; flex-direction: column; gap: 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.box h2 { font-size: 21px; margin-bottom: 10px; }
.box-items { display: flex; flex-direction: column; gap: 4px; }
.bi-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; font-weight: 700; border-top: 1px solid var(--line); }
.bi-link:first-child { border-top: 0; }
.bi-link .ic { color: var(--teal); }
.bi-link:hover span { text-decoration: underline; }
.bi-text { font-size: 16.5px; }
.bi-text p { margin: 0 0 .5em; }

/* news index */
.news-year { font-size: 30px; margin: 34px 0 16px; }
.news-year:first-child { margin-top: 0; }
.news-more { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* search */
.search.big { max-width: 560px; margin-bottom: 20px; }
.search.big input { width: 100%; font-size: 18px; padding: 12px 18px; }
.search.big input:focus { width: 100%; }
.search.big button { background: var(--teal); color: #fff; padding: 0 20px; }
.results { padding-left: 1.2em; }
.results li { margin-bottom: 18px; }
.results a { font-weight: 700; font-size: 19px; }
.results p { margin: 4px 0 0; color: var(--muted); }
mark { background: #ffe3a6; color: inherit; border-radius: 3px; padding: 0 2px; }
:root[data-theme="dark"] mark { background: #6b4f12; }

/* forms */
.narrow { max-width: 520px; padding-top: 50px; padding-bottom: 70px; }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.card-form h1, .card-form h2 { font-size: 30px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
input, select, textarea { font: 400 17px var(--body-font); padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.err { background: color-mix(in srgb, var(--coral) 12%, var(--card)); border: 1px solid var(--coral); color: var(--text); padding: 10px 14px; border-radius: 12px; }
.form-ok { background: color-mix(in srgb, var(--green) 14%, var(--card)); border: 1px solid var(--green); padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.contact-form { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.opt { font-weight: 400; color: var(--muted); }
.small { font-size: 14.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* footer */
.footer { margin-top: 0; color: #d3e1e6; }
.f-hills { height: 80px; margin-bottom: -1px; }
.f-hills .h1 { fill: var(--hill-f1); } .f-hills .h2 { fill: var(--hill-f2); }
.footer-body { background: var(--foot); padding: 26px 0 0; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer h2 { color: #fff; font: 700 15px var(--body-font); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer a { color: #d3e1e6; text-decoration: none; display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 16px; }
.footer a .ic { margin-top: 4px; color: #ffd38a; }
.footer a:hover { color: #fff; text-decoration: underline; }
.brand-foot { --lm-line: #f4ede0; --lm-sky: #1d4a63; margin-bottom: 10px; }
.brand-foot .brand-txt b { color: #fff; }
.brand-foot .brand-txt small { color: #8fd6c6; }
.f-brand p { margin: 0 0 12px; font-size: 16px; max-width: 26em; }
.f-fb { font-weight: 700; }
.f-help a { flex-direction: column; gap: 0; padding: 6px 0; }
.f-help b { color: #ffd38a; font-size: 18px; }
.f-help span { font-size: 14.5px; }
.f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 22px; font-size: 14px; color: #a9bfc8; }
.f-bottom a { display: inline; padding: 0; font-size: 14px; color: #a9bfc8; }
.f-meta { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.f-meta a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.f-meta a:hover { color: #fff; text-decoration-color: currentColor; }

/* photo viewer */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 20, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lb-cap { color: #e4ecee; margin-top: 12px; text-align: center; max-width: 60em; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb .lb-x { top: 16px; right: 16px; } .lb .lb-p { left: 16px; top: 50%; } .lb .lb-n { right: 16px; top: 50%; }

/* card colours (after the components so they win) */
.tone-0 { --tone: var(--teal); } .tone-1 { --tone: var(--coral); } .tone-2 { --tone: #c98612; } .tone-3 { --tone: var(--plum); } .tone-4 { --tone: var(--green); } .tone-5 { --tone: #2f78b5; }
:root[data-theme="dark"] .tone-2 { --tone: var(--sun); } :root[data-theme="dark"] .tone-5 { --tone: #6fb1ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tone-2 { --tone: var(--sun); } :root:not([data-theme="light"]) .tone-5 { --tone: #6fb1ea; } }

/* tablets */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .header-in { flex-wrap: wrap; min-height: 68px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 16px; }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-top { justify-content: space-between; border-top: 1px solid var(--line); }
  .nav-top a { padding: 13px 4px; font-size: 18px; flex: 1; border-radius: 0; }
  .nav-item:hover > .nav-top a, .nav-item:focus-within > .nav-top a { background: none; }
  .nav-item.active > .nav-top a { box-shadow: none; }
  .has-sub > .nav-top a::after { display: none; }
  .sub-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: var(--bg-soft); border-radius: 12px; cursor: pointer; color: var(--ink); }
  .sub-btn::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
  .sub-btn[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 4px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 8px 10px; background: none; min-width: 0; }
  .nav-item:hover > .sub { display: none; }
  .sub.open, .nav-item:hover > .sub.open { display: block; }
  .sub a { font-size: 17px; }
  .search { margin-top: 10px; }
  .search input, .search input:focus { width: 100%; font-size: 17px; padding: 11px 16px; }
  .nav-cta { margin-top: 10px; padding: 13px; font-size: 18px; }
  .hero-in { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .hero-art { min-height: 0; }
  .collage { height: 380px; max-width: 560px; }
  .org-groups { grid-template-columns: repeat(2, 1fr); }
  .actions { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .about-sec { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 520px; }
  .news-sec { grid-template-columns: 1fr; }
  .page.has-side { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .join-card { grid-template-columns: 1fr; text-align: left; }
  .dfc-card { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
  .join-btns { flex-direction: row; flex-wrap: wrap; }
}
/* phones */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .helpbar-in { font-size: 14.5px; padding-top: 6px; padding-bottom: 6px; }
  .hb-label { display: none; }
  .helpbar p { flex-wrap: nowrap; line-height: 1.3; }
  .lang-btn { padding: 5px 9px 5px 7px; font-size: 13.5px; }
  .brand-txt b { font-size: 19px; }
  .brand-txt small { font-size: 11px; }
  .mark { width: 44px; height: 44px; }
  .menu-btn span { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 18.5px; }
  .hero-btns .btn { width: 100%; }
  .collage { height: 300px; }
  .quitcard { position: relative; margin-top: 16px; max-width: none; }
  .programs { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions .card { padding: 14px; }
  .actions .card h3 { font-size: 18px; margin: 10px 0 4px; }
  .actions .card p { font-size: 14.5px; margin: 0; }
  .actions .card-go { display: none; }
  .actions .card-ic { width: 40px; height: 40px; border-radius: 12px; }
  .org-groups { grid-template-columns: 1fr 1fr; }
  .mod-cards .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mod-cards .card { padding: 14px; }
  .mod-cards .card h3 { font-size: 17px; margin: 10px 0 4px; }
  .mod-cards .card p { font-size: 14.5px; margin: 0 0 8px; }
  .mod-cards .card-ic { width: 40px; height: 40px; border-radius: 12px; }
  .stats-in { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .stat:nth-child(3) { border-left: 0; }
  .mv { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 26px; }
  .join-card { padding: 28px 22px; }
  .dfc-card { padding: 24px 20px; }
  .dfc-seal img { width: 120px; height: 120px; }
  .dfc-sky img { width: 120px; }
  .doc { flex-wrap: wrap; }
  .doc-meta { width: 100%; padding-left: 36px; }
  .timeline::before { left: 37px; }
  .timeline > li { grid-template-columns: 72px 1fr; gap: 12px; }
  .callout { flex-direction: column; gap: 12px; }
  .rich img.img-left, .rich img.img-right { float: none; margin: 10px 0; }
  .rich img.img-l, .rich img.img-m { width: 100%; }
  .org { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .helpbar, .header, .footer, .editbar { display: none; }
  body { background: #fff; color: #000; }
}

/* logos placed in page text (partner/funder seals): keep them on white so they read in dark mode too */
.rich img[src*="/files/logos/"], .rich picture img[src*="/files/logos/"] { background: #fff; border-radius: 14px; padding: 8px; margin: 0 10px 10px 0; vertical-align: middle; box-shadow: var(--shadow-sm); width: 170px; }
