/* Dumbsheet — the editorial sheet: A2 colours, fixed 3:4 cards, gridlines only in the row and column headers. */
:root {
  --ground: #F1F0EC;
  --ink: #1F1E1B;
  --red: #7A2222;
  --muted: #5E5B54;
  --body: #4A4741;
  --copy: #34322E;
  --line: #D6D2C9;
  --line-soft: #E1DDD5;
  --line-strong: #CFCBC1;
  --photo: #E9E6DF;
  --plate-label: #5A564F;
  --lift: #FBFAF7;
  --head-on: #E7E4DD;
  --soft: #F6F5F2;
  --wash: #EAE8E2;
  --head-dim: #B9B4AA;
  --head-line: #3A3833;
  --head-red: #E0A9A9;
  /* Row 1's level headings each get their own colour, from shame to dumbest: burgundy, deep green, green-gold, olive-gold. */
  --head-b: #4E2128;
  --head-c: #1E3A2B;
  --head-d: #383D28;
  --head-e: #4B4324;
  --underline: #A9A397;
  --shadow: 0 22px 44px -14px rgba(31, 30, 27, 0.30), 0 2px 8px rgba(31, 30, 27, 0.06);
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; }
a { color: var(--ink); }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.nobr { white-space: nowrap; }
.serif { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.muted { color: var(--muted); }
.red { color: var(--red) !important; }
.kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.link-arrow { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 4px; }
.m-only { display: none; }

.page { max-width: 1288px; margin: 0 auto; padding: 0 24px; }

.preview-bar { background: var(--ink); color: var(--ground); font-size: 13px; padding: 8px 16px; text-align: center; }
.preview-bar a { color: var(--ground); }

/* ---------- header ---------- */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); position: relative; }
.is-sheet .site-header, .is-product .site-header { padding-bottom: 24px; border-bottom: 0; }
.main-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.main-nav a, .menu-panel a { text-decoration: none; }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.brand { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
/* The logo is a transparent image, cropped tight; its height sets its size. */
.logo { display: block; line-height: 0; }
.logo img { height: 44px; width: auto; max-width: 100%; }
/* Same lettering as the top menu. */
.tagline { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 12px; line-height: 1.4; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; }
.header-end { display: flex; justify-content: flex-end; }
.search { display: flex; align-items: center; gap: 8px; }
.search input { width: 0; opacity: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; font: inherit; font-size: 14px; height: 36px; color: var(--ink); transition: width 0.2s ease, opacity 0.2s ease; }
.search.is-open input, .search input:focus, .search input:not(:placeholder-shown) { width: 200px; opacity: 1; padding: 0 4px; }
.round { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 22px; background: transparent; cursor: pointer; flex: none; }
.menu { display: none; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- category sheet heading ---------- */
.category-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 28px 0 8px; border-top: 1px solid var(--line-strong); }
.category-text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.category-text h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1; }
.category-text p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body); }

/* ---------- the sheet ---------- */
/* No cell borders: the only lines are the row numbers' and the column letters', like a sheet with gridlines turned off.
   A thin ink outline runs round the whole grid. */
