:root {
  --navy: #12263f;
  --navy-soft: #1c3c63;
  --ink: #1b2433;
  --muted: #5c6b7e;
  --line: #e4ddd2;
  --paper: #f6f3ee;
  --white: #ffffff;
  --brand: #f79210;
  --brand-ink: #1a1206;
  --link: #0e3f78;
  --shadow: 0 20px 50px rgba(18, 38, 63, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header: 92px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }

a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.6rem 0.9rem;
  z-index: 80;
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; text-decoration: none; }

.brand img { width: 76px; height: 76px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .burger::before { top: -6px; }
.nav-toggle .burger::after { top: 6px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.site-nav button {
  font: inherit;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a[aria-current="page"] {
  background: var(--paper);
}

.site-nav a.btn,
.site-nav a.btn:hover {
  color: var(--brand-ink);
  background: var(--brand);
}
.site-nav a.btn:hover { filter: brightness(0.96); }

.has-sub { position: relative; }

.has-sub > ul {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 280px;
  flex-direction: column;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
}

.has-sub > ul a {
  display: block;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.has-sub:hover > ul,
.has-sub:focus-within > ul,
.has-sub.is-open > ul { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-primary:hover { filter: brightness(0.96); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover { text-decoration: none; background: var(--navy-soft); }

.hero {
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(247, 146, 16, 0.38), transparent 55%),
    linear-gradient(155deg, #10243f 0%, #1b446f 58%, #10243f 100%);
  color: var(--white);
  padding: 4.2rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #ffd7a1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
  max-width: 14ch;
}

.lede { font-size: 1.15rem; max-width: 42rem; color: rgba(255, 255, 255, 0.9); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0.8rem; }

.hero-note { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; max-width: 42rem; }

.hero-note a { color: #ffe3bf; }

.hero-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border-radius: 24px;
  padding: 1.3rem 1.3rem 1rem;
  box-shadow: var(--shadow);
}

.hero-card-kicker {
  margin: 0 0 0.6rem;
  font-weight: 800;
  color: var(--navy);
}

.hero-card ul { list-style: none; margin: 0; padding: 0; }

.hero-card li {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.hero-card li span { color: var(--muted); font-size: 0.95rem; }

.hero-card-note {
  margin: 0.3rem 0 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.trust-band { border-bottom: 1px solid var(--line); }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust article { padding: 1.4rem 1rem 1.4rem 0; }

.trust article + article { border-left: 1px solid var(--line); padding-left: 1.25rem; }

.trust strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.trust span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 4.2rem 0; }

.section-paper { background: var(--paper); }

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
}

.intro { max-width: 46rem; color: var(--muted); font-size: 1.08rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
}

.section-paper .feature-card { background: var(--white); }

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff4e4;
  margin-bottom: 0.8rem;
}

.feature-card h3 { margin: 0 0 0.4rem; font-size: 1.12rem; color: var(--navy); }

.feature-card p { margin: 0; color: var(--muted); }

.search-panel {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.search-row { display: flex; gap: 0.6rem; position: relative; }

.search-row input {
  flex: 1;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid #d5cec3;
  padding: 0 1.1rem;
  font: inherit;
}

.search-row input:focus {
  outline: 3px solid rgba(18, 38, 63, 0.25);
  border-color: var(--navy);
}

.centre-results {
  margin-top: 0.7rem;
  display: grid;
}

.centre-results[hidden] { display: none; }

.centre-results a,
.centre-results p {
  padding: 0.55rem 0.4rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 0.4rem;
}

.section-paper .panel { background: #fff; }

.panel h3 { margin: 0 0 0.6rem; color: var(--navy); font-size: 1.25rem; }

.callout {
  margin-top: 1.4rem;
  background: #fff8ee;
  border-left: 5px solid var(--brand);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
}

caption {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

th { color: var(--navy); font-size: 0.92rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.steps h3 { margin: 0 0 0.35rem; font-size: 1.08rem; color: var(--navy); }

.steps p { margin: 0; color: var(--muted); }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

blockquote {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
}

blockquote p { margin: 0 0 0.8rem; }

blockquote footer { color: var(--muted); font-size: 0.92rem; }

.faq { margin-top: 1rem; display: grid; gap: 0.6rem; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq details p { margin: 0.7rem 0 0.2rem; }

.cta-space { margin-top: 2rem; }

.cta-band {
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: 2.2rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 { color: white; margin: 0 0 0.4rem; }

.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 40rem; }

.centre-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin-top: 1rem;
}

.centre-index a {
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.92rem;
}

.centre-index a:hover { border-color: var(--navy); }

.site-footer {
  background: #0d1c30;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  color: white;
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0 0 0.4rem; }

.socials { display: flex; gap: 0.8rem; margin-top: 0.8rem; }

.subscribe { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }

.subscribe input {
  flex: 1;
  min-width: 180px;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  padding: 0 1rem;
  font: inherit;
}

.form-note { min-height: 1.2rem; font-size: 0.92rem; }

.legal {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.page-hero {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(247, 146, 16, 0.18), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 2.8rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--navy);
}

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.92rem; }

.crumbs a { color: var(--navy); }

.stub-wrap { padding: 2rem 0 4rem; }

.stub-note { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }

.stub-form {
  max-width: 28rem;
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.stub-form label { display: grid; gap: 0.3rem; font-weight: 700; color: var(--navy); }

.stub-form input,
.stub-form textarea {
  font: inherit;
  border: 1px solid #d5cec3;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: #f3f1ec;
}

.cookie-bar {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-bar:not([hidden]) { display: flex; }

.cookie-bar p { margin: 0; max-width: 50rem; }

:focus-visible {
  outline: 3px solid #0e3f78;
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .has-sub > ul {
    position: static;
    box-shadow: none;
    display: none;
    min-width: 0;
    border: 0;
    padding-left: 0.4rem;
  }
  .has-sub:hover > ul { display: none; }
  .has-sub.is-open > ul,
  .has-sub:focus-within > ul { display: flex; }
  .hero-grid,
  .prose-grid,
  .footer-grid,
  .cta-band { grid-template-columns: 1fr; display: grid; }
  .feature-grid,
  .quotes,
  .steps { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust article + article { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust article { margin: 0; }
  .footer-grid { display: grid; }
}

@media (max-width: 720px) {
  .feature-grid,
  .quotes,
  .steps { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .hero { padding-top: 2.6rem; }
  .cookie-bar:not([hidden]) { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .cookie-bar, .hero-actions, .subscribe { display: none !important; }
  .hero { background: white; color: black; }
}
