/* =============================================================================
   Lintyco Tools — Programmatic Blog Stylesheet
   Shared by all 3 templates: best-for-product / cost-calculator-guide / brand-comparison
   Plain CSS. No JS framework. Mobile-first (375px → 1440px+).

   BRAND PALETTE — audited from the live tool.lintyco.com production HTML
   (utility classes bg-[#...]/text-[#...] counted on the calculator page):
     Brand navy   : #1d3557   (primary — header bar, H1, primary CTA, Lintyco column)
     Accent red   : #d94948   (terracotta highlight — key numbers, links, accent borders)
     Ink          : #011627   (near-black navy — darkest surface, table headers, footer)
     Body         : #334155   (slate-700 paragraph text)
     Muted        : #64748b   (slate-500 secondary text)
     Line         : #e2e8f0   (slate-200 hairline borders)
     Page bg      : #f9f8f8   (warm off-white surface, from live site bg-[#f9f8f8])

   TYPE
     Sans : Inter, IBM Plex Sans, system fallback  (headings + body)
     Mono : IBM Plex Mono, ui-monospace            (specs, prices, tabular data)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — navy (primary, structural). tool.lintyco.com: bg-[#1d3557]. */
  --brand:        #1d3557;
  --brand-700:    #162b47;
  --brand-800:    #102136;
  --brand-50:     #eef2f8;
  --brand-100:    #e0e7f0;
  --brand-200:    #c8d4e2;

  /* Accent — terracotta (highlight only, never a large surface).
     tool.lintyco.com: text-[#d94948] / border-[#d94948]. */
  --accent:       #d94948;
  --accent-700:   #bf3939;
  --accent-800:   #a32f2f;
  --accent-50:    #fbecea;

  /* Neutrals — cool slate (audited from live site slate-* utilities) */
  --ink:          #011627;   /* bg-[#011627] on live site */
  --ink-2:        #1b2a3a;
  --body:         #334155;   /* slate-700 */
  --muted:        #64748b;   /* slate-500 */
  --faint:        #94a3b8;   /* slate-400 */
  --line:         #e2e8f0;   /* slate-200 */
  --line-strong:  #cbd5e1;   /* slate-300 */
  --surface:      #FFFFFF;
  --surface-alt:  #f9f8f8;   /* bg-[#f9f8f8] on live site */
  --surface-sunk: #f1f5f9;   /* slate-100 */

  /* Status */
  --good:         #1F9D55;
  --good-50:      #E4F4EC;
  --warn:         #B8730F;
  --warn-50:      #FBF0DC;
  --info:         #2563EB;
  --info-50:      #E2ECFE;
  --bad:          #C0392B;

  /* Type */
  --font-sans: 'Inter', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii */
  --r-xs: 3px;
  --r-sm: 5px;
  --r:    8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.05);
  --shadow-2: 0 1px 3px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.06);
  --shadow-3: 0 6px 18px rgba(16,24,40,.10);
  --shadow-brand: 0 6px 16px rgba(1,22,39,.20);

  /* Layout */
  --header-h: 60px;
  --content-max: 1180px;
  --article-max: 820px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-700); text-decoration: none; }   /* terracotta links — text-[#d94948] on live site */
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding-left: 1.1em; }
li + li { margin-top: .25em; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  letter-spacing: -0.022em;
  margin-top: 2.2em;
  margin-bottom: 0.85em;
}
h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.25rem);
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
h4 {
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}
p { text-wrap: pretty; }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}
.tnum, table { font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Navy bar — matches live tool.lintyco.com <header class="bg-[#1d3557] text-white"> */
  background: var(--brand);
  border-bottom: 1px solid color-mix(in oklab, var(--brand), #000 22%);
  box-shadow: 0 1px 0 rgba(1,22,39,.20);
}
.header-inner {
  height: var(--header-h);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.brand-logo:hover { text-decoration: none; }
.brand-logo .mark {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--accent);   /* terracotta dot — the live logo's red accent */
  border-radius: 2px;
  transform: translateY(-1px);
}
.brand-logo .tag {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  border-left: 1px solid rgba(255,255,255,.20);
  padding-left: 8px;
  align-self: center;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.10); text-decoration: none; color: #fff; }
.site-nav a.is-active { color: var(--accent); }   /* terracotta active tab on navy */

/* Auto-active nav based on body[data-pillar] (set per-template) */
body[data-pillar="packaging-cost"]    .site-nav a[href="/"],                   /* Cost Calculator */
body[data-pillar="machine-selector"]  .site-nav a[href="/selector/"],          /* Machine Selector */
body[data-pillar="machine-comparison"] .site-nav a[href="/blog/machine-comparison/"],  /* Comparisons */
body[data-pillar="film-roll"]         .site-nav a[href="/blog/"],              /* Guides (fallback) */
body[data-pillar="production-line"]   .site-nav a[href="/blog/"],              /* Guides (fallback) */
body[data-pillar="bag-styles"]        .site-nav a[href="/blog/"],              /* Guides (fallback) */
body[data-pillar="blog-index"]        .site-nav a[href="/blog/"] {              /* Guides (blog home) */
  color: var(--accent);
}
.header-cta {
  display: none;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-700); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-sunk); text-decoration: none; }
