/* Veritos — shared blog styles
 *
 * Served to blog pages only (R13.5): the blog index, topic and paginated pages,
 * article pages, the Case Watch archive, and the hand-written edition and case
 * lesson pages. Non-blog pages keep their own inline CSS and are untouched.
 *
 * This file holds design tokens and the site chrome that every blog page shares.
 * Page-specific rules stay inline in their template so the cascade order is
 * unchanged from before the refactor: tokens and chrome first, then page rules,
 * then the footer and media queries.
 *
 * Tokens are the union of both templates' :root blocks. --section-pad is used by
 * the listing pages, --header-width and --body-width by article pages. An unused
 * custom property costs nothing.
 */
:root {
  --paper: #FAFAF7; --ink: #0A0A0A; --ink-2: #1A1A1A;
  --gray-1: #4A4A48; --gray-2: #6B6B68; --gray-3: #A8A8A4;
  --line: #1A1A1A; --line-soft: #D8D8D2; --line-faint: #E8E8E2;
  --accent: #26215C; --accent-tint: #EEEDFE; --white: #FFFFFF;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --container: 1280px;
  --section-pad: 120px;
  --header-width: 760px;
  --body-width: 660px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01","cv11"; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; }

/* Drawing frame */
.drawing-frame { position: fixed; inset: 16px; pointer-events: none; z-index: 50; }
.drawing-frame i { position: absolute; width: 12px; height: 12px; border: 1px solid var(--line); }
.drawing-frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.drawing-frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.drawing-frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.drawing-frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.dot-grid { position: fixed; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--line-faint) 1px, transparent 0); background-size: 24px 24px; pointer-events: none; z-index: 1; opacity: 0.55; }

/* Ref strip */
.ref-strip { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-2); }
.ref-strip-inner { max-width: var(--container); margin: 0 auto; padding: 9px 32px; display: flex; justify-content: space-between; gap: 32px; }
.ref-strip-inner > span { display: flex; gap: 24px; }
.ref-strip b { color: var(--ink); font-weight: 500; }

/* Nav */
.nav { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand-mark { width: 14px; height: 14px; background: var(--accent); display: inline-block; position: relative; top: 2px; transition: background 0.2s ease; }
.brand:hover .brand-mark { background: var(--ink); }
.brand-name { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--ink); font-weight: 400; position: relative; padding-bottom: 3px; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.nav-links a:not(.active)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right 0.25s ease; }
.nav-links a:not(.active):hover::after { right: 0; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease; letter-spacing: -0.005em; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-arrow::after { content: "→"; font-family: var(--mono); font-weight: 400; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   PDPC CASE WATCH
   Styles for the blog-index strip, the archive, and the
   hand-written edition and case lesson pages (R6.3, R14.3).
   The markup lives in content/editions/<slug>/ and uses these
   class names as a contract — see design.md, "Styling
   hand-built pages: the class contract".
   ============================================================ */

:root {
  /* The one colour added beyond the site's tokens (R11.1). Used only for the
     draft banner and unverified-fact markers, both of which disappear when an
     edition is published. */
  --warn: #8A5A00;
  --warn-tint: #FDF6E6;
}

/* ── Blog-index strip (R4) ───────────────────────────────── */

.cw-strip {
  --cw-strip-inset: 32px; /* matches this rule's own padding, so the top/bottom
                              rules below land on the same edges as the content
                              (and as the filter row and cards below it), at any
                              width. Overridden where padding differs: see the
                              .cw-main and 560px rules below. */
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 32px 26px;
  display: grid;
  grid-template-columns: 1.05fr 1.5fr auto;
  gap: 40px;
  align-items: start;
  background: var(--paper);
  position: relative;
  z-index: 5;
}
/* Top/bottom rules as pseudo-elements inset by --cw-strip-inset, rather than a
   border on the full box, so they end at the content edge instead of the
   padding edge. A border always sits outside the padding; these sit at the
   padding line instead, which is where the filter row and cards start. */
.cw-strip::before,
.cw-strip::after {
  content: "";
  position: absolute;
  left: var(--cw-strip-inset);
  right: var(--cw-strip-inset);
}
.cw-strip::before { top: 0; border-top: 2px solid var(--ink); }
.cw-strip::after { bottom: 0; border-bottom: 1px solid var(--line); }
.cw-eyebrow { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 10px; }
.cw-cover h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; }
.cw-cover h2 em { font-family: var(--serif); font-style: normal; font-weight: 400; }
.cw-cover p { font-size: 14px; line-height: 1.55; color: var(--gray-1); max-width: 34ch; }

.cw-mid > .mono { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.cw-case {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--line-faint);
  transition: color 0.2s ease;
}
.cw-case:last-child { border-bottom: 0; }
.cw-case:hover .cw-case-t { color: var(--accent); }
.cw-case-t { font-size: 14px; line-height: 1.4; }
.cw-case-a { font-size: 12px; color: var(--accent); white-space: nowrap; }

.cw-go { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cw-all { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); border-bottom: 1px solid transparent; }
.cw-all:hover { border-color: var(--accent); }
.cw-go small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2); }

