/* ==========================================================================
   Binder Value — theme stylesheet
   One file, no build step. Edit freely; everything is plain CSS.
   Sections: 1 tokens · 2 base · 3 shell/header · 4 components · 5 pages
             6 prose · 7 form · 8 responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg:          #E9E7E1;
  --surface:     #FFFFFF;
  --surface-2:   #F6F4F0;
  --surface-3:   #EEEBE4;
  --ink:         #15141A;
  --ink-2:       #56535F;
  --ink-3:       #8B8794;
  --line:        #E5E1D8;
  --line-2:      #D6D1C6;

  --accent:      #EE6A2E;
  --accent-2:    #C9501A;
  --accent-soft: #FDEDE4;
  --sky:         #56B7DD;
  --leaf:        #4FA96B;
  --gold:        #E0A62B;
  --grape:       #8A63D2;

  --r-xl: 34px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  --shadow-lg: 0 40px 80px -32px rgba(24,20,12,.30), 0 4px 14px -6px rgba(24,20,12,.10);
  --shadow-sm: 0 2px 10px -4px rgba(24,20,12,.18);

  --font-display: 'Oswald', 'Archivo Narrow', 'Liberation Sans Narrow', 'DejaVu Sans Condensed',
                  'Arial Narrow', system-ui, sans-serif;
  --font-body:    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
                  'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 64px);
}

html[data-theme="dark"] {
  --bg:          #0E0D12;
  --surface:     #17161D;
  --surface-2:   #1F1D26;
  --surface-3:   #262430;
  --ink:         #F3F1F7;
  --ink-2:       #ADA9B8;
  --ink-3:       #7B7686;
  --line:        #2A2833;
  --line-2:      #37343F;
  --accent:      #FF7F44;
  --accent-2:    #FF9C6C;
  --accent-soft: #2A1B14;
  --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.75), 0 4px 14px -6px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 10px -4px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg:#0E0D12; --surface:#17161D; --surface-2:#1F1D26; --surface-3:#262430;
    --ink:#F3F1F7; --ink-2:#ADA9B8; --ink-3:#7B7686; --line:#2A2833; --line-2:#37343F;
    --accent:#FF7F44; --accent-2:#FF9C6C; --accent-soft:#2A1B14;
    --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.75), 0 4px 14px -6px rgba(0,0,0,.4);
    --shadow-sm: 0 2px 10px -4px rgba(0,0,0,.5);
  }
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

body {
  margin: 0;
  padding: clamp(12px, 3vw, 40px);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 99;
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { left: 20px; }

/* Shared type helpers */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
h1.display { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2.display { font-size: clamp(1.9rem, 4vw, 2.9rem); }

.label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .55rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 1.1rem 0 0;
  text-wrap: pretty;
}

.dot { color: var(--line-2); margin: 0 .1em; }

/* ---------- 3. Shell + header ------------------------------------------- */
.shell {
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: clip;
}

.site-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { color: var(--ink); display: block; line-height: 0; }
.brand-mark .bm-ring { }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(14px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  padding: 6px 0; position: relative; white-space: nowrap;
  transition: color .18s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2.5px; background: var(--accent); border-radius: 2px;
}

.head-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  background: transparent; border: 1px solid var(--line-2);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }

.nav-toggle { display: none; }

/* ---------- 4. Components ------------------------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .86rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--btn-bg);
  padding: 12px 22px; border-radius: 100px; cursor: pointer;
  transition: transform .16s ease, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); --btn-bg: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: .95rem; }
.btn-sm { padding: 9px 17px; font-size: .76rem; }
.btn-block { width: 100%; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--surface); border-color: var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Thin measure bars — the HP/ATTACK motif */
.statbar { display: block; }
.statbar + .statbar { margin-top: 14px; }
.statbar-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 5px;
}
.statbar-label {
  font-family: var(--font-display); font-size: .7rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}
.statbar-value {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  letter-spacing: .02em; color: var(--ink);
}
.statbar-track { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.statbar-track > i {
  display: block; height: 100%; width: var(--fill, 50%);
  background: var(--ink); border-radius: 3px;
}
.statbar.in-prose { margin: 1.6rem 0; }
.statbar.in-prose .statbar-track > i { background: var(--accent); }

/* Category colour coding — the "type dot" idea */
.cat-chip, .tag-chip, .term-pill {
  --c: var(--ink-3);
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-display); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2);
}
.cat-chip::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c);
  flex-shrink: 0;
}
[data-cat="values"], [data-cat="value-guides"] { --c: var(--accent); }
[data-cat="grading"]      { --c: var(--sky); }
[data-cat="sets"]         { --c: var(--leaf); }
[data-cat="investing"]    { --c: var(--gold); }
[data-cat="collecting"]   { --c: var(--grape); }
[data-cat="selling"]      { --c: var(--accent-2); }

