/* ─── DeepGro Digital — Shared Stylesheet ────────────────────── */

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
ul[class], ol[class] { list-style: none; }

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:        #F8F9FB;
  --surface:   #FFFFFF;
  --fg:        #0A1628;
  --muted:     #5B6E82;
  --border:    #D4DCE8;
  --accent:    #0F5E93;
  --highlight: #4FB6E6;
  --navy:      #0A1628;
  --danger:    #B91C1C;
  --success:   #15803D;
  --warn:      #92400E;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'IBM Plex Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', Courier, monospace;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;

  --max:     1200px;
  --content: 720px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ──────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Anchor scroll offset — accounts for sticky nav height */
[id] { scroll-margin-top: 72px; }

/* ─── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}
h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--fg);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  max-width: 65ch;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
  text-decoration: none;
}

strong { font-weight: 700; }

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
pre {
  background: var(--fg);
  color: #e2e8f0;
  padding: var(--sp-6);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.7;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--narrow {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section        { padding: var(--sp-24) 0; }
.section--sm    { padding: var(--sp-16) 0; }
.section--lg    { padding: var(--sp-32) 0; }
.section--flush { padding: 0; }

.section--dark {
  background: var(--navy);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5 { color: #fff; }
.section--dark p  { color: rgba(255,255,255,0.75); }

.section--tinted { background: var(--surface); }
.section--ruled  { border-top: 1px solid var(--border); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.stack-4 { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-6 { display: flex; flex-direction: column; gap: var(--sp-6); }
.stack-8 { display: flex; flex-direction: column; gap: var(--sp-8); }

/* ─── Eyebrow / Badge ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: var(--sp-4);
  background: var(--surface);
  text-decoration: none;
}
.section--dark .eyebrow {
  color: var(--highlight);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #0b4d7c;
  border-color: #0b4d7c;
  color: #fff;
  box-shadow: 0 4px 18px rgba(15,94,147,0.28);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: currentColor;
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.875rem 1.75rem;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--sp-6);
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 30px;
  width: auto;
}
/* Fallback wordmark if logo image not found */
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-6);
  margin-left: auto;
  margin-right: var(--sp-4);
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--fg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.22s var(--ease), opacity 0.18s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--surface);
    flex-direction: column;
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-6);
    border-top: 1px solid var(--border);
    margin: 0;
    z-index: 199;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.125rem; color: var(--fg); }
  .site-nav .btn { display: none; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-6);
}
.footer-brand img { height: 26px; margin-bottom: var(--sp-4); }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-col a:focus-visible {
  outline: 1px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom p,
.footer-bottom a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  max-width: none;
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(var(--sp-16), 10vw, var(--sp-32)) 0 clamp(var(--sp-12), 8vw, var(--sp-24));
}
.hero--dark { background: var(--navy); }
.hero--dark h1 { color: #fff; }
.hero--dark .lead { color: rgba(255,255,255,0.72); }

.hero .kicker {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: var(--sp-4);
}
.hero h1 { margin-bottom: var(--sp-6); }
.hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--sp-8);
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

/* Product cards */
.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
}
.product-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}
.product-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.product-card .price sub {
  font-size: 1.25rem;
  vertical-align: baseline;
  letter-spacing: -0.01em;
}
.product-card .price-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: var(--sp-1);
}
.product-card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-top: var(--sp-2);
}
.product-card .tagline {
  font-size: 0.9375rem;
  color: var(--muted);
}
.product-card .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--sp-2);
}
.product-card .feature-list li {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-left: 1.375rem;
  position: relative;
  line-height: 1.5;
}
.product-card .feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.product-card .cta-wrap {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* ─── Comparison Table ────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.comparison-table th,
.comparison-table td {
  padding: var(--sp-4) var(--sp-6);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  vertical-align: top;
}
.comparison-table th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { font-weight: 600; color: var(--fg); }
.comparison-table .yes  { color: var(--success); font-weight: 700; }
.comparison-table .no   { color: var(--muted); }
.comparison-table .flag { color: var(--danger); font-weight: 600; }

/* ─── Steps ──────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--sp-8); }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.step h4 { margin-bottom: var(--sp-2); font-size: 1.0625rem; }
.step p   { font-size: 0.9375rem; max-width: none; color: var(--muted); }

/* ─── Driver / Decomposition Chart ───────────────────────────── */
.driver-chart { display: flex; flex-direction: column; gap: var(--sp-4); }
.driver-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.driver-row {
  display: grid;
  grid-template-columns: 220px 1fr 64px;
  align-items: center;
  gap: var(--sp-4);
}
.driver-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.driver-label.is-constraint { color: var(--danger); font-weight: 700; }
.driver-label.is-ok         { color: var(--success); }
.driver-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.driver-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
}
.driver-bar-fill.is-constraint { background: var(--danger); }
.driver-bar-fill.is-ok         { background: #22c55e; }
.driver-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.driver-value.is-constraint { color: var(--danger); }
.driver-value.is-ok         { color: var(--success); }

.driver-note {
  font-size: 0.8125rem;
  color: var(--muted);
  border-left: 3px solid var(--danger);
  padding-left: var(--sp-4);
  margin-top: var(--sp-2);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .driver-row { grid-template-columns: 1fr 48px; }
  .driver-bar-track { display: none; }
  .driver-label { grid-column: 1; white-space: normal; }
}

/* ─── Convergence Funnel ─────────────────────────────────────── */
.funnel-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-4) 0;
}

