:root {
  color-scheme: light;
  --navy: #0B1F3A;
  --dark-navy: #071426;
  --gold: #C9A227;
  --gold-dark: #A98218;
  --off-white: #F5F5F5;
  --steel: #1D3557;
  --red: #B91C1C;
  --bg: var(--off-white);
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --text: #172033;
  --heading: var(--navy);
  --muted: #5d6675;
  --line: #d6dbe3;
  --header-bg: var(--navy);
  --header-text: var(--gold);
  --nav-link: var(--off-white);
  --nav-active: var(--gold);
  --hero-bg: var(--dark-navy);
  --footer-bg: var(--dark-navy);
  --footer-muted: #d7ddec;
  --link: var(--steel);
  --accent: var(--red);
  --soft-gold: #f3e7bd;
  --input-bg: #ffffff;
  --input-border: #b7c0cc;
  --shadow: 0 12px 30px rgba(11, 31, 58, 0.1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--dark-navy);
  --surface: var(--navy);
  --surface-alt: #102846;
  --text: var(--off-white);
  --heading: var(--off-white);
  --muted: #c6cfdd;
  --line: #2d4566;
  --header-bg: var(--dark-navy);
  --header-text: var(--gold);
  --nav-link: var(--off-white);
  --nav-active: var(--gold);
  --hero-bg: var(--dark-navy);
  --footer-bg: var(--dark-navy);
  --footer-muted: #c6cfdd;
  --link: #e0b83b;
  --soft-gold: #2c2715;
  --input-bg: #0f2746;
  --input-border: #3b587c;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container,
.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background-color: var(--header-bg);
  color: var(--nav-link);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  padding: 16px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "emblem title toggle"
    "emblem nav nav";
  gap: 8px 24px;
  align-items: center;
}

.site-emblem-link {
  grid-area: emblem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 154px;
  align-self: center;
}

.site-header h1 {
  grid-area: title;
  align-self: end;
  min-width: 0;
  margin: 0;
  color: var(--header-text);
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-logo-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  grid-area: nav;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 0;
}

nav a {
  color: var(--nav-link);
  border-bottom: 3px solid transparent;
  font-weight: 700;
  min-height: 36px;
  padding: 4px 0;
  text-decoration: none;
  text-shadow: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--nav-active);
  border-bottom-color: var(--gold);
}

.theme-toggle {
  grid-area: toggle;
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  background: rgba(245, 245, 245, 0.06);
  border: 1px solid rgba(245, 245, 245, 0.55);
  border-radius: 6px;
  color: var(--nav-link);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.theme-toggle:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--gold);
  color: var(--gold);
}

.theme-toggle-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  min-height: clamp(420px, 58vh, 640px);
  display: flex;
  align-items: flex-end;
  background: var(--hero-bg);
  border-bottom: 8px solid var(--gold);
  color: var(--off-white);
}

.hero-content {
  padding: 72px 0 78px;
}

.hero h2,
.page-hero h2 {
  max-width: 880px;
  margin: 0;
  font-size: 4.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero .lead,
.page-hero .lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.22rem;
}

.page-hero {
  background: var(--hero-bg);
  color: var(--off-white);
  border-bottom: 6px solid var(--gold);
  padding: clamp(56px, 8vw, 96px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: clamp(52px, 7vw, 86px) 0;
}

.section-light {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.content-narrow {
  max-width: 880px;
}

.section h2,
.status-band h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section p,
.status-band p {
  margin-top: 0;
}

.lead {
  color: inherit;
}

.status-band {
  background: var(--steel);
  color: var(--off-white);
  border-bottom: 4px solid var(--gold);
  padding: 34px 0;
}

.status-band h2,
.status-band .eyebrow {
  color: var(--off-white);
}

.split,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.compact {
  gap: 14px;
}

.card,
.note-panel,
.status-card,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card h3,
.policy-item h3,
.timeline h3,
.note-panel h3,
.status-card h3 {
  margin: 0 0 9px;
  color: var(--heading);
  font-size: 1.22rem;
  line-height: 1.2;
}

.card p,
.policy-item p,
.timeline p,
.note-panel p,
.status-card p {
  margin: 0;
}

.note-panel,
.status-card,
.form-panel {
  padding: 28px;
}

.note-panel {
  border-left: 6px solid var(--gold);
}

.status-card {
  border-top: 6px solid var(--gold);
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: block;
  padding: 15px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--heading);
  font-weight: 800;
  text-decoration: none;
}

.link-list a:hover {
  border-color: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark-navy);
}