.tag-chip {
  border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 12px;
  transition: border-color .18s, color .18s;
}
.tag-chip:hover { border-color: var(--ink-3); color: var(--ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card + .post-card { border-top: 1px solid var(--line); }
.post-card > a {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: start;
  gap: clamp(12px, 2vw, 28px);
  padding: 26px 0;
  text-decoration: none;
  transition: background .2s;
}
.post-card > a:hover { background: var(--surface-2); }
.post-card > a:hover .post-title { color: var(--accent); }
.post-card > a:hover .post-arrow { transform: translateX(5px); color: var(--accent); }

.post-num {
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3);
  padding-top: .3em; letter-spacing: -.02em;
}
.post-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.1vw, 1.62rem); line-height: 1.08; letter-spacing: .005em;
  margin: 0 0 .4rem; transition: color .18s; text-wrap: balance;
}
.post-excerpt { margin: 0 0 .6rem; color: var(--ink-2); font-size: .96rem; line-height: 1.6; max-width: 60ch; }
.post-meta {
  margin: 0; font-size: .78rem; color: var(--ink-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: .45em;
}
.post-arrow { color: var(--ink-3); padding-top: .35em; transition: transform .2s, color .2s; }

/* Callouts */
.callout {
  border-left: 3px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px; margin: 1.8rem 0;
}
.callout-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; font-weight: 600; margin: 0 0 .4rem;
}
.callout-body > :first-child { margin-top: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--accent); background: var(--accent-soft); }
.callout-tip  { border-left-color: var(--leaf); }

/* Affiliate */
.aff-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 18px 22px; margin: 1.9rem 0; background: var(--surface-2);
}
.aff-card .label { margin-bottom: .3rem; }
.aff-price { color: var(--accent); font-weight: 600; }
.aff-title { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600;
             text-transform: uppercase; margin: 0; line-height: 1.15; }
.aff-note { margin: .35rem 0 0; font-size: .87rem; color: var(--ink-2); }
.aff-inline { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.disclose {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  padding: 12px 16px; margin: 0 0 2rem; font-size: .87rem; color: var(--ink-2);
}
.disclose .label { margin: 0; }
.disclose p { margin: 0; }

/* Prev / next */
.postnav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2rem;
}
.postnav-side a {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  color: var(--ink-2); transition: color .18s;
}
.postnav-side a:hover { color: var(--accent); }
.postnav-next { justify-self: end; text-align: right; }
.postnav-next a { flex-direction: row; }
.postnav-arrow { transition: transform .2s; flex-shrink: 0; }
.postnav-side a:hover .postnav-arrow { transform: translateX(-5px); }
.postnav-next a:hover .postnav-arrow { transform: translateX(5px); }
.postnav-text { display: block; }
.postnav-text .label { margin-bottom: .15rem; }
.postnav-title {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  font-size: 1rem; line-height: 1.15; color: var(--ink); display: block;
}
.postnav-side a:hover .postnav-title { color: var(--accent); }

/* Pager */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.pager-btn {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .8rem; text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 100px; padding: 9px 18px;
  transition: border-color .18s, color .18s;
}
.pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.pager-btn.is-off { opacity: .35; pointer-events: none; }
.pager-count { font-size: .8rem; color: var(--ink-3); font-family: var(--font-mono); }

/* ---------- 5. Page blocks ---------------------------------------------- */
.panel { padding: clamp(32px, 5vw, 60px) var(--pad); }

