/* TruHerd review environment — shared styles
   Confidential working prototype. Brand: TruHerd. */

:root {
  --ink:        #0a0b08;
  --ink-2:      #101208;
  --surface:    #14170f;
  --surface-2:  #1b1f15;
  --green:      #1a2e0d;
  --green-lit:  #244013;
  --gold:       #b4831a;
  --gold-hi:    #d9a93c;
  --bone:       #f3efe6;
  --bone-dim:   #b3ac9c;
  --bone-faint: #7d776b;
  --rule:       rgba(243, 239, 230, 0.12);
  --rule-soft:  rgba(243, 239, 230, 0.07);

  --live:       #6fb045;
  --live-bg:    rgba(111, 176, 69, 0.12);
  --amber:      #d9a93c;
  --amber-bg:   rgba(217, 169, 60, 0.13);
  --red:        #e0685c;
  --red-bg:     rgba(224, 104, 92, 0.13);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 68rem;
  --pad: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-hi); text-decoration-color: rgba(217, 169, 60, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-hi); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 4.6vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 3.4vw, 1.35rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Prose measure cap — applies to unclassed body copy and tick lists only,
   so grids, cards and the /one-minute compare layout keep their width. */
.wrap p:not([class]), .wrap ul.ticks li, .wrap ol li { max-width: 38em; }
.wrap-narrow { max-width: 46rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.9rem;
}
.lede { font-size: clamp(1.06rem, 3.2vw, 1.22rem); color: #ccc5b6; line-height: 1.6; }
.small { font-size: 0.9rem; color: #c2bbac; line-height: 1.62; max-width: 38em; }
.tiny { font-size: 0.87rem; color: #9a9384; line-height: 1.6; max-width: 38em; }

/* ---------- Long-form reading (the one-pager) ---------- */
.doc { max-width: 36rem; }
.doc p {
  font-size: 1.04rem;
  line-height: 1.75;
  color: #e6e1d6;
  margin: 0 0 1.1em;
}
.doc p strong { color: var(--bone); }
.doc h2 {
  font-size: clamp(1.32rem, 4.2vw, 1.62rem);
  margin: 2.4rem 0 0.75rem;
}
.doc .page:first-child h2 { margin-top: 0; }
.doc .page + .page { margin-top: 0; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* ---------- Confidential strip ---------- */
.strip {
  background: var(--green);
  border-bottom: 1px solid rgba(217, 169, 60, 0.22);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #cbd8bd;
  text-align: center;
  padding: 0.35rem var(--pad);
}

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 11, 8, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.hdr-in {
  max-width: var(--wrap); margin-inline: auto;
  padding: 0.7rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.92rem;
  color: var(--bone);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.wordmark .mk {
  width: 1.05rem; height: 1.05rem; flex: none;
  border: 2px solid var(--gold); border-radius: 3px;
  position: relative;
}
.wordmark .mk::after {
  content: ""; position: absolute; inset: 3px 2px auto 2px; height: 2px;
  background: var(--gold-hi);
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--bone);
  border: 1px solid var(--rule); border-radius: 4px;
  font: inherit; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.7rem; cursor: pointer;
}
.menu-btn .bars { display: block; width: 14px; height: 9px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after, .menu-btn .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--gold-hi);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars span { top: 3.75px; }
.menu-btn .bars::after { bottom: 0; }

.nav {
  display: none;
  flex-basis: 100%;
  width: 100%;
  margin: 0.7rem 0 -0.7rem;
}
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 0.6rem 0;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.98rem;
}
.nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a .n-sub { display: block; font-size: 0.74rem; color: var(--bone-faint); letter-spacing: 0; }
.nav-panel {
  padding: 0.2rem var(--pad) 1.2rem;
  margin-inline: calc(-1 * var(--pad));
  border-top: 1px solid var(--rule);
  background: var(--ink-2);
  max-height: calc(100dvh - 6.2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-group-label {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0.85rem 0 0.15rem; font-weight: 700;
}

@media (min-width: 62rem) {
  .menu-btn { display: none; }
  .nav { display: block !important; flex-basis: auto; width: auto; margin: 0; }
  .nav-panel { padding: 0; margin: 0; border: 0; background: none; display: flex; gap: 1.15rem; align-items: center; max-height: none; overflow: visible; }
  .nav-group-label { display: none; }
  .nav ul { display: flex; gap: 1.15rem; align-items: center; }
  .nav a { border: 0; padding: 0.2rem 0; font-size: 0.83rem; }
  .nav a .n-sub { display: none; }
  .only-mobile { display: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(2.4rem, 7vw, 4.2rem) 0; }
section + section { border-top: 1px solid var(--rule-soft); }
.sec-tight { padding-block: clamp(1.6rem, 5vw, 2.6rem); }

/* ---------- Ranch texture (photography placeholder) ---------- */
.ranch {
  position: relative;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(217, 169, 60, 0.22), transparent 58%),
    radial-gradient(95% 75% at 8% 96%, rgba(26, 46, 13, 0.85), transparent 62%),
    linear-gradient(178deg, #14170f 0%, #0a0b08 78%);
}
.ranch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(transparent 0 96%, rgba(243, 239, 230, 0.035) 96% 100%),
    linear-gradient(90deg, transparent 0 96%, rgba(243, 239, 230, 0.025) 96% 100%);
  background-size: 26px 26px, 26px 26px;
}
.ranch > * { position: relative; z-index: 1; }

.photo-slot {
  border: 1px dashed rgba(217, 169, 60, 0.45);
  border-radius: 6px;
  background:
    radial-gradient(85% 120% at 20% 10%, rgba(217, 169, 60, 0.14), transparent 60%),
    linear-gradient(160deg, #1e2416, #0e1009);
  min-height: 9rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem;
}
.photo-slot span {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.78rem 1.15rem;
  border-radius: 4px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: #14100302; color: #150f02; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.15rem;
}
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .g-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .g-3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quote ---------- */
.pullquote {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--bone);
}
.attrib { font-size: 0.78rem; color: var(--bone-faint); letter-spacing: 0.04em; }

/* ---------- Labels / chips ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.24rem 0.55rem; border-radius: 3px; white-space: nowrap;
  font-family: var(--sans);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }

.label-live    { background: var(--live-bg);  color: #9ed079; border: 1px solid rgba(111,176,69,.45); }
.label-live::before { background: var(--live); }

.label-verify  { background: var(--amber-bg); color: var(--gold-hi); border: 1px solid rgba(217,169,60,.5); }
.label-verify::before { background: var(--gold-hi); }

.label-concept { background: transparent; color: var(--gold-hi); border: 1px dashed rgba(217,169,60,.75); }
.label-concept::before { background: transparent; border: 1.5px solid var(--gold-hi); width: 7px; height: 7px; }

.label-demo    { background: var(--red-bg);   color: #f0938a; border: 1px solid rgba(224,104,92,.5); }
.label-demo::before { background: var(--red); }

.label-broken  { background: var(--red-bg);   color: #f0938a; border: 1px solid rgba(224,104,92,.55); }
.label-broken::before { background: var(--red); }

.label-sample {
  background: rgba(243,239,230,0.07); color: var(--bone-dim);
  border: 1px solid var(--rule);
}
.label-sample::before { display: none; }

.sample-note {
  font-size: 0.86rem; color: #9a9384; line-height: 1.62; max-width: 38em;
  border-top: 1px dashed var(--rule); padding-top: 0.65rem; margin-top: 0.9rem;
}

/* ---------- Numbered stops ---------- */
.stop { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.stop + .stop { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--rule-soft); }
.stop-n {
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold);
  border: 1px solid rgba(217,169,60,.4); border-radius: 4px;
  width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.stop h3 { margin-bottom: 0.35rem; }
.stop p:last-child { margin-bottom: 0; }

/* ---------- Tour ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.jump a {
  display: block; font-size: 0.74rem; line-height: 1.3;
  padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 3px;
  text-decoration: none; color: var(--bone-dim); background: var(--surface);
}
.jump a:hover { border-color: var(--gold); color: var(--gold-hi); }
.jump a b { color: var(--gold); font-weight: 700; margin-right: 0.35rem; }

.tour-stop { scroll-margin-top: 5rem; }
.tour-stop + .tour-stop { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft); }
.tour-head { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.tour-head h3 { margin: 0.15rem 0 0; }

.finding { margin: 1rem 0 0 0; }
.finding dt {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-top: 0.95rem;
}
.finding dt:first-child { margin-top: 0; }
.finding dd { margin: 0.3rem 0 0; font-size: 0.98rem; color: #d2ccbe; line-height: 1.68; max-width: 38em; }
.finding dd ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.finding dd li { margin-bottom: 0.3rem; }
@media (min-width: 46rem) { .finding { padding-left: 3.5rem; } }

/* ---------- Browser frame (for /one-minute) ---------- */
.frame { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.frame-bar {
  background: var(--surface-2); border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}
.frame-dots { display: flex; gap: 4px; flex: none; }
.frame-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243,239,230,0.22); display: block; }
.frame-url {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 0.68rem; color: var(--bone-dim);
  background: rgba(0,0,0,0.35); border-radius: 3px; padding: 0.2rem 0.45rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame-body { padding: 1.1rem 0.9rem; min-height: 7.5rem; display: flex; flex-direction: column; justify-content: center; }
.frame-compact .frame-body { min-height: 5.6rem; padding: 0.85rem; }
.compare { display: grid; gap: 0.9rem; }
@media (min-width: 52rem) { .compare { grid-template-columns: 1fr 1fr; } }
.frame-404 { background: #fff; color: #000; align-items: center; text-align: center; font-family: var(--sans); }
.frame-404 .code { font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.75rem; }
.frame-404 .code span { font-size: 0.82rem; font-weight: 400; border-left: 1px solid rgba(0,0,0,.3); padding-left: 0.75rem; }
.frame-good { background: linear-gradient(170deg, #14170f, #0a0b08); color: var(--bone); }

.verdict {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.5rem;
}
.verdict-bad { color: #f0938a; }
.verdict-good { color: #9ed079; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.tab {
  flex: 1; text-align: center; font: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 0.5rem; cursor: pointer;
  background: var(--surface); color: var(--bone-dim);
  border: 1px solid var(--rule); border-radius: 4px;
}
.tab[aria-selected="true"] { background: var(--green); color: var(--bone); border-color: rgba(217,169,60,.5); }
.tabpanel[hidden] { display: none; }

/* ---------- Table / ledger ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ledger { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: 0.94rem; }
table.ledger th, table.ledger td { text-align: left; padding: 0.8rem 0.7rem; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
table.ledger th {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--ink);
}
table.ledger tbody tr:hover { background: rgba(243,239,230,0.03); }
table.ledger td:first-child { color: var(--bone); font-weight: 500; }
table.ledger td:last-child { color: #c2bbac; font-size: 0.9rem; line-height: 1.58; max-width: 34em; }
table.ledger tr[hidden] { display: none !important; }

@media (max-width: 39.99rem) {
  table.ledger { min-width: 0; display: block; }
  table.ledger thead { position: absolute; left: -9999px; }
  table.ledger tbody, table.ledger tr, table.ledger td { display: block; }
  table.ledger tr {
    border: 1px solid var(--rule); border-radius: 6px;
    background: var(--surface); padding: 0.9rem; margin-bottom: 0.7rem;
  }
  table.ledger td { border: 0; padding: 0; }
  table.ledger td:first-child { font-size: 1rem; margin-bottom: 0.55rem; line-height: 1.35; }
  table.ledger td:last-child::before {
    content: attr(data-label);
    display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); font-weight: 700; margin: 0.75rem 0 0.15rem;
  }
}

/* ---------- Claims comparison table ---------- */
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.cmp th {
  text-align: left; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; padding: 0.7rem; border-bottom: 1px solid var(--rule);
}
table.cmp td { padding: 0.85rem 0.7rem; vertical-align: top; border-bottom: 1px solid var(--rule-soft); line-height: 1.55; }
table.cmp td:first-child { color: var(--bone); }
table.cmp td.says, table.cmp td.does { color: #c2bbac; max-width: 32em; }
table.cmp tbody tr:hover { background: rgba(243,239,230,0.03); }

@media (max-width: 44rem) {
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; }
  table.cmp thead { position: absolute; left: -9999px; }
  table.cmp tr {
    border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
    padding: 0.9rem; margin-bottom: 0.7rem;
  }
  table.cmp td { border: 0; padding: 0; }
  table.cmp td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); font-weight: 700; margin: 0.7rem 0 0.15rem;
  }
  table.cmp td:first-child { font-size: 1rem; margin-bottom: 0.2rem; }
}

.legend { display: grid; gap: 0.7rem; margin: 1.2rem 0 1.6rem; }
@media (min-width: 46rem) { .legend { grid-template-columns: repeat(2, 1fr); } }
.legend div { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.legend p { margin: 0; font-size: 0.88rem; color: #c2bbac; line-height: 1.58; }

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.filter {
  font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--bone-dim);
  border: 1px solid var(--rule); border-radius: 3px; padding: 0.4rem 0.65rem;
}
.filter[aria-pressed="true"] { background: var(--green); color: var(--bone); border-color: rgba(217,169,60,.55); }
.count { font-size: 0.78rem; color: var(--bone-faint); margin-bottom: 0.9rem; }

/* ---------- Forms (visual only) ---------- */
.form-note {
  background: var(--amber-bg); border: 1px solid rgba(217,169,60,.4); border-radius: 4px;
  padding: 0.7rem 0.85rem; font-size: 0.8rem; color: var(--gold-hi); margin-bottom: 1.2rem;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 0.35rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 0.95rem;
  background: var(--ink-2); color: var(--bone);
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 0.7rem 0.75rem;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: right 1rem center, right 0.7rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 1px solid var(--rule); border-radius: 5px; padding: 1rem; margin: 0 0 1.2rem; }
legend { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding-inline: 0.4rem; font-weight: 700; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.45rem 0; }
.choice input { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.2rem; accent-color: var(--gold); }
.choice label { font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--bone); font-weight: 400; margin: 0; }

/* ---------- Prototype pages ---------- */
.proto-banner {
  background: var(--amber-bg); border: 1px solid rgba(217,169,60,.4); border-radius: 5px;
  padding: 0.85rem 1rem; font-size: 0.9rem; color: var(--gold-hi); line-height: 1.62;
  margin-bottom: 1.4rem; max-width: 40em;
}
.proto-banner strong { color: var(--gold-hi); }

.proof { display: grid; gap: 0.9rem; margin: 1.5rem 0 1.7rem; }
@media (min-width: 46rem) { .proof { grid-template-columns: 1fr 1fr; } }
.proof > div { border-left: 2px solid var(--gold); padding-left: 0.9rem; }
.proof strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.proof p { margin: 0.4rem 0 0; font-size: 0.92rem; color: #c2bbac; line-height: 1.6; }

.slot-empty {
  border: 1px dashed rgba(243,239,230,0.3); border-radius: 5px;
  padding: 1.2rem 1rem; text-align: center; min-height: 8.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem;
  background: rgba(243,239,230,0.02);
}
.slot-empty .slot-label {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint);
}
.slot-empty p { margin: 0; font-size: 0.86rem; color: #948d7e; line-height: 1.55; }

.stat-sample { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.stat-sample .ss-body { display: flex; gap: 1.5rem; padding: 1.2rem; background: var(--surface); flex-wrap: wrap; }
.stat-sample .ss-n { font-family: var(--serif); font-size: 2rem; color: var(--gold-hi); line-height: 1; }
.stat-sample .ss-l { font-size: 0.75rem; color: var(--bone-dim); margin-top: 0.25rem; }
.stat-sample .ss-cap {
  background: var(--ink-2); border-top: 1px solid var(--rule);
  padding: 0.6rem 1.2rem; font-size: 0.74rem; color: var(--bone-faint);
}

/* ---------- Listing cards ---------- */
.listing-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
}
.listing-card .lc-photo { min-height: 7.5rem; border: 0; border-bottom: 1px dashed rgba(217,169,60,.35); border-radius: 0; }
.lc-body { padding: 0.95rem; display: flex; flex-direction: column; flex: 1; }
.lc-title { font-family: var(--serif); font-size: 1.08rem; margin: 0 0 0.2rem; }
.lc-meta { font-size: 0.78rem; color: var(--bone-dim); margin: 0 0 0.75rem; }
.lc-labels { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.lc-foot { margin-top: auto; border-top: 1px solid var(--rule-soft); padding-top: 0.75rem; }
.lc-price { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.lc-price .amt { font-family: var(--serif); font-size: 1.3rem; color: var(--bone); }
.lc-dep { font-size: 0.74rem; color: var(--bone-dim); text-align: right; line-height: 1.35; }
.lc-foot .btn { width: 100%; margin-top: 0.7rem; }

/* Verification state on a listing card (Concept — see /ledger/) */
.vb {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.24rem 0.5rem; border-radius: 3px;
}
.vb-yes     { background: rgba(111,176,69,.14); color: #9ed079; border: 1px solid rgba(111,176,69,.45); }
.vb-pending { background: var(--amber-bg); color: var(--gold-hi); border: 1px solid rgba(217,169,60,.45); }
.vb-no      { background: rgba(243,239,230,.05); color: var(--bone-faint); border: 1px solid var(--rule); }

.spec-list { margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft); }
.spec-list dt { font-size: 0.82rem; color: var(--bone-dim); margin: 0; }
.spec-list dd { font-size: 0.88rem; margin: 0; text-align: right; }

/* ---------- Pricing ---------- */
.tier { display: flex; flex-direction: column; }
.tier .t-name { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tier .t-price { font-family: var(--serif); font-size: 2.1rem; line-height: 1; margin: 0.55rem 0 0.15rem; }
.tier .t-per { font-size: 0.76rem; color: var(--bone-faint); }
.tier ul { margin: 1rem 0 1.2rem; }
.tier .btn { margin-top: auto; }
.tier-feature { border-color: rgba(217,169,60,.5); }

/* ---------- Roadmap ---------- */
.phase { border-left: 2px solid var(--gold); padding-left: 1.2rem; }
.phase-2 { border-left-style: dashed; }
.phase-tag {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.work-item { border-bottom: 1px solid var(--rule-soft); padding: 0.85rem 0; }
.work-item:last-child { border-bottom: 0; }
.work-item h4 { margin: 0 0 0.25rem; font-family: var(--sans); font-size: 0.95rem; }
.work-item p { margin: 0; font-size: 0.93rem; color: #c2bbac; line-height: 1.62; max-width: 38em; }

/* ---------- In-product screen mock ----------
   Rendered in TruHerd's own app palette (light chrome, dark panels) so it reads
   as their product rather than a different one. Sidebar drops below 52rem. */
.appshot { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.appshot + .appshot { margin-top: 1rem; }
.app {
  display: grid; grid-template-columns: 11.5rem 1fr;
  background: #fbfaf7; color: #171512;
  font-family: var(--sans); font-size: 0.78rem; line-height: 1.45;
}
@media (max-width: 52rem) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
.app-side { background: #f4f2ec; border-right: 1px solid #e4dfd3; padding: 0.6rem 0.45rem 0.9rem; }
.app-brand { font-weight: 800; letter-spacing: 0.17em; font-size: 0.66rem; padding: 0.3rem 0.5rem 0.7rem; color: #171512; }
.app-navlabel { font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8d8574; padding: 0.65rem 0.5rem 0.15rem; font-weight: 700; }
.app-nav span, .app-nav a { display: block; padding: 0.3rem 0.5rem; border-radius: 3px; color: #3c372d; text-decoration: none; }
.app-nav .on { background: #e9dfc0; color: #171512; font-weight: 600; }
.app-nav .badge { background: #c4453a; color: #fff; border-radius: 10px; font-size: 0.55rem; padding: 0 0.32rem; float: right; font-weight: 700; }
.app-trial { margin-top: 0.9rem; background: #eef2e4; border: 1px solid #d6dcc4; border-radius: 4px; padding: 0.5rem; font-size: 0.66rem; }
.app-trial b { display: block; }

.app-main { padding: 0.85rem 1rem 1.1rem; min-width: 0; }
.app-crumb { font-size: 0.62rem; color: #8d8574; margin-bottom: 0.5rem; }
.app-h1 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.1rem; color: #171512; }
.app-sub { font-size: 0.68rem; color: #7f7767; margin: 0 0 0.85rem; }
.app-cols { display: grid; gap: 0.7rem; }
@media (min-width: 62rem) { .app-cols { grid-template-columns: 1fr 13rem; } }

.app-panel { border: 1px solid #e4dfd3; border-radius: 5px; background: #fff; padding: 0.75rem; }
.app-panel + .app-panel { margin-top: 0.7rem; }
.app-panel-dark { background: #2b2620; border-color: #2b2620; color: #e9e4d9; }
.app-panel-label { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8d8574; margin: 0 0 0.4rem; font-weight: 700; }

.app-skelrow { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.app-skelcard { flex: 1; background: #37312a; border-radius: 4px; padding: 0.55rem; min-height: 2.9rem; }
.app-skelbar { background: #453e35; border-radius: 3px; height: 0.5rem; margin-top: 0.3rem; }
.app-skelbar.w60 { width: 60%; }
.app-dash { color: #6d665c; font-size: 0.7rem; }
.app-emptytext { text-align: center; font-size: 0.72rem; color: #b8b1a4; margin: 0.5rem 0 0.6rem; }

.app-empty { text-align: center; padding: 1.4rem 0.8rem; }
.app-empty svg { margin: 0 auto 0.5rem; display: block; }
.app-empty b { display: block; font-size: 0.85rem; color: #171512; }
.app-empty p { margin: 0.2rem 0 0.8rem; font-size: 0.7rem; color: #7f7767; }

.app-btn {
  display: inline-block; background: #c69022; color: #171512; font-weight: 700;
  font-size: 0.7rem; padding: 0.38rem 0.7rem; border-radius: 3px; text-decoration: none;
}
.app-btn-dark { background: #22301a; color: #eef2e4; }
.app-btn-ghost { background: transparent; border: 1px solid #d6d0c2; color: #3c372d; font-weight: 600; }

.app-task { display: flex; gap: 0.5rem; align-items: flex-start; background: #2b2620; color: #e9e4d9; border-radius: 4px; padding: 0.5rem 0.6rem; margin-bottom: 0.4rem; }
.app-task b { display: block; font-size: 0.72rem; }
.app-task span { font-size: 0.63rem; color: #a8a194; }
.app-task-lit { background: #22301a; }

/* Setup progress — every reference checklist carries a completion signal */
.app-progress { display: flex; gap: 3px; margin: 0.35rem 0 0.15rem; }
.app-progress i { flex: 1; height: 3px; border-radius: 2px; background: #ddd7c9; display: block; }
.app-progress i.on { background: #c69022; }
.app-progress-label { font-size: 0.6rem; color: #8d8574; margin: 0 0 0.5rem; letter-spacing: 0.04em; }
.app-task.done b { text-decoration: line-through; opacity: 0.6; }
.app-task .tick { flex: none; color: #7fbe52; font-size: 0.78rem; line-height: 1.3; }
.app-dismiss { float: right; color: #8d8574; font-size: 0.75rem; }

/* Escape hatch — "not ready to set up? try a sample" */
.app-hatch {
  border: 1px dashed #d6d0c2; border-radius: 5px; padding: 0.6rem 0.7rem;
  margin-top: 0.55rem; font-size: 0.68rem; color: #3c372d; line-height: 1.45;
}
.app-hatch b { display: block; }

/* Verification as a named-state timeline, not a boolean */
.app-steps { margin: 0.2rem 0 0; padding: 0; list-style: none; }
.app-steps li { position: relative; padding: 0 0 0.8rem 1.4rem; font-size: 0.71rem; line-height: 1.4; }
.app-steps li::before {
  content: ""; position: absolute; left: 0; top: 0.22rem;
  width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c9c2b2; background: #fff; box-sizing: border-box;
}
.app-steps li::after { content: ""; position: absolute; left: 4px; top: 1rem; bottom: 0; width: 1px; background: #e2dccf; }
.app-steps li:last-child { padding-bottom: 0; }
.app-steps li:last-child::after { display: none; }
.app-steps li.done::before { background: #3d6321; border-color: #3d6321; }
.app-steps li.now::before { background: #c69022; border-color: #c69022; box-shadow: 0 0 0 3px rgba(198,144,34,0.2); }
.app-steps b { display: block; color: #171512; }
.app-steps span { color: #7f7767; }

/* "Why do you need this?" disclosure rows */
.app-why {
  border-top: 1px solid #eeeae0; padding: 0.45rem 0; font-size: 0.7rem;
  display: flex; justify-content: space-between; gap: 0.6rem; color: #3c372d;
}
.app-why::after { content: "⌄"; color: #8d8574; flex: none; }

.app-kv { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.app-kv td { padding: 0.32rem 0; border-bottom: 1px solid #eeeae0; }
.app-kv td:last-child { text-align: right; font-weight: 600; }
.app-kv tr:last-child td { border-bottom: 0; }

.app-flag { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: #fdf6e3; border: 1px solid #eadfbc; border-radius: 4px; padding: 0.45rem 0.6rem; font-size: 0.7rem; color: #7a5a12; }
.app-flag-ok { background: #eef5e6; border-color: #cfe0bd; color: #3d6321; }

.screen-cap { font-size: 0.88rem; color: #a49d8e; line-height: 1.6; max-width: 38em; margin: 0.6rem 0 0; }
.screen-tag {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.screen-tag-now { color: #f0938a; }
.screen-tag-could { color: #9ed079; }

/* ---------- Callouts ---------- */
.callout { border-left: 3px solid var(--gold); background: var(--surface); padding: 0.95rem 1.1rem; border-radius: 0 5px 5px 0; margin: 1.2rem 0; }
.callout-red { border-left-color: var(--red); }
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin: 0 0 0.4rem; font-size: 0.95rem; font-family: var(--sans); letter-spacing: 0.02em; }

/* ---------- Lists ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 1.5rem; position: relative; margin-bottom: 0.55rem; }
ul.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--rule); background: var(--ink-2); padding: 2.2rem 0 2.6rem; margin-top: 1rem; }
.scope { display: grid; gap: 1rem; margin: 1.1rem 0 1.6rem; }
@media (min-width: 52rem) { .scope { grid-template-columns: repeat(3, 1fr); } }
.scope div { border-top: 2px solid var(--gold); padding-top: 0.7rem; }
.scope strong { display: block; font-size: 0.86rem; margin-bottom: 0.25rem; color: var(--bone); }
.scope p { font-size: 0.88rem; color: #c2bbac; margin: 0; line-height: 1.62; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: 0.8rem; }
.ftr-meta { font-size: 0.86rem; color: #9a9384; line-height: 1.68; max-width: 40em; border-top: 1px solid var(--rule-soft); padding-top: 1rem; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 0.5rem; z-index: 100; background: var(--gold); color: #150f02; padding: 0.5rem 0.8rem; border-radius: 4px; }

/* ---------- Print (used by /spec) ---------- */
@media print {
  .strip, .hdr, .ftr-links, .noprint { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .callout { border-color: #bbb; background: #fff; }
  a { color: #000; }
  .lede, .small, .tiny, p { color: #000; }
  section { padding: 0.6rem 0; border: 0; }
  h1 { font-size: 22pt; }
  h2 { font-size: 13pt; }
  .page { page-break-inside: avoid; }
  .doc { max-width: none; }
  .doc p { font-size: 10.5pt; line-height: 1.45; color: #000; margin-bottom: 0.5em; }
  .doc h2 { margin: 1.1rem 0 0.3rem; }
}

/* ---------- Prototype-only components ---------- */
/* Lineage tree */
.tree { display: grid; gap: 0.5rem; }
.tree-row { display: flex; gap: 0.5rem; justify-content: center; }
.tree-node {
  border: 1px solid #e4dfd3; border-radius: 4px; background: #fff;
  padding: 0.4rem 0.6rem; font-size: 0.68rem; text-align: center; min-width: 7.5rem;
}
.tree-node b { display: block; font-size: 0.72rem; }
.tree-node span { color: #7f7767; font-size: 0.62rem; }
.tree-node.focal { border-color: #c69022; box-shadow: 0 0 0 2px rgba(198,144,34,.25); }
.tree-ok { color: #3d6321; font-size: 0.6rem; }

/* Step flow (list-from-records, reserve walkthrough) */
.flow { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .flow-3 { grid-template-columns: repeat(3, 1fr); } .flow-4 { grid-template-columns: repeat(4, 1fr); } }
.flow > div { position: relative; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); padding: 1rem 1rem 1rem 1rem; }
.flow > div::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  border: 1px solid rgba(217,169,60,.5); color: var(--gold-hi);
  font-family: var(--serif); margin-bottom: 0.6rem;
}
.flow h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.flow p { font-size: 0.86rem; color: #c2bbac; margin: 0; line-height: 1.55; }

/* Branch columns */
.branch { border-top: 3px solid var(--gold); border-radius: 0 0 6px 6px; background: var(--surface); padding: 1.2rem; }
.branch-b { border-top-color: var(--live); }
.branch .b-if { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.branch-b .b-if { color: #9ed079; }
.branch ol { padding-left: 1.2rem; margin: 0.8rem 0 0; }
.branch li { font-size: 0.9rem; color: #c2bbac; margin-bottom: 0.6rem; line-height: 1.55; }
.branch li b { color: var(--bone); }

/* ============================================================
   LIGHT WORLD — the prototype is the product, not the review.
   Variable flip does most of the work; hardcoded colours from
   the dark shell get explicit overrides below.
   ============================================================ */
body.light {
  --ink:        #f7f4ec;
  --ink-2:      #efeadd;
  --surface:    #ffffff;
  --surface-2:  #f4f1e8;
  --bone:       #171512;
  --bone-dim:   #5f594d;
  --bone-faint: #837c6e;
  --rule:       rgba(23, 21, 18, 0.14);
  --rule-soft:  rgba(23, 21, 18, 0.07);
  --gold-hi:    #8a6210;
}
body.light a { color: #8a6210; text-decoration-color: rgba(138, 98, 16, 0.4); }
body.light .lede { color: #4a453b; }
body.light .small { color: #4a453b; }
body.light .tiny { color: #6d675b; }
body.light .doc p { color: #262219; }
body.light .finding dd, body.light .legend p, body.light table.cmp td.says,
body.light table.cmp td.does, body.light .work-item p, body.light .proof p,
body.light .flow p, body.light .branch li { color: #4a453b; }
body.light .slot-empty p, body.light .screen-cap, body.light .sample-note,
body.light .ftr-meta { color: #6d675b; }
body.light .slot-empty { border-color: rgba(23,21,18,0.25); background: rgba(23,21,18,0.02); }
body.light .strip { background: var(--green); color: #dfe8d3; }
body.light .hdr { background: rgba(247, 244, 236, 0.95); }
body.light .nav a, body.light .menu-btn { color: var(--bone); }
body.light .nav-panel { background: #efeadd; }
body.light .ranch {
  background:
    radial-gradient(110% 80% at 80% 0%, rgba(180, 131, 26, 0.13), transparent 60%),
    linear-gradient(178deg, #f2eddf 0%, #f7f4ec 80%);
}
body.light .ranch::after { opacity: 0.35; }
body.light .btn-ghost { color: var(--bone); border-color: rgba(23,21,18,0.3); }
body.light .btn-ghost:hover { border-color: #8a6210; color: #8a6210; }
body.light .proto-banner { color: #7a5a12; border-color: rgba(180,131,26,.45); }
body.light .form-note { color: #7a5a12; border-color: rgba(180,131,26,.45); }
body.light .label-live    { color: #3d6321; border-color: rgba(61,99,33,.4); background: rgba(111,176,69,.14); }
body.light .label-verify  { color: #7a5a12; }
body.light .label-concept { color: #7a5a12; border-color: rgba(138,98,16,.6); }
body.light .label-concept::before { border-color: #7a5a12; }
body.light .label-broken, body.light .label-demo { color: #a03a2f; }
body.light .label-sample  { color: #5f594d; background: rgba(23,21,18,0.06); }
body.light .vb-yes     { color: #3d6321; }
body.light .vb-pending { color: #7a5a12; }
body.light .vb-no      { color: #6d675b; background: rgba(23,21,18,.05); }
body.light .listing-card .lc-title { color: var(--bone); }
body.light .lc-price .amt { color: var(--bone); }
body.light .stop-n { color: #8a6210; border-color: rgba(138,98,16,.45); }
body.light .eyebrow, body.light .app-panel-label { color: #8a6210; }
body.light .frame-good { background: #fff; color: var(--bone); }
body.light .pullquote { color: var(--bone); }
body.light .branch { background: #fff; border: 1px solid var(--rule); border-top-width: 3px; }
body.light .branch-b .b-if { color: #3d6321; }
body.light .filters .filter[aria-pressed="true"] { background: var(--green); color: #f3efe6; }
body.light .tree-node { border-color: #d8d2c2; }

/* ---------- Slim ribbon (product pages) ---------- */
.ribbon {
  position: static;
  display: flex; align-items: center; gap: 0.35rem 0.8rem; flex-wrap: wrap;
  background: #171512; color: #cfc9bb;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem;
}
.ribbon b { color: #d9a93c; font-weight: 700; }
.ribbon .sp { flex: 1; }
.ribbon a, .ribbon button {
  color: #f3efe6; background: none; border: 1px solid rgba(243,239,230,0.3);
  border-radius: 3px; font: inherit; padding: 0.15rem 0.55rem; cursor: pointer;
  text-decoration: none; letter-spacing: 0.08em;
}
.ribbon a:hover, .ribbon button:hover { border-color: #d9a93c; color: #d9a93c; }

/* ---------- Notes drawer ---------- */
.notes {
  max-width: 46rem; margin: 2rem auto; padding: 1.2rem 1.4rem;
  border: 1px solid rgba(180,131,26,.45); border-left-width: 4px; border-radius: 6px;
  background: #fdf9ee;
}
.notes h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.notes li { color: #4a453b; }

/* ---------- Next pill ---------- */
.nextpill {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 65;
  background: #1a2e0d; color: #f3efe6; text-decoration: none;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(23,21,18,0.3);
}
.nextpill:hover { background: #244013; }

/* ---------- Market chrome (public marketplace skin) ---------- */
.mhdr { background: #1a2e0d; }
.mhdr-in {
  max-width: 72rem; margin-inline: auto; padding: 0.8rem 1.25rem;
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.mhdr .wordmark { color: #f3efe6; }
.mhdr nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: 0.86rem; }
.mhdr nav a { color: #dfe8d3; text-decoration: none; }
.mhdr nav a[aria-current="page"] { color: #d9a93c; }
.mhdr nav a:hover { color: #d9a93c; }
.mhdr .sp { flex: 1; }
.mhdr .btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.mftr {
  border-top: 1px solid var(--rule); margin-top: 2.5rem;
  padding: 1.2rem 0 1.6rem; font-size: 0.87rem; color: #6d675b;
}

/* ---------- Full-size app chrome (skin-app) ---------- */
.papp { display: grid; grid-template-columns: 13.5rem 1fr; min-height: calc(100vh - 2.2rem); background: #fbfaf7; }
.papp-side {
  background: #f4f2ec; border-right: 1px solid #e4dfd3; padding: 1rem 0.8rem 1.4rem;
}
.papp-brand { font-weight: 800; letter-spacing: 0.2em; font-size: 0.82rem; color: #171512; padding: 0.2rem 0.6rem 1rem; }
.papp-navlabel { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8d8574; padding: 0.9rem 0.6rem 0.25rem; font-weight: 700; }
.papp-nav a, .papp-nav span { display: block; padding: 0.45rem 0.6rem; border-radius: 4px; color: #3c372d; text-decoration: none; font-size: 0.9rem; }
.papp-nav .on { background: #e9dfc0; color: #171512; font-weight: 600; }
.papp-nav a:hover { background: #ece7da; }
.papp-plan { margin: 1.2rem 0.3rem 0; background: #eef2e4; border: 1px solid #d6dcc4; border-radius: 5px; padding: 0.7rem; font-size: 0.78rem; color: #3c372d; }
.papp-plan b { display: block; }

.papp-main { padding: 1.4rem 1.6rem 2.2rem; min-width: 0; }
.papp-crumb { font-size: 0.74rem; color: #8d8574; margin-bottom: 0.7rem; }
.papp-h1 { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 0 0 0.15rem; color: #171512; }
.papp-sub { font-size: 0.86rem; color: #7f7767; margin: 0 0 1.3rem; }
.papp-tabs { display: flex; gap: 1rem; border-bottom: 1px solid #e4dfd3; margin: 0 0 1.2rem; font-size: 0.88rem; flex-wrap: wrap; }
.papp-tabs span, .papp-tabs a { padding: 0.4rem 0.1rem; color: #7f7767; text-decoration: none; }
.papp-tabs .on { color: #171512; font-weight: 600; border-bottom: 2px solid #c69022; }

.papp-cols { display: grid; gap: 1rem; }
@media (min-width: 62rem) { .papp-cols { grid-template-columns: 1fr 19rem; } }
.papp-panel { border: 1px solid #e4dfd3; border-radius: 6px; background: #fff; padding: 1rem 1.1rem; }
.papp-panel + .papp-panel { margin-top: 1rem; }
.papp-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6210; margin: 0 0 0.6rem; font-weight: 700; }
.papp-kv { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.papp-kv td { padding: 0.5rem 0; border-bottom: 1px solid #eeeae0; vertical-align: top; }
.papp-kv td:last-child { text-align: right; font-weight: 600; color: #171512; }
.papp-kv td:first-child { color: #5f594d; }
.papp-kv tr:last-child td { border-bottom: 0; }
.papp-task { display: flex; gap: 0.6rem; align-items: flex-start; background: #2b2620; color: #e9e4d9; border-radius: 5px; padding: 0.75rem 0.85rem; margin-bottom: 0.55rem; }
.papp-task b { display: block; font-size: 0.88rem; }
.papp-task span { font-size: 0.76rem; color: #a8a194; }
.papp-task.lit { background: #22301a; }
.papp-flag { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; background: #fdf6e3; border: 1px solid #eadfbc; border-radius: 5px; padding: 0.6rem 0.8rem; font-size: 0.86rem; color: #7a5a12; }
.papp-flag.ok { background: #eef5e6; border-color: #cfe0bd; color: #3d6321; }
.papp-note { font-size: 0.86rem; color: #7f7767; margin: 0.6rem 0 0; line-height: 1.5; }

@media (max-width: 61.99rem) {
  .papp { grid-template-columns: 1fr; }
  .papp-side { display: flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; border-right: 0; border-bottom: 1px solid #e4dfd3; padding: 0.6rem 0.8rem; }
  .papp-brand { padding: 0.2rem 0.4rem; }
  .papp-navlabel { display: none; }
  .papp-nav { display: contents; }
  .papp-nav a, .papp-nav span { padding: 0.35rem 0.55rem; font-size: 0.8rem; }
  .papp-plan { display: none; }
}

/* ============================================================
   M3 — marketplace direction v3 (image-first, guided walk)
   References: Cosmos/Etsy image-first cards, Gamma detail rail,
   OpenSea trait chips, Selfridges prev/next progression.
   ============================================================ */
.m3-hero { position: relative; overflow: hidden; }
.m3-hero img { width: 100%; height: clamp(240px, 38vh, 380px); object-fit: cover; display: block; }
.m3-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,12,0.28) 0%, rgba(20,26,12,0.0) 35%, rgba(20,26,12,0.62) 100%);
}
.m3-hero-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 0 1.4rem; color: #f7f4ec; }
.m3-hero-txt .eyebrow { color: #e8c76a; }
.m3-hero-txt h1 { color: #f7f4ec; font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 0.2rem; text-shadow: 0 1px 12px rgba(20,26,12,0.5); }
.m3-hero-txt p { color: #eae4d5; max-width: 40rem; margin: 0; font-size: clamp(0.95rem, 2.4vw, 1.05rem); text-shadow: 0 1px 8px rgba(20,26,12,0.5); }

.m3-toolbar { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding: 1.1rem 0 0.4rem; }
.m3-count { font-size: 0.85rem; color: #6d675b; }
.m3-toolbar .filters { margin: 0; }

.m3-grid { display: grid; gap: 1.3rem; padding: 0.9rem 0 0.4rem; }
@media (min-width: 42rem) { .m3-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .m3-grid { grid-template-columns: repeat(3, 1fr); } }

.m3-card {
  background: #fff; border: 1px solid #e7e1d2; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23,21,18,0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  display: flex; flex-direction: column;
}
.m3-card:hover { box-shadow: 0 10px 28px rgba(23,21,18,0.14); transform: translateY(-2px); }
.m3-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.m3-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m3-pricechip {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  background: rgba(23, 21, 18, 0.82); color: #f7f4ec;
  font-family: var(--serif); font-size: 1.02rem;
  padding: 0.28rem 0.75rem; border-radius: 999px;
}
.m3-body { padding: 0.95rem 1.05rem 1.05rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.m3-name { font-family: var(--serif); font-size: 1.22rem; margin: 0; color: #171512; line-height: 1.2; }
.m3-meta { font-size: 0.84rem; color: #6d675b; margin: 0; }
.m3-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.m3-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding-top: 0.55rem; border-top: 1px solid #efe9db; }
.m3-dep { font-size: 0.78rem; color: #6d675b; line-height: 1.35; }
.m3-foot .btn { padding: 0.55rem 1rem; font-size: 0.82rem; }

.m3-note { text-align: center; font-size: 0.87rem; color: #6d675b; padding: 1.2rem 0 0; max-width: 44em; margin-inline: auto; }

/* ---------- The walk bar ---------- */
body.haswalk { padding-bottom: 4.6rem; }
.walkbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(23, 21, 18, 0.93); backdrop-filter: blur(8px);
  color: #cfc9bb; border-top: 1px solid rgba(217,169,60,0.35);
}
.walkbar-in {
  max-width: 72rem; margin-inline: auto; padding: 0.65rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.walkbar-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.walkbar-label b { color: #e8c76a; display: block; font-size: 0.78rem; }
.walkbar .sp { flex: 1; }
.walkbar-dots { display: flex; gap: 5px; }
.walkbar-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(243,239,230,0.25); }
.walkbar-dots i.on { background: #d9a93c; }
.walkbar a.wnav {
  color: #171512; background: #d9a93c; text-decoration: none; font-weight: 700;
  font-size: 0.82rem; padding: 0.5rem 1rem; border-radius: 6px;
}
.walkbar a.wnav:hover { background: #e8c76a; }
.walkbar a.wprev { background: none; color: #cfc9bb; border: 1px solid rgba(243,239,230,0.3); font-weight: 600; }
.walkbar a.wprev:hover { color: #e8c76a; border-color: #d9a93c; background: none; }
@media (max-width: 40rem) {
  .walkbar-dots { display: none; }
  .walkbar-in { padding: 0.55rem 0.9rem; gap: 0.6rem; }
  .walkbar-label { font-size: 0.62rem; }
}

/* ---------- M3 rollout: detail, history, thumbs ---------- */
.m3-hero-txt .eyebrow { text-shadow: 0 1px 10px rgba(20,26,12,0.85); }
.m3d-grid { display: grid; gap: 1.6rem; align-items: start; padding-top: 1.2rem; }
@media (min-width: 58rem) { .m3d-grid { grid-template-columns: 1.08fr 0.92fr; } }
.m3d-photo { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #e7e1d2; }
.m3d-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.m3-card-flat { background: #fff; border: 1px solid #e7e1d2; border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: 0 1px 2px rgba(23,21,18,0.05); }
.m3-card-flat + .m3-card-flat { margin-top: 1rem; }
.m3d-sellerline { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: #5f594d; margin: 0 0 0.3rem; }
.m3d-sellerline .ck { color: #3d6321; font-weight: 700; }
.m3d-name { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 0.25rem; color: #171512; }
.m3-hist { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.m3-hist th { text-align: left; font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: #8a6210; padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid #eeeae0; font-weight: 700; }
.m3-hist td { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid #f2eddf; color: #4a453b; vertical-align: top; }
.m3-hist tr:last-child td { border-bottom: 0; }
.papp-headrow { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.15rem; }
.papp-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid #e4dfd3; flex: none; }
.m3-mini { display: grid; gap: 1rem; }
@media (min-width: 42rem) { .m3-mini { grid-template-columns: repeat(3, 1fr); } }


/* ---------- App design pass v2 + interaction states ---------- */
.off { opacity: 0.45; cursor: default; pointer-events: none; }
.papp-brand { display: flex; align-items: center; gap: 0.5rem; }
.papp-brand .mk { width: 0.95rem; height: 0.95rem; flex: none; border: 2px solid #b4831a; border-radius: 3px; position: relative; }
.papp-brand .mk::after { content: ""; position: absolute; inset: 2px 2px auto 2px; height: 2px; background: #c69022; }
.papp-nav a, .papp-nav span { display: flex; justify-content: space-between; gap: 0.5rem; }
.papp-nav .on { background: #f0e7cd; border-left: 3px solid #c69022; padding-left: calc(0.6rem - 3px); border-radius: 0 5px 5px 0; }
.papp-panel { border-radius: 10px; box-shadow: 0 1px 2px rgba(23,21,18,0.05); }
.tree { max-width: 34rem; }
.tree-row { justify-content: flex-start; }
.papp-tabs a { color: #7f7767; text-decoration: none; padding: 0.45rem 0.1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.papp-tabs a:hover { color: #171512; border-color: #c69022; }
.papp-tabs .off { border: 0; }
.papp-stats { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); margin: 0 0 1.2rem; }
@media (min-width: 58rem) { .papp-stats { grid-template-columns: repeat(4, 1fr); } }
.papp-stat { background: #fff; border: 1px solid #e4dfd3; border-radius: 10px; padding: 0.85rem 1rem; box-shadow: 0 1px 2px rgba(23,21,18,0.05); }
.papp-stat b { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: #171512; }
.papp-stat span { font-size: 0.76rem; color: #7f7767; }
@media (max-width: 61.99rem) { .papp-nav a, .papp-nav span { display: inline-flex; } .papp-nav .on { border-left: 0; padding-left: 0.55rem; border-radius: 4px; } }

/* ============================================================
   FIDELITY PASS — tokens read from app.truherd.com's computed
   styles, 8 Aug 2026. The product skins now use TruHerd's own
   type (Rubik), colors, radii and button system.
   ============================================================ */
body.skin-app, body.skin-market {
  --rubik: "Rubik", system-ui, sans-serif;
  font-family: var(--rubik);
}
body.skin-app { background: #f3f3f3; }
.skin-app .papp { background: #f3f3f3; }
.skin-market .m3-name, .skin-market .m3d-name, .skin-market .m3-hero-txt h1,
.skin-app .papp-h1, .skin-app .papp-stat b {
  font-family: var(--rubik); font-weight: 600; letter-spacing: -0.01em;
}
.skin-market .m3-pricechip, .skin-app .papp-stat b { font-family: var(--rubik); font-weight: 700; }
.skin-market .lc-price .amt, .skin-market .m3-card-flat > div[style*="serif"] { font-family: var(--rubik) !important; font-weight: 700; }

/* Their button system: forest green, white text */
.skin-market .btn-primary {
  background: #142313; border-color: #142313; color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 500; font-family: var(--rubik);
}
.skin-market .btn-primary:hover { background: #1f3520; }
.skin-app .btn-primary {
  background: rgba(29, 47, 30, 0.95); border-color: transparent; color: #f7f6f0;
  border-radius: 4px; font-size: 14px; font-weight: 500; font-family: var(--rubik);
}
.skin-app .btn-primary:hover { background: #142313; }
.skin-market .btn-ghost, .skin-app .btn-ghost {
  border-radius: 8px; font-size: 14px; font-weight: 500; font-family: var(--rubik);
}
.skin-market .filters .filter[aria-pressed="true"] { background: #142313; }

/* Sidebar + labels: their exact treatment */
.papp-side { background: #f4f1eb; border-right-color: #e2decd; }
.papp-navlabel { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: #7d766a; }
.papp-nav .on {
  background: #e2cfa7; color: #142313; font-weight: 600;
  border-left: 0; padding-left: 0.6rem; border-radius: 4px;
}
.papp-label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: #7d766a; }
.papp-panel { border-color: #e2decd; border-radius: 12px; }
.papp-stat { border-color: #e2decd; border-radius: 12px; }
.papp-task { background: #2b2622; border-radius: 8px; }
.papp-task.lit { background: #22301a; }
.papp-plan { border-radius: 8px; }
.m3-card { border-radius: 12px; border-color: rgba(226, 222, 205, 0.8); }
.m3-card-flat { border-radius: 12px; border-color: rgba(226, 222, 205, 0.8); }
.m3-pricechip { background: rgba(20, 35, 19, 0.88); }

/* Top bar: breadcrumb + account chip, like theirs */
.papp-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.papp-crumb { margin-bottom: 0; font-family: var(--rubik); }
.papp-top .sp { flex: 1; }
.papp-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 13px; font-weight: 500; color: #211f19;
  border: 1px solid #e2decd; border-radius: 8px; background: #fff; padding: 0.3rem 0.6rem;
}
.papp-chip i {
  width: 22px; height: 22px; border-radius: 50%; background: #142313; color: #f7f6f0;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10px; font-weight: 600;
}
.papp-collapse { margin-top: 1rem; font-size: 13px; color: #7d766a; padding: 0.3rem 0.6rem; }
