/* railbed.com/insights: the articles' listing and pages. The railbed-site Worker renders them (site/worker.ts) with
   shared/insights-page.ts, whose markup these classes style; scripts/sitegen.py copies this file to site/public and
   versions it. Linked after pages.css and frame.css. Tokens only (docs-tokens.css). Unlike the rest of the marketing
   site, these pages follow the reader's light or dark setting, as the docs do: every colour here is a token, so the
   dark theme in docs-tokens.css carries the whole page, frame included. Composition: DESIGN.md §4 (type), §5 (the
   12-column grid with its 3-column label rail, which holds the article's facts and contents), §9 "Marketing site" and
   "Documentation" (a protected reading column), §11. Fluid from 320 to 2560: sizes run on a straight line from 390 to
   1440 and stop there (the content box stays 1200); breakpoints at 600, 900 and 1100. Motion is hover colour, a lift
   on the cards' pictures and a short rise of the listing's cards on arrival, all off under prefers-reduced-motion. */

.ins {
  --ins-cols: minmax(0, 3fr) minmax(0, 9fr);   /* the footer's columns: rail, then the reading line */
  --ins-gap: 24px;
  --ins-measure: 38em;                          /* about 72 characters of running text */
  --ins-shade: color-mix(in srgb, var(--text-strong) 12%, transparent);   /* a scrolling table's edge shadow */
  box-sizing: border-box;
  width: min(100% - 2 * var(--site-gut), var(--container));
  margin-inline: auto;
  padding: clamp(24px, 18.06px + 1.524vw, 40px) 0 clamp(72px, 57.14px + 3.81vw, 112px);
  color: var(--text-strong);
}
.ins ::selection { background: var(--selection); }

/* ---------- Breadcrumb: one line; a long title ends in an ellipsis (it is the heading below) ---------- */
.ins-crumbs { flex-wrap: nowrap; min-width: 0; margin: 0 0 clamp(20px, 16.29px + 0.952vw, 28px); }
.ins-crumbs > * { flex: none; }
.ins-crumbs > [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Article header: title, excerpt, then the facts (in the rail from 1100) ---------- */
.ins-head { padding-top: clamp(20px, 17.03px + 0.762vw, 28px); border-top: 1px solid var(--border-emphasis); }
.ins-title {
  margin: 0;
  font: 400 clamp(34px, 31.31px + 1.714vw, 56px)/1.06 var(--font-serif);
  letter-spacing: -0.028em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ins-dek {
  max-width: 31em;
  margin: clamp(16px, 13.03px + 0.762vw, 24px) 0 0;
  font: 400 clamp(17px, 15.89px + 0.286vw, 20px)/1.5 var(--font-sans);
  color: var(--text-body);
  text-wrap: pretty;
}
.ins-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 20px 0 0; font-size: var(--font-size-label); line-height: 1.5; }
.ins-meta__row { display: flex; gap: 6px; }
.ins-meta dt { color: var(--text-muted); }
.ins-meta dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Cover: the image at its own proportions up to 640px tall, or the plate ---------- */
.ins-cover { margin: clamp(32px, 23.09px + 2.286vw, 56px) 0 0; }
.ins-cover__img {
  display: block; box-sizing: border-box; width: 100%; height: auto; max-height: 640px;
  object-fit: cover; border-radius: var(--radius-l); background: var(--bg-subtle);
}
.ins-cover__img--none { aspect-ratio: 5 / 1; min-height: 132px; max-height: 240px; }

/* The plate for an article without a cover: ledger rules on stone, a margin line, the series number in the margin and
   the wordmark at the foot. Decorative only. */
.ins-ph {
  --ph-rule: 24px;
  --ph-margin: clamp(28px, 22.43px + 1.429vw, 48px);
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 0 20px clamp(16px, 13.03px + 0.762vw, 24px) calc(var(--ph-margin) + 16px);
  background-color: var(--bg-subtle);
  background-image:
    linear-gradient(to right, transparent calc(var(--ph-margin) - 1px), var(--border-strong) calc(var(--ph-margin) - 1px), var(--border-strong) var(--ph-margin), transparent var(--ph-margin)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--ph-rule) - 1px), var(--border) calc(var(--ph-rule) - 1px), var(--border) var(--ph-rule));
  border-radius: var(--radius-m);
  overflow: hidden;
  user-select: none;
}
.ins-ph__no {
  position: absolute; top: 14px; left: calc(var(--ph-margin) + 16px);
  font: 400 clamp(30px, 26.29px + 0.952vw, 40px)/1 var(--font-serif); letter-spacing: -0.02em; color: var(--text-strong);
  font-variant-numeric: tabular-nums lining-nums;
}
.ins-ph__mark { font: 400 clamp(24px, 21.77px + 0.571vw, 30px)/1 var(--font-serif); letter-spacing: -0.02em; color: var(--text-strong); }
.ins-ph__label { font-size: var(--font-size-label); line-height: 1.3; color: var(--text-muted); }
.ins-cover__img--none.ins-ph { border-radius: var(--radius-l); }

