/* Readability (owner, 2026-11-23): the trial of the home page and the topic
   pages, kept and extended to every page, header and footer included. Loaded
   last on every page, after the page's own stylesheets (pages/layout.templ),
   so tokens.css and components.css stay the design's copies.
   (1) repo names bold and a little larger; (2) the gain a row shows in a pale
   green pill; (3) one sans-serif, Geist, for everything but the big titles and
   the section titles (Newsreader), figures in Geist's tabular digits, Geist
   Mono kept for code alone; (4) no text under 13 px, darker greys; (5) white
   cards on a plain green-grey ground, the whole page's, header included, no
   veil (owner, 2026-11-24: #F2F5F3 chosen among #F5F7F5, #F6F6F3, #F2F5F3 and
   #EDF2FA; the dark ground #070A08 the same hue, the cards standing out from
   it as much, 1.10:1). Only the ground changed: the header, its panels, the
   fields and the controls drawn in the former ground stay as they were, white
   in light, #0A0B0D in dark until unslop (--bar, --field), and a hover reads on the ground
   as on the cards (--hover-clear, and the cards' own hover).
   Unslop (owner, 2026-11-27, ds-1.4.0) replaced (2) and (5)'s grounds: a gain is
   green figures without a pill, the grounds are #0B0D14 and #F5F7FA; its section
   is the last of this file. */

/* Tokens: dark is the default theme, light comes with [data-theme="light"].
   --bg is the ground, --surface the cards, --bar the header and its panels,
   --field the inputs, menus and controls. Unslop's (owner, 2026-11-27): one ramp
   tinted toward ink, a night sky in dark and paper in light (the rest of the ramp
   is in tokens.css); three of its pairs a step off to meet TestThemeContrast's
   thresholds, the dark row hover and the light palest grey here, the light
   raised surface in tokens.css. */
:root, [data-theme="dark"] {
  --bg: #0B0D14;
  --surface: #11141C;
  --bar: #0B0D14;
  --field: #0E1118;
  --hover-clear: #1A1E28;
  /* 1.13:1 on a card, the project's 1.12 (unslop's #1A1E28 read 1.10). */
  --row-hover: #1C202A;
  --border: #232836;
  --muted: #A3A9B8;
  --faint: #848C9F;
  /* A gain is green figures, no pill. */
  --gain-bg: transparent;
  --gain-text: #4BEB9E;
  /* Red text 4.5:1 or more on the ground and the cards (the admin's reason badges). */
  --danger: #F4776C;
}
[data-theme="light"] {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --bar: #FFFFFF;
  --field: #FFFFFF;
  /* The hover of what has no background of its own (rows, chips, ghost
     buttons): the ink at 5 %, a shade that reads on the ground as on a card. */
  --hover-clear: rgb(17 24 39 / 0.05);
  /* A ranking row under the pointer (owner, 2026-11-25: "bien visible"): no
     darker shade, the rise's green would fall under 3:1 on it, but a green
     bar at its left, 4.9:1 on white. */
  --row-hover: #EFF2F6;
  --border: #E3E7ED;
  --muted: #4B5565;
  /* The palest grey, 5.55:1 on the ground, the project's 5.5 (unslop's
     #5E6778 read 5.31:1 on #F5F7FA); the same hue, a shade darker. */
  --faint: #5B6475;
  --gain-bg: transparent;
  --gain-text: #08703F;
  /* The rise's text a shade darker: 5.6:1 or more on the cards, the ground and
     the pale green fills (it was 4.4:1 on them, the fiche's labels and award
     chips, Explore's current chip). */
  --rise-text: #08703F;
  --danger: #B42318;
}
:root {
  /* (3) Geist for everything; Newsreader stays on the titles that name it. */
  --font-code: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-mono: var(--font-sans);
  --font-num: var(--font-sans);
  /* Unslop: no italic emphasis, the hero title's second part upright. */
  --display-em: normal;
  /* (4) The smallest step of the scale. */
  --fs-12: 13px;
}
code, kbd, pre, samp, .kbd { font-family: var(--font-code); }

/* (5) The ground, plain on the whole page, the header's included. */
html, body { background: var(--bg); }
.e-header, .e-panel { background-color: var(--bar); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Drawn in the former ground, they keep its colour: fields, menus, segmented
   controls, the ranking's formula, an owner's nested rows, onboarding's boxes,
   the settings' choices. Colours only (background-color): a select's chevron
   is a background image the shorthand would repeat across the field. */
.input, .select, .textarea, .e-seg__opt, .l-how__formula, .coll-row--nested, .pick__box,
.m-legacy .segmented__item, .m-legacy .segmented__item[aria-checked="true"] { background-color: var(--field); }
/* (5) Hovers on the ground, none melting into it: a row comes forward in white,
   like a card (a darker shade would bring the rise's green, a checked box's,
   under 3:1); a button, a chip or a menu entry with no background takes the
   clear shade; a white card stays white with its darker edge (as .h-card
   below); rows on a card and the current menu entry (white, its icon green)
   keep --hover. In light only: in dark, tokens.css's
   --hover reads 1.20:1 on the ground. */
@media (hover: hover) {
  [data-theme="light"] .btn-ghost:hover, [data-theme="light"] .btn-outline:hover, [data-theme="light"] .chip:hover,
  [data-theme="light"] .x-chip:not([aria-current]):hover, [data-theme="light"] .l-act--ghost:hover,
  [data-theme="light"] .nav-item:not([aria-current="page"]):hover { background-color: var(--hover-clear); }
  [data-theme="light"] .x-hot__row:hover { background-color: var(--surface); }
  /* Rows of a ranking or a list under the pointer, in both themes: a shade
     and the rise's bar at their left, so the row read is plain at a glance. */
  .l-row:hover, .list-item--link:hover, .x-hot__row:hover { box-shadow: inset 3px 0 0 var(--rise-fill); }
  .l-row:hover, .list-item--link:hover { background-color: var(--row-hover); }
  [data-theme="light"] .c-card:hover, [data-theme="light"] .x-card:hover { background-color: var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
}
[data-theme="light"] .review-row:focus-within, [data-theme="light"] .review-row.is-open,
[data-theme="light"] .review-row:focus-within td.review-actions, [data-theme="light"] .review-row.is-open td.review-actions { background-color: var(--surface); }
.f-newcomer, .h-band { background: transparent; }

/* (5) White cards: those of the home page and the ranking itself. */
.h-card, .h-proof__card, .h-mail, .l-card {
  background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--border);
}
.h-card:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
/* Rankings in a white card: a topic's, Trending's, Emerging's, an archive's, a
   collection's ranking and newcomers, /spotted's list, the member feed's, an AI
   niche page's two lists and /explore's repos (owner, 2026-11-24: the feed's
   rows sat on the ground) (a collection's comparison table has its own frame). */
section.l-rank, section.c-sec[aria-labelledby="cp-rank-title"], section.c-sec[aria-labelledby="cp-nc-title"], .spotted-list,
.m-list, section[aria-labelledby="niche-rising"] .l-table, section[aria-labelledby="niche-emerging"] .l-table, #repo-results .l-table {
  padding: 8px 16px 16px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--border);
}
.l-rankhead { padding-top: 8px; }
section.c-sec[aria-labelledby="cp-rank-title"], section.c-sec[aria-labelledby="cp-nc-title"] { padding-top: 16px; }
.spotted-list > .spotted-row:first-child { border-top: 0; }
/* On a phone a ranking keeps the whole width: a white band, edge to edge. */
@media (max-width: 719.98px) {
  section.l-rank, section.c-sec[aria-labelledby="cp-rank-title"], section.c-sec[aria-labelledby="cp-nc-title"], .spotted-list,
  .m-list, section[aria-labelledby="niche-rising"] .l-table, section[aria-labelledby="niche-emerging"] .l-table, #repo-results .l-table {
    margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); padding: 4px clamp(16px, 4vw, 48px) 12px; border-radius: 0;
    box-shadow: 0 -1px 0 var(--border), 0 1px 0 var(--border);
  }
}