/* ─── Report Document ─────────────────────────────────────────── */
.report-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9375rem;
}
.report-doc-header {
  background: var(--navy);
  color: #fff;
  padding: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: start;
}
.report-doc-header h2,
.report-doc-header h3 { color: #fff; letter-spacing: -0.02em; }
.report-doc-header .meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.report-doc-header .meta strong { color: rgba(255,255,255,0.85); font-weight: 600; }

.report-body { padding: var(--sp-8); }

.report-section {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border);
}
.report-section:last-child { border-bottom: none; padding-bottom: 0; }

.report-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.constraint-box {
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  padding: var(--sp-6);
  background: #fff8f8;
}
.constraint-box .constraint-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: var(--sp-3);
}
.constraint-box h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: var(--sp-3);
}
.constraint-box p { font-size: 0.9375rem; max-width: none; }

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
  font-size: 0.9375rem;
}
.cost-table th,
.cost-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cost-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.cost-table .highlight-row td { font-weight: 700; color: var(--accent); }
.cost-table td:not(:first-child) { font-variant-numeric: tabular-nums; }

.fix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.fix-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.fix-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.fix-content h4 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.fix-content p { font-size: 0.9375rem; max-width: none; }

.limits-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
}
.limits-list li {
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
}
.limits-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ─── White-label Diagram ─────────────────────────────────────── */
.wl-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) 0;
}
.wl-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: center;
}
.wl-box h5 { font-size: 0.9375rem; margin-bottom: var(--sp-2); }
.wl-box p  { font-size: 0.8125rem; color: var(--muted); max-width: none; }
.wl-box.branded { border-color: var(--accent); background: rgba(15,94,147,0.04); }
.wl-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.wl-arrow svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .wl-flow {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .wl-arrow svg { transform: rotate(90deg); }
}