/* ---------- The body and its contents ---------- */
.ins-layout { margin-top: clamp(40px, 28.11px + 3.048vw, 72px); }

.ins-toc { margin: 0 0 clamp(40px, 34.06px + 1.524vw, 56px); padding: 18px 0 10px; border-top: 1px solid var(--border-emphasis); border-bottom: 1px solid var(--border); font-size: var(--font-size-ui); line-height: 1.45; }
.ins-toc__label { margin: 0 0 8px; font-size: var(--font-size-label); color: var(--text-muted); }
.ins-toc ol { margin: 0; padding: 0; list-style: none; }
.ins-toc li { break-inside: avoid; }
.ins-toc a { display: block; padding: 6px 0; color: var(--text-body); text-decoration: none; transition: color var(--dur-fast); }
.ins-toc a:hover { color: var(--text-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ins-toc a:focus-visible { outline-offset: -2px; }

/* The reading line is fixed at the body text's size, so a heading set larger keeps the same right edge. A registered
   length computes once here and is inherited as pixels; without @property a heading's line is merely wider. */
@property --ins-line { syntax: "<length>"; inherits: true; initial-value: 684px; }
.ins-prose { --ins-line: var(--ins-measure); font-size: clamp(17px, 16.63px + 0.095vw, 18px); line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.ins-prose > * { max-width: var(--ins-line); min-width: 0; }
.ins-prose > :first-child { margin-top: 0; }
.ins-prose > :last-child { margin-bottom: 0; }
.ins-prose p { margin: 0 0 1.1em; text-wrap: pretty; }
/* The opening letter, set in the serif across three lines, where the browser can draw it from the type's own metrics. */
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .ins-prose > p:first-child::first-letter { -webkit-initial-letter: 3; initial-letter: 3; margin-right: 0.14em; font-family: var(--font-serif); font-weight: 400; color: var(--text-strong); }
}
.ins-prose h2 {
  margin: 2.3em 0 0.55em;
  font: 400 clamp(25px, 23.03px + 0.762vw, 34px)/1.12 var(--font-serif);
  letter-spacing: -0.022em;
  color: var(--text-strong);
  text-wrap: balance;
  scroll-margin-top: 24px;
}
.ins-prose h3 {
  margin: 1.8em 0 0.45em;
  font: 500 clamp(18px, 17.63px + 0.095vw, 19px)/1.35 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--text-strong);
  scroll-margin-top: 24px;
}
.ins-prose h4 { margin: 1.5em 0 0.4em; font: 500 var(--font-size-body-l)/1.4 var(--font-sans); color: var(--text-strong); }
.ins-prose h2 + h3 { margin-top: 0.9em; }
/* A section's own link, shown when the heading is pointed at (the contents list every section for everyone else). */
.ins-anchor { margin-left: 0.35em; color: var(--text-placeholder); font: 400 0.8em/1 var(--font-sans); text-decoration: none; opacity: 0; transition: opacity var(--dur-fast), color var(--dur-fast); }
.ins-prose h2:hover .ins-anchor { opacity: 1; }
.ins-anchor:hover { color: var(--text-strong); }
.ins-prose ul, .ins-prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.ins-prose li { margin: 0 0 0.5em; padding-left: 0.3em; }
.ins-prose li::marker { color: var(--text-muted); }
.ins-prose ol > li::marker { font-variant-numeric: tabular-nums; }
.ins-prose li > ul, .ins-prose li > ol { margin: 0.5em 0 0; }
.ins-prose li > p { margin-bottom: 0.5em; }
.ins-prose strong { font-weight: 500; color: var(--text-strong); }
.ins-prose a { color: var(--text-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color var(--dur-fast); }
.ins-prose a:hover { text-decoration-color: var(--text-muted); }
.ins-prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 24px; border-left: 1px solid var(--border-emphasis);
  font: 400 clamp(20px, 18.89px + 0.286vw, 23px)/1.45 var(--font-serif); color: var(--text-strong);
}
.ins-prose blockquote p { margin: 0 0 0.6em; }
.ins-prose blockquote > :last-child { margin-bottom: 0; }
.ins-prose code {
  padding: 0.12em 0.36em; border-radius: var(--radius-xs); background: var(--bg-subtle);
  font: 400 0.86em/1 var(--font-mono); color: var(--text-strong); overflow-wrap: anywhere;
}
.ins-prose pre {
  max-width: none; margin: 1.5em 0; padding: 18px 20px; overflow-x: auto; overscroll-behavior-x: contain;
  border-radius: var(--radius-l); background: var(--code-bg); color: var(--code-text); font: var(--type-code);
}
.ins-prose pre code { padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
.ins-prose hr { height: 0; margin: 2.4em 0; border: 0; border-top: 1px solid var(--border); }
.ins-prose sup, .ins-prose sub { font-size: 0.72em; line-height: 0; }
.ins-prose del { color: var(--text-muted); }
.ins-prose mark { padding: 0 0.15em; background: var(--selection); color: inherit; }
.ins-prose kbd { padding: 0.1em 0.4em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--radius-xs); font: 400 0.82em/1 var(--font-mono); }
.ins-prose abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.ins-prose img { display: block; max-width: 100%; height: auto; }
.ins-prose dl { margin: 0 0 1.2em; }
.ins-prose dt { font-weight: 500; color: var(--text-strong); }
.ins-prose dd { margin: 0 0 0.8em; }

/* Tables: ruled like a ledger; wide ones scroll inside their own region (the importer's div.ins-table), and a shadow
   on the edge that still has columns past it says so. The shadows sit on the page and the covering strips scroll with
   the table (background-attachment: local), so each shadow shows only on the side with more to see. */
.ins-prose > .ins-table { max-width: none; }
.ins-table {
  margin: 1.6em 0 1.9em; overflow-x: auto; overscroll-behavior-x: contain; border-top: 1px solid var(--border-emphasis);
  background:
    linear-gradient(to right, var(--bg-page) 40%, transparent) left / 48px 100% no-repeat local,
    linear-gradient(to left, var(--bg-page) 40%, transparent) right / 48px 100% no-repeat local,
    linear-gradient(to right, var(--ins-shade), transparent) left / 14px 100% no-repeat scroll,
    linear-gradient(to left, var(--ins-shade), transparent) right / 14px 100% no-repeat scroll;
}
.ins-table:focus-visible { outline-offset: 3px; }
.ins-table table { width: 100%; min-width: 32em; border-collapse: collapse; font-size: var(--font-size-ui); line-height: 1.5; font-variant-numeric: tabular-nums lining-nums; }
.ins-table th, .ins-table td { padding: 12px 20px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.ins-table tr > :last-child { padding-right: 0; }
.ins-table th { font-weight: 500; color: var(--text-strong); }
.ins-table thead th { padding-top: 14px; border-bottom-color: var(--border-strong); }
.ins-table td { color: var(--text); }
.ins-table caption { padding: 12px 0 0; caption-side: bottom; text-align: left; font-size: var(--font-size-label); color: var(--text-muted); }

/* Figures may use the whole reading line; the caption keeps the measure. */
.ins-prose > .ins-figure { max-width: none; }
.ins-figure { margin: 2em 0; }
.ins-figure img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-m); background: var(--bg-subtle); }
.ins-figure figcaption { max-width: var(--ins-measure); margin-top: 12px; font-size: var(--font-size-label); line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }

