/* King Huni Archive — basalt & gold museum-catalog theme */

:root {
  --radius: 2px;

  --basalt: oklch(0.175 0.003 100);
  --surface: oklch(0.215 0.003 100);
  --surface-raised: oklch(0.25 0.004 100);
  --gold: oklch(0.73 0.062 82);
  --gold-bright: oklch(0.86 0.045 84);
  --bone: oklch(0.915 0.011 90);
  --bone-muted: oklch(0.66 0.008 90);
  --destructive: oklch(0.62 0.19 27);
  --destructive-bright: oklch(0.75 0.14 30);

  --bg: var(--basalt);
  --text: var(--bone);
  --text-muted: color-mix(in oklab, var(--bone) 60%, transparent);
  --border: color-mix(in oklab, var(--gold) 14%, transparent);
  --border-strong: color-mix(in oklab, var(--gold) 30%, transparent);

  --established: var(--gold-bright);
  --established-border: color-mix(in oklab, var(--gold) 40%, transparent);
  --disputed: var(--destructive-bright);
  --disputed-border: color-mix(in oklab, var(--destructive) 45%, transparent);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-relic: 0 40px 80px -30px oklch(0 0 0 / 0.85);
  --shadow-soft: 0 2px 10px oklch(0 0 0 / 0.35);
  --gradient-vignette: radial-gradient(
    110% 80% at 80% 0%,
    color-mix(in oklab, var(--gold) 9%, transparent),
    transparent 65%
  );
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in oklab, var(--gold) 30%, transparent);
  color: var(--gold-bright);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--basalt);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.label-caps {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--basalt) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
}
.brand__glyph { color: var(--gold); width: 26px; height: 22px; flex-shrink: 0; }
.brand:hover { color: var(--gold-bright); }
.brand:hover .brand__glyph { color: var(--gold-bright); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); }
.site-footer__brand svg { width: 18px; height: 15px; opacity: 0.6; }
.site-footer a { color: var(--gold); }
.site-footer__meta { color: var(--text-muted); margin-top: 0.35rem; max-width: 60ch; }
.site-footer__links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
  background-image: var(--gradient-vignette);
}
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  align-items: flex-end;
}
.hero__copy { flex: 1 1 420px; }
.hero__eyebrow {
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0 0 1.5rem;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 0 2rem;
}
.hero__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__relic {
  flex: 1 1 260px;
  max-width: 340px;
  position: relative;
  aspect-ratio: 3 / 4;
}
.hero__relic-plate {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-relic);
  background:
    repeating-linear-gradient(115deg, color-mix(in oklab, var(--gold) 7%, var(--surface)) 0 2px, var(--surface) 2px 5px),
    linear-gradient(160deg, var(--surface-raised), var(--basalt));
  position: relative;
  overflow: hidden;
}
.hero__relic-plate svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero__relic-tag {
  position: absolute;
  bottom: -1.1rem;
  left: -1.1rem;
  background: var(--basalt);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1rem;
}
.hero__relic-tag span { display: block; }
.hero__relic-tag .label-caps { color: color-mix(in oklab, var(--gold) 70%, transparent); margin-bottom: 0.2rem; }
.hero__relic-tag strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
}
.btn--gold {
  background: var(--gold);
  color: var(--basalt);
}
.btn--gold:hover { background: var(--gold-bright); color: var(--basalt); }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Lineage teaser (home) ---------- */

.divider-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.lineage { padding: 5rem 0; }
.lineage h2 { text-align: center; font-size: 1.9rem; margin-bottom: 3.5rem; }
.lineage__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.lineage__row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
  transform: translateY(-50%);
  z-index: 0;
}
.lineage__node { position: relative; z-index: 1; text-align: center; }
.lineage__dot {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--basalt);
  border: 1px solid var(--border-strong);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lineage__node--current .lineage__dot {
  width: 5.5rem;
  height: 5.5rem;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-relic);
}
.lineage__node--current .lineage__dot svg { width: 2.2rem; height: 1.9rem; color: var(--gold); }
.lineage__dot-inner { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: color-mix(in oklab, var(--gold) 40%, transparent); }
.lineage__label { display: block; margin-bottom: 0.3rem; color: color-mix(in oklab, var(--gold) 65%, transparent); }
.lineage__node--current .lineage__label { color: var(--gold); }
.lineage__name { font-family: var(--font-display); font-size: 1.3rem; }
.lineage__node--current .lineage__name { font-size: 1.7rem; }
.lineage__disputed-tag {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--disputed);
}