/* ─── About / Person ─────────────────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.person-avatar {
  aspect-ratio: 1;
  background: var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.person-avatar svg { width: 60%; height: auto; opacity: 0.25; }

@media (max-width: 768px) {
  .person-grid { grid-template-columns: 1fr; }
  .person-avatar { max-width: 180px; }
}

/* Timeline */
.timeline {
  padding-left: var(--sp-6);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  position: relative;
  padding-bottom: var(--sp-6);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.tl-year {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
  font-variant-numeric: tabular-nums;
}
.tl-item h5 { font-size: 1rem; margin-bottom: var(--sp-1); }
.tl-item p  { font-size: 0.9375rem; max-width: none; color: var(--muted); }

/* ─── Order Form ─────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.product-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.product-option { position: relative; }
.product-option input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-option label {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-4);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.product-option input:checked + label {
  border-color: var(--accent);
  background: rgba(15,94,147,0.05);
}
.product-option label:hover { border-color: var(--accent); }
.product-option input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.po-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-1);
  font-variant-numeric: tabular-nums;
}
.po-name { font-weight: 700; font-size: 0.9375rem; display: block; margin-bottom: var(--sp-1); }
.po-desc { font-size: 0.8125rem; color: var(--muted); display: block; }

.form-group { margin-bottom: var(--sp-6); }
.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--fg);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6875rem var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  min-height: 44px;
  touch-action: manipulation;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.form-group textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin-top: var(--sp-2); line-height: 1.5; }

@media (max-width: 480px) {
  .product-selector { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-6); }
}

/* ─── Stat / Number Display ───────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ─── Callout / Highlight Box ─────────────────────────────────── */
.callout {
  border-left: 3px solid var(--accent);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(15,94,147,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { font-size: 0.9375rem; max-width: none; }

/* ─── Misc Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.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;
}
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-12) 0;
}

/* Subtle section label */
.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.section--dark .section-label { color: rgba(255,255,255,0.4); }

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .hero-actions, .btn { display: none; }
  body { font-size: 12pt; }
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}


/* ── Hero: two columns, copy left, image right ─────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-split .hero-copy { min-width: 0; }
.hero-split .lead { margin-bottom: var(--sp-8); }

.hero-media {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tint, #EEF2F6);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder shows only while no image has loaded */
.hero-media-ph {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
  border: 1px dashed rgba(10, 22, 40, 0.22);
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg,
      rgba(10,22,40,0.028) 0 10px,
      transparent 10px 20px);
}
.hero-media.is-empty .hero-media-ph { display: flex; }
.hero-media-ph-label {
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(10, 22, 40, 0.42);
}
.hero-media-ph-hint {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  color: rgba(10, 22, 40, 0.32);
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { aspect-ratio: 16 / 10; max-height: 320px; }
}

/* Statutory entity details in the footer */
.legal-line {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.42);
  max-width: 78ch;
}