/* (3) Figures in Geist's tabular digits. */
.num, .f-num, .gain, .stat-value, .badge-score, .health-badge__score, .stat-mini dd,
.l-rank, .l-gained, .l-score, .l-total, .l-how__ex, .l-count, .f-tile__big, .spotted-row__times, .archive-row__gain,
.collection-card__count, .coll-row__big, .h-feat__num, .h-feat__meta, .h-proof__fig, .h-mail__rank, .h-mail__gain,
.h-pick__figs, .h-coll__meta, .todo__n { font-variant-numeric: tabular-nums; }

/* (1) Repo names. */
.l-name, .repo-name, .f-near__name, .collection-card__repo-name, .cp-cmp__name a, .x-hot__name, .archive-row__name,
.w-side__name, .follow-form__repo, .h-feat__repo-name, .h-mail__repo, .x-card__repo, .m-topic__top > span:first-child,
.todo__repos .mono, a.mono[href*="/r/"], .mono > a[href*="/r/"] { font-weight: 600; }
.l-owner, .repo-owner { font-weight: 400; }
.l-name { font-size: 16px; }
.repo-card__title, .newcomer-card__title, .spotted-row__name, .archive-row__name, .h-mail__repo, .h-feat__repo-name, .x-hot__name { font-size: 15px; }
.collection-card__repo-name, .h-feat__repo { font-size: 14px; }
.h-pick__name { font-size: 18px; font-weight: 700; }

/* (2) The gain a row shows, in a pale green pill around the figure alone, so the
   words after it ("stars this week") may wrap in a narrow card. Gains in tables
   and in a row's second line stay as they are. */
.l-gained, .archive-row__gain, .h-pick__gain .num, .h-feat__num, .h-mail__gain {
  justify-self: end; display: inline-block; width: max-content;
}
.l-gained, .archive-row__gain, .h-pick__gain .num, .h-feat__num, .h-mail__gain,
.repo-card__gain .gain, .newcomer-card__gain .gain, .collection-card__gain .gain, .coll-row__big--gain,
.x-card__gain, .m-repo__gain, .m-topic__gain, .c-card__up, .todo__gain {
  padding: 2px 9px; border-radius: 999px; color: var(--gain-text); background: var(--gain-bg);
}
.l-gained { font-size: 15px; font-weight: 600; }
.h-pick__gain .num { margin-right: 4px; font-size: 15px; font-weight: 600; }
.h-feat__gain { align-items: center; }
.h-feat__num { font-size: 18px; line-height: 1.3; font-weight: 600; }
.h-mail__gain, .collection-card__gain .gain { padding: 1px 8px; font-weight: 600; }
.repo-card__gain .gain, .newcomer-card__gain .gain, .coll-row__big--gain, .x-card__gain, .m-repo__gain, .m-topic__gain,
.c-card__up, .todo__gain { font-weight: 600; }

/* (4) Nothing under 13 px (the scale's --fs-12 above); descriptions at 14 px. */
.l-desc, .h-coll__desc { font-size: 14px; }
.kbd, .chip-count, .sponsor__label, .sponsor__attr, .chart-label, .nav-item__count, .type-cue--sm, .facepile__more,
.collection-card__gain .gain-period,
.e-seg__opt--sm, .e-account__login, .e-count, .e-menu__member, .e-footer__title, .e-footer__legal,
.l-meta, .l-badge, .l-thead, .l-count, .l-filter__label, .l-scorenote, .l-reason, .l-note, .l-card__kicker, .l-crit__n,
.l-how__col, .l-how__stars, .l-how__formula, .l-how__min, .l-related__slug,
.h-pick__kicker, .h-pick__spot, .h-feat__kicker, .h-feat__spot, .h-feat__unit, .h-feat__meta, .h-cat__name,
.h-coll__kind, .h-coll__meta, .h-mail__from, .h-mail__desc, .h-mail__more,
.f-label, .f-report, .f-tile__sub, .f-chart__legend, .f-chart__spot span, .f-chart__axis, .f-days__table th, .f-table thead th,
.f-ranks__sub, .f-ranks__review, .f-log__day, .f-chip, .f-near__this, .skill-panel .panel__meta, .skill-panel__note,
.f-awards__note, .f-source,
.c-how__kicker, .c-card__kicker, .c-card__meta, .c-card__rank, .c-card__gain, .cp-weights__label, .cp-weights__legend,
.cp-glance__stats dt, .cp-cmp thead th, .cp-cmp__repo, .cp-cmp__stars .is-rise, .cp-cmp__src, .cp-cmp td::before,
.x-hot__meta, .x-chip__count, .x-card__slug, .x-follow, .x-card__stats, .x-card__top, .x-card__kicker,
.w-fact__vs, .w-move, .w-side__note,
.d-kicker, .d-mail__from, .d-mail__slug, .d-mail__desc, .d-caption,
.m-topic__slug, .m-topic__stats, .m-topic__rank, .m-add__kicker, .m-repo__meta, .m-repo__desc,
.ob-section__title, .quick-follow__lead, .admin-bar__item { font-size: 13px; }
/* Capitals at 13 px need less tracking than they had at 10 to 12. */
.l-thead, .l-card__kicker, .h-cat__name, .h-coll__kind, .f-label, .c-how__kicker, .c-card__kicker, .cp-cmp thead th,
.x-card__kicker, .m-add__kicker, .ob-section__title { letter-spacing: .04em; }
.l-badge { padding: 1px 8px; }
.x-chip__count { opacity: 1; }
/* /spotted's multiples were the bright green (3.4:1 on a white card). */
.spotted-row__times { color: var(--rise-text); }