.btn-sm { padding: 8px 13px; font-size: .85rem; }

/* Header buttons sit on the navy bar — navy .btn-primary would vanish, so the
   primary header CTA becomes terracotta and the ghost becomes a white outline. */
.site-header .btn-primary {
  background: var(--accent);
  box-shadow: none;
}
.site-header .btn-primary:hover { background: var(--accent-700); }
.site-header .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.34);
}
.site-header .btn-ghost:hover { background: rgba(255,255,255,.10); }

/* mobile menu trigger (CSS-only via <details>) */
.menu-toggle { position: relative; margin-left: auto; }
.menu-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.28);
  display: grid;
  place-items: center;
}
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle summary span {
  width: 18px; height: 2px; background: #fff;
  box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff;
  border-radius: 1px;
}
.menu-toggle[open] summary { background: rgba(255,255,255,.12); }
.menu-toggle .drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  padding: 8px;
  min-width: 210px;
  display: grid;
  gap: 2px;
}
.menu-toggle .drawer a {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-size: .92rem;
  font-weight: 500;
}
.menu-toggle .drawer a:hover { background: var(--surface-sunk); text-decoration: none; }
.menu-toggle .drawer .btn { justify-content: flex-start; margin-top: 6px; }

/* =============================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  height: 40px;
  font-size: .82rem;
  color: var(--muted);
  overflow: hidden;
}
.breadcrumbs li { display: inline-flex; align-items: center; max-width: 100%; }
.breadcrumbs li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--faint);
  font-weight: 400;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-700); text-decoration: none; }
.breadcrumbs [aria-current="page"] {
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
   ARTICLE LAYOUT  (sticky TOC sidebar + reading column)
   ========================================================================== */
.article-layout {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 28px 56px;
  display: grid;
  gap: 36px;
}

/* Article header (H1 + meta) — full width above the two columns */
.article-head { max-width: var(--article-max); }
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-700);
  background: var(--accent-50);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.article-head h1 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--muted);
}
.article-meta .meta-author { font-weight: 600; color: var(--ink-2); }
.article-meta .meta-dot { color: var(--faint); }
.article-meta .meta-read { display: inline-flex; align-items: center; gap: 5px; }
.article-meta .meta-read::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.trust-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  color: var(--muted);
  margin-left: auto;
}
.trust-label svg { width: 13px; height: 13px; color: var(--good); }