@media (max-width: 860px) {
  .cw-strip { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .cw-strip { padding-left: 20px; padding-right: 20px; --cw-strip-inset: 20px; }
}

/* ── Shared page frame for hand-built pages ──────────────── */

.cw-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 96px;
  position: relative;
  z-index: 5;
}
@media (max-width: 560px) { .cw-main { padding-left: 20px; padding-right: 20px; } }

/* ── Breadcrumb ──────────────────────────────────────────── */

.crumbs { padding: 18px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2); }
.crumbs a { color: var(--gray-1); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Edition masthead (R6.2) ─────────────────────────────── */

.masthead { border-top: 4px solid var(--ink); margin-top: 18px; }
.masthead .top {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2);
}
.masthead .draft { color: var(--warn); }
.masthead h1 {
  font-size: clamp(2.8rem, 10.5vw, 7.2rem);
  line-height: 0.95; letter-spacing: -0.015em; font-weight: 400;
  text-align: center; padding: 26px 0 20px;
  font-family: var(--serif);
}
.masthead h1 em { font-style: normal; }
.masthead .sub {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 3px double var(--line);
}
.masthead .sub > div {
  padding: 9px 8px; text-align: center;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-1);
  border-left: 1px solid var(--line-faint);
}
.masthead .sub > div:first-child { border-left: 0; }

@media (max-width: 640px) {
  .masthead .sub { grid-template-columns: repeat(2, 1fr); }
  .masthead .sub > div:nth-child(3) { border-left: 0; }
  .masthead .sub > div:nth-child(n+3) { border-top: 1px solid var(--line-faint); }
}

/* ── Edition front page (R6.4) ───────────────────────────── */

.frontpage { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 40px 0 8px; }
.frontpage .lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.35; margin-bottom: 16px; }
.frontpage > div > p:not(.lede) { font-size: 16px; line-height: 1.6; color: var(--gray-1); max-width: 62ch; }

.index h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.index a { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line-faint); }
.index a:hover .t { color: var(--accent); }
.index .t { font-size: 14px; line-height: 1.35; }
.index .a { font-size: 11px; color: var(--accent); }
.index .o { font-size: 12px; color: var(--gray-2); }

@media (max-width: 800px) { .frontpage { grid-template-columns: 1fr; gap: 28px; } }

/* ── Case section: shared by edition and lesson pages ────── */

.case { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 44px 0; border-bottom: 1px solid var(--line-faint); }
.case .side { border-top: 2px solid var(--ink); padding-top: 14px; }
.case .side .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; }
.case .side dl { display: grid; gap: 2px; }
.case .side dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2); margin-top: 12px; }
.case .side dt:first-of-type { margin-top: 0; }
.case .side dd { font-size: 14px; line-height: 1.45; color: var(--ink); }
.case .side dd.big { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.case .side dd.tbc { color: var(--warn); font-size: 13px; }
.case .side a { color: var(--accent); border-bottom: 1px solid transparent; font-size: 13px; }
.case .side a:hover { border-color: var(--accent); }
.case .side p { margin-top: 14px; }

.case .body > h2,
.case .lbody > h2 { letter-spacing: -0.025em; max-width: 700px; }
.case .body > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin-bottom: 18px; }
.case .body p,
.case .lbody p { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 700px; margin-bottom: 16px; }