/* ── Analytics access grant on the order form ────────────────────────── */
.access-grant {
  border: 1px solid var(--rule, #D1D8DE);
  border-left: 3px solid var(--accent, #0F5E93);
  padding: 18px 20px;
  margin: 0 0 var(--sp-6, 1.5rem);
  display: flex; flex-direction: column; gap: 10px;
}
.access-grant legend { font-weight: 600; padding: 0 6px; font-size: 0.95rem; }
.access-grant .opt { font-weight: 400; color: var(--muted, #7D8994); }
.access-grant .check {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer; font-size: 0.95rem; line-height: 1.5;
}
.access-grant .check input { margin-top: 0.3em; flex: none; width: auto; }
.access-grant .hint { font-size: 0.8125rem; line-height: 1.55; color: var(--muted, #4D5964); margin: 0; }
.access-grant code { font-size: 0.875em; word-break: break-all; }

/* Bounded-scope note at the foot of the order form */
.scope-note {
  background: var(--tint, #EEF2F6);
  border-left: 3px solid var(--muted, #7D8994);
  padding: 14px 18px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted, #4D5964);
  margin-bottom: var(--sp-6, 1.5rem);
}
.form-group label .opt { font-weight: 400; color: var(--muted, #7D8994); }

/* ── Reusable image slots ─────────────────────────────────────────────
   Drop a real file at the referenced path and it replaces the placeholder.
   If the file is absent the <img> removes itself and the dashed placeholder
   shows instead, so a missing image never breaks a layout. */
.img-slot {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tint, #EEF2F6);
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot-ph {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px dashed rgba(10, 22, 40, 0.22);
  border-radius: 4px;
  background: repeating-linear-gradient(45deg,
    rgba(10,22,40,0.028) 0 10px, transparent 10px 20px);
  text-align: center; padding: 1rem;
}
.img-slot.is-empty .img-slot-ph { display: flex; }
.img-slot-ph b {
  font-family: var(--font-body, inherit);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(10, 22, 40, 0.44);
}
.img-slot-ph span {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6875rem; color: rgba(10, 22, 40, 0.32);
  word-break: break-all;
}
.img-slot-ph em {
  font-style: normal; font-size: 0.6875rem;
  color: rgba(10, 22, 40, 0.4); max-width: 30ch; line-height: 1.5;
}
.img-slot--wide { aspect-ratio: 21 / 9; }
.img-slot--band { aspect-ratio: 16 / 6; }
.img-slot--square { aspect-ratio: 1 / 1; }
.img-slot--portrait { aspect-ratio: 4 / 5; }

/* Two-column: copy beside an image */
.split-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.split-media.is-reversed .split-media-copy { order: 2; }
@media (max-width: 860px) {
  .split-media { grid-template-columns: 1fr; gap: 1.75rem; }
  .split-media.is-reversed .split-media-copy { order: 0; }
  .img-slot--wide, .img-slot--band { aspect-ratio: 16 / 9; }
}

/* Dark sections need a lighter placeholder */
.section--dark .img-slot { background: rgba(255,255,255,0.05); }
.section--dark .img-slot-ph { border-color: rgba(255,255,255,0.24);
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.04) 0 10px, transparent 10px 20px); }
.section--dark .img-slot-ph b { color: rgba(255,255,255,0.55); }
.section--dark .img-slot-ph span,
.section--dark .img-slot-ph em { color: rgba(255,255,255,0.4); }

/* ── Resources: listing and long-form posts ───────────────────────────── */
.post-list { list-style: none; margin: 0; padding: 0;
             display: flex; flex-direction: column; gap: 1px;
             background: var(--rule, #D1D8DE); border: 1px solid var(--rule, #D1D8DE); }
.post-item { background: #fff; }
.post-link { display: block; padding: clamp(1.5rem, 3vw, 2.25rem);
             text-decoration: none; color: inherit; transition: background-color .15s ease; }
.post-link:hover { background: var(--tint, #F4F7FA); }
.post-date { font-family: var(--font-mono, ui-monospace, monospace);
             font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase;
             color: var(--muted, #7D8994); display: block; margin-bottom: 0.75rem; }
.post-title { margin: 0 0 0.75rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2; }
.post-link:hover .post-title { color: var(--accent, #0F5E93); }
.post-summary { margin: 0 0 1rem; color: var(--muted, #4D5964); max-width: 68ch; }
.post-more { font-family: var(--font-mono, ui-monospace, monospace);
             font-size: 0.8125rem; font-weight: 700; color: var(--accent, #0F5E93); }
.post-meta { font-family: var(--font-mono, ui-monospace, monospace);
             font-size: 0.8125rem; color: var(--muted, #7D8994); margin-top: 1.25rem; }

/* Long-form body copy */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.25; }
.prose h3 { margin-top: 2rem; font-size: 1.1rem; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.72; color: var(--body-color, #2B3640); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { font-weight: 600; color: var(--fg, #0A1628); }
.prose blockquote { margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.4rem;
                    border-left: 3px solid var(--accent, #0F5E93);
                    color: var(--muted, #4D5964); font-style: normal; }
.prose code { font-family: var(--font-mono, ui-monospace, monospace);
              font-size: 0.875em; background: var(--tint, #EEF2F6); padding: 0.15em 0.4em; border-radius: 3px; }
.prose pre { background: var(--fg, #0A1628); color: #C6D6E6; padding: 1.15rem 1.35rem;
             border-radius: 4px; overflow-x: auto; font-size: 0.85rem; line-height: 1.7; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--rule, #D1D8DE); margin: 2.5rem 0; }

/* ═══════════════════════════════════════════════════════════════════════
   WordPress layer
   Everything below exists because the site runs on WordPress: block editor
   output, the admin bar, menus rendered by wp_nav_menu, and the classes that
   replaced the inline styles the static build used.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Headings used by the PHP templates ──────────────────────────────── */
.section-head { font-size: clamp(1.875rem, 3.5vw, 2.75rem); margin: 0 0 var(--sp-6); }
.post-head    { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 var(--sp-4); max-width: 22ch; }
.post-thumb   { margin: 0 0 var(--sp-8); }
.post-thumb img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* ── Nav rendered by wp_nav_menu ─────────────────────────────────────── */
.nav-links .menu-item a { text-decoration: none; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--fg); }
a.nav-cta { flex: none; }

/* ── The admin bar is fixed; the sticky nav must clear it ────────────── */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

/* ── Order form: classes replacing the static build's inline styles ──── */
.order-fieldset { border: none; padding: 0; margin: 0 0 var(--sp-6); }
.order-legend {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--sp-4);
  color: var(--fg);
  padding: 0;
}
.order-submit { border-top: 1px solid var(--border); padding-top: var(--sp-6); }
.order-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.order-submit-row .form-note { max-width: none; margin-top: 0; }
#order-total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--fg);
  white-space: nowrap;
  margin: 0;
}
.order-submit-btn { width: 100%; justify-content: center; }
.order-submit-note { text-align: center; }

/* ── Post call to action ─────────────────────────────────────────────── */
.post-cta {
  margin-top: var(--sp-16);
  padding: var(--sp-8);
  background: var(--tint, #EEF2F6);
  border-left: 3px solid var(--accent);
}
.post-cta h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 var(--sp-3); }
.post-cta p  { margin: 0 0 var(--sp-6); color: var(--muted); max-width: 60ch; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination { margin-top: var(--sp-12); display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: var(--sp-2); align-items: center; }
.pagination a, .pagination .current {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.pagination .current { background: var(--fg); color: #fff; border-color: var(--fg); }

/* ── Block editor output ─────────────────────────────────────────────── */
.alignfull  { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignwide  { max-width: var(--max); margin-left: auto; margin-right: auto; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignleft  { float: left;  margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }

.wp-block-image img { max-width: 100%; height: auto; border-radius: var(--radius); }
.wp-block-image figcaption,
.wp-block-embed figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: var(--sp-2);
}
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-12) auto;
  max-width: 100%;
}
.wp-block-quote {
  margin: var(--sp-8) 0;
  padding-left: var(--sp-6);
  border-left: 3px solid var(--accent);
  font-style: normal;
  color: var(--muted);
}
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th {
  border: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9375rem;
}
.wp-block-table th { background: var(--tint, #EEF2F6); text-align: left; font-weight: 600; }

.wp-block-button__link {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.75rem var(--sp-6);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

/* Gutenberg wraps group blocks in their own element; the section padding and
   centring must survive that extra div. */
.wp-block-group.section > .wp-block-group__inner-container,
.wp-block-group.hero    > .wp-block-group__inner-container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ── Editor-only: keep the dark bands legible while editing ──────────── */
.editor-styles-wrapper .section--dark,
.editor-styles-wrapper .hero { color: inherit; }

/* ── Comments are not used on this site, but WordPress may still emit
      the screen-reader heading; keep it out of the layout. ───────────── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ── Image slots as core/image blocks ─────────────────────────────────
   WordPress renders an image block as <figure class="wp-block-image …">
   and applies `height:auto` to the <img>, which defeats the fixed aspect
   ratio these slots rely on. It also strips the inline max-width the static
   build used on the portrait. Both are restored here, with the class doubled
   up so these rules outrank .wp-block-image img regardless of source order. */
figure.wp-block-image.img-slot,
figure.wp-block-image.hero-media {
  margin-left: 0;
  margin-right: 0;
}
figure.wp-block-image.img-slot > img,
figure.wp-block-image.hero-media > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* The portrait is a bio photograph, not a banner: it was 300px wide in the
   approved design and the inline style that said so does not survive the
   editor. */
figure.wp-block-image.img-slot--portrait {
  max-width: 300px;
  margin: 0 0 var(--sp-8);
}

/* Aspect ratios have to be repeated at this specificity too, because
   .wp-block-image carries its own sizing. */
figure.wp-block-image.img-slot--wide     { aspect-ratio: 21 / 9; }
figure.wp-block-image.img-slot--band     { aspect-ratio: 16 / 6; }
figure.wp-block-image.img-slot--square   { aspect-ratio: 1 / 1; }
figure.wp-block-image.img-slot--portrait { aspect-ratio: 4 / 5; }
figure.wp-block-image.hero-media         { aspect-ratio: 4 / 3; }

@media (max-width: 720px) {
  figure.wp-block-image.img-slot--wide,
  figure.wp-block-image.img-slot--band { aspect-ratio: 16 / 9; }
}

/* ── Sample report page ───────────────────────────────────────────────
   .report-page-header and .report-wrapper carried no rules at all in the
   original build, so the page header — written in white text for a dark
   band — rendered as pale grey on a pale background, and the report itself
   sat flat on the page rather than reading as a document. */
.report-page-header {
  background: var(--navy, #0A1628);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.report-page-header h1 {
  color: #fff;
  max-width: 20ch;
  margin: 0 0 var(--sp-6);
}
.report-page-header p { color: rgba(255, 255, 255, 0.78); max-width: 68ch; }
.report-page-header p:last-child { margin-bottom: 0; }
.report-page-header a { color: var(--highlight, #4FB6E6); }

.report-wrapper {
  background: var(--tint, #EEF2F6);
  padding: clamp(2rem, 5vw, 4rem) var(--sp-6);
}
figure.wp-block-image.report-wrapper { padding-inline: var(--sp-6); }

/* The brief should read as a document sitting on a desk, not as page content. */
.report-doc {
  max-width: 860px;
  margin-inline: auto;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.06), 0 12px 32px rgba(10, 22, 40, 0.08);
}
.report-doc > .wp-block-group,
.report-doc > section { padding-inline: clamp(1.5rem, 4vw, 3.25rem); }
.report-doc > .wp-block-group:first-child { padding-top: clamp(2rem, 4vw, 3rem); }
.report-doc > .wp-block-group:last-child  { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ── "Download the PDF" panel on the sample page ──────────────────────── */
.pdf-offer {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #D4DCE8);
  border-left: 3px solid var(--accent, #0F5E93);
  border-radius: var(--radius, 6px);
}
.pdf-offer-copy { flex: 1 1 22rem; }
.pdf-offer h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin: 0 0 var(--sp-2);
}
.pdf-offer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted, #5B6E82);
  max-width: 60ch;
}
.pdf-offer .btn { flex: none; }
.pdf-offer-meta {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #7D8994);
}

/* A slot still showing the shipped placeholder gets a dashed outline, so an
   unfilled slot reads as deliberate rather than broken. Replacing the image
   from the media library removes the outline automatically. */
figure.wp-block-image:has(img[src*="placeholder.png"]) {
  outline: 1px dashed rgba(10, 22, 40, 0.22);
  outline-offset: -1px;
  background: var(--tint, #EEF2F6);
}

/* The footer band is navy, so it carries the reversed mark. */
.footer-logo {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: var(--sp-4);
}
/* ─── Legal pages ─────────────────────────────────────────────── */
.legal-doc { max-width: 68ch; }
.legal-doc h2 { font-size: 1.25rem; margin: var(--sp-8) 0 var(--sp-3); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { font-size: 0.9375rem; line-height: 1.7; }
.legal-doc p + p { margin-top: var(--sp-3); }
.legal-doc ul { list-style: disc; padding-left: 1.25rem; margin: var(--sp-3) 0; display: grid; gap: var(--sp-2); }
.legal-doc a { color: var(--accent); }
.legal-doc .ph { background: #FFF3BF; color: #5C4400; padding: 0 0.25em; border-radius: 3px; font-weight: 600; }

/* ─── Cookie consent ──────────────────────────────────────────── */
.cc-banner { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 1000; background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(10,22,40,0.14); max-width: 960px; margin: 0 auto; }
.cc-inner { display: flex; gap: var(--sp-6); align-items: center; padding: var(--sp-4) var(--sp-6); }
.cc-text { font-size: 0.875rem; line-height: 1.55; margin: 0; max-width: none; color: var(--fg); }
.cc-text a, .cc-panel a { color: var(--accent); }
.cc-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; flex-shrink: 0; }
.cc-actions .btn { white-space: nowrap; }
.cc-modal { position: fixed; inset: 0; z-index: 1001; background: rgba(10,22,40,0.5); display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.cc-modal[hidden] { display: none; }
.cc-panel { background: var(--surface); color: var(--fg); border-radius: var(--radius-lg); padding: var(--sp-8); max-width: 520px; width: 100%; max-height: calc(100vh - 2rem); overflow-y: auto; }
.cc-panel h2 { font-size: 1.375rem; margin-bottom: var(--sp-3); }
.cc-panel > p { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--sp-4); }
.cc-row { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) 0; border-top: 1px solid var(--border); font-size: 0.875rem; line-height: 1.5; cursor: pointer; }
.cc-row input { margin-top: 0.3rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--accent); }
.cc-panel .cc-actions { margin-top: var(--sp-6); justify-content: flex-end; }
@media (max-width: 720px) {
  .cc-inner { flex-direction: column; align-items: stretch; gap: var(--sp-3); padding: var(--sp-4); }
  .cc-actions .btn { flex: 1 1 0; justify-content: center; }
}
@media print { .cc-banner, .cc-modal { display: none !important; } }
.legal-table-wrap { overflow-x: auto; margin: var(--sp-4) 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); }
.legal-table th { font-weight: 600; background: var(--bg); }
.legal-table tr:last-child td { border-bottom: 0; }
