/* Deepen Archive - design system
   Visual language matched to coe22.com (The Church of Eleven22):
   light editorial layout, warm off-white paper, near-black ink, high-contrast
   serif display (Fraunces ~ ivypresto-display), Inter body, warm stone accent,
   dark hero band + dark footer, crisp rectangular buttons. */

:root {
  /* surfaces */
  --paper: #ffffff;
  --bg: #f6f2ee;            /* warm off-white page */
  --bg-warm: #f9f5f1;
  --panel: #ffffff;         /* cards */
  --panel-2: #f1ebe4;
  --gray: #ece6dd;
  --dark: #111110;          /* hero + footer */
  --dark-2: #1b1a18;
  /* ink + text */
  --ink: #16140f;
  --text: #1c1b18;
  --text-dim: #5e594f;
  --text-faint: #797366;    /* darkened to meet WCAG AA on light surfaces */
  --on-dark: #f3efe9;
  --on-dark-dim: #b3ada3;
  /* accents */
  --stone: #928576;
  --stone-dark: #6f6556;
  --gold: #928576;          /* (kept name) eyebrow / scripture accent = stone */
  --gold-soft: #7c7163;
  --fireweed: #86271b;      /* brand red, used sparingly */
  --fireweed-bright: #a4392a;
  --line: #e6dfd5;
  --line-dark: #2c2a26;
  /* system */
  --radius: 8px;
  --radius-sm: 5px;
  --maxw: 1180px;
  --sans: "Inter", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "ivypresto-display", "Georgia", "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(30,22,12,.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* honor the attr even when a rule sets display */
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
/* anchored sections clear the sticky header */
[id] { scroll-margin-top: 86px; }

/* visible keyboard focus everywhere (outline removed on inputs is restored here) */
:focus-visible { outline: 2px solid var(--fireweed-bright); outline-offset: 2px; border-radius: 3px; }
.card:focus-visible { outline-offset: 3px; }

/* skip link */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; font-family: var(--sans);
  transition: top .18s;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .card:hover { transform: none; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--sans);
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 15px; color: var(--ink); }
.brand .dot { color: var(--fireweed-bright); }
.brand small { font-size: 10px; letter-spacing: .24em; color: var(--text-faint); font-weight: 600; }
.brand-logo { height: 34px; width: 34px; align-self: center; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 9px 15px; border-radius: 4px; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); transition: .16s;
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a.active { color: var(--fireweed); }
/* Support / donate CTA - always visible (desktop + mobile, outside the menu) */
.header-support {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  background: var(--fireweed); color: #fff; border-radius: 8px; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; transition: background .15s;
}
.header-support:hover { background: var(--fireweed-bright); }
/* hamburger - hidden on desktop */
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 8px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero (dark band, matches coe22 top hero) ---- */
.hero { background: var(--dark); color: var(--on-dark); padding: 76px 0 56px;
  position: relative; overflow: hidden; }
.hero:before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(146,133,118,.22), transparent 65%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr 420px; } }