/* two-column grid (TOC + article) */
.article-cols {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

/* ---- Table of contents ---- */
.toc-aside { order: 2; }
.toc-toggle {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.toc-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.toc-toggle > summary::-webkit-details-marker { display: none; }
.toc-toggle > summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform .2s;
}
.toc-toggle[open] > summary::after { content: "−"; }
.toc {
  padding: 4px 12px 14px;
}
.toc ol, .toc ul { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: var(--r-xs);
  font-size: .875rem;
  color: var(--body);
  line-height: 1.35;
  border-left: 2px solid transparent;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--faint);
  min-width: 1.6em;
}
.toc a:hover {
  background: var(--surface-sunk);
  color: var(--accent-700);
  text-decoration: none;
  border-left-color: var(--accent);
}

/* =============================================================================
   BLOG ARTICLE BODY
   ========================================================================== */
.blog-article { min-width: 0; }
.blog-article > section { margin-bottom: 44px; }
.blog-article > section:last-of-type { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; }
.section-head .section-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--faint);
  white-space: nowrap;
}

.blog-article p { margin-bottom: 14px; max-width: 70ch; }
.blog-article p.lead {
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.blog-article h3 {
  margin: 22px 0 8px;
}
.blog-article strong { color: var(--ink); font-weight: 650; }
.blog-article ul, .blog-article ol { margin: 10px 0 16px; max-width: 70ch; }

/* in-article callout */
.callout {
  background: var(--accent-50);
  border: 1px solid color-mix(in oklab, var(--accent), #fff 40%);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: .94rem;
  color: var(--ink-2);
  margin: 18px 0;
}
.callout strong { color: var(--accent-800); }

/* =============================================================================
   TABLES — the hero of every page
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
  -webkit-overflow-scrolling: touch;
}
.table-wrap::after {
  content: "";
  display: block;
  height: 0;
}
table.machine-comparison-table,
table.cost-breakdown-table,
table.brand-comparison-table,
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-variant-numeric: tabular-nums;
}
/* rounded corner fix for tables */
.table-wrap { border-radius: var(--r); }
.table-wrap > table { border-radius: var(--r); }

table thead th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--body);
}
table tbody tr:last-child td { border-bottom: 0; }
table tbody tr:nth-child(even) td { background: var(--surface-alt); }
table tbody tr:hover td { background: var(--brand-50); }
table td .num,
table th .num { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
table td strong { color: var(--ink); }

/* sticky first column on small screens */
@supports (position: sticky) {
  table tbody td:first-child,
  table thead th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    box-shadow: 2px 0 0 var(--line);
    z-index: 1;
  }
  table tbody tr:nth-child(even) td:first-child { background: var(--surface-sunk); }
  table tbody tr:hover td:first-child { background: var(--brand-50); }
  table thead th:first-child { z-index: 2; }
}

