/* cofre.trade — Nocturne, black/brown (Claude Design "Cofre Website", turn 8 + logo 7a).
   Tokens mirror design_handoff_cofre_website/README.md; components mirror the Nocturne classes. */

/* ── fonts: Inter 400/500 self-hosted, metric-matched fallback so the swap doesn't shift layout ── */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT");
  ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 107.12%; }

:root {
  color-scheme: dark;
  --color-bg: oklch(0.155 0.006 55);
  --color-surface: oklch(0.205 0.01 55);
  --color-text: oklch(0.94 0.008 75);
  --color-divider: color-mix(in srgb, var(--color-text) 16%, transparent);
  --color-accent: oklch(0.68 0.1 60);
  --color-accent-100: oklch(0.97 0.015 70);
  --color-accent-200: oklch(0.92 0.035 70);
  --color-accent-300: oklch(0.84 0.06 68);
  --color-accent-400: oklch(0.76 0.085 65);
  --color-accent-500: oklch(0.68 0.1 60);
  --color-accent-600: oklch(0.57 0.09 55);
  --color-accent-700: oklch(0.46 0.075 52);
  --color-accent-800: oklch(0.35 0.055 50);
  --color-accent-900: oklch(0.25 0.035 50);
  --color-neutral-100: oklch(0.97 0.006 70);
  --color-neutral-200: oklch(0.92 0.008 70);
  --color-neutral-300: oklch(0.85 0.01 68);
  --color-neutral-400: oklch(0.75 0.012 65);
  --color-neutral-500: oklch(0.64 0.013 62);
  --color-neutral-600: oklch(0.54 0.013 60);
  --color-neutral-700: oklch(0.45 0.012 58);
  --color-neutral-800: oklch(0.33 0.01 55);
  --color-neutral-900: oklch(0.24 0.008 55);
  --color-section: oklch(0.3 0.06 50);
  --color-section-glow: oklch(0.37 0.07 52);
  --color-section-ghost: oklch(0.46 0.07 55);
  --color-danger: oklch(0.72 0.13 30);

  --shadow-sm: 0 0 0 1px var(--color-neutral-800);
  --shadow-md: 0 0 0 1px var(--color-neutral-700), 0 6px 18px rgba(0,0,0,.6);
  --shadow-lg: 0 0 0 1px var(--color-neutral-500), 0 16px 40px rgba(0,0,0,.7);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --space-1: 2.8px; --space-2: 5.6px; --space-3: 8.4px; --space-4: 11.2px; --space-6: 16.8px; --space-8: 22.4px;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 64px;
  --content: 1152px;
  --muted: color-mix(in srgb, var(--color-text) 80%, transparent);
  --rule: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent);
  --glow-band: radial-gradient(900px 420px at 85% -40%, color-mix(in srgb, var(--color-section-glow) 70%, transparent), transparent 64%);
}
@media (max-width: 1100px) { :root { --gutter: 40px; } }
@media (max-width: 720px)  { :root { --gutter: 20px; } }

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-bg); scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; color: var(--color-text);
  font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%) no-repeat, var(--color-bg);
  text-wrap: pretty; overflow-x: clip;
}
@media (max-width: 720px) {
  body { background: radial-gradient(500px 400px at 90% -80px, color-mix(in srgb, var(--color-accent-900) 80%, transparent), transparent 60%) no-repeat, var(--color-bg); }
}
b, strong, th, summary { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--color-accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-400); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--color-surface); border-radius: var(--radius-md); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.up { color: var(--color-accent-300); }
.down { color: var(--color-neutral-400); }
.muted { color: var(--color-neutral-400); }
.small { font-size: 13px; }
.kicker { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 16px; }
.label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-400); }
.rule { height: 1px; border: 0; margin: 0; background: var(--rule); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.prose p + p { margin-top: 1em; }
[hidden] { display: none !important; }

/* ── buttons (primary = accent outline, never a solid fill) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font: 500 14px/1.2 var(--font); color: var(--color-text); background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: var(--space-2) calc(var(--space-3) * 1.2); text-decoration: none; white-space: nowrap;
  transition: background-color .12s, color .12s, border-color .12s;
}
.btn:hover { color: var(--color-text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-light { color: var(--color-text); border-color: var(--color-text); }
.btn-light:hover { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-icon .i { font-size: 20px; }
.btn-lg { font-size: 15px; padding: 12px 18px; }
.btn-ghost.btn-lg { padding-inline: 6px; }
.btn-block { width: 100%; }
.btn .i { font-size: 1.05em; }
@media (max-width: 720px) { .btn-lg, .btn-block { min-height: 48px; } }

/* ── tags ── */
.tag { display: inline-flex; align-items: center; font-size: 11px; line-height: 1.45; letter-spacing: .02em; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag-outline { box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── forms ── */
.field { display: grid; gap: 5px; min-width: 0; }
.field > label, .field > .flabel { font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: 400 14px/1.4 var(--font); color: var(--color-text);
  caret-color: var(--color-accent); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md); appearance: none;
}
.input::placeholder { color: var(--color-neutral-600); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline: none; }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
textarea.input { min-height: 90px; resize: vertical; }
select.input { padding-right: 30px; background-image: none; cursor: pointer; }
.select { position: relative; display: inline-flex; }
.select .i { position: absolute; right: 10px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--color-neutral-400); }
.err { font-size: 12px; color: var(--color-danger); }
.form-msg { font-size: 14px; }
.form-msg.is-error { color: var(--color-danger); }
.form-msg.is-ok { color: var(--color-accent-300); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) { .input { min-height: 48px; font-size: 16px; } }

.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; min-height: 32px; }
.radio input, .seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-divider); }
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 4px var(--color-bg); }
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* segmented control — works for radios, links and buttons */
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); max-width: 100%; }
.seg-opt {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 12px; font: 400 13px/1.2 var(--font); cursor: pointer; color: var(--color-text);
  background: none; border: 0; white-space: nowrap;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:checked), .seg-opt[aria-pressed="true"], .seg-opt[aria-current="true"] {
  color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: none;
}
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.seg-opt:focus-visible { outline-offset: -2px; }

