/* ─────────────────────────────────────────────────────────
   DATRUM — Legal / Compliance subpages
   Shared styling for /security, /privacy, /subprocessors (EN + ES).
   Dark editorial gallery palette — Space Grotesk + DM Sans.
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0C1B1F; /* Midnight Teal */
  --bg2:     #0E2329; /* subtle elevated */
  --surface: #0F5C6D; /* Deep Teal — cards/panels */
  --border:  #1A3A40; /* dividers */
  --teal:    #1E7F98; /* Ocean Blue — interactive */
  --lemon:   #F2D24B; /* Lemon Glow — accent/links */
  --text:    #E8EDED; /* Frost */
  --muted:   #9AABAF; /* Muted Frost */
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 80px 32px 120px; }
@media (max-width: 639px) { .wrap { padding: 56px 20px 80px; } }

/* Pages carrying the full site nav (Resources hub) need to clear its fixed
   64px bar. Scoped to .has-nav so the ~18 pages using the static .cs-topbar
   keep their existing spacing. 64 nav + 80 breathing = 144. */
body.has-nav .wrap { padding-top: 144px; }
@media (max-width: 639px) { body.has-nav .wrap { padding-top: 112px; } }

a { color: var(--lemon); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.82; }

.back-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: inline-block;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); opacity: 1; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--lemon);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 680px;
}

.last-updated,
.meta-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ── Table of contents ──────────────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 56px;
}
.toc-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  counter-reset: section;
}
@media (max-width: 639px) { .toc ol { grid-template-columns: 1fr; } }
.toc li { counter-increment: section; }
.toc li::before {
  content: counter(section, decimal-leading-zero) ".";
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--lemon);
  margin-right: 8px;
}
.toc a { color: var(--text); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--lemon); opacity: 1; }

/* ── Sections ───────────────────────────────────────── */
section { margin-top: 56px; scroll-margin-top: 88px; }

h2,
section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
h2 { font-size: 22px; margin: 56px 0 16px; }
section h2 { font-size: 26px; margin-bottom: 8px; }

section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: var(--text);
  margin: 22px 0 10px;
  font-weight: 500;
}

.section-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--lemon);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

p,
section p { color: var(--muted); margin-bottom: 16px; font-size: 15px; line-height: 1.75; }

section ul { list-style: none; padding: 0; margin-bottom: 20px; }
section ul li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lemon);
  font-family: 'DM Sans', sans-serif;
}
section ul.no-list li::before { display: none; }
section ul.no-list li { padding-left: 0; }
section strong, strong { color: var(--text); font-weight: 500; }

/* ── Callout ────────────────────────────────────────── */
.callout {
  border-left: 2px solid var(--lemon);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.callout p { color: var(--text); font-size: 14.5px; margin-bottom: 0; }

/* ── Attestation card ───────────────────────────────── */
.attest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0;
}
.attest-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.attest-check { color: var(--lemon); font-size: 18px; font-weight: 700; }
.attest-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.attest p { font-size: 14px; color: var(--text); }
.attest .signature {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Divider (privacy) ──────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 96px 0 56px;
  position: relative;
}
.divider-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Table (subprocessors) ──────────────────────────── */
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
td { color: var(--muted); }
td:first-child { font-weight: 500; color: var(--text); }

/* ── Footer ─────────────────────────────────────────── */
.footer-note,
.footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ── Case study pages ───────────────────────────────── */
.cs-topbar {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 639px) { .cs-topbar { padding: 18px 20px 0; } }
.cs-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--lemon);
  text-decoration: none;
}
.cs-wordmark:hover { opacity: 0.85; }
.cs-topbar .back-link { margin-bottom: 0; }

.cs-deck {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 32px;
}
.cs-deck b, .cs-deck strong { color: var(--text); font-weight: 400; }

.cs-figure {
  margin: 8px 0 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
}
.cs-figure img { width: 100%; height: auto; display: block; }
.cs-figure figcaption {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.cs-figure--inline { margin: 40px 0; }

.cs-live { margin: -28px 0 44px; }
.cs-live a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--lemon);
  text-decoration: none;
}
.cs-live a:hover { color: var(--text); opacity: 1; }

/* ── Resources: code blocks ─────────────────────────── */
pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0;
}
pre code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre;
}
:not(pre) > code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--lemon);
}

/* ── Resources: interactive checklists ──────────────── */
.rc-runmeta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.rc-subhead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.rc-deck {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 18px;
}
.rc-group {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 32px;
}
.rc-group > h3 { margin-top: 0; font-size: 15px; letter-spacing: 0.08em; }
.rc-group-sub { font-style: italic; color: var(--muted); font-size: 14px; margin: 4px 0 14px; }

