/* ==========================================================================
   StatDec — site stylesheet
   Design language extended from /services/ai-act and /services/scoring/validation-services
   ========================================================================== */

:root {
  --navy:     #002060;
  --navy-dk:  #001540;
  --navy-lt:  #003090;
  --blue:     #1a56a0;
  --blue-lt:  #e8eef7;
  --blue-mid: #2e6bbf;
  --border:   #e4e9f2;
  --border-2: #cfd8ec;
  --head:     #151b29;
  --body:     #3f4859;
  --muted:    #626b7e;
  --light:    #f7f9fc;
  --light-2:  #f0f4fb;
  --ghost:    #d0d8e8;
  --white:    #ffffff;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 980px;
  --radius: 4px;
  --header-h: 96px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--head);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
  font-size: 0.9rem; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0,32,96,.07); }

.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 74px; flex-shrink: 0; }
@media (max-width: 1040px) { .brand-logo { height: 54px; } }
@media (max-width: 420px)  { .brand-logo { height: 46px; } }

/* Primary nav */
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 0.89rem; font-weight: 600;
  color: var(--head); letter-spacing: .01em; border-radius: 3px;
  transition: color .18s, background .18s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--navy); background: var(--light); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--navy); }
.nav-item.is-active > .nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--navy);
}
.nav-caret { width: 8px; height: 8px; flex-shrink: 0; opacity: .5; transition: transform .18s; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); opacity: .9; }

.nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0,32,96,.13);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel a {
  display: block; padding: 9px 14px; font-size: 0.89rem; color: var(--body);
  border-radius: 3px; transition: background .15s, color .15s;
}
.nav-panel a:hover { background: var(--blue-lt); color: var(--navy); }
.nav-panel a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-panel-group {
  font-size: 0.69rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 12px 14px 5px;
}
.nav-panel-group:first-child { padding-top: 6px; }
.nav-panel-desc { display: block; font-size: 0.84rem; color: var(--muted); font-weight: 400; margin-top: 1px; }

/* Header right cluster */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.lang-switch a {
  padding: 5px 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--navy); background: var(--light); }
.lang-switch a.is-active { background: var(--navy); color: #fff; }

.btn-header {
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 2px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background .18s;
}
.btn-header:hover { background: var(--navy-lt); }

.nav-toggle { display: none; padding: 8px; margin-right: -8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 60%, var(--navy-lt) 100%);
  color: #fff; padding: 76px 0 64px; position: relative; overflow: hidden;
  border-top: 3px solid rgba(255,255,255,.4);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { right: -80px; top: -80px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); }
.hero::after  { right: 40px;  top: 40px;  width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.13); }