.hero {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-stats {
  background: var(--surface-2); border-radius: var(--r-lg);
  padding: 26px 26px 28px;
}

.section-label { margin-bottom: 1.4rem; }
.steps { padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.step-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px);
  counter-reset: none;
}
.step-grid li { border-top: 2px solid var(--ink); padding-top: 16px; }
.step-num {
  font-family: var(--font-mono); font-size: .82rem; color: var(--accent);
  display: block; margin-bottom: .6rem;
}
.step-grid h3 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  font-size: 1.22rem; line-height: 1.1; margin: 0 0 .5rem;
}
.step-grid p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.feed { padding: clamp(36px, 5vw, 56px) 0 0; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more-link {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .8rem; text-decoration: none; color: var(--ink-2); transition: color .18s;
}
.more-link:hover { color: var(--accent); }

/* Dark inverted band. Uses its own tokens so it stays dark in dark mode
   instead of inverting to near-white along with --ink. */
.cta-band {
  --band-bg: #15141A;
  --band-fg: #FFFFFF;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  margin-top: clamp(40px, 6vw, 68px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--band-bg); border-radius: var(--r-lg);
}
html[data-theme="dark"] .cta-band { --band-bg: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .cta-band { --band-bg: var(--surface-2); }
}
.cta-band .label { color: rgba(255,255,255,.6); }
.cta-band .display { color: var(--band-fg); }
.cta-band .btn { --btn-bg: var(--accent); --btn-fg: #fff; border-color: var(--accent); }
.cta-band .btn:hover { --btn-bg: #fff; --btn-fg: #15141A; border-color: #fff; }

.page-head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem; }

.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.cat-bar a {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  border: 1.5px solid var(--line-2); border-radius: 100px; padding: 7px 15px;
  transition: all .18s;
}
.cat-bar a span { color: var(--ink-3); margin-left: .35em; font-size: .9em; }
.cat-bar a:hover { border-color: var(--ink-3); color: var(--ink); }
.cat-bar a.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.term-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.term-pill {
  border: 1.5px solid var(--line-2); border-radius: 100px; padding: 9px 18px;
  text-decoration: none; transition: border-color .18s;
}
.term-pill:hover { border-color: var(--accent); }
.term-pill span { color: var(--ink-3); margin-left: .5em; }

.empty { color: var(--ink-3); font-style: italic; }

/* Entry (single) */
.crumbs {
  display: flex; flex-wrap: wrap; gap: .55em; align-items: center;
  font-size: .78rem; color: var(--ink-3); margin-bottom: 1.6rem;
}
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }

.entry-head { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.entry-num { font-family: var(--font-mono); font-size: .92rem; color: var(--accent); margin: 0 0 .7rem; }
.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5em;
  font-size: .84rem; color: var(--ink-3); margin: 1.5rem 0 0;
}
.upd { color: var(--accent); }

.entry-hero { margin: 2.2rem 0 0; }
.entry-hero img { border-radius: var(--r-lg); width: 100%; }

.entry-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 268px;
  gap: clamp(30px, 5vw, 66px); align-items: start; margin-top: 2.6rem;
}
.entry-page .entry-grid { grid-template-columns: minmax(0,1fr); max-width: 72ch; }
.entry-page .entry-rail { display: none; }

.entry-rail { position: sticky; top: 24px; display: grid; gap: 26px; }
.rail-block { border-top: 2px solid var(--ink); padding-top: 14px; }
.rail-block p:not(.label) { font-size: .9rem; color: var(--ink-2); margin: 0 0 .9rem; }
.spec-list { margin: 0; display: grid; gap: 10px; }
.spec-list > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
                   border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.spec-list dt {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.spec-list dd { margin: 0; font-family: var(--font-display); font-weight: 600;
                font-size: .92rem; text-transform: uppercase; text-align: right; }
.rail-cta { border-top-color: var(--accent); }
.toc-block nav ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.toc-block nav ul ul { padding-left: 14px; margin-top: 4px; }
.toc-block nav li { margin-bottom: 7px; }
.toc-block nav a { text-decoration: none; color: var(--ink-2); }
.toc-block nav a:hover { color: var(--accent); }

/* ---------- 6. Prose ----------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3rem; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .01em; line-height: 1.12; text-wrap: balance;
}
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.8rem 0 .9rem; }
.prose h3 { font-size: 1.24rem; margin: 2.1rem 0 .7rem; }
.prose h4 { font-size: 1.05rem; margin: 1.7rem 0 .5rem; color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-2); }
/* Buttons keep their own colours even inside prose. */
.prose a.btn { color: var(--btn-fg); text-decoration: none; }
.prose a.btn:hover { color: var(--btn-fg); }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--r-md); margin: 1.8rem 0; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { font-size: .84rem; color: var(--ink-3); margin-top: .6rem; }
.prose blockquote {
  margin: 1.9rem 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: 1.08rem; color: var(--ink-2); font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.6rem 0; }
.prose code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--surface-2); padding: .15em .4em; border-radius: 5px;
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px; overflow-x: auto; margin: 1.7rem 0;
}
.prose pre code { background: none; padding: 0; font-size: .86rem; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.9rem 0; font-size: .93rem;
}
.prose th {
  text-align: left; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem; font-weight: 600;
  border-bottom: 2px solid var(--ink); padding: 9px 12px 9px 0;
}
.prose td { border-bottom: 1px solid var(--line); padding: 11px 12px 11px 0; vertical-align: top; }
.prose tr:hover td { background: var(--surface-2); }
.intro { margin-bottom: 2rem; }

/* ---------- 7. Submission form ------------------------------------------ */
/* The submission page is a single centred column. */
.sell-head, .sell-intro, .cform, .success-panel { max-width: 780px; margin-inline: auto; }
.sell-head { border-bottom: none; padding-bottom: 1rem; margin-bottom: 0; }
.sell-intro { margin-bottom: 2.6rem; }