/* ── cards ── */
.card { display: flex; flex-direction: column; gap: var(--space-2); padding: 28px; border-radius: var(--radius-md); background: var(--color-surface); min-width: 0; }
.card.elev-sm { box-shadow: var(--shadow-sm); }
.card.elev-md { box-shadow: var(--shadow-md); }
a.card { color: var(--color-text); transition: box-shadow .15s; }
a.card:hover { color: var(--color-text); box-shadow: var(--shadow-md); }
.card-kicker { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.card-title { font-weight: 500; font-size: 17px; line-height: 1.2; }
.card-body { margin: 0; font-size: 13px; opacity: .8; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }

/* ── table: 11px uppercase heads, rows on fading 1px rules ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th {
  text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent); padding: var(--space-2); white-space: nowrap; vertical-align: bottom;
}
.table td { padding: 9px var(--space-2); vertical-align: middle; }
.table .r, .table .num { text-align: right; }
.table thead tr { background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; }
.table tbody tr { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-text) 8%, transparent) 48px, color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; }
.table tbody tr:hover {
  background:
    linear-gradient(color-mix(in srgb, var(--color-text) 4%, transparent), color-mix(in srgb, var(--color-text) 4%, transparent)) no-repeat 0 0 / 100% 100%,
    linear-gradient(to right, transparent, color-mix(in srgb, var(--color-text) 8%, transparent) 48px, color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.table a { color: var(--color-text); }
.table a:hover { color: var(--color-accent); }
.table .strong { font-weight: 500; }
.table .sub { display: block; font-size: 12px; color: var(--color-neutral-400); }
.thumb { width: 36px; height: 36px; object-fit: contain; border-radius: var(--radius-sm); background: var(--color-surface); flex: none; }
.cellimg { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* ── header / nav ── */
.site-head .wrap { display: flex; align-items: center; gap: var(--space-4); padding-block: 20px; }
.brand { display: block; width: 72px; height: 72px; margin-right: auto; flex: none; border-radius: 50%; }
.brand img { width: 100%; height: 100%; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-links a:not(.btn) { color: var(--color-text); font-size: 14px; padding-block: 12px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--color-accent); }
.mnav { display: none; }
@media (max-width: 760px) {
  .site-head .wrap { padding-block: 8px; }
  .brand { width: 60px; height: 60px; }
  .nav-links { display: none; }
  .mnav { display: block; }
}
.mnav > summary { list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary .i-x { display: none; }
.mnav[open] > summary { position: fixed; top: 16px; right: var(--gutter); z-index: 61; background: var(--color-bg); }
.mnav[open] > summary .i-x { display: block; }
.mnav[open] > summary .i-list { display: none; }
.mnav-panel {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 8px var(--gutter) 40px;
  background: radial-gradient(500px 400px at 90% -80px, color-mix(in srgb, var(--color-accent-900) 80%, transparent), transparent 60%) no-repeat, var(--color-bg);
  display: flex; flex-direction: column;
}
.mnav-panel .brand { margin-bottom: 32px; }
.mnav-panel nav { display: flex; flex-direction: column; }
.mnav-panel nav a:not(.btn) { color: var(--color-text); font-size: 28px; font-weight: 500; letter-spacing: -.02em; padding: 14px 0; border-top: 1px solid var(--color-neutral-800); }
.mnav-panel nav a[aria-current="page"] { color: var(--color-accent); }
.mnav-panel .btn { margin-top: 28px; }
.mnav-panel .mnav-foot { margin-top: auto; padding-top: 32px; font-size: 13px; color: var(--color-neutral-500); }
body:has(.mnav[open]) { overflow: hidden; }

/* ── breadcrumbs ── */
.crumbs { font-size: 13px; color: var(--color-neutral-400); display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.crumbs ol { display: contents; list-style: none; }
.crumbs li { display: inline-flex; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--color-neutral-500); }
.crumbs [aria-current] { color: var(--color-neutral-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* ── footer ── */
.site-foot { padding-block: 28px 40px; font-size: 13px; color: var(--color-neutral-500); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 40px 32px; }
.foot-cols h2 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-400); margin-bottom: 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { color: var(--color-neutral-300); font-size: 14px; }
.foot-cols a:hover { color: var(--color-accent); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; }
.socials { display: flex; gap: 6px; font-size: 18px; }
.socials a { color: var(--color-neutral-500); display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); }
.socials a:hover { color: var(--color-accent); }
.foot-note { margin-top: 12px; font-size: 12px; color: var(--color-neutral-600); max-width: 90ch; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 720px) {
  .foot-bar { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .site-foot { font-size: 12px; }
  .socials a { width: 44px; height: 44px; }
}

/* ── shared sections ── */
.section { padding-block: 88px; }
.section-top { padding-top: 104px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { font-size: 44px; letter-spacing: -.02em; max-width: 18ch; }
.sec-head .more { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.h2-sub { font-size: 36px; letter-spacing: -.02em; }
.h2-card { font-size: 24px; letter-spacing: -.015em; }
@media (max-width: 720px) {
  .section { padding-block: 40px; }
  .section-top { padding-top: 48px; }
  .sec-head { margin-bottom: 18px; align-items: baseline; }
  .sec-head h2, .h2-sub { font-size: 26px; }
  .h2-card { font-size: 22px; }
}

/* ── listing photos (pre-framed 3:5 on the page bg; lighten melts the frame into the ground) ── */
.ph { position: relative; display: block; aspect-ratio: 3 / 5; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.ph picture { display: contents; }
.ph-empty { background: repeating-linear-gradient(135deg, var(--color-surface) 0 8px, var(--color-neutral-900) 8px 16px); display: flex; align-items: flex-end; padding: 10px; font: 11px ui-monospace, Menlo, monospace; color: var(--color-neutral-500); }
.ph .tag { position: absolute; top: 10px; left: 10px; }

/* listing card */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.lcard { min-width: 0; display: flex; flex-direction: column; }
.lcard:hover .ph { box-shadow: var(--shadow-md); }
.lcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lcard .row1 { margin-top: 14px; }
.lcard .date { font-size: 12px; color: var(--color-neutral-500); }
.lcard .name a { color: var(--color-text); }
.lcard .name a:hover { color: var(--color-accent); }
.lcard .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.35; margin-top: 10px; color: var(--color-text); }
.lcard .name:hover { color: var(--color-accent); }
.lcard .set { font-size: 13px; color: var(--color-neutral-400); }
.lcard .price { font: 500 24px/1.2 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lcard .row3 { margin-top: 10px; }
.lcard.is-sold .price { color: var(--color-neutral-300); margin-top: 8px; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .grid4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 14px; }
  .lcard .row1 { margin-top: 10px; }
  .lcard .name { font-size: 13px; margin-top: 8px; }
  .lcard .set { font-size: 12px; }
  .lcard .price { font-size: 18px; }
  .lcard .row3 { flex-direction: column; align-items: stretch; gap: 8px; }
  .lcard .row3 .btn { min-height: 44px; }
}

/* ── home ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 104px 88px; }
.hero h1 { font-size: 84px; line-height: 1.04; letter-spacing: -.025em; margin-left: -.05em; text-wrap: initial; }
.hero h1 span { display: block; }
.hero h1 .dim { color: var(--color-neutral-400); }
.hero .lede { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 28px; }
.hero-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.hero-photos .ph { box-shadow: var(--shadow-md); }
.hero-photos > :nth-child(2) { margin-top: 64px; }
.band { background: var(--glow-band), var(--color-section); }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; padding-block: 56px; margin: 0; }
.stats dd { margin: 0; font: 500 48px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 64%, transparent); margin-top: 14px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.mkt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.mkt-grid.single { grid-template-columns: minmax(0, 1fr); }
.tiles.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 8px; }
.tiles-2 .tile-pulse { background: none; box-shadow: none; border-radius: 0; padding: 16px 0; border-top: 1px solid var(--color-neutral-800); }
.tiles-2 .tile-pulse:hover .headline { color: var(--color-accent-300); }
.tiles-2 .tile-pulse .big { font-size: 28px; }
a.mrow { color: var(--color-text); }
a.mrow:hover .mname { color: var(--color-accent); }
.posts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.posts3 .card { padding: 22px; gap: 10px; }
.posts3 .card-title { font-size: 19px; }
.movers-card .mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--color-neutral-800); }
.movers-card .mrow:first-of-type { margin-top: 8px; }
.mrow .mname { font-size: 14px; font-weight: 500; color: var(--color-text); display: block; }
.mrow a.mname:hover { color: var(--color-accent); }
.mrow .msub { font-size: 12px; color: var(--color-neutral-400); margin-top: 2px; }
.mrow .mval { text-align: right; flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.mrow .mchg { font-size: 12px; margin-top: 2px; }
.sell-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 72px; }
.sell-split h2 { font-size: 44px; letter-spacing: -.02em; margin-bottom: 16px; }
.sell-split .copy { font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 78%, transparent); max-width: 44ch; }
.steps { margin-top: 32px; list-style: none; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-top: 1px solid var(--color-neutral-800); }
.steps .n { font-size: 15px; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.steps .t { font-size: 16px; font-weight: 500; }
.steps .d { font-size: 14px; color: var(--color-neutral-400); margin-top: 4px; }
.news { display: flex; justify-content: space-between; align-items: end; gap: 48px; padding-block: 56px 72px; }
.news h2, .news h3 { font-size: 24px; letter-spacing: -.015em; }
.news p { font-size: 15px; color: var(--color-neutral-400); margin-top: 10px; }
.news-form { width: 440px; max-width: 100%; }
.news-form .row { display: flex; gap: var(--space-3); }
.news-form .input { flex: 1; }
.news-form .form-msg { margin-top: 8px; }
.news-band { border-radius: var(--radius-lg); padding: 40px 48px; align-items: center; margin-top: 56px; margin-bottom: 72px; background: var(--glow-band), var(--color-section); }
.news-band h2, .news-band h3 { font-size: 26px; }
.news-band p { color: color-mix(in srgb, var(--color-text) 72%, transparent); margin-top: 8px; }
.news-band .input { background: color-mix(in srgb, var(--color-bg) 70%, transparent); }
.cta-card { background: radial-gradient(400px 200px at 100% 0, color-mix(in srgb, var(--color-section-glow) 60%, transparent), transparent 70%), var(--color-section); padding: 22px; gap: 12px; }
.cta-card h2 { font-size: 24px; }
.cta-card p { font-size: 14px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.only-m { display: none; }
@media (max-width: 1100px) {
  .hero h1 { font-size: 64px; }
  .stats dd { font-size: 40px; }
  .posts3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sell-split { gap: 48px; }
}
@media (max-width: 900px) {
  .mkt-grid, .sell-split { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photos { max-width: 520px; }
}
@media (max-width: 720px) {
  .only-m { display: block; }
  .only-d, .only-dt { display: none !important; }
  .hero { padding-block: 48px 40px; gap: 32px; }
  .hero h1 { font-size: 44px; line-height: 1.05; margin-left: 0; }
  .hero .lede { font-size: 16px; line-height: 1.55; margin-top: 18px; }
  .hero .actions { margin-top: 24px; }
  .hero .actions .btn-primary { width: 100%; }
  .hero .actions .btn-ghost { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 28px; gap: 24px; justify-content: stretch; }
  .stats dd { font-size: 30px; }
  .stats dt { font-size: 11px; margin-top: 8px; }
  .posts3 { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .posts3 .card:not(:first-child) { display: none; }
  .posts3 .card-body { display: none; }
  .mkt-grid .card { padding: 18px; }
  .movers-card { background: none; box-shadow: none !important; padding: 0 !important; }
  .movers-card .mrow { padding: 14px 0; }
  .movers-card .mrow:nth-of-type(n+4) { display: none; }
  .movers-card .label { display: none; }
  .sell-split h2 { font-size: 26px; }
  .news { flex-direction: column; align-items: stretch; gap: 20px; padding-block: 40px; }
  .news-form { width: 100%; }
  .news-band { padding: 24px 20px; }
  .news-form .row { flex-direction: column; }
  .news-form .btn { min-height: 48px; }
  .mkt-grid .ic-axis { display: none; }
}

/* ── index chart ── */
.ichart-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.ichart .big { font: 500 48px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ichart .val-row { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.istats { display: flex; gap: 40px; flex-wrap: wrap; }
.istats .v { font: 500 40px/1.1 var(--font); margin-top: 6px; font-variant-numeric: tabular-nums; }
.istats .c { font-size: 13px; }
.ichart-plot { position: relative; height: 200px; margin-top: 24px; touch-action: pan-y; }
.ichart-plot.tall { height: 240px; }
.ic-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ic-grid { stroke: var(--color-neutral-800); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ic-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ic-line.all, .ic-line.vintage { stroke: var(--color-accent); }
.ic-line.modern { stroke: var(--color-neutral-600); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ic-stop-a { stop-color: var(--color-accent); stop-opacity: .25; }
.ic-stop-b { stop-color: var(--color-accent); stop-opacity: 0; }
.ic-cross { stroke: var(--color-neutral-600); stroke-width: 1; stroke-dasharray: 2 3; }
.ic-dot { fill: var(--color-bg); stroke-width: 2; }
.ic-dot.all, .ic-dot.vintage { stroke: var(--color-accent); }
.ic-dot.modern { stroke: var(--color-neutral-500); }
.ic-hit { fill: transparent; cursor: crosshair; }
.ic-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-neutral-500); margin-top: 10px; font-variant-numeric: tabular-nums; }
.ic-tip { position: absolute; top: -8px; z-index: 3; pointer-events: none; display: grid; gap: 3px; min-width: 120px;
  padding: 8px 10px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-md); font-size: 12px; white-space: nowrap; }
.ic-tip-date { color: var(--color-neutral-400); }
.ic-tip-row { display: flex; align-items: center; gap: 6px; }
.ic-tip-row b { margin-left: auto; padding-left: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ic-key { width: 12px; height: 2px; background: var(--color-accent); display: inline-block; }
.ic-key.modern { background: repeating-linear-gradient(to right, var(--color-neutral-500) 0 3px, transparent 3px 5px); }
.ic-legend { display: flex; gap: 18px; font-size: 12px; color: var(--color-neutral-400); margin-top: 14px; }
.ic-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ic-empty { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--color-neutral-500); border: 1px dashed var(--color-neutral-800); border-radius: var(--radius-md); }
@media (max-width: 720px) {
  .ichart .big { font-size: 32px; }
  .ichart-plot { height: 90px; margin-top: 6px; }
  .ichart-plot.tall { height: 200px; margin-top: 16px; }
  .ichart .seg-opt { padding: 7px 10px; min-height: 36px; }
  .istats { gap: 20px; }
  .istats .v { font-size: 26px; }
}

/* tiles (weekly research report) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile-pulse { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); color: var(--color-text); transition: box-shadow .15s; }
.tile-pulse:hover { color: var(--color-text); box-shadow: var(--shadow-md); }
.tile-pulse .kick { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.tile-pulse .big { font: 500 32px/1.05 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-pulse .headline { font-size: 14px; line-height: 1.45; }
.tile-pulse .sub { font-size: 12px; color: var(--color-neutral-400); }
.tile-pulse .tag, .tile-pulse .conf { align-self: flex-start; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .tiles, .tiles.tiles-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; } .tiles.tiles-2 { gap: 0; } }

/* ── market update (8d) ── */
.page-head { padding-block: 72px 40px; }
.page-head h1 { font-size: 64px; line-height: 1.05; letter-spacing: -.025em; margin-left: -.04em; max-width: 18ch; }
.page-head .lede { margin-top: 20px; }
.mkt-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; padding-bottom: 56px; }
.takeaways { list-style: none; margin: 0; padding: 0; }
.takeaways li { display: grid; grid-template-columns: 24px 1fr; padding: 12px 0; border-top: 1px solid var(--color-neutral-800); font-size: 15px; line-height: 1.5; }
.takeaways li:first-child { margin-top: 12px; }
.takeaways .n { color: var(--color-accent); }
.mkt-mid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.mkt-mid h2 { font-size: 24px; margin-bottom: 12px; }
.earlier a { display: block; padding: 16px 0; border-top: 1px solid var(--color-neutral-800); color: var(--color-text); }
.earlier a:hover .t { color: var(--color-accent); }
.earlier .d { font-size: 12px; color: var(--color-neutral-400); }
.earlier .t { display: block; font-size: 16px; font-weight: 500; margin-top: 6px; line-height: 1.35; }
.note-box { display: flex; gap: 14px; align-items: start; padding: 16px 20px; border-radius: var(--radius-md); background: var(--color-surface); font-size: 14px; color: var(--color-neutral-300); }
.note-box .i { font-size: 20px; color: var(--color-accent); margin-top: 1px; }
.report { padding-bottom: 40px; }
.report-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.toc a { font-size: 12px; padding: 6px 10px; border-radius: 6px; background: var(--color-neutral-900); color: var(--color-neutral-300); }
.toc a:hover { color: var(--color-accent); }
.rsec { padding-top: 56px; scroll-margin-top: 16px; }
.rsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rsec h2 { font-size: 28px; }
.rsec .lede { font-size: 16px; margin-top: 12px; max-width: 75ch; }
.rsec .table-scroll { margin-top: 18px; }
.rsec .bullets { margin: 16px 0 0; padding-left: 18px; color: var(--color-neutral-300); font-size: 14px; max-width: 80ch; display: grid; gap: 6px; }
.rsec .note { margin-top: 12px; font-size: 13px; color: var(--color-neutral-500); max-width: 90ch; }
.conf { font-size: 11px; padding: 3px 10px; border-radius: 6px; background: var(--color-neutral-900); color: var(--color-neutral-300); white-space: nowrap; }
.conf-high { background: var(--color-accent-800); color: var(--color-accent-100); }
.conf-low { box-shadow: inset 0 0 0 1px var(--color-neutral-700); background: none; color: var(--color-neutral-400); }
.tclip .table-scroll { max-height: 440px; overflow-y: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.tclip-toggle:checked ~ .table-scroll { max-height: none; -webkit-mask-image: none; mask-image: none; }
.tclip-btn { margin-top: 12px; cursor: pointer; }
.tclip-btn .h, .tclip-toggle:checked ~ .tclip-btn .s { display: none; }
.tclip-toggle:checked ~ .tclip-btn .h { display: inline; }
.tclip-toggle:checked ~ .tclip-btn .i { rotate: 180deg; }
.tclip-toggle:focus-visible ~ .tclip-btn { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sources { font-size: 13px; color: var(--color-neutral-500); max-width: 100ch; padding-top: 40px; }
@media (max-width: 1100px) { .page-head h1 { font-size: 52px; } }
@media (max-width: 900px) { .mkt-top, .mkt-mid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .page-head { padding-block: 40px 24px; }
  .page-head h1 { font-size: 34px; margin-left: 0; }
  .page-head .lede { font-size: 16px; }
  .mkt-top .card { padding: 18px; }
  .rsec { padding-top: 40px; }
  .rsec h2 { font-size: 22px; }
  .report-head { flex-direction: column; align-items: start; }
}

/* ── sell (8e / 8i) ── */
.sell-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 72px; padding-block: 72px 88px; }
.sell-page h1 { font-size: 56px; line-height: 1.05; letter-spacing: -.025em; margin-left: -.04em; }
.sell-page .intro .lede { font-size: 17px; margin-top: 20px; max-width: 40ch; }
.sell-page .steps { margin-top: 40px; }
.tips { flex-direction: row; gap: 14px; align-items: start; margin-top: 32px; padding: 20px; }
.tips .i { font-size: 22px; color: var(--color-accent); }
.tips p { font-size: 14px; line-height: 1.55; color: var(--color-neutral-300); }
.tips strong { color: var(--color-text); font-weight: 500; }
.sell-form { padding: 36px; gap: 22px; }
.sell-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 22px; }
.sell-form legend { padding: 0; }
.sell-form .group { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-400); }
.sell-form .step-title { display: none; }
.card-fields { display: grid; gap: 22px; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.form-foot .small { color: var(--color-neutral-400); }
.toward { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-accent) 10%, transparent); box-shadow: inset 0 0 0 1px var(--color-accent-700); font-size: 14px; }
.toward .i { color: var(--color-accent); font-size: 18px; }
.stepbar { display: none; }
.done { text-align: left; gap: 14px; }
.done .i { font-size: 32px; color: var(--color-accent); }
.done h2 { font-size: 28px; }
.done p { color: var(--muted); font-size: 16px; }

/* dropzones */
.dz { position: relative; display: grid; place-items: center; height: 220px; overflow: hidden; cursor: pointer;
  border: 1px dashed var(--color-neutral-700); border-radius: var(--radius-md); background: var(--color-bg); text-align: center; }
.dz:hover, .dz.is-over { border-color: var(--color-accent); }
.dz.is-over { background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg)); }
.dz.has-error { border-color: var(--color-danger); }
.dz input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-empty { display: grid; justify-items: center; font-size: 14px; color: var(--color-neutral-400); pointer-events: none; padding: 12px; }
.dz-empty .i { font-size: 26px; color: var(--color-accent); }
.dz-empty .t { margin-top: 8px; color: var(--color-text); }
.dz-empty .h { font-size: 12px; margin-top: 2px; }
.dz-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.dz-tools { position: absolute; left: 8px; right: 8px; bottom: 8px; display: none; gap: 6px; justify-content: center; }
.dz-tools .btn { background: color-mix(in srgb, var(--color-bg) 82%, transparent); backdrop-filter: blur(4px); font-size: 12px; min-height: 32px; }
.dz.has-file .dz-empty { visibility: hidden; }
.dz.has-file .dz-tools { display: flex; }
.dz.has-file input[type=file] { pointer-events: none; }
.dz-name { position: absolute; top: 8px; left: 8px; right: 8px; font-size: 11px; color: var(--color-neutral-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; display: none; }
.dz.has-file .dz-name { display: block; }
.dz-compact { height: 132px; }
.dz-compact .dz-empty { font-size: 13px; }
.dz-compact .dz-empty .i { font-size: 22px; }
.dz-compact .dz-empty .t { margin-top: 6px; color: inherit; }
.dz-compact .dz-empty .h { display: none; }
.home-form { padding: 32px; gap: 18px; }
@media (max-width: 1100px) { .sell-page { gap: 48px; } .sell-page h1 { font-size: 46px; } }
@media (max-width: 900px) { .sell-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .sell-page { padding-block: 20px 48px; gap: 28px; }
  .sell-page h1 { font-size: 30px; margin-left: 0; }
  .sell-page .intro .lede { font-size: 15px; margin-top: 10px; }
  .sell-page .intro .steps, .sell-page .intro .tips { display: none; }
  .sell-page .after { display: block; }
  .sell-form.card, .home-form.card { padding: 0; background: none; box-shadow: none; gap: 18px; }
  .sell-form fieldset { gap: 18px; }
  .g3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g3 > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .home-form .g2, .sell-form .g2.you { grid-template-columns: minmax(0, 1fr); }
  .dz { height: auto; aspect-ratio: 3 / 4; background: var(--color-surface); }
  .dz-empty .h { display: none; }
  .dz-empty .i { font-size: 26px; }
  .sell-form .photos { order: -1; }
  .sell-form .card-fields { display: contents; }
  .sell-form .step-title { order: -2; }
  .radios { display: flex; gap: 0; border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; }
  .radios .radio { flex: 1; justify-content: center; min-height: 44px; font-size: 13px; }
  .radios .radio + .radio { border-left: 1px solid var(--color-divider); }
  .radios .radio .dot { display: none; }
  .radios .radio:has(input:checked) { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
  .radios .radio:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { min-height: 52px; font-size: 16px; }
  /* 2-step flow (JS adds .is-stepped) */
  .is-stepped .stepbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
  .is-stepped .stepbar .lbl { text-align: center; font-size: 14px; color: var(--color-neutral-400); }
  .is-stepped .progress { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--color-neutral-800); margin-top: 8px; }
  .is-stepped .progress span { display: block; height: 100%; width: var(--p, 50%); border-radius: 2px; background: var(--color-accent); transition: width .25s; }
  .is-stepped [data-step]:not(.is-current) { display: none; }
  .is-stepped .step-title { display: block; font-size: 30px; letter-spacing: -.02em; }
  .is-stepped .group { display: none; }
  .is-stepped .form-foot .small { text-align: center; }
  .is-stepped[data-current="1"] .stepbar [data-prev] { visibility: hidden; }
  .is-stepped .next-row { display: block; }
  .is-stepped .next-row .btn { min-height: 52px; font-size: 16px; margin-top: 8px; }
}
.next-row { display: none; }
.after { display: none; }

/* ── listings (8f) ── */
.lhead { display: flex; justify-content: space-between; align-items: end; gap: 48px; padding-block: 64px 32px; }
.lhead h1 { font-size: 56px; letter-spacing: -.025em; margin-left: -.04em; }
.lhead p { font-size: 17px; color: var(--muted); margin-top: 14px; }
.lhead .jump { display: flex; gap: var(--space-2); flex: none; }
.lhead .jump .btn { padding: 10px 16px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 32px; flex-wrap: wrap; }
.filters .right { display: flex; gap: var(--space-3); align-items: center; }
.search { position: relative; width: 260px; }
.search .i { position: absolute; left: 10px; top: 50%; translate: 0 -50%; color: var(--color-neutral-500); }
.search .input { padding-left: 32px; }
.sortsel .input { width: auto; min-width: 150px; }
.lsec { padding-block: 24px 72px; }
.lsec.sold-sec { padding-top: 72px; }
.lsec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.lsec-head .kicker { margin-bottom: 12px; }
.trust { font-size: 14px; color: var(--color-neutral-400); display: flex; align-items: center; gap: 8px; }
.trust .i { color: var(--color-accent); font-size: 18px; }
.totals { display: flex; gap: 40px; }
.totals .v { font: 500 28px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.totals .l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-400); }
.empty { padding: 40px 24px; text-align: center; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--color-neutral-400); display: grid; gap: 14px; justify-items: center; }
.empty .i { font-size: 26px; color: var(--color-accent); }
.empty p { max-width: 52ch; }
.more-row { display: flex; justify-content: center; padding-top: 40px; }
@media (max-width: 900px) {
  .lhead { flex-direction: column; align-items: start; gap: 20px; }
  .filters .right { width: 100%; }
  .search { flex: 1; width: auto; }
}
@media (max-width: 720px) {
  .lhead { padding-block: 32px 20px; }
  .lhead h1 { font-size: 36px; margin-left: 0; }
  .lhead p { font-size: 15px; }
  .filters { padding-bottom: 20px; }
  .filters .seg { overflow-x: auto; width: 100%; scrollbar-width: none; }
  .filters .seg-opt { min-height: 40px; flex: 1 0 auto; }
  .filters .right { flex-direction: column; align-items: stretch; }
  .sortsel, .sortsel .input { width: 100%; }
  .lsec { padding-block: 16px 40px; }
  .lsec.sold-sec { padding-top: 40px; }
  .totals { gap: 24px; }
  .totals .v { font-size: 22px; }
}