/* ---- Recommended machines table (Template A) ---- */
.machine-comparison-table thead th:first-child { background: var(--ink); }
.machine-comparison-table .tier-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.tier-entry    { background: var(--surface-sunk); color: var(--ink-2); }
.tier-mid      { background: var(--info-50); color: var(--info); }
.tier-premium  { background: var(--brand); color: #fff; }
.machine-comparison-table .model {
  font-weight: 700; color: var(--ink); font-family: var(--font-mono); font-size: .92rem;
}
.machine-comparison-table .features { font-size: .85rem; color: var(--muted); max-width: 30ch; }

/* ---- Cost breakdown table (Template B) ---- */
.cost-breakdown-table td:last-child,
.cost-breakdown-table th:last-child { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.cost-breakdown-table .comp-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--r-xs);
  font-size: .8rem;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- Brand comparison table (Template C) — Lintyco column emphasized ---- */
.brand-comparison-table thead th { text-align: center; }
.brand-comparison-table thead th:first-child { text-align: left; }
.brand-comparison-table thead th.col-lintyco { background: var(--brand); }
.brand-comparison-table thead th.col-competitor { background: var(--ink-2); }
.brand-comparison-table td { text-align: center; }
.brand-comparison-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.brand-comparison-table .col-lintyco { background: var(--brand-50); }
.brand-comparison-table tbody tr:nth-child(even) .col-lintyco { background: var(--brand-100); }
.brand-comparison-table .win-mark { color: var(--good); font-weight: 700; }

/* =============================================================================
   BENCHMARK CARDS
   ========================================================================== */
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.benchmark-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.benchmark-card .bench-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.benchmark-card .bench-value {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.benchmark-card .bench-unit { font-size: .78rem; color: var(--muted); font-weight: 500; }
.benchmark-card-wide {
  grid-column: 1 / -1;
  border-top-color: var(--ink);
  background: var(--surface-alt);
}
.benchmark-card-wide .bench-label { color: var(--ink-2); }
.benchmark-card-wide .bench-value {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.55;
  letter-spacing: 0;
}

/* =============================================================================
   USE CASES (Template A) + USE CASE RECOMMENDATIONS (Template C)
   ========================================================================== */
.use-case-list,
.use-case-rec-list,
.buying-factors-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.use-case-item,
.use-case-rec-item,
.buying-factor-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.use-case-item::before,
.use-case-rec-item::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.use-case-item h3,
.use-case-rec-item h3 { margin-bottom: 10px; padding-left: 4px; font-size: 1.02rem; }
.use-case-item .machine-pick,
.use-case-rec-item .winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
  margin-left: 4px;
}
.use-case-item .machine-pick {
  background: var(--ink); color: #fff;
}
.use-case-rec-item .winner {
  font-family: var(--font-sans);
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.use-case-rec-item .winner.is-lintyco   { background: var(--brand); color: #fff; }
.use-case-rec-item .winner.is-competitor { background: var(--surface-sunk); color: var(--ink-2); border: 1px solid var(--line-strong); }
.use-case-item p,
.use-case-rec-item p { margin: 0; padding-left: 4px; font-size: .93rem; }

/* =============================================================================
   BAG TYPES (Template A)
   ========================================================================== */
.bag-types-grid,
.applications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
}
.bag-type-card,
.cluster-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s, border-color .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.bag-type-card:hover,
.cluster-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--brand-200);
  text-decoration: none;
}
.bag-type-card .bag-name,
.cluster-card .cluster-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.bag-type-card .bag-desc,
.cluster-card .cluster-desc { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.bag-type-card .bag-glyph {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  color: var(--accent-700);
  margin-bottom: 4px;
}
.bag-type-card .bag-glyph svg { width: 20px; height: 20px; }

/* applications cluster (Template B) */
.cluster-card .cluster-products {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent-700);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.cluster-card .cluster-arrow { color: var(--accent); font-weight: 700; }

/* =============================================================================
   BUYING FACTORS (Template B)
   ========================================================================== */
.buying-factor-item { border-left: 3px solid var(--ink); }
.buying-factor-item::before { display: none; }
.buying-factor-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.buying-factor-item h3 .factor-no {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: #fff;
  background: var(--accent);
  width: 24px; height: 24px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-xs);
  flex-shrink: 0;
}
.buying-factor-item p { margin: 0; font-size: .93rem; }

/* =============================================================================
   BRAND PROFILES (Template C)
   ========================================================================== */
