/* Thockery: prototype styles (adapted from static version) */
:root {
  --ink: #1a1d21;
  --ink-soft: #44484f;
  --paper: #faf8f4;
  --paper-2: #f1ede4;
  --line: #ddd6c8;
  --accent: #b6452c;
  --accent-dark: #93351f;
  --display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
/* The hidden attribute must win. Any author `display` rule beats the browser's
   [hidden] { display: none }, so a card with `display: flex` stayed on screen
   while the filter believed it was hidden: clicking Gateron still showed the
   Cherry entries. This is global rather than per-selector because every element
   with a display rule has the same problem. */
[hidden] { display: none !important; }

body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.site-header { border-bottom: 3px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
/* Wordmark, plate 01: the o sits below the baseline, a key bottomed out.
   Kept as a transform so it never affects line box or layout. */
.logo-drop { display: inline-block; transform: translateY(.085em); will-change: transform; }

/* Wordmark hover: a chord.
   T, H, C and K are already inside the name, in order, so hovering presses
   exactly those four and tints them. They travel to .085em, which is where the
   o already rests, so for the length of the hold all five sit level and the
   word bottoms out together. A chord rather than a typed sequence because a
   chord is pressed and held, which is legible at 21px where three pixels of
   sequential movement is not.
   Colour does the work at small sizes; the movement is the reward for looking. */
.logo span { display: inline-block; }
.logo-k { transition: color .2s ease; }

@keyframes logo-chord {
  0%   { transform: translateY(0); animation-timing-function: cubic-bezier(.5,0,.75,.35); }
  26%  { transform: translateY(.085em); animation-timing-function: linear; }
  70%  { transform: translateY(.085em); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  100% { transform: translateY(0); }
}

.logo:hover .logo-k,
.logo:focus-visible .logo-k { color: var(--accent); animation: logo-chord .52s both; }

@media (prefers-reduced-motion: reduce) {
  /* The tint still happens: it is the half that carries the idea. */
  .logo:hover .logo-k,
  .logo:focus-visible .logo-k { animation: none; }
}
}
.proto-badge { font-size: 11px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 10px; vertical-align: middle; margin-left: 6px; font-weight: 700; letter-spacing: .05em; }
/* Two-tier header. The top row is three fixed groups; the row below shows the
   section you are in and its siblings, generated in src/lib/nav.ts. The old
   header was eight flat peers that could neither wrap nor scroll, so on a
   phone five sections were unreachable. */
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; padding: 6px 11px; border-radius: 6px; }
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a.is-active { color: var(--ink); background: var(--paper-2); }

/* Admin is dev-only and was padding the public row. Now a single glyph at the
   end of it, and a labelled row in the mobile sheet. */
.nav-admin {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px dashed var(--accent); border-radius: 6px;
  color: var(--accent-dark); text-decoration: none; font-size: 13px;
}

.nav-toggle {
  display: none; flex: none; appearance: none; cursor: pointer;
  width: 38px; height: 38px; border: 1px solid var(--rule, #e3ded2); border-radius: 8px;
  background: transparent; padding: 0; place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 17px; height: 1.8px; background: var(--ink); border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5.5px; }
.nav-toggle-bars::after { top: 5.5px; }

.subnav-wrap { border-top: 1px solid var(--rule-soft, #efeae0); background: var(--paper-2); }
.subnav {
  display: flex; align-items: center; gap: 6px;
  padding-top: 8px; padding-bottom: 8px;
  overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.subnav-crumb {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft); padding-right: 4px; white-space: nowrap;
}
.subnav-item {
  flex: none; white-space: nowrap; text-decoration: none;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.subnav-item:hover { background: #fff; border-color: var(--rule, #e3ded2); color: var(--ink); }
.subnav-item.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.subnav-item.is-dim { color: var(--ink-soft); opacity: .55; }
.subnav-n { opacity: .6; font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }

.site-sheet { border-top: 1px solid var(--rule-soft, #efeae0); background: #fff; padding: 4px 0 16px; }
.site-sheet[hidden] { display: none !important; }
.sheet-group { padding: 10px 0 2px; }
.sheet-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 2px;
}
.sheet-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 2px; text-decoration: none; color: var(--ink);
  font-size: 15.5px; font-weight: 600; border-bottom: 1px solid var(--rule-soft, #efeae0);
}
.sheet-link:last-child { border-bottom: 0; }
.sheet-link.is-dim { color: var(--ink-soft); font-weight: 500; }
.sheet-n { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Below this width the three-group row plus the logo stops fitting
   comfortably, so it becomes a button. */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
  .nav-admin { display: none; }
  .subnav { padding-left: 20px; padding-right: 20px; }
}

.page-body { padding-top: 40px; padding-bottom: 80px; }
.hero { border-bottom: 3px solid var(--ink); padding-bottom: 30px; margin-bottom: 8px; }
.hero h1 { font-family: var(--serif); font-size: 2.8rem; line-height: 1.1; margin: 0 0 12px; font-weight: 600; }
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; margin: 0; }
.hero a { color: var(--accent-dark); }

.hub-section { margin-top: 44px; scroll-margin-top: 90px; }
.hub-heading { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.3rem; margin: 0; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-desc { font-size: 14.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.card-link { font-size: 13px; font-weight: 700; color: var(--accent-dark); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.card-link:hover { text-decoration: underline; }

.lesson { max-width: 780px; margin: 0 auto; }
.lesson-meta { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lesson-back { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; }
.lesson-back a { color: var(--accent-dark); }

.lesson h1 { font-family: var(--serif); font-size: 2.5rem; line-height: 1.12; margin: 0 0 8px; }
.lesson h2 { font-family: var(--serif); font-size: 1.7rem; margin: 2em 0 0.5em; padding-top: 0.35em; border-top: 1px solid var(--line); }
.lesson h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }
.lesson p { margin: 0 0 1.1em; }
.lesson a { color: var(--accent-dark); }
.lesson img { max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: 4px; }
.lesson em { display: block; text-align: center; font-size: 14px; color: var(--ink-soft); margin: -10px auto 20px; font-style: italic; max-width: 90%; }
.lesson ul, .lesson ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.lesson li { margin-bottom: 0.35em; }
.lesson li ul { margin-top: 0.2em; }
.lesson blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--accent); background: var(--paper-2); font-style: italic; color: var(--ink-soft); }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 28px 0; color: var(--ink-soft); font-size: 14px; margin-top: 60px; }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; overflow-x: auto; }
}

/* ---------- Keyboard / switch database templates ---------- */

.crumb { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 16px; font-weight: 600; }
.crumb a { color: var(--accent-dark); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.db-title { font-family: var(--serif); font-size: 2.5rem; line-height: 1.12; margin: 0 0 6px; font-weight: 600; }
.db-sub { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 20px; max-width: 680px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.chip { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); padding: 4px 12px; border-radius: 999px; }
.chip-accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-price { background: #fff; border-color: var(--accent); color: var(--accent-dark); }

.db-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 36px; align-items: start; margin-top: 8px; }
.db-figure { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; place-items: center; }
/* height:auto is required. The width and height attributes added for CLS act
   as a fixed height otherwise, which makes aspect-ratio inert and letterboxes
   the photo inside a 900px tall box. */
.db-figure img { width: 100%; height: auto; max-width: 540px; object-fit: contain; display: block; }

.facts { border-top: 1px solid var(--line); margin-top: 8px; }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.fact dt { color: var(--ink-soft); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.fact dd { margin: 0; }
.fact dd .chips { margin: 0; }
.fact-check { font-size: 12px; color: var(--ink-soft); }

.db-h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.db-blurb { max-width: 720px; white-space: pre-line; color: var(--ink); }

.buy-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.buy-list { display: grid; gap: 10px; max-width: 520px; }
.buy-btn { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; transition: border-color .12s ease, box-shadow .12s ease; }
.buy-btn small { color: var(--ink-soft); font-weight: 400; }
.buy-btn .arr { color: var(--accent); font-weight: 800; }
.buy-btn:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: block; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.rel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.07); }
.rel-card .eyebrow { margin-bottom: 4px; font-size: 11px; }
.rel-card h3 { font-family: var(--serif); font-size: 1.12rem; margin: 0; line-height: 1.3; }
.rel-card h3 span { color: var(--accent-dark); }

.db-back { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 16px; }
.db-back a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }

/* Index grids */
.page-intro { border-bottom: 3px solid var(--ink); padding-bottom: 22px; margin-bottom: 26px; }
.page-intro h1 { font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; margin: 0 0 8px; font-weight: 600; }
.page-intro p { margin: 0; color: var(--ink-soft); max-width: 700px; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform .13s ease, box-shadow .13s ease; }
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
/* Card media is a fixed 4:3 box and the image covers it, so every card is the
   same height whatever shape the vendor's product shot happens to be. With
   object-fit: contain the card inherited the source ratio and a row of cards
   came out ragged. The detail page keeps `contain`, because there the whole
   product should be visible. */
.prod-media { background: #f7f4ed; padding: 0; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.prod-media img { width: 100%; height: 100%; max-height: none; max-width: none; aspect-ratio: auto; object-fit: cover; object-position: center; display: block; }
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body .eyebrow { margin: 0; }
.prod-name { font-family: var(--serif); font-size: 1.28rem; margin: 0; line-height: 1.22; }
.prod-name a { color: var(--ink); text-decoration: none; }
.prod-name a:hover { color: var(--accent); }
.prod-desc { font-size: 13.5px; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-link { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); text-decoration: none; }
.prod-link:hover { text-decoration: underline; }

.db-group { margin-top: 34px; scroll-margin-top: 90px; }
.db-group > h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 4px; font-weight: 600; }
.db-group-count { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }

@media (max-width: 760px) {
  .db-grid { grid-template-columns: 1fr; gap: 20px; }
  .fact { grid-template-columns: 118px 1fr; }
}

/* ============================================================
   Site styles, scoped under body.dbv-b. Three variants were built
   so the design could be chosen; B was adopted site-wide and the
   A and C rules were removed once that was settled. The class is
   kept because every rule below is scoped to it.
   ============================================================ */

/* --- shared classes used by DbCard / DbIndex / DbDetail --- */
.prod-brand { text-transform: uppercase; font-size: 11.5px; letter-spacing: .14em; font-weight: 800; color: var(--ink-soft); margin: 0 0 2px; }
.intro-count { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }
.db-title-chips { margin: 0 0 16px; }
.chip-kind { background: var(--ink); border-color: var(--ink); color: #fff; }
.is-active { color: var(--ink) !important; background: var(--paper-2) !important; }
.buy-btn-host { display: inline-flex; align-items: baseline; gap: 7px; }
.buy-btn-label { font-weight: 700; }

/* mobile header: single compact scrollable nav row for all DB pages */
@media (max-width: 640px) {
  .dbv-b .header-inner { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .dbv-b .logo { font-size: 17px; white-space: nowrap; }
  .dbv-b .site-nav { width: auto; flex: 1; overflow-x: auto; flex-wrap: nowrap; }
  .dbv-b .site-nav a { white-space: nowrap; padding: 6px 9px; font-size: 13.5px; }
  .dbv-b .page-body { padding-top: 24px; }
}

/* ================= A: REFINED EDITORIAL (default) ================= */

/* ================= B: CLEAN MODERN ================= */
.dbv-b { --paper: #ffffff; --paper-2: #f5f5f6; --ink: #181a1c; --ink-soft: #5c636e; --line: #e6e6e3; --accent: #c13a22; --accent-dark: #a02e18; background: #fff; }
.dbv-b .site-header { background: #fff; border-bottom: 1px solid var(--line); }
.dbv-b .site-nav a { color: #4b515b; font-size: 14px; }
.dbv-b .site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.dbv-b .nav-admin { border: 1px solid #d8d8dd; color: #4b515b !important; border-radius: 999px; padding: 4px 12px; }
.dbv-b .logo { font-family: var(--display); font-weight: 400; letter-spacing: -.03em; font-size: 21px; }
.dbv-b h1, .dbv-b h2, .dbv-b h3 { font-family: var(--sans); }
.dbv-b .eyebrow { color: #8a9099; font-weight: 700; font-size: 11px; }
.dbv-b .page-intro { border-bottom: 1px solid var(--line); }
.dbv-b .page-intro h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.025em; }
.dbv-b .page-intro p { color: #5c636e; font-size: 1rem; }
.dbv-b .intro-count { color: #9aa0a8; }
.dbv-b .db-group > h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.dbv-b .db-group-count { color: #9aa0a8; font-size: 12.5px; }
.dbv-b .prod-card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.dbv-b .prod-card:hover { box-shadow: 0 10px 22px rgba(16,24,40,.09); }
.dbv-b .prod-media { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.dbv-b .prod-name { font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
.dbv-b .prod-brand { color: #8a9099; font-size: 10.5px; }
.dbv-b .prod-desc { color: #5c636e; }
.dbv-b .prod-link { color: var(--ink); font-size: 12px; }
.dbv-b .chip { background: var(--paper-2); border: none; color: #3c4149; font-size: 12px; font-weight: 650; }
.dbv-b .chip-kind { background: var(--ink); color: #fff; }
.dbv-b .chip-price { background: #fdeee9; color: var(--accent-dark); }
.dbv-b .db-title-chips { margin-bottom: 18px; }
.dbv-b .crumb { color: #9aa0a8; }
.dbv-b .db-figure { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.dbv-b .db-figure img { max-width: 600px; filter: drop-shadow(0 12px 22px rgba(16,24,40,.10)); }
.dbv-b .facts { border-top: 1px solid var(--line); }
.dbv-b .fact { border-bottom: 1px solid var(--line); }
.dbv-b .fact dt { color: #8a9099; font-weight: 700; }
.dbv-b .db-h2 { font-family: var(--sans); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; border-bottom: 2px solid var(--ink); }
.dbv-b .buy-btn { background: var(--accent); border: none; color: #fff; border-radius: 9px; font-size: 14.5px; box-shadow: 0 1px 2px rgba(193,58,34,.25); }
.dbv-b .buy-btn:hover { background: var(--accent-dark); }
.dbv-b .buy-btn small { color: rgba(255,255,255,.8); }
.dbv-b .buy-btn .arr { color: #fff; }
.dbv-b .rel-card { border-radius: 10px; }
.dbv-b .rel-card h3 { font-size: 1.02rem; font-weight: 700; }
.dbv-b .rel-card .eyebrow { font-size: 10px; }
.dbv-b .site-footer { background: #fff; border-top: 1px solid var(--line); color: #9aa0a8; }

/* ================= C: PRINT CATALOG ================= */

/* ================= B: whole-site pages (home / lessons / blog) ================= */

.dbv-b .b-hero { padding: 10px 0 34px; border-bottom: 1px solid var(--line); }
.dbv-b .b-hero h1 { font-family: var(--sans); font-size: clamp(2.3rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin: 0 0 16px; }
.dbv-b .b-hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 640px; margin: 0 0 22px; line-height: 1.6; }
.dbv-b .b-hero-meta { font-size: 12.5px; color: #9aa0a8; margin: 14px 0 0; }
.dbv-b .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dbv-b .btn { display: inline-block; font-weight: 750; font-size: 15px; padding: 11px 20px; border-radius: 9px; text-decoration: none; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.dbv-b .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(193,58,34,.25); }
.dbv-b .btn-primary:hover { background: var(--accent-dark); }
.dbv-b .btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.dbv-b .btn-ghost:hover { background: var(--ink); color: #fff; }

.dbv-b .b-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dbv-b .b-card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.dbv-b .b-card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dbv-b .b-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.dbv-b .b-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,24,40,.09); border-color: #d9d9d4; }
.dbv-b .b-card h3 { font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; margin: 0; line-height: 1.3; }
.dbv-b .b-card h3 + p { flex: 1; }
.dbv-b .b-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin: 0; }
.dbv-b .b-card .b-card-tag { color: #8a9099; text-transform: uppercase; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; margin-bottom: 4px; }
.dbv-b .b-card .b-card-count { font-size: 12px; color: #9aa0a8; font-weight: 600; margin-top: 8px; }
.dbv-b .b-card .arr { color: var(--accent); font-size: 17px; font-weight: 800; margin-top: 8px; line-height: 1; }
.dbv-b .b-card-lesson h3 { font-size: 1.04rem; }

.dbv-b .b-section { margin-top: 44px; }
.dbv-b .b-section > h2, .dbv-b .b-head-row h2 { font-family: var(--sans); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.dbv-b .b-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dbv-b .b-all-link { color: var(--accent-dark); font-weight: 700; font-size: 14px; text-decoration: none; }
.dbv-b .b-all-link:hover { text-decoration: underline; }

.dbv-b .b-post-featured { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; margin-bottom: 22px; text-decoration: none; color: var(--ink); transition: box-shadow .12s ease, transform .12s ease; }
.dbv-b .b-post-featured:hover { box-shadow: 0 12px 26px rgba(16,24,40,.09); transform: translateY(-2px); }
.dbv-b .b-post-featured h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; }
.dbv-b .b-post-featured p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 640px; }
.dbv-b .b-post-meta { display: block; color: #9aa0a8; font-size: 12px; font-weight: 600; margin-top: 12px; }
.dbv-b .b-post-arr { font-size: 26px; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.dbv-b .b-card .b-post-meta { margin-top: 8px; }

/* lesson/article pages inside variant B */
.dbv-b .lesson h1 { font-family: var(--sans); font-size: 2.35rem; font-weight: 800; letter-spacing: -.025em; }
.dbv-b .lesson h2 { font-family: var(--sans); border-top: none; padding-top: 0; font-size: 1.42rem; font-weight: 800; letter-spacing: -.015em; margin-top: 1.9em; }
.dbv-b .lesson h3 { font-weight: 750; }
.dbv-b .lesson img { border-radius: 12px; }
.dbv-b .lesson blockquote { background: #f7f7f8; border-left-color: var(--accent); }
.dbv-b .lesson-back { border-top-color: var(--line); }

@media (max-width: 760px) {
  .dbv-b .b-post-featured { flex-direction: column; align-items: flex-start; }
}

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- lesson prev / next ---------- */
.lesson-nav { max-width: 780px; margin: 46px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lesson-nav-link { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.lesson-nav-link:hover { border-color: #d9d9d4; box-shadow: 0 8px 18px rgba(16,24,40,.07); transform: translateY(-2px); }
.lesson-nav-link.is-next { text-align: right; grid-column: 2; }
.lesson-nav-dir { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
.lesson-nav-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.lesson-meta a { color: inherit; text-decoration: none; }
.lesson-meta a:hover { color: var(--accent-dark); }

/* ---------- homepage band ---------- */
.dbv-b .b-band { margin-top: 34px; }

@media (max-width: 640px) {
  .lesson-nav { grid-template-columns: 1fr; }
  .lesson-nav-link.is-next { grid-column: 1; text-align: left; }
}

.dbv-b .section-blurb { color: var(--ink-soft); margin: -8px 0 18px; max-width: 60ch; font-size: .95rem; }

.dbv-b .empty-state { border: 1px dashed var(--line); border-radius: 12px; padding: 26px 28px; color: var(--ink-soft); max-width: 62ch; }
.dbv-b .empty-state p { margin: 0 0 8px; }
.dbv-b .empty-state p:last-child { margin-bottom: 0; }
.dbv-b .empty-state strong { color: var(--ink); }

.dbv-b .index-backlinks { max-width: 780px; margin: 44px auto 0; }
.dbv-b .index-backlinks .db-h2 { margin-top: 0; }

/* ---------- article furniture ---------- */
.dbv-b .lesson-standfirst { font-size: 1.12rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; max-width: 60ch; }
.dbv-b .lesson-byline { display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; color: #9aa0a8; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.dbv-b .lesson-byline .meta-sep::before,
.dbv-b .lesson-meta .meta-sep::before { content: "·"; margin: 0 8px; opacity: .55; }
.dbv-b .lesson-meta { display: flex; flex-wrap: wrap; border-bottom: none; padding-bottom: 0; margin-bottom: 10px; }

.dbv-b .lesson-toc { background: var(--paper-2); border-radius: 12px; padding: 18px 22px 20px; margin: 0 0 34px; }
.dbv-b .lesson-toc-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #8a9099; margin: 0 0 10px; }
.dbv-b .lesson-toc ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 5px; }
.dbv-b .lesson-toc li { margin: 0; font-size: 14.5px; }
.dbv-b .lesson-toc a { color: var(--ink); text-decoration: none; }
.dbv-b .lesson-toc a:hover { color: var(--accent-dark); text-decoration: underline; }

/* headings are link targets from the contents list, so keep them clear of the
   sticky header when jumped to */
.dbv-b .lesson h2, .dbv-b .lesson h3 { scroll-margin-top: 84px; }

/* ---------- glossary ---------- */
.dbv-b .glossary-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 780px; margin: 0 auto 30px; padding: 14px 16px; background: var(--paper-2); border-radius: 12px; }
.dbv-b .glossary-jump a { min-width: 30px; text-align: center; padding: 4px 7px; border-radius: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); }
.dbv-b .glossary-jump a:hover { border-color: var(--accent); color: var(--accent-dark); }
.dbv-b .glossary-count { margin-left: auto; font-size: 12px; color: #9aa0a8; }
.dbv-b .glossary-term { scroll-margin-top: 84px; }
.dbv-b .glossary-term:target { background: var(--accent-soft, #fdeee9); border-radius: 6px; box-shadow: 0 0 0 8px var(--accent-soft, #fdeee9); }

/* ---------- glossary, continued ---------- */
/* The A to Z index is only useful while scrolling a 53 term page. */
.dbv-b .glossary-jump { position: sticky; top: 58px; z-index: 20; background: var(--paper-2); }

.dbv-b .glossary-letter {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-dark);
  margin: 40px 0 4px; padding: 0 0 8px; border-top: none; border-bottom: 2px solid var(--ink);
  scroll-margin-top: 116px;
}
.dbv-b .lesson .glossary-letter:first-of-type { margin-top: 22px; }

/* Each term is a lookup target, so give it edges rather than leaving 53
   paragraphs to run together. */
.dbv-b .glossary-term {
  margin: 0; padding: 14px 0 15px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 116px;
}
.dbv-b .glossary-term strong { font-weight: 800; letter-spacing: -.01em; }
.dbv-b .glossary-term:target {
  background: var(--accent-soft, #fdeee9); border-radius: 8px;
  box-shadow: 0 0 0 10px var(--accent-soft, #fdeee9); border-bottom-color: transparent;
}

/* The article stylesheet renders every <em> as a centred image caption, which
   turns the glossary's "For example:" asides into stray centred fragments.
   Inside the glossary they are inline notes, not captions. */
.dbv-b .lesson .glossary-term em,
.dbv-b .lesson .glossary-term + p em {
  display: inline; text-align: left; font-size: inherit; color: inherit; margin: 0; max-width: none;
}

/* ---------- index filters ---------- */
.dbv-b .filters { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; padding: 18px 20px; background: var(--paper-2); border-radius: 12px; margin: 0 0 14px; }
.dbv-b .fgroup { display: flex; flex-direction: column; gap: 7px; }
.dbv-b .flabel { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a9099; }
.dbv-b .fchips { display: flex; gap: 5px; flex-wrap: wrap; }
.dbv-b .fchip { font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.dbv-b .fchip:hover { border-color: #c9c9c4; }
.dbv-b .fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dbv-b .filters input[type="range"] { width: 165px; accent-color: var(--accent); }
.dbv-b .frange { color: var(--ink); font-variant-numeric: tabular-nums; }
.dbv-b .freset { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; background: none; border: none; color: var(--accent-dark); text-decoration: underline; padding: 6px 0; }
.dbv-b .fcount { font-size: 13px; color: #9aa0a8; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.dbv-b .fempty { color: var(--ink-soft); margin: 18px 0; }
.dbv-b .fempty button, .dbv-b .freset-inline { font: inherit; cursor: pointer; background: none; border: none; color: var(--accent-dark); text-decoration: underline; padding: 0; }

.dbv-b .table-cta { margin: 0 0 26px; }
.dbv-b .table-cta a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 9px; padding: 9px 16px; }
.dbv-b .table-cta a:hover { background: var(--ink); color: #fff; }
.dbv-b .table-cta .arr { color: var(--accent); font-weight: 800; }
.dbv-b .table-cta a:hover .arr { color: #fff; }

/* ---------- comparison table ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dbv-b .cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.dbv-b .cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.dbv-b .cmp th, .dbv-b .cmp td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dbv-b .cmp thead th { position: sticky; top: 0; background: var(--paper-2); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a9099; font-weight: 800; }
.dbv-b .cmp thead button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.dbv-b .cmp thead button:hover { color: var(--ink); }
.dbv-b .cmp thead th[aria-sort] button { color: var(--ink); }
.dbv-b .cmp thead th[aria-sort="ascending"] button::after { content: "▲"; font-size: 8px; }
.dbv-b .cmp thead th[aria-sort="descending"] button::after { content: "▼"; font-size: 8px; }
.dbv-b .cmp tbody tr:hover { background: var(--paper-2); }
.dbv-b .cmp tbody tr:last-child th, .dbv-b .cmp tbody tr:last-child td { border-bottom: none; }
.dbv-b .cmp tbody th { font-weight: 650; }
.dbv-b .cmp tbody th a { color: var(--ink); text-decoration: none; }
.dbv-b .cmp tbody th a:hover { color: var(--accent-dark); text-decoration: underline; }
.dbv-b .cmp .n { font-variant-numeric: tabular-nums; }
.dbv-b .cmp .is-yes { color: var(--accent-dark); font-weight: 700; }
.dbv-b .cmp .is-no { color: #c4c4bf; }
.dbv-b .cmp .cmp-detail { white-space: normal; min-width: 210px; color: var(--ink-soft); font-size: 13px; }
.dbv-b .cmp-note { font-size: 13px; color: #9aa0a8; margin: 14px 0 0; max-width: 62ch; }

/* ---------- byline and author box ---------- */
.dbv-b .lesson-byline .byline-who { color: var(--ink); font-weight: 650; }
.dbv-b .lesson-byline .byline-who a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.dbv-b .lesson-byline .byline-who a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.dbv-b .author-box { max-width: 780px; margin: 44px auto 0; padding: 18px 22px; background: var(--paper-2); border-radius: 12px; }
.dbv-b .author-box p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.dbv-b .author-box .author-name { color: var(--ink); font-weight: 750; font-size: 14.5px; margin-bottom: 5px; }
.dbv-b .author-box a { color: var(--accent-dark); }


/* ---------- editorial footer ---------- */
.dbv-b .site-footer { background: #fff; border-top: 1px solid var(--line); color: #9aa0a8; padding: 40px 0 30px; }
.dbv-b .foot-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.dbv-b .foot-mark { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: -.03em; color: var(--ink); }
.dbv-b .foot-promise { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 10px 0 0; max-width: 52ch; }
.dbv-b .foot-promise strong { color: var(--ink); font-weight: 650; }
.dbv-b .foot-promise a { color: var(--accent-dark); }
.dbv-b .foot-counts { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 14px; }
.dbv-b .foot-counts div { display: flex; flex-direction: column; }
.dbv-b .foot-n { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dbv-b .foot-k { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #9aa0a8; margin-top: 5px; }
.dbv-b .foot-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.dbv-b .foot-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.dbv-b .foot-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.dbv-b .foot-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 760px) {
  .dbv-b .foot-top { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- contact form ---------- */
.dbv-b .contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.dbv-b .contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.dbv-b .contact-form label { font-size: 13px; font-weight: 750; color: var(--ink); }
.dbv-b .contact-form .opt { font-weight: 400; color: #9aa0a8; }
.dbv-b .contact-form .hint { font-size: 12.5px; color: #9aa0a8; line-height: 1.45; }
.dbv-b .contact-form input[type="text"],
.dbv-b .contact-form input[type="email"],
.dbv-b .contact-form select,
.dbv-b .contact-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%;
}
.dbv-b .contact-form textarea { resize: vertical; min-height: 120px; }
.dbv-b .contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--accent); }
.dbv-b .contact-form button { align-self: flex-start; cursor: pointer; border: none; }
.dbv-b .hidden-field { position: absolute; left: -9999px; }
.dbv-b .foot-base-links { display: flex; gap: 14px; flex-wrap: wrap; }
.dbv-b .foot-base-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.dbv-b .foot-base-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.dbv-b .foot-base { justify-content: flex-start; gap: 26px; }

/* Article tables. The rewritten articles are the first to use them, so these
   are new. `display: block` on the table is what makes overflow-x work: a
   table in its normal display mode ignores it and pushes the page sideways
   instead, which is the one layout failure that ruins a page on a phone. */
.lesson table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}
.lesson table th,
.lesson table td {
  padding: 0.55rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule, #e5e5e5);
}
.lesson table th {
  font-weight: 600;
  white-space: nowrap;
  border-bottom-width: 2px;
}
.lesson table tr:last-child td { border-bottom: none; }

/* Paid-link marker and disclosure. The marker sits on the button itself
   because a disclosure at the bottom of a section is not what someone about
   to click a button is reading. */
.buy-paid {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.08rem 0.4rem;
  border: 1px solid var(--rule, #e5e5e5);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  opacity: 0.75;
}
.buy-disclosure {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.7;
}

/* Facet link rows, on the index and at the foot of each facet page. */
.facet-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.facet-links a {
  text-decoration: none; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule, #e5e5e5); border-radius: 999px;
  padding: 5px 13px; font-size: 14px; font-weight: 600;
}
.facet-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.facet-links a small { opacity: .6; font-weight: 500; margin-left: 2px; }
.facet-links-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.facet-more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule, #e5e5e5); }
.facet-brands { font-size: 14.5px; color: var(--ink-soft); margin: 14px 0 0; }

/* Brand cards and brand page blocks. */
.brand-card { text-decoration: none; }
.brand-card-count { margin: auto 0 0; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.brand-facts { max-width: 520px; margin: 8px 0 32px; }
.brand-summary { margin: 0 0 40px; }
.brand-sources, .brand-official { font-size: 15px; color: var(--ink-soft); }

/* Brand directory: a logo grid. Tiles are a fixed height so the grid reads as
   one object regardless of how tall each logo is, and a brand with no logo on
   file shows a wordmark rather than an empty box. */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.brand-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 20px 14px 16px;
  border: 1px solid var(--rule, #e5e5e5); border-radius: 10px;
  background: #fff; text-decoration: none; color: var(--ink);
}
.brand-tile:hover { border-color: var(--ink); }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  height: 46px; width: 100%; margin-bottom: 4px;
}
.brand-logo img { max-height: 46px; max-width: 100%; object-fit: contain; }
.brand-monogram {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--paper-2); color: var(--ink-soft);
  font-family: var(--display); font-size: 16px; letter-spacing: -.02em;
}
.brand-tile-name { font-size: 14.5px; font-weight: 600; }
.brand-tile-meta { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

/* Brand detail blocks. */
.brand-verdict { display: grid; gap: 14px; margin: 0 0 36px; }
.brand-verdict .vrow { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.brand-verdict dt { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.brand-verdict dd { margin: 0; }
.brand-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand-hero .brand-logo { width: auto; min-width: 90px; height: 54px; }
.brand-hero .brand-monogram { width: 54px; height: 54px; font-size: 19px; }
.brand-rel { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.brand-rel a { font-weight: 600; }
.brand-rel span { color: var(--ink-soft); }
.brand-legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule, #e5e5e5); font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 620px) {
  .brand-verdict .vrow { grid-template-columns: 1fr; gap: 4px; }
}

/* Sponsor slot. One strip under the header, in two states. Deliberately short:
   it sits above the content on every page, so anything taller than a line
   would be the site's most prominent element, which a sponsor has not paid
   enough for. */
.sponsor { border-bottom: 1px solid var(--rule, #e3ded2); font-size: 13.5px; }
.sponsor-inner { display: flex; align-items: baseline; gap: 10px; padding-top: 7px; padding-bottom: 7px; }
.sponsor-tag {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
}
.sponsor-link { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; text-decoration: none; min-width: 0; }
.sponsor-link strong { font-weight: 700; }
.sponsor-line { color: var(--ink-soft); }
.sponsor-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  border: 1px dashed currentColor; border-radius: 4px; padding: 0 6px; opacity: .85;
}
.sponsor .arr { opacity: .5; }

.sponsor.is-live { background: var(--paper-2, #f1ede4); }
.sponsor.is-live .sponsor-tag { background: var(--ink, #1a1d21); color: var(--paper, #faf8f4); }
.sponsor.is-live .sponsor-link { color: var(--ink, #1a1d21); }
.sponsor.is-live .sponsor-link:hover strong { color: var(--accent-dark, #93351f); }

/* The empty state is quieter than a real sponsor, because it should never be
   mistaken for one. */
.sponsor.is-open { background: transparent; }
.sponsor.is-open .sponsor-tag { background: transparent; border: 1px dashed var(--accent, #b6452c); color: var(--accent-dark, #93351f); }
.sponsor.is-open .sponsor-link { color: var(--ink-soft, #44484f); }
.sponsor.is-open .sponsor-link strong { color: var(--ink, #1a1d21); }
.sponsor.is-open .sponsor-link:hover strong { color: var(--accent-dark, #93351f); }

@media (max-width: 700px) {
  .sponsor { font-size: 12.5px; }
  /* On a phone the explanation is the first thing under the logo, which is too
     much. The offer and the name still read. */
  .sponsor.is-open .sponsor-line { display: none; }
}

/* Hero, two columns. The headline used to run the container's full width
   against a 640px standfirst, which is why the right side read as a ragged
   void rather than a column. */
.dbv-b .b-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.dbv-b .b-hero-main { min-width: 0; }
.dbv-b .b-hero-grid .b-hero-sub { max-width: 46ch; }
@media (max-width: 860px) {
  .dbv-b .b-hero-grid { grid-template-columns: 1fr; gap: 26px; }
}

.hero-aside { border: 1px solid var(--line, #e3ded2); border-radius: 10px; background: #fff; padding: 17px 17px 16px; }

/* Default occupant: the figures, which are the site's own argument. */
.idx-head { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.idx-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; margin-bottom: 12px; }
.idx-fig b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.idx-fig span { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.idx-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 12px; padding-top: 11px; border-top: 1px solid var(--line, #e3ded2); }
.idx-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.idx-chips a { font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--line, #e3ded2); border-radius: 999px; padding: 3px 9px; }
.idx-chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.idx-chips a span { opacity: .55; font-weight: 500; }

/* Sponsor card. Bordered and tagged so it reads as a card rather than as the
   site's own voice, which is what keeps a paid box from looking like an
   endorsement. */
.sp-tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; margin-bottom: 12px; }
.sp-card.is-live .sp-tag { background: var(--ink); color: var(--paper); }
.sp-card.is-open .sp-tag { border: 1px dashed var(--accent); color: var(--accent-dark); }
.sp-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.sp-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 12px; }
.sp-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; border: 1px dashed var(--ink-soft); border-radius: 4px; padding: 2px 9px; margin-bottom: 10px; }
.sp-kit { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px; }
.sp-kit li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; border-bottom: 1px solid var(--line, #e3ded2); padding-bottom: 4px; }
.sp-kit b { font-variant-numeric: tabular-nums; }
.sp-cta { display: inline-block; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--accent-dark); }
.sp-fine { font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line, #e3ded2); }

/* The sponsorship ask, on the index panel. Sits below the chips, quieter than
   the panel's own figures: it is an offer, not the panel's purpose. */
.idx-avail {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line, #e3ded2);
  text-decoration: none; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft);
}
.idx-avail-tag {
  flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px dashed var(--accent); color: var(--accent-dark);
  padding: 2px 7px; border-radius: 3px;
}
.idx-avail-text strong { color: var(--ink); }
.idx-avail:hover .idx-avail-text strong { color: var(--accent-dark); }
.idx-avail .arr { opacity: .5; }


/* Sponsorship frame: option 2, a dashed outline around the panel with the
   label riding the top edge. Hovering it previews a real placement in the same
   box, which is the most direct way to show a company what they would get. */
.spot-frame { position: relative; border: 1.5px dashed var(--accent); border-radius: 12px; padding: 15px 13px 12px; }
.spot-legend {
  position: absolute; top: 0; left: 16px; transform: translateY(-50%);
  background: var(--paper); padding: 0 9px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark);
}
/* Both legends occupy the same space so the frame edge never reflows. */
.spot-legend-demo { display: none; }
.spot-frame:hover .spot-legend-open,
.spot-frame:focus-within .spot-legend-open { display: none; }
.spot-frame:hover .spot-legend-demo,
.spot-frame:focus-within .spot-legend-demo { display: inline; }

/* One grid cell, two occupants: the frame is as tall as the taller of them and
   nothing moves when they cross-fade. */
.spot-stack { display: grid; }
.spot-stack > * { grid-area: 1 / 1; transition: opacity .22s ease; }
.spot-stack .spot-demo { opacity: 0; pointer-events: none; }
.spot-frame:hover .spot-real,
.spot-frame:focus-within .spot-real { opacity: 0; }
.spot-frame:hover .spot-demo,
.spot-frame:focus-within .spot-demo { opacity: 1; }

.spot-demo { display: flex; flex-direction: column; justify-content: center; }
.spot-demo-tag {
  align-self: flex-start; font-size: 9.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
  background: var(--ink); color: var(--paper); margin-bottom: 12px;
}
.spot-demo-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.spot-demo-text { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 12px; }
.spot-demo-cta { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin: 0; }
.spot-demo-fine { font-size: 11.5px; color: var(--ink-soft); margin: 12px 0 0; padding-top: 9px; border-top: 1px solid var(--line, #e3ded2); }

.spot-cta {
  display: block; margin-top: 11px; text-align: center; text-decoration: none;
  font-size: 12.5px; font-weight: 600; color: var(--accent-dark);
}
.spot-cta:hover { text-decoration: underline; }
.spot-cta .arr, .spot-demo-cta .arr { opacity: .55; }

/* The preview is an enhancement. Without motion it still swaps, just instantly. */
@media (prefers-reduced-motion: reduce) {
  .spot-stack > * { transition: none; }
}

/* The sample offer inside the preview. A coupon is the one part of a mock
   placement somebody might actually try, so the code is labelled as a sample
   right next to it rather than only in the small print underneath. */
.spot-demo-offer { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.spot-demo-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 700;
  color: var(--ink); border: 1px dashed var(--accent); border-radius: 4px; padding: 2px 9px;
}
.spot-demo-codenote { font-size: 10.5px; font-style: italic; color: var(--ink-faint, #8c9099); }


/* Comparison tables, one per collection. Scrolls inside its own container so
   a wide table never widens the page. */
.dbtable-wrap { overflow-x: auto; border: 1px solid var(--line, #e3ded2); border-radius: 10px; background: #fff; }
.dbtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dbtable th, .dbtable td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line, #e3ded2); white-space: nowrap; }
.dbtable thead th { position: sticky; top: 0; background: var(--paper-2, #f1ede4); border-bottom: 2px solid var(--ink); padding: 0; }
.dbtable thead .th-sort {
  appearance: none; background: transparent; border: 0; cursor: pointer; width: 100%;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); text-align: left; padding: 9px 12px; display: flex; align-items: center; gap: 5px;
}
.dbtable thead .th-sort:hover { color: var(--accent-dark); }
.dbtable thead th[aria-sort="ascending"] .th-arrow::after { content: "\2191"; }
.dbtable thead th[aria-sort="descending"] .th-arrow::after { content: "\2193"; }
.dbtable thead th .th-arrow { opacity: .55; font-size: 10px; }
.dbtable tbody th { font-weight: 600; }
.dbtable tbody th a { color: var(--ink); text-decoration: none; }
.dbtable tbody th a:hover { color: var(--accent-dark); text-decoration: underline; }
.dbtable tbody tr:last-child th, .dbtable tbody tr:last-child td { border-bottom: 0; }
.dbtable td.is-blank { position: relative; }
/* A blank is a statement, so it is drawn rather than left as dead space. */
.dbtable td.is-blank::after { content: "\2014"; opacity: .28; }
.dbtable tbody tr:hover td, .dbtable tbody tr:hover th { background: var(--paper, #faf8f4); }
