/* ==========================================================================
   unrealrips — design system (role-based tokens)
   Default skin: Evergreen (rugged-utilitarian, hard borders, offset-shadow
   buttons, condensed headlines, no glow). Palette variants swap tokens only;
   the Blacklight neon skin lives in themes-blacklight.css.
   ========================================================================== */
:root {
  --bg:         #f4f3ee;   /* page */
  --surface:    #ffffff;   /* cards / inputs */
  --surface-2:  #ece8de;   /* code / subtle fills */
  --text:       #1a1f1b;   /* body text */
  --text-soft:  #545b52;   /* secondary text */
  --border:     #1a1f1b;   /* hard borders + offset shadows */
  --hair:       #e3ded3;   /* light hairlines / dividers */
  --band:       #14211a;   /* dark editorial bands (header/footer/cta) */
  --on-band:    #ffffff;   /* text on dark bands */
  --accent:     #1f6b3b;   /* forest green */
  --accent-deep:#16502c;
  --on-accent:  #ffffff;   /* text on accent */
  --star:       #d9a521;   /* rating gold */
  --good:       #2f7d4f;

  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 1.5rem + 5vw, 5.2rem);
  --fs-h1:   clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --fs-h2:   clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  --fs-body: 1.0625rem;
  --fs-small:0.8125rem;
  --fs-micro:0.6875rem;

  --gap:     clamp(0.9rem, 0.6rem + 1vw, 1.4rem);
  --section: clamp(3rem, 2rem + 5vw, 6rem);
  --maxw:    1200px;
  --edge:    clamp(1.1rem, 0.4rem + 3vw, 2.5rem);
  --radius:  4px;
  --shadow:  0 1px 0 var(--hair), 0 14px 30px -22px rgba(0,0,0,.45);
  --hover-shadow: 4px 4px 0 var(--border);
  --ease:    cubic-bezier(.2,.7,.3,1);
}

/* ---- Palette variants (token-only; structure is shared) ---- */
[data-theme="slate"] {
  --bg:#16191a; --surface:#1f2422; --surface-2:#2a312d; --text:#eceae3; --text-soft:#98a29a;
  --border:#404a43; --hair:rgba(255,255,255,.09); --band:#0f1211; --on-band:#eceae3;
  --accent:#4a9e64; --accent-deep:#3a7d4f; --on-accent:#07130c; --star:#e0b341; --good:#43a96b;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 18px 40px -24px rgba(0,0,0,.7);
}
[data-theme="parchment"] {
  --bg:#f3ecdd; --surface:#fffaf0; --surface-2:#efe6d3; --text:#2a2018; --text-soft:#6e5f4c;
  --border:#2a2018; --hair:#e3d8c2; --band:#2a2018; --on-band:#f3ecdd;
  --accent:#5d6b32; --accent-deep:#495426; --on-accent:#fbf6ea; --star:#c8902a; --good:#5d7d3f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.0; letter-spacing: .004em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--edge); }
.muted { color: var(--text-soft); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }

.eyebrow { font-family: var(--sans); font-weight: 800; font-size: var(--fs-micro); letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow--center { justify-content: center; }
.glow-text { font-family: var(--display); text-transform: uppercase; letter-spacing: .002em; color: inherit; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--band); color: var(--on-band); border-bottom: 3px solid var(--accent); }
.header-inner { max-width: var(--maxw); margin-inline: auto; padding: .7rem var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 60px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase;
  letter-spacing: .01em; color: var(--on-band); display: inline-flex; align-items: center; gap: .5rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 2rem; width: auto; display: block; border-radius: 6px; }
.site-footer .brand-logo { height: 1.8rem; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.6rem); flex-wrap: wrap; }
.nav a, .nav .linklike { font-family: var(--sans); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: .06em; text-transform: uppercase; color: var(--on-band); padding-block: .3rem;
  border-bottom: 3px solid transparent; transition: border-color .15s var(--ease); }
.nav a:hover { border-bottom-color: var(--accent); text-decoration: none; }
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.site-header .btn-ghost { border-color: color-mix(in srgb, var(--on-band) 45%, transparent); color: var(--on-band); }
.site-header .btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans);
  font-weight: 800; font-size: var(--fs-small); letter-spacing: .05em; text-transform: uppercase;
  padding: .75rem 1.25rem; border-radius: var(--radius); border: 2.5px solid var(--border);
  background: var(--accent); color: var(--on-accent); cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--hover-shadow); text-decoration: none; }
