:root {
  --font: "Atkinson Hyperlegible", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --surface-3: #e6eaef;
  --border: #e2e2e2;
  --border-strong: #c9ced6;
  --text: #1f2937;
  --text-2: #454f5b;
  --text-3: #6b7280;
  --primary: #195192;
  --primary-hover: #123e72;
  --primary-soft: #e8eef6;
  --navy: #04153a;
  --navy-2: #0b2556;
  --gold: #c1a74a;
  --gold-text: #7a5f12;
  --gold-soft: #f6f0dc;
  --wsf-red: #c40030;
  --purple: #60407b;
  --danger: #c2183a;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(4, 21, 58, .06);
  --shadow: 0 4px 14px rgba(4, 21, 58, .08);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; letter-spacing: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 300;
  top: -60px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.tricolor { position: sticky; z-index: 51; top: 0; height: 4px; display: flex; }
.tricolor i { flex: 1; }
.tricolor i:nth-child(1) { background: #1f3f94; }
.tricolor i:nth-child(2) { background: #fff; }
.tricolor i:nth-child(3) { background: #d6283c; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 4px;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(4, 21, 58, .04);
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo { width: auto; height: 58px; display: block; }
.brand-copy {
  min-height: 40px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--gold);
  line-height: 1.15;
}

.brand-copy strong { color: var(--navy); font-size: 17px; }
.brand-copy small { color: var(--gold-text); font-size: 13px; font-weight: 700; }

.primary-navigation { margin-right: auto; display: flex; gap: 2px; }
.primary-navigation a {
  padding: 8px 14px;
  color: var(--navy);
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation a:hover { color: var(--navy); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.search-box {
  min-width: 250px;
  height: 38px;
  padding: 0 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.search-box svg, .welcome-search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-box input { min-width: 0; width: 100%; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 14px; }
.search-box input::placeholder { color: var(--text-3); opacity: 1; }
kbd { padding: .1em .45em; color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; font-family: var(--mono); font-size: .8em; white-space: nowrap; }

.feedback-button {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.feedback-button:hover { background: var(--surface-2); border-color: var(--border-strong); }
.feedback-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.language-switch {
  padding: 3px;
  display: inline-flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex-shrink: 0;
}

.language-switch span { min-height: 30px; padding: 5px 10px; display: grid; place-items: center; color: var(--text-2); border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; }
.language-switch .is-active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.language-switch [aria-disabled="true"] { opacity: .7; }

.menu-toggle {
  width: 38px;
  height: 38px;
  padding: 8px;
  display: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle > span:not(.sr-only) { width: 100%; height: 2px; margin: 4px 0; display: block; background: var(--navy); border-radius: 2px; }

.content-width,
.page-shell,
.footer-inner,
.footer-bottom { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.hero {
  padding: 56px 0 48px;
  color: #fff;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.hero .content-width { max-width: 1008px; margin-inline: auto; }
.hero-kicker { margin: 0 0 10px; color: var(--gold); font-size: 15px; font-weight: 700; }
.hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; }
.hero-intro { max-width: 780px; margin: 0 0 28px; color: #dbe3f0; font-size: clamp(17px, 2vw, 20px); }
.welcome-actions { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}

.button-large { height: 52px; padding-inline: 24px; font-size: 16.5px; }
.button-gold { color: var(--navy); background: var(--gold); }
.button-gold:hover { background: #d4be6f; }
.button-outline { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .7); }
.button-outline:hover { background: rgba(255, 255, 255, .1); }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }

.welcome-search {
  max-width: 640px;
  padding: 6px 6px 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  background: #fff;
  border-radius: 999px;
}

.welcome-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 38%, transparent); }
.welcome-search input { min-width: 0; flex: 1; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 16.5px; }
.welcome-search input::placeholder { color: var(--text-3); }

.page-shell { padding-top: 0; padding-bottom: 16px; }
.search-status { margin: 24px 0 0; padding: 12px 16px; color: var(--navy); background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: var(--radius); font-size: 14px; font-weight: 700; }
.resource-section { padding-top: 44px; }
.resource-section + .resource-section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }
.section-heading { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 14px; }
.section-index { padding-top: 4px; color: var(--gold-text); font-size: 14px; font-weight: 700; }
.eyebrow { margin: 0 0 2px; color: var(--text-3); font-size: 13px; font-weight: 700; }
h2 { margin: 0; font-size: 26px; }

.live-title { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(194, 24, 58, .4); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 24, 58, .4); }
  65%, 100% { box-shadow: 0 0 0 9px rgba(194, 24, 58, 0); }
}

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-card {
  min-height: 84px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s;
}

.tool-card:hover { border-color: var(--primary); }
.tool-card svg { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-card > span { min-width: 0; display: grid; gap: 2px; }
.tool-card strong { color: var(--navy); font-size: 16px; }
.tool-card small { overflow: hidden; color: var(--text-3); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tool-card.signature { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.tool-card.signature svg { color: var(--purple); stroke: var(--purple); }
.tool-card.signature strong { color: var(--navy); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.resource-card {
  min-height: 180px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s;
}

.resource-card:hover { border-color: var(--primary); }
.card-topline { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-kicker { color: var(--primary); font-size: 12.5px; font-weight: 700; }
.status-tag { padding: 3px 9px; color: var(--gold-text); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.resource-card h3 { margin: 8px 0 6px; color: var(--navy); font-size: 19px; }
.resource-card p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.card-link { margin-top: auto; color: var(--primary); font-size: 14px; font-weight: 700; }
.card-link span { padding-left: 3px; transition: padding .15s; }
a:hover .card-link span { padding-left: 7px; }

.archive-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.archive-item { min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; transition: background .15s; }
.archive-item:last-child { border-bottom: 0; }
.archive-item:hover { background: var(--surface-2); }
.archive-item small, .archive-item strong { display: block; }
.archive-item small { margin-bottom: 1px; color: var(--text-3); font-size: 13px; }
.archive-item strong { color: var(--navy); font-size: 16px; }

.site-footer { margin-top: 80px; padding: 40px 0 0; color: var(--text); background: var(--surface-2); border-top: 4px solid var(--gold); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-intro { max-width: 560px; display: flex; align-items: center; gap: 18px; }
.footer-intro img { width: auto; height: 84px; display: block; flex-shrink: 0; object-fit: contain; }
.footer-intro p { margin: 0; color: var(--text-2); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover { border-color: var(--gold); }
.footer-links .is-highlighted { background: var(--gold-soft); border-color: var(--gold); }
.footer-bottom { margin-top: 28px; padding-top: 18px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--text-3); border-top: 1px solid var(--border); font-size: 13.5px; }
.footer-bottom a { color: var(--text-2); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1180px) {
  .menu-toggle { display: block; order: -1; }
  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    z-index: 20;
    min-width: 260px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation a { padding: 10px 12px; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 1100px) {
  .brand-copy { display: none; }
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { gap: 8px; padding: 0 12px; }
  .brand-logo { height: 46px; }
  .search-box { min-width: 0; width: 38px; padding: 0; justify-content: center; }
  .search-box input, .search-box kbd { display: none; }
  .feedback-button { display: none; }
  .hero { padding: 40px 0 36px; }
  .tool-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .content-width, .page-shell, .footer-inner, .footer-bottom { padding-inline: 16px; }
  .language-switch [aria-disabled="true"] { display: none; }
  .welcome-search .button { display: none; }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .welcome-actions .button { width: 100%; }
  .section-heading { gap: 10px; }
  .footer-intro { align-items: flex-start; }
  .footer-intro img { height: 70px; }
}

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