/* =====================================================================
   BoE elevate-shell-v2 — SITE SHELL polish (tokens + type + chips +
   receipt hero + sticky nav / tap targets).
   Wire: append AFTER public/boe/site.css (which already includes elevate-live),
         OR link as /boe/elevate-shell.css.
   Brand: paper/stamp/Anton/Archivo/Space Mono — NOT A1Lists, NOT HSR.
   Scope: home · hub · benefit · how-we-source · policies. No Wave B art.
   ===================================================================== */

/* BoE elevate-shell-v2 — type/spacing tokens ONLY.
   Brand lock unchanged: paper #F7F3EA · stamp #A8481A · ink #1A1A18
   Append AFTER live :root / elevate-live. Do NOT fork colors toward A1Lists or HSR. */
:root {
  /* ink hierarchy — kill gray mush */
  --ink: #1A1A18;
  --ink-soft: #2C2A26;       /* lead / body emphasis (near-black, not muted) */
  --muted: #5C564C;          /* meta ONLY: updated, cites, foot notes */
  --muted-strong: #3F3A34;   /* secondary labels that must stay readable */

  /* type scale */
  --fs-h1: clamp(2.65rem, 9.5vw, 4.6rem);
  --fs-h1-sm: clamp(2.15rem, 11vw, 2.85rem);
  --fs-h2: clamp(1.45rem, 3.5vw, 1.7rem);
  --fs-lead: clamp(1.12rem, 2.4vw, 1.22rem);
  --fs-body: 1.05rem;
  --fs-chip: 0.8125rem;      /* 13px — readable chips */
  --fs-meta: 0.6875rem;      /* 11px Space Mono */

  /* spacing / tap */
  --space-section: clamp(1.5rem, 4vw, 2.25rem);
  --space-block: 1.25rem;
  --tap-min: 44px;
  --mast-pad-y: 12px;
  --mast-pad-x: clamp(14px, 3vw, 28px);

  /* receipt hero */
  --receipt-bleed-x: clamp(0px, 2vw, 8px);
  --rc-img-max: 420px;
}




/* --- 1. Type & hierarchy: stronger H1 / lead; less gray mush ---------- */
.boe-h1,
.h1 {
  font-family: Anton, Impact, sans-serif;
  font-size: var(--fs-h1);
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(168, 72, 26, 0.28);
  margin: 0 0 14px;
  font-weight: 400;
}

.boe-h2,
.h2 {
  font-family: Anton, Impact, sans-serif;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.65em 0 0.6em;
}

/* Money sentence / lead: near-ink, not muted gray */
.boe-lead,
.boe-dek,
.lead,
.dek {
  font-family: Archivo, system-ui, sans-serif;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0 0 14px;
}

/* Meta stays muted; body copy stays ink */
.boe-muted,
.boe-updated,
.boe-kicker,
.cite,
.boe-cite,
.boe-foot-note {
  color: var(--muted);
}

.boe-kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted-strong);
  margin: 0 0 8px;
}

.benefit-row p,
.boe-benefit > p,
.boe-prose-block p,
.boe-prose p,
.counterpoint p,
.not-for li,
.search-block p:not(.stamp):not(.boe-kicker):not(.boe-dek) {
  color: var(--ink);
}

.boe-ask-label {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2.25rem, 8vw, 3.7rem);
  line-height: 0.9;
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(168, 72, 26, 0.22);
}

/* --- 2. Related chips — readable poster cards, not tiny footer links -- */
.related-receipts {
  margin: var(--space-section) 22px;
  padding: 0;
}

.related-receipts .boe-h2 {
  margin-top: 0;
}

.related-grid {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.related-card {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-card a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  min-height: var(--tap-min);
  padding: 12px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 0; /* receipt kit — no soft pills */
  background: var(--paper-hot);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.related-card a:hover,
.related-card a:focus-visible {
  background: var(--hi);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.related-card img {
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  background: var(--ink);
  display: block;
  object-fit: cover;
}

/* when no thumb, title still reads as a real link */
.related-card a:not(:has(img)) {
  grid-template-columns: 1fr;
}

.related-title {
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--stamp);
}

.related-card a:hover .related-title {
  color: var(--stamp);
}

.related-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.related-body .boe-muted {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted-strong);
}

/* home / hub topic chips — bump tap + type */
.boe-chips,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.boe-chip,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 10px 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--fs-chip);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: 2px 2px 0 var(--ink);
}

.boe-chip:hover,
.chip:hover {
  background: var(--hi);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* --- 3. Receipt / hero — holds on mobile; no crushed PNGs ------------- */
.boe-hero.receipt,
.boe-article.receipt,
.receipt.boe-article,
.boe-main > .receipt,
.boe-legal.receipt {
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - (var(--receipt-bleed-x) * 2));
  max-width: var(--max);
}