/* Latest-episode player card in the hero */
.hero-player {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px; backdrop-filter: blur(4px);
}
.hp-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 11px; }
.hp-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0;
  border-radius: 9px; overflow: hidden; background: #000 center/cover no-repeat; cursor: pointer;
}
.hp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-playbtn {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%; background: rgba(164,57,42,.92);
  color: #fff; font-size: 22px; padding-left: 4px; transition: .18s; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.hp-video:hover .hp-playbtn { transform: scale(1.08); background: var(--fireweed-bright); }
.hp-title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2;
  color: #fff; margin: 13px 0 4px; font-weight: 600; }
.hp-title:hover { color: var(--stone); }
.hp-meta { font-family: var(--sans); font-size: 12.5px; color: var(--on-dark-dim); margin-bottom: 12px; }
.hp-audio { width: 100%; height: 38px; margin-bottom: 10px; }
.hp-open { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.hp-open:hover { color: #fff; }
.eyebrow { color: var(--stone); letter-spacing: .28em; text-transform: uppercase;
  font-size: 12px; font-weight: 700; font-family: var(--sans); }
.hero h1 { font-size: clamp(48px, 8vw, 92px); line-height: 1.0; margin: 16px 0 6px;
  letter-spacing: .01em; color: #fff; font-weight: 600; }
.hero .hero-sub { margin: 0 0 18px; font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 3vw, 28px); color: var(--stone); font-weight: 400; }
.hero p.lead { color: var(--on-dark-dim); max-width: 640px; font-size: 18px; font-family: var(--sans); }
.statbar { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 38px; }
.statbar .num { font-family: var(--serif); font-size: 40px; font-weight: 600; color: #fff; line-height: 1; }
.statbar .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone); margin-top: 8px; font-weight: 600; }

/* ---- Search + filters ---- */
.searchbar { position: relative; margin: 30px 0 8px; }
.searchbar input {
  width: 100%; padding: 17px 18px 17px 52px; font-size: 16px; font-family: var(--sans);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); outline: none; transition: .16s; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.searchbar input:focus { border-color: var(--stone); box-shadow: 0 0 0 3px rgba(146,133,118,.18); }
.searchbar input::placeholder { color: var(--text-faint); }
.searchbar .icon { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: var(--stone); pointer-events: none; }
.searchbar input { padding-right: 48px; }
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: var(--panel-2); color: var(--text-dim);
  border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: .15s;
}
.search-clear:hover { background: var(--ink); color: #fff; }
.filter-reset {
  background: none; border: 1px solid var(--line); color: var(--text-dim); cursor: pointer;
  border-radius: 999px; padding: 8px 15px; font-size: 12px; font-weight: 600; font-family: var(--sans);
  letter-spacing: .02em; transition: .15s;
}
.filter-reset:hover { border-color: var(--fireweed-bright); color: var(--fireweed); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; align-items: center; }
.filters select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: var(--paper); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 38px 9px 18px; font-size: 13px; font-family: var(--sans); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23797366' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.filters select:hover { border-color: var(--stone); }
.filters select:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2316140f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.filters .count { margin-left: auto; color: var(--text-dim); font-size: 13px; letter-spacing: .02em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }

/* ---- Chips / tags ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--text-dim);
  transition: .15s; cursor: pointer; font-family: var(--sans);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.scripture { font-family: var(--serif); font-size: 13.5px; font-style: italic;
  color: var(--stone-dark); border-color: var(--line); background: var(--bg-warm); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 4px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; backdrop-filter: blur(3px); }
.badge.guest { background: rgba(255,255,255,.18); color: #fff; }
.badge.special { background: var(--fireweed); color: #fff; }
.badge.roundtable { background: rgba(255,255,255,.18); color: #fff; }
/* count badge inside a light chip (e.g. topic directory) */
.chip .badge { background: var(--gray); color: var(--stone-dark); backdrop-filter: none; }
.chip:hover .badge { background: var(--ink); color: #fff; }

/* ---- Episode grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 26px; margin: 30px 0 70px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--stone); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 1/1; background: var(--dark); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(transparent 50%, rgba(17,17,16,.6)); opacity: 0; transition: .2s; color: #fff; font-size: 20px;
}
.card:hover .thumb .play { opacity: 1; }
.card .thumb .meta-row { position: absolute; top: 11px; left: 11px; right: 11px; display: flex; justify-content: space-between; gap: 6px; }
.card .body { padding: 17px 18px 19px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .series-lbl { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fireweed); font-weight: 700; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.18; font-weight: 600; letter-spacing: -.005em; }
.card .date { font-family: var(--sans); font-size: 12.5px; color: var(--text-faint); margin-top: auto; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .scrip { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--stone-dark); }

/* ---- Section headers ---- */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 56px 0 10px; gap: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin: 0; letter-spacing: -.015em; font-weight: 600; }
.section-head .sub { color: var(--text-faint); font-size: 14px; font-family: var(--sans); }

/* ---- Bible index ---- */
.testament-tabs { display: flex; gap: 8px; margin: 22px 0; }
.testament-tabs button {
  background: var(--paper); border: 1px solid var(--line); color: var(--text-dim);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; transition: .15s;
}
.testament-tabs button:hover { border-color: var(--stone); color: var(--ink); }
.testament-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
button.book-tile { font-family: inherit; color: inherit; width: 100%; text-align: left; -webkit-appearance: none; appearance: none; }
.book-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 17px; cursor: pointer; transition: .16s;
}
.book-tile:hover { border-color: var(--stone); background: var(--bg-warm); transform: translateY(-2px); }
.book-tile.empty { opacity: .42; cursor: default; background: transparent; }
.book-tile.empty:hover { transform: none; border-color: var(--line); }
.book-tile .bname { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.book-tile .bmeta { font-family: var(--sans); font-size: 11.5px; color: var(--text-faint); margin-top: 4px; letter-spacing: .02em; }
.chapter-block { margin: 14px 0; }
.chapter-block h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 9px; font-size: 22px; font-weight: 600; }
.ref-list { display: flex; flex-direction: column; gap: 8px; }
.ref-row {
  display: flex; gap: 14px; align-items: center; padding: 13px 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .15s;
}
.ref-row:hover { border-color: var(--stone); background: var(--bg-warm); }
.ref-row .scrip { font-family: var(--serif); font-style: italic; color: var(--stone-dark); min-width: 124px; font-size: 15px; }
.ref-row .ep-title { flex: 1; font-size: 15px; font-family: var(--sans); color: var(--text); }
.ref-row .ts { font-family: var(--sans); font-size: 12px; color: var(--stone-dark); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- Episode detail ---- */
.detail-head { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 46px 0 22px; align-items: start; }
.detail-head .cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-head h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; margin: 10px 0 14px; font-weight: 600; letter-spacing: -.015em; }
.player { margin: 10px 0 14px; }
.player audio { width: 100%; }
.yt-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 18px 0; box-shadow: var(--shadow); }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-body { display: grid; grid-template-columns: 1fr 310px; gap: 46px; padding-bottom: 90px; }
.prose p { color: var(--text); margin: 0 0 15px; font-size: 16.5px; }
.prose a { color: var(--fireweed); text-decoration: underline; text-underline-offset: 3px; }
.aside h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 11px; font-weight: 700; }
.aside .block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.transcript { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-height: 560px; overflow: auto; }
.transcript .seg { display: flex; gap: 16px; padding: 5px 0; border-radius: 6px; }
.transcript .seg:hover { background: var(--bg-warm); }
.transcript .seg .t { color: var(--stone-dark); font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 56px; cursor: pointer; font-weight: 600; }
.transcript .seg button.t { border: 0; background: none; padding: 0; font-family: inherit; text-align: left; }
.transcript .seg button.t:hover { color: var(--fireweed); }
.transcript .seg .x { font-size: 15px; color: var(--text); }
.transcript mark { background: rgba(146,133,118,.28); color: var(--ink); border-radius: 3px; }