.cform { }
.cform-block {
  border: none; border-top: 2px solid var(--ink);
  margin: 0 0 2.6rem; padding: 18px 0 0;
}
.cform-block legend { padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block; font-family: var(--font-display); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-2); margin-bottom: 7px;
}
.field-label b { color: var(--accent); }
.field-label em { font-style: normal; color: var(--ink-3); text-transform: none;
                  letter-spacing: .02em; font-size: .92em; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 12px 14px; transition: border-color .18s, background .18s;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 3px), calc(100% - 15px) calc(1em + 3px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field :is(input, select, textarea):focus { border-color: var(--accent); background: var(--surface); }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #D6453F; }
.field-hint { display: block; font-size: .83rem; color: var(--ink-3); margin-top: 6px; }
.block-hint { margin: -.4rem 0 1.1rem; max-width: 62ch; }
.field-err { display: none; font-size: .82rem; color: #D6453F; margin-top: 6px; }
.field-err.show { display: block; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
         font-size: .93rem; color: var(--ink-2); }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.consent { margin: 20px 0 4px; align-items: flex-start; }
.consent a { color: var(--accent); }

.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 34px 20px; text-align: center; cursor: pointer; color: var(--ink-3);
  display: grid; place-items: center; gap: 8px;
  transition: border-color .18s, background .18s, color .18s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.dropzone p { margin: 0; font-size: .93rem; }
.dropzone b { color: var(--ink); }

.thumbs { list-style: none; margin: 16px 0 0; padding: 0;
          display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--r-md);
             overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.66); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.thumb-name { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.6); color: #fff;
              font-size: .62rem; padding: 3px 5px; white-space: nowrap; overflow: hidden;
              text-overflow: ellipsis; }

.cf-turnstile { margin-bottom: 6px; min-height: 65px; }

.progress { margin-top: 16px; }
.progress-track { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-track > i { display: block; height: 100%; width: 0%; background: var(--accent);
                      border-radius: 4px; transition: width .25s ease; }
.progress-text { font-size: .82rem; color: var(--ink-3); margin: 8px 0 0;
                 font-family: var(--font-mono); }
.form-status { margin: 14px 0 0; font-size: .92rem; }
.form-status.err { color: #D6453F; }
.form-status.ok  { color: var(--leaf); }

.success-panel {
  max-width: 620px; text-align: center; margin: 3rem auto; padding: 3rem 2rem;
  border: 2px solid var(--line); border-radius: var(--r-xl);
}
.success-mark {
  width: 68px; height: 68px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.6rem;
}
.success-panel .lede { margin-left: auto; margin-right: auto; }
.success-panel .ref { font-size: .88rem; color: var(--ink-3); margin: 1.4rem 0; }
.success-panel code { font-family: var(--font-mono); background: var(--surface-2);
                      padding: .25em .6em; border-radius: 5px; }

/* ---------- Footer ------------------------------------------------------- */
.site-foot { background: var(--surface-2); border-top: 1px solid var(--line);
             padding: clamp(34px, 4vw, 52px) var(--pad) 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
             text-transform: uppercase; margin: 0 0 .4rem; }
.foot-tag { color: var(--ink-2); font-size: .93rem; margin: 0; max-width: 30ch; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-base { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px;
             display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-base p { margin: 0; font-size: .8rem; color: var(--ink-3); }
.foot-fine { max-width: 62ch; }

/* ---------- 8. Responsive ------------------------------------------------ */
@media (max-width: 1000px) {
  .entry-grid { grid-template-columns: minmax(0,1fr); }
  .entry-rail { position: static; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
                display: grid; gap: 24px; margin-top: 2.5rem; }
  .hero { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding: 0; }
  .shell { border-radius: 0; }
  .site-head { gap: 10px; }
  .nav-toggle {
    display: grid; gap: 5px; background: none; border: 1px solid var(--line-2);
    border-radius: var(--r-sm); width: 40px; height: 38px; cursor: pointer;
    place-content: center;
  }
  .nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; }
  .head-actions { order: 2; margin-left: auto; }
  .head-actions .btn { display: none; }
  .site-nav { order: 3; margin-left: 0; }
  /* Menu drops out of the header rather than pushing it taller. */
  .site-nav ul {
    display: none; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(0,0,0,.5);
    padding: 6px var(--pad) 14px;
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li a { display: block; padding: 12px 0; font-size: .92rem; }
  .site-nav li + li a { border-top: 1px solid var(--line); }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { color: var(--accent); }

  .step-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .post-card > a { grid-template-columns: 44px 1fr; padding: 22px 0; }
  .post-arrow { display: none; }
  .postnav { grid-template-columns: 1fr; gap: 22px; }
  .postnav-next { justify-self: start; text-align: left; }
  .postnav-next a { flex-direction: row-reverse; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media print {
  body { padding: 0; background: #fff; }
  .shell { box-shadow: none; max-width: none; }
  .site-head, .site-foot, .entry-rail, .postnav, .cta-band, .head-actions { display: none; }
}