@media (max-width: 800px) {
  .case { grid-template-columns: 1fr; gap: 26px; }
  /* Fact column moves above the story and lays out in two columns (R6.5, R14.9) */
  .case .side dl { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .case .side dl dt { grid-column: auto; }
}
@media (max-width: 460px) {
  .case .side dl { grid-template-columns: 1fr; }
}

/* ── Edition-page case summary (R6.9) ────────────────────── */

.lesson-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 22px 0 16px; display: grid; gap: 4px; max-width: 700px; }
.lesson-summary dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-top: 10px; }
.lesson-summary dt:first-of-type { margin-top: 0; }
.lesson-summary dd { font-size: 16px; line-height: 1.55; color: var(--ink); }
.go { max-width: 700px; }
.go a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); border-bottom: 1px solid transparent; }
.go a:hover { border-color: var(--accent); }

/* ── Edition closing section and sources (R6.7, R6.8) ────── */

.closing { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 44px 0; border-bottom: 1px solid var(--line-faint); }
.closing h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); font-weight: 500; }
.closing p { font-size: 17px; line-height: 1.65; max-width: 62ch; margin-bottom: 16px; }
.sources { padding: 32px 0; }
.sources > .mono { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); margin-bottom: 12px; }
.sources ul { list-style: none; display: grid; gap: 7px; }
.sources a { font-size: 14px; color: var(--accent); border-bottom: 1px solid transparent; }
.sources a:hover { border-color: var(--accent); }
@media (max-width: 800px) { .closing { grid-template-columns: 1fr; gap: 18px; } }

/* ── Lesson page header (R14.3) ──────────────────────────── */

.lhead { border-top: 4px solid var(--ink); margin-top: 18px; padding-bottom: 6px; }
.lhead .top {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2);
}
.lhead .draft { color: var(--warn); }
.lhead h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; padding: 26px 0 0; max-width: 28ch; }
.lhead .deck { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; color: var(--gray-1); padding: 14px 0 22px; max-width: 52ch; }

.lbody > h2 { font-size: clamp(1.4rem, 2.4vw, 1.6rem); line-height: 1.2; margin: 34px 0 14px; }
.lbody > h2:first-child { margin-top: 0; }

/* ── The band: PDPC findings above, Veritos advice below (R14.5) ── */

.band {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background: var(--accent-tint);
  padding: 16px 18px; margin: 36px 0 8px; max-width: 700px;
}
.band > .mono { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 6px; }
.band p { font-size: 15px; line-height: 1.55; color: var(--ink); margin-bottom: 0; max-width: none; }

/* ── Lesson lists (R14.4) ────────────────────────────────── */

.lbody ul { list-style: none; display: grid; gap: 10px; margin: 0 0 16px; max-width: 700px; }
.lbody ul li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.lbody ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--gray-3); }
/* "How to avoid it" is a checklist */
.lbody ul.check li { padding-left: 26px; }
.lbody ul.check li::before {
  content: ""; top: 0.3em; width: 11px; height: 11px;
  border: 1px solid var(--accent); background: transparent;
}

.qs { border: 1px solid var(--line); padding: 18px 20px; margin: 30px 0 26px; max-width: 700px; }
.qs > .mono { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); margin-bottom: 12px; }
.qs ul { margin-bottom: 0; }

.lcta { font-size: 16px; line-height: 1.6; color: var(--gray-1); border-top: 1px solid var(--line-soft); padding-top: 20px; max-width: 700px; }
.lcta a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ── Edition / case navigation, appended by the build ────── */

.edition-nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.en-cell { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-left: 1px solid var(--line-faint); }
.en-cell:first-child { border-left: 0; padding-left: 0; }
.en-cell.r { text-align: right; align-items: flex-end; padding-right: 0; }
.en-cell.mid { justify-content: center; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.en-cell small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2); }
.en-cell .t { font-size: 15px; line-height: 1.35; }
.en-cell .t.dim, .en-cell small.dim { color: var(--gray-2); } /* not --gray-3: 2.28:1 fails AA (R10.2) */
a.en-cell:hover .t { color: var(--accent); }
a.en-cell.mid:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .edition-nav { grid-template-columns: 1fr; }
  .en-cell { border-left: 0; border-top: 1px solid var(--line-faint); padding-left: 0; padding-right: 0; }
  .en-cell:first-child { border-top: 0; }
  .en-cell.r { text-align: left; align-items: flex-start; }
  .en-cell.mid { align-items: flex-start; }
}