.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.78rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.85); font-weight: 600; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px; max-width: 900px;
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,.9); }
.hero-lead { font-size: 1.05rem; color: rgba(255,255,255,.92); max-width: 680px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tag {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #ffffff; padding: 4px 14px; border-radius: 2px;
  font-size: 0.84rem; letter-spacing: .08em; font-weight: 600; text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-btn {
  display: inline-block; background: #fff; color: var(--navy); padding: 13px 30px;
  font-weight: 700; font-size: 0.89rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; transition: opacity .2s;
}
.hero-btn:hover { opacity: .88; }
.hero-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hero-btn.ghost:hover { background: rgba(255,255,255,.1); opacity: 1; }

/* Stat strip */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 36px; margin-top: 44px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { padding-left: 14px; border-left: 2px solid rgba(255,255,255,.3); }
.hero-stat-value { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: #fff; line-height: 1.3; }
.hero-stat-label {
  font-size: 0.69rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.72); font-weight: 600; margin-top: 3px;
}

/* --------------------------------------------------------------- layout */
.page-body { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 28px 88px; }
.page-body.wide { max-width: var(--wrap); }
.section { margin-top: 62px; }
.section:first-child { margin-top: 56px; }
.section-label {
  font-size: 0.75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 10px;
}
.section > h2, .section-head h2 {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 600;
  color: var(--navy); margin-bottom: 18px; line-height: 1.3;
}
.section h3 { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.section p { font-size: 1.02rem; color: var(--body); margin-bottom: 14px; }
.section p:last-child { margin-bottom: 0; }
.section p a, .prose a { color: var(--blue); border-bottom: 1px solid rgba(26,86,160,.3); }
.section p a:hover, .prose a:hover { border-bottom-color: var(--blue); }
.divider { width: 52px; height: 2px; background: var(--navy); margin-bottom: 24px; }
.section-center { text-align: center; }
.section-center .divider { margin-left: auto; margin-right: auto; }
.section-center > p { max-width: 640px; margin-left: auto; margin-right: auto; }

hr.thin { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* Bullet lists */
.list-check { margin-top: 6px; }
.list-check li {
  font-size: 0.96rem; color: var(--body); padding-left: 22px; position: relative; margin-bottom: 9px;
}
.list-check li::before {
  content: '›'; position: absolute; left: 4px; top: -1px;
  color: var(--blue); font-weight: 700;
}
.list-check.two-col { columns: 2; column-gap: 34px; }
.list-check.two-col li { break-inside: avoid; }
@media (max-width: 620px) { .list-check.two-col { columns: 1; } }

/* Prose (long-form pages) */
.prose p { font-size: 1.02rem; color: var(--body); margin-bottom: 16px; }
.prose h3 { margin-top: 32px; }
.prose ul { margin: 0 0 18px; }
.prose ul li { font-size: 0.98rem; color: var(--body); padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before { content: '›'; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }
.prose strong { font-weight: 600; color: var(--head); }

/* --------------------------------------------------------------- callouts */
.intro-block {
  background: var(--light); border-left: 3px solid var(--navy);
  padding: 28px 32px; margin-top: 44px; border-radius: 0 var(--radius) var(--radius) 0;
}
.intro-block p { font-size: 1rem; color: var(--body); margin-bottom: 12px; }
.intro-block p:last-child { margin-bottom: 0; }
.intro-block.flush { margin-top: 0; }

.callout {
  background: var(--light); border-left: 3px solid var(--navy);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 22px;
}
.callout strong { display: block; color: var(--navy); font-weight: 700; font-size: 0.95rem; margin-bottom: 5px; }
.callout p { font-size: 0.94rem; color: var(--body); margin: 0; }
.callout.warn { border-left-color: #b4791f; }
.callout.warn strong { color: #8d5d13; }

/* Navy panel */
.navy-box { background: var(--navy); color: #fff; padding: 32px 36px; border-radius: var(--radius); margin-top: 44px; }
.navy-box h2, .navy-box h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.navy-box > p { font-size: 0.96rem; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.navy-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.navy-icon {
  width: 40px; height: 40px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.navy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.navy-list li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  padding: 10px 14px; border-radius: 3px; font-size: 0.89rem; color: rgba(255,255,255,.93);
  display: flex; align-items: flex-start; gap: 10px;
}
.ref-code { color: #fff; font-weight: 700; white-space: nowrap; font-size: 0.85rem; flex-shrink: 0; }
@media (max-width: 620px) { .navy-list { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: box-shadow .2s, border-color .2s; background: #fff;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,32,96,.1); }
.card h3, .card h4 { font-family: var(--serif); font-size: 1.08rem; color: var(--navy); margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 0.92rem; color: var(--body); line-height: 1.65; margin-bottom: 0; }
.card ul { margin-top: 12px; }
.card ul li { font-size: 0.89rem; color: var(--body); margin-bottom: 5px; padding-left: 16px; position: relative; }
.card ul li::before { content: '›'; position: absolute; left: 2px; color: var(--blue); font-weight: 700; }
.card.featured { border-color: var(--navy); border-width: 2px; background: var(--blue-lt); position: relative; }
.card.tint { background: var(--light); }
.card-badge {
  position: absolute; top: -1px; right: 20px; background: var(--navy); color: #fff;
  font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 3px 10px; border-radius: 0 0 3px 3px;
}
.card-icon { font-size: 1.4rem; line-height: 1; margin-bottom: 12px; display: block; }
.card-tag {
  display: inline-block; background: var(--blue-lt); border: 1px solid rgba(26,86,160,.2);
  color: var(--blue); font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; padding: 2px 8px; border-radius: 2px; margin-bottom: 10px;
}

/* Link card (service teasers) */
a.card { display: block; }
a.card .card-more {
  display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
a.card:hover .card-more { color: var(--navy); }
a.card:hover { border-color: var(--blue-mid); }

/* Numbered step cards */
.steps { margin-top: 28px; display: grid; gap: 14px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 5px; padding: 22px 24px; background: #fff;
}
.step-num {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 300;
  color: var(--ghost); line-height: 1; flex-shrink: 0; width: 44px;
}
.step h3, .step h4 { font-size: 1rem; font-weight: 700; color: var(--head); margin-bottom: 5px; font-family: var(--sans); }
.step p { font-size: 0.94rem; color: var(--body); margin: 0; line-height: 1.65; }

/* Why-card (top-ruled, ghost numeral) */
.why-card { padding: 24px; border-top: 2px solid var(--navy); background: var(--light); }
.why-num { font-family: var(--serif); font-size: 2rem; color: rgba(0,32,96,.15); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.why-card h3, .why-card h5 { font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.why-card p { font-size: 0.88rem; color: var(--body); line-height: 1.6; margin: 0; }

/* Two-column test/spec grid */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 24px;
}
@media (max-width: 680px) { .split-grid { grid-template-columns: 1fr; } }
.split-header {
  background: var(--navy); color: #fff; padding: 14px 20px;
  font-size: 0.84rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.split-header.alt { background: var(--blue); }
.split-items { padding: 6px 0; border-right: 1px solid var(--border); }
.split-items:last-child { border-right: none; }
.split-item {
  padding: 10px 20px; font-size: 0.92rem; color: var(--body);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.split-item:last-child { border-bottom: none; }
.split-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* Chips (article references etc.) */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; }
.chip-item { background: var(--light); border-radius: 3px; padding: 14px 16px; }
.chip-label {
  display: inline-block; background: var(--navy); color: #fff; font-size: 0.67rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 2px 8px; border-radius: 2px; margin-bottom: 8px;
}
.chip-item p { font-size: 0.89rem; color: var(--body); margin: 0; line-height: 1.6; }

/* --------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 0; margin-top: 28px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.tab {
  padding: 12px 22px; font-size: 0.84rem; font-weight: 600; color: var(--body);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s;
  text-transform: uppercase; letter-spacing: .06em;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: none; padding: 28px 0 0; }
.tab-panel.active { display: block; }
.tab-panel > p { font-size: 0.95rem; color: var(--body); margin-bottom: 18px; }

/* --------------------------------------------------------------- accordion */
.accordion { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-trigger {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 18px 24px; font-family: var(--serif); font-size: 1.05rem;
  font-weight: 600; color: var(--navy); transition: background .15s;
}
.acc-trigger:hover { background: var(--light); }
.acc-trigger .acc-icon {
  flex-shrink: 0; width: 20px; height: 20px; position: relative; transition: transform .22s;
}
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after {
  content: ''; position: absolute; background: var(--blue); border-radius: 1px;
}
.acc-trigger .acc-icon::before { left: 0; right: 0; top: 9px; height: 2px; }
.acc-trigger .acc-icon::after { top: 0; bottom: 0; left: 9px; width: 2px; transition: opacity .22s; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { opacity: 0; }
.acc-panel { display: none; padding: 0 24px 24px; }
.acc-panel.open { display: block; }
.acc-panel p { font-size: 0.96rem; color: var(--body); margin-bottom: 14px; }
.acc-panel ul li { font-size: 0.93rem; color: var(--body); padding-left: 20px; position: relative; margin-bottom: 7px; }
.acc-panel ul li::before { content: '›'; position: absolute; left: 3px; color: var(--blue); font-weight: 700; }

/* --------------------------------------------------------------- timeline */
.timeline { margin-top: 28px; padding-left: 26px; border-left: 2px solid var(--border); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ghost);
}
.tl-item.past::before { background: var(--navy); border-color: var(--navy); }
.tl-item.key::before  { border-color: var(--navy); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-date { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--navy); }
.tl-pill {
  font-size: 0.67rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 2px 9px; border-radius: 2px; background: var(--light); border: 1px solid var(--border); color: var(--body);
}
.tl-pill.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl-item p { font-size: 0.94rem; color: var(--body); margin: 0; }

/* --------------------------------------------------------------- notice */
.notice { border: 1px solid var(--border-2); border-radius: 5px; overflow: hidden; margin-top: 48px; }
.notice-head {
  background: var(--light-2); padding: 12px 20px; display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--navy);
}
.notice-row { padding: 20px; border-bottom: 1px solid var(--border); }
.notice-row:last-child { border-bottom: none; }
.notice-tag {
  display: inline-block; background: #e8edf8; color: var(--navy); font-size: 0.65rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 2px 8px; border-radius: 2px; margin-bottom: 8px;
}
.notice-row h3, .notice-row h4 { font-size: 0.98rem; font-weight: 700; color: var(--head); margin-bottom: 8px; font-family: var(--sans); }
.notice-row p { font-size: 0.92rem; color: var(--body); margin-bottom: 10px; }
.notice-row p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- CTA */
.cta-block {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  padding: 48px; border-radius: var(--radius); margin-top: 64px; text-align: center;
}
.cta-block h2, .cta-block h3 { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 12px; font-weight: 600; }
.cta-block p { color: rgba(255,255,255,.88); font-size: 0.98rem; max-width: 560px; margin: 0 auto 24px; }
.cta-btn {
  display: inline-block; background: #fff; color: var(--navy); padding: 13px 32px;
  font-weight: 700; font-size: 0.93rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; transition: opacity .2s;
}
.cta-btn:hover { opacity: .88; }
@media (max-width: 600px) { .cta-block { padding: 36px 24px; } }

/* --------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--head); }
.field label .req { color: #b4391f; }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: 3px; padding: 11px 14px;
  font-size: 0.98rem; background: #fff; transition: border-color .15s, box-shadow .15s;
  font-weight: 400; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(46,107,191,.12);
}
.field textarea { min-height: 148px; resize: vertical; }
.field-hint { font-size: 0.84rem; color: var(--muted); }
.field-error { font-size: 0.84rem; color: #b4391f; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b4391f; }
.field.has-error .field-error { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; }
.consent input { width: auto; margin-top: 5px; flex-shrink: 0; }
.consent label { text-transform: none; letter-spacing: 0; font-size: 0.94rem; font-weight: 400; color: var(--body); }
.form-submit {
  background: var(--navy); color: #fff; padding: 14px 34px; border-radius: 2px;
  font-size: 0.87rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: background .18s;
}
.form-submit:hover { background: var(--navy-lt); }
.form-submit[disabled] { opacity: .6; cursor: not-allowed; }
.form-status { margin-top: 16px; font-size: 0.93rem; display: none; padding: 14px 18px; border-radius: 3px; }
.form-status.ok { display: block; background: #edf6ee; border-left: 3px solid #2e7d4f; color: #205c39; }
.form-status.err { display: block; background: #fdeeec; border-left: 3px solid #b4391f; color: #8d2a14; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------- misc blocks */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; margin-top: 34px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-detail { margin-bottom: 22px; }
.contact-detail .lbl {
  font-size: 0.69rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 4px;
}
.contact-detail .val { font-size: 1rem; color: var(--head); }
.contact-detail .val a:hover { color: var(--blue); }
.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* News */
.news-list { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--border); }
.news-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--border); align-items: start;
}
@media (max-width: 620px) { .news-item { grid-template-columns: 1fr; gap: 8px; } }
.news-date { font-size: 0.76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 5px; }
.news-item h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
.news-item a:hover h3 { color: var(--blue-mid); }
.news-item p { font-size: 0.94rem; color: var(--body); margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.team-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: #fff; }
.team-card .nm { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.team-card .rl { font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* Logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.logo-cell { background: #fff; display: flex; align-items: center; justify-content: center; padding: 26px 20px; min-height: 104px; }
.logo-cell img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .68; transition: filter .2s, opacity .2s; }
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* Data tables */
.table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; }
table.data th {
  background: var(--navy); color: #fff; text-align: left; padding: 13px 18px;
  font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
table.data td { padding: 12px 18px; font-size: 0.94rem; color: var(--body); border-bottom: 1px solid var(--border); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--light); }

/* Breadcrumb */
.crumbs { max-width: var(--wrap-narrow); margin: 0 auto; padding: 18px 28px 0; font-size: 0.82rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.crumbs li::after { content: '/'; margin-left: 7px; color: var(--ghost); }
.crumbs li:last-child::after { content: ''; }
.crumbs a:hover { color: var(--blue); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy-dk); color: rgba(255,255,255,.8); margin-top: 0; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 28px 0;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { height: 84px; width: auto; }
.footer-about { font-size: 0.92rem; line-height: 1.7; margin-top: 18px; max-width: 300px; }
.footer-parent { margin-top: 18px; font-size: 0.84rem; color: rgba(255,255,255,.68); }
.footer-col h2, .footer-col h3, .footer-col h4 {
  font-size: 0.71rem; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; font-weight: 700; margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,.8); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--wrap); margin: 44px auto 0; padding: 20px 28px 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: rgba(255,255,255,.7);
}
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* --------------------------------------------------------------- mobile nav */
@media (max-width: 1040px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: block; order: 3; }
  .header-actions .btn-header { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; background: #fff; margin: 0;
    padding: 18px 24px 60px; overflow-y: auto; display: none; border-top: 1px solid var(--border);
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link { padding: 15px 4px; font-size: 0.98rem; justify-content: space-between; }
  .nav-item.is-active > .nav-link::after { display: none; }
  .nav-panel {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; padding: 0 0 12px 12px; display: none; min-width: 0;
  }
  .nav-panel.open { display: block; }
  .nav-item:hover > .nav-panel, .nav-item:focus-within > .nav-panel { display: none; }
  .nav-item:hover > .nav-panel.open, .nav-item:focus-within > .nav-panel.open { display: block; }
  .nav-caret { transform: none !important; }
  .nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg) !important; }
  .nav-mobile-cta { display: block; margin-top: 24px; text-align: center; }
}
@media (min-width: 1041px) { .nav { display: block !important; } }

@media (max-width: 680px) {
  .hero { padding: 52px 0 46px; }
  .hero-stats { gap: 22px; }
  .hero-stat { flex: 1 1 130px; }
  .page-body { padding-bottom: 64px; }
  .section { margin-top: 48px; }
  .navy-box { padding: 26px 22px; }
  .intro-block { padding: 22px 24px; }
}

/* --------------------------------------------------------- article figures */
.figure { margin: 32px 0; }
.figure-media {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--light);
}
.figure figcaption {
  font-size: 0.89rem; color: var(--body); line-height: 1.6;
  margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--border);
}
.figure figcaption strong { color: var(--head); font-weight: 600; }
/* Square social-format video sits centred rather than spanning the column. */
.figure-square .figure-media { max-width: 480px; margin-inline: auto; }
.figure-square figcaption { max-width: 480px; margin-inline: auto; }

/* --------------------------------------------------------------- consent */
.cc[hidden] { display: none; }
body.cc-locked { overflow: hidden; }

.cc-banner {
  position: fixed; z-index: 300; right: 20px; bottom: 20px; width: min(430px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--border-2); border-top: 3px solid var(--navy);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,32,96,.22);
  padding: 24px 26px; animation: cc-in .26s ease-out;
}
@keyframes cc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }
.cc-banner h2 { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); font-weight: 600; margin-bottom: 10px; }
.cc-banner p { font-size: 0.91rem; color: var(--body); line-height: 1.65; margin-bottom: 18px; }
.cc-banner p a { color: var(--blue); border-bottom: 1px solid rgba(26,86,160,.35); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.cc-btn {
  font-size: 0.84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 2px; transition: background .16s, color .16s, border-color .16s;
}
.cc-btn.primary { background: var(--navy); color: #fff; flex: 1 1 auto; }
.cc-btn.primary:hover { background: var(--navy-lt); }
.cc-btn.ghost { border: 1px solid var(--border-2); color: var(--navy); background: #fff; }
.cc-btn.ghost:hover { background: var(--light); border-color: var(--navy); }
.cc-btn.link {
  background: none; color: var(--body); text-transform: none; letter-spacing: 0;
  font-weight: 400; font-size: 0.87rem; padding: 11px 4px; text-decoration: underline;
  text-underline-offset: 3px; flex: 0 0 100%;
}
.cc-btn.link:hover { color: var(--navy); }

.cc-modal {
  position: fixed; inset: 0; z-index: 310; background: rgba(0,21,64,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cc-modal[hidden] { display: none; }
.cc-modal-inner {
  background: #fff; border-radius: var(--radius); width: min(680px, 100%);
  max-height: min(84vh, 780px); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,21,64,.4);
}
.cc-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border-bottom: 1px solid var(--border);
}
.cc-modal-head h2 { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.cc-close { font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 0 4px; }
.cc-close:hover { color: var(--navy); }
.cc-modal-body { padding: 24px 26px; overflow-y: auto; }
.cc-intro { font-size: 0.94rem; color: var(--body); margin-bottom: 22px; }

.cc-cat { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.cc-cat:last-child { margin-bottom: 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cc-cat-head h3 { font-size: 0.98rem; font-weight: 700; color: var(--head); font-family: var(--sans); margin: 0; }
.cc-cat p { font-size: 0.89rem; color: var(--body); line-height: 1.6; margin: 0; }
.cc-cat .table-wrap { margin-top: 14px; }
.cc-cat table.data td, .cc-cat table.data th { font-size: 0.84rem; padding: 9px 12px; }
.cc-always {
  font-size: 0.69rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); background: var(--light); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 2px; white-space: nowrap;
}

.cc-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider {
  position: absolute; inset: 0; background: var(--ghost); border-radius: 13px;
  transition: background .18s; pointer-events: none;
}
.cc-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0,32,96,.3);
}
.cc-switch input:checked + .cc-slider { background: var(--navy); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--blue-mid); outline-offset: 3px; }

.cc-modal-foot {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 26px;
  border-top: 1px solid var(--border); background: var(--light);
}
.cc-modal-foot .cc-btn.primary { flex: 1 1 200px; }

@media (max-width: 520px) {
  .cc-banner { right: 10px; left: 10px; bottom: 10px; width: auto; padding: 20px; }
  .cc-actions .cc-btn.primary { flex: 1 1 100%; }
}

/* Consent-gated embed placeholder */
.consent-placeholder {
  background: var(--light); border: 1px dashed var(--border-2); border-radius: var(--radius);
  min-height: 340px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 32px 28px;
}
.consent-placeholder.is-loaded { min-height: 0; padding: 0; border: none; background: none; display: block; }
.consent-placeholder iframe { width: 100%; height: 340px; border: 0; display: block; }
.consent-placeholder-title { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.consent-placeholder p { font-size: 0.92rem; color: var(--body); max-width: 420px; margin: 0; }
.consent-placeholder .cc-btn { margin-top: 4px; }

.footer-link-btn {
  font-size: 0.84rem; color: rgba(255,255,255,.7); padding: 0;
  text-decoration: underline; text-underline-offset: 3px; transition: color .15s;
}
.footer-link-btn:hover { color: #fff; }

@media print {
  .cc, .cc-banner, .cc-modal { display: none !important; }

  .site-header, .site-footer, .cta-block, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}

/* --------------------------------------------------------------- historic mark */
.historic-mark {
  margin: 18px 0 0; padding: 16px 18px 14px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 320px;
}
.historic-mark img { display: block; max-height: 90px; width: auto; max-width: 100%; height: auto; }
.historic-mark figcaption { margin-top: 10px; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }

/* --------------------------------------------------------------- team biography */
.bio {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px;
  align-items: start; margin-top: 6px;
}
.bio-photo {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
}

@media (max-width: 680px) {
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .bio-photo { max-width: 240px; }
}