.brand-profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.brand-profile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.brand-profile.is-lintyco {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-2);
}
.brand-profile.is-lintyco::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 4px; background: var(--brand);
}
.brand-profile .bp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brand-profile .bp-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-profile.is-lintyco .bp-logo { background: var(--brand); color: #fff; }
.brand-profile.is-competitor .bp-logo { background: var(--ink); color: #fff; }
.brand-profile .bp-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.brand-profile .bp-tag { font-size: .76rem; color: var(--muted); }

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  list-style: none;
  padding: 0;
  font-size: .88rem;
}
.profile-meta li { display: flex; flex-direction: column; gap: 2px; }
.profile-meta .pm-key {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.profile-meta .pm-val { color: var(--ink); font-weight: 500; }
.profile-meta .pm-val.tier {
  display: inline-block;
  font-family: var(--font-mono); font-size: .8rem;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--surface-sunk); color: var(--ink-2); width: fit-content;
}
.profile-meta .pm-val.tier.mid { background: var(--info-50); color: var(--info); }
.profile-meta .pm-val.tier.premium { background: var(--brand-50); color: var(--brand-800); }

.brand-profile .bp-lists { display: grid; gap: 14px; }
.strengths-list, .weaknesses-list { list-style: none; padding: 0; }
.strengths-list li, .weaknesses-list li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 7px;
}
.strengths-list li::before {
  content: "+";
  position: absolute; left: 0; top: 0;
  color: var(--good); font-weight: 800;
  background: var(--good-50);
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .8rem; line-height: 1;
}
.weaknesses-list li::before {
  content: "–";
  position: absolute; left: 0; top: 0;
  color: var(--bad); font-weight: 800;
  background: var(--accent-50);
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .85rem; line-height: 1;
}
.list-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px; display: block;
}

/* =============================================================================
   FAQ — native <details>, zero JS
   ========================================================================== */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .98rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M12 5v14M5 12h14'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M12 5v14M5 12h14'/></svg>") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M5 12h14'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M5 12h14'/></svg>") center / contain no-repeat;
}
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer {
  padding: 0 18px 16px;
  color: var(--body);
  font-size: .94rem;
}
.faq-answer p { margin: 14px 0 0; max-width: none; }
.faq-answer p:first-child { margin-top: 14px; }
/* Renderer's buildFaqHtml emits bare <div> — apply same treatment */
.faq details > div {
  padding: 14px 18px 16px;
  color: var(--body);
  font-size: .94rem;
  line-height: 1.6;
}
.faq details > div > p:first-child { margin-top: 0; }

/* =============================================================================
   CTA
   ========================================================================== */
.cta-wrap {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: var(--r-lg);
  padding: 32px clamp(20px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(217,73,72,.22), transparent 65%);
  pointer-events: none;
}
.cta-wrap .cta-title {
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
}
.cta-wrap .cta-sub {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  margin-bottom: 20px;
  position: relative;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-brand);
  position: relative;
  transition: background .15s, transform .05s;
}
.cta-button:hover { background: var(--accent-700); text-decoration: none; }
.cta-button:active { transform: translateY(1px); }
.cta-button .arrow { transition: transform .15s; }
.cta-button:hover .arrow { transform: translateX(3px); }
.cta-wrap .cta-secondary {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  position: relative;
}
.cta-wrap .cta-secondary a { color: #fff; text-decoration: underline; }

/* sticky mobile CTA bar */
.cta-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-sticky .cta-sticky-label {
  font-size: .82rem; color: var(--muted); line-height: 1.3;
}
.cta-sticky .cta-sticky-label strong { display: block; color: var(--ink); font-size: .9rem; }
.cta-sticky .cta-button {
  margin-left: auto;
  padding: 11px 18px;
  font-size: .92rem;
}

/* =============================================================================
   RELATED ARTICLES
   ========================================================================== */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .08s;
}
.related-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--brand-200);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-card .rc-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-700);
}
.related-card .rc-title { color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.4; }
.related-card .rc-meta { font-size: .78rem; color: var(--muted); margin-top: auto; }
.related-card .rc-arrow { color: var(--accent); font-weight: 700; }

/* =============================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  margin-top: auto;
  border-top: 4px solid var(--accent);
}
.footer-top {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer-brand .brand-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact .fc-line { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.footer-contact .fc-line a { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px var(--gutter);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom .fb-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom .fb-trust { color: rgba(255,255,255,.45); }

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Small phones — tighten */
@media (max-width: 374px) {
  body { font-size: 15px; }
  .benchmark-grid, .bag-types-grid, .applications-grid { grid-template-columns: 1fr; }
}

