/* outbids.app  ·  warm paper, clay accent, flat surfaces */

:root {
  --paper: #fefdfb;
  --surface: #ffffff;
  --surface-2: #f9f6f1;
  --ink: #23201c;
  --ink-soft: #4d473f;
  --muted: #787268;
  --line: #ece7de;
  --line-soft: #f4f1ea;
  --clay: #c94e28;
  --clay-strong: #ad3f1c;
  --clay-soft: #fdeee7;
  --green: #17855a;
  --green-soft: #e9f7f0;
  --r: 14px;
  --r-sm: 9px;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1160px;
}

:root[data-theme="dark"] {
  --paper: #1c1a17;
  --surface: #25221e;
  --surface-2: #2d2925;
  --ink: #f8f4ed;
  --ink-soft: #ddd6ca;
  --muted: #a8a196;
  --line: #3d3831;
  --line-soft: #302c27;
  --clay: #f08a63;
  --clay-strong: #ffa480;
  --clay-soft: #452a1f;
  --green: #79d3a5;
  --green-soft: #22392d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1a17;
    --surface: #25221e;
    --surface-2: #2d2925;
    --ink: #f8f4ed;
    --ink-soft: #ddd6ca;
    --muted: #a8a196;
    --line: #3d3831;
    --line-soft: #302c27;
    --clay: #f08a63;
    --clay-strong: #ffa480;
    --clay-soft: #452a1f;
    --green: #79d3a5;
    --green-soft: #22392d;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-strong); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 0.9em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); }

.testbar { background: var(--ink); color: var(--paper); font-size: 0.82rem; text-align: center; padding: 8px 22px; }
.testbar strong { background: var(--clay); color: #fff; border-radius: 5px; padding: 2px 7px; margin-right: 8px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.testbar a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------- topbar --------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 62px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.mark rect { fill: currentColor; }
.mark path { stroke: var(--paper); }
.brand-word { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.03em; }
.brand-tld { color: var(--clay); }
.brand-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-link { padding: 7px 11px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.nav-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-link.is-active { background: var(--clay-soft); color: var(--clay-strong); }
.nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }
.topbar-side { display: flex; align-items: center; gap: 10px; }
.pulse { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pulse strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.theme-toggle { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-toggle:hover { border-color: var(--clay); }
.theme-icon { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: inset -4px -2px 0 0 var(--surface); }
:root[data-theme="dark"] .theme-icon { box-shadow: none; background: var(--clay); }

/* --------------------------------- masthead -------------------------------- */
.masthead { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.masthead-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-block: 26px; }
.masthead-copy h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em; }
.masthead-copy p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-soft); max-width: 44ch; }
.masthead-stats { display: flex; gap: 26px; margin: 0 0 0 auto; flex-wrap: wrap; }
.masthead-stats div { display: flex; flex-direction: column; gap: 2px; }
.masthead-stats dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.masthead-stats dd { margin: 0; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.masthead-stats .is-accent { color: var(--clay); }
.masthead-cta { flex: none; }

/* ----------------------------------- split --------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; padding-block: 26px 44px; }
.split-main { min-width: 0; }
.split-aside { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.split-foot { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }
.claim-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; overflow: hidden; }
.claim-head { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.claim-rank { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; color: var(--clay); background: var(--clay-soft); border-radius: var(--r-sm); padding: 7px 11px; }
.claim-label { font-size: 0.76rem; color: var(--muted); }
.claim-price { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.aside-panels { display: grid; gap: 14px; }
.feed-flat { border: 0; border-radius: 0; }
.feed-flat .feed-row { padding: 10px 0; grid-template-columns: 1fr auto; }
.feed-flat .feed-meta { grid-column: 1 / -1; }
.empty h2 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.empty p { max-width: 52ch; margin: 0 auto 18px; }

/* --------------------------------- subhero --------------------------------- */
.subhero { border-bottom: 1px solid var(--line); background: var(--surface-2); padding-block: 52px 46px; }
.subhero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
.subhero-lede { margin-top: 14px; color: var(--ink-soft); max-width: 62ch; font-size: 1.02rem; }
.subhero-note { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }

/* --------------------------------- sections -------------------------------- */
.section { padding-block: 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.section-note { font-size: 0.84rem; color: var(--muted); }
.link-more { font-size: 0.86rem; font-weight: 500; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 5px 11px; }

/* ---------------------------------- stats ---------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat-label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.stat-value { display: block; margin-top: 8px; font-size: 1.72rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-note { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }

/* ---------------------------------- board ---------------------------------- */
.board { display: flex; flex-direction: column; gap: 10px; }
.card { display: grid; grid-template-columns: 52px 56px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.card:hover { border-color: color-mix(in srgb, var(--clay) 45%, var(--line)); }
.card-podium { border-color: color-mix(in srgb, var(--clay) 30%, var(--line)); }
.card-first { background: var(--clay-soft); border-color: color-mix(in srgb, var(--clay) 55%, var(--line)); }
.card-rank { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.card-first .card-rank, .card-podium .card-rank { color: var(--clay-strong); }
.card-face { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; place-items: center; }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.face-initials { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.card-main { min-width: 0; }
.card-title { font-size: 1.02rem; font-weight: 600; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--clay-strong); }
.card-desc { margin-top: 5px; font-size: 0.88rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); }
.chip { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.chip:hover { border-color: var(--clay); color: var(--clay-strong); text-decoration: none; }
.card-host { font-family: var(--mono); font-size: 0.74rem; }
.card-side { text-align: right; min-width: 168px; }
.card-amount { font-size: 1.42rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card-next { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.card-next strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.card-actions { display: flex; gap: 7px; justify-content: flex-end; margin-top: 10px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.divider span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.pager-link { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-soft); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.pager-link:hover { border-color: var(--clay); text-decoration: none; }
.pager-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --------------------------------- buttons --------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .12s ease, border-color .12s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-strong); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-strong); }
.btn-sm { font-size: 0.82rem; padding: 7px 13px; }
.btn-lg { font-size: 1rem; padding: 13px 24px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------- forms ---------------------------------- */
.bidform { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 100%; }
.bidform-row { display: flex; gap: 12px; flex-wrap: wrap; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-grow { flex: 1 1 170px; min-width: 0; }
.field-amount { flex: 0 0 auto; }
.field-label { font-size: 0.76rem; font-weight: 500; color: var(--muted); }
.field-hint { font-weight: 400; opacity: .8; }
.input { width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; }
.input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.amount { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.amount-btn { width: 38px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1.05rem; cursor: pointer; }
.amount-btn:hover { background: var(--clay-soft); color: var(--clay-strong); }
.amount-value { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.amount-value i { font-style: normal; color: var(--muted); font-size: 0.95rem; }
.amount-input { width: 74px; border: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 1.02rem; font-weight: 500; text-align: center; padding: 10px 0; }
.amount-input:focus { outline: none; }
.amount-input::-webkit-outer-spin-button, .amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input { -moz-appearance: textfield; }
.bidform-foot { display: flex; flex-direction: column; gap: 10px; }
.bidform-note { font-size: 0.79rem; color: var(--muted); }
.bidform-legal { font-size: 0.74rem; color: var(--muted); }
.bidform-error { font-size: 0.86rem; color: #fff; background: var(--clay-strong); border-radius: var(--r-sm); padding: 10px 13px; }
.preview { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: 11px 13px; }
.preview-face { width: 38px; height: 38px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); display: grid; place-items: center; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.preview-face img { width: 100%; height: 100%; object-fit: cover; }
/* min-width:0 on the item AND on its children, otherwise the nowrap text sets an
   intrinsic minimum and pushes the whole form wider than its column. */
.preview-copy { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.preview-copy strong,
.preview-copy span { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-copy strong { font-size: 0.88rem; font-weight: 600; }
.preview-copy span { font-size: 0.78rem; color: var(--muted); }
.preview-state { flex: none; margin-left: auto; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.preview-state[data-warn] { color: var(--clay-strong); background: var(--clay-soft); }
.form-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.bidform-compact .bidform-legal { display: none; }

/* ---------------------------------- panels --------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel h2 { font-size: 1.12rem; margin-bottom: 10px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { font-size: 1rem; }
.panel-lede { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.panel-empty { font-size: 0.88rem; color: var(--muted); }
.panel-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--muted); line-height: 1.8; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.mini-row:last-child { border-bottom: 0; }
.mini-rank { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.mini-title { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-amount { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ----------------------------------- rail ---------------------------------- */
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rail-item { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; }
.rail-item:hover { border-color: var(--clay); text-decoration: none; }
.rail-name { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.rail-stat { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.cat-card:hover { border-color: var(--clay); text-decoration: none; }
.cat-index { font-family: var(--mono); font-size: 0.7rem; color: var(--clay); background: var(--clay-soft); border-radius: 6px; padding: 3px 7px; align-self: flex-start; }
.cat-card h2 { font-size: 1.02rem; color: var(--ink); }
.cat-blurb { font-size: 0.85rem; color: var(--ink-soft); }
.cat-stats { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-stats strong { color: var(--ink); }
.cat-leader { font-size: 0.79rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 9px; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-leader-open { color: var(--muted); }

/* ----------------------------------- feed ---------------------------------- */
.feed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; }
.feed-row:last-child { border-bottom: 0; }
.feed-title { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { color: var(--muted); font-size: 0.82rem; }
.feed-time { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; text-align: right; }

/* ---------------------------------- steps ---------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.steps span { font-family: var(--mono); font-size: 0.72rem; color: var(--clay); background: var(--clay-soft); border-radius: 6px; padding: 3px 8px; }
.steps h3 { font-size: 1.02rem; margin: 12px 0 8px; }
.steps p { font-size: 0.88rem; color: var(--ink-soft); }
.steps-note { margin-top: 16px; font-size: 0.85rem; color: var(--muted); max-width: 78ch; }
.cta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 20px; }
.cta-card h2 { font-size: 1.3rem; }
.cta-card p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.assure article { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--surface); }
.assure h3 { font-size: 0.95rem; margin-bottom: 7px; }
.assure p { font-size: 0.85rem; color: var(--ink-soft); }

/* --------------------------------- listing --------------------------------- */
.detail { padding: 44px 22px 0; }
.detail-head { display: grid; grid-template-columns: 76px 1fr auto; gap: 22px; align-items: start; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-face { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.detail-face img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 4px; }
.detail-desc { margin-top: 12px; color: var(--ink-soft); max-width: 62ch; }
.detail-target { margin-top: 12px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.detail-side { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; min-width: 210px; }
.detail-amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.detail-amount-note { font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; }
.detail-mine { font-size: 0.78rem; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin: 26px 0 56px; align-items: start; }

/* ---------------------------------- result --------------------------------- */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; }
.result-ok { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.result-pending { border-color: color-mix(in srgb, var(--clay) 45%, var(--line)); }
.result h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.result-lede { margin-top: 14px; color: var(--ink-soft); }
.result-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.result-facts div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.result-facts dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.result-facts dd { margin: 5px 0 0; font-weight: 600; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* ---------------------------------- prose ---------------------------------- */
.prose { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.prose h2 { font-size: 1.18rem; margin-top: 16px; }
.prose p { color: var(--ink-soft); }
.prose-callout { background: var(--surface-2); border-left: 3px solid var(--clay); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; font-size: 0.9rem; }
.mono-block { font-family: var(--mono); font-size: 0.85rem; line-height: 1.9; color: var(--ink-soft); }
.legal { display: flex; flex-direction: column; gap: 12px; }
.legal-item { display: grid; grid-template-columns: 42px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.legal-index { font-family: var(--mono); font-size: 0.74rem; color: var(--clay); background: var(--clay-soft); border-radius: 6px; padding: 4px 0; text-align: center; height: fit-content; }
.legal-copy h2 { font-size: 1.05rem; margin-bottom: 10px; }
.legal-copy p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.legal-copy p:last-child { margin-bottom: 0; }
.ctable { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 12px; display: block; overflow-x: auto; }
.ctable th, .ctable td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ctable th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------- footer --------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; padding: 46px 22px 34px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-word { font-weight: 700; letter-spacing: -0.02em; }
.footer-note { font-size: 0.85rem; color: var(--muted); margin-top: 4px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 0.88rem; color: var(--ink-soft); padding: 3px 0; }
.footer-cols a:hover { color: var(--clay-strong); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px 30px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* --------------------------------- consent --------------------------------- */
.consent { position: fixed; inset: auto 16px 16px 16px; z-index: 60; display: flex; justify-content: center; }
.consent-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; max-width: 560px; box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .consent-body { box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.consent-body h2 { font-size: 1rem; margin-bottom: 8px; }
.consent-body p { font-size: 0.86rem; color: var(--ink-soft); }
.consent-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.consent-link { font-size: 0.82rem; margin-left: auto; }

/* ----------------------------------- tags ---------------------------------- */
.tag { font-family: var(--mono); font-size: 0.7rem; padding: 3px 8px; border-radius: 999px; }
.tag-paid { color: var(--clay-strong); background: var(--clay-soft); }
.tag-free { color: var(--green); background: var(--green-soft); }

/* -------------------------------- responsive ------------------------------- */
@media (max-width: 1040px) {
  .split { grid-template-columns: 1fr; }
  .split-aside { position: static; order: -1; }
  .masthead-cta { width: 100%; justify-content: center; }
}
@media (max-width: 1000px) {
  .stats, .stats-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .detail-grid { grid-template-columns: 1fr; }
  .steps, .assure { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .brand-tag { display: none; }
  .masthead-stats { margin-left: 0; gap: 18px; }
}
@media (max-width: 780px) {
  .topbar-inner { min-height: 56px; gap: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 4px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
  .nav-link { white-space: nowrap; }
  .nav-sep { display: none; }
  .pulse { display: none; }
  .topbar-side { margin-left: auto; }
  .card { grid-template-columns: 40px 1fr; gap: 12px; }
  .card-face { display: none; }
  .card-side { grid-column: 1 / -1; text-align: left; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .card-actions { margin-top: 0; margin-left: auto; }
  .card-amount { font-size: 1.2rem; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-side { align-items: flex-start; text-align: left; }
  .feed-row { grid-template-columns: 1fr auto; }
  .feed-meta { grid-column: 1 / -1; }
  .result-facts { grid-template-columns: 1fr; }
  .legal-item { grid-template-columns: 1fr; }
  .legal-index { width: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