/* ===== The redesign (owner, 2026-11-25 and 2026-11-26): the mockup « Upstar, aperçu de la refonte » on every page,
   after the rules above. Ink for what is chosen (segmented controls, chips, primary buttons), green for rises and
   the signup buttons alone (.btn-signup; in ink with unslop, 2026-11-27), 6 px controls and
   8 px cards with a hairline (8 and 12 with unslop, the last section), a white header, tables with a plain header row, Geist Mono for the small figures of
   tables (--font-tab), Geist with tabular digits for large numbers. Its tokens (--ink, --on-ink, --ink-hover,
   --spot-soft, --font-tab) and its components are in tokens.css and components.css (design/, ds-1.3.0); the rules
   for the components are restated here, after the pages' own stylesheets written for the former look. ===== */
body { -webkit-font-smoothing: antialiased; }

/* Large numbers: Geist with tabular digits (small table figures take Geist Mono through --font-mono). */
.f-tile__big, .h-proof__fig, .stat-value, .coll-row__big, .h-feat__num, .h-pick__figs, .cp-glance__stats dd,
.f-tile__big.f-num, .h-proof__fig .f-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---- Header ---- */
.e-header { background-color: var(--bar); box-shadow: 0 1px 0 var(--border); }
.e-header__in { height: 56px; gap: 10px; }
.e-brand, .e-footer__logo { font-family: var(--font-sans); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.e-nav { align-self: center; gap: 2px; margin-left: 8px; }
.e-nav__link { padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.e-nav__link:hover { background-color: var(--hover); }
.e-nav__link[aria-current] { box-shadow: none; background-color: var(--hover); color: var(--text); font-weight: 500; }
.e-icon-btn { border-radius: 6px; border-color: var(--border-strong); color: var(--muted); }
.e-icon-btn:hover { color: var(--text); }
.e-panel { background-color: var(--bar); }
.e-menu__link { font-size: 16px; }
.e-mtabs__tab[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); font-weight: 500; }

/* ---- Segmented controls, chips, buttons, fields ---- */
.e-seg__opt { min-height: 34px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); background-color: var(--surface); border-color: var(--border-strong); }
.e-seg__opt:first-child { border-radius: 6px 0 0 6px; }
.e-seg__opt:last-child { border-radius: 0 6px 6px 0; }
.e-seg__opt:only-child { border-radius: 6px; }
.e-seg__opt--sm { padding: 0 10px; font-size: 13px; letter-spacing: 0; }
.e-seg__opt:not([aria-current]):not([aria-pressed="true"]):not(:has(> input:checked)):hover { color: var(--text); background-color: var(--hover); }
.e-seg__opt[aria-current], .e-seg__opt[aria-pressed="true"], .e-seg__opt:has(> input:checked) { color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }
.e-seg__opt:focus-visible, .e-seg__opt:has(> input:focus-visible) { outline-color: var(--ink); }
.segmented { border-radius: 6px; }
.segmented__item[aria-checked="true"], .m-legacy .segmented__item[aria-checked="true"] { color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }

.chip, .x-chip { min-height: 30px; border-radius: 999px; border: 1px solid var(--border-strong); background-color: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; }
.chip:hover, .x-chip:hover { color: var(--text); }
.chip.is-active, .chip[aria-current="page"], .chip[aria-pressed="true"], .x-chip[aria-current] { color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }
.chip-count, .x-chip__count { font-family: var(--font-tab); font-size: 13px; opacity: .8; }