@media (max-width: 480px) {
  .boe-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .boe-hero.receipt,
  .boe-article.receipt,
  .boe-main > .receipt,
  .boe-legal.receipt {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .related-receipts,
  .counterpoint,
  .not-for,
  .receipt-card,
  .affiliate-slot {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Share receipt: HTML money sentence stays visible; PNG never crushed */
.receipt-card {
  margin: 22px;
  padding: 18px;
  border: 3px solid var(--ink);
  background: var(--hi);
  box-shadow: var(--shadow-sm);
}

.receipt-card .rc-claim {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.45rem, 4.5vw, 2.05rem);
  text-transform: uppercase;
  line-height: 0.98;
  color: var(--ink);
  margin: 8px 0;
}

.receipt-card .rc-caveat {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--alert);
  margin: 0 0 14px;
}

.receipt-card .rc-img {
  display: block;
  width: 100%;
  max-width: var(--rc-img-max);
  height: auto;
  aspect-ratio: 540 / 675;
  object-fit: contain;
  object-position: top center;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  image-rendering: auto;
}

/* topic art mark — don’t squash */
.topic-art,
.boe-topic-art {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: var(--ink);
  display: block;
}

@media (max-width: 819px) {
  .topic-art,
  .boe-topic-art {
    max-width: 120px;
    justify-self: start;
  }
}

.featured-card img,
.boe-hub-grid img,
.hub-card img {
  object-fit: contain;
  image-rendering: auto;
}

/* --- 4. Spacing / nav — breathing room, sticky clarity, ≥44px taps ---- */
.boe-masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--mast-pad-y) var(--mast-pad-x);
  border-bottom: 3px solid var(--ink);
  background: var(--paper-hot);
  box-shadow: 0 1px 0 rgba(26, 26, 24, 0.06);
}

.boe-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-min);
  text-decoration: none;
  color: var(--ink);
}

.boe-mark,
.boe-brand img,
.boe-brand svg {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

.boe-mast-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.boe-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.boe-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}

.boe-nav a:hover,
.boe-nav a:focus-visible {
  background: var(--hi);
  color: var(--ink);
}

.boe-nav-meta {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.35;
  max-width: 11em;
}

.boe-main {
  padding: 8px var(--mast-pad-x) 64px;
}

.boe-footer {
  border-top: 3px solid var(--ink);
  padding: 28px var(--mast-pad-x) 40px;
  background: var(--paper-2);
}

.boe-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  margin: 8px 0;
}

.boe-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.boe-footer-nav a:hover {
  color: var(--stamp);
}

.boe-skip {
  position: absolute;
  left: -9999px;
}
.boe-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 99;
  background: var(--hi);
  color: var(--ink);
  padding: 10px 14px;
  min-height: var(--tap-min);
  border: 2px solid var(--ink);
}

/* hub breathing room */
.boe-hub-section,
.boe-hub-head {
  margin-top: var(--space-section);
}

.boe-hub-grid .hub-card a,
.boe-hub-grid > li > a {
  min-height: var(--tap-min);
  padding: 12px;
}

.featured {
  margin: var(--space-section) auto 12px;
  max-width: var(--max-wide);
  padding: 0 4px;
}

.featured-card {
  min-height: var(--tap-min);
}

.verdict-chip {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 11.5px;
  line-height: 1.35;
}

/* how-we-source / policies prose */
.boe-prose-block,
.boe-prose,
.search-block {
  padding: 20px 20px 32px;
}

.boe-prose-block h2,
.boe-prose h2 {
  font-family: Anton, Impact, sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.35em 0 0.5em;
}

.boe-prose-block li,
.boe-prose li {
  margin-bottom: 0.65em;
  color: var(--ink);
}

.boe-legal-effective {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

/* FAQ tap targets */
.boe-faq-item summary,
.faq details summary {
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}

/* --- 5. Mobile polish ------------------------------------------------- */
@media (max-width: 480px) {
  .boe-h1,
  .h1 {
    font-size: var(--fs-h1-sm);
    text-shadow: 2px 2px 0 rgba(168, 72, 26, 0.28);
  }

  .boe-lead,
  .boe-dek {
    font-size: 1.08rem;
    font-weight: 600;
  }

  .boe-nav-meta {
    display: none;
  }

  .boe-masthead {
    padding: 10px 12px;
  }

  .boe-chip,
  .chip {
    font-size: 12.5px;
    padding: 10px 12px;
    min-height: var(--tap-min);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .receipt-card .rc-img {
    max-width: 100%;
  }

  .boe-footer-nav a {
    flex: 1 1 auto;
  }
}

@media (min-width: 820px) {
  .topic-head,
  .benefit-row,
  .receipt-topbar,
  .search-block,
  .boe-prose-block,
  .boe-prose {
    padding-left: 28px;
    padding-right: 28px;
  }

  .related-receipts {
    margin-left: 28px;
    margin-right: 28px;
  }
}

/* SEO / a11y helpers (no visual invent) */
.related-card a:focus-visible,
.boe-chip:focus-visible,
.featured-card:focus-visible,
.hub-card a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}