/* ============================================================
   AI PATHFINDER — design system
   Palette drawn from the DkIT identity:
     Navy  #10044C  (logo lettering)
     Gold  #957F0B  (logo bird) — brightened to #D9B547 for
                     legible accents on the dark ground
   ============================================================ */

:root {
  --navy-deep: #07022E;
  --navy:      #10044C;
  --navy-soft: #1A0B63;
  --gold:      #D9B547;
  --gold-deep: #957F0B;
  --ink:       #F4F2FF;
  --ink-dim:   rgba(244, 242, 255, 0.72);
  --ink-faint: rgba(244, 242, 255, 0.45);
  --glass:     rgba(255, 255, 255, 0.045);
  --glass-edge:rgba(255, 255, 255, 0.10);
  --radius:    18px;
  --font-display: "Sora", "Avenir Next", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 75% -10%, #2A1278 0%, transparent 55%),
    radial-gradient(900px 700px at -10% 110%, #1C0A66 0%, transparent 55%),
    linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 55%, #0B0340 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* the cloud sits behind everything */
#cloud {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- accessibility ---------- */
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: var(--navy);
  padding: 10px 18px; border-radius: 10px; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header / footer ---------- */
header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 18px clamp(18px, 4vw, 44px);
  background: linear-gradient(180deg, #1E81F7 0%, #1877F2 55%, #166AE0 100%);
  box-shadow: 0 8px 28px rgba(2, 0, 28, 0.35);
}
header img { height: 64px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }
.header-actions {
  position: absolute; right: clamp(14px, 3vw, 36px); top: 50%;
  transform: translateY(-50%);
  display: flex; gap: 10px;
}
header .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}
header .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: #FFFFFF; }

footer {
  position: relative; z-index: 2;
  padding: 28px clamp(18px, 4vw, 44px) 36px;
  color: var(--ink-faint); font-size: 12.5px;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 60px;
}

/* ---------- buttons ---------- */
button { font: inherit; cursor: pointer; color: inherit; }

.btn-primary {
  background: linear-gradient(180deg, #E5C45C, var(--gold));
  color: var(--navy);
  border: none; border-radius: 14px;
  font-weight: 700; font-size: 16px;
  padding: 14px 28px;
  box-shadow: 0 6px 24px rgba(217, 181, 71, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(217,181,71,0.45); }

.btn-hero { font-size: 18px; padding: 17px 38px; border-radius: 16px; }

.btn-secondary, .btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600; font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.btn-ghost { font-size: 13px; padding: 8px 14px; }

/* ---------- screens ---------- */
main { position: relative; z-index: 1; }
.screen {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(20px, 5vh, 56px) clamp(18px, 4vw, 44px) 20px;
  animation: rise 0.45s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- landing ---------- */
.landing { text-align: center; padding-top: clamp(40px, 12vh, 120px); }
.pill {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(217, 181, 71, 0.4);
  background: rgba(217, 181, 71, 0.08);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  background: linear-gradient(120deg, #FFFFFF 30%, #D9B547 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title:focus-visible { outline: none; }
.hero-sub {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-dim);
  max-width: 560px; margin: 18px auto 6px;
}
.hero-privacy { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 34px; }
.landing .btn-hero { margin-bottom: 54px; }

.legend { max-width: 640px; margin: 0 auto; }
.legend-title { font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; }
.legend-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.type-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--ink-dim);
}
.type-chip i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c);
}
.type-chip b { color: var(--ink); font-weight: 700; }
.type-chip.toggle { cursor: pointer; transition: opacity .15s, border-color .15s; }
.type-chip.toggle:hover { border-color: var(--gold); }
.type-chip.toggle.off { opacity: 0.35; }

/* ---------- steps ---------- */
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.step-title, .results-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.step-title:focus-visible, .results-title:focus-visible { outline: none; }
.results-title b { color: var(--gold); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; min-height: 1px; }
.crumb {
  font-size: 13px; font-weight: 600;
  color: var(--ink-dim); text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  padding: 6px 13px; border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.crumb span { color: var(--ink-faint); margin-left: 4px; }
.crumb:hover { border-color: var(--gold); color: var(--ink); }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }

.option {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 158px;
  text-align: left;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    linear-gradient(160deg, rgba(24,13,76,0.93), rgba(12,5,50,0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid var(--c, var(--gold));
  border-radius: 22px;
  padding: 20px 24px 22px;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 14px 36px rgba(2, 0, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.option:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: var(--c, var(--gold));
  box-shadow:
    0 22px 52px rgba(2, 0, 28, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.option .badge { margin-bottom: 12px; }
.option-label { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.option-desc  { font-size: 13.5px; color: var(--ink-dim); margin-top: 8px; flex: 1; }
.option-go {
  margin-top: 16px; align-self: flex-end;
  font-size: 20px; color: var(--gold);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.option:hover .option-go, .option:focus-visible .option-go { opacity: 1; transform: none; }

.back {
  display: inline-block; margin-top: 26px;
  color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 600;
}
.back:hover { color: var(--gold); }

/* ---------- results ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  display: flex; flex-direction: column;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    linear-gradient(160deg, rgba(24,13,76,0.93), rgba(12,5,50,0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid var(--c);
  border-radius: 22px;
  padding: 20px 22px;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 14px 36px rgba(2, 0, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease;
  animation: rise 0.45s ease both;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.22); border-top-color: var(--c); }

.card-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  padding: 3.5px 9px; border-radius: 999px;
}
.badge.sample {
  --c: #FFFFFF;
  color: var(--ink-dim);
  border-style: dashed;
}
.badge.school { --c: #D9B547; }

.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.card-how   { font-size: 13.8px; color: var(--ink-dim); flex: 1; }
.card-owner { font-size: 12px; color: var(--ink-faint); margin: 12px 0 14px; }

.card-link {
  align-self: flex-start;
  font-size: 13.5px; font-weight: 700;
  color: var(--gold); text-decoration: none;
  border: 1px solid rgba(217, 181, 71, 0.45);
  padding: 8px 16px; border-radius: 10px;
  transition: background 0.15s ease;
}
.card-link:hover { background: rgba(217, 181, 71, 0.12); }
.card-link.disabled {
  color: var(--ink-faint); border-color: var(--glass-edge);
  border-style: dashed; cursor: default;
}

.empty { color: var(--ink-dim); margin: 8px 0 4px; }

.results-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.feedback-block {
  margin-top: 40px;
  background: linear-gradient(120deg, rgba(217,181,71,0.10), rgba(217,181,71,0.03));
  border: 1px solid rgba(217, 181, 71, 0.3);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.feedback-block h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.feedback-block p { color: var(--ink-dim); font-size: 14.5px; max-width: 540px; margin-bottom: 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  z-index: 50;
  background: #FFFFFF; color: var(--navy);
  font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: min(520px, 90vw);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen, .card { animation: none; }
  .btn-primary, .option, .card { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  header { flex-direction: column; gap: 12px; padding: 14px 18px; }
  header img { height: 42px; }
  .header-actions { position: static; transform: none; }
  .header-actions .btn-ghost { padding: 7px 12px; font-size: 12.5px; }
}

/* ============================================================
   VERSION 2 ADDITIONS
   Search & filter sidebar · focus chips · sort · card extras
   (timing, ⓘ best-used-when, Helpful?) · tour · admin ·
   footer licence & disclaimer · clickable-dot popover
   ============================================================ */

/* ---------- results toolbar ---------- */
.results-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.chip-hint { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 8px; }
.filter-chips { margin-bottom: 0; }

/* focus semantics: nothing selected = all shown; selected chips glow,
   the rest step back */
.type-chip.toggle.on {
  border-color: var(--gold);
  background: rgba(217, 181, 71, 0.14);
  color: var(--ink);
  box-shadow: 0 0 14px rgba(217, 181, 71, 0.25);
}
.filter-chips.focusing .type-chip.toggle:not(.on) { opacity: 0.4; }

.sort-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-dim);
  white-space: nowrap;
}
.sort-select {
  font: inherit; font-weight: 600; font-size: 13px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.sort-select option { color: var(--navy); background: #fff; }

/* ---------- card extras ---------- */
.badge.time { --c: #FFFFFF; color: var(--ink-dim); text-transform: none; letter-spacing: 0.02em; }
.badge.inst { --c: #D9B547; text-transform: none; letter-spacing: 0.02em; }

.card-title-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.card-title-row .card-title { margin-bottom: 0; flex: 1; }

.info-wrap { position: relative; flex: none; }
.info {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(217, 181, 71, 0.16);
  border: 1.5px solid rgba(217, 181, 71, 0.8);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(217, 181, 71, 0.25);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.info:hover, .info-wrap.pin .info {
  background: linear-gradient(180deg, #E5C45C, var(--gold));
  border-color: transparent;
  color: var(--navy);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(217, 181, 71, 0.5);
}
.bw {
  position: absolute; right: 0; top: calc(100% + 8px);
  z-index: 6;
  width: min(280px, 74vw);
  background: #FFFFFF; color: var(--navy);
  font-size: 13px; line-height: 1.5;
  padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.bw b { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 3px; }
.info-wrap:hover .bw, .info:focus-visible + .bw, .info-wrap.pin .bw {
  opacity: 1; visibility: visible; transform: none;
}

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.rate { display: inline-flex; align-items: center; gap: 5px; }
.rate-label { font-size: 12px; color: var(--ink-faint); margin-right: 2px; }
.rate-btn {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  font-size: 14px; line-height: 1;
  padding: 6px 9px;
  filter: grayscale(1); opacity: 0.75;
  transition: border-color 0.15s ease, filter 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}
.rate-btn:hover { border-color: var(--gold); filter: none; opacity: 1; }
.rate-btn:active { transform: scale(0.92); }
.rate-btn.on { border-color: var(--gold); background: rgba(217, 181, 71, 0.15); filter: none; opacity: 1; }

/* ---------- search & filter sidebar ---------- */
.panel-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 1, 28, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.panel-backdrop.open { opacity: 1; visibility: visible; }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(420px, 94vw);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    linear-gradient(170deg, #140A52 0%, #0B0340 100%);
  border-left: 1px solid var(--glass-edge);
  box-shadow: -24px 0 60px rgba(2, 0, 28, 0.6);
  padding: 22px 22px 30px;
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.panel.open { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
  .panel-backdrop { transition: none; }
}

.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-family: var(--font-display); font-size: 20px; }
.panel-close {
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: 10px; width: 34px; height: 34px; font-size: 14px;
}
.panel-close:hover { border-color: var(--gold); }

.panel-searchbox {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  padding: 12px 14px;
}
.panel-searchbox:focus-within { border-color: var(--gold); }
.panel-glass { font-size: 15px; }
.panel-searchbox input {
  flex: 1; background: none; border: none; outline: none;
  font: inherit; font-size: 15px; color: var(--ink);
}
.panel-searchbox input::placeholder { color: var(--ink-faint); }

.panel-hint { font-size: 12px; color: var(--ink-faint); }
.panel-dots { display: flex; flex-wrap: wrap; gap: 7px; }
.panel-count { font-size: 12.5px; font-weight: 700; color: var(--gold); min-height: 16px; }

.panel-list { display: flex; flex-direction: column; gap: 8px; }
.panel-empty { font-size: 13.5px; color: var(--ink-dim); }
.panel-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-left: 3px solid var(--c);
  border-radius: 12px;
  padding: 10px 12px;
}
.panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.panel-row-main { flex: 1; min-width: 0; }
.panel-row-title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.panel-row-meta { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.mini-time { color: var(--ink-dim); }
.panel-row-open {
  flex: none; font-size: 12px; font-weight: 700;
  color: var(--gold); text-decoration: none;
  border: 1px solid rgba(217, 181, 71, 0.45);
  padding: 6px 10px; border-radius: 9px;
}
.panel-row-open:hover { background: rgba(217, 181, 71, 0.12); }
.panel-row-open.disabled { color: var(--ink-faint); border-color: var(--glass-edge); border-style: dashed; }

/* ---------- "How it works" tour ---------- */
.tour {
  max-width: 560px;
  margin: 0 auto 46px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 18px 22px 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tour-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.tour-stage { min-height: 72px; display: flex; align-items: center; justify-content: center; }
.tour-scene { animation: rise 0.4s ease both; }
.tour-mini { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tour-opt {
  font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 9px 13px;
}
.tour-opt.pick {
  border-color: var(--gold); color: var(--navy);
  background: linear-gradient(180deg, #E5C45C, var(--gold));
  animation: tourpick 3.2s ease both;
}
@keyframes tourpick {
  0%   { transform: none; box-shadow: none; }
  38%  { transform: none; }
  50%  { transform: scale(1.08); box-shadow: 0 6px 20px rgba(217, 181, 71, 0.45); }
  62%, 100% { transform: none; }
}
.tour-card {
  font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--glass-edge);
  border-top: 3px solid var(--c);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 12px 10px;
}
.tour-cap { font-size: 13px; color: var(--ink-dim); text-align: center; margin-top: 12px; min-height: 20px; }
.tour-dots { display: flex; gap: 7px; justify-content: center; margin-top: 10px; }
.tour-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, 0.22); border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tour-dot.on { background: var(--gold); transform: scale(1.35); }
.tour-static { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tour-panel { text-align: center; }
.tour-panel .tour-cap { margin-top: 8px; }

/* ---------- clickable cloud-dot popover ---------- */
.dot-pop {
  position: fixed; z-index: 30;
  width: min(280px, calc(100vw - 24px));
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(160deg, rgba(24,13,76,0.97), rgba(12,5,50,0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--c);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 48px rgba(2, 0, 28, 0.6);
  animation: rise 0.25s ease both;
}
.dot-pop b { display: block; font-family: var(--font-display); font-size: 14.5px; line-height: 1.35; margin: 8px 0 10px; }
.dot-pop .card-link { display: inline-block; }

/* ---------- admin ---------- */
.admin-note {
  font-size: 13.5px; color: var(--ink-dim);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 760px; margin-bottom: 24px;
}
.admin-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.admin-stat {
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: 14px; padding: 14px 20px; min-width: 120px;
}
.admin-stat b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.admin-stat span { font-size: 12px; color: var(--ink-dim); }

.admin-card {
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px;
}
.admin-card h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 12px; }
.admin-none { font-size: 13px; color: var(--ink-faint); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--glass-edge);
}
.admin-table td { padding: 7px 10px 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--ink-dim); }
.admin-table td:first-child { color: var(--ink); }
.admin-gap { margin-top: 44px; }
.admin-pin {
  font: inherit; font-size: 16px; letter-spacing: 0.2em;
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: 12px; padding: 12px 16px; color: var(--ink); outline: none;
}
.admin-pin:focus { border-color: var(--gold); }

.admin-drop {
  border: 1.5px dashed rgba(217, 181, 71, 0.5);
  border-radius: var(--radius);
  padding: 24px; text-align: center; cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-drop:hover { background: rgba(217, 181, 71, 0.06); border-color: var(--gold); }
.admin-drop b { display: block; font-family: var(--font-display); }
.admin-drop span { font-size: 12.5px; color: var(--ink-faint); }

.admin-drafts-title { font-family: var(--font-display); font-size: 17px; margin-bottom: 14px; }
.admin-draft {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    linear-gradient(160deg, rgba(24,13,76,0.93), rgba(12,5,50,0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px;
}
.admin-draft.approved { border-color: rgba(123, 228, 149, 0.5); }
.admin-draft h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 6px; }
.admin-draft-how { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 8px; }
.admin-draft-meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; line-height: 1.6; }
.admin-draft-meta a { color: var(--gold); word-break: break-all; }
.admin-field { margin-bottom: 12px; font-size: 13px; }
.admin-field > label:first-child {
  display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}
.admin-field select {
  font: inherit; font-size: 13px; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: 10px; padding: 7px 10px;
}
.admin-field select option { color: var(--navy); background: #fff; }
.admin-check { display: inline-flex; align-items: center; gap: 4px; margin: 0 14px 6px 0; color: var(--ink-dim); cursor: pointer; }
.admin-check input { accent-color: #D9B547; }
.admin-draft-msg { font-size: 12.5px; color: #FFB4A6; min-height: 16px; margin-bottom: 8px; }
.admin-addition {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13.5px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-addition em { color: var(--ink-faint); font-style: normal; }

/* ---------- footer v2 ---------- */
footer { display: block; }
.foot-row { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.foot-admin { color: var(--ink-faint); text-decoration: none; margin-left: auto; }
.foot-admin:hover { color: var(--gold); }
.foot-disclaimer {
  margin-top: 14px; max-width: 860px;
  font-size: 12px; line-height: 1.6; color: var(--ink-faint);
}
.foot-licence { margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); }
.foot-licence a {
  color: var(--ink-dim); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.foot-licence a:hover { color: var(--gold); }
.foot-licence a:hover .ccb { border-color: var(--gold); color: var(--gold); }
.ccb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.foot-licence a > span:last-child { margin-left: 6px; }

/* ---------- small screens (v2 bits) ---------- */
@media (max-width: 640px) {
  .results-bar { align-items: stretch; flex-direction: column; }
  .sort-wrap { align-self: flex-end; }
  .foot-admin { margin-left: 0; }
  .tour { padding: 14px 14px 12px; }
}

/* ============================================================
   VERSION 2 · POLISH (team review, 4 July)
   White privacy line · CC badge bottom-left · gold Start again
   ============================================================ */

/* home page privacy line in white */
.hero-privacy { color: var(--ink); }

/* licence: the Creative Commons badge, bottom-left, names beside it */
.foot-licence {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
}
.cc-badge-link { display: block; line-height: 0; border-radius: 9px; }
.cc-badge { display: block; width: 112px; height: auto; }
.cc-badge { border-radius: 8px; }
.cc-badge-link:hover .cc-badge { box-shadow: 0 0 0 2px var(--gold); }
.foot-licence-text { color: var(--ink-dim); }
.foot-licence-text a { color: var(--ink-dim); text-decoration: none; }
.foot-licence-text a:hover { color: var(--gold); }

/* "Start again" in the header: same gold as Find my path */
#restart {
  background: linear-gradient(180deg, #E5C45C, var(--gold));
  border: 1px solid transparent;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 0, 28, 0.28);
}
#restart:hover {
  background: linear-gradient(180deg, #EFCF6A, #E0BC4F);
  border-color: transparent;
  transform: translateY(-1px);
}

/* ============================================================
   VERSION 3 · ACCESSIBILITY & POLISH
   Header wordmark · gold Start again on results · read-aloud
   buttons · accessibility panel (text size, easier reading,
   hyperlegible font, higher contrast, reduce motion) · footer
   team links with optional photos
   ============================================================ */

/* ---------- header: the DkIT wordmark balances the left ---------- */
/* v3.1: the central crest enlarged at the team's request
   v3.2: both logos are now links — wordmark → Pathfinder home,
   crest → the official DkIT website (new tab) */
.header-crest { height: 84px !important; }
@media (max-width: 640px) { .header-crest { height: 56px !important; } }
.header-crest-link, .header-wordmark-link { display: inline-flex; border-radius: 8px; }
.header-crest-link:hover img, .header-wordmark-link:hover img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)) brightness(1.12);
}

.header-wordmark-link {
  position: absolute; left: clamp(14px, 3vw, 36px); top: 50%;
  transform: translateY(-50%);
}
.header-wordmark { height: 42px !important; width: auto; }
@media (max-width: 1180px) { .header-wordmark { height: 34px !important; } }

/* the header holds four actions once "Start again" appears, so the
   buttons collapse in stages to protect the centred crest:
   ≤1400px — tighter buttons · ≤1320px — icons only (tooltips and
   screen-reader labels remain) · ≤820px — the wordmark steps aside
   and the crest carries the identity alone */
.header-actions .ico + .lbl { margin-left: 6px; }
@media (max-width: 1400px) {
  .header-actions .btn-ghost { padding: 7px 11px; font-size: 12.5px; }
}
@media (max-width: 1320px) {
  .header-actions .lbl { display: none; }
  .header-actions .btn-ghost { padding: 8px 12px; font-size: 15px; line-height: 1; }
}
@media (max-width: 820px)  { .header-wordmark-link { display: none; } }

/* at 125%+ text size the buttons go icon-only regardless of window
   width, and the wordmark yields sooner, so the scaled header can
   never collide with itself */
body.zoomed .header-actions .lbl { display: none; }
body.zoomed .header-actions .btn-ghost { padding: 8px 12px; font-size: 15px; line-height: 1; }
@media (max-width: 1100px) { body.zoomed .header-wordmark-link { display: none; } }

@media (max-width: 640px)  {
  .header-actions { flex-wrap: wrap; justify-content: center; }
  .header-actions .lbl { display: inline; }     /* own row again — labels fit */
  .header-actions .btn-ghost { font-size: 12.5px; }
}

/* ---------- results screen: Start again in the same gold ---------- */
.btn-again {
  background: linear-gradient(180deg, #E5C45C, var(--gold));
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700; font-size: 14px;
  padding: 10px 18px;
  box-shadow: 0 4px 14px rgba(2, 0, 28, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-again:hover {
  background: linear-gradient(180deg, #EFCF6A, #E0BC4F);
  transform: translateY(-1px);
}

/* ---------- title rows (step + results) hold a 🔊 button ---------- */
.step-title-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 30px;
}
.step-title-row .step-title,
.step-title-row .results-title { margin-bottom: 0; }

/* ---------- 🔊 read-aloud buttons ---------- */
.listen-btn {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(217, 181, 71, 0.14);
  border: 1.5px solid rgba(217, 181, 71, 0.75);
  font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.listen-btn:hover { background: rgba(217, 181, 71, 0.28); border-color: var(--gold); }
.listen-btn.speaking {
  background: var(--gold); border-color: var(--gold);
  animation: listen-pulse 1.2s ease-in-out infinite;
}
@keyframes listen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 181, 71, 0.45); }
  50%      { box-shadow: 0 0 0 9px rgba(217, 181, 71, 0); }
}
@media (prefers-reduced-motion: reduce) { .listen-btn.speaking { animation: none; } }
body.reduce-motion .listen-btn.speaking { animation: none; }

.listen-hero { margin-left: 14px; vertical-align: middle; }
/* v3.1: the landing 🔊 sits above the "Guiding your journey…" pill */
.listen-hero-top { display: block; margin: 0 auto 16px; }
.card .listen-btn { width: 30px; height: 30px; font-size: 13px; }

/* the accessibility panel can hide all 🔊 buttons in one move */
body.hide-readaloud .listen-btn { display: none; }

/* ---------- footer: team names link to profiles ---------- */
.foot-name,
.foot-licence-text a.foot-name {               /* v3.2: gold + underlined so the link is unmistakable
                                                  (second selector outweighs the generic licence-link rule) */
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.foot-name:hover,
.foot-licence-text a.foot-name:hover { color: #EACD70; text-decoration-color: #EACD70; }
.foot-sep { margin: 0 8px; color: var(--ink-faint); }
.foot-avatar {
  width: 29px; height: 29px; border-radius: 50%;   /* v3.1: +10% at the team's request */
  object-fit: cover; display: inline-block;
  border: 1.5px solid rgba(244, 242, 255, 0.35);
}
.foot-name:hover .foot-avatar { border-color: var(--gold); }

/* the footer "Accessibility" opener, styled like the quiet Admin link */
.foot-link-btn {
  background: none; border: none; padding: 0;
  font: inherit; color: var(--ink-faint);
  cursor: pointer;
}
.foot-link-btn:hover { color: var(--gold); }

/* ---------- accessibility panel ---------- */
.access-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(400px, 94vw);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    linear-gradient(170deg, #140A52 0%, #0B0340 100%);
  border-left: 1px solid var(--glass-edge);
  box-shadow: -24px 0 60px rgba(2, 0, 28, 0.6);
  padding: 22px 22px 30px;
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column; gap: 16px;
}
.access-panel.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .access-panel { transition: none; } }
body.reduce-motion .access-panel { transition: none; }

.access-intro { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }

.access-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.access-row-text { display: flex; flex-direction: column; gap: 2px; }
.access-row-label { font-weight: 600; font-size: 14.5px; }
.access-row-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.45; }

/* switch */
.access-switch {
  flex: none; position: relative;
  width: 46px; height: 26px; border-radius: 13px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-edge);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.access-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.access-switch.on { background: rgba(217, 181, 71, 0.35); border-color: var(--gold); }
.access-switch.on::after { transform: translateX(20px); background: var(--gold); }
body.reduce-motion .access-switch,
body.reduce-motion .access-switch::after { transition: none; }

/* text-size stepper */
.access-size { display: inline-flex; align-items: center; gap: 10px; }
.access-size-btn {
  width: 42px; height: 34px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  font-weight: 700; font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.access-size-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.access-size-btn:disabled { opacity: 0.35; cursor: default; }
.access-size-val { font-weight: 700; font-size: 13.5px; min-width: 44px; text-align: center; color: var(--gold); }

.access-stop { align-self: flex-start; }

.access-statement { margin-top: 6px; }
.access-statement h3 {
  font-family: var(--font-display); font-size: 15px; margin-bottom: 8px;
}
.access-statement p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.65; margin-bottom: 10px; }

/* ---------- text size (applied from the panel) ----------
   `zoom` scales layout and text together, so nothing overlaps
   or escapes its card — the closest thing CSS has to the
   browser's own zoom, per-site. Overlays (search panel,
   accessibility panel) scale their contents; transient bits
   (toast, dot pop-up) scale their text. */
header, main, footer { zoom: var(--access-zoom, 1); }
.panel > *, .access-panel > * { zoom: var(--access-zoom, 1); }
.toast { font-size: calc(14px * var(--access-zoom, 1)); }
.dot-pop { font-size: calc(14px * var(--access-zoom, 1)); }
.dot-pop b { font-size: calc(14.5px * var(--access-zoom, 1)); }

/* ---------- easier reading ---------- */
body.readable main,
body.readable .panel,
body.readable .access-panel {
  line-height: 1.8;
  letter-spacing: 0.012em;
  word-spacing: 0.06em;
}
body.readable .card-how { line-height: 1.8; }

/* ---------- hyperlegible font ---------- */
body.hyperlegible {
  --font-body: "Atkinson Hyperlegible", "Inter", system-ui, sans-serif;
  --font-display: "Atkinson Hyperlegible", "Sora", system-ui, sans-serif;
  font-family: var(--font-body);
}

/* ---------- higher contrast ---------- */
body.high-contrast {
  --ink-dim:    rgba(244, 242, 255, 0.94);
  --ink-faint:  rgba(244, 242, 255, 0.80);
  --glass:      rgba(255, 255, 255, 0.10);
  --glass-edge: rgba(255, 255, 255, 0.38);
}

/* ---------- manual reduce motion (mirrors the media query) ---------- */
html:has(body.reduce-motion) { scroll-behavior: auto; }
body.reduce-motion .screen, body.reduce-motion .card,
body.reduce-motion .dot-pop { animation: none; }
body.reduce-motion .btn-primary, body.reduce-motion .btn-again,
body.reduce-motion .option, body.reduce-motion .card,
body.reduce-motion .panel, body.reduce-motion .panel-backdrop,
body.reduce-motion .toast, body.reduce-motion .listen-btn { transition: none; }

/* ---------- small screens (v3 bits) ---------- */
@media (max-width: 640px) {
  .step-title-row { gap: 10px; }
  .access-panel { width: 100vw; }
}

/* ============================================================
   VERSION 3.1 REFINEMENTS (4 July, evening)
   ============================================================ */

/* footer disclaimer: brightened well past WCAG AA for small text */
.foot-disclaimer { color: rgba(244, 242, 255, 0.82); }

/* landing legend: brighter, with the tap-a-dot line on its own beneath */
.legend-title { color: rgba(244, 242, 255, 0.86); margin-bottom: 4px; }
.legend-hint  { font-size: 13px; color: rgba(244, 242, 255, 0.86); margin-bottom: 12px; }

/* footer top row: brighter text */
.foot-row span { color: rgba(244, 242, 255, 0.85); }

/* the Accessibility link on the home page — between the walkthrough
   and the resource count, with breathing space above and below
   (the walkthrough's own 46px bottom margin supplies the rest) */
.landing-access {
  display: flex; align-items: center; gap: 7px;
  width: fit-content;
  margin: 4px auto 38px;
  font-size: 14px; font-weight: 600;
  color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px;
  background: none; border: none; padding: 4px 8px;
}
.landing-access:hover { color: #EACD70; }

/* the universal-access figure (SVG, inherits the button's colour) */
.access-ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: none; }
.header-actions .ico .access-ico { width: 16px; height: 16px; vertical-align: -0.18em; }

/* kept for any future footer links */
.foot-link-btn {
  color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px;
}
.foot-link-btn:hover { color: #EACD70; }

/* Admin: gold, underlined, anchored to the footer's bottom-right */
.foot-admin {
  position: absolute;
  right: clamp(18px, 4vw, 44px); bottom: 30px;
  margin-left: 0;
  color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px;
}
.foot-admin:hover { color: #EACD70; }
@media (max-width: 640px) {
  /* on phones the licence line wraps toward the right edge, so Admin
     returns to the flow rather than overlapping it */
  .foot-admin { position: static; display: inline-block; margin-top: 6px; }
}

/* "AI Pathfinder": the white→gold gradient drifts slowly and always
   left→right. The gradient is built as two identical tiles so the end
   of each pass is pixel-identical to the start — the loop never jumps.
   Stills itself (device setting or the accessibility panel's toggle)
   at a position close to the original static look. */
.hero-title {
  background: linear-gradient(90deg,
    #FFFFFF 0%, #EACD70 9%, #D9B547 20%, #EACD70 31%, #FFFFFF 40%, #FFFFFF 50%,
    #EACD70 59%, #D9B547 70%, #EACD70 81%, #FFFFFF 90%, #FFFFFF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-drift 14s linear infinite;
}
@keyframes title-drift {
  from { background-position: 100% 50%; }
  to   { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none; background-position: 80% 50%; }
}
body.reduce-motion .hero-title { animation: none; background-position: 80% 50%; }

/* ============================================================
   VERSION 3.4 · "HOW THE PATHFINDER WAS MADE"
   The story pop-up and the home page link row that opens it
   ============================================================ */

/* the home page link row: Accessibility · How this was made */
.landing-links {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin: 4px auto 38px;
}
.landing-links .landing-access { display: inline-flex; align-items: center; margin: 0; }
.landing-links-sep { color: var(--ink-faint); }

/* the pop-up itself: the Pathfinder waits behind it */
.about-modal {
  position: fixed; z-index: 42;
  top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.97);
  width: min(900px, 94vw); max-height: 88vh;
  overflow-y: auto;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    linear-gradient(170deg, #140A52 0%, #0B0340 100%);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(2, 0, 28, 0.7);
  padding: 24px 28px 30px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.about-modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.about-backdrop { z-index: 41; }
@media (prefers-reduced-motion: reduce) { .about-modal { transition: none; } }
body.reduce-motion .about-modal { transition: none; }

.about-title-row { display: flex; align-items: center; gap: 12px; }
.about-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.about-intro { font-size: 14px; color: var(--ink-dim); line-height: 1.7; margin: 6px 0 14px; max-width: 640px; }

.about-timeline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.about-chip {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: rgba(217, 181, 71, 0.12); border: 1px solid rgba(217, 181, 71, 0.5);
  color: #EACD70;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 0; }
.about-card {
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-top: 3px solid var(--gold); border-radius: 16px; padding: 18px 20px;
}
.about-card.wide { grid-column: 1 / -1; }
.about-card h3 {
  font-family: var(--font-display); font-size: 15.5px; color: #fff;
  margin-bottom: 9px; display: flex; align-items: center;
}
.about-card .n {
  display: inline-flex; flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 12px;
  align-items: center; justify-content: center; margin-right: 8px;
}
.about-card p { font-size: 13px; line-height: 1.7; color: var(--ink-dim); }
.about-card a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.about-card a:hover { color: #EACD70; }

.about-team { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.about-team img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(244, 242, 255, 0.4); display: block;
}
.about-team a:hover img { border-color: var(--gold); }
.about-close-line { font-size: 12.5px; color: var(--ink-dim); line-height: 1.6; }

/* text-size setting applies inside the pop-up too */
.about-modal > * { zoom: var(--access-zoom, 1); }

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-modal { padding: 18px 16px 24px; max-height: 92vh; }
}

/* ============================================================
   VERSION 3.5 · POLISH
   Scroll cue + gold ✕ on the story pop-up · legend chips as links
   ============================================================ */

/* the ✕ on the story pop-up: white ✕ in a gold circle, unmissable */
.about-modal .panel-close {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  color: #FFFFFF;
  font-size: 17px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 0, 28, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.about-modal .panel-close:hover {
  background: #EACD70; border-color: #EACD70;
  transform: scale(1.06);
}
body.reduce-motion .about-modal .panel-close { transition: none; }

/* soft fade at the foot of the pop-up: "there's more below" */
.about-fade {
  position: sticky; bottom: -30px;      /* reaches into the pop-up's own padding */
  height: 74px; margin: -74px -28px -30px;
  background: linear-gradient(180deg, rgba(11, 3, 64, 0) 0%, rgba(11, 3, 64, 0.92) 72%, #0B0340 100%);
  border-radius: 0 0 20px 20px;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.about-fade.hidden { opacity: 0; }
body.reduce-motion .about-fade { transition: none; }
@media (max-width: 700px) { .about-fade { margin-left: -16px; margin-right: -16px; } }

/* home page legend chips are links now - make them feel like it */
.legend-link { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.legend-link:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}
body.reduce-motion .legend-link { transition: none; }
