/* Research (web/research/, written by scripts/research.mjs): the guides' reading column and the About page's voice,
   set as a research publication. An article keeps its heading, text, captions and foot on the same two edges (charts
   and a wide table reach past them, centred), and figures keep a light plate in both themes (the charts are drawn on a light
   background). Everything has its size before it loads, so nothing moves as the page fills in. */

/* The kind and the date over a title: "STUDY · 24 November 2026". */
.rs-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.4; }
.rs-kicker span { color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rs-kicker span::after { content: ""; display: inline-block; width: 3px; height: 3px; margin-left: 10px; border-radius: 50%; background: var(--faint); vertical-align: middle; }

/* ───────── an article ───────── */
/* One column, read from its left edge: the heading lines up with the text, which keeps about 75 characters a line.
   A chart is about a third wider than the text and centred on it, as Anthropic's and OpenAI's research pages set
   theirs, so its labels are drawn larger. --rs-col is the text's width, --rs-fig a chart's, --rs-gut the margin. */
.rs-article { --rs-col: 740px; --rs-fig: 1000px; --rs-gut: 24px; }
.doc .page.prose.rs-article { max-width: calc(var(--rs-col) + 2 * var(--rs-gut)); padding-bottom: 72px; }
.rs-article .crumb, .doc .prose.guide.rs-article h1, .rs-article .lead { text-align: left; }
.rs-article .crumb { margin-bottom: 22px; }
.doc .prose.guide .rs-head h1 { max-width: none; margin: 0 0 18px; font-size: clamp(34px, 5vw, 54px); }
.doc .prose.guide .rs-head .lead { max-width: 680px; margin: 0 0 22px; }
.rs-head { margin-bottom: 44px; }
.rs-by { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rs-by a { color: var(--text); font-weight: 500; text-decoration: none; }
.rs-by a:hover { text-decoration: underline; }
.rs-by span::before { content: "·"; margin-right: 10px; color: var(--faint); }

/* The study's cover, as a wide band across the top of the article: as wide as a chart, centred on the text, cut to
   3 by 1 from the middle of the picture (each cover keeps its idea in its middle third). It has its shape before it
   loads, so nothing moves. On a phone it runs to both edges of the screen, a little taller. */
.rs-cover { width: min(var(--rs-fig), 100vw - 2 * var(--rs-gut)); max-width: none; margin: -12px 0 40px 50%; translate: -50% 0; }
.rs-cover img { display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border: 1px solid var(--hair); border-radius: 14px; background: var(--hair); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-cover img { border-color: var(--border); } }
:root[data-theme="dark"] .rs-cover img { border-color: var(--border); }
@media (max-width: 788px) {
  .rs-cover { width: calc(100% + 2 * var(--rs-gut)); margin: -8px 0 28px calc(-1 * var(--rs-gut)); translate: none; }
  .rs-cover img { aspect-ratio: 2 / 1; border-width: 1px 0; border-radius: 0; }
}

/* The article itself. */
.rs-body h2 { scroll-margin-top: 96px; }
.rs-body > :first-child { margin-top: 0; }
.rs-body blockquote { margin: 32px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--text); font-size: 21px; letter-spacing: -0.012em; line-height: 1.5; }
.rs-body blockquote p:last-child { margin-bottom: 0; }
.rs-body code { padding: 1px 5px; border-radius: 5px; background: var(--hair); font: .86em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.rs-body sup { line-height: 0; }
.rs-body sup a { text-decoration: none; font-weight: 600; }
.rs-n { margin-right: 4px; color: var(--text); font-weight: 600; }

/* Figures: wider than the text and centred on it, on the light plate they were drawn for in both themes. The caption
   comes back to the text's width and edges, so the eye reads on from it. A tall chart (a long ranked list, marked
   rs-tall by the build) keeps the text's width, so it does not grow taller than a screen. */
.rs-body figure { position: relative; width: min(var(--rs-fig), 100vw - 2 * var(--rs-gut)); max-width: none; margin: 44px 0 48px 50%; translate: -50% 0; }
.rs-body figure.rs-tall { width: min(var(--rs-col), 100vw - 2 * var(--rs-gut)); }
.rs-body figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; background: #f6f5f3; }
.rs-body figcaption { width: min(var(--rs-col), 100%); margin: 12px auto 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-body figure img { padding: 6px; border-color: transparent; } }
:root[data-theme="dark"] .rs-body figure img { padding: 6px; border-color: transparent; }

/* Tables never scroll sideways: a table as wide as the text or narrower takes the text's width, and a wider one
   reaches past it, centred on the text, up to the width the guides' examples break out to, with its cells wrapping.
   Only a table that still cannot fit (a word longer than its cell) scrolls, as a last resort. */
.rs-table { position: relative; width: max-content; min-width: 100%; max-width: min(1040px, 100vw - 40px); margin: 32px 0 36px 50%; translate: -50% 0; overflow-x: auto; }
.rs-table:focus-visible { outline-offset: 4px; }
.rs-table table { width: 100%; font-variant-numeric: tabular-nums; }
.rs-table th, .rs-table td { min-width: 4.5em; }
.rs-table caption { padding: 0 40px 10px 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-align: left; caption-side: top; }

/* The button that opens a figure or a table large (js/research.js puts it in): a small round mark on the corner,
   over the picture, so it moves nothing. A phone always shows it; with a mouse it shows on hover or focus. */
.rs-zoom-btn { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #dcd9d4; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1c1b19; cursor: zoom-in; transition: opacity .15s; }
.rs-table > .rs-zoom-btn { top: 0; right: 0; }
.rs-zoom-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .rs-zoom-btn { opacity: 0; }
  .rs-body figure:hover .rs-zoom-btn, .rs-table:hover .rs-zoom-btn, .rs-zoom-btn:focus-visible { opacity: 1; }
}
.rs-zoomable figure img { cursor: zoom-in; }

/* "Copy link" on a chart that has a share page (js/research.js): the same quiet mark as the enlarge button, just to
   its left, with its words. "Copied" takes the same space, so nothing moves. On a phone the chart is too small to
   cover, so it is a round icon at the end of the caption's first line (the caption keeps room for it from the start)
   and shows its word only once it has copied. */
.rs-link-btn { position: absolute; top: 8px; right: 48px; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 104px; height: 32px; padding: 0 12px 0 10px; border: 1px solid #dcd9d4; border-radius: 16px; background: rgba(255, 255, 255, .92); color: #1c1b19; font: inherit; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; transition: opacity .15s; }
.rs-link-btn svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .rs-link-btn { opacity: 0; }
  .rs-body figure:hover .rs-link-btn, .rs-link-btn:focus-visible, .rs-link-btn.is-done { opacity: 1; }
}
@media (max-width: 760px) {
  .rs-body figure[data-share] figcaption { position: relative; padding-right: 44px; }
  figcaption > .rs-link-btn { top: -4px; right: 0; }
  .rs-link-btn:not(.is-done) { min-width: 0; width: 32px; padding: 0; }
  .rs-link-btn:not(.is-done) span { display: none; }
}
/* Arriving from a chart link (/research/<slug>#fig-2): the chart stops clear of the header and is ringed for a moment. */
.rs-body figure { scroll-margin-top: 96px; }
.rs-body figure:target img { animation: rs-here 2.4s ease-out; }
@keyframes rs-here { from { box-shadow: 0 0 0 3px #ff4d00; } to { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .rs-body figure:target img { animation: none; } }

/* The large view: the whole screen, the figure or table in the middle, an X in the corner. A chart is shown big
   enough to read on a phone and can be scrolled or pinched; a table keeps a readable size and scrolls inside. */
:root.rs-locked { overflow: hidden; }
.rs-zoom { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); }
.rs-zoom::backdrop { background: var(--bg); }
.rs-zoom[open] { display: flex; flex-direction: column; }
.rs-zoom-stage { display: flex; flex: 1; min-height: 0; overflow: auto; padding: 64px 20px 28px; overscroll-behavior: contain; }
.rs-zoom-in { width: max-content; max-width: 100%; margin: auto; }
.rs-zoom-in:not(.is-fig) { max-width: none; }
.rs-zoom figure { margin: 0; }
.rs-zoom img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 180px); border-radius: 12px; background: #f6f5f3; }
.rs-zoom figcaption { max-width: 760px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rs-zoom table { width: max-content; max-width: 1200px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.rs-zoom th, .rs-zoom td { min-width: 5em; max-width: 20em; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.rs-zoom th { border-bottom-color: var(--border); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.rs-zoom td:first-child { font-weight: 500; }
.rs-zoom-cap { position: sticky; left: 0; max-width: min(760px, 100vw - 40px); margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rs-zoom-x { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.rs-zoom-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (pointer: coarse) {
  /* On a touch screen a chart opens wider than the screen when it has to, so its labels can be read; it scrolls. */
  .rs-zoom-in.is-fig { max-width: none; }
  .rs-zoom img { width: max(100%, 760px); max-width: none; max-height: none; }
  .rs-zoom figcaption { max-width: calc(100vw - 40px); position: sticky; left: 0; }
}
@media (max-width: 760px) { .rs-zoom th, .rs-zoom td { max-width: 12em; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-zoom img { padding: 6px; } }
:root[data-theme="dark"] .rs-zoom img { padding: 6px; }

/* The foot of an article: how to cite it (with the data beside it) and what to read next, each a quiet line under a
   small label. */
.rs-foot { margin-top: 56px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.55; }
.rs-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.doc .prose.guide .rs-row h2 { margin: 0; padding-top: 2px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.doc .prose.guide .rs-row p { margin: 0; color: var(--muted); }
.doc .prose.guide #citation { color: var(--text); overflow-wrap: anywhere; }
.doc .prose.guide .rs-acts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; }
.rs-acts a, .rs-copy { color: var(--muted); font: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.rs-copy { min-width: 7.6em; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; } /* wide enough for "Copied" and "Selected", so the link beside it stays put */
.rs-acts a:hover, .rs-copy:hover { color: var(--text); text-decoration-color: currentColor; }
.rs-more ul { margin: 0; padding: 0; list-style: none; }
.doc .prose.guide .rs-more li { margin: 0 0 4px; }
.rs-more a { display: grid; grid-template-columns: 10em minmax(0, 1fr); align-items: baseline; color: var(--text); text-decoration: none; }
.rs-more a span { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rs-more a:hover { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.rs-row:last-child { border-bottom: 0; }

/* The sign-in error for "Try it free" (js/about.js), under the header since these pages have no bar at the bottom. */
.rs-error { position: fixed; top: 86px; left: 50%; z-index: 20; max-width: calc(100% - 32px); margin: 0; padding: 10px 14px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

/* ───────── the list (/research) ───────── */
/* The statement, then one list on a wide grid with a picture for every study: its cover, drawn by code from an idea in
   the study (studies/_shared/cover). The lead study is large beside its cover, the next two sit under theirs, and the
   rest are rows of title, number and date in two columns, each with its cover small at its left. A study with no
   cover shows its chart instead, on the light plate the chart was drawn for. Every picture has its size before it
   loads, so nothing moves. */
.rs-index { --rs-gap: 56px; --rs-side: 40px; }
/* The statement sits on the same grid as the list under it: the heading over the picture's seven columns, set from
   the grid's left edge, and the sentence about who we are in the five columns where the lead study's words are, level
   with the heading's last line. */
.ab.rs-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 0 var(--rs-gap); max-width: 1200px; margin: 0 auto; padding: 8vh var(--rs-side) 0; text-align: left; }
.rs-hero h1 { max-width: 12ch; margin: 0; font-size: clamp(40px, 6.4vw, 92px); }
.rs-hero h1 span { text-wrap: balance; }
.rs-hero .ab-body { max-width: 440px; margin: 0 0 .6em; font-size: 18px; }
.rs-list { max-width: 1200px; margin: 0 auto; padding: 72px var(--rs-side) 24px; }

/* A small label on a heavy rule, with how many studies there are at its right end. The same bar holds the filters
   (js/research.js), set as quietly as the count: after the label, the topics as plain words, the chosen one in the
   text's colour; at the right, "Search", which opens into a field in its own place, growing to the left. They are shown
   only with scripts on (js/research-early.js, before the first frame), each no taller than the count, so the bar is
   the same height with them or without, open or closed, and nothing under it ever moves. */
.rs-bar { display: flex; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--text); font-size: 12.5px; line-height: 1.4; }
.rs-bar h2 { flex: none; margin: 0; font-size: inherit; font-weight: 600; letter-spacing: .08em; line-height: inherit; text-transform: uppercase; }
.rs-count { flex: none; min-width: 5.5em; margin-left: auto; color: var(--faint); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.rs-topics, .rs-find { display: none; }
.rs-bar button { padding: 0; border: 0; background: none; color: var(--faint); font: inherit; font-size: 13px; font-weight: 500; line-height: inherit; letter-spacing: 0; cursor: pointer; }
.rs-bar button:hover, .rs-topics button[aria-pressed="true"] { color: var(--text); }
.rs-js .rs-topics { display: flex; flex: none; margin-left: 32px; }
.rs-topics button { flex: none; white-space: nowrap; }
.rs-topics button + button::before { content: "\00b7"; display: inline-block; width: 22px; color: var(--faint); text-align: center; }
.rs-js .rs-find { --pad: 24px; position: relative; display: flex; flex: none; align-items: baseline; min-width: 0; margin-left: auto; padding-left: var(--pad); }
/* Open, it takes the free room to its left, up to a comfortable width, and never more than there is. */
.rs-js .rs-find.is-open { flex: 1 1 0; max-width: 300px; }
.rs-js .rs-find + .rs-count { margin-left: 20px; }
.rs-find svg { flex: none; align-self: center; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rs-open { display: flex; align-items: baseline; gap: 6px; }
/* Open, the words "Search" stay in place unseen, so the line is drawn exactly as before, and the field lies over
   them and the room to their left. */
.rs-find input, .rs-x { display: none; }
.rs-find.is-open .rs-open span { visibility: hidden; }
.rs-find.is-open .rs-open { color: var(--text); pointer-events: none; }
.rs-find.is-open input { position: absolute; top: 0; right: 0; bottom: 0; left: calc(var(--pad) + 20px); display: block; box-sizing: border-box; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; line-height: normal; -webkit-appearance: none; appearance: none; outline: none; box-shadow: 0 1px 0 var(--border); }
.rs-find input:focus { box-shadow: 0 1px 0 var(--muted); }
.rs-find input::placeholder { color: var(--faint); opacity: 1; }
.rs-find input::-webkit-search-cancel-button { display: none; }
.rs-find.is-open.has-text input { padding-right: 22px; }
.rs-find.is-open.has-text .rs-x { position: absolute; top: 50%; right: 0; display: grid; place-items: center; width: 22px; height: 22px; translate: 0 -50%; }
.rs-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--rs-gap); margin: 0; padding: 0; list-style: none; }
.rs-rows li { min-width: 0; border-bottom: 1px solid var(--hair); }
.rs-rows a { display: grid; align-content: start; gap: 4px; box-sizing: border-box; height: 100%; padding: 22px 0 24px; text-decoration: none; }
.rs-t { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; text-wrap: pretty; }
.rs-rows a:hover .rs-t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.rs-l { color: var(--muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.rs-l b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
/* When it was published and how long it takes to read, under each row. */
.rs-m { margin-top: 4px; color: var(--faint); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }

/* The pictures: 16:9, with a hairline so a dark cover keeps its edge on the dark page. */
.rs-rows img { display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid var(--hair); border-radius: 12px; background: var(--hair); transition: border-color .15s, filter .2s; }
.rs-rows a:hover img { filter: brightness(1.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-rows img { border-color: var(--border); } }
:root[data-theme="dark"] .rs-rows img { border-color: var(--border); }
/* A chart, where a study has no cover yet, on the light plate it was drawn for. */
.rs-rows img[src$=".svg"] { border-color: var(--border); background: #f6f5f3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-rows img[src$=".svg"] { padding: 6px 6px 0; border-color: transparent; } }
:root[data-theme="dark"] .rs-rows img[src$=".svg"] { padding: 6px 6px 0; border-color: transparent; }

/* The lead study, across the grid: its cover on the left, seven parts of twelve, and its title, number and date set
   large beside it. */
.rs-rows .rs-lead { grid-column: 1 / -1; }
.rs-rows .rs-lead a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 0 var(--rs-gap); padding: 32px 0 36px; }
.rs-txt { display: grid; align-content: start; gap: 4px; min-width: 0; }
.rs-lead .rs-txt { gap: 8px; }
.rs-lead .rs-t { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.12; }
.rs-lead .rs-l { font-size: 17px; }
/* The next studies, one to a column, each under its cover. */
.rs-pic img { margin-bottom: 14px; }
.rs-pic .rs-t { font-size: 22px; letter-spacing: -0.025em; line-height: 1.22; }
/* The rest: the cover small at the left of the row, its top level with the title's. */
.rs-rows .rs-th a { grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 0 20px; }
.rs-th img { margin-top: 3px; border-radius: 6px; }
/* While a search or a topic is in use, every match is a row like these: the lead and the pictured studies drop to the
   same small cover, size and place, so nothing found sits above what it does not belong with. */
.rs-rows.is-filtered .rs-lead { grid-column: auto; }
.rs-rows.is-filtered .rs-lead a, .rs-rows.is-filtered .rs-pic a { grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 0 20px; padding: 22px 0 24px; }
.rs-rows.is-filtered .rs-lead img, .rs-rows.is-filtered .rs-pic img { margin: 3px 0 0; border-radius: 6px; }
.rs-rows.is-filtered .rs-lead .rs-txt { gap: 4px; }
.rs-rows.is-filtered .rs-lead .rs-t, .rs-rows.is-filtered .rs-pic .rs-t { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.rs-rows.is-filtered .rs-lead .rs-l { font-size: 15px; }
/* Opened at an address with a search or topic in it (js/research-early.js), the list stays unseen until it is
   filtered, so it never shows whole and then jumps. If the script never comes, it shows anyway after a moment. */
.rs-pending .rs-rows, .rs-pending .rs-feed, .rs-pending .lp-foot { visibility: hidden; animation: rs-show 0s 1.5s forwards; }
@keyframes rs-show { to { visibility: visible; } }
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rs-none { padding: 28px 0 30px; border-bottom: 1px solid var(--hair); }
.rs-none p { margin: 0 0 12px; color: var(--muted); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.rs-none button { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; cursor: pointer; }
.rs-none button:hover { text-decoration-color: currentColor; }

.rs-empty { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 17px; }
.rs-feed { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: 36px 0 0; font-size: 14.5px; }
.rs-feed a { color: var(--muted); }
.rs-feed a:hover { color: var(--text); }

/* Where the topics no longer fit beside the label they take a second line of the bar, under the rule's label and
   count, scrolling sideways inside it (to the screen's edges) and never the page. Each topic's tap area reaches 10px
   above and below its words without making the line taller. */
@media (max-width: 1100px) {
  .rs-js .rs-bar { flex-wrap: wrap; }
  .rs-js .rs-topics { order: 1; flex: 0 0 calc(100% + 2 * var(--rs-side)); box-sizing: border-box; height: calc(13px * 1.4 + 20px); margin: 0 calc(-1 * var(--rs-side)) -10px; padding: 0 var(--rs-side); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .rs-topics::-webkit-scrollbar { display: none; }
  .rs-topics::after { content: ""; flex: none; width: var(--rs-side); }
  .rs-topics button { height: 100%; }
}
/* Narrower screens: the lead study's cover goes above its words; then one column, as on a phone. */
@media (max-width: 960px) {
  .rs-index { --rs-gap: 36px; --rs-side: 24px; }
  .ab.rs-hero { grid-template-columns: minmax(0, 1fr); }
  .rs-hero .ab-body { max-width: 560px; margin: 32px 0 0; }
  .rs-rows .rs-lead a { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rs-rows .rs-th a, .rs-rows.is-filtered .rs-lead a, .rs-rows.is-filtered .rs-pic a { grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; }
}
@media (max-width: 680px) {
  .ab.rs-hero { padding-top: 40px; }
  .rs-hero .ab-body { margin-top: 24px; font-size: 17px; }
  .rs-list { padding-top: 40px; }
  .rs-rows { grid-template-columns: minmax(0, 1fr); }
  .rs-rows a { gap: 3px; padding: 16px 0 17px; }
  .rs-rows .rs-lead a, .rs-rows .rs-pic a { padding: 20px 0 22px; }
  .rs-rows .rs-lead a { gap: 12px; }
  .rs-rows img { border-radius: 10px; }
  .rs-pic img { margin-bottom: 9px; }
  .rs-lead .rs-t { font-size: 24px; }
  .rs-pic .rs-t { font-size: 20px; }
  .rs-txt { gap: 3px; }
  .rs-lead .rs-txt { gap: 5px; }
  .rs-rows .rs-th a, .rs-rows.is-filtered .rs-lead a, .rs-rows.is-filtered .rs-pic a { grid-template-columns: 88px minmax(0, 1fr); gap: 0 14px; }
  .rs-th img, .rs-rows.is-filtered .rs-lead img, .rs-rows.is-filtered .rs-pic img { border-radius: 5px; }
  .rs-rows.is-filtered .rs-lead a, .rs-rows.is-filtered .rs-pic a { padding: 16px 0 17px; }
  .rs-rows.is-filtered .rs-lead .rs-txt { gap: 3px; }
  .rs-rows.is-filtered .rs-lead .rs-t, .rs-rows.is-filtered .rs-pic .rs-t { font-size: 18px; }
  /* Drawn at 13px like the rest of the bar: set at 16px (so iOS does not zoom into it) and scaled down. */
  .rs-find.is-open input { right: auto; width: calc((100% - var(--pad) - 20px) / .8125); font-size: 16px; transform: scale(.8125); transform-origin: 0 50%; }
  .rs-find.is-open.has-text input { padding-right: 28px; }
  .rs-js .rs-find { --pad: 16px; }
}

/* Once the screen is no wider than the column and its margins (740 + 2 x 24), a chart runs to both edges of the
   screen, the most width there is for its labels; its caption keeps the text's edges. */
@media (max-width: 788px) {
  .rs-body figure, .rs-body figure.rs-tall { width: calc(100% + 2 * var(--rs-gut)); margin: 36px 0 40px calc(-1 * var(--rs-gut)); translate: none; }
  .rs-body figure img { border-width: 1px 0; border-radius: 0; }
  .rs-body figcaption { width: auto; margin: 10px var(--rs-gut) 0; }
}
/* On a phone the text is set a size smaller (17px; OpenAI sets its text at 17px, Anthropic at 16px on a phone), so a
   line holds about 39 characters instead of 36 and the article is a tenth shorter to scroll. */
@media (max-width: 600px) {
  .doc .prose.guide.rs-article { font-size: 17px; line-height: 1.65; }
  .doc .prose.guide .rs-head .lead { font-size: 19px; }
}
@media (max-width: 760px) {
  .rs-head { margin-bottom: 34px; }
  .rs-body blockquote { font-size: 19px; }
  .rs-row { grid-template-columns: minmax(0, 1fr); }
  .rs-more a { grid-template-columns: minmax(0, 1fr); }
  .doc .prose.guide .rs-more li { margin-bottom: 10px; }
  .rs-error { top: 70px; }
  .rs-t { font-size: 18px; }
  /* A table on a phone keeps to the text's width, a size smaller. One that is still wider shows what fits, fading
     out at its right edge (js/research.js marks it), and a tap opens the whole table large. */
  .rs-table { width: auto; max-width: none; margin-left: 0; translate: none; overflow: hidden; }
  .rs-table caption { max-width: calc(100vw - 48px); }
  .rs-table.is-cut::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; }
  .rs-zoomable .rs-table { cursor: zoom-in; }
  .rs-table table { font-size: 14px; }
  .rs-table th, .rs-table td { min-width: 0; padding-right: 10px; }
}

/* ───────── charts that are part of the page (studies/_shared/chart_c.py) ─────────
   An article's chart is HTML and inline SVG in the page's own type and colours (scripts/research.mjs puts
   figures/<name>.html in its figure, marked rs-c), so it follows light and dark mode with no plate, keeps the text's
   width and edges, and reshapes when its own width is a phone's instead of shrinking. Every mark's size and place is
   in its SVG attributes; everything else is here. The shared picture of the same chart is its B drawing. */
.rs-body figure.rs-c { width: 100%; margin: 44px 0 48px; translate: none; }
.rs-body figure.rs-c figcaption { width: auto; margin: 16px 0 0; }
@media (max-width: 788px) { .rs-body figure.rs-c { width: 100%; margin: 36px 0 40px; } .rs-body figure.rs-c figcaption { margin: 14px 0 0; } }
.rs-body figure.rs-c:target .c-chart { animation: rs-here-c 2.4s ease-out; }
@keyframes rs-here-c { from { box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .rs-body figure.rs-c:target .c-chart { animation: none; } }
/* "Copy link" on a page chart sits at the end of its caption, quiet, always there (there is no picture to cover). */
.rs-body figure.rs-c figcaption { position: relative; padding-right: 116px; }
.rs-body figure.rs-c figcaption > .rs-link-btn { top: -4px; right: 0; opacity: 1; border-color: var(--border); background: var(--surface); color: var(--text); }
@media (max-width: 760px) { .rs-body figure.rs-c figcaption { padding-right: 44px; } }

.c-chart {
  --c-acc: var(--accent);
  --c-mid: color-mix(in oklab, var(--text) 55%, var(--bg));
  --c-base: color-mix(in oklab, var(--text) 42%, var(--bg));
  --c-wash: color-mix(in oklab, var(--text) 7%, var(--bg));
  --c-empty: color-mix(in oklab, var(--text) 13%, var(--bg));
  --lab: 130px; --pad: 3em;
  container-type: inline-size; position: relative; border-radius: 6px; color: var(--text); font-size: 15px; line-height: 1.45;
}
.c-chart p { margin: 0; }
.c-chart table { width: 100%; border-collapse: collapse; }
:where(.c-rows, .c-steps, .c-dots, .c-list, .c-sm), :where(.c-rows, .c-steps, .c-dots, .c-list, .c-sm) > :where(thead, tbody) { display: block; }
.c-panel, .c-side, .c-panels > * { min-width: 0; }
.c-chart th, .c-chart td { padding: 0; border: 0; text-align: left; font-weight: 400; vertical-align: middle; }
.c-chart svg { display: block; overflow: visible; }
.c-chart b, .c-chart td, .c-chart text { font-variant-numeric: tabular-nums; }
.c-chart text { font-family: inherit; }
.c-chart [tabindex]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.c-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.c-title { margin: 0 0 18px !important; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; }
.c-k { margin: 0 0 8px !important; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
.c-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -6px 0 14px !important; color: var(--muted); font-size: 14px; }
.c-key span { display: inline-flex; align-items: center; gap: 8px; }
.c-key span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c-base); }
.c-key .c-key-a::before { background: var(--c-acc); }
.c-key .c-key-b::before { height: 5px; }
.c-key .c-key-g::before { background: var(--c-base); }
/* Names a chart's form or a mark's state; each is styled through the rules around it. */
.c-bars, .c-line, .c-big, .c-units, .c-timeline, .c-quote, .c-versus, .c-ctx, .c-off, .c-g10, .c-marks, .c-over, .c-n5 { }
/* the marks: orange for the one thing the article is about, a grey mixed from the text colour for the rest */
.c-chart .c-m { fill: var(--c-base); }
.c-chart .c-hl .c-m { fill: var(--c-acc); }
.c-chart .c-2 .c-m, .c-chart .c-m2 { fill: var(--c-base); }
.c-chart .c-trackbg { fill: var(--c-wash); }
.c-chart .c-val { fill: var(--text); font-size: 14px; font-weight: 600; }
.c-chart .c-2 .c-val { fill: var(--muted); font-size: 13px; font-weight: 400; }
.c-chart .c-tick { fill: var(--faint); font-size: 13px; }
.c-chart .c-note { fill: var(--muted); font-size: 13px; }
.c-chart .c-strong { fill: var(--text); font-size: 14px; font-weight: 600; }
.c-chart .c-soft { fill: var(--muted); font-size: 13px; font-weight: 400; }
.c-chart tbody:hover tr:not(:hover), .c-tl:hover .c-per:not(:hover) { opacity: .55; }
.c-chart tbody tr, .c-per { transition: opacity .15s; }
/* the room a label column and a bar's value need, set by the chart from its longest words */
.c-lab-s { --lab: 110px; } .c-lab-m { --lab: 170px; } .c-lab-l { --lab: 230px; }
.c-pad-3 { --pad: 3em; } .c-pad-4 { --pad: 4em; } .c-pad-5 { --pad: 5em; } .c-pad-6 { --pad: 6em; } .c-pad-7 { --pad: 7em; }
.c-pad-8 { --pad: 8em; } .c-pad-9 { --pad: 9em; } .c-pad-10 { --pad: 10em; }
.c-bar { width: 100%; height: 16px; }
.c-bar.c-thin { height: 6px; }

/* The numbers behind a chart that is not itself a table: one quiet line that opens them. */
.c-data { margin-top: 16px; }
.c-data summary { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; list-style: none; }
.c-data summary::-webkit-details-marker { display: none; }
.c-data summary::before { content: "+"; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 50%; font-size: 12px; line-height: 1; }
.c-data[open] summary::before { content: "\2013"; }
.c-tbl { display: block; max-height: 300px; margin-top: 10px; overflow-y: auto; font-size: 14px; line-height: 1.4; }
.c-tbl caption { padding-bottom: 6px; color: var(--muted); text-align: left; }
.c-chart .c-tbl th, .c-chart .c-tbl td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--hair); }
.c-chart .c-tbl thead th { border-bottom-color: var(--border); color: var(--muted); font-size: 13px; font-weight: 500; }

/* The detail js/research.js shows for a mark on hover, focus or tap: placed absolutely, so it moves nothing. */
.c-tip { position: absolute; z-index: 5; display: grid; gap: 1px; width: max-content; max-width: min(280px, 100%); padding: 8px 11px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 13.5px; line-height: 1.4; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); }
.c-tip b { color: var(--text); font-weight: 600; }
.c-tip[hidden] { display: none; }
.c-hair { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--text); opacity: .35; pointer-events: none; }
.c-hair[hidden] { display: none; }

/* 1. Ranked bars: the table is the chart; a label column, then the bar with its value at its end. */
.c-rows tbody { display: grid; row-gap: 6px; }
.c-rows tr { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 3px 0; border-radius: 6px; }
.c-rows tbody th { font-weight: 500; line-height: 1.3; text-align: right; }
.c-rows td.c-cell { padding-right: var(--pad); }
.c-rows.c-pair tr { grid-template-rows: auto auto; row-gap: 3px; }
.c-rows.c-pair tbody th { grid-row: span 2; }
.c-rows.c-pair td.c-2 { grid-column: 2; }
.c-rows .c-bar { height: 18px; }
.c-rows .c-bar.c-thin { height: 6px; }
@container (max-width: 520px) {
  .c-rows tr { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 4px 0 6px; }
  .c-rows tbody th, .c-rows.c-pair tbody th { grid-row: auto; text-align: left; }
  .c-rows.c-pair td.c-2 { grid-column: 1; }
}

/* 2. A line over time: the line is a stretched SVG whose strokes keep their width; the words are SVG text over it. */
.c-plot { position: relative; height: 260px; margin: 8px 6px 34px 42px; }
.c-plot.c-ctxr { margin-right: 96px; }
.c-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-plot .c-ln { fill: none; stroke: var(--c-acc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.c-plot .c-ln2 { fill: none; stroke: var(--c-mid); stroke-width: 1.5; stroke-linejoin: round; }
.c-plot .c-gl { stroke: var(--hair); stroke-width: 1; }
.c-plot .c-base { stroke: var(--border); stroke-width: 1; }
.c-plot .c-event { stroke: var(--c-mid); stroke-width: 1; stroke-dasharray: 3 4; }
.c-chart .c-dot { fill: var(--c-acc); stroke: var(--bg); stroke-width: 2; }
.c-plot .c-lead { stroke: var(--c-mid); stroke-width: 1; }
.c-plot .c-narrow { display: none; }
@container (max-width: 520px) {
  .c-plot { height: 210px; margin-left: 36px; } .c-plot.c-ctxr { margin-right: 76px; }
  .c-plot .c-wide { display: none; } .c-plot .c-narrow { display: inline; }
}

/* 3. Steps: columns at article width, rows when the chart is a phone's width. */
.c-steps tbody { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 6px; }
.c-steps.c-n2 tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-steps.c-n3 tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-steps.c-n4 tbody { grid-template-columns: repeat(4, minmax(0, 1fr)); } .c-steps.c-n6 tbody { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.c-steps.c-n7 tbody { grid-template-columns: repeat(7, minmax(0, 1fr)); } .c-steps.c-n8 tbody { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.c-steps tr { display: flex; flex-direction: column; border-radius: 6px; }
.c-steps td.c-cell { order: 1; padding-top: 30px; border-bottom: 1px solid var(--border); }
.c-steps .c-col { width: 100%; height: 180px; }
.c-steps .c-colval { font-size: 17px; }
.c-steps td.c-cell > .c-bar { display: none; }
.c-steps tbody th { order: 2; padding: 10px 4px 0; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; text-wrap: balance; }
@container (max-width: 520px) {
  .c-steps tbody, .c-steps[class] tbody { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .c-steps tbody th { order: 1; padding: 0; text-align: left; }
  .c-steps td.c-cell { order: 2; padding: 4px var(--pad) 0 0; border: 0; }
  .c-steps .c-col { display: none; }
  .c-steps td.c-cell > .c-bar { display: block; height: 18px; }
}

/* 4. A few big numbers, side by side, stacked on a phone. Numbers are text, never orange; the marks carry it. */
.c-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.c-panels.c-n1 { grid-template-columns: minmax(0, 1fr); } .c-panels.c-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-panel, .c-side { display: grid; align-content: start; gap: 8px; }
.c-bignum { font-size: 46px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: proportional-nums; }
.c-cap { color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.4; }
.c-strip, .c-addon { width: 100%; height: 22px; margin-top: 8px; }
.c-strip .c-trk { stroke: var(--border); stroke-width: 2; }
.c-strip .c-rng { stroke: var(--c-base); stroke-width: 5; stroke-linecap: round; }
.c-strip .c-end { fill: var(--text); stroke: var(--bg); stroke-width: 2; }
.c-addon .c-m { fill: var(--c-acc); }
.c-ends { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.c-ends span:last-child { text-align: right; }
.c-ends b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
@container (max-width: 520px) { .c-panels[class] { grid-template-columns: minmax(0, 1fr); } .c-bignum { font-size: 38px; } }

/* 5. Dots against a reference: one row per group, the guide line and band repeated on every row. */
.c-dots tr { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: 16px; align-items: center; border-radius: 6px; }
.c-dots thead th { padding-bottom: 6px; }
.c-dots tbody th { padding: 6px 0; font-weight: 500; line-height: 1.3; }
.c-dots tbody th small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.c-dots td.c-cell { padding-right: 8px; }
.c-dots .c-trk { width: 100%; }
.c-dots .c-axis { width: 100%; height: 20px; }
.c-dots .c-axis.c-two { height: 40px; }
.c-dots thead th:last-child { padding-right: 8px; }
.c-dots .c-band { fill: var(--c-wash); }
.c-dots .c-ref { stroke: var(--c-mid); stroke-width: 1; }
.c-dots .c-dot { fill: var(--c-mid); }
.c-dots .c-hl .c-dot { fill: var(--c-acc); }
@container (max-width: 520px) {
  .c-dots tr { grid-template-columns: minmax(0, 1fr); }
  .c-dots thead th:first-child { display: none; }
  .c-dots tbody th { padding: 8px 0 0; }
  .c-dots tbody th small { display: inline; margin-left: 6px; }
}

/* 6. Stat card: the number and the statement beside it are the finding. */
.c-statline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 6px 0; }
.c-stat .c-bignum { font-size: 84px; }
.c-stmt { flex: 1 1 18ch; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; }
@container (max-width: 520px) { .c-stat .c-bignum { font-size: 64px; } .c-stmt { font-size: 19px; } }

/* 7. Units: one square each, the counted ones orange, the count beside them. */
.c-uwrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 36px; }
.c-grid { display: grid; grid-template-columns: repeat(10, 16px); gap: 4px; border-radius: 4px; }
.c-grid.c-g20 { grid-template-columns: repeat(20, 10px); gap: 3px; }
.c-sq { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--c-empty); }
.c-sq.c-on { background: var(--c-acc); }
.c-utext { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; }
.c-of { color: var(--muted); font-size: 18px; font-weight: 500; }
.c-utext .c-cap { grid-column: 1 / -1; max-width: 24ch; }
@container (max-width: 520px) {
  .c-uwrap { grid-template-columns: minmax(0, 1fr); }
  .c-grid { grid-template-columns: repeat(10, minmax(0, 18px)); }
  .c-grid.c-g20 { grid-template-columns: repeat(20, minmax(0, 12px)); }
  .c-utext { grid-row: 1; }
}

/* 8. Versus: two results side by side, each over a bar out of its whole. */
.c-vsline { display: flex; align-items: baseline; gap: 10px; }
.c-versus .c-bignum { font-size: 60px; }
.c-bar.c-vs { height: 10px; margin-top: 6px; }
.c-side .c-m { fill: var(--c-mid); }
.c-side.c-hl .c-m { fill: var(--c-acc); }
.c-side { border-radius: 6px; }
@container (max-width: 520px) { .c-versus .c-bignum { font-size: 48px; } }

/* 9. A timeline in units: a column of squares per period, rows on a phone. */
.c-tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); align-items: end; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.c-tl .c-per { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 4px; border-radius: 6px; }
.rs-body .c-tl .c-per { margin: 0; }
.c-per .c-num { font-size: 16px; font-weight: 600; }
.c-per .c-stack { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 3px; width: 51px; height: auto; margin: 0; }
.c-per .c-sq { width: 15px; height: 15px; background: var(--c-base); }
.c-per .c-sq.c-on { background: var(--c-acc); }
.c-tl.c-many .c-per .c-stack { width: 39px; } .c-tl.c-many .c-per .c-sq { width: 11px; height: 11px; }
.c-plab { display: grid; padding: 8px 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.3; text-align: center; }
.c-grp { min-height: 1.3em; color: var(--text); font-size: 13.5px; font-weight: 600; }
.c-grp:not(.c-first) { visibility: hidden; }
.c-evt .c-plab::after { content: "\25CF"; color: var(--c-acc); font-size: 10px; line-height: 1.6; }
.c-evnote { margin-top: 12px !important; color: var(--muted); font-size: 13.5px; }
.c-evnote::before { content: "\25CF"; margin-right: 8px; color: var(--c-acc); font-size: 10px; vertical-align: 2px; }
@container (max-width: 520px) {
  .c-tl { display: block; border: 0; }
  .c-tl .c-per { display: grid; grid-template-columns: 132px minmax(0, max-content) auto; flex-direction: row; align-items: center; justify-content: start; justify-items: start; gap: 10px; padding: 3px 0; }
  .c-per .c-num { order: 3; }
  .c-per .c-stack { order: 2; flex-wrap: wrap; justify-content: flex-start; width: auto; max-width: none; }
  .c-plab { order: 1; display: block; padding: 0; text-align: left; white-space: nowrap; }
  .c-grp:not(.c-first) { visibility: visible; color: transparent; }
  .c-grp { display: inline-block; min-width: 3em; }
  .c-evt .c-plab::after { margin-left: 4px; }
}

/* 10. A ranked list: the words, the count, the share, and a thin bar out of the whole under each. */
.c-list thead tr, .c-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 3em; column-gap: 12px; }
.c-list.c-tot thead tr, .c-list.c-tot tbody tr { grid-template-columns: minmax(0, 1fr) 3em 3.4em; }
.c-list thead tr { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.c-list thead th { color: var(--muted); font-size: 13px; font-weight: 500; text-align: right; }
.c-list tbody tr { row-gap: 7px; padding: 12px 0 10px; border-radius: 6px; }
.c-list tbody th { font-size: 16px; font-weight: 500; line-height: 1.35; }
.c-list td.c-n { font-size: 16px; font-weight: 600; text-align: right; }
.c-list td.c-pc { color: var(--muted); text-align: right; }
.c-list td.c-under { grid-column: 1 / -1; }
.c-list .c-bar.c-thin { height: 5px; }

/* 11. A quotation, in the page's own type. */
.rs-body .c-q { margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--c-acc); font-size: 22px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.45; }
.c-who { margin-top: 12px !important; color: var(--muted); font-size: 14.5px; }
/* whose data a chart is drawn from, when it is another organisation's (charts.draw(..., credit=...)) */
.c-chart .c-credit { margin: 10px 0 0 !important; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* 12. Small multiples: the same rows measured in two to four columns on one scale. */
.c-sm tr { display: grid; grid-template-columns: var(--lab) repeat(2, minmax(0, 1fr)); column-gap: 18px; align-items: center; border-radius: 6px; }
.c-sm.c-n3 tr { grid-template-columns: var(--lab) repeat(3, minmax(0, 1fr)); } .c-sm.c-n4 tr { grid-template-columns: var(--lab) repeat(4, minmax(0, 1fr)); }
.c-sm thead th { padding-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.3; }
.c-sm tbody tr { padding: 5px 0; }
.c-sm tbody th { font-weight: 500; line-height: 1.3; text-align: right; }
.c-sm td.c-cell { padding-right: var(--pad); }
@container (max-width: 520px) {
  .c-sm tr, .c-sm[class] tr { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
  .c-sm.c-n3 tr { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c-sm.c-n4 tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c-sm thead th:first-child { display: none; }
  .c-sm tbody th { grid-column: 1 / -1; text-align: left; }
  .c-sm td.c-cell { padding-right: calc(var(--pad) * .9); }
}