/* The summary box: a sheet on paper, its label the one overline, with a rule running from it. */
.ins-tldr { margin: 1.7em 0 1.9em; padding: clamp(20px, 17.03px + 0.762vw, 28px); border: 1px solid var(--border-card); border-radius: var(--radius-l); background: var(--bg-surface); box-shadow: var(--shadow-1); }
.ins-prose .ins-tldr__label { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: var(--type-overline); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ins-prose .ins-tldr__label::after { content: ""; flex: 1 1 0; height: 1px; background: var(--border); }
.ins-tldr ul { margin: 0; padding-left: 1.2em; }
.ins-tldr li { margin: 0 0 0.45em; font-size: 0.95em; line-height: 1.6; }
.ins-tldr li:last-child { margin-bottom: 0; }

/* A call to action inside the article (a "cta" block): the summary box's sheet, its first line the heading. */
.ins-callout { margin: 1.9em 0; padding: clamp(20px, 17.03px + 0.762vw, 28px); border: 1px solid var(--border-card); border-radius: var(--radius-l); background: var(--bg-surface); box-shadow: var(--shadow-1); }
.ins-prose .ins-callout > p { margin: 0 0 8px; color: var(--text-body); }
.ins-prose .ins-callout > p:first-child { font: 400 clamp(20px, 18.89px + 0.286vw, 23px)/1.3 var(--font-serif); letter-spacing: -0.012em; color: var(--text-strong); text-wrap: balance; }
.ins-prose .ins-callout .ins-btn { margin: 12px 12px 0 0; color: var(--btn-primary-fg); text-decoration: none; overflow-wrap: normal; }

/* Questions: ruled rows, each question in the serif. */
.ins-faq { margin: 0.8em 0 2em; border-top: 1px solid var(--border-emphasis); }
.ins-faq__item { padding: 22px 0 6px; border-bottom: 1px solid var(--border); }
.ins-prose .ins-faq__item h3 { margin: 0 0 10px; font: 400 clamp(20px, 18.89px + 0.286vw, 23px)/1.3 var(--font-serif); letter-spacing: -0.012em; text-wrap: balance; }
.ins-faq__item p { margin: 0 0 16px; }

/* ---------- The article's foot: the dates once more and the way back ---------- */
.ins-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 34.06px + 1.524vw, 56px); padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--font-size-label); line-height: 1.5; color: var(--text-muted); }
.ins-foot p { margin: 0; }
.ins-foot__back a { color: var(--text-strong); text-decoration: none; }
.ins-foot__back a::before { content: "← "; }
.ins-foot__back a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- The closing call to action: an ink slab, the one high-contrast moment on the page ---------- */
.ins-cta {
  --ins-cta-fg: var(--text-inverse);
  --ins-cta-muted: var(--text-inverse-muted);
  margin: clamp(56px, 41.14px + 3.81vw, 96px) 0 0;
  padding: clamp(28px, 20.57px + 1.905vw, 48px);
  border-radius: var(--radius-l);
  background: var(--bg-inverse);
  color: var(--ins-cta-fg);
}
.ins-cta__kicker { margin: 0 0 14px; font: var(--type-overline); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ins-cta-muted); }
.ins-cta__title { max-width: 18em; margin: 0; font: 400 clamp(26px, 23.03px + 0.762vw, 34px)/1.1 var(--font-serif); letter-spacing: -0.022em; color: var(--ins-cta-fg); text-wrap: balance; }
.ins-cta__text { max-width: 34em; margin: 12px 0 0; font-size: var(--font-size-body-l); line-height: 1.55; color: var(--ins-cta-muted); text-wrap: pretty; }
.ins-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.ins-cta ::selection { background: var(--ins-cta-muted); color: var(--bg-inverse); }
.ins-btn {
  position: relative; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  height: var(--button-height-md); padding: 0 var(--button-pad-md); border: 1px solid transparent; border-radius: var(--radius-xs);
  font: var(--button-weight) var(--button-font-md)/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-base), border-color var(--dur-base);
}
.ins-btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.ins-btn--primary:hover { background: var(--btn-primary-hover); }
.ins-btn--quiet { background: var(--btn-quiet-bg); color: var(--text-strong); }
.ins-btn--quiet:hover { background: var(--btn-quiet-hover); }
/* On the slab: the page's own colour is the inverted button in either theme; the quiet one is a hairline. */
.ins-btn--on-dark { background: var(--bg-page); color: var(--text-strong); }
.ins-btn--on-dark:hover { background: var(--bg-subtle); }
.ins-btn--on-dark-quiet { border-color: color-mix(in srgb, var(--ins-cta-fg) 35%, transparent); color: var(--ins-cta-fg); }
.ins-btn--on-dark-quiet:hover { border-color: var(--ins-cta-fg); background: color-mix(in srgb, var(--ins-cta-fg) 8%, transparent); }
.ins-cta .ins-btn:focus-visible { outline-color: var(--ins-cta-fg); }