.button-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--off-white);
}

.button-secondary {
  background: transparent;
  border-color: var(--off-white);
  color: var(--off-white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button-disabled,
.button-disabled:hover {
  background: var(--surface-alt);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.policy-list {
  display: grid;
  gap: 18px;
}

.policy-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--off-white);
  font-weight: 900;
}

.card .policy-link,
.policy-item .policy-link {
  margin-top: 12px;
  font-weight: 800;
}

.draft-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  background: var(--soft-gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--heading);
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline article {
  padding: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--off-white);
  font-weight: 900;
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li + li {
  margin-top: 8px;
}

.contact-details {
  align-self: start;
}

.contact-details p {
  margin: 0 0 12px;
}

.follow-section {
  margin-top: 28px;
}

.follow-section h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 1.5rem;
  line-height: 1.2;
}

.form-panel h2 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: 1.6rem;
  line-height: 1.2;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

label,
legend {
  color: var(--heading);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.full {
  grid-column: 1 / -1;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 9px;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.checkbox-list input {
  width: auto;
  margin: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.consent input {
  width: auto;
  margin: 5px 0 0;
  flex: 0 0 auto;
}

.required-marker {
  color: var(--accent);
  font-weight: 900;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--off-white);
  padding: 26px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}

.footer-social {
  flex-basis: 100%;
}

.footer-heading {
  color: var(--off-white);
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.social-links a,
.social-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--heading);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--link);
}

.site-footer .social-links a,
.site-footer .social-placeholder {
  border-color: rgba(245, 245, 245, 0.28);
  background: rgba(245, 245, 245, 0.08);
  color: var(--off-white);
}

.site-footer .social-links {
  align-items: center;
  gap: 10px;
}

.site-footer .social-links a {
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer .social-links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.site-footer .social-links a:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold);
  transform: translateY(-1px);
}

.site-footer .social-links a:hover img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(47%) saturate(575%) hue-rotate(7deg) brightness(92%) contrast(87%);
  opacity: 1;
}

.social-placeholder {
  color: var(--muted);
  cursor: default;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .small {
  color: var(--footer-muted);
}

@media (max-width: 900px) {
  .split,
  .content-grid,
  .card-grid.three,
  .card-grid.two,
  .timeline {
    grid-template-columns: 1fr;
  }

  .site-header h1 {
    font-size: 2.45rem;
  }

  .site-emblem-link {
    width: 128px;
    height: 128px;
  }

  .hero h2,
  .page-hero h2 {
    font-size: 3.15rem;
  }

  .section h2,
  .status-band h2 {
    font-size: 2.05rem;
  }

  .hero {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    padding: 16px 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "emblem title toggle"
      "nav nav nav";
    gap: 12px 14px;
  }

  .site-header h1 {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .site-emblem-link {
    width: 78px;
    height: 78px;
  }

  nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(245, 245, 245, 0.22);
    border-bottom-width: 3px;
    border-radius: 6px;
    background: rgba(245, 245, 245, 0.06);
    font-size: 0.94rem;
    line-height: 1.2;
    text-align: center;
  }

  .theme-toggle {
    grid-area: toggle;
    justify-self: end;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 52px;
  }

  .hero h2,
  .page-hero h2 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .hero .lead,
  .page-hero .lead {
    font-size: 1.06rem;
  }

  .section h2,
  .status-band h2 {
    font-size: 1.72rem;
  }

  .section,
  .page-hero {
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .policy-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .policy-number {
    width: 48px;
    height: 48px;
  }

  .form-grid,
  .checkbox-list {
    grid-template-columns: 1fr;
  }

  .form-grid {
    gap: 14px;
  }

  .checkbox-list label,
  .consent {
    line-height: 1.35;
  }

  .social-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer .social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .site-footer .social-links a {
    flex: 0 0 auto;
  }

  .card,
  .note-panel,
  .status-card,
  .form-panel,
  .policy-item,
  .timeline article {
    padding: 20px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .footer-grid {
    display: grid;
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1120px);
  }

  .site-header h1 {
    font-size: 1.55rem;
  }

  .site-emblem-link {
    width: 62px;
    height: 62px;
  }

  nav {
    grid-template-columns: 1fr;
  }

  .hero h2,
  .page-hero h2 {
    font-size: 2.05rem;
  }

  .section h2,
  .status-band h2 {
    font-size: 1.55rem;
  }
}
