:root {
  --blue-950: #08285f;
  --blue-900: #103f91;
  --blue-700: #1d5ebc;
  --blue-100: #e7f1ff;
  --blue-050: #f4f8ff;
  --ink: #15243d;
  --muted: #526681;
  --line: #d9e4f2;
  --white: #fff;
  --shadow: 0 14px 34px rgba(25, 67, 125, .11);
  --radius: 16px;
  --max-width: 1180px;
  --font-body: Verdana, Arial, sans-serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #fff; overscroll-behavior-y: none; }
body { min-height: 100%; margin: 0; color: var(--ink); background: #fff; font-family: var(--font-body); font-size: 16px; line-height: 1.6; overscroll-behavior-y: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--blue-700); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #f7bf45; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--blue-950); font-family: var(--font-ui); line-height: 1.2; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.2rem, 4vw, 4.15rem); letter-spacing: -.04em; }
h2 { margin-bottom: 12px; font-size: clamp(1.9rem, 3vw, 2.65rem); letter-spacing: -.025em; }
h3 { margin-bottom: 12px; font-size: 1.15rem; }

.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 10px 14px; color: var(--white); background: var(--blue-950); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.site-chrome { position: sticky; z-index: 20; top: 0; }
.site-header { position: relative; z-index: auto; color: var(--white); border-bottom: 3px solid #2b8ee6; background: linear-gradient(180deg, #103f91 0%, #174c9d 78%, #2558a7 100%); box-shadow: 0 2px 0 #08285f; font-family: var(--font-body); }
.header-shell { max-width: 960px; margin: auto; padding-top: 38px; padding-bottom: 16px; transition: padding .2s ease; }
.site-chrome.is-scrolled .header-shell { padding-top: 4px; padding-bottom: 4px; }
.brand { display: block; width: 100%; max-width: 960px; margin: auto; }
.brand picture { display: block; width: 100%; }
.brand img { width: 100%; height: auto; }
.navigation-shell { position: relative; z-index: auto; width: 100%; background: #2558a7; }
.main-navigation { display: flex; width: 100%; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 0; min-height: 54px; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); border-bottom: 3px solid #aeb9c8; background: linear-gradient(180deg, #4c70aa 0%, #2d5aa0 100%); box-shadow: 0 2px 0 #08285f; font-family: var(--font-ui); }
.main-navigation a { display: inline-flex; align-items: center; margin: 0; padding: 8px clamp(5px, .67vw, 7px); color: var(--white); font-size: clamp(.9rem, .95vw, .98rem); font-weight: 500; letter-spacing: .01em; line-height: 1.25; text-indent: 0; white-space: nowrap; transition: background-color .18s ease, box-shadow .18s ease, color .18s ease; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--white); background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 #f7bf45; text-decoration: none; }
.navigation-closure { display: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0; padding: 7px 16px; color: var(--white); border: 0; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0; background: transparent; cursor: pointer; font-family: var(--font-ui); font-size: .92rem; font-weight: 600; letter-spacing: .01em; }
.menu-toggle-icon { font-size: 1.1rem; line-height: 1; }
.menu-toggle-lung { display: none; width: 27px; height: 27px; flex: 0 0 27px; object-fit: contain; }

main { position: relative; min-height: 100vh; background: #fff; isolation: isolate; }
main::before { position: fixed; z-index: 0; top: var(--content-background-top, 0px); left: 0; width: 100%; height: 533px; background: url("assets/legacy/centerbg.png") no-repeat center top; background-size: max(100%, 1600px) auto; content: ""; pointer-events: none; }
.page-section { position: relative; z-index: 1; scroll-margin-top: 210px; padding: 28px 24px; }
.section-shell { max-width: var(--max-width); margin: auto; }
.legacy-home { max-width: none; padding: 0 24px 18px; color: #344968; font-family: var(--font-ui); background: rgba(255, 255, 255, .3); }
.legacy-content { max-width: 1120px; min-width: 0; margin: auto; padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 42px) 24px; color: #344968; font-family: var(--font-ui); font-size: 1rem; line-height: 1.65; }
.legacy-content .hero-kicker { margin-bottom: 8px; }
.legacy-content h1 { max-width: none; margin: 0 0 22px; padding: 0; color: var(--blue-950); border: 0; font-family: var(--font-ui); font-size: clamp(1.75rem, 2.6vw, 2.65rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.13; }
.legacy-content p { margin: 0 0 18px; color: #3b5578; font-family: var(--font-ui); }
.legacy-content .eyebrow { color: var(--blue-700); }
.legacy-photo-flow::after { display: block; clear: both; content: ""; }
.legacy-photo-flow p { margin-bottom: 20px; }
.legacy-intro-portrait { float: left; width: 130px; max-width: 100%; height: auto; margin: 0 24px 12px 0; border-radius: 10px; object-fit: contain; box-shadow: 0 8px 20px rgba(25, 67, 125, .14); }
.legacy-signature { clear: both; min-height: 0; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(83, 121, 174, .22); text-align: center; }
.legacy-signature img { width: 132px; height: 50px; margin: 0 auto 3px; object-fit: contain; }
.legacy-signature p { margin: 0; color: #526681; font-size: .88rem; line-height: 1.4; text-align: center; }
.eyebrow, .card-kicker { margin-bottom: 9px; color: var(--blue-700); font-size: .78rem; font-weight: 700; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: .92rem; font-weight: 700; line-height: 1.2; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--blue-700); box-shadow: 0 8px 18px rgba(29, 94, 188, .2); }
.button-primary:hover { color: var(--white); background: var(--blue-900); }
.button-secondary { color: var(--blue-900); border-color: #b7cae5; background: var(--white); }
.button-secondary:hover { background: var(--blue-100); }
.section-soft { max-width: none; background: linear-gradient(110deg, rgba(231, 241, 255, .64), rgba(244, 248, 255, .2)); }
.section-soft > * { max-width: var(--max-width); margin-right: auto; margin-left: auto; }
.section-heading { max-width: 760px; margin-bottom: 18px; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: var(--max-width); }
.section-note { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.news-grid, .support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-current { grid-column: 1 / -1; }
.news-featured { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(190px, .4fr) minmax(0, 1.6fr); align-items: center; gap: 26px; }
.news-featured-logo-link { display: block; width: min(100%, 280px); margin: auto; }
.news-featured-logo-link:hover { text-decoration: none; }
.news-featured-logo-link img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.news-featured-logo-link:hover img, .news-featured-logo-link:focus-visible img { transform: scale(1.025); }
.content-card, .prose-card, .facts-card, .tax-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.content-card, .prose-card, .facts-card, .tax-card { padding: 28px; }
.content-card p:last-child, .prose-card p:last-child, .facts-card p:last-child { margin-bottom: 0; }
.content-card h3 { max-width: 620px; font-size: 1.125rem; }
.link-list { display: grid; gap: 8px; margin-top: 22px; }
.link-list a, .text-link { display: inline-flex; align-items: center; gap: 8px; }
.about-layout, .contact-layout, .tax-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 24px; align-items: start; }
.prose-card p { color: #344968; }
.facts-card { min-width: 0; overflow: hidden; color: #344968; }
.facts-list { display: grid; gap: 14px; margin: 0; }
.facts-list div { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(0, 1fr); gap: 12px; min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts-list dt, .facts-list dd { min-width: 0; }
.facts-list div.official-status { grid-template-columns: minmax(130px, .75fr) minmax(0, 1fr); }
.facts-list dt { color: var(--muted); font-size: .83rem; font-weight: 700; }
.facts-list dd { max-width: 100%; margin: 0; overflow-wrap: anywhere; word-break: break-word; white-space: normal; color: var(--ink); font-size: .9rem; }
.facts-list div.official-status dd { max-width: 100%; white-space: normal; }
.facts-card hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.facts-card p { font-size: 1rem; }
.representation-list { display: grid; gap: 0; margin: 0 0 14px; }
.representation-list p { display: grid; gap: 2px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.representation-list p:first-child { padding-top: 0; }
.representation-list p:last-child { padding-bottom: 0; border-bottom: 0; }
.representation-list strong { color: var(--ink); }
.representation-list span { color: #344968; }
.muted { color: var(--muted); font-size: .84rem; }

.goals-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 38px; max-width: var(--max-width); margin: 0 auto; padding: 0; list-style: none; }
.goals-list li { position: relative; padding: 16px 0 16px 27px; border-bottom: 1px solid rgba(83, 121, 174, .22); color: #344968; }
.goals-list li::before { position: absolute; top: 21px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-700); content: ""; }
.goals-list li:last-child { grid-column: 1 / -1; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.gallery-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 18px 36px rgba(25, 67, 125, .18); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card-body { padding: 17px 18px 19px; }
.gallery-card h3 { margin-bottom: 5px; font-size: 1.125rem; }
.gallery-card-meta { margin: 0; color: var(--muted); font-size: .82rem; }

.contact-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.contact-details-card h3 { margin-bottom: 22px; }
.contact-details { display: grid; gap: 18px; }
.contact-details p { display: grid; gap: 2px; margin: 0; }
.contact-details strong { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-details a, .contact-details span { overflow-wrap: anywhere; color: var(--ink); font-size: .93rem; }
.contact-map-card { overflow: hidden; padding: 0; }
.map-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.map-card-header h3 { margin: 0; }
.map-card-header .text-link { font-size: .8rem; }
.map-module { min-height: 440px; border-top: 1px solid var(--line); background: #e8f0ec; }
.map-module iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-loading { display: grid; min-height: 440px; place-items: center; color: var(--muted); }

.support-card { display: flex; gap: 18px; align-items: flex-start; }
.support-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: var(--white); border-radius: 50%; background: var(--blue-700); font-size: .85rem; font-weight: 700; }
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: #344968; }
.partner-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
.partner-card h3 { margin-bottom: 8px; }
.partner-card p { color: #344968; }
.partner-card .card-kicker { margin-bottom: 7px; color: var(--blue-700); }
.partner-logo-link { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 210px; min-height: 104px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf2; }
.partner-logo-link:hover { text-decoration: none; }
.partner-logo-link img { width: 186px; height: auto; transition: transform .2s ease; }
.partner-logo-link:hover img, .partner-logo-link:focus-visible img { transform: scale(1.025); }
.tax-number { display: block; max-width: 100%; margin-bottom: 8px; color: var(--blue-700); font-size: clamp(1.25rem, 3.4vw, 2.35rem); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; line-height: 1.15; white-space: nowrap; }
.facts-list div:nth-child(2) dd { white-space: nowrap; }
.tax-card .button { margin-top: 18px; }
.site-footer { min-height: 53px; color: var(--white); border-top: 2px solid #aeb9c8; background: linear-gradient(180deg, #3f6fc5 0%, #103f91 100%); box-shadow: inset 0 2px 0 #2b8ee6; }
.footer-shell { width: min(860px, 100%); margin: auto; padding: 8px 20px 7px; text-align: center; }
.footer-shell p { max-width: 100%; margin: 0 auto; overflow-wrap: anywhere; color: var(--white); font-size: .78rem; line-height: 1.35; text-wrap: balance; }
.footer-line { display: block; }

.lightbox { width: min(920px, calc(100% - 32px)); max-width: 920px; padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgba(8, 40, 95, .35); }
.lightbox::backdrop { background: rgba(8, 40, 95, .78); backdrop-filter: blur(3px); }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px 14px; }
.lightbox-header h2 { margin-bottom: 0; font-size: 1.45rem; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-950); background: var(--white); cursor: pointer; font-size: 1.75rem; line-height: 1; }
.lightbox-stage { display: grid; min-height: 280px; max-height: 70vh; place-items: center; padding: 10px 24px 22px; background: #0d1e3c; }
.lightbox-stage img { max-width: 100%; max-height: 64vh; object-fit: contain; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 24px 20px; }
.lightbox-controls span { color: var(--muted); font-size: .86rem; font-weight: 700; }

@media (max-width: 960px) {
  .header-shell { padding-right: 16px; padding-left: 16px; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  main::before { height: 420px; background-size: max(100%, 1260px) auto; }
  .header-shell { padding-top: 22px; padding-right: 16px; padding-bottom: 12px; padding-left: 16px; }
  .brand { width: 100%; }
  .menu-toggle { display: inline-flex; min-width: 128px; min-height: 52px; margin: 0; padding: 8px 16px; border-bottom: 3px solid #aeb9c8; background: linear-gradient(180deg, #4c70aa 0%, #2d5aa0 100%); box-shadow: 0 2px 0 #08285f; font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
  .menu-toggle-lung { display: block; }
  .main-navigation { display: none; min-height: 0; padding: 6px 16px 0; border-top: 1px solid rgba(255, 255, 255, .35); border-bottom: 0; background: #103f91; box-shadow: none; }
  .main-navigation[data-open="true"] { display: grid; grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); padding-bottom: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding-block-end: 24px; background: #103f91; }
  .main-navigation a { display: flex; width: min(100%, 460px); margin: 0 auto; padding: 8px 14px; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: 1rem; font-weight: 600; letter-spacing: .01em; line-height: 1.25; text-align: center; }
  .main-navigation a:last-of-type { border-bottom: 0; }
  .navigation-closure { display: block; grid-column: 1 / -1; justify-self: stretch; width: calc(100% + 32px); max-width: none; height: 10px; margin: 6px -16px 0; border-top: 2px solid #aeb9c8; border-bottom: 2px solid #08285f; background: #103f91; box-shadow: inset 0 1px 0 #2b8ee6, inset 0 -1px 0 #2b8ee6; }
  .legacy-home { padding-right: 18px; padding-bottom: 24px; padding-left: 18px; }
  .legacy-content { padding: 34px 0 16px; font-size: .94rem; }
  .legacy-intro-portrait { width: 130px; height: auto; margin-right: 20px; border-radius: 10px; }
  .about-layout, .contact-layout, .tax-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  main::before { height: 360px; background-size: max(100%, 1081px) auto; }
  body { font-size: 16px; }
  .page-section { scroll-margin-top: 175px; padding: 22px 18px; }
  .legacy-home { padding-top: 0; }
  .section-heading-row { display: block; }
  .section-note { display: block; margin-top: 14px; }
  .news-grid, .support-grid, .gallery-grid, .goals-list { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; gap: 16px; }
  .header-shell { padding-right: 4px; padding-left: 4px; }
  .legacy-intro-portrait { width: 130px; height: auto; margin-right: 14px; }
  .partner-card { align-items: flex-start; flex-direction: column; gap: 16px; }
  .partner-logo-link { width: 100%; min-width: 0; }
  .content-card, .prose-card, .facts-card, .tax-card { padding: 22px; }
  .facts-list div { grid-template-columns: 1fr; gap: 3px; }
  .facts-list div.official-status { grid-template-columns: 1fr; }
  .facts-list div.official-status dd { font-size: .86rem; }
  .map-card-header { display: block; padding: 19px 20px; }
  .map-card-header .text-link { margin-top: 8px; }
  .map-module, .map-loading { min-height: 320px; }
  .map-module iframe { height: 320px; }
  .footer-shell { padding: 8px 12px 7px; }
  .lightbox-header, .lightbox-controls { padding-right: 18px; padding-left: 18px; }
  .lightbox-controls .button { min-height: 42px; padding: 9px 10px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