/* ---------- Related articles ---------- */
.ins-related { margin-top: clamp(72px, 57.14px + 3.81vw, 112px); padding-top: clamp(20px, 17.03px + 0.762vw, 28px); border-top: 1px solid var(--border-emphasis); }
.ins-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 0 0 clamp(28px, 22.06px + 1.524vw, 44px); }
.ins-related__title { margin: 0; font: 400 clamp(28px, 25.03px + 0.762vw, 36px)/1.08 var(--font-serif); letter-spacing: -0.025em; }
.ins-related__all { font-size: var(--font-size-ui); color: var(--text-strong); text-decoration: none; }
.ins-related__all::after { content: " →"; }
.ins-related__all:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Listing ---------- */
.ins-listhead { padding-top: clamp(20px, 17.03px + 0.762vw, 28px); border-top: 1px solid var(--border-emphasis); }
.ins-listhead__title { margin: 0; font: 400 clamp(42px, 30.86px + 2.857vw, 72px)/1.02 var(--font-serif); letter-spacing: -0.03em; text-wrap: balance; }
.ins-listhead__lead { max-width: 31em; margin: clamp(16px, 13.03px + 0.762vw, 24px) 0 0; font: 400 clamp(17px, 15.89px + 0.286vw, 20px)/1.5 var(--font-sans); color: var(--text-body); text-wrap: pretty; }
.ins-listhead__count { margin: 14px 0 0; font: var(--type-overline); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ins--down .ins-listhead__title { font-size: clamp(34px, 31.31px + 1.714vw, 56px); line-height: 1.06; letter-spacing: -0.028em; }
.ins-down__links { margin: clamp(28px, 22.06px + 1.524vw, 44px) 0 0; font-size: var(--font-size-body-l); line-height: 1.6; color: var(--text-body); }

.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 37.03px + 0.762vw, 48px) var(--ins-gap); margin: 0; padding: 0; list-style: none; }
.ins-grid--list { margin-top: clamp(40px, 28.11px + 3.048vw, 72px); }