/* ---------- Generic section / page layout ---------- */

/* padding-top/-bottom only — never the padding shorthand — since .section is
   always combined with .wrap on the same element (class="wrap section"), and
   a shorthand here would silently wipe out .wrap's horizontal padding
   entirely (same specificity, later in source order wins). That exact bug
   left every page's text flush against the screen edge on mobile, where
   .wrap's max-width doesn't provide the auto-margin buffer desktop gets. */
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
.section__intro { color: var(--text-muted); max-width: 65ch; margin-bottom: 3rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* ---------- Home page feature grid ---------- */

.feature-grid {
  /* No shared background behind the gap (the old "seam" trick) — with a
     variable card count the last row can be ragged, and a filled parent
     background would bleed through as a big blank block behind the missing
     cards. Each card carries its own border instead. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 3rem;
}
.feature-card {
  background: var(--basalt);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: background-color 0.15s ease;
}
.feature-card:hover { background: var(--surface); color: var(--text); }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 500; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- History & Facts ---------- */

.fact-category { margin-bottom: 3rem; }
.fact-category h2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}
.fact {
  display: flex;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.fact:last-child { border-bottom: none; }
.fact__body { flex: 1; }
.fact__claim { margin: 0 0 0.5rem; }
.fact__citation { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item__question {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::before {
  content: '+';
  color: var(--gold);
  font-size: 1.1rem;
  width: 1em;
  flex-shrink: 0;
}
.faq-item[open] .faq-item__question::before { content: '\2212'; }
.faq-item__question:hover { color: var(--gold-bright); }
.faq-item__answer { margin: 0.75rem 0 0 1.6rem; color: var(--text-muted); line-height: 1.65; max-width: 70ch; }

.diagram-figure {
  margin: 1.5rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border);
}
.diagram-figure img {
  width: 100%;
  max-width: 720px;
  display: block;
  border: 1px solid var(--border-strong);
}
.diagram-figure figcaption {
  max-width: 720px;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.diagram-figure figcaption strong { color: var(--gold); }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  border: 1px solid;
  white-space: nowrap;
  height: fit-content;
}
.badge--established { color: var(--established); border-color: var(--established-border); }
.badge--disputed { color: var(--disputed); border-color: var(--disputed-border); }

/* ---------- Family tree ---------- */

.tree-legend {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tree-legend__item { display: flex; align-items: center; gap: 0.6rem; }
.tree-legend__line { width: 28px; height: 0; border-top: 1px solid var(--bone-muted); }
.tree-legend__line--disputed { border-top: 1px dashed var(--disputed); }

.tree-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
}
.tree-wrap svg { display: block; margin: 0 auto; min-width: 640px; }

.tree-node rect {
  fill: var(--basalt);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.tree-node text {
  font-family: var(--font-body);
  fill: var(--text);
}
.tree-node .tree-node__role {
  fill: var(--text-muted);
  font-size: 11px;
}
.tree-node--disputed rect { stroke: var(--disputed); stroke-dasharray: 4 3; }

.tree-edge {
  stroke: var(--bone-muted);
  stroke-width: 1.25;
  fill: none;
}
.tree-edge--disputed {
  stroke: var(--disputed);
  stroke-dasharray: 6 5;
}

.tree-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tree-tag--disputed { fill: var(--disputed); }

.tree-tooltip {
  position: absolute;
  max-width: 260px;
  background: var(--basalt);
  color: var(--bone);
  border: 1px solid var(--gold);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: var(--shadow-relic);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 50;
}
.tree-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.tree-tooltip strong { color: var(--gold); }

.tree-node, .tree-edge-group { cursor: pointer; }
.tree-node:focus-visible rect,
.tree-edge-group:focus-visible .tree-edge-hit { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Family tree detail modal ---------- */

.tree-modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--basalt) 85%, transparent);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}
/* The `display: flex` above wins over the browser's built-in [hidden] rule
   (author CSS always beats the user-agent stylesheet, regardless of
   specificity), so the overlay was rendering visible-but-empty on every
   page load instead of staying hidden until a node/edge is clicked. */
.tree-modal-overlay[hidden] {
  display: none;
}
.tree-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-relic);
}
.tree-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  background: var(--basalt);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.tree-modal__close:hover { color: var(--gold); border-color: var(--gold); }
.tree-modal__media { width: 100%; aspect-ratio: 16/10; background: var(--basalt); }
.tree-modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tree-modal__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}
.tree-modal__body { padding: 1.75rem; }
.tree-modal__title { font-size: 1.6rem; margin: 0.75rem 0 0.25rem; }
.tree-modal__subtitle { color: var(--gold); font-size: 0.85rem; margin: 0 0 1rem; }
.tree-modal__evidence { color: var(--text-muted); line-height: 1.65; margin: 0 0 1rem; }
.tree-modal__credit { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin: 0; }