.sheet { margin-top: 8px; outline: 1px solid var(--ink); outline-offset: -1px; }
.row { display: grid; grid-template-columns: 44px 220px repeat(4, minmax(0, 1fr)); }
.num { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.num--soft { background: var(--soft); }
.hidden-mark { display: block; width: 14px; height: 4px; border-top: 1px solid var(--underline); border-bottom: 1px solid var(--underline); }

/* The header rows (column letters and level names) sit on an ink band so they read as the sheet's header. */
.sheet-head { background: var(--ink); color: var(--ground); }
.sheet-head .letter, .sheet-head .num { color: var(--head-dim); }
.sheet-head .letter { border-left-color: var(--head-line); }
.sheet-head .num { border-bottom-color: var(--ink); }
.sheet-head .kicker, .sheet-head .fear, .sheet-head .row--levels .intro { color: var(--line-strong); }
.sheet-head .level-head--shame .kicker { color: var(--head-red); }
.level-head[data-col="B"] { background: var(--head-b); }
.level-head[data-col="C"] { background: var(--head-c); }
.level-head[data-col="D"] { background: var(--head-d); }
.level-head[data-col="E"] { background: var(--head-e); }
.row--letters { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.row--letters .num { padding: 0; border-bottom: 0; }
.letter { height: 26px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
/* The hovered cell's column letter brightens on the ink band, with a thin underline. */
.letter.is-on { color: var(--ground); box-shadow: inset 0 -1px 0 var(--head-dim); }
.row--levels .title-cell { padding: 22px 20px 26px; justify-content: flex-end; gap: 8px; }
.row--levels .intro { font-size: 14px; line-height: 1.45; color: var(--body); }
.level-head { padding: 22px 16px 26px; display: flex; flex-direction: column; gap: 6px; }
.level-head--shame .kicker { color: var(--red); }
.level-name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; line-height: 1.05; }
.fear { font-size: 13px; line-height: 1.45; color: var(--body); }
.m-col, .swipe-hint, .m-num, .m-types { display: none; }

.title-cell { padding: 22px 20px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.title-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.02; }
.is-category .row-title { font-size: 30px; line-height: 1.05; }
.row-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--body); }
/* A pinned row isn't shaded or outlined: a quiet line across the full width sets it off from the categories below. */
.row--pinned { box-shadow: inset 0 -1px 0 var(--line-strong); }
.row--pinned .kicker { display: inline-flex; align-items: center; gap: 6px; }
.row--joke .kicker { font-style: italic; }
.elbow { flex: none; color: var(--underline); }
.lead-type { display: flex; align-items: center; gap: 8px; }
.sub-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.row--sub .sub-title { padding-left: 22px; }
.toggle { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); cursor: pointer; }
.toggle:hover { color: var(--ink); }
.toggle svg { transition: transform 0.15s ease; }
.toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.row--more { grid-template-columns: 44px 1fr; }
.row--more .num { padding-top: 16px; }
.more-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 2px 20px 34px; }
.count { font-size: 13px; color: var(--muted); }

/* ---------- cells and cards ---------- */
.cell { position: relative; padding: 12px 8px 4px; min-width: 0; }
.gap { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; border: 1px dashed var(--line-strong); }
.na { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gap-name { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.1; }
.gap-blurb { margin: 0; font-size: 13px; line-height: 1.45; color: var(--body); text-wrap: pretty; }

/* Every card is the same 3:4 box, hovered or not. */
.card { position: relative; aspect-ratio: 3 / 4; display: flex; flex-direction: column; padding: 10px 10px 0; border-radius: 2px; transition: box-shadow 0.22s ease, transform 0.22s ease, background-color 0.22s ease; }
.card-photo { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--photo); }
.card-photo img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.35s ease; }
.plate-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plate-label); }
.peek { display: none; }
.here-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 7px; background: var(--ink); color: var(--lift); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.card--here { outline: 1.5px solid var(--ink); outline-offset: -1px; }

.overlay { position: absolute; inset: 0; z-index: 2; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background: rgba(241, 240, 236, 0.92); opacity: 0; transition: opacity 0.2s ease; }
.card-blurb { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--copy); }
.view-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; background: var(--ink); color: var(--lift); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.view-btn:hover { background: var(--red); color: var(--lift); }