.ins-card { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ins-card__media { aspect-ratio: 40 / 21; overflow: hidden; border-radius: var(--radius-m); background: var(--bg-subtle); }
.ins-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ins-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ins-card__title { margin: 0; font: 400 clamp(21px, 20.51px + 0.381vw, 26px)/1.18 var(--font-serif); letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: anywhere; }
.ins-card__link { color: var(--text-strong); text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* The whole card is the link's target; its focus ring is drawn around the card. */
.ins-card__link::after { content: ""; position: absolute; inset: -6px; border-radius: var(--radius-l); }
.ins-card:hover .ins-card__link { text-decoration-line: underline; }
.ins-card__link:focus-visible { outline: none; }
.ins-card__link:focus-visible::after { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ins-card__excerpt { margin: 0; font-size: var(--font-size-ui); line-height: 1.55; color: var(--text-body); text-wrap: pretty; overflow-wrap: break-word; }
.ins-card__meta { margin: 0; font-size: var(--font-size-label); line-height: 1.4; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ins-card__no { color: var(--text); }
.ins-card__media .ins-ph { display: flex; width: 100%; height: 100%; border-radius: 0; }

/* Pagination: newer and older at either end, the pages between. */
.ins-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: clamp(56px, 44.11px + 3.048vw, 88px); padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--font-size-ui); }
.ins-pages__step { flex: 1 1 0; min-width: max-content; }
.ins-pages__step--next { text-align: right; }
.ins-pages a { color: var(--text-strong); }
.ins-pages__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ins-pages__list a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px; box-sizing: border-box; border-radius: var(--radius-xs); color: var(--text-body); text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color var(--dur-fast); }
.ins-pages__list a:hover { background: var(--btn-quiet-bg); color: var(--text-strong); }
.ins-pages__list a[aria-current] { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.ins-pages__gap { display: inline-flex; align-items: center; min-width: 24px; justify-content: center; color: var(--text-muted); }

/* The empty state. */
.ins-empty { margin-top: clamp(40px, 28.11px + 3.048vw, 72px); padding-top: clamp(20px, 17.03px + 0.762vw, 28px); border-top: 1px solid var(--border-emphasis); }
.ins-empty__title { margin: 0 0 12px; font: 400 clamp(26px, 24.51px + 0.381vw, 30px)/1.15 var(--font-serif); letter-spacing: -0.02em; }
.ins-empty p { max-width: var(--ins-measure); margin: 0; font-size: var(--font-size-body-l); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }

/* ---------- 600: two columns of cards; the contents in two columns ---------- */
@media (min-width: 600px) {
  .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-grid > .ins-card--lead { grid-column: 1 / -1; }
  .ins-toc ol { columns: 2; column-gap: 32px; }
}

/* ---------- 900: the lead story beside its cover; the listing's masthead in two halves ---------- */
@media (min-width: 900px) {
  .ins-card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; column-gap: clamp(24px, 4vw, 56px); }
  .ins-card--lead .ins-card__title { font-size: clamp(30px, 26.29px + 0.952vw, 40px); line-height: 1.08; letter-spacing: -0.024em; }
  .ins-card--lead .ins-card__excerpt { font-size: var(--font-size-body-l); }
  .ins-card--lead .ins-ph__no { font-size: clamp(40px, 34.06px + 1.524vw, 56px); top: 18px; }
  .ins-listhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: var(--ins-gap); }
  .ins-listhead__lead { margin: 0; }
  .ins-listhead__count { grid-column: 1 / -1; }
  .ins--down .ins-listhead { display: block; }
  .ins--down .ins-listhead__lead { margin-top: 24px; }
}