.rc-check {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 8px 0;
  cursor: pointer;
}
.rc-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.rc-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.rc-check:hover .rc-box { border-color: var(--teal); }
.rc-check input:checked + .rc-box { background: var(--lemon); border-color: var(--lemon); }
.rc-check input:checked + .rc-box::after {
  content: "✓";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 13px; font-weight: 700;
}
.rc-check input:focus-visible + .rc-box { outline: 2px solid var(--teal); outline-offset: 2px; }
.rc-label { font-size: 15px; color: var(--muted); line-height: 1.6; }
.rc-check input:checked ~ .rc-label { color: var(--text); }

/* Security-header pass/fail list — deliberately unscored, so it sits
   outside .rc-tool and js/resources.js never sees it. */
.rc-headercheck {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin: 18px 0 8px;
}
.rc-headercheck .rc-check { padding: 7px 0; }

.rc-fail {
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 16px;
  margin: 14px 0 4px;
}
.rc-fail b { color: var(--lemon); font-weight: 500; }
.rc-note { font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
.rc-note b { color: var(--lemon); font-weight: 500; }

.rc-part-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.rc-part-num { color: var(--lemon); font-weight: 500; }

/* Live score readout */
.rc-readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 36px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.rc-readout .rc-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--lemon);
  line-height: 1;
}
.rc-readout .rc-of { font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--muted); font-weight: 300; }
.rc-readout .rc-caption { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-left: auto; align-self: center; }

.rc-bands tr { transition: background 0.2s; }
.rc-bands tr.active { background: rgba(242,210,75,0.09); }
.rc-bands tr.active td { color: var(--text); }
.rc-bands tr.active td:first-child { color: var(--lemon); box-shadow: inset 3px 0 0 var(--lemon); }

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}
.cs-meta span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  letter-spacing: 0.06em;
}
.cs-meta span b { color: var(--lemon); font-weight: 500; }

.cs-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.cs-btn-primary {
  background: var(--lemon);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.cs-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.cs-btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.cs-btn-ghost:hover { color: var(--text); opacity: 1; }

/* ── Cookie banner (shared) ─────────────────────────── */
#cookieBanner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1000;
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
#cookieBanner.show { display: block; }
.cookie-text { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 10px 18px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  min-height: 44px;
}
.cookie-btn:hover { background: var(--bg2); }
.cookie-btn.primary { background: var(--lemon); color: var(--bg); border-color: var(--lemon); font-weight: 600; }
.cookie-btn.primary:hover { opacity: 0.9; }

/* ── Resources hub: Engineering / Literary squares ──── */
/* Native <details> — keyboard support, SR semantics and find-in-page
   expansion come free, and it needs no JavaScript at all. */
.rc-squares { display: grid; gap: 20px; margin: 8px 0 8px; }

.rc-square {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.rc-square[open] { border-color: var(--teal); }

.rc-square-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rc-square-head::-webkit-details-marker { display: none; }
.rc-square-head:hover .rc-square-title { color: var(--lemon); }

.rc-square-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
}
.rc-square-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  text-align: right;
}
@media (max-width: 639px) {
  /* Keep icon + title + chevron on one row and wrap only the meta line beneath.
     Without the explicit order the full-width meta pushed the chevron onto a
     third line of its own. */
  .rc-square-head { flex-wrap: wrap; gap: 8px 12px; padding: 20px; }
  .rc-square-title { flex: 1 1 auto; }
  .rc-square-chev { order: 2; margin-left: auto; }
  .rc-square-sub { order: 3; margin-left: 0; width: 100%; text-align: left; }
}
.rc-square-chev {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--muted);
  transition: transform 0.22s ease, color 0.2s;
}
.rc-square-chev svg { width: 100%; height: 100%; }
.rc-square[open] .rc-square-chev { transform: rotate(180deg); color: var(--lemon); }

.rc-square-body { padding: 0 26px 26px; }
@media (max-width: 639px) { .rc-square-body { padding: 0 20px 20px; } }
.rc-square-body > p:first-child { margin-top: 0; }

/* ── Resources hub: 2×2 tool grid ───────────────────── */
.rc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 8px;
}
@media (max-width: 639px) { .rc-grid { grid-template-columns: 1fr; } }
.rc-card {
  display: flex;
  flex-direction: column;
  min-height: 208px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.2s;
}
.rc-card:hover { transform: translateY(-2px); border-color: var(--teal); opacity: 1; }
.rc-card .dx-icon { margin-bottom: 14px; }
.rc-card--audit { border-color: rgba(242,210,75,0.42); }
.rc-card--audit:hover { border-color: var(--lemon); }
.rc-card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 14px;
}
.rc-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
}
.rc-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.rc-card-meta {
  margin-top: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rc-card-cta {
  margin-top: auto;
  padding-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--lemon);
}