.card-text { flex: none; height: 108px; overflow: hidden; padding: 0 4px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.card-name { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.12; }
.card-name a { text-decoration: none; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.price { font-size: 14px; color: var(--copy); white-space: nowrap; }
.card--shame .price { color: var(--red); }
.buy-now { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; background: var(--ink); color: var(--lift); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
.buy-now:hover { background: var(--red); color: var(--lift); }
.buy-now svg { width: 12px; height: 12px; }
.buy-now--shame { background: transparent; border: 1px solid var(--red); color: var(--red); }
.buy-now--shame:hover { background: var(--red); color: var(--lift); }
.card-foot { display: grid; align-items: center; min-width: 0; min-height: 19px; }
.badge-line, .quip { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.2s ease; }
.badge-line { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.quip { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.2; color: var(--muted); }
/* A faint X from corner to corner of the photo: crossed out, like a struck cell. */
.shame-x { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: var(--underline); stroke-opacity: 0.8; stroke-width: 2; transition: opacity 0.2s ease; }

/* Hover or keyboard focus lifts a card and shows what it keeps quiet at rest. */
@media (min-width: 820px) {
  .card:hover, .card:focus-within { z-index: 4; background: var(--lift); box-shadow: var(--shadow); transform: translateY(-4px); }
  .card:hover .card-photo img, .card:focus-within .card-photo img { transform: scale(1.04); }
  .card:hover .overlay, .card:focus-within .overlay,
  .card:hover .buy-now, .card:focus-within .buy-now,
  .card:hover .badge-line, .card:focus-within .badge-line { opacity: 1; visibility: visible; }
  .card:hover .quip, .card:focus-within .quip,
  .card:hover .shame-x, .card:focus-within .shame-x { opacity: 0; }
}

/* ---------- category tabs ---------- */
.tabs { display: flex; align-items: stretch; overflow-x: auto; font-size: 14px; scrollbar-width: thin; }
.tabs a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--body); text-decoration: none; white-space: nowrap; }
.tabs a[aria-current] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ink); }
.tabs--top { display: none; }
.tabs--bottom { position: sticky; bottom: 0; z-index: 10; background: var(--ground); border-top: 1px solid var(--line-strong); flex-wrap: wrap; }
.empty-note { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- details panel (phones) ---------- */
.peek-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 16px 16px 20px; background: var(--lift); box-shadow: 0 -18px 40px -16px rgba(31, 30, 27, 0.35); display: flex; flex-direction: column; gap: 12px; }
.peek-top { display: flex; gap: 14px; align-items: flex-start; }
.peek-photo { position: relative; flex: none; width: 84px; height: 84px; background: var(--photo); overflow: hidden; }
.peek-photo img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.peek-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.peek-ref { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.peek-name { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; }
.peek-price { font-size: 14px; color: var(--copy); }
.peek-panel.is-shame .peek-ref, .peek-panel.is-shame .peek-price { color: var(--red); }
.peek-close { flex: none; min-width: 44px; min-height: 44px; margin: -10px -6px 0 0; padding: 0 6px; border: 0; background: transparent; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.peek-blurb { margin: 0; font-size: 14px; line-height: 1.45; color: var(--body); }
.peek-badges { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.peek-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.peek-actions a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; font-size: 13px; text-decoration: none; }
.peek-view { background: var(--ink); color: var(--lift) !important; font-size: 12px !important; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.peek-buy { border: 1px solid var(--ink); }
.peek-panel.is-shame .peek-buy { border-color: var(--red); color: var(--red); }

@media (min-width: 820px) { .peek-panel { display: none !important; } }

/* ---------- product page ---------- */
.p-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.p-bar .link-arrow { text-decoration: none; }
.p-bar .link-arrow:hover { text-decoration: underline; }
.p-bar-ref { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.product { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.product-media { flex: 1 1 560px; min-width: 0; }
.hero { position: relative; aspect-ratio: 1 / 1; background: var(--photo); overflow: hidden; }
.hero img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.hero .plate-label { font-size: 12px; }
.product-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.product-info .level-name { margin-top: 8px; font-size: 26px; line-height: 1.1; }
.product-info h1 { margin: 20px 0 0; font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.subtitle { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.buy-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.buy-price { font-size: 22px; }
.is-shame-page .buy-price { color: var(--red); }
.cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; background: var(--ink); color: var(--lift); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.cta:hover { background: var(--red); color: var(--lift); }
.price-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.description { margin: 28px 0 0; font-size: 16px; line-height: 1.65; color: var(--copy); text-wrap: pretty; }
.p-badges { margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.p-badges > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.p-badges dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.p-badges dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.label-h { margin: 40px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.shops { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.shops a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; text-decoration: none; }
.shop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-item { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.2; }
.shop-name { font-size: 13px; color: var(--muted); }
.shop-end { flex: none; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.small { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Rows that lift on hover and show their Buy now label: shops and alternatives. */
.lift-row { transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.lift-row .buy-now { opacity: 0; visibility: hidden; }
.lift-row:hover, .lift-row:focus-within { background: var(--lift); box-shadow: 0 14px 30px -14px rgba(31, 30, 27, 0.28); }
.lift-row:hover .buy-now, .lift-row:focus-within .buy-now { opacity: 1; visibility: visible; }
.shops .buy-now--plain { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.p-section { margin-top: 88px; }
.p-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 20px; }
.p-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; }
.p-head > span { font-size: 14px; color: var(--muted); }
.p-row-head { padding-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.letters { display: grid; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.letters > div { height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; border-left: 1px solid var(--line); }
.letters > div:first-child { border-left: 0; }
.t-num { display: flex; justify-content: center; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Alternatives: a tier per numbered row, two products to a row under it. */
.alts { min-width: 760px; }
.alts .letters, .a-row { grid-template-columns: 44px repeat(2, minmax(0, 1fr)); }
.a-row { display: grid; }
.a-tier .t-num { padding-top: 30px; }
.a-tier-label { grid-column: 2 / -1; padding: 28px 12px 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.a-tier-name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1; }
.a-tier-hint { font-size: 13px; color: var(--muted); }
.a-pair { align-items: stretch; }
.a-pair .t-num { background: var(--soft); }
.a-slot { min-width: 0; padding: 6px; }
.a-item { height: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 10px; }
.a-photo { position: relative; width: 96px; height: 96px; background: var(--photo); overflow: hidden; }
.a-photo img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.a-photo .na { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.a-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; }
.a-title a { text-decoration: none; }
.a-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--body); text-wrap: pretty; }
.a-where { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.a-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.a-price { font-size: 15px; }

/* Survival checklist. */
.survival { min-width: 720px; }
.s-row, .survival .letters { grid-template-columns: 44px minmax(240px, 1.4fr) 1fr 1fr; }
.survival.cols-3 .s-row, .survival.cols-3 .letters { grid-template-columns: 44px minmax(240px, 1.4fr) 1fr; }
.s-row { display: grid; }
.s-row .t-num { padding-top: 14px; }
.s-head .t-num { padding-top: 16px; }
.s-total .t-num { padding-top: 18px; }
.s-threat { padding: 12px 16px; font-size: 15px; }
.s-threat.mono { font-size: 12px; color: var(--muted); }
.s-head .s-threat { padding: 16px; display: flex; align-items: flex-end; }
.s-col { padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.s-col .kicker { letter-spacing: 0.16em; }
.s-name { font-family: var(--serif); font-weight: 600; font-size: 20px; }
a.s-name { text-decoration: none; }
.s-val { padding: 12px 16px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.v-false { color: var(--red); }
.v-maybe { color: var(--muted); }
.s-total .s-val { display: flex; align-items: baseline; gap: 10px; font-family: var(--sans); }
.score { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.score-note { font-size: 13px; color: var(--muted); font-weight: 400; }
.footnote { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* The product's own row, as on the sheet. */
.p-strip .letters, .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip { display: grid; }

.alts-m { display: none; }
.buy-bar { display: none; }

/* ---------- text pages ---------- */
.section { margin-top: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; }
.section-head > span { font-size: 14px; color: var(--muted); }
.badges { margin: 28px 0 0; border-top: 1px solid var(--line); }
.badge-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.badge-row dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.badge-row dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.badges--wide .badge-row { grid-template-columns: 160px 1fr; }
.prose-page { max-width: 820px; margin: 56px 0 0; }
.prose-page h1 { margin: 12px 0 0; font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1.02; text-wrap: balance; }
.lede { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--copy); max-width: 680px; }
.prose-page .section { margin-top: 56px; }
table.plain { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
table.plain th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
table.plain td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--body); }
table.plain tr.shame td:first-child, table.plain tr.shame td:nth-child(2) { color: var(--red); }
.rules { margin: 16px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--copy); }
.rules li { margin: 8px 0; }
.search-big { margin-top: 24px; display: flex; gap: 8px; }
.search-big input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); background: #FAF9F6; font: inherit; }
.search-big button { min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--ground); cursor: pointer; }
.results { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.results li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.results a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.result-name { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.result-blurb { font-size: 14px; color: var(--body); }

.site-footer { margin-top: 64px; padding: 24px 0 48px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.is-sheet .site-footer { margin-top: 24px; padding-bottom: 24px; }
.is-product .site-footer { margin-top: 72px; }

/* ---------- phones: the sheet becomes one strip that scrolls sideways ---------- */
@media (max-width: 819px) {
  .page { padding: 0 16px; }
  .d-only { display: none !important; }
  .m-only { display: inline; }
  .link-arrow.m-only { display: inline-flex; }
  .site-header { grid-template-columns: 44px 1fr 44px; gap: 8px; padding: 12px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .is-sheet .site-header, .is-product .site-header { padding-bottom: 10px; }
  .main-nav { display: none; }
  .menu { display: block; }
  .menu-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; background: var(--ground); border-bottom: 1px solid var(--line-strong); padding: 8px 16px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
  .menu-panel a { min-height: 44px; display: flex; align-items: center; }
  .brand { gap: 4px; }
  .logo img { height: 32px; }
  .search input, .search.is-open input, .search input:focus, .search input:not(:placeholder-shown) { display: none; }

  .tabs--top { display: flex; margin: 0 -16px; padding: 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
  .tabs--top a { padding: 0 10px; color: var(--body); }
  .tabs--bottom { display: none; }

  .category-head { padding: 20px 0 4px; border-top: 0; }
  .category-text h1 { font-size: 44px; }
  .category-text p { font-size: 14px; }
  .category-head > .link-arrow { display: none; }

  .sheet-scroll { overflow-x: auto; margin: 14px -16px 0; -webkit-overflow-scrolling: touch; }
  /* The grid scrolls sideways here and runs to the screen edges, so it has no outline. */
  .sheet { width: 722px; margin: 0; padding: 0 16px; outline: 0; }
  .row { grid-template-columns: repeat(4, 158px); column-gap: 12px; padding: 18px 0 28px; }
  .row > .num { display: none; }
  .title-cell { grid-column: 1 / -1; position: sticky; left: 16px; z-index: 1; width: min(calc(100vw - 32px), 690px); }

  .row--letters { padding: 0; }
  .row--letters .letter[data-col="A"] { display: none; }
  .row--letters .letter { height: 24px; }
  .row--letters .letter[data-col="B"] { border-left: 0; }
  /* The ink band runs to the screen edges, so its text doesn't sit on the band's edge. */
  .sheet-head { margin: 0 -16px; padding: 0 16px; }
  .row--levels { padding: 14px 0 6px; }
  .row--levels .title-cell { display: none; }
  .level-head { padding: 10px; gap: 4px; }
  .level-head .kicker { font-size: 10px; letter-spacing: 0.16em; }
  .m-col { display: inline; }
  .k-long { display: none; }
  .level-name { font-size: 20px; }
  .fear { display: none; }
  .swipe-hint { position: sticky; left: 16px; width: min(calc(100vw - 32px), 690px); display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; font-size: 11px; color: var(--muted); }
  .dots { display: flex; gap: 3px; }
  .dots i { width: 18px; height: 2px; background: var(--line-strong); }
  .dots i.on { background: var(--ink); }

  .row--lead .title-cell { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0; margin-bottom: 12px; }
  .m-num { flex: none; align-self: flex-start; min-width: 26px; height: 22px; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .title-main { flex: 1; gap: 4px; }
  .row--lead .title-cell { justify-content: flex-start; }
  .row--lead .kicker { font-size: 10px; letter-spacing: 0.16em; }
  .row--pinned .kicker svg { width: 14px; height: 14px; }
  .row-title, .is-category .row-title { font-size: 26px; line-height: 1.05; }
  .lead-type, .row-note, .toggle { display: none; }
  .m-types { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--body); text-underline-offset: 4px; }

  /* On the main sheet a category's other types live on its own sheet. */
  .is-sheet .row--sub, .is-sheet .row--more { display: none; }
  .is-category .row--more { display: grid !important; grid-template-columns: 1fr; padding: 4px 0 20px; }
  .is-category .row--more .num { display: none; }
  .is-category .more-cell { position: sticky; left: 16px; width: min(calc(100vw - 32px), 690px); padding: 0; }

  .cell { padding: 0; }
  .gap { gap: 6px; padding: 12px; }
  .na { font-size: 11px; }
  .gap-name { font-size: 18px; }
  .gap-blurb { font-size: 11px; line-height: 1.4; }
  .card { padding: 6px 6px 0; }
  .card.is-on { background: var(--lift); box-shadow: 0 18px 34px -12px rgba(31, 30, 27, 0.30), 0 2px 6px rgba(31, 30, 27, 0.06); transform: translateY(-3px); }
  .overlay { display: none; }
  .peek { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .here-tag { top: 6px; left: 6px; padding: 2px 6px; font-size: 9px; }
  .plate-label { font-size: 10px; }
  .card-text { display: flex; height: 88px; padding: 0 2px; }
  .card-name { font-size: 18px; }
  .card-text .price-row { min-height: 0; }
  .card-text .buy-now, .badge-line { display: none; }
  .price { font-size: 13px; }
  .quip { font-size: 14px; }

  .p-bar { margin: 0 -16px; padding: 0 16px; border-bottom: 1px solid var(--line); border-top-color: var(--line); }
  .p-bar .link-arrow { font-size: 13px; }
  .p-bar-ref { font-size: 11px; }
  .product { margin-top: 16px; gap: 24px; }
  .product-media, .product-info { flex-basis: 100%; }
  .product-info .kicker { font-size: 10px; }
  .product-info .level-name { margin-top: 6px; font-size: 22px; }
  .product-info h1 { margin-top: 14px; font-size: 40px; line-height: 1.02; }
  .subtitle { margin-top: 10px; font-size: 14px; }
  .has-buy-bar .buy-row, .has-buy-bar .price-note { display: none; }
  .description { margin-top: 20px; font-size: 15px; line-height: 1.6; }
  .p-badges { margin-top: 24px; gap: 14px; }
  .p-badges > div { display: flex; flex-direction: column; gap: 4px; }
  .p-badges dt { font-size: 10px; padding: 0; }
  .label-h { margin-top: 32px; }
  .shops { margin-top: 6px; }
  .shops a { padding: 6px 0; gap: 12px; }
  .shop-item { font-size: 18px; }
  .shop-name { font-size: 12px; }
  .shop-end .price { display: none; }
  .lift-row:hover, .lift-row:focus-within { background: transparent; box-shadow: none; }
  .lift-row .buy-now, .alts-m .buy-now { opacity: 1; visibility: visible; height: 32px; padding: 0 10px; }

  .p-section { margin-top: 48px; }
  .p-head { padding-bottom: 0; }
  .p-head h2 { font-size: 30px; }
  .p-head > span { font-size: 13px; }
  .p-alts .table-scroll, .p-alts .alts-note { display: none; }
  .alts-m { display: block; }
  .alts-m h3 { margin: 22px 0 6px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; }
  .alts-m ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
  .alts-m li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
  .alts-m .a-photo { width: 72px; height: 72px; }
  .alts-m .a-text { gap: 4px; }
  .alts-m .a-title { font-size: 18px; }
  .alts-m .a-price { font-size: 14px; }

  .p-survival .table-scroll { overflow: visible; }
  .survival { min-width: 0; margin-top: 14px; }
  .s-row, .survival .letters { grid-template-columns: 28px minmax(0, 1fr) 64px 64px; }
  .survival.cols-3 .s-row, .survival.cols-3 .letters { grid-template-columns: 28px minmax(0, 1fr) 64px; }
  .survival .letters { font-size: 10px; }
  .survival .letters > div { height: 22px; }
  .t-num { font-size: 10px; }
  .s-row .t-num, .s-head .t-num { padding-top: 12px; }
  .s-total .t-num { padding-top: 14px; }
  .s-threat { padding: 10px; font-size: 14px; line-height: 1.35; }
  .s-threat.mono { font-size: 11px; }
  .s-head .s-threat { padding: 12px 10px; }
  .s-col { padding: 12px 6px; }
  .s-col .kicker { font-size: 10px; letter-spacing: 0.12em; }
  .s-col .s-name { display: none; }
  .s-val { padding: 10px 6px; font-size: 11px; }
  .s-total .s-val { padding: 8px 6px; }
  .score { font-size: 20px; }
  .score-note { display: none; }
  .footnote { font-size: 12px; line-height: 1.5; }

  .p-strip .p-head { padding-bottom: 0; }
  .strip-scroll { overflow-x: auto; margin: 8px -16px 0; }
  .strip-inner { width: 722px; padding: 0 16px; }
  .p-strip .letters, .strip { grid-template-columns: repeat(4, 158px); column-gap: 12px; }
  .p-strip .letters { font-size: 10px; }
  .p-strip .letters > div { height: 22px; }
  .strip { padding: 12px 0 8px; }
  .strip .card-text { height: 68px; }
  .strip .card-foot { display: none; }

  .buy-bar { position: sticky; bottom: 0; z-index: 10; margin: 0 -16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--lift); box-shadow: 0 -14px 30px -16px rgba(31, 30, 27, 0.30); }
  .buy-bar-text { display: flex; flex-direction: column; min-width: 0; }
  .buy-bar-name { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar-price { font-size: 13px; color: var(--copy); }
  .buy-bar .cta { flex: none; padding: 0 16px; font-size: 11px; }
  .is-product .site-footer { margin-top: 32px; padding-bottom: 24px; }

  .section { margin-top: 56px; }
  .section-head h2 { font-size: 30px; }
  .badge-row { grid-template-columns: 100px 1fr; }
  .badges--wide .badge-row { grid-template-columns: 110px 1fr; }
  .prose-page { margin-top: 32px; }
  .prose-page h1 { font-size: 40px; }
}
