/* Karama design system
   Tokens measured from the reference layout: Antonio headings (700, uppercase),
   Palanquin body (400/700), Palanquin Dark labels (600). */
:root {
  --navy: #21296b;
  --blue: #0044b5;
  --blue-mid: #1c45b4;
  --blue-light: #5a84e6;
  --sky: #a7d2ff;
  --arc: #e4eefc;
  --lavender: #6c76d3;
  --lavender-dark: #4e4aa6;
  --yellow: #fad42f;
  --amber: #ffba00;
  --ink: #221e1f;
  --muted: #55535a;
  --line: #c9c9c9;
  --gray-tint: rgba(195, 195, 195, .3);
  --white: #fff;
  --max: 1242px;
  --head: "Antonio", "Arial Narrow", sans-serif;
  --body: "Palanquin", system-ui, sans-serif;
  --label: "Palanquin Dark", "Palanquin", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
p { font-size: 18px; line-height: 28px; margin: 0 0 1em; }
h1, h2, .h2 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.07; margin: 0 0 .35em; letter-spacing: 0; }
h1 { font-size: 60px; }
h2, .h2 { font-size: 50px; }
h3 { font-family: var(--body); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 0 .4em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 52px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.todo { background: #fff3b0; color: #5c4a00; border-radius: 3px; padding: 0 .25em; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 25px; border-radius: 40px; border: 2px solid var(--blue); color: var(--blue); background: transparent; font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; text-align: center; line-height: 1.2; }
.btn:hover, .btn:focus-visible { background: var(--blue); color: #fff; }
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: var(--navy); border-color: var(--navy); }
.btn.white { border-color: #fff; color: #fff; }
.btn.white:hover { background: #fff; color: var(--navy); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.chev-link { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.chev-link svg { width: 7px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; transition: box-shadow .2s, background .2s; }
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.site-header.scrolled .bar { padding-top: 8px; padding-bottom: 8px; }
.site-header.scrolled .logo-header img { height: 88px; }
body.home .site-header:not(.scrolled):not(.open) { background: transparent; }
.site-header .bar { max-width: 1800px; margin: 0 auto; padding: 14px 44px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { width: auto; height: 120px; transition: height .2s; }
.logo-footer { background: #fff; border-radius: 16px; padding: 14px 20px; }
.logo-footer img { height: 140px; }
.navs { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 14px; align-self: center; }
.util { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.util a, .util button.lang-btn { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.util a:hover { color: var(--blue); }
.util .btn { font-size: 12px; min-height: 36px; padding: 0 25px; color: var(--blue); border: 2px solid var(--blue); letter-spacing: 1px; }
.util .btn:hover { color: #fff; }
.search-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); border: 0; display: grid; place-items: center; cursor: pointer; }
.search-btn svg { width: 16px; fill: none; stroke: #fff; stroke-width: 2.4; }
.lang { position: relative; }
.lang-menu { position: absolute; right: 0; top: 26px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); list-style: none; margin: 0; padding: 8px 0; min-width: 170px; display: none; }
.lang.open .lang-menu { display: block; }
.lang-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 18px; font: inherit; font-size: 15px; cursor: pointer; }
.lang-menu button:hover { background: var(--arc); }
.main-nav { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav > li > a { font-size: 24px; font-weight: 700; color: var(--blue); text-decoration: none; padding: 8px 0; display: inline-block; }
.main-nav > li > a:hover, .main-nav > li.open > a, .main-nav > li > a[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.main-nav > li > a.need-help { min-height: 50px; padding: 0 30px; padding: 0 30px; background: var(--blue); color: #fff !important; border-radius: 40px; font-size: 14px !important; letter-spacing: 1px; text-transform: uppercase; display: inline-flex !important; align-items: center; }
.main-nav > li > a.need-help:hover { background: var(--navy); text-decoration: none !important; }
.menu-toggle { display: none; }

/* Mega menu (full width panel, like the reference) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 40px rgba(0,0,0,.08); display: none; }
.main-nav > li.open .mega { display: block; }
.mega-inner { max-width: 1800px; margin: 0 auto; padding: 40px 44px 50px; display: grid; grid-template-columns: 300px 1fr; gap: 50px; }
.mega-intro h2 { font-size: 40px; color: var(--ink); }
.mega-intro p { font-size: 16px; line-height: 24px; color: var(--muted); }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.mega-col h3 a { font-size: 20px; color: var(--blue); text-decoration: none; }
.mega-col h3 a:hover { text-decoration: underline; }
.mega-col ul { list-style: none; margin: 10px 0 0; padding: 0; }
.mega-col li { margin: 0 0 8px; }
.mega-col li a { color: var(--ink); text-decoration: none; font-size: 16px; }
.mega-col li a:hover { color: var(--blue); text-decoration: underline; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(33,41,107,.96); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay.open { display: flex; }
.search-overlay form { width: min(760px, 90vw); display: flex; gap: 12px; }
.search-overlay input { flex: 1; font: inherit; font-size: 24px; padding: 16px 26px; border-radius: 40px; border: 0; }
.search-overlay .close { position: absolute; top: 30px; right: 40px; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; min-height: 800px; margin-top: -148px; overflow: hidden; display: flex; justify-content: flex-end; align-items: flex-end; }
.home-hero .arc { position: absolute; left: 0; top: 0; width: 72%; height: 118%; background: var(--arc); border-top-right-radius: 100% 100%; z-index: 0; }
.home-hero .photo { position: absolute; left: 0; bottom: 0; width: 60%; height: 84%; border-top-right-radius: 100% 100%; overflow: hidden; z-index: 1; background: var(--navy); }
.home-hero .photo img, .home-hero .photo svg { width: 100%; height: 100%; object-fit: cover; }
.home-hero .text { position: relative; z-index: 2; width: 38%; margin-right: 4%; padding: 0 0 80px; }
.home-hero h1 { color: #000; }
.home-hero .text p { max-width: 460px; }
.home-hero .pause { position: absolute; left: 0; bottom: 0; z-index: 3; width: 50px; height: 50px; background: rgba(0,0,0,.5); border-radius: 0 100% 0 0; }

/* ---------- Landing hero (inner pages) ---------- */
.landing-hero { position: relative; display: grid; grid-template-columns: 46% 54%; min-height: 427px; max-width: 1800px; margin: 0 auto; overflow: hidden; }
.landing-hero .text { position: relative; z-index: 2; background: var(--navy); color: #fff; padding: 60px 30px 60px 49px; display: flex; flex-direction: column; justify-content: center; }
.landing-hero .text::before, .landing-hero .text::after { content: ""; position: absolute; top: -10%; height: 120%; border-radius: 0 50% 50% 0 / 0 50% 50% 0; z-index: -1; }
.landing-hero .text::after { left: calc(100% - 60px); width: 170px; background: var(--navy); }
.landing-hero .text::before { left: calc(100% - 60px); width: 240px; background: var(--blue); opacity: .7; }
.landing-hero .eyebrow { font-size: 16px; margin-bottom: 8px; }
.landing-hero h1 { color: var(--amber); max-width: 520px; }
.landing-hero p { max-width: 500px; margin: 0; }
.landing-hero .photo { position: relative; z-index: 1; }
.landing-hero .photo img, .landing-hero .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.landing-hero .crumbs { font-size: 13px; margin-bottom: 14px; opacity: .85; }
.landing-hero .crumbs a { color: #fff; }
.landing-hero.plain { grid-template-columns: 1fr; min-height: 300px; }
.landing-hero.plain .text { padding-right: 30%; }
.landing-hero.plain .text::before, .landing-hero.plain .text::after { display: none; }
.landing-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Secondary nav (section tabs) ---------- */
.secnav { border-bottom: 1px solid #e6e6e6; background: #fff; }
.secnav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; max-width: 1800px; }
.secnav a { display: block; padding: 25px; color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; text-decoration: none; position: relative; }
.secnav a:hover { background: var(--gray-tint); }
.secnav a[aria-current] { background: var(--gray-tint); }
.secnav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--blue); }
.secnav .toggle { display: none; }

/* ---------- Rich text ---------- */
.rich { padding: 50px 0; }
.rich .inner { max-width: 640px; margin: 0 auto; }
.rich .inner.wide { max-width: 900px; }
.rich h2 { font-size: 40px; margin-top: .8em; }
.rich h3 { margin-top: 1.4em; color: var(--navy); }
.rich ul, .rich ol { font-size: 18px; line-height: 28px; padding-left: 1.3em; margin: 0 0 1em; }
.rich li { margin-bottom: 6px; }
.rich dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 18px; margin: 0 0 1em; }
.rich dt { font-weight: 700; color: var(--navy); }
.rich dd { margin: 0; }
.rich .note { font-size: 15px; color: var(--muted); border-left: 4px solid var(--sky); padding: 4px 0 4px 16px; }

/* ---------- Section header (h2 + button row) ---------- */
.sec { padding: 50px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 14px 0 0; font-size: 16px; }

/* ---------- Stats ---------- */
.stats { position: relative; background: var(--blue-mid); color: #fff; overflow: hidden; }
.stats .shape { position: absolute; left: 0; top: 0; width: 56%; height: 150%; background: var(--navy); border-bottom-right-radius: 100% 100%; }
.stats .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 70px; padding-bottom: 80px; }
.stats h2 { color: #fff; max-width: 480px; }
.stats .intro p { max-width: 430px; }
.stat { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 20px; margin-bottom: 26px; }
.stat .num { font-family: var(--head); font-weight: 700; color: var(--amber); font-size: 90px; line-height: 1; text-align: right; }
.stat .num sup { font-size: .5em; vertical-align: top; position: relative; top: .15em; }
.stat p { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }

/* ---------- Article cards (3 across with dividers) ---------- */
.acards { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.acard { padding: 24px 24px 30px; border-left: 1px solid var(--line); text-decoration: none; color: inherit; }
.acard:first-child { border-left: 0; padding-left: 0; }
.acard .img { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 14px; background: var(--arc); }
.acard .img img, .acard .img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acard:hover .img img, .acard:hover .img svg { transform: scale(1.04); }
.acard .cat { font-family: var(--label); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.acard .title { font-family: var(--head); font-size: 22px; line-height: 1.25; color: var(--blue); }
.acard:hover .title { text-decoration: underline; }
.acard .meta { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Feature block (image + color panel with curve) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; max-width: 1800px; margin: 0 auto; min-height: 533px; }
.feature .photo { position: relative; overflow: hidden; }
.feature .photo img, .feature .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .panel { position: relative; overflow: hidden; background: var(--lavender); color: #fff; padding: 70px 80px 70px 84px; display: flex; flex-direction: column; justify-content: center; }
.feature .panel::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--lavender-dark); border-bottom-right-radius: 100% 100%; }
.feature .panel > * { position: relative; }
.feature .eyebrow { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.feature h2 { color: #fff; }
.feature.reverse .photo { order: 2; }
.feature.navy .panel { background: var(--blue); } .feature.navy .panel::before { background: var(--navy); }
.feature.yellow .panel { background: var(--amber); color: var(--navy); } .feature.yellow .panel::before { background: var(--yellow); } .feature.yellow h2 { color: var(--navy); }
.feature.yellow .btn.white { border-color: var(--navy); color: var(--navy); }
.feature.sky .panel { background: #7fb9f5; color: var(--navy); } .feature.sky .panel::before { background: var(--sky); } .feature.sky h2 { color: var(--navy); }
.feature.sky .btn.white { border-color: var(--navy); color: var(--navy); }

/* ---------- Interactive content pane (tabs + circles) ---------- */
.icp .wrap { display: grid; grid-template-columns: 38% 62%; gap: 20px; align-items: center; padding-top: 50px; padding-bottom: 50px; }
.icp h2 { color: var(--ink); }
.icp .tabs { list-style: none; margin: 30px 0 0; padding: 0; }
.icp .tabs button { background: none; border: 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--blue); cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; }
.icp .tabs button::after { content: ""; height: 1px; background: var(--blue); flex: 1; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.icp .tabs button[aria-selected="true"] { padding-left: 8px; }
.icp .tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.icp .stage { position: relative; height: 560px; }
.icp .pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s; }
.icp .pane.active { opacity: 1; visibility: visible; }
.icp .circle-photo { position: absolute; right: 0; top: 0; width: 560px; height: 560px; border-radius: 50%; overflow: hidden; background: var(--arc); }
.icp .circle-photo img, .icp .circle-photo svg { width: 100%; height: 100%; object-fit: cover; }
.icp .bubble { position: absolute; left: 0; bottom: 20px; width: 373px; height: 373px; border-radius: 50%; background: rgba(255,186,0,.6); display: grid; place-items: center; }
.icp .bubble-inner { width: 281px; height: 281px; border-radius: 50%; background: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; }
.icp .bubble-inner p { font-size: 15px; line-height: 22px; margin: 0 0 12px; }

/* ---------- Manual cards (3 solid color tiles) ---------- */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); }
.mcard { min-height: 445px; padding: 40px 36px; color: #fff; text-decoration: none; position: relative; display: flex; flex-direction: column; transition: filter .2s; }
.mcard:nth-child(3n+1) { background: var(--navy); }
.mcard:nth-child(3n+2) { background: var(--blue-mid); }
.mcard:nth-child(3n+3) { background: var(--blue-light); }
.mcard:hover { filter: brightness(1.12); }
.mcard h3 { font-family: var(--head); text-transform: uppercase; font-size: 34px; line-height: 1.1; margin-bottom: 14px; }
.mcard p { font-size: 16px; line-height: 24px; max-width: 290px; }
.mcard .chev { position: absolute; right: 36px; bottom: 30px; width: 14px; fill: #fff; transition: transform .2s; }
.mcard:hover .chev { transform: translateX(5px); }
.mcards.four { grid-template-columns: repeat(4, 1fr); }
.mcards.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- Featured articles (1 large + 2 stacked) ---------- */
.fa { border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr; }
.fa .big { padding: 30px 30px 30px 0; border-right: 1px solid var(--line); }
.fa .side { padding: 30px 0 30px 24px; display: grid; gap: 24px; align-content: start; }
.fa-card { text-decoration: none; color: inherit; display: block; }
.fa-card .img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--arc); margin-bottom: 14px; }
.fa-card .img img, .fa-card .img svg { width: 100%; height: 100%; object-fit: cover; }
.fa-card .tag { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; padding: 6px 10px 9px; font-family: var(--label); font-weight: 600; font-size: 15px; z-index: 1; }
.fa-card .title { color: var(--blue); font-size: 18px; }
.fa .big .title { font-size: 22px; }
.fa-card:hover .title { text-decoration: underline; }
.fa .side .fa-card + .fa-card { border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Email sign-up ---------- */
.signup { background: var(--blue-mid); color: #fff; }
.signup .wrap { max-width: 1030px; padding-top: 80px; padding-bottom: 80px; text-align: center; }
.signup h2 { color: #fff; }
.signup form { text-align: left; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.signup label { display: block; font-size: 16px; margin-bottom: 6px; }
.signup input[type=text], .signup input[type=email] { width: 100%; height: 50px; border-radius: 40px; border: 0; background: var(--navy); color: #fff; padding: 0 22px; font: inherit; font-size: 17px; }
.signup input:focus { outline: 3px solid var(--yellow); }
.signup .consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.signup .consent input { margin-top: 3px; width: 18px; height: 18px; }
.signup .actions { grid-column: 1 / -1; text-align: center; }
.success { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 8px; background: #e7f6ec; color: #0d5b2a; font-weight: 700; grid-column: 1 / -1; }
.success.show { display: block; }
.signup .success { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Full-width CTA ---------- */
.fwcta { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.fwcta::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; border-radius: 50%; background: var(--blue); opacity: .55; }
.fwcta .wrap { position: relative; padding-top: 70px; padding-bottom: 70px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.fwcta h2 { color: #fff; }
.fwcta .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Single statistic ---------- */
.single-stat { background: var(--arc); }
.single-stat .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-top: 50px; padding-bottom: 50px; }
.single-stat .num { font-family: var(--head); font-weight: 700; font-size: 120px; line-height: 1; color: var(--blue); }
.single-stat p { font-size: 24px; line-height: 1.35; font-weight: 700; color: var(--navy); margin: 0; max-width: 640px; }

/* ---------- Accordions ---------- */
.acc { max-width: 900px; margin: 0 auto; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-of-type { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 0; position: relative; font-size: 20px; font-weight: 700; color: var(--blue); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc .body { padding: 0 0 22px; }
.acc .body p:last-child { margin-bottom: 0; }

/* ---------- Article hero ---------- */
.article-hero { position: relative; background: rgba(167,210,255,.3); overflow: hidden; }
.article-hero .inner { position: relative; width: 77%; background: var(--sky); padding: 60px 90px 60px 49px; min-height: 399px; display: flex; flex-direction: column; justify-content: center; }
.article-hero .inner::after { content: ""; position: absolute; right: -120px; top: -15%; width: 240px; height: 130%; border-radius: 50%; background: var(--sky); }
.article-hero .inner > * { position: relative; z-index: 1; max-width: 780px; }
.article-hero .eyebrow { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.article-hero h1 { color: var(--navy); }
.article-hero .by { font-size: 15px; margin: 6px 0 16px; }
.article-hero .btn { align-self: flex-start; }
.article-image { max-width: 1030px; margin: 40px auto 0; padding: 0 52px; }
.article-image .frame { aspect-ratio: 16 / 9; overflow: hidden; }
.article-image .frame svg, .article-image .frame img { width: 100%; height: 100%; object-fit: cover; }
.article-image figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- News list ---------- */
.news-filter { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; padding: 40px 0 20px; border-bottom: 1px solid var(--line); }
.news-filter label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.news-filter select, .news-filter input { height: 48px; border-radius: 40px; border: 2px solid var(--line); padding: 0 20px; font: inherit; min-width: 240px; background: #fff; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-item .img { aspect-ratio: 16 / 9; overflow: hidden; }
.news-item .img svg, .news-item .img img { width: 100%; height: 100%; object-fit: cover; }
.news-item .cat { font-family: var(--label); font-weight: 600; font-size: 14px; }
.news-item .title { font-family: var(--head); font-size: 28px; text-transform: uppercase; color: var(--blue); line-height: 1.15; margin: 4px 0 8px; }
.news-item:hover .title { text-decoration: underline; }
.news-item p { font-size: 16px; line-height: 24px; margin: 0; }
.news-item .date { font-size: 14px; color: var(--muted); margin-top: 8px; }
.empty { padding: 40px 0; font-size: 18px; }

/* ---------- Events ---------- */
.ev-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 110px 1fr auto; gap: 30px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ev .date { background: var(--navy); color: #fff; text-align: center; padding: 12px 0 14px; }
.ev .date .m { display: block; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--amber); }
.ev .date .d { display: block; font-family: var(--head); font-weight: 700; font-size: 46px; line-height: 1; }
.ev .cat { font-family: var(--label); font-weight: 600; font-size: 14px; }
.ev h3 { font-family: var(--head); text-transform: uppercase; font-size: 28px; color: var(--blue); margin: 2px 0 4px; }
.ev p { font-size: 16px; line-height: 24px; margin: 0; }
.ev .where { font-size: 14px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 40px; padding: 8px 20px; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ---------- Heritage calendar ---------- */
.months { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px; min-height: 170px; }
.month .m { font-family: var(--head); font-size: 34px; text-transform: uppercase; color: var(--blue); line-height: 1; }
.month p { font-size: 16px; line-height: 22px; margin: 10px 0 0; }

/* ---------- Forms ---------- */
.form-block { max-width: 900px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .fieldset-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; font: inherit; font-size: 17px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
.form-grid input, .form-grid select { height: 50px; border-radius: 40px; padding: 0 20px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--blue); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--ink); margin: 0; }
.checks input { width: 18px !important; height: 18px !important; }
.form-note { font-size: 14px; color: var(--muted); }

/* Donate widget */
.give { background: #fff; color: var(--ink); padding: 34px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.give h3 { font-family: var(--head); text-transform: uppercase; font-size: 30px; color: var(--navy); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--blue); border-radius: 40px; overflow: hidden; margin-bottom: 18px; }
.seg button { border: 0; background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; height: 44px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amts button { height: 56px; border: 2px solid var(--line); background: #fff; font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--navy); cursor: pointer; }
.amts button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.give label { font-weight: 700; display: block; margin: 0 0 6px; color: var(--navy); }
.give input, .give select { width: 100%; height: 50px; border-radius: 40px; border: 2px solid var(--line); padding: 0 20px; font: inherit; font-size: 17px; margin-bottom: 14px; background: #fff; }
.give-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }

/* ---------- People grid ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.person .ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--arc); margin-bottom: 14px; }
.person .ph svg { width: 100%; height: 100%; }
.person h3 { font-family: var(--head); text-transform: uppercase; font-size: 24px; color: var(--navy); margin: 0; }
.person p { font-size: 15px; margin: 0; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--sky); }
.timeline li { position: relative; padding: 0 0 30px 34px; }
.timeline li::before { content: ""; position: absolute; left: -11px; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
.timeline .yr { font-family: var(--head); font-size: 30px; color: var(--blue); line-height: 1; }

/* ---------- Sitemap / search ---------- */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 26px; border-left: 2px solid var(--arc); margin: 6px 0 10px 6px; }
.tree li { margin: 6px 0; }
.tree a { font-size: 17px; }
.tree > li > a { font-family: var(--head); font-size: 26px; text-transform: uppercase; text-decoration: none; }
.results { list-style: none; padding: 0; margin: 20px 0 0; }
.results li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.results a { font-family: var(--head); font-size: 26px; text-transform: uppercase; text-decoration: none; }
.results p { margin: 4px 0 0; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; }
.site-footer .inner { max-width: 1800px; margin: 0 auto; padding: 50px 84px 40px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 70px; }
.site-footer .social { display: flex; gap: 40px; align-items: center; }
.social span { font-size: 15px; font-weight: 700; margin-right: -10px; }
.social a { color: #fff; display: grid; place-items: center; }
.social svg { width: 30px; height: 30px; fill: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.site-footer .contact h2 { margin-bottom: 20px; }
.site-footer .contact p { font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.site-footer .contact a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer .contact a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; font-size: 20px; line-height: 1.6; }
.site-footer address p { font-size: 20px; line-height: 1.6; margin: 0 0 20px; }
.site-footer address a { color: #fff; text-decoration: none; }
.site-footer .col { border-top: 1px solid #5b64a8; padding-top: 34px; }
.site-footer .cols > div:first-child { padding-top: 34px; }
.site-footer h2 { font-family: var(--body); font-size: 20px; letter-spacing: 2px; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 18px; }
.site-footer li a { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #5b64a8; margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.site-footer .legal a { color: #fff; margin-left: 20px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-header .bar { padding: 12px 20px; align-items: center; }
  .logo-header img { height: 96px; }
  .site-header.scrolled .logo-header img { height: 76px; }
  .navs { display: none; position: fixed; inset: 0; top: 112px; background: #fff; overflow-y: auto; padding: 20px 20px 60px; align-items: stretch; flex-direction: column-reverse; justify-content: flex-end; gap: 30px; }
  .site-header.open .navs { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 40px; height: 44px; padding: 0 20px; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > li { border-bottom: 1px solid #e6e6e6; }
  .main-nav > li > a { display: block; padding: 16px 0; }
  .main-nav > li:last-child { border: 0; padding-top: 20px; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { grid-template-columns: 1fr; padding: 0 0 20px; gap: 16px; }
  .mega-intro { display: none; }
  .mega-cols { grid-template-columns: 1fr 1fr; }
  .util { flex-wrap: wrap; gap: 16px 24px; }
  .home-hero { margin-top: 0; min-height: 0; flex-direction: column; align-items: stretch; }
  .home-hero .arc { width: 130%; height: 60%; }
  .home-hero .photo { position: relative; width: 92%; height: 420px; }
  .home-hero .text { width: auto; margin: 0; padding: 40px 20px 50px; }
  .wrap { padding: 0 20px; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero .photo { height: 280px; order: -1; }
  .landing-hero .text { padding: 40px 20px; }
  .landing-hero .text::before, .landing-hero .text::after { display: none; }
  .landing-hero.plain .text { padding-right: 20px; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stats .shape { width: 120%; height: 55%; }
  .feature { grid-template-columns: 1fr; }
  .feature .photo { min-height: 320px; }
  .feature.reverse .photo { order: 0; }
  .feature .panel { padding: 50px 24px; }
  .icp .wrap { grid-template-columns: 1fr; }
  .icp .stage { height: 460px; }
  .icp .circle-photo { width: 400px; height: 400px; }
  .icp .bubble { width: 300px; height: 300px; }
  .icp .bubble-inner { width: 230px; height: 230px; padding: 24px; }
  .mcards, .mcards.four { grid-template-columns: 1fr 1fr; }
  .fwcta .wrap { grid-template-columns: 1fr; }
  .fwcta .btns { justify-content: flex-start; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .months { grid-template-columns: repeat(2, 1fr); }
  .give-layout { grid-template-columns: 1fr; }
  .site-footer .inner { padding: 40px 20px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
  .article-hero .inner { width: 100%; padding: 40px 20px; }
  .article-hero .inner::after { display: none; }
}
@media (max-width: 760px) {
  .logo-header img, .site-header.scrolled .logo-header img { height: 84px; }
  .logo-footer img { height: 120px; }
  .menu-toggle { flex-shrink: 0; }
  .mega-cols { grid-template-columns: 1fr; gap: 18px; }
  .navs { top: 100px; }
  h1 { font-size: 44px; }
  h2, .h2 { font-size: 38px; }
  .sec-head { flex-direction: column; }
  .acards { grid-template-columns: 1fr; }
  .acard { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .fa { grid-template-columns: 1fr; }
  .fa .big { border-right: 0; padding-right: 0; }
  .fa .side { padding-left: 0; }
  .mcards, .mcards.four, .mcards.two { grid-template-columns: 1fr; }
  .mcard { min-height: 260px; }
  .stat { grid-template-columns: 120px 1fr; }
  .stat .num { font-size: 64px; }
  .signup form, .form-grid, .checks { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .ev { grid-template-columns: 80px 1fr; }
  .ev .btn { grid-column: 2; justify-self: start; }
  .single-stat .wrap { grid-template-columns: 1fr; gap: 10px; }
  .single-stat .num { font-size: 84px; }
  .icp .stage { height: 380px; }
  .icp .circle-photo { width: 300px; height: 300px; }
  .icp .bubble { width: 250px; height: 250px; bottom: 0; }
  .icp .bubble-inner { width: 200px; height: 200px; padding: 18px; }
  .icp .bubble-inner p { font-size: 13px; line-height: 18px; }
  .secnav .toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 18px 20px; font: inherit; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .7px; font-size: 14px; }
  .secnav ul { display: none; flex-direction: column; }
  .secnav.open ul { display: flex; }
  .secnav a { padding: 14px 20px; }
  .rich dl { grid-template-columns: 1fr; gap: 2px; }
  .rich dd { margin-bottom: 10px; }
  .months { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .top { flex-direction: column; gap: 30px; }
  .social { gap: 24px; flex-wrap: wrap; }
  .article-image { padding: 0 20px; }
}