.btn:active { transform: translate(0,0); box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-buy { background: var(--border); color: var(--bg); }
.btn-buy:hover { box-shadow: 4px 4px 0 var(--accent); }
.btn-lg { padding: .95rem 1.7rem; font-size: .9rem; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { font-family: var(--sans); font-weight: 700; font-size: var(--fs-small); letter-spacing: .04em;
  text-transform: uppercase; color: var(--text); padding: .45rem .85rem; border: 2px solid var(--border);
  border-radius: 999px; background: var(--surface); transition: background .15s var(--ease); }
.chip:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.chip.active { background: var(--accent); color: var(--on-accent); }

/* ---------- Messages ---------- */
.messages { margin-top: 1rem; }
.msg { padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--surface); font-weight: 600; }
.msg-success { border-color: var(--accent); }
.msg-danger { border-color: #b3361f; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--fs-hero); text-transform: uppercase; max-width: 15ch; }
.hero p { color: var(--text-soft); font-size: 1.15rem; max-width: 46ch; margin: 1.3rem 0 0; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero-panel { border: 3px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-panel img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Ticker ---------- */
.marquee { overflow: hidden; background: var(--band); border-block: 3px solid var(--accent); padding-block: .55rem; }
.marquee__track { display: inline-flex; gap: 2.2rem; white-space: nowrap; animation: slide 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: var(--fs-small); color: var(--on-band); display: inline-flex; align-items: center; gap: 2.2rem; }
.marquee__track span::after { content: "◆"; color: var(--accent); font-size: .6rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.section-head h2 { font-size: var(--fs-h1); text-transform: uppercase; }
.section-head a { font-family: var(--sans); font-weight: 800; font-size: var(--fs-small); letter-spacing: .06em;
  text-transform: uppercase; color: var(--text); border-bottom: 3px solid var(--accent); padding-bottom: 2px; }

/* ---------- Full-bleed feature ---------- */
.feature-bleed { position: relative; width: 100%; margin-block: var(--section); border-block: 3px solid var(--border); background: var(--band); }
.feature-bleed img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; display: block; }
.feature-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6)); pointer-events: none; }
.feature-bleed .feature-cap { position: absolute; z-index: 1; left: clamp(1rem,4vw,3rem); bottom: clamp(1rem,4vw,2.4rem); max-width: 34ch; color: #fff; }
.feature-bleed .feature-cap .eyebrow { color: var(--star); }
.feature-bleed .feature-cap p { margin: .4rem 0 .2rem; font-size: 1.3rem; font-family: var(--display); text-transform: uppercase; }

/* ---------- Masonry wall ---------- */
.wall { columns: 4 250px; column-gap: var(--gap); }
.wall > * { break-inside: avoid; margin-bottom: var(--gap); }
.shot { display: block; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); transition: transform .1s ease, box-shadow .1s ease; }
.shot:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--border); text-decoration: none; }
.shot img { width: 100%; height: auto; display: block; border-bottom: 2px solid var(--border); }
.shot__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; }
.shot__cap { font-size: var(--fs-small); margin: 0 0 .1rem; font-weight: 600; line-height: 1.25; }
.shot__by { font-size: var(--fs-micro); color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Spread ---------- */
.spread { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; align-items: start; }
.spread > :nth-child(2) { margin-top: clamp(2rem, 8vw, 6rem); }
@media (max-width: 720px) { .spread { grid-template-columns: 1fr; } .spread > :nth-child(2) { margin-top: 0; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: var(--gap); }
.review-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .1s ease, box-shadow .1s ease; }
.review-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--border); }
.review-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 2px solid var(--border); }
.review-card .rc-body { padding: .9rem 1rem; }
.review-card h3 { font-size: 1.25rem; text-transform: uppercase; }
.review-card h3 a:hover { color: var(--accent); text-decoration: none; }

.stars { color: var(--star); letter-spacing: .08em; }
.stars .empty { color: var(--hair); }