/* ── Archive page (R5) ───────────────────────────────────── */

.arch-intro { padding: 36px 0 10px; max-width: 62ch; }
.arch-intro .lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.35; margin-bottom: 14px; }
.arch-intro p:not(.lede) { font-size: 16px; line-height: 1.6; color: var(--gray-1); }
.arch-sec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); font-weight: 500; padding: 34px 0 12px; border-bottom: 1px solid var(--line); }
.arch-list { list-style: none; }
.arch-issue { display: grid; grid-template-columns: 200px 1fr auto; gap: 32px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line-faint); }
.arch-issue .ie { display: grid; gap: 4px; }
.arch-issue .ie b { font-size: 17px; font-weight: 500; }
.arch-issue .ie span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2); }
.arch-issue ul { list-style: none; display: grid; gap: 8px; }
.arch-issue ul li { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.4; }
.arch-issue ul li span:last-child { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
@media (max-width: 700px) {
  .arch-issue { grid-template-columns: 1fr; gap: 14px; }
}

/* The strip is reused on the archive, where it sits inside .cw-main and so
   needs no page gutter of its own. */
.cw-main .cw-strip { padding-left: 0; padding-right: 0; max-width: none; --cw-strip-inset: 0px; }

/* ── Unverified-fact marker (R13.9) ──────────────────────── */
/* Only ever visible on a draft edition. A production build fails if either of
   these classes survives into a published edition. */
.ph-flag {
  display: inline-block; background: var(--warn-tint); color: var(--warn);
  border: 1px solid var(--warn); padding: 0 5px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── 404 ─────────────────────────────────────────────────── */

.nf { max-width: var(--container); margin: 0 auto; padding: 120px 32px; position: relative; z-index: 5; }
.nf h1 { font-size: clamp(48px, 5.6vw, 72px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 20px; }
.nf h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.nf p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--gray-1); max-width: 52ch; margin-bottom: 32px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .nf { padding: 72px 20px; } }

/* ── Footer ───────────────────────────────────────────────
   Matches contact_us.html's inline .footer / .fi / .fc / .fb block (same
   look, same 820px and 560px behaviour), under the blog partial's own class
   names: .footer, .footer-inner, .footer-col, .footer-tagline, .footer-bottom.
   See templates/partials/footer.html. */

.footer { background: var(--paper); padding: 56px 32px 40px; position: relative; z-index: 5; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-col .brand-name { font-size: 16px; }
.footer-tagline { font-size: 13px; color: var(--gray-1); line-height: 1.5; margin-top: 12px; max-width: 32ch; }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-2); }

/* Nav: same pattern already used on contact_us.html and veritos_partners.html,
   and already inlined in templates/blog.html and templates/post.html. This is
   the shared-stylesheet copy, so hand-built.html, case-watch.html and 404.html
   — which carry no page-local <style> block — get it too. Without this, the
   fact column's three-level breadcrumb plus the full nav-links row push the
   page 346px wider than the viewport at 390px (measured). */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 18px 20px; gap: 16px; }
  .footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ── Focus indicator (R10.1) ─────────────────────────────── */
/* One explicit rule for every link and button on a blog page, rather than
   relying on each browser's default. Uses the accent at a 2px offset so it
   reads clearly against --paper and against the ink-filled current chip.
   :focus-visible, so it appears for keyboard use and not on mouse clicks. */

.blog-posts a:focus-visible,
.blog-hero a:focus-visible,
.blog-cta a:focus-visible,
.cw-main a:focus-visible,
.cw-strip a:focus-visible,
.nf a:focus-visible,
.post-card a:focus-visible,
.chip:focus-visible,
.pg:focus-visible,
.en-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The current chip is ink-filled, so an accent outline on it would be hard to
   read. Use the paper colour there instead. */
.chip.is-current:focus-visible,
.pg.is-current:focus-visible {
  outline-color: var(--paper);
  outline-offset: -4px;
}