/* ── listing detail (8g / 8j) ── */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; padding-block: 40px 72px; }
.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; gap: 10px; }
.rail a { display: block; aspect-ratio: 3 / 5; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); }
.rail a[aria-current="true"] { box-shadow: 0 0 0 1px var(--color-accent); }
.rail img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 3 / 5; scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.dots { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
.dots span { width: 6px; height: 4px; border-radius: 2px; background: var(--color-neutral-700); transition: width .2s, background-color .2s; }
.dots span.on { width: 18px; background: var(--color-accent); }
.info h1 { font-size: 48px; letter-spacing: -.02em; line-height: 1.08; margin-top: 18px; }
.info h1.long { font-size: 34px; line-height: 1.15; }
.info .setline { font-size: 18px; color: var(--color-neutral-400); margin-top: 6px; }
.priceblock { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--color-neutral-800); border-bottom: 1px solid var(--color-neutral-800); display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.priceblock .big { font: 500 56px/1.05 var(--font); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.priceblock .side { text-align: right; font-size: 14px; color: var(--color-neutral-400); }
.priceblock .side .hl { color: var(--color-accent-300); margin-top: 4px; }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 32px; margin: 24px 0 0; font-size: 14px; }
.specs dt { font-size: 12px; color: var(--color-neutral-400); }
.specs dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.specs div { min-width: 0; }
.desc { margin-top: 24px; font-size: 15px; color: var(--color-neutral-300); max-width: 60ch; }
.detail .actions { margin-top: 28px; }
.mobile-bar { display: none; }
.similar { padding-bottom: 72px; }
.similar h2 { font-size: 24px; margin-bottom: 20px; }
.mini4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mini { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; color: var(--color-text); min-width: 0; }
.mini:hover { color: var(--color-text); }
.mini:hover .n { color: var(--color-accent); }
.mini .ph { border-radius: 5px; box-shadow: none; }
.mini .s, .mini .p { display: block; }
.mini .n { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.mini .s { font-size: 12px; color: var(--color-neutral-400); }
.mini .p { font-size: 16px; margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .detail { gap: 48px; } .mini4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } .gallery { max-width: 560px; } }
@media (max-width: 720px) {
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
  .mobile-bar .lbl { font-size: 14px; color: var(--color-neutral-400); }
  .detail-crumbs { display: none; }
  .detail { padding-block: 20px 40px; gap: 28px; }
  .gallery, .gallery.single { grid-template-columns: minmax(0, 1fr); padding-inline: 36px; max-width: none; }
  .rail { display: none; }
  .track { box-shadow: var(--shadow-md), 0 0 80px color-mix(in srgb, var(--color-accent) 16%, transparent); }
  .dots { display: flex; }
  .info h1 { font-size: 30px; margin-top: 14px; }
  .info h1.long { font-size: 24px; }
  .info .setline { font-size: 15px; }
  .priceblock { margin-top: 20px; padding: 18px 0; flex-direction: column; align-items: start; gap: 4px; }
  .priceblock .big { font-size: 40px; margin-top: 4px; }
  .priceblock .side { text-align: left; font-size: 13px; }
  .specs { gap: 14px 20px; margin-top: 18px; }
  .detail .actions { flex-direction: column; }
  .detail .actions .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .mini4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ── modal (<dialog>; :target keeps it usable without JS) ── */
dialog.modal { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.modal::backdrop { background: color-mix(in srgb, var(--color-neutral-900) 50%, rgba(0,0,0,.4)); backdrop-filter: blur(2px); }
dialog.modal:target:not([open]) { display: block; position: fixed; inset: 0; margin: auto; z-index: 80; height: fit-content; }
.modal-inner { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-head h2 { font-size: 20px; letter-spacing: -.01em; }
.modal-head .btn-icon { width: 36px; height: 36px; margin: -6px -8px 0 0; }
.modal .sub { font-size: 14px; color: var(--color-neutral-300); }
.modal .form-grid { display: grid; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: 4px; }
.modal-done { display: grid; gap: 10px; padding: 24px; }
.modal-done .i { font-size: 28px; color: var(--color-accent); }

/* ── about / thanks / 404 ── */
.narrow { max-width: 760px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.about-grid h2 { font-size: 36px; margin-bottom: 16px; }
.contact-form { padding: 32px; gap: 18px; }
.msg-page { padding-block: 120px 140px; }
.msg-page h1 { font-size: 56px; letter-spacing: -.025em; }
.msg-page .lede { margin-top: 18px; }
.msg-page .seal { width: 96px; height: 96px; margin-bottom: 28px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 720px) {
  .msg-page { padding-block: 56px 72px; }
  .msg-page h1 { font-size: 36px; }
  .about-grid h2 { font-size: 26px; }
  .contact-form { padding: 0; background: none; box-shadow: none; }
}

/* ── daily prices (restyled report) ── */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kpi { padding: 22px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); min-width: 0; }
.kpi .v { font: 500 32px/1.1 var(--font); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .v.sm { font-size: 22px; }
.kpi .d { font-size: 13px; margin-top: 6px; color: var(--color-neutral-400); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.block { padding-top: 64px; }
.block h2 { font-size: 24px; }
.block h3 { font-size: 16px; margin: 18px 0 6px; }
.block .bh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .two { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 720px) { .block { padding-top: 40px; } .kpi .v { font-size: 24px; } .kpis { gap: 12px; } .kpi { padding: 16px; } }

/* ── sets ── */
.setgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.set-card { padding: 22px; gap: 12px; }
.set-card h2, .set-card h3 { font-size: 19px; line-height: 1.2; }
.set-card .meta { font-size: 12px; color: var(--color-neutral-400); }
.set-card dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin: 4px 0 0; }
.set-card dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-500); }
.set-card dd { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.set-card .chase { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--color-neutral-800); font-size: 13px; }
.set-card .chase img { width: 40px; height: 56px; object-fit: contain; }
.verdict { font-weight: 500; }
.bigstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 56px; }
.bigstat { padding: 22px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); min-width: 0; }
.bigstat .v { font: 500 36px/1.1 var(--font); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.bigstat .d { font-size: 13px; color: var(--color-neutral-400); margin-top: 6px; }
.cardgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
.pcard { display: flex; flex-direction: column; gap: 6px; color: var(--color-text); min-width: 0; }
.pcard:hover { color: var(--color-text); }
.pcard:hover .n { color: var(--color-accent); }
.pcard .pimg { aspect-ratio: 5 / 7; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); padding: 10px; }
.pcard .pimg img { max-height: 100%; width: auto; object-fit: contain; }
.pcard .n { font-size: 14px; font-weight: 500; line-height: 1.3; margin-top: 6px; }
.pcard .s { font-size: 12px; color: var(--color-neutral-400); }
.pcard .p { font: 500 18px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.faq { display: grid; gap: 0; max-width: 80ch; }
.faq details { border-top: 1px solid var(--color-neutral-800); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--color-accent); transition: rotate .15s; margin-top: 3px; }
.faq details[open] summary .i { rotate: 180deg; }
.faq p { margin-top: 10px; color: var(--color-neutral-300); font-size: 15px; }
.pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pn a { padding: 18px 22px; }
.pn .next { text-align: right; align-items: end; }
.sortable th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.sortable th button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
.sortable th[aria-sort] button { color: var(--color-accent); }
@media (max-width: 1100px) { .cardgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bigstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .setgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 720px) {
  .setgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cardgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 14px; }
  .bigstats { gap: 12px; padding-bottom: 32px; }
  .bigstat { padding: 16px; }
  .bigstat .v { font-size: 26px; }
  .pn { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pn .next { text-align: left; align-items: start; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* index explainer under the PSA 10 index value (owner asked what "184.5" means) */
.idx-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 64%, transparent); max-width: 60ch; }
.idx-note a { color: var(--color-accent); }

/* PSA 10 index readout: the change over the selected range is the headline figure */
.ichart .big.up, .istats .v.up { color: var(--color-accent-300); }
.ichart .big.down, .istats .v.down { color: var(--color-neutral-400); }
.idx-over { font-size: 13px; color: color-mix(in srgb, var(--color-text) 64%, transparent); align-self: flex-end; margin-bottom: 8px; }
.idx-level { margin: 6px 0 0; font-size: 14px; color: color-mix(in srgb, var(--color-text) 78%, transparent); font-variant-numeric: tabular-nums; }
.idx-level b { font-weight: 500; color: var(--color-text); }

/* Cofre's take — the owner-approved weekly commentary (take.py drafts, pokemonBiz approves) */
.take { margin: 32px 0 8px; padding: 24px 28px; border-left: 3px solid var(--color-accent); }
.take h2 { font-size: 26px; line-height: 1.2; margin: 10px 0 4px; max-width: 32ch; }
.take ul { list-style: none; margin: 14px 0 0; padding: 0; }
.take li { position: relative; padding: 11px 0 11px 20px; border-top: 1px solid var(--color-neutral-800); font-size: 15px; line-height: 1.55; }
.take li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.take .take-sig { margin: 12px 0 0; font-size: 13px; color: var(--color-neutral-400); }
.take-home { margin-bottom: 24px; }
.take-home h2 { font-size: 22px; }
@media (max-width: 720px) { .take { padding: 20px 18px; } .take h2 { font-size: 21px; } }