/* ---------- Feed cards ---------- */

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
}
.feed-card {
  background: var(--basalt);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.feed-card__source {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}
.feed-card__headline { margin: 0; font-size: 1.05rem; font-family: var(--font-display); font-weight: 500; }
.feed-card__headline a { color: var(--text); text-decoration: none; }
.feed-card__headline a:hover { color: var(--gold); }
.feed-card__snippet { color: var(--text-muted); font-size: 0.9rem; margin: 0; flex: 1; }
.feed-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.feed-card__link { font-weight: 600; }

.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

/* ---------- Artifacts ---------- */

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
}
.artifact-card {
  background: var(--basalt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.artifact-card__media { width: 100%; aspect-ratio: 4/3; background: var(--surface); }
.artifact-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artifact-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.artifact-card__status-label {
  display: block;
  font-size: 0.78rem;
  color: var(--disputed);
  font-style: italic;
}
.artifact-card__title { font-size: 1.15rem; margin: 0.25rem 0 0; }
.artifact-card__desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.artifact-card__meta { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.artifact-card__meta--citation { font-style: italic; }
.artifact-card__credit { font-size: 0.72rem; color: var(--text-muted); font-style: italic; margin: 0; opacity: 0.8; }

/* ---------- Admin ---------- */

.admin-shell { background: var(--basalt); min-height: 100vh; }
.admin-topbar {
  background: var(--surface);
  color: var(--bone);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
}
.admin-topbar a { color: var(--text-muted); text-decoration: none; margin-left: 1.25rem; font-family: var(--font-body); font-size: 0.9rem; }
.admin-topbar a:hover { color: var(--gold); }
.admin-main { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.admin-main h1 { margin-top: 0; margin-bottom: 0.5rem; }

.admin-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.admin-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.admin-nav a.is-active, .admin-nav a:hover { border-color: var(--border); color: var(--gold); }

table.admin-table { width: 100%; border-collapse: collapse; background: var(--basalt); border: 1px solid var(--border); }
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
}
table.admin-table th { background: var(--surface); font-family: var(--font-display); font-weight: 500; }

.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 500; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.form-field input[type=text],
.form-field input[type=password],
.form-field input[type=url],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { min-height: 80px; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.btn-plain {
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-block;
}
.btn-plain:hover { border-color: var(--gold); color: var(--gold); }
.btn-plain--danger:hover { border-color: var(--disputed); color: var(--disputed); }
.btn-plain--primary { background: var(--gold); color: var(--basalt); border-color: var(--gold); }
.btn-plain--primary:hover { background: var(--gold-bright); color: var(--basalt); border-color: var(--gold-bright); }

.status-pill { font-size: 0.7rem; padding: 0.2rem 0.55rem; border: 1px solid; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Cookie/analytics consent banner ---------- */

#consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--surface-raised);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.consent-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}
.consent-banner__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1 1 420px;
}
.consent-banner__text a { color: var(--gold); }
.consent-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .consent-banner__inner { padding: 1.1rem 1.25rem; }
  .consent-banner__actions { width: 100%; }
  .consent-banner__actions .btn-plain { flex: 1; text-align: center; }
}
.status-pill--ok { color: var(--established); border-color: var(--established-border); }
.status-pill--error { color: var(--disputed); border-color: var(--disputed-border); }
.status-pill--unknown { color: var(--text-muted); border-color: var(--border); }

.flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid;
}
.flash--success { color: var(--established); border-color: var(--established-border); background: color-mix(in oklab, var(--established) 8%, transparent); }
.flash--error { color: var(--disputed); border-color: var(--disputed-border); background: color-mix(in oklab, var(--disputed) 8%, transparent); }

.login-wrap {
  max-width: 380px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.login-wrap .card h1 { font-size: 1.6rem; margin-bottom: 0.75rem; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero__inner { align-items: flex-start; }
  .fact { flex-direction: column; }
  .lineage__row { flex-direction: column; gap: 2.5rem; }
  .lineage__row::before { display: none; }
  .evidence-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
