/* KeyDog site stylesheet.
   Spec-sheet layout: hairline rules, tables over card grids, left-aligned type,
   ink on white with one brass accent. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --ink: #16191d;
  --ink-2: #2c3137;
  --muted: #5a6168;
  --line: #d6d3cc;
  --line-soft: #e8e6e1;
  --paper: #f5f4f0;
  --white: #fff;
  --accent: #9a5b12;
  --accent-dark-bg: #e0a55a;
  --ok: #2d6a39;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  font-stretch: 87.5%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.1rem; line-height: 1.25; }

p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Layout ───────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section--flush { border-top: 0; }
.section--flush.pt-0 { padding-top: 0; }
.h-sm { font-size: 1.4rem; margin-bottom: 12px; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 + p { margin-top: 14px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font: 600 0.95rem/1 var(--sans);
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-2); color: var(--white); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-weight: 800;
  font-stretch: 87.5%;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav ul { display: flex; gap: 24px; list-style: none; flex: 1; }
.nav a:not(.btn) {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  line-height: calc(var(--header-h) - 2px);
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

.menu-btn {
  display: none;
  margin-left: auto;
  min-height: 38px;
  padding: 0 14px;
  font: 600 0.9rem/1 var(--sans);
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { line-height: 48px; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav .btn { margin-top: 16px; min-height: 44px; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 22ch; }
.hero .lede { margin-top: 22px; }
.hero .fig { margin-top: clamp(40px, 6vw, 64px); }

/* ── Figures (app screenshots) ────────────────────────────────────── */
.fig { border: 1px solid var(--line); background: var(--white); }
.fig img { width: 100%; }
.fig figcaption {
  display: flex;
  gap: 14px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.fig figcaption b { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ── Facts (spec strip under the hero figure) ─────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}
.facts div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin-top: 6px; font-weight: 600; }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 440px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
}

/* ── Rows (linked index list) ─────────────────────────────────────── */
.rows { list-style: none; border-top: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 4px;
  color: var(--ink);
  text-decoration: none;
}
.rows a:hover { background: var(--paper); }
.rows a:hover .go { color: var(--accent); }
.rows p { color: var(--muted); }
.rows .go { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 700px) {
  .rows a { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .rows p { grid-column: 1; }
  .rows .go { grid-row: 1; grid-column: 2; }
}

/* ── Split (text + figure) ────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split p + p { margin-top: 14px; }
.split p { color: var(--ink-2); }
.split .actions { margin-top: 24px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
}

.ticks { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ── Tables ───────────────────────────────────────────────────────── */
/* position: relative keeps the absolutely positioned .sr-only cells inside the scroller */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td {
  padding: 13px 16px 13px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
}
.table tbody th { font-weight: 600; }
.table td { color: var(--ink-2); }
.table .no { color: var(--muted); }
.table .yes { color: var(--ok); font-weight: 600; }

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--ok);
  white-space: nowrap;
}
.status--dev { color: var(--accent); }

/* Editions matrix (pricing) */
.matrix { min-width: 720px; }
.matrix thead th { vertical-align: bottom; }
.matrix th.ed, .matrix td { text-align: center; width: 19%; padding-inline: 12px; }
.matrix thead th.ed {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.matrix .ed-name { display: block; font-size: 1.25rem; font-stretch: 87.5%; margin-bottom: 8px; }
.matrix .ed-desc { display: block; margin: 10px 0 14px; font-weight: 400; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.matrix .btn { min-height: 38px; padding: 0 12px; font-size: 0.85rem; width: 100%; }
.matrix tbody tr:hover { background: var(--paper); }
.matrix tbody th { padding-left: 4px; }

/* ── Steps ────────────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; padding: 22px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* ── Definition lists (spec list, FAQ) ────────────────────────────── */
.deflist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 64px); border-top: 1px solid var(--ink); }
.deflist > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 700; font-stretch: 87.5%; font-size: 1.08rem; margin-bottom: 6px; }
.deflist dd { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 760px) { .deflist { grid-template-columns: 1fr; } }

.note {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 880px;
}
.note strong { color: var(--ink); }

.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 0.95rem; list-style: none; }
.jump a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.jump a:hover { text-decoration-color: var(--accent); }

/* ── Closing block ────────────────────────────────────────────────── */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
}
.closing h2 { max-width: 22ch; }
.closing .actions { margin-top: 0; }

/* ── Page head (inner pages) ──────────────────────────────────────── */
.page-head { padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 18px; }

