/* CompeteFocus blog: shared styles for every post (v2 editorial guides + v3 conversion customer stories). */
/* Layout: v2 (editorial) and v3 (conversion) templates, element by element, dressed in the landing page v17 tokens. Review notes sit inline in a separate "editor's ink" so they read as not-the-site. Single light theme on purpose: it mocks the live site. */
:root {
  color-scheme: light;
  --bg: #FCFCFA; --bg-alt: #F6F3EC; --card: #FFFFFF;
  --ink: #1C1B19; --muted: #6E6A61; --line: #E8E5DD;
  --cta: #FF9F1C; --cta-hover: #F58F00; --cta-ink: #1C1B19;
  --accent: #C2560A; /* orange dark enough for text on light */
  --peach: #FFF6EC; --peach-line: #F8DFC2;
  --blue: #2563EB; --violet: #8B3FD9; --periwinkle: #9DA9FF;
  --green: #15803D; --tint-green: #DCFCE7; --tint-blue: #DBEAFE;
  --indigo: #0A0E33; --on-indigo: #E8ECFF; --on-indigo-muted: rgba(232,236,255,.74);
  --red: #B42318; --tint-red: #FEE4E2;
  --rv-bg: #23262B; --rv-fg: #F1F2F4; --rv-muted: #A9AEB7; --rv-ink: #C0267A; --rv-tint: #FDF0F7;
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 20px; --r-sm: 14px;
  --shadow: 0 10px 30px rgba(28,27,25,.08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1080px; margin: 0 auto; }
.measure { max-width: 740px; }
.center { margin-left: auto; margin-right: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- review chrome ---------- */
.rv-bar { background: var(--rv-bg); color: var(--rv-fg); font-size: 14px; line-height: 1.4; }
.rv-bar .wrap { max-width: 1160px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 12px; }
.rv-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-tabs a { color: var(--rv-muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid #3A3E45; font-weight: 600; }
.rv-tabs a[aria-current="page"] { background: var(--rv-fg); color: var(--rv-bg); border-color: var(--rv-fg); }
.rv-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.rv-toggle input { width: 18px; height: 18px; accent-color: var(--rv-ink); }
.rv-intro { background: var(--rv-tint); border-bottom: 1px solid #F3C9DF; font-size: 14.5px; line-height: 1.55; }
.rv-intro .wrap { max-width: 1160px; padding-block: 12px; }
.rv-intro p { margin: 0 0 6px; max-width: 100ch; } .rv-intro p:last-child { margin: 0; }
body.clean .rv-only { display: none !important; }
.note { font-size: 13.5px; line-height: 1.5; color: #5B1238; background: var(--rv-tint); border: 1.5px dashed var(--rv-ink); border-radius: 10px; padding: 10px 14px 10px 44px; position: relative; margin: 14px 0; text-align: left; font-weight: 400; letter-spacing: 0; text-transform: none; }
.note::before { content: attr(data-n); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--rv-ink); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.note b { color: var(--rv-ink); }
.note.fix { border-style: solid; }
.note.ray { border-color: #7C3AED; background: #F5F0FF; color: #3B1D73; }
.note.ray::before { background: #7C3AED; }
.note.ray b { color: #6D28D9; }
.slot { /* yellow = a fact still missing; remove the span once filled */ background: #FFF6D6; border-bottom: 2px dotted #C9A227; padding: 0 4px; border-radius: 3px; color: var(--ink); }
body.clean .slot { /* yellow = a fact still missing; remove the span once filled */ background: none; border: 0; padding: 0; }

/* ---------- site header (v17) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-family: var(--sans); font-weight: 700; border: 0; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .18s, background .18s; }
.btn-cta { background: var(--cta); color: var(--cta-ink); padding: 15px 28px; font-size: 16px; box-shadow: 0 10px 24px rgba(255,159,28,.35); }
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--ink); padding: 12px 22px; font-size: 15px; border: 2px solid #CBD5E1; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- shared type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); scroll-margin-top: 20px; }
.sec { padding-block: 44px 8px; }
.sec > .wrap > h2, .sec-h { margin: 0 0 14px; }
.sec p { margin: 0 0 1.05em; }
.lede { font-size: 20px; line-height: 1.6; }
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #B9B4A8; }
.crumbs a { color: var(--muted); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pill-kicker { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--peach); border: 1px solid var(--peach-line); border-radius: 999px; padding: 5px 12px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.byline strong { color: var(--ink); }
.byline .meta { display: flex; flex-direction: column; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--indigo); overflow: hidden; }
.avatar img { width: 78%; }
.ref { font-size: .72em; vertical-align: super; line-height: 0; font-weight: 700; text-decoration: none; padding: 0 1px; }

/* browser frame (template screenshot treatment) */
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #F4F2EC; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9D5CB; flex: none; }
.browser .bar span { margin-left: 8px; flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); background: var(--card); border-radius: 999px; padding: 2px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; background: #EEF0F3; }
.browser.tall img { aspect-ratio: 4 / 5; }
.browser.free img { aspect-ratio: auto; }
.cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 12px 0 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* table of contents (kept on every post) */
.toc { background: var(--bg-alt); border-radius: var(--r-sm); padding: 18px 24px; margin: 28px 0 0; }
.toc .toc-h { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 40px; }
.toc li { font-size: 15.5px; line-height: 1.5; padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* lists with marks */
.xlist, .clist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.xlist li, .clist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; }
.xlist li::before, .clist li::before { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 1px; }
.xlist li::before { content: "✕"; background: var(--tint-red); color: var(--red); }
.clist li::before { content: "✓"; background: var(--tint-green); color: var(--green); }

/* soft + end CTA */
.soft-cta { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; background: var(--peach); border: 1px solid var(--peach-line); border-radius: var(--r-sm); padding: 20px 24px; margin: 30px 0; }
.soft-cta p { margin: 0 !important; font-size: 16px; line-height: 1.55; flex: 1 1 300px; min-width: 0; }
.soft-cta strong { display: block; font-size: 17px; }
.cta-band { background: var(--indigo); color: var(--on-indigo); border-radius: var(--r); padding: 46px clamp(22px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto -80px -140px auto; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(139,63,217,.45), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 12px; }
.cta-band h2 .hl { color: var(--periwinkle); font-style: italic; }
.cta-band p { color: var(--on-indigo-muted); margin: 0 auto 22px; max-width: 54ch; }
.cta-band .fine { font-size: 13.5px; margin: 14px auto 0; }
.cta-band .btn { position: relative; z-index: 1; }

.authorbox { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 40px 0 0; }
.authorbox .avatar { width: 58px; height: 58px; }
.authorbox p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.sources { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.sources h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; color: var(--muted); }
.sources ol { padding-left: 1.4em; margin: 0; }
.sources li { line-height: 1.55; margin-bottom: 4px; }

/* related (template: image cards with category label) */
.related .wrap { padding-block: 44px 56px; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.related-head h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.related-head a { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #EEF0F3; border-bottom: 1px solid var(--line); }
.card div { padding: 16px 18px 18px; display: grid; gap: 6px; }
.card .kind { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 1.35rem; }
.card small { font-size: 13px; color: var(--muted); }
footer.site { padding-block: 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* under the hood */
.hood { background: var(--rv-bg); color: var(--rv-fg); }
.hood .wrap { padding-block: 36px 44px; }
.hood h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--rv-fg); }
.hood > .wrap > p { color: var(--rv-muted); margin: 0 0 20px; font-size: 14.5px; }
.hood dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 20px; margin: 0 0 22px; font-size: 14.5px; line-height: 1.5; }
.hood dt { color: var(--rv-muted); font-weight: 600; }
.hood dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hood dd small { display: block; color: var(--rv-muted); font-size: 12.5px; }
.hood code, .hood pre { font-family: var(--mono); font-size: 12.5px; }
.hood pre { background: #16181C; color: #D7DAE0; border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; margin: 0; max-width: 100%; }
.hood .ok { color: #7BD88F; } .hood .chg { color: #FFB86B; }

/* ================= v2 EDITORIAL ================= */
.e-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding-block: 18px 10px; }
.e-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4rem); margin: 12px 0 14px; }
.e-hero .dek { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.e-hero .kick { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.e-hero figure { margin: 0; }
.e-hero figure img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #F2F3F5; }
.e-rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }
.split-quote { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.quote-card { background: var(--peach); border: 1px solid var(--peach-line); border-radius: var(--r-sm); padding: 26px 26px 22px; margin: 6px 0 0; }
.quote-card .mark { font-family: var(--display); font-size: 4rem; line-height: .6; color: var(--accent); display: block; height: 28px; }
.quote-card p { font-family: var(--display); font-size: 1.65rem; line-height: 1.25; margin: 0 0 14px; }
.quote-card hr { width: 36px; border: 0; border-top: 2px solid var(--accent); margin: 0; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); font-size: 15px; line-height: 1.5; margin: 18px 0 8px; }
table.cmp caption { text-align: left; font-size: 14px; color: var(--muted); padding: 0 0 10px; caption-side: top; }
table.cmp th { text-align: left; font-family: var(--display); font-weight: 400; font-size: 1.35rem; padding: 14px 18px; background: var(--bg-alt); }
table.cmp th + th { background: var(--peach); }
table.cmp td { padding: 11px 18px; border-top: 1px solid var(--line); vertical-align: top; }
table.cmp td + td, table.cmp th + th { border-left: 1px solid var(--line); }
table.cmp td:first-child { color: var(--muted); }
.ess { list-style: none; padding: 0; margin: 20px 0 24px; columns: 2; column-gap: 40px; }
.ess li { break-inside: avoid; display: grid; grid-template-columns: 34px 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.ess .n { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--accent); }
.ess .ico { width: 26px; height: 26px; color: var(--accent); }
.ess strong { display: block; font-size: 15.5px; }
.ess span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.case-inline { background: var(--peach); border: 1px solid var(--peach-line); border-radius: var(--r); padding: 30px clamp(20px, 4vw, 40px); margin: 18px 0 8px; }
.case-inline h3 { font-size: 1.9rem; margin: 0 0 4px; }
.case-inline .sub { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 0 0 18px; }
.case-inline .ba-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 20px; }
.case-inline .ba-text p { font-size: 15.5px; line-height: 1.6; margin: 4px 0 0; }
.case-inline figure { margin: 0; }
.case-inline figure img { border-radius: var(--r-sm); border: 1px solid var(--peach-line); width: 100%; background: #fff; }
.journal { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 36px 0 0; }
.journal span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.35rem; }
.journal .ico { color: var(--accent); width: 22px; height: 22px; }
.journal a { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pull { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.2; border-left: 3px solid var(--cta); padding: 4px 0 4px 22px; margin: 30px 0; }
.e-fig { margin: 26px 0; }
.e-fig img { border-radius: var(--r-sm); border: 1px solid var(--line); width: 100%; background: #F2F3F5; }

/* ================= v3 CONVERSION ================= */
.c-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 22px 16px; }
.c-hero h1 { font-size: clamp(2.6rem, 5.4vw, 3.9rem); margin: 16px 0 14px; }
.h1-sub { display: block; font-family: var(--sans); font-size: clamp(1rem, 1.6vw, 1.12rem); font-weight: 600; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.c-hero .dek { font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--muted); margin: 0 0 20px; }
.c-art { position: relative; padding-bottom: 54px; }
.annot { position: absolute; left: -6px; bottom: 0; display: flex; align-items: flex-end; gap: 4px; font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.15; color: var(--accent); max-width: 300px; transform: rotate(-2.5deg); margin: 0; }
.annot svg { width: 46px; height: 40px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.panel { background: var(--peach); border: 1px solid var(--peach-line); border-radius: var(--r); padding: 32px clamp(20px, 4vw, 40px); }
.panel h2 { margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.stat { background: var(--card); border: 1px solid var(--peach-line); border-radius: var(--r-sm); padding: 18px 18px 16px; }
.stat .num { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .5em; }
.stat p { margin: 0 !important; font-size: 14px; line-height: 1.45; color: var(--muted); }
.panel .close { font-weight: 700; font-size: 16px; margin: 0; }
.vs-head { text-align: center; }
.vs-pills { display: flex; justify-content: center; gap: 10px; margin: 14px 0 22px; flex-wrap: wrap; }
.vs-pills span { font-size: 13.5px; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.vs-pills .old { background: var(--indigo); color: #fff; }
.vs-pills .new { background: var(--cta); color: var(--cta-ink); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vs .browser.old img { filter: saturate(.7); }
.vs ul { margin-top: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 8px; }
.grid-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 18px 20px; text-decoration: none; color: var(--ink); display: block; }
.gcard:hover { border-color: var(--accent); }
.gcard .n { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.gcard .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--peach); color: var(--accent); display: grid; place-items: center; margin: 10px 0 12px; }
.gcard h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.gcard p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gcard .go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.change { padding-top: 36px; }
.change-n { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 6px; }
.ba .tagged { position: relative; min-width: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag.old { background: var(--tint-red); color: var(--red); }
.tag.new { background: var(--tint-green); color: var(--green); }
.ba .tag { position: absolute; left: 10px; top: 42px; }
.takeaway { background: var(--bg-alt); border-left: 3px solid var(--cta); border-radius: 0 12px 12px 0; padding: 12px 18px; font-size: 16px; line-height: 1.6; }
.case-band { background: var(--peach); border: 1px solid var(--peach-line); border-radius: var(--r); padding: 34px clamp(20px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.case-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin: 8px 0 4px; }
.case-band .sub { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--muted); margin: 0 0 16px; }
.case-band .clist { margin: 16px 0 18px; }
.case-band .live { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.trap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.trap > div { border-radius: var(--r-sm); padding: 22px 22px 24px; border: 1px solid var(--line); }
.trap .bad { background: #F3F2EE; }
.trap .good { background: var(--peach); border-color: var(--peach-line); }
.trap h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; display: flex; gap: 10px; align-items: center; margin: 0 0 2px; }
.trap .good h3 { color: var(--accent); }
.trap small { display: block; font-size: 13px; color: var(--muted); margin: 0 0 14px 30px; }

/* ---------- views ---------- */
.view { display: none; }
.view.on { display: block; }

@media (max-width: 900px) {
  .e-hero, .c-hero, .split-quote, .case-band { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lede { font-size: 18.5px; }
  .toc ol { columns: 1; }
  .ess { columns: 1; }
  .stats, .vs, .trap, .case-inline .ba-text, .grid-cards, .grid-cards.four { grid-template-columns: minmax(0, 1fr); }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .hood dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hood dd { margin-bottom: 12px; }
  .rv-toggle { margin-left: 0; }
  table.cmp { font-size: 14px; } table.cmp th { font-size: 1.15rem; padding: 12px; } table.cmp td { padding: 10px 12px; }
  .annot { position: static; transform: none; margin-top: 12px; }
  .c-art { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