/* ---------- Badges ---------- */
.badge { font-family: var(--sans); font-size: var(--fs-micro); font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .5rem; border-radius: 3px; background: var(--border); color: var(--bg); }
.badge-featured { background: var(--accent); color: var(--on-accent); }
.badge-approved { background: var(--good); color: #fff; }
.badge-pending { background: var(--star); color: #1a1f1b; }
.badge-rejected { background: #b3361f; color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 3px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1.3rem 1.4rem; border-left: 2px solid var(--hair); text-align: center; }
.stats .stat:nth-child(odd) { border-left: 0; }
@media (min-width: 701px) { .stats .stat:nth-child(odd) { border-left: 2px solid var(--hair); } .stats .stat:first-child { border-left: 0; } }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); line-height: 1; color: var(--text); }
.stat span { font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); display: block; margin-top: .5rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 1rem 0 2rem; max-width: 540px; }
.stat-row .stat { border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: clamp(2.2rem, 5vw, 4rem); border: 3px solid var(--border); border-radius: var(--radius); background: var(--band); color: var(--on-band); }
.cta h2 { font-size: var(--fs-h1); text-transform: uppercase; color: var(--on-band); }
.cta p { color: color-mix(in srgb, var(--on-band) 78%, transparent); max-width: 46ch; margin: 1rem auto 1.7rem; }

/* ---------- Photo detail ---------- */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding-block: 2rem; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.photo-wrap { background: var(--surface); border: 3px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-wrap img { width: 100%; height: auto; }
.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-item { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.gear-item h4 { margin: 0 0 6px; font-size: 1.05rem; text-transform: uppercase; }
.buy-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.price { color: var(--text-soft); font-size: var(--fs-small); }

/* ---------- Prose ---------- */
.prose { max-width: 64ch; color: var(--text); }
.prose h2, .prose h3 { font-family: var(--sans); font-weight: 800; margin: 1.5em 0 .4em; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border: 2px solid var(--border); border-radius: var(--radius); margin: 1em 0; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 3px; font-size: .92em; }
.prose pre { background: var(--band); color: var(--on-band); padding: 14px; border-radius: var(--radius); overflow: auto; }
.prose blockquote { border-left: 5px solid var(--accent); margin: 1.2em 0; padding: .2em 0 .2em 1.1em; font-weight: 600; }
.prose table { border-collapse: collapse; }
.prose th, .prose td { border: 2px solid var(--hair); padding: 6px 10px; }

/* ---------- Forms ---------- */
.form-card { max-width: 560px; margin: clamp(2rem,5vw,3.5rem) auto; background: var(--surface); border: 3px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2rem); box-shadow: var(--shadow); }
.form-card h1 { margin-top: 0; font-size: var(--fs-h1); text-transform: uppercase; }
.form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.form-row input, .form-row select, .form-row textarea { background: var(--surface); color: var(--text); border: 2px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font: inherit; width: 100%; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.form-row .helptext { color: var(--text-soft); font-size: var(--fs-small); }
.errorlist { color: #b3361f; list-style: none; padding: 0; margin: 4px 0 0; font-size: var(--fs-small); font-weight: 600; }

/* ---------- Review article ---------- */
.backlink { font-family: var(--sans); font-size: var(--fs-small); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); display: inline-block; margin-bottom: 1.4rem; }
.backlink:hover { color: var(--accent); text-decoration: none; }
.review-head { max-width: 62ch; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.review-head h1 { font-size: var(--fs-h1); text-transform: uppercase; margin: .6rem 0 0; }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 60ch; margin: 1rem 0 0; }
.review-score { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.score-pill { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--on-accent); background: var(--accent); padding: .25rem .8rem; border-radius: var(--radius); }
.score-pill span { opacity: .8; font-weight: 600; }
.review-hero { border: 3px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-block: clamp(1.4rem,4vw,2.4rem); box-shadow: var(--shadow); }
.review-hero img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; display: block; }
.review-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .review-body { grid-template-columns: 1fr; } }
.review-aside { position: sticky; top: 5rem; display: grid; gap: 1.2rem; }
@media (max-width: 860px) { .review-aside { position: static; } }
.aside-h { font-family: var(--sans); font-size: var(--fs-small); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 .2rem; }
.scorecard { background: var(--surface); border: 3px solid var(--border); border-radius: var(--radius); padding: 1.3rem; text-align: center; box-shadow: var(--shadow); }
.scorecard b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: var(--text); margin: .4rem 0; }
.scorecard b span { font-size: 1.2rem; color: var(--text-soft); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; color: var(--text-soft); padding: clamp(2.5rem,7vw,4.5rem) 0; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.empty-state p { margin: 0 0 1.1rem; }
.sentinel { height: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: color-mix(in srgb, var(--on-band) 78%, transparent); border-top: 3px solid var(--accent); margin-top: var(--section); }
.site-footer .wrap { padding-block: clamp(2rem,5vw,3rem); }
.site-footer .brand { color: var(--on-band); }
.site-footer p { margin: .35rem 0; }

@media (max-width: 820px) { .wall { columns: 2 150px; } }

/* ---------- Search ---------- */
/* Inherits each theme's tokens (radius, border, accent) so it matches the
   theme's other inputs/buttons; skins add their own focus/flourish. */
.searchbar { display: flex; align-items: center; gap: .4rem; }
.searchbar input { font: inherit; font-size: var(--fs-small); padding: .45rem .8rem; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; width: clamp(120px, 16vw, 200px); }
.searchbar input:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.searchbar button { font-size: 1rem; line-height: 1; cursor: pointer; border: 2px solid var(--border);
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius); width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; transition: transform .08s ease, box-shadow .08s ease, filter .15s ease; }
.searchbar button:hover { filter: brightness(1.05); }
/* header sits on a dark band in every theme — use a translucent light field */
.site-header .searchbar input { background: color-mix(in srgb, var(--on-band) 12%, transparent);
  border-color: color-mix(in srgb, var(--on-band) 30%, transparent); color: var(--on-band); }