/* ── Contact ──────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.methods { border-top: 1px solid var(--ink); }
.methods > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.methods dt {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.methods dd { font-size: 1.15rem; font-weight: 600; }
.methods dd a, .methods dd button {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.methods dd a:hover, .methods dd button:hover { text-decoration-color: var(--accent); }
.methods dd small { display: block; font-size: 0.88rem; font-weight: 400; color: var(--muted); margin-top: 2px; }

.form { display: grid; gap: 18px; }
.form h2 { font-size: 1.4rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form--narrow { max-width: 560px; }

/* ── Documents (company, legal) ───────────────────────────────────── */
.doc { max-width: 720px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin-bottom: 12px; }

/* ── Status pages (success, 404) ──────────────────────────────────── */
.status-page { padding-block: clamp(56px, 9vw, 120px); min-height: 55vh; }
.status-page h1 { max-width: 18ch; }
.status-page .lede { margin-top: 18px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #b9bec4; font-size: 0.92rem; }
.site-footer .wrap { padding-block: 56px 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #343a41; }
.site-footer .brand { color: var(--white); }
.footer-top p { margin-top: 10px; max-width: 28ch; }
.site-footer h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d949b;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #dfe2e5; text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark-bg); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 0.85rem; color: #8d949b; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ── Blog ─────────────────────────────────────────────────────────── */
.cats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: 0.95rem; list-style: none; }
.cats a { color: var(--muted); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.cats a:hover { color: var(--ink); }
.cats a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.meta .cat { color: var(--accent); }

.feature-post {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-bottom: clamp(32px, 4vw, 48px);
  color: var(--ink);
  text-decoration: none;
}
.feature-post img { border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feature-post h2 { margin: 12px 0; }
.feature-post p { color: var(--ink-2); }
.feature-post:hover h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.feature-post--text { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .feature-post { grid-template-columns: minmax(0, 1fr); } }

.post-list { list-style: none; border-top: 1px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  gap: 8px 32px;
  padding: 20px 4px;
  color: var(--ink);
  text-decoration: none;
}
.post-list a:hover { background: var(--paper); }
.post-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); }
.post-list .meta { flex-direction: column; gap: 2px; }
.post-list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.post-list p { color: var(--muted); font-size: 0.95rem; }
.post-list .by { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) {
  .post-list a { grid-template-columns: minmax(0, 1fr); }
  .post-list .meta { flex-direction: row; gap: 4px 14px; }
}

.article-head { padding-top: clamp(36px, 5vw, 64px); }
.narrow { max-width: 720px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 16px; }
.back { display: inline-block; font-size: 0.92rem; margin-bottom: 24px; }
.article-fig { margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--line); }
.article-fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .article-fig img { aspect-ratio: 16 / 9; } }

.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--ink); text-decoration: none; }
.byline:hover { color: var(--ink); }
.byline:hover strong { text-decoration: underline; }
.byline span { display: grid; line-height: 1.3; }
.byline small { color: var(--muted); font-size: 0.85rem; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper); }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 112px; height: 112px; }
.avatar-initials { display: inline-grid; place-items: center; font-weight: 700; color: var(--ink); border: 1px solid var(--line); }

.article-body { padding-block: clamp(36px, 5vw, 56px) clamp(56px, 7vw, 96px); }
.prose { font-size: 1.07rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.1em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-2); }
.prose code { background: var(--paper); border: 1px solid var(--line-soft); padding: 1px 5px; }
.prose pre { background: var(--ink); color: #e8eaec; padding: 16px 20px; overflow-x: auto; font-size: 0.9rem; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose img { border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom-color: var(--ink); }

.tags { margin-top: 36px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

.author-box { display: flex; gap: 18px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); }
.author-box h2 { font-size: 1.15rem; }
.author-box h2 a { color: var(--ink); text-decoration: none; }
.author-box .role { color: var(--muted); font-size: 0.9rem; margin: 2px 0 10px; }
.author-box p { color: var(--ink-2); font-size: 0.95rem; }
.author-box .more { display: inline-block; margin-top: 8px; font-size: 0.92rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pager a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager small { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; text-align: left; } }

.author-head { display: flex; gap: 28px; align-items: center; }
.author-head .role { color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .author-head { flex-direction: column; align-items: flex-start; } }

/* ── Small screens: let wide screenshots scroll instead of shrinking ─ */
@media (max-width: 600px) {
  .fig { overflow-x: auto; }
  .fig img { width: auto; max-width: none; min-width: 560px; }
  .fig figcaption { position: sticky; left: 0; }
}
