:root {
  --color-navy: #183b5b;
  --color-navy-dark: #102e49;
  --color-blue: #527fa3;
  --color-green: #008c45;
  --color-red: #c83e45;
  --color-cream: #f7f5f0;
  --color-white: #fff;
  --color-line: #e8ecef;
  --color-ink: #252b30;
  --color-muted: #59656d;
  --color-text: var(--color-ink);
  --color-heading: var(--color-navy);
  --color-surface: var(--color-white);
  --color-page: var(--color-cream);
  --color-focus: var(--color-blue);
  --font-heading: "Manrope", Arial, sans-serif;
  --font-body: "Didact Gothic", Arial, sans-serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: clamp(5rem, 8vw, 7.5rem);
  --content-width: 75rem;
  --reading-width: 68ch;
  --radius-sm: .375rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --shadow-card: 0 .5rem 1.5rem rgb(24 59 91 / .08);
  --header-height: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-6); }
body { margin: 0; background: var(--color-page); color: var(--color-text); font-family: var(--font-body); font-size: clamp(1.0625rem, 1rem + .15vw, 1.125rem); line-height: 1.65; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-heading); font-family: var(--font-heading); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.78rem + 2.25vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(2.125rem, 1.77rem + 1.1vw, 2.625rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: clamp(1.75rem, 1.57rem + .55vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
h4 { font-size: clamp(1.4375rem, 1.29rem + .4vw, 1.625rem); line-height: 1.25; }
p, li { max-width: 68ch; }
p { margin-block: 0 var(--space-5); }
strong { color: var(--color-navy); font-family: var(--font-heading); font-weight: 700; }
a { color: var(--color-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--color-blue); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.container { width: min(calc(100% - 2rem), var(--content-width)); margin-inline: auto; }
.prose { max-width: var(--reading-width); }
.legal-copy h2 { margin-block: var(--space-7) var(--space-5); font-size: clamp(1.625rem, 1.4rem + .8vw, 2rem); }
.legal-copy h3 { margin-block: var(--space-6) var(--space-4); font-size: 1.375rem; }
.legal-copy { overflow-wrap: anywhere; }
.section { padding-block: var(--space-9); }
.section--white { background: var(--color-white); }
.section--navy { background: var(--color-navy); color: var(--color-white); }
.text-large { font-size: clamp(1.1875rem, 1.1rem + .25vw, 1.25rem); line-height: 1.6; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; z-index: 1000; top: var(--space-3); left: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-white); border-radius: var(--radius-sm); transform: translateY(-160%); font-family: var(--font-heading); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
#main-content { flex: 1; }
.site-header { min-height: var(--header-height); display: flex; align-items: center; position: relative; z-index: 50; background: rgb(247 245 240 / .96); border-bottom: 1px solid var(--color-line); }
.site-header__inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.site-logo { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--color-navy); text-decoration: none; }
.site-logo:hover { color: var(--color-navy); }
.site-logo img { max-height: 3.25rem; width: auto; }
.site-logo__placeholder { max-width: 16rem; font-family: var(--font-heading); font-size: clamp(.7rem, 2.6vw, .9rem); font-weight: 700; line-height: 1.2; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__text strong { font-size: 1.05rem; }
.site-logo__text small { margin-top: var(--space-1); color: var(--color-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { min-width: 4.75rem; min-height: 2.875rem; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: transparent; color: var(--color-navy); border: 1px solid var(--color-navy); border-radius: var(--radius-md); font-family: var(--font-heading); font-size: .875rem; font-weight: 700; }
.nav-toggle__icon { display: grid; gap: 4px; }
.nav-toggle__icon span { width: 1.1rem; height: 2px; background: currentColor; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: var(--space-4) 1rem var(--space-5); background: var(--color-cream); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-card); }
.site-nav.is-open { display: block; }
.navigation, .footer-links { margin: 0; padding: 0; list-style: none; }
.navigation { display: grid; gap: var(--space-2); }
.navigation a { min-height: 2.875rem; display: flex; align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-family: var(--font-heading); font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.navigation a:hover, .navigation a.is-active { background: rgb(24 59 91 / .08); color: var(--color-navy); }
.navigation a.is-active { box-shadow: inset 3px 0 0 var(--color-green); }

.eyebrow { margin: 0 0 var(--space-4); color: var(--color-blue); font-family: var(--font-heading); font-size: .875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
/* The header and hero together fill the initial viewport. */
.home-hero { min-height: calc(100svh - var(--header-height)); display: grid; position: relative; isolation: isolate; background: var(--color-navy-dark); color: var(--color-white); }
.home-hero__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgb(8 24 36 / .22), rgb(8 24 36 / .72)); z-index: -1; }
.home-hero__grid { display: grid; align-items: center; gap: var(--space-7); padding-block: var(--space-8); }
.home-hero__brand { display: none; }
.site-logo--hero img { width: min(100%, 24rem); max-height: none; }
.site-logo--footer { margin-bottom: var(--space-5); }
.site-logo--footer img { width: 5rem; max-height: none; }
.news-ticker { min-width: 0; padding-block: var(--space-6); }
.news-ticker .eyebrow { color: var(--color-white); margin-bottom: var(--space-6); }
.news-ticker__slides { display: grid; gap: var(--space-6); }
.news-ticker.is-ready .news-ticker__slides { gap: 0; }
.news-ticker.is-ready .news-ticker__slide { grid-area: 1 / 1; align-self: center; transition: opacity 450ms ease, transform 450ms ease; }
.news-ticker.is-ready .news-ticker__slide[aria-hidden="true"] { visibility: hidden; opacity: 0; transform: translateY(1rem); pointer-events: none; }
.news-ticker__slide h3 { font-size: clamp(1.75rem, 3.3vw, 3rem); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.news-ticker__slide a { color: var(--color-white); text-decoration: none; }
.news-ticker__slide a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.news-ticker__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); }
.news-ticker__controls[hidden] { display: none; }
.news-ticker__dots { display: flex; }
.news-ticker__dot { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.news-ticker__dot span { width: .625rem; height: .625rem; border: 1px solid currentColor; border-radius: 50%; transition: background-color 160ms ease; }
.news-ticker__dot[aria-current="true"] span { background: currentColor; }
.news-ticker__pause { min-height: 2.75rem; padding: var(--space-2) var(--space-3); border: 1px solid rgb(255 255 255 / .5); border-radius: var(--radius-sm); color: inherit; background: transparent; font-size: .8rem; cursor: pointer; }
.news-ticker__all { display: inline-flex; align-items: center; gap: var(--space-5); min-height: 2.75rem; margin-top: var(--space-6); color: var(--color-white); font-family: var(--font-heading); font-size: .875rem; font-weight: 700; }
.news-ticker__all:hover { color: var(--color-white); text-decoration-thickness: 2px; }
.news-ticker :focus-visible { outline-color: var(--color-white); }
.button { min-height: 2.875rem; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: .75rem 1.125rem; border: 1px solid transparent; border-radius: var(--radius-md); font-family: var(--font-heading); font-size: .875rem; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.button--primary { background: var(--color-navy); color: var(--color-white); }
.button--primary:hover { background: var(--color-navy-dark); color: var(--color-white); }
.text-link { font-family: var(--font-heading); font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.page-hero { padding-block: clamp(4rem, 8vw, 7rem); background: var(--color-navy); color: var(--color-white); }
.page-hero h1, .page-hero .eyebrow { color: var(--color-white); }
.page-hero .eyebrow { opacity: .72; }
.page-hero__content { max-width: var(--reading-width); }
.page-hero .text-large { margin-top: var(--space-5); }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); }
.section-heading h2 + p { margin-top: var(--space-4); }
.section-heading--light h2, .section-heading--light .eyebrow { color: var(--color-white); }
.section-heading--light .eyebrow { opacity: .7; }
.card-grid { display: grid; gap: var(--space-5); }
.card { padding: clamp(1.5rem, 3vw, 2rem); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.activity-card { position: relative; padding-top: var(--space-8); box-shadow: none; }
.activity-card__number { position: absolute; top: var(--space-5); right: var(--space-5); color: var(--color-line); font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.activity-card h3 { font-size: 1.35rem; }
.activity-card p { margin: var(--space-4) 0 0; }
.split-layout { display: grid; gap: var(--space-6); }
.empty-state { max-width: 48rem; padding: var(--space-7); background: rgb(255 255 255 / .55); border: 1px dashed #b8c3ca; border-radius: var(--radius-lg); }
.empty-state p { margin: var(--space-3) 0 0; }
.empty-state--dark { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .35); }
.empty-state--dark h3 { color: var(--color-white); }

.news-card { padding: 0; overflow: hidden; }
.news-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.news-card__image:hover img { transform: scale(1.025); }
.news-card__body { padding: var(--space-6); }
.news-card time, .article-meta { color: var(--color-muted); font-size: .92rem; }
.news-card h3 { margin-block: var(--space-3); font-size: 1.45rem; }
.news-card h3 a { text-decoration: none; }
.news-card p { margin-bottom: var(--space-4); }
.member-card { padding: 0; overflow: hidden; color: var(--color-text); }
.member-card__portrait { aspect-ratio: 13 / 14; background: #e2e7ea; }
.member-card__portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { width: 100%; height: 100%; min-height: 14rem; display: grid; place-items: center; background: #e4e9ec; color: var(--color-navy); }
.portrait-placeholder span { font-family: var(--font-heading); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; opacity: .35; }
.member-card__body { padding: var(--space-5); }
.member-card h3 { font-size: 1.4rem; }
.member-card h3 a { text-decoration: none; }
.member-role { margin: var(--space-2) 0 var(--space-4); color: var(--color-blue); font-family: var(--font-heading); font-size: .92rem; font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.tag-list li { padding: var(--space-1) var(--space-2); background: var(--color-cream); color: var(--color-ink); border-left: 3px solid var(--color-green); font-size: .85rem; }

.article-header { padding-block: var(--space-8); }
.article-header .eyebrow { margin-top: var(--space-7); }
.article-meta { display: flex; gap: var(--space-4); margin-top: var(--space-5); }
.article-image { max-width: 68rem; }
.article-image img { width: 100%; max-height: 42rem; object-fit: cover; border-radius: var(--radius-lg); }
.article-content { padding-block: var(--space-8) var(--space-9); }
.article-content > * + * { margin-top: var(--space-5); }
.article-content h2, .article-content h3 { margin-top: var(--space-7); }
.back-link { display: inline-flex; gap: var(--space-2); font-family: var(--font-heading); font-size: .9rem; font-weight: 700; }
.member-profile__grid { display: grid; gap: var(--space-7); margin-top: var(--space-7); }
.member-profile__portrait img, .member-profile__portrait .portrait-placeholder { width: 100%; border-radius: var(--radius-lg); }
.member-profile__content .member-role { font-size: 1.1rem; }
.member-profile__content .prose { margin-top: var(--space-6); }
.focus-list { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.focus-list h2 { font-size: 1.4rem; }
.focus-list ul { padding-left: var(--space-5); }

.contact-layout { display: grid; gap: var(--space-7); }
.contact-details address { font-style: normal; }
.contact-details h2, .contact-form h2 { margin-bottom: var(--space-5); }
.contact-form { max-width: 48rem; }
form .form-field { margin-bottom: var(--space-5); }
form label { display: block; margin-bottom: var(--space-2); color: var(--color-navy); font-family: var(--font-heading); font-size: .9rem; font-weight: 700; }
form .form-label:empty { display: none; }
input, select, textarea { width: 100%; min-height: 2.875rem; padding: .75rem; border: 1px solid #9cabb4; border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-ink); }
textarea { resize: vertical; }
input[type="checkbox"] { width: 1.25rem; min-height: 1.25rem; margin-right: var(--space-2); accent-color: var(--color-navy); }
button[type="submit"] { min-height: 2.875rem; padding: .75rem 1.125rem; border: 1px solid var(--color-navy); border-radius: var(--radius-md); background: var(--color-navy); color: var(--color-white); font-family: var(--font-heading); font-size: .875rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
button[type="submit"]:hover { background: var(--color-navy-dark); }
.form-message, .alert { padding: var(--space-4); border: 1px solid var(--color-line); border-left: 4px solid var(--color-blue); border-radius: var(--radius-sm); background: var(--color-white); }
.form-message.success, .alert-success { border-left-color: var(--color-green); }
.form-message.error, .alert-error, .form-errors { border-left-color: var(--color-red); }

.site-footer { padding-top: var(--space-8); background: var(--color-navy-dark); color: var(--color-white); }
.site-footer__grid { display: grid; gap: var(--space-7); }
.site-footer__title { margin-bottom: var(--space-4); color: var(--color-white); font-size: 1.05rem; letter-spacing: .01em; }
.site-footer p { margin-bottom: 0; color: #e4ebf0; }
.site-footer a { color: var(--color-white); }
.site-footer address { display: grid; gap: var(--space-2); font-style: normal; }
.footer-links { display: grid; gap: var(--space-2); }
.site-footer__bottom { margin-top: var(--space-7); padding-block: var(--space-4); border-top: 1px solid rgb(255 255 255 / .16); font-size: .88rem; }

@media (min-width: 40rem) {
  .card-grid--activities, .card-grid--members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  body.menu-open { overflow: auto; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .navigation { display: flex; align-items: center; gap: var(--space-1); }
  .navigation a.is-active { box-shadow: inset 0 -3px 0 var(--color-green); }
  .home-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 7rem); }
  .home-hero__brand { display: flex; justify-content: center; }
  .card-grid--news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout { grid-template-columns: .75fr 1.25fr; gap: var(--space-8); }
  .contact-layout { grid-template-columns: minmax(14rem, .6fr) minmax(0, 1.4fr); }
  .member-profile__grid { grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.25fr); align-items: start; }
}
@media (min-width: 68rem) {
  .card-grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--activities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