/* ---------- 1100: the label rail. The article's facts and contents sit in it; the reading line starts where the
   footer's columns do. Three columns of cards. ---------- */
@media (min-width: 1100px) {
  .ins-head, .ins-layout, .ins-empty, .ins-foot { display: grid; grid-template-columns: var(--ins-cols); column-gap: var(--ins-gap); }
  .ins-head > * { grid-column: 2; }
  .ins-head > .ins-meta { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; gap: 14px; margin: 0; padding-top: 8px; align-self: start; }
  .ins-meta__row { flex-direction: column; gap: 2px; }
  .ins-meta dd { font-size: var(--font-size-ui); }
  .ins-layout { align-items: start; }
  .ins-prose { grid-column: 2; }
  .ins-toc {
    grid-column: 1; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
    margin: 0; padding: 0 16px 0 0; border: 0; font-size: var(--font-size-label);
  }
  .ins-toc__label { margin-bottom: 10px; }
  .ins-toc ol { columns: auto; border-left: 1px solid var(--border); }
  .ins-toc a { margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; color: var(--text-muted); transition: color var(--dur-fast), border-color var(--dur-fast); }
  .ins-toc a:hover { color: var(--text-strong); border-left-color: var(--border-emphasis); text-decoration: none; }
  /* The section being read (insights.js marks it): ink on the rail's rule. */
  .ins-toc a[aria-current] { color: var(--text-strong); border-left-color: var(--text-strong); }
  .ins-foot { justify-content: start; }
  .ins-foot__back { grid-column: 1; grid-row: 1; }
  .ins-foot__line { grid-column: 2; }
  .ins-cta { margin-left: calc((100% - var(--ins-gap)) * 3 / 12 + var(--ins-gap)); }
  .ins-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ins-empty__title { grid-column: 1; margin: 0; }
  .ins-empty p { grid-column: 2; }
}