/* ---- Chat ---- */
.chat-shell { max-width: 840px; margin: 34px auto 70px; }
.chat-log { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; min-height: 320px; }
.msg { padding: 15px 19px; border-radius: var(--radius); max-width: 88%; font-size: 15.5px; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
/* markdown rendered inside a chat answer */
.msg.bot > :first-child { margin-top: 0; }
.msg.bot > :last-child { margin-bottom: 0; }
.msg.bot p { margin: 0 0 10px; }
.msg.bot h1, .msg.bot h2, .msg.bot h3, .msg.bot h4 {
  font-family: var(--serif); font-weight: 600; line-height: 1.2;
  margin: 16px 0 7px; color: var(--ink);
}
.msg.bot h1 { font-size: 20px; }
.msg.bot h2 { font-size: 18px; }
.msg.bot h3, .msg.bot h4 { font-size: 16px; }
.msg.bot ul, .msg.bot ol { margin: 0 0 10px; padding-left: 22px; }
.msg.bot li { margin: 3px 0; }
.msg.bot strong { font-weight: 700; color: var(--ink); }
.msg.bot em { font-style: italic; }
.msg.bot a { color: var(--fireweed); text-decoration: underline; text-underline-offset: 2px; }
.msg.bot blockquote {
  margin: 10px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--stone);
  color: var(--text-dim); font-style: italic;
}
.msg.bot code {
  background: var(--panel-2); padding: 1px 5px; border-radius: 4px;
  font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.msg .cites { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px; }
.msg .cite { font-size: 13.5px; color: var(--text-dim); border-left: 2px solid var(--stone); padding-left: 11px; }
.chat-input { display: flex; gap: 10px; position: sticky; bottom: 16px; }
.chat-input input { flex: 1; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-family: var(--sans); }
.chat-input input:focus { outline: none; border-color: var(--stone); box-shadow: 0 0 0 3px rgba(146,133,118,.18); }
.chat-input button, .btn {
  background: var(--ink); color: #fff; border: none; border-radius: var(--radius);
  padding: 0 24px; font-weight: 700; cursor: pointer; font-family: var(--sans);
  letter-spacing: .08em; text-transform: uppercase; font-size: 13px; transition: .15s;
}
.chat-input button { height: auto; }
.chat-input button:hover, .btn:hover { background: var(--fireweed); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.banner { background: var(--bg-warm); border: 1px solid var(--line); border-left: 3px solid var(--stone); border-radius: var(--radius-sm); padding: 13px 17px; font-size: 13.5px; color: var(--text-dim); margin: 14px 0; }
.banner code { background: var(--gray); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: var(--on-dark-dim); padding: 40px 0; margin-top: 20px; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

.empty-state { text-align: center; color: var(--text-faint); padding: 70px 20px; font-size: 16px; }
.loading { text-align: center; color: var(--text-faint); padding: 50px; }
.back-link { color: var(--text-dim); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; gap: 6px; margin: 22px 0 0; font-family: var(--sans); }
.back-link:hover { color: var(--fireweed); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; margin-left: 0; }
  .site-header .wrap { gap: 14px; }
  .brand small { display: none; }                 /* hide "SEARCHABLE ARCHIVE" on mobile */
  .header-support { margin-left: auto; }            /* push Support + hamburger to the right */
  .nav {
    position: absolute; top: 70px; right: 14px; left: 14px;
    flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 8px; font-size: 13px; }
  .nav a.active { background: var(--panel-2); }
}
@media (max-width: 760px) {
  .detail-head { grid-template-columns: 1fr; }
  .detail-head .cover { max-width: 220px; }
  .detail-body { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 34px; }
  .statbar { gap: 22px 30px; }
  .statbar .num { font-size: 32px; }
  .wrap { padding: 0 18px; }
  .grid { gap: 18px; }
  .filters .count { margin-left: 0; width: 100%; }
}

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