/* ≥ 640px — tablets landscape / large phones */
@media (min-width: 640px) {
  .benchmark-grid { grid-template-columns: repeat(4, 1fr); }
  .benchmark-card-wide { grid-column: span 2; }
  .bag-types-grid { grid-template-columns: repeat(3, 1fr); }
  .applications-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .cta-sticky { display: none; } /* enough room, inline CTA visible */
}

/* ≥ 768px — tablets */
@media (min-width: 768px) {
  .brand-profiles-grid { grid-template-columns: 1fr 1fr; }
  .use-case-list, .use-case-rec-list, .buying-factors-list { grid-template-columns: 1fr 1fr; }
  .bag-types-grid { grid-template-columns: repeat(4, 1fr); }
  .applications-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ≥ 1024px — desktop: reveal header nav + sticky TOC sidebar */
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .header-cta { display: flex; }
  .menu-toggle { display: none; }

  .article-cols {
    grid-template-columns: 230px 1fr;
    gap: 44px;
  }
  .toc-aside {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
  }
  /* On desktop the TOC is always open — hide the toggle chrome, show heading */
  .toc-toggle { border: 0; box-shadow: none; background: transparent; }
  .toc-toggle > summary {
    pointer-events: none;
    padding: 0 0 12px;
    border-bottom: 2px solid var(--ink);
    border-radius: 0;
  }
  .toc-toggle > summary::after { display: none; }
  .toc { padding: 12px 0 0; max-height: calc(100vh - var(--header-h) - 120px); overflow-y: auto; }

  .benchmark-grid { grid-template-columns: repeat(4, 1fr); }
  .use-case-list, .use-case-rec-list, .buying-factors-list { grid-template-columns: 1fr; }
}

/* ≥ 1280px — wide desktop breathing room */
@media (min-width: 1280px) {
  .article-cols { grid-template-columns: 250px 1fr; gap: 56px; }
}

/* Sticky mobile CTA needs breathing room so it never covers the footer */
@media (max-width: 639px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .breadcrumbs, .toc-aside, .cta-sticky, .cta-wrap, .site-footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-layout { padding: 0; }
  .faq details > summary::after { display: none; }
  .faq details[open] .faq-answer,
  .faq answer { display: block !important; }
  .faq details { page-break-inside: avoid; border: 1px solid #ccc; }
  table { box-shadow: none; font-size: 9pt; }
  a { color: #000; text-decoration: none; }
}

/* =============================================================================
   TEMPLATE D ADDITIONS — Long-form Engineering Guide
   These classes support the new blog-article-template.html structure
   where markdown CONTENT renders H2s directly (not wrapped in sections).
   The .art-section wrappers below style FAQ/CTA/Related sections that ARE
   explicitly wrapped in the template.
   ========================================================================== */

/* .meta-date — alongside .meta-author and .meta-read */
.article-meta .meta-date {
  font-variant-numeric: tabular-nums;
}

/* .blog-article h2 — markdown-rendered H2 styled as section header */
.blog-article h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  max-width: 70ch;
}
.blog-article h2:first-of-type { margin-top: 8px; }
.blog-article h2 + p { margin-top: 14px; }

/* .art-section — explicit <section> wrappers in template (CTA/FAQ/Related) */
.blog-article .art-section {
  margin-top: 44px;
  margin-bottom: 0;
}
.blog-article .art-section:first-of-type { margin-top: 0; }

/* .faq-section — adds breathing room above FAQ */
.faq-section .faq { margin-top: 8px; }

/* .cta-section — gradient callout area */
.cta-section {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--accent-50) 100%);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
}
.cta-section .cta-wrap {
  max-width: 540px;
  margin-inline: auto;
}
/* When renderer emits bare <a class="cta-button"> without cta-wrap/title */
.cta-section > .cta-button,
.cta-section > a.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-2);
  transition: background .15s, transform .1s;
}
.cta-section > .cta-button:hover,
.cta-section > a.cta-button:hover { background: var(--accent-700); text-decoration: none; }
.cta-section:has(.cta-button:only-child) {
  padding: 36px 28px;
}
.cta-section .cta-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.cta-section .cta-sub {
  font-size: .95rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 18px;
}
.cta-section .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-2);
  transition: background .15s, transform .1s;
}
.cta-section .cta-button:hover { background: var(--accent-700); text-decoration: none; }
.cta-section .cta-button:active { transform: translateY(1px); }