/* ---------- Phones ---------- */
@media (max-width: 599px) {
  .ins-pages__list { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .ins-cta__actions .ins-btn { flex: 1 1 auto; }
  .ins-foot { flex-direction: column-reverse; }
}

/* ---------- Touch: links and buttons reach the touch target ---------- */
@media (any-pointer: coarse) {
  .ins-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
  .ins-btn { min-height: var(--touch-target); }
  .ins-pages__list a { min-width: 44px; height: 44px; }
  .ins-pages__step a { display: inline-flex; align-items: center; min-height: 44px; }
  .ins-anchor { display: none; }
}

/* ---------- Motion: a lift on a card's picture, and the listing's cards rising into place after the lead ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ins-card__img { transition: transform var(--dur-slow) var(--ease-out); }
  .ins-card:hover .ins-card__img, .ins-card:focus-within .ins-card__img { transform: scale(1.025); }
  .ins-card:hover .ins-ph__no { transform: translateX(6px); }
  .ins-ph__no { transition: transform var(--dur-slow) var(--ease-out); }
  .ins-grid--list > .ins-card:not(.ins-card--lead) { animation: ins-rise 0.5s var(--ease-out) both; }
  .ins-grid--list > .ins-card:nth-child(2) { animation-delay: 60ms; }
  .ins-grid--list > .ins-card:nth-child(3) { animation-delay: 120ms; }
  .ins-grid--list > .ins-card:nth-child(4) { animation-delay: 180ms; }
  .ins-grid--list > .ins-card:nth-child(5) { animation-delay: 240ms; }
  .ins-grid--list > .ins-card:nth-child(6) { animation-delay: 300ms; }
  .ins-grid--list > .ins-card:nth-child(7) { animation-delay: 360ms; }
  .ins-grid--list > .ins-card:nth-child(n + 8) { animation-delay: 400ms; }
}
@keyframes ins-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Dark: photographs a touch quieter against the dark page ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ins-cover__img, :root:not([data-theme="light"]) .ins-card__img, :root:not([data-theme="light"]) .ins-figure img { filter: brightness(0.92); }
}
[data-theme="dark"] .ins-cover__img, [data-theme="dark"] .ins-card__img, [data-theme="dark"] .ins-figure img { filter: brightness(0.92); }

/* ---------- Print: the article alone, on the whole page ---------- */
@media print {
  .ins-toc, .ins-cta, .ins-related, .ins-foot__back, .ins-anchor { display: none; }
  .ins-head, .ins-layout { display: block; }
  .ins-prose > * { max-width: none; }
  .ins-table { overflow: visible; background: none; }
}