.site-header .searchbar input::placeholder { color: color-mix(in srgb, var(--on-band) 55%, transparent); }
.site-header .searchbar input:focus { border-color: var(--accent); background: color-mix(in srgb, var(--on-band) 16%, transparent); }
.searchbar--lg { max-width: 560px; margin-bottom: 1rem; }
.searchbar--lg input { width: 100%; font-size: 1rem; padding: .7rem 1.1rem; }
.searchbar--lg button { width: auto; height: auto; }

.search-result { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(1rem,3vw,2rem);
  align-items: start; padding: 1.2rem 0; border-top: 2px solid var(--hair); }
.search-result:first-of-type { border-top: 0; }
@media (max-width: 720px) { .search-result { grid-template-columns: 1fr; } }
.search-result .gear-list { margin: 0; }
.search-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.search-thumb { display: block; width: 70px; height: 70px; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-thumb:hover { border-color: var(--accent); }
.search-result__where .aside-h { display: block; }
.search-result__where p { margin: .3rem 0 0; }
.search-result__where a { color: var(--accent); }

/* --- Guides & FAQ --- */
.faq-toc { background: var(--surface-2); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1em 1.4em; margin: 1.5em 0; }
.faq-toc ol { margin: 0; padding-left: 1.2em; }
.faq-toc li { margin: .3em 0; }
.faq-toc a { color: var(--accent); text-decoration: none; }
.faq-toc a:hover { text-decoration: underline; }
.faq-list { margin-top: 2em; }
.faq-item { border-top: 2px solid var(--hair); padding: 1.6em 0; scroll-margin-top: 90px; }
.faq-item:first-child { border-top: none; }
.faq-q { font-family: var(--sans); font-weight: 800; margin: 0 0 .5em; }
.faq-q a { color: var(--text); text-decoration: none; }
.faq-q a:hover { color: var(--accent); }
.faq-a { max-width: 70ch; }

/* --- Hovercards (inline link + image popup) --- */
.hovercard { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.hovercard--link { cursor: pointer; color: var(--accent); }
.hovercard--link:hover { text-decoration-style: solid; }
.hovercard-pop {
  position: absolute; z-index: 200; top: 0; left: 0; padding: 6px;
  background: var(--surface, #fff); border: 2px solid var(--border, #d8d8d8);
  border-radius: var(--radius, 10px); box-shadow: 0 10px 28px rgba(0,0,0,.28);
  opacity: 0; transform: translateY(4px); pointer-events: none; max-width: 248px;
  transition: opacity .12s ease, transform .12s ease;
}
.hovercard-pop.is-visible { opacity: 1; transform: translateY(0); }
.hovercard-pop img { display: block; max-width: 232px; max-height: 232px; border-radius: 5px; }
