/*
 * home.css: the home page and the chrome shared with rules.html, on top of
 * style.css, whose tokens (colour, faces, radius) it uses throughout.
 *
 * Rhythm: grounds alternate --bg and --band so a section break is felt
 * before it is read; the limits are the one inverted band.
 */

@font-face { font-family: "Sora"; src: url(fonts/sora-700-latin.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

  /* ============================================================
     Whole-page design. Built on the live stylesheet's tokens, so
     every colour and face here is already the page's own.

     Rhythm: the page alternates three grounds rather than running
     one flat colour, so a section break is felt before it is read.
       --bg     the room            hero, cannot-do
       --band   a recessed shelf    how it reads, the finding
       --paper  the work itself     every sheet of prose
     ============================================================ */
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
  /* Exactly two measures, both centred and concentric. A centred page can
     carry two edges; four reads as drift. */
  :root { --wide: 960px; --narrow: 680px; }
  .wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
  .narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }

  /* --- type scale, one ladder used everywhere --- */
  /* The live stylesheet puts a ch-based max-width on bare h1, and a margin
     shorthand zeroes the auto side-margins that centre these. Both are set
     explicitly here so the hero column actually centres on the page. */
  /* Two deliberate lines, broken at "read as", each carrying its own colour.
     The break is structural, not left to text-wrap. */
  .t-hero { font-size: clamp(32px, 5.2vw, 54px); font-weight: 700; letter-spacing: -0.034em; line-height: 1.06; margin: 0 auto; max-width: none; }
  .t-hero span { display: block; }
  .t-hero .l1 { color: var(--ink); }
  .t-hero .l2 { color: var(--accent); }
  .t-sec  { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; margin: 0 auto; max-width: 24ch; text-wrap: balance; }
  .t-sub  { font-size: 17.5px; line-height: 1.55; color: var(--muted); margin: 20px auto 0; text-wrap: pretty; }
  .eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
  em.a { font-style: normal; color: var(--accent); }

  section { padding: 84px 0; }
  section.band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

  /* --- nav --- */
  .nav { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .nav-in { max-width: 1060px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 22px; }
  /* Picked lockup: nib at 0.82 x font-size, sized by HEIGHT and hung from the
     baseline like a letter. Aspect 0.56. Masked, so it takes the theme accent. */
  .brand { --f: 19px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: var(--f); letter-spacing: -0.035em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 7px; line-height: 1; }
  .brand i { display: inline-block; position: relative; flex: none; height: calc(var(--f) * 0.82); width: calc(var(--f) * 0.82 * 0.56); bottom: calc(var(--f) * -0.06); background-color: var(--accent); -webkit-mask: url(mark/nib.png) center / contain no-repeat; mask: url(mark/nib.png) center / contain no-repeat; border: 0; border-radius: 0; }
  
  .nav a.l { margin-left: auto; }
  .nav nav { display: flex; gap: 20px; margin-left: auto; }
  .nav nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
  .nav nav a:hover { color: var(--ink); }

  /* --- hero --- */
  .hero { text-align: center; padding: 76px 0 0; }
  .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; }
  .b1 { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius); background: var(--solid-bg); color: var(--solid-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
  .b2 { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 13px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-family: var(--mono); font-size: 13px; }
  .b2 u { text-decoration: none; color: var(--muted); font-family: var(--sans); font-size: 12px; }

  /* --- the sheet + tab callouts (picked design) --- */
  .demo { max-width: var(--narrow); margin: 44px auto 0; }
  .sheet { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 30px 34px 34px; text-align: left; font-family: var(--serif); font-size: 16.5px; line-height: 3.5; color: var(--ink); }
  .sheet p { margin: 0; }
  .mk { position: relative; display: inline; background-image: linear-gradient(var(--mark), var(--mark));
    background-repeat: no-repeat; background-size: 0% 100%; padding: 0 1px; box-shadow: inset 0 -2px 0 0 transparent;
    transition: background-size .3s cubic-bezier(.16,1,.3,1), box-shadow .01s linear .26s; }
  .playing .mk { background-size: 100% 100%; box-shadow: inset 0 -2px 0 0 var(--accent);
    transition-delay: calc(var(--i) * var(--beat)), calc(var(--i) * var(--beat) + .26s); }
  /* single-line tab: the description lives once, under the sheet, not four times over it */
  .note { position: absolute; top: 1.5em; left: 0; z-index: 4; width: max-content;
    font-family: var(--sans); line-height: 1; font-size: 12px; white-space: nowrap;
    background: var(--mark); border: 1px solid var(--accent); border-top: 0; border-radius: 0 0 3px 3px;
    padding: 6px 10px 7px; display: flex; align-items: baseline; gap: 9px;
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .2s ease, transform .34s cubic-bezier(.16,1,.3,1); }
  .mk.on .note { opacity: 1; transform: none; }
  .note.flip { left: auto; right: 0; border-radius: 3px 0 3px 3px; }
  .note .rule-n { font-family: var(--mono); font-weight: 700; color: var(--accent); }
  .note .at { font-family: var(--mono); color: var(--muted); font-size: 11px; }
  .note .w { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .reset .mk, .reset .note { transition: none !important; }
  .reset .mk { background-size: 0% 100%; box-shadow: inset 0 -2px 0 0 transparent; }

  .gloss { max-width: 740px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); }
  .gloss b { color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 12.5px; }
  .prov { max-width: var(--narrow); margin: 16px auto 0; font-size: 13px; color: var(--muted); text-align: center; }
  .replay { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }

  /* ============================================================
     Below the hero. Redesigned 2026-09-21. Every figure on this
     page comes from corpus/results.json or from running the
     linter on corpus/machine/about-us.md; none is typed by hand.
     Grounds alternate band / bg so a section break is felt first.
     ============================================================ */

  /* weight is carried by underline style, the page's own convention:
     dotted weak, solid moderate, double strong */
  .w-weak     { text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 4px; }
  .w-moderate { text-decoration: underline solid var(--accent) 2px; text-underline-offset: 4px; }
  .w-strong   { text-decoration: underline double var(--accent) 3px; text-underline-offset: 4px; }
  /* The live stylesheet caps body's children and gives inline code a pill.
     Neither belongs in this layout: the nav runs edge to edge, and rule ids
     here are labels, not code samples in prose. */
  .nav { max-width: none; width: 100%; margin: 0; box-sizing: border-box; }
  .va code, .rl code, .rrow code, .locs code, .dim code, .spec code, .overlap code, .lead code, .refline code { background: none; padding: 0; border-radius: 0; }
  .sec-head { text-align: center; }
  .sec-head .t-sub { max-width: 58ch; }
  code.i { font-family: var(--mono); font-size: .88em; }

  /* ============ 1. anatomy: the report line, dimensioned ============ */
  .anat { max-width: 820px; margin: 48px auto 0; }
  .anat-src { font-family: var(--serif); font-size: clamp(18px, 2.3vw, 22px); line-height: 1.6; text-align: center; color: var(--muted); margin: 0 auto; max-width: 36ch; text-wrap: balance; }
  .anat-src mark { background: var(--mark); color: var(--ink); padding: 0 1px; }
  .anat-drop { width: 1px; height: 34px; margin: 14px auto; background: var(--rule-strong); }
  .dim { display: grid; grid-template-columns: auto auto auto auto; justify-content: center; gap: 0; }
  .dim > div { padding: 0 18px; border-left: 1px solid var(--rule); text-align: left; }
  .dim > div:first-child { border-left: 0; }
  .dim b { display: block; font-family: var(--mono); font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; color: var(--ink); white-space: nowrap; }
  .dim b.acc { color: var(--accent); }
  .dim u { display: block; text-decoration: none; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 8px; }
  .dim span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 3px; max-width: 19ch; }
  .dim > div { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .5s cubic-bezier(.16,1,.3,1); }
  .on .dim > div { opacity: 1; transform: none; }
  .on .dim > div:nth-child(2) { transition-delay: .12s; }
  .on .dim > div:nth-child(3) { transition-delay: .24s; }
  .on .dim > div:nth-child(4) { transition-delay: .36s; }

  .weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 56px auto 0; max-width: 900px; border-top: 1px solid var(--rule); }
  .weights > div { padding: 20px 22px 0 0; }
  .weights > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
  .weights h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; display: inline-block; }
  .weights p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
  .overlap { max-width: 640px; margin: 40px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }
  .overlap b { color: var(--ink); }

  /* ============ 2. try it: the real linter, in the page ============ */
  .try { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; margin-top: 44px; align-items: start; }
  .editor { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
  .ed-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
  .ed-bar button { font: 600 13px var(--sans); color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .ed-bar button:hover { text-decoration: underline; }
  .ed-bar .wc { margin-left: auto; font-family: var(--mono); font-size: 12px; }
  /* A textarea cannot hold marks, so a mirror sits under it with the same
     metrics and carries the highlights. The textarea grows with its text
     instead of scrolling, so the two can never drift apart. */
  .ed-scroll { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }
  .ed-body { position: relative; }
  .ed-mirror, .ed-body textarea { font-family: var(--serif); font-size: 16.5px; line-height: 1.75; padding: 22px 26px 28px; margin: 0;
    white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; box-sizing: border-box; width: 100%; border: 0; letter-spacing: normal; tab-size: 4; }
  .ed-mirror { color: transparent; min-height: 360px; pointer-events: none; }
  .ed-mirror span { background: var(--mark); border-radius: 0; }
  .ed-mirror span.w1 { text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 4px; }
  .ed-mirror span.w2 { text-decoration: underline solid var(--accent) 2px; text-underline-offset: 4px; }
  .ed-mirror span.w3 { text-decoration: underline double var(--accent) 3px; text-underline-offset: 4px; }
  .ed-mirror span.hot { background: var(--accent); opacity: .35; }
  .ed-body textarea { position: absolute; inset: 0; height: 100%; resize: none; overflow: hidden; background: transparent; color: var(--ink); caret-color: var(--ink); outline: none; }
  .ed-body textarea::placeholder { color: var(--muted); }
  .editor:focus-within { border-color: var(--rule-strong); }

  .results { position: sticky; top: 76px; }
  .sum { padding: 0 0 14px; border-bottom: 1px solid var(--rule-strong); }
  .sum .big { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
  .sum .big small { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
  .sum p { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
  .rl { list-style: none; margin: 0; padding: 0; max-height: 470px; overflow-y: auto; }
  .rl > li { border-bottom: 1px solid var(--rule); }
  .rl .rh { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; width: 100%; padding: 11px 2px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
  .rl .rh code { font-family: var(--mono); font-size: 13px; font-weight: 700; }
  .rl .rh .wt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
  .rl .rh .ct { font-family: var(--mono); font-size: 12.5px; color: var(--muted); min-width: 9ch; text-align: right; }
  .rl .rh .ct b { color: var(--ink); }
  .rl ol { list-style: none; margin: 0 0 10px; padding: 0; display: none; }
  .rl li.open ol { display: block; }
  .rl ol button { display: grid; grid-template-columns: 58px 1fr; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--radius); padding: 5px 6px; cursor: pointer; font: inherit; color: var(--ink); }
  .rl ol button:hover, .rl ol button:focus-visible { background: var(--mark); }
  .rl ol i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
  .rl ol span { font-family: var(--serif); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .empty { font-size: 14px; color: var(--muted); padding: 18px 0; line-height: 1.6; }
  .private { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

  /* ============ 3. the difference: same text, two outputs ============ */
  .versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
  .pane { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; }
  .pane.them { border-style: dashed; }
  .pane h3 { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--rule); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
  .pane.us h3 { color: var(--accent); }
  .pane .txt { padding: 18px 20px; font-family: var(--serif); font-size: 15px; line-height: 1.75; color: var(--ink); flex: 1; }
  .pane .txt p { margin: 0 0 10px; }
  .pane.them .txt { color: var(--muted); }
  .pane .out { border-top: 1px solid var(--rule); padding: 14px 20px 16px; min-height: 140px; }
  .stamp { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stamp b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .stamp span { font-size: 12.5px; color: var(--muted); }
  .them .out p { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
  .locs { display: grid; gap: 4px; }
  .locs div { display: grid; grid-template-columns: 52px auto 1fr; gap: 16px; font-size: 13px; align-items: baseline; }
  .locs i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--accent); }
  .locs code { font-family: var(--mono); font-size: 12px; }
  .locs span { color: var(--muted); font-size: 12px; }
  .us mark { background: var(--mark); color: inherit; padding: 0 1px; }
  .verdict-note { margin: 30px auto 0; text-align: center; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 64ch; text-wrap: balance; }
  .verdict-note b { color: var(--accent); }
  .cite { text-align: center; font-size: 13px; color: var(--muted); margin: 18px auto 0; max-width: 62ch; line-height: 1.55; }

  /* ============ 4. the finding: the gap (picked A) ============ */
  /* ================= A. the gap ================= */
  .va { margin-top: 40px; scroll-margin-top: 80px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 26px 20px; }
  .va-sides, .va-row { display: grid; grid-template-columns: 170px 1fr 52px 210px; gap: 14px; align-items: center; }
  .va-sides { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
  .va-lr { position: relative; height: 14px; }
  .va-lr span { position: absolute; top: 0; white-space: nowrap; }
  .va-lr span:first-child { right: calc(100% - var(--z) + 10px); }
  .va-lr span:last-child { left: calc(var(--z) + 10px); color: var(--accent); }
  .va-ticks { position: relative; height: 16px; font: 11px/1 var(--mono); color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
  .va-ticks span { position: absolute; transform: translateX(-50%); }
  .va-rows { position: relative; }
  .va-row { padding: 5px 0; border-top: 1px solid var(--rule); }
  .va-row code { font-size: 12.5px; }
  .va-track { position: relative; height: 16px;
    background: linear-gradient(var(--rule-strong), var(--rule-strong)) no-repeat; background-size: 1px 100%; background-position: var(--z) 0; }
  .va-bar { position: absolute; top: 3px; height: 10px; }
  .va-bar.neg { background: var(--bar-human); }
  .va-bar.pos { background: var(--accent); }
  .va-pin { position: absolute; top: 4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bar-human); background: var(--paper); }
  .va-v { font: 700 12.5px/1 var(--mono); text-align: right; color: var(--muted); }
  .va-n { font-size: 12px; color: var(--muted); }
  .va-row.sep { background: var(--mark); margin: 0 -26px; padding-left: 26px; padding-right: 26px; }
  .va-row.sep code, .va-row.sep .va-v { color: var(--accent); font-weight: 700; }
  .va-row.sep .va-n { color: var(--ink); }
  .va-key { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
  .va-key b { color: var(--ink); font-family: var(--mono); }

  .va-bar { transform: scaleX(0); transition: transform .6s cubic-bezier(.16,1,.3,1); }
  .va-bar.pos { transform-origin: left; } .va-bar.neg { transform-origin: right; }
  .on .va-bar { transform: scaleX(1); }
  .va-row.sep .va-bar { transition-delay: .35s; }
  .provenance { margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
  .provenance code { font-family: var(--mono); font-size: 11.5px; background: var(--code); padding: 1px 5px; border-radius: var(--radius); color: var(--ink); }
  .provenance a { color: var(--accent); }

  /* ============ 5. limits: the one inverted band on the page ============ */
  section.nolimit { background: var(--solid-bg); color: var(--solid-ink); padding: 64px 0 70px; }
  .nolimit .t-sec { color: var(--solid-ink); margin: 0; text-align: left; max-width: none; }
  .cannot { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: c; }
  .cannot li { counter-increment: c; padding: 18px 22px 0 0; border-top: 1px solid color-mix(in srgb, var(--solid-ink) 22%, transparent); }
  .cannot li + li { padding-left: 22px; border-left: 1px solid color-mix(in srgb, var(--solid-ink) 22%, transparent); }
  .cannot li::before { content: "0" counter(c); display: block; font: 700 11px/1 var(--mono); opacity: .55; margin-bottom: 12px; }
  .cannot b { display: block; font-family: var(--serif); font-size: 17.5px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; }
  .cannot span { display: block; font-size: 14px; line-height: 1.55; margin-top: 8px; opacity: .72; }
  .cannot em { font-style: normal; font-weight: 700; }

  /* ============ 6. use it ============ */
  .use { max-width: 780px; margin: 40px auto 0; }
  pre.code { background: var(--solid-bg); color: var(--solid-ink); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; margin: 0; }
  pre.code .c { opacity: .55; }
  pre.code .k { color: #9fb6ff; }
  /* the solid block inverts in dark mode, so the keyword blue inverts with it */
  :root[data-theme="dark"] pre.code .k { color: #1a43bf; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) pre.code .k { color: #1a43bf; } }
  .spec { margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .spec div { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 92px 1fr; gap: 14px; font-size: 14.5px; }
  .spec div:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .spec dt { font-weight: 700; color: var(--ink); }
  .spec dd { margin: 0; color: var(--muted); }
  .spec code { font-family: var(--mono); font-size: 13px; color: var(--ink); }

  footer { padding: 46px 0 64px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); text-align: center; }
  footer a { color: var(--muted); }

  @media (max-width: 860px) {
    section { padding: 58px 0; }
    .sheet { padding: 22px 16px 24px; font-size: 15.5px; line-height: 3.3; }
    .nav nav { gap: 14px; }
    .nav nav a { font-size: 13.5px; }
    .nav nav a.opt { display: none; }
    .dim { grid-template-columns: 1fr 1fr; row-gap: 22px; }
    .dim > div:nth-child(3) { border-left: 0; }
    .weights { grid-template-columns: 1fr; }
    .weights > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 20px; }
    .try, .versus, .spec { grid-template-columns: 1fr; }
    .variant { padding: 40px 16px 52px; }
    .va { padding: 16px 14px; }
    .va-sides, .va-row { grid-template-columns: 1fr 44px; gap: 4px 10px; }
    .va-row code { grid-column: 1 / -1; }
    .va-track { grid-column: 1; }
    .va-n { display: none; }
    .va-sides > span { display: none; }
    .va-lr span:first-child { display: none; }
    .va-lr span:last-child { left: auto; right: 0; }
    .va-row.sep { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
    .cannot { grid-template-columns: 1fr; }
    .cannot li + li { padding-left: 0; border-left: 0; }
    .cannot li { padding: 18px 0 20px; }
    .spec div:nth-last-child(2) { border-bottom: 0; }
    .results { position: static; }
    .ed-mirror { min-height: 300px; }
    .ed-scroll { max-height: 440px; }
    .ed-mirror, .ed-body textarea { padding: 18px 16px 22px; font-size: 16px; }
    .locs div { grid-template-columns: 48px 1fr; }
    .locs span { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .mk { background-size: 100% 100%; box-shadow: inset 0 -2px 0 0 var(--accent); transition: none; }
    .note { opacity: 1; transform: none; transition: none; }
    .dim > div { opacity: 1 !important; transform: none !important; transition: none !important; }
    .va-bar { transform: none !important; transition: none !important; }
  }

  /* ============ generated parts added for docs/ ============ */
  .limits-compact { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
  .limits-compact h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; color: var(--ink); }
  .limits-compact ol { margin: 0; padding-left: 18px; }
  .limits-compact p { margin: 6px 0 0; }
  .limits-compact a { color: var(--accent); }
  .corpus-notes { margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
  .corpus-notes p { margin: 0 0 6px; }
  .corpus-notes code { font-family: var(--mono); font-size: 11.5px; background: var(--code); padding: 1px 5px; border-radius: var(--radius); color: var(--ink); }
  .corpus-notes strong { color: var(--ink); }
  .npm-note { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
  .npm-note code { font-family: var(--mono); font-size: 12px; background: none; padding: 0; }
  .nolimit .statement-source { margin: 22px 0 0; font-size: 12.5px; color: var(--solid-ink); opacity: .72; }
  .nolimit .statement-source a { color: inherit; }
  .refuses { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; opacity: .85; max-width: 70ch; }
  .cannot strong { font-weight: 700; }
  .b2 { cursor: pointer; font: 13px var(--mono); color: var(--ink); }
  .b2 code { background: none; padding: 0; font-size: 13px; }
  .theme-btn { font: 600 13px var(--sans); color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; }
  .theme-btn:hover { color: var(--ink); }
  section[id] { scroll-margin-top: 64px; }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--paper); padding: 8px 12px; }

  /* style.css pads every main > section for its own layout; the home page
     sections centre a .wrap instead, so they take their own padding back. */
  body:not(.rules-page) main > section { padding: 84px 0; }
  body:not(.rules-page) main > section.hero { padding: 76px 0 84px; }
  body:not(.rules-page) main > section.nolimit { padding: 64px 0 70px; }
  @media (max-width: 860px) {
    body:not(.rules-page) main > section { padding: 58px 0; }
    body:not(.rules-page) main > section.hero { padding: 48px 0 58px; }
  }
  .rules-page main > section:first-child h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 12px; }

  /* Small phones: the nav loses GitHub (it is in the footer), a hero note
     loses its weight label, and nothing in the demo may widen the page. */
  .demo { overflow-x: clip; }
  @media (max-width: 440px) {
    .nav nav a.gh { display: none; }
    .nav-in { gap: 12px; }
    .note .w { display: none; }
  }