/* ── Resources hub: research tab ────────────────────── */
.rc-articles { list-style: none; margin: 8px 0 0; padding: 0; }
.rc-articles li { margin: 0; padding: 0; }
.rc-article {
  display: block;
  border-top: 1px solid var(--border);
  padding: 26px 0;
  text-decoration: none;
}
.rc-articles li:last-child .rc-article { border-bottom: 1px solid var(--border); }
.rc-article:hover { opacity: 1; }
.rc-article-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.rc-article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
  transition: color 0.2s;
}
.rc-article:hover h3 { color: var(--lemon); }
.rc-article p { color: var(--muted); font-size: 15px; margin: 0; max-width: 640px; }

.rc-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 44px 32px;
  text-align: center;
  margin-top: 8px;
}
.rc-empty-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 12px;
}
.rc-empty p:last-child { margin-bottom: 0; }


/* ── PORTED NAV ──────────────────────────────────────────
   Resources is a top-level nav destination but is served by legal.css,
   which never loaded the nav rules — so the page had no navigation and no
   hamburger at all. Lifted verbatim from components.css, with the two font
   tokens inlined because legal.css does not define --font-display/--font-body.
   Keep in sync with components.css if the nav changes there.
   ───────────────────────────────────────────────────────── */
/* ── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(12,27,31,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-motion: reduce) {
  nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  gap: 2px;
}
.nav-brand { white-space: nowrap; font-family: 'Space Grotesk', sans-serif; color: var(--lemon); }
.nav-name {
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--lemon); }
.nav-links a.active { color: var(--lemon); }
.nav-links a.btn-diagnose {
  border: 1px solid var(--lemon);
  color: var(--lemon);
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a.btn-diagnose:hover {
  background: var(--lemon);
  color: var(--bg);
}

.nav-links a.nav-lang {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a.nav-lang:hover {
  border-color: var(--text);
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lemon);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--lemon); }
.nav-drawer a.active { color: var(--lemon); }
.nav-drawer .btn-diagnose-drawer {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background: var(--lemon);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 8px;
  width: 80%;
  text-align: center;
  margin-top: 16px;
}
.nav-drawer .btn-diagnose-drawer:hover { opacity: 0.9; }

@media (max-width: 767px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── Research articles (/resources/research/) ────────── */
.rs-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.rs-body > p:first-of-type { font-size: 17px; color: var(--text); }
.rs-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}
.rs-body p { font-size: 16px; line-height: 1.8; }
.rs-body strong { color: var(--text); font-weight: 500; }
.rs-pull {
  border-left: 2px solid var(--lemon);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}

/* Standing close — identical on every piece */
.rs-close {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 56px 0 0;
}
.rs-close p { color: var(--text); font-size: 15px; margin-bottom: 16px; }
@media (max-width: 639px) { .rs-close { padding: 24px; } }

/* Article index inside the Literary square */
.rc-articles { list-style: none; margin: 8px 0 0; padding: 0; }
.rc-article { display: block; border-top: 1px solid var(--border); padding: 24px 0; text-decoration: none; }
.rc-articles li:last-child .rc-article { border-bottom: 1px solid var(--border); }
.rc-article:hover { opacity: 1; }
.rc-article-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.rc-article h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 20px;
  letter-spacing: -0.01em; color: var(--text); margin: 0 0 6px; transition: color 0.2s;
}
.rc-article:hover h3 { color: var(--lemon); }
.rc-article p { color: var(--muted); font-size: 15px; margin: 0; max-width: 640px; }

/* ── Topbar hamburger (deep pages) ───────────────────────
   Deep pages keep the back arrow so a reader can retrace one step, and
   gain a hamburger so they can jump to any section instead. Unlike the
   marketing nav, this burger is visible at EVERY width: these pages have
   no .nav-links row, so it is the only way out. */
.cs-topbar-right { display: flex; align-items: center; gap: 20px; }
.cs-topbar .hamburger { display: flex; }
.cs-topbar .back-link { margin-bottom: 0; white-space: nowrap; }
@media (max-width: 480px) {
  .cs-topbar-right { gap: 10px; }
  .cs-topbar .back-link { font-size: 10px; letter-spacing: 0.1em; }
}

/* ── AEO guides (/resources/guides/) ─────────────────────
   Answer-first register. Each section must read correctly when a
   retrieval system extracts it WITHOUT its neighbours, so the answer
   block carries the weight and the prose below it only adds detail. */
.gd-answer {
  background: var(--bg2);
  border-left: 2px solid var(--lemon);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 24px;
}
.gd-answer p { color: var(--text); font-size: 16px; line-height: 1.7; margin: 0; }
.gd-updated {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 40px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.gd-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px; font-weight: 400; color: var(--text);
  letter-spacing: -0.01em; margin: 48px 0 14px;
}
.gd-body p { font-size: 16px; line-height: 1.8; }
.gd-note {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 22px; margin: 28px 0; font-size: 14px; color: var(--muted);
}
.gd-note b { color: var(--lemon); font-weight: 500; }
.gd-cta {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 30px; margin: 48px 0 0;
}
.gd-cta p { color: var(--text); font-size: 15px; margin-bottom: 16px; }