/* .related-section — Related Guides grid wrapper */
.related-section .section-head { margin-bottom: 20px; }

/* .stat-grid / .stat-card — IPM vs CPM comparison cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0;
  max-width: 70ch;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.stat-card .stat-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}
.stat-card.is-accent {
  background: var(--accent-50);
  border-color: color-mix(in oklab, var(--accent), #fff 40%);
}
.stat-card.is-accent .stat-num { color: var(--accent-700); }

/* .formula — math callout (OEE = A × P × Q) */
.formula {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 3px solid var(--brand);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 18px 0;
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.formula .formula-eq {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.formula .formula-note {
  font-size: .85rem;
  color: var(--muted);
}
.formula .formula-note strong { color: var(--accent-700); }

/* .tier-list — benchmark tiers (World-class / Good / Typical / Poor) */
.tier-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  max-width: 70ch;
}
.tier-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
}
.tier-item .tier-name {
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
}
.tier-item .tier-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-item .tier-range {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.tier-item .tier-note {
  font-size: .82rem;
  color: var(--muted);
}
.tier-item.tier-best { border-left: 4px solid var(--good); }
.tier-item.tier-best .tier-name { color: var(--good); }
.tier-item.tier-mid { border-left: 4px solid var(--info); }
.tier-item.tier-mid .tier-name { color: var(--info); }
.tier-item.tier-warn { border-left: 4px solid var(--warn); }
.tier-item.tier-warn .tier-name { color: var(--warn); }
.tier-item.tier-bad { border-left: 4px solid var(--bad); }
.tier-item.tier-bad .tier-name { color: var(--bad); }

/* .worked-example — numbered calculation breakdown */
.worked-example {
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 18px 0;
  max-width: 70ch;
}
.worked-example .worked-example-title {
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
  margin-bottom: 12px;
}
.worked-example .we-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.worked-example .we-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.worked-example .we-row:last-child { border-bottom: 0; }
.worked-example .we-label { color: var(--body); }
.worked-example .we-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.worked-example .we-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 0;
}
.worked-example .we-total .we-label,
.worked-example .we-total .we-val {
  color: var(--accent-700);
  font-weight: 700;
}

/* .claim-list — Marketing vs Reality claims */
.claim-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  max-width: 70ch;
}
.claim-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.claim-item .claim,
.claim-item .reality {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: .9rem;
}
.claim-item .claim-tag,
.claim-item .reality-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  flex-shrink: 0;
}
.claim-item .claim-tag { background: var(--warn-50); color: var(--warn); }
.claim-item .reality-tag { background: var(--good-50); color: var(--good); }
.claim-item .claim-text { font-weight: 600; color: var(--ink-2); }
.claim-item .reality-text { color: var(--body); }

/* .qblock — grouped question lists */
.qblock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0;
  max-width: 70ch;
}
.qblock-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.qblock-title {
  font-weight: 700;
  color: var(--accent-700);
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.qblock-list {
  margin: 0;
  padding-left: 20px;
}
.qblock-list li {
  font-size: .88rem;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 6px;
}

/* Responsive: collapse tier-list and qblock on narrow screens */
@media (max-width: 639px) {
  .tier-item { grid-template-columns: 1fr; gap: 4px; }
  .tier-item .tier-body { flex-direction: column; align-items: flex-start; }
}