.btn { border-radius: 6px; font-weight: 500; }
.btn-secondary, .btn-outline { background-color: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-primary { --spin: var(--on-ink); color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { color: var(--on-ink); background-color: var(--ink-hover); border-color: var(--ink-hover); }
/* The signup buttons in ink like every primary button, green marks a rise and nothing else (owner, 2026-11-27,
   unslop, ds-1.4; green from 2026-11-26, ds-1.3): "Get the digest", "Send me the digest", "Subscribe", "Alert me" on a
   repo page and in its form, and the home page's "See what’s rising". */
.btn.btn-signup { --spin: var(--on-ink); color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }
.btn.btn-signup:hover { color: var(--on-ink); background-color: var(--ink-hover); border-color: var(--ink-hover); }
/* Ink for what is chosen on the pages' own sheets too (owner, 2026-11-26): a followed topic, a subscribed digest, an
   alert's choices, the active category, the repo itself among its neighbours; and the focus ring, in ink since the
   redesign, on every public page. The member and admin pages' own below. */
.l-monday__on svg, .l-act.is-subscribed .btn-icon-slot, .l-digest__add.is-subscribed .btn-icon-slot,
.f-digest .f-follow__digest.is-subscribed .btn-icon-slot { color: var(--ink); }
.x-follow.is-subscribed, .x-follow[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.x-chip[aria-current] { box-shadow: none; }
.follow-form__choice input { accent-color: var(--ink); }
.f-near__me > * { background-color: var(--hover); }
.c-main a:focus-visible, .c-main button:focus-visible, .c-card__name a:focus-visible::after,
.d-main a:focus-visible, .d-main button:focus-visible, .d-main select:focus-visible, .d-main input:focus-visible,
.x-main a:focus-visible, .x-main button:focus-visible, .x-main input:focus-visible, .x-card__name:focus-visible::after,
.f-body a:focus-visible, .f-body button:focus-visible, .f-body input:focus-visible, .f-body summary:focus-visible,
.f-chart__plot:focus-visible, .l-name:focus-visible::after, .l-monday__btn:focus-visible { outline-color: var(--ink); }
/* The member and admin pages (owner, 2026-11-26, ds-1.3): what is chosen is in ink there too, the focus ring with it: a
   followed topic's chip, a picked topic and the tray of picks, a checked switch, box or radio, the current section of
   Settings and of the admin, the onboarding's steps and its "Continue", a primary button like any other, and the
   feed's welcome line, a hairline of ink on the surface. An admin notice and the admin menu's counts stay green
   (owner, 2026-11-26). */
.m-welcome { background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.m-main a:focus-visible, .m-main button:focus-visible, .m-main input:focus-visible, .m-main select:focus-visible,
.m-toggle input:focus-visible + .m-toggle__track, .quick-follow__item:has(input:focus-visible) { outline-color: var(--ink); }
.m-chip[aria-pressed="true"], .quick-follow__item:has(input:checked), .pick[aria-pressed="true"] {
  color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.m-chip[aria-pressed="true"]::before, .quick-follow__item:has(input:checked)::before { color: var(--on-ink); }
.pick[aria-pressed="true"] .pick__box { color: var(--on-ink); background-color: transparent; border-color: transparent; }
@media (hover: hover) {
  .pick[aria-pressed="true"]:hover { background-color: var(--ink-hover); border-color: var(--ink-hover); box-shadow: inset 0 0 0 1px var(--ink-hover); }
}
.tray-chip { color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }
.tray-chip .icon { color: var(--on-ink); }
.quick-follow { border-color: transparent; background-color: transparent; }
.m-switch[aria-checked="true"], .m-toggle input:checked + .m-toggle__track,
:is(.m-legacy, .m-settings) .switch input:checked + .switch__track { background-color: var(--ink); }
.m-switch[aria-checked="true"] .m-switch__knob, .m-toggle input:checked + .m-toggle__track .m-toggle__knob,
:is(.m-legacy, .m-settings) .switch input:checked + .switch__track::after { background-color: var(--on-ink); }
.lang-opt input, .ob-digest input, .quick-follow__item input, .review-check input { accent-color: var(--ink); }
.subnav a[aria-current="true"], .m-legacy .subnav a[aria-current="true"] { box-shadow: inset 2px 0 0 var(--ink); }
@media (max-width: 1023.98px) {
  .subnav a[aria-current="true"], .m-legacy .subnav a[aria-current="true"] { box-shadow: none; color: var(--on-ink); background-color: var(--ink); border-color: var(--ink); }
}
.ob-actions .btn-primary { color: var(--on-ink); background-color: var(--ink); }
.ob-actions .btn-primary:hover { color: var(--on-ink); background-color: var(--ink-hover); }
.ob-progress__bars span.is-done { background-color: var(--muted); }
.ob-progress__bars span.is-current { background-color: var(--ink); }
.analyzing__spin { border-top-color: var(--ink); }
.tp__side i:first-child { background-color: var(--ink); }
.admin-pages a[aria-current="page"] { border-bottom-color: var(--ink); }
.admin-bar__item[aria-current="page"] .icon { color: var(--ink); }
.input, .select, .textarea { border-radius: 6px; border-color: var(--border-strong); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, .l-main a:focus-visible, .l-main button:focus-visible,
.l-main select:focus-visible, .l-main input:focus-visible, .l-main summary:focus-visible { outline-color: var(--ink); }
.kbd { border-radius: 4px; border-bottom-width: 2px; }

/* ---- Cards: 8 px, a hairline ---- */
.h-card, .h-proof__card, .h-mail, .l-card, .card, .panel, .c-card, .x-card, .collection-card, .m-card, .settings-card, .s-card,
.f-card, .ob-card, .admin-card, .todo, .d-card { border-radius: 8px; }
.h-card, .h-proof__card, .h-mail, .l-card { box-shadow: 0 0 0 1px var(--border); }

/* Kickers in sentence case, 13 px, the faint grey (the mockup has no tracked capitals). */
.l-card__kicker, .h-cat__name, .h-coll__kind, .f-label, .c-how__kicker, .c-card__kicker, .x-card__kicker, .m-add__kicker,
.ob-section__title, .e-footer__title, .l-thead, .cp-cmp thead th, .h-pick__kicker, .h-feat__kicker, .d-kicker, .e-menu__member,
.section-kicker, .eyebrow, .kicker, .quick-follow__lead, .sponsor__label, .sidebar__label {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--faint);
}

/* ---- Breadcrumb and page heads ---- */
.e-crumbs { padding-top: 32px; font-size: 13px; color: var(--faint); gap: 8px; }
.e-crumbs [aria-current] { color: var(--faint); }
.l-head { gap: 8px; padding: 10px 0 22px; max-width: 760px; }
.l-title { font-size: calc(clamp(30px, 3.2vw, 42px) * var(--display-scale)); letter-spacing: -0.02em; }
.l-lead { font-size: 17px; color: var(--muted); }
.l-updated, .l-kicker { font-family: var(--font-tab); font-size: 13px; color: var(--faint); }
.page-title, .n-title { letter-spacing: -0.02em; }

/* ---- Rankings: the table in a white card, the controls on the ground ---- */
@media (min-width: 720px) {
section.l-rank { padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.l-rankhead { padding-top: 0; margin-bottom: 12px; }
.l-ranktitle { font-size: calc(22px * var(--display-scale-sm)); }
.l-filterbar { margin-bottom: 10px; }
.l-count { font-size: 13px; color: var(--faint); }
.l-table, section[aria-labelledby="niche-rising"] .l-table, section[aria-labelledby="niche-emerging"] .l-table, #repo-results .l-table {
  padding: 0; background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--border); overflow: hidden;
}
.l-thead, .l-row { grid-template-columns: 2.25rem minmax(0, 1fr) 6.5rem 6.5rem 5.25rem 5.5rem; background-image: none; }
.l-thead { min-height: 40px; padding: 0 20px; font-size: 13px; box-shadow: inset 0 -1px 0 var(--border); }
.l-row { padding: 13px 20px; min-height: 72px; box-shadow: inset 0 -1px 0 var(--border); }
.l-list > .l-row:last-child { box-shadow: none; }
}
.l-rank.f-num, .l-row .l-rank { font-family: var(--font-tab); font-size: 13px; color: var(--faint); }
.l-row--top .l-rank { color: var(--faint); }
.l-name { font-size: 15px; }
.l-desc { font-size: 14px; color: var(--muted); }
.l-badge--spot { font-family: var(--font-tab); font-size: 13px; color: var(--spot); }
.l-badge--spot svg { color: var(--spot); }
.l-gained { font-family: var(--font-tab); font-size: 14px; font-weight: 500; padding: 3px 8px; border-radius: 6px; }
.l-score { font-family: var(--font-tab); font-size: 14px; color: var(--text); font-weight: 500; }
.l-total { font-family: var(--font-tab); font-size: 14px; color: var(--muted); }
@media (min-width: 720px) {
  /* The name and its facts on one line, the description under them. */
  .l-proj { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: baseline; }
  .l-proj > * { min-width: 0; }
  .l-meta > .l-badge { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .l-meta > .l-lang, .l-meta > .l-badge--spot { flex: none; }
  .l-proj > .l-nameline { grid-column: 1; grid-row: 1; align-items: center; }
  .l-proj > .l-meta { grid-column: 2; grid-row: 1; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; min-width: 0; }
  .l-proj > .l-desc { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .l-proj > :not(.l-nameline):not(.l-meta):not(.l-desc) { grid-column: 1 / -1; }
  .l-meta > .l-badge--spot { margin-left: auto; padding-left: 12px; }
  .l-meta > .l-badge--spot::before { content: none; }
}
.l-more { justify-content: center; }
.l-more .btn { min-height: 38px; }
/* The side column's cards. */
.l-card { padding: 20px; gap: 12px; }
.l-card__kicker { font-family: var(--font-sans); }
.l-how__formula { font-family: var(--font-tab); font-size: 13px; background-color: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.l-related__title, .l-digest__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(21px * var(--display-scale-sm)); letter-spacing: -0.01em; }
.l-related__slug { font-family: var(--font-tab); color: var(--faint); }
.l-related__link { background-image: linear-gradient(var(--border), var(--border)); }

/* ---- Gains elsewhere: the pill of the mockup, 6 px, Geist Mono ---- */
.archive-row__gain, .h-pick__gain .num, .h-mail__gain, .repo-card__gain .gain, .newcomer-card__gain .gain, .collection-card__gain .gain,
.x-card__gain, .m-repo__gain, .m-topic__gain, .c-card__up, .todo__gain, .coll-row__big--gain {
  border-radius: 6px; font-family: var(--font-tab); font-weight: 500;
}
.spot-flag, .h-pick__spot, .h-feat__spot, .f-chart__spot span { color: var(--spot); }

/* ---- Footer: four columns, plain titles ---- */
.site-footer { box-shadow: inset 0 1px 0 var(--border); margin-top: 48px; }
.e-footer { padding-top: 40px; padding-bottom: 40px; }
.e-footer__title { padding-bottom: 8px; font-size: 13px; }
.e-footer__col a { padding: 4px 0; font-size: 14px; color: var(--muted); }
.e-footer__col a:hover { color: var(--text); }
.e-footer__legal { font-family: var(--font-tab); font-size: 13px; color: var(--faint); }
.e-footer__tagline { color: var(--muted); }

.l-card__kicker, .f-label, .h-cat__name, .h-coll__kind, .c-how__kicker, .c-card__kicker, .x-card__kicker { font-family: var(--font-sans); }

/* ---- Home ---- */
.h-proof__card { padding: 36px 40px; }
.h-proof__fig { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.h-picks__title, .h-sec__title { letter-spacing: -0.015em; }

/* ---- Repo page: the head's awards in a right column, the verdict in Newsreader ---- */
@media (min-width: 1024px) {
  .f-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 48px; align-items: start; }
  .f-head > * { grid-column: 1; }
  .f-head > .f-headbadge { grid-column: 2; grid-row: 1 / span 12; margin: 0; padding: 18px 20px; background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
}
.f-title { letter-spacing: -0.025em; }
.f-verdict__card { border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
.f-verdict__p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(22px * var(--display-scale-sm)); line-height: 1.35; letter-spacing: -0.01em; }
.f-verdict__p b, .f-verdict__p strong { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; }
.f-sec__h { letter-spacing: -0.015em; }
.f-tiles, .f-tablewrap, .f-chart, .f-log__list, .f-days { border-radius: 8px; }
.f-table thead th, .f-days__table th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--faint); }
.f-table td, .f-days__table td { font-variant-numeric: tabular-nums; }
.f-chip { border-radius: 999px; }
.f-state { border-radius: 999px; }

@media (min-width: 720px) {
  .l-meta > .l-badge { flex: none; }
  .l-meta > .l-badge:has(+ .l-badge--spot), .l-meta > .l-badge:last-child:not(.l-badge--spot) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.f-state { justify-self: start; }
.f-title { overflow-wrap: normal; word-break: normal; font-size: calc(clamp(34px, 4.4vw, 52px) * var(--display-scale)); }
.f-quote p { font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.4; }
@media (min-width: 1024px) {
  .f-head { max-width: none; }
}

/* ---- The pages the mockup does not draw, deduced from the drawn pieces ---- */
/* Gains as the mockup's pill wherever a list gives one. */
.x-card__gain, .c-card__up, .archive-row__gain, .w-weeks__n, .x-hot__delta--up {
  justify-self: end; align-self: center; padding: 2px 8px; border-radius: 6px; font-family: var(--font-tab); font-size: 13px; font-weight: 500;
  color: var(--rise-text-strong); background-color: var(--rise-soft);
}
.x-hot__delta:not(.x-hot__delta--up) { font-family: var(--font-tab); font-size: 13px; }

/* Explore: the week's topics as cards, the categories' cards four across. */
.x-hot { gap: 12px; }
.x-hot__row { padding: 14px 16px; border-radius: 8px; background-color: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.x-hot__rank { font-family: var(--font-tab); font-size: 13px; color: var(--faint); }
.x-hot__meta { font-size: 13px; color: var(--faint); }
.x-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.x-card { padding: 16px; }
.x-card__slug { font-family: var(--font-tab); font-size: 13px; color: var(--faint); }
.x-cat__title, .x-sec__title { letter-spacing: -0.015em; }
.x-search__input { border-radius: 6px; }

/* Lists without a table: one white card, rows inside it. */
@media (min-width: 720px) {
.spotted-list, .archive-rows, .w-weeks__list, .w-side {
  padding: 0 20px; background-color: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--border);
}
}
.spotted-row { padding: 16px 0; }
.spotted-row__times { font-size: 20px; color: var(--rise-text); }
.spotted-row__line { font-size: 13px; }
.w-list .l-table, .w-list { border-radius: 8px; }

/* Facts and figures: large numbers in Geist with tabular digits, in white tiles. */
.w-facts, .c-stats { gap: 12px; margin-bottom: 32px; }
.w-fact, .w-fact + .w-fact, .c-stat {
  padding: 16px 18px; border: 0; border-radius: 8px; background-color: var(--surface); box-shadow: 0 0 0 1px var(--border);
}
.c-stat::before { content: none; }
.w-fact dd, .c-stat__value { font-family: var(--font-sans); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.w-fact dt, .c-stat__label { font-size: 13px; color: var(--faint); }

/* Collections. */
.c-card { padding: 18px; }
.c-card__name, .c-title, .c-h2 { letter-spacing: -0.015em; }
.cp-cmp-wrap { background-color: var(--surface); }
.cp-cmp thead th { font-size: 13px; }
.cp-cmp td { font-variant-numeric: tabular-nums; }
.c-how { border-radius: 8px; }

/* The digest's pages. */
.d-mail { box-shadow: 0 0 0 1px var(--border); }
.d-title { letter-spacing: -0.02em; }

/* Notices (404, not on Upstar, removed, a link that no longer works) and the text pages. */
.n-title { font-size: calc(clamp(32px, 4vw, 48px) * var(--display-scale)); }
.n-lead { font-size: 17px; color: var(--muted); }
.n-alert { border-radius: 8px; }
.doc-page .prose h2 { letter-spacing: -0.015em; }
.prose code, .mcp-code { border-radius: 6px; }
.mcp-code { box-shadow: 0 0 0 1px var(--border); }
.empty-state__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(22px * var(--display-scale-sm)); }

/* The sign-in and alert sheets, the forms. */
.sheet, .modal { border-radius: 8px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Geist Mono for the slugs and the small figures the mockup sets in it. */
.x-hot__meta, .l-related__slug, .x-card__slug, .w-weeks__n, .cp-cmp__stars, .spotted-row__times { font-family: var(--font-tab); }
.w-main .l-updated { font-family: var(--font-sans); font-size: 13px; }

/* The ranking's desktop structure only from 720 px; a phone keeps its band and row. */
@media (min-width: 720px) {
  .l-cols { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 48px; }
  .l-rank { flex: none; width: 100%; }
  .l-meta { gap: 0; font-size: 13px; color: var(--faint); }
  .l-badge { padding: 0; font-size: 13px; color: var(--faint); box-shadow: none; border-radius: 0; }
  .l-meta > .l-badge::before { content: "·"; margin: 0 6px; color: var(--faint); }
  .l-meta > .l-lang:empty + .l-lang-total + .l-badge::before { content: none; }
  .l-side { flex: none; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
}

@media (min-width: 720px) {
  .l-meta > .l-badge--spot::before { content: none; }
  .l-meta > .l-badge:has(+ .l-badge--spot), .l-meta > .l-badge:last-child:not(.l-badge--spot) { display: block; }
}
/* The head's badges in the right column: the unfolded list one badge a row, as on a phone. */
@media (min-width: 1024px) {
  .f-headbadge__more .f-awards__list { grid-template-columns: minmax(0, 1fr); }
  .f-headbadge__more .f-awards__item { display: grid; grid-template-columns: minmax(0, auto) auto; grid-template-areas: "badge copy" "text text"; justify-content: start; align-items: center; gap: 6px 12px; }
  .f-headbadge__more .f-awards__badge { grid-area: badge; min-width: 0; }
  .f-headbadge__more .f-awards__line { display: contents; }
  .f-headbadge__more .f-awards__text { grid-area: text; }
  .f-headbadge__more .f-awards__copy { grid-area: copy; }
}

/* The member feed's row keeps its own five columns (rank, repo, curve, gain, favorite);
   the six-column list template above would otherwise push the favorite to a new line. */
@media (min-width: 720px) { .l-row.m-row { grid-template-columns: 2.25rem minmax(0, 1fr) 92px 96px 40px; } }
/* The feed's repo column is narrower than a ranking's: name, description and facts stay stacked,
   the facts wrap instead of being cut, the spotted fact follows the others after its dot.
   No line starts on a dot (owner, 2026-11-26). Every fact carries its dot in a 16 px box before it, the first
   included; the list of facts starts 16 px to the left of its column and is clipped at the column's edge, so the
   dot of whatever fact opens a line, the first or one that wrapped, falls outside and is not drawn. */
@media (min-width: 720px) {
  .m-row .l-proj { display: flex; flex-direction: column; }
  .m-row .l-proj > .l-meta { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; align-self: stretch; margin-left: -16px; clip-path: inset(0 0 0 16px); }
  .m-row .l-meta > .l-badge, .m-row .l-meta > .l-badge:has(+ .l-badge--spot), .m-row .l-meta > .l-badge:last-child:not(.l-badge--spot) { display: block; flex: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
  .m-row .l-meta > .l-badge--spot { margin-left: 0; padding-left: 0; }
  .m-row .l-meta > .l-lang { display: inline-flex; }
  .m-row .l-meta > .l-lang:empty { display: none; }
  .m-row .l-meta > .l-lang::before, .m-row .l-meta > .l-badge::before, .m-row .l-meta > .l-lang:empty + .l-lang-total + .l-badge::before { content: "·"; display: inline-block; flex: none; width: 16px; margin: 0; text-align: center; color: var(--faint); }
  .m-row .l-proj > .l-desc { white-space: normal; }
}
/* /admin/deliveries' recipients table fits its card (owner, 2026-11-26, fixed in the redesign). Every admin
   cell is nowrap, so a member's followed topics ran 4,610 px and pushed Digest, Planned and Sent out of view.
   Here its cells wrap; the recipient column keeps a readable width; a phone still scrolls the table sideways. */
section[aria-labelledby="rec-t"] .admin-table td { white-space: normal; vertical-align: top; }
section[aria-labelledby="rec-t"] .admin-table td:first-child { min-width: 14rem; overflow-wrap: anywhere; }
section[aria-labelledby="rec-t"] .admin-table td:last-child { min-width: 12rem; }
@media (max-width: 719px) { section[aria-labelledby="rec-t"] .admin-table { min-width: 46rem; } }

/* Two corrections (owner, 2026-11-26).
   (1) Trending, Emerging, the topic pages and the weekly archives: the side column (the method, the Monday digest's
       form, the topics nearby) stays to the right of the ranking from 1,024 px; under that width it comes right
       after the ranking's first five repos, the markup splitting the list there (.l-rank--first, .l-rank--rest).
       Beside it the ranking's column is narrower: a row stacks name, description and facts, as the feed's does.
   (2) No line starts on a dot. Every fact of a ranking row carries its dot in a 16 px box before it, the first one
       included; the facts start 16 px left of their column and are clipped there, so the dot of the fact that opens a
       line, the first one or one that wrapped, is not drawn, as in the feed's rows above. Every fact is a block of words,
       a badge included, so nothing but the dot's own box separates the dot from its fact; a badge's picture keeps its
       5 px from its words by a margin. A fact with no class of its own (a collection row's age, its last release, a
       newcomer's creation day) gets its dot too. A dot written in a sentence gets a no-break space before it, in the
       templates (TestNoLineStartsOnADot). */
/* (3) A click on a row's facts opens the repo's page, as a click anywhere else on the row (owner, 2026-11-27). The name's
       link covers the whole row (.l-name::after, list.css); the facts line, clipped at 16 px for (2), paints in its own
       layer above it and took the click: on a computer since the clip of 2026-11-26, on a phone since unslop's (0 of 43
       facts on /trending reached the link). The facts are words, never a link or a button: the line lets clicks through,
       at every width (TestRowFactsClickOpensRepo clicks them in Chrome, TestDotsDrawnClipped holds this rule). */
.l-proj > .l-meta { pointer-events: none; }
@media (min-width: 720px) {
  .l-proj > .l-meta { gap: 0; margin-left: -16px; clip-path: inset(0 0 0 16px); }
  .l-meta > .l-badge { display: block; }
  .l-meta > .l-badge > .l-badge__dot, .l-meta > .l-badge > svg { display: inline-block; vertical-align: middle; margin: -2px 5px 0 0; }
  .l-meta > .l-lang:not(:empty), .l-meta > .w-move { display: inline-flex; align-items: center; }
  .l-meta > .l-lang::before, .l-meta > .w-move::before, .l-meta > .l-badge::before, .l-meta > span:not([class])::before,
  .l-meta > .l-lang:empty + .l-lang-total + .l-badge::before { content: "·"; display: inline-block; flex: none; width: 16px; margin: 0; text-align: center; color: var(--faint); font-family: var(--font-sans); font-weight: 400; }
  /* On one line beside the name, "Spotted at …" keeps its place at the line's end, without a dot. */
  .l-meta > .l-badge--spot::before { content: none; }
}
@media (min-width: 1024px) {
  .l-cols { display: grid; grid-template-columns: minmax(0, 1fr) clamp(264px, 25vw, 320px); grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; align-items: start; }
  .l-cols > .l-rank { grid-column: 1; grid-row: 1; width: auto; min-width: 0; }
  .l-cols > .l-rank--rest { grid-row: 2; }
  .l-cols > .l-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: none; min-width: 0; }
  /* The two parts of a split list read as one card. */
  .l-rank--first .l-table { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .l-rank--rest .l-table { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: -1px; }
  /* The weekly archive's rows keep their own three columns. */
  .l-cols .l-thead, .l-cols .l-row:not(.w-row) { grid-template-columns: 2rem minmax(0, 1fr) 76px 92px 56px 72px; column-gap: 14px; }
  .l-cols .l-thead { padding: 0 16px; }
  .l-cols .l-row { padding: 13px 16px; }
  .l-cols .l-proj { display: flex; flex-direction: column; align-items: stretch; row-gap: 3px; }
  .l-cols .l-proj > .l-meta { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; }
  .l-cols .l-meta > .l-badge, .l-cols .l-meta > .l-badge:has(+ .l-badge--spot), .l-cols .l-meta > .l-badge:last-child:not(.l-badge--spot) { display: block; flex: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
  .l-cols .l-meta > .l-badge--spot { margin-left: 0; padding-left: 0; }
  .l-cols .l-meta > .l-badge--spot::before { content: "·"; }
  .l-cols .l-proj > .l-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* A repo's name may break after its owner's slash before it breaks inside a word. */
.l-owner::after { content: "\200B"; }
/* Two more (owner, 2026-11-26; found checking the corrections at 768 px and on the collections' pages).
   (3) From 720 to 1,023 px a ranking row's name and facts did not fit on one line beside four columns of figures:
       the curve covered the name and the facts were cut. There every row stacks name, description and facts, with the
       narrower columns of a ranking beside the side column.
   (4) A collection row's name (.c-name) takes the name's place on the first line; it came last, under its facts and
       description. */
@media (min-width: 720px) {
  .l-row .l-proj > .c-name.c-name { grid-column: 1; grid-row: 1; align-self: center; }
  /* On one line, a last fact with no class of its own ends on an ellipsis, as a last badge does, never cut short. */
  .l-meta > span:not([class]):last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .l-thead, .l-row:not(.w-row):not(.m-row) { grid-template-columns: 2rem minmax(0, 1fr) 76px 92px 56px 72px; column-gap: 14px; }
  .l-thead { padding: 0 16px; }
  .l-row:not(.w-row):not(.m-row) { padding: 13px 16px; }
  .l-row:not(.w-row):not(.m-row) .l-proj { display: flex; flex-direction: column; align-items: stretch; row-gap: 3px; }
  .l-row:not(.w-row):not(.m-row) .l-proj > .l-meta { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; }
  .l-row:not(.w-row):not(.m-row) .l-meta > .l-badge, .l-row:not(.w-row):not(.m-row) .l-meta > .l-badge:has(+ .l-badge--spot),
  .l-row:not(.w-row):not(.m-row) .l-meta > .l-badge:last-child:not(.l-badge--spot) { display: block; flex: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
  .l-row:not(.w-row):not(.m-row) .l-meta > .l-badge--spot { margin-left: 0; padding-left: 0; }
  .l-row:not(.w-row):not(.m-row) .l-meta > .l-badge--spot::before { content: "·"; }
  .l-row:not(.w-row):not(.m-row) .l-proj > .l-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1024px) {
  /* Beside the side column, a collection row stacks as the others do. */
  .l-cols .l-row .l-proj > .c-name.c-name { align-self: stretch; }
}

/* ===== Unslop (owner, 2026-11-27: « je retiens unslop en entier, tel quel », after its trial on production's pages
   of 2026-11-26). Method: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. Direction: an observatory's star
   catalogue, ink on paper; green for a rise alone. Its tokens are at the top of this file and in tokens.css
   (ds-1.4.0), its signup buttons above, its curve in components.css and graphics.go, the hero's paragraph without
   its promise in landing.templ; the rest is restated here, last, over the redesign's rules. ===== */
/* Gains: green tabular figures, no pill. */
.l-gained, .archive-row__gain, .h-pick__gain .num, .h-feat__num, .h-mail__gain,
.repo-card__gain .gain, .newcomer-card__gain .gain, .collection-card__gain .gain, .coll-row__big--gain,
.x-card__gain, .m-repo__gain, .m-topic__gain, .c-card__up, .todo__gain,
.w-weeks__n, .x-hot__delta--up {
  padding: 0; border-radius: 0; background: none; color: var(--gain-text); font-weight: 500; font-variant-numeric: tabular-nums;
}
/* The archive's count of ranked repos sits beside the week's gain, in its class: a count, grey (owner, 2026-11-27). */
.w-weeks__ranked { color: var(--muted); }
/* Signature: each repo's trace in ink, its last point a dot, green when the curve rose (graphics.go draws the dot on every curve,
   sparkline__dot--up when its last point is above its first, owner, 2026-11-27; the
   rules are components.css's, restated after the pages' own sheets as the trial applied them). */
.l-spark, .sparkline { color: var(--faint); }
.l-spark .sparkline__area, .sparkline__area { display: none; }
.sparkline__dot--up { fill: var(--rise-fill); }
/* Spotted: magenta on the flag alone, the words in the text's own greys. */
.l-badge--spot, .h-pick__spot, .h-feat__spot { color: var(--faint); }
.h-proof__label { color: var(--text); font-weight: 500; }
.l-badge--spot svg, .h-pick__spot svg, .h-feat__spot svg, .h-proof__label svg, .spot-flag { color: var(--spot); }
/* A state is a fact, not a pill. */
.f-state, .f-state--new { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); }
.f-state__dot { background: var(--faint); }

/* 5. Type: no italic emphasis; the serif only on page titles; one weight below them. */
.f-quote p { font-family: var(--font-sans); font-style: normal; font-size: 18px; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
.h-picks__title, .h-sec__title, .l-ranktitle, .l-related__title, .l-digest__title,
.niche-page .section-title, .archive-page .section-title, .spotted-page .section-title,
.empty-state__title, .error-state__title, .modal__title, .modal--signin .modal__title, .sheet__title, .prose h2 {
  font-family: var(--font-sans); font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em;
}
.f-sec__h { font-family: var(--font-sans); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.f-verdict__p { font-family: var(--font-sans); font-weight: 400; font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.l-name, .h-pick__name, .h-feat__name, .x-hot__name, .repo-card__name { font-weight: 500; }
.h-pick__gain .num, .h-feat__num, .l-gained { font-weight: 500; }

/* 7. Details: controls 8, cards 12, tags 6. */
.btn, .input, .select, .textarea, .e-icon-btn, .e-nav__link, .segmented, .x-search__input { border-radius: 8px; }
.e-seg__opt:first-child { border-radius: 8px 0 0 8px; }
.e-seg__opt:last-child { border-radius: 0 8px 8px 0; }
.e-seg__opt:only-child { border-radius: 8px; }
.h-card, .h-proof__card, .h-mail, .l-card, .l-table, .f-verdict__card, .f-tiles, .f-tablewrap, .f-log__list, .f-days,
.x-hot__row, .f-card, .card, .panel { border-radius: 12px; }
.f-chart__area { border-radius: 12px 12px 0 0; }
.f-chart__axis { border-radius: 0 0 12px 12px; }
.chip, .x-chip, .f-chip { border-radius: 6px; }

/* 1. Spacing: ranking rows on the 4 px grid and one height: the facts keep their wrap (nothing cut), and every row
   takes the height of a row with a description and two lines of facts, the usual one. */
.l-row { padding-block: 12px; }
@media (min-width: 1024px) {
  .l-cols .l-row:not(.w-row) { padding: 12px 16px; min-height: 120px; }
}

/* A row's facts are quiet text on a phone too ("Mixed signals" was a pill), separated by a dot. They wrap there, so
   no line starts on a dot (owner, 2026-11-26; the trial drew it before a badge alone, which could open a line): as from
   720 px, every fact carries its dot in a 16 px box, the first included, and the facts start 16 px left of their
   column, clipped there. The box is the fact's own left padding: a fact moves whole to the next line, and one longer
   than the line wraps inside its box instead of being cut at the edge (owner, 2026-11-27: at 320 px the clip cut 10
   of 477 facts kept on one line). A row with no language has no empty fact before its total. */
@media (max-width: 719.98px) {
  .l-badge { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--faint); font-size: 13px; }
  .l-proj > .l-meta { gap: 6px 0; margin-left: -16px; clip-path: inset(0 0 0 16px); }
  .l-meta > .l-badge { display: block; }
  .l-meta > .l-badge > .l-badge__dot, .l-meta > .l-badge > svg { display: inline-block; vertical-align: middle; margin: -2px 5px 0 0; }
  .l-meta > .l-lang:empty { display: none; }
  .l-meta > .w-move { display: inline-flex; align-items: center; }
  .l-meta > .l-lang, .l-meta > .l-lang-total, .l-meta > .w-move, .l-meta > .l-badge, .l-meta > span:not([class]) {
    position: relative; min-width: 0; max-width: 100%; padding-left: 16px; white-space: normal;
  }
  .l-meta > .l-lang::before, .l-meta > .l-lang-total::before, .l-meta > .w-move::before, .l-meta > .l-badge::before, .l-meta > span:not([class])::before {
    content: "·"; position: absolute; left: 0; top: 0; width: 16px; margin: 0; text-align: center; color: var(--faint); font-family: var(--font-sans); font-weight: 400;
  }
}

/* 6. Layout: the home page's notice repeats its hero. */
body:has(.h-hero) .f-newcomer { display: none; }
