/* The reader's own styles. tokens.css, base.css and family.css are copied unchanged
   from Proof Reader and the family's shared parts; this file maps the fonts, carries
   the desk-and-sheet variables from Proof Reader's app.css and reading.css, and lays
   out the three pages. Adapted rules name the Proof Reader class they come from. */

/* Fonts: the family's subset files (wcook04.github.io assets/hub.css). */
@font-face { font-family: "Plectis Serif"; src: url("fonts/plectis-serif.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plectis Serif"; src: url("fonts/plectis-serif-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Plectis Sans"; src: url("fonts/plectis-sans.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plectis Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 105.63%; ascent-override: 72.14%; descent-override: 22.53%; line-gap-override: 23.67%; }
@font-face { font-family: "Plectis Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 94.72%; ascent-override: 108.11%; descent-override: 42.23%; line-gap-override: 0%; }

:root {
  --font-serif: "Plectis Serif", "Plectis Serif Fallback", "STIX Two Text", Georgia, serif;
  --font-sans: "Plectis Sans", "Plectis Sans Fallback", "Source Sans 3", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* The desk and its sheets, and the highlighter: Proof Reader app.css. */
  --desk: #ebe2d2;
  --sheet: #fffdf8;
  --sheet-shadow: 0 0 0 1px rgb(70 50 20 / 0.07), 0 1px 3px rgb(70 50 20 / 0.08);
  --highlight: #ffdf8e;
  --highlight-soft: #fff0c7;
  --thread: #b4650a;
  --lean-keyword: #3d4476;
  --hover-wash: rgb(70 50 20 / 0.06);
  --rail-count: #8a4500;
  /* Code colours: Proof Reader reading.css. */
  --code-type: #17697f;
  --code-comment: #436e49;
  --code-well: #f6efe2;
}

:root[data-theme="dark"] {
  --desk: #150f1e;
  --sheet: #1f1829;
  --sheet-shadow: 0 0 0 1px rgb(242 230 212 / 0.06);
  --highlight: #6a4a14;
  --highlight-soft: #3f2e15;
  --thread: #f3a43a;
  --lean-keyword: #b3b9ee;
  --hover-wash: rgb(242 230 212 / 0.07);
  --rail-count: #fab250;
  --code-type: #74c4d6;
  --code-comment: #93c79a;
  --code-well: #2a2234;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #150f1e;
    --sheet: #1f1829;
    --sheet-shadow: 0 0 0 1px rgb(242 230 212 / 0.06);
    --highlight: #6a4a14;
    --highlight-soft: #3f2e15;
    --thread: #f3a43a;
    --lean-keyword: #b3b9ee;
    --hover-wash: rgb(242 230 212 / 0.07);
    --rail-count: #fab250;
    --code-type: #74c4d6;
    --code-comment: #93c79a;
    --code-well: #2a2234;
  }
}

html, body, #root { height: auto; min-height: 100%; }
body { background: var(--ground); }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
code { font-family: var(--font-mono); font-size: 0.86em; }
.status, .lost { max-width: 34rem; margin: 18vh auto 0; padding: 0 24px; }
.lost h1 { font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: 400; margin-bottom: 12px; }

/* ---------------------------------------------------------------- front and about */

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 24px; }
.top { border-bottom: 1px solid var(--rule-strong); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topbar-h); }
.top__nav { display: flex; align-items: center; gap: 16px; font-size: var(--fs-ui); }
.top__nav a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--rule-strong); white-space: nowrap; }
.top__nav a:hover { color: var(--lit); }
.top .fam-lockup__site, .bar .fam-lockup__site { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top .fam-lockup__name, .bar .fam-lockup__name { font-family: var(--font-serif); font-size: 1.0625rem; }

/* .bar__theme: Proof Reader's quiet text button. */
.bar__theme { flex: none; min-height: 28px; padding: 0 8px; border-radius: var(--radius-s); font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.bar__theme:hover { color: var(--ink); background: var(--hover-wash); }

.hero { padding: 64px 0 56px; max-width: 40rem; }
.hero h1 { font-family: var(--font-serif); font-size: var(--fs-display); font-weight: 400; line-height: var(--lh-tight); letter-spacing: -0.012em; }
.hero__lede { margin-top: 20px; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
/* Whose work the pages display, stated before anything else on the front page. */
.hero__credit { max-width: 36rem; margin-top: 14px; font-size: var(--fs-base); line-height: 1.55; color: var(--ink-2); }
.hero__lede a, .hero__credit a { text-underline-offset: 3px; }
.hero__lede a:hover, .hero__credit a:hover, .sheet__credit a:hover, .sheet__note a:hover { color: var(--lit); }
.hero__added { font-weight: 600; color: var(--ink); }
.hero__finding { max-width: 34rem; margin-top: 28px; padding-left: 14px; border-left: 2px solid var(--thread); font-size: var(--fs-base); line-height: 1.55; color: var(--ink-2); }
.hero__finding strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hero__more { font-size: var(--fs-ui); color: var(--ink-2); text-underline-offset: 3px; }
.hero__more:hover { color: var(--lit); }
.control--primary { min-height: 42px; padding: 0 18px; border-color: var(--ink); background: var(--ink); color: var(--ground); font-size: var(--fs-base); }
.control--primary:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 88%, var(--ground)); }

.solutions { padding: 8px 0 24px; border-top: 1px solid var(--rule-strong); }
.solutions h2 { padding-top: 32px; font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: 400; }
.solutions__note { margin-top: 8px; max-width: 31rem; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-left: -9px; font-size: var(--fs-ui); }
.filters__group + .filters__group { margin-left: 0; padding-left: 19px; border-left: 1px solid var(--rule-strong); }
/* The list of chains: each column's heading once, then a row of values for each chain. The
   heading row and the rows share one grid. Written for this site. */
.solutions { --sol-columns: 11rem minmax(0, 1fr) 3rem 4.5rem 6rem 8rem; --sol-areas: "title opening steps fp absent bar"; }
.sols__key { max-width: 44rem; margin-top: 22px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.key { display: inline-block; width: 0.8em; height: 0.8em; margin: 0 0.35em 0 0.5em; border-radius: 2px; vertical-align: -0.05em; }
.key--absent, .sol__bar-absent { background: var(--rel-assumes-lit); }
.key--other, .sol__bar-other { background: color-mix(in oklab, var(--rel-assumes-lit) 48%, var(--ground)); }
.sols__head, .sol { display: grid; grid-template-columns: var(--sol-columns); grid-template-areas: var(--sol-areas); column-gap: 20px; padding-left: 8px; padding-right: 8px; }
/* The headings stay at the top of the window while the rows scroll under them. */
.sols__head { position: sticky; top: 0; z-index: 2; align-items: end; margin-top: 14px; padding-top: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-strong); background: var(--ground); font-size: var(--fs-xs); font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.sols__h--title { grid-area: title; }
.sols__h--opening { grid-area: opening; }
.sols__h--steps { grid-area: steps; text-align: right; }
.sols__h--fp { grid-area: fp; text-align: right; }
.sols__h--absent { grid-area: absent; text-align: right; }
.sols__h--bar { grid-area: bar; }
.sols { list-style: none; margin: 0; padding: 0; }
/* The title is the link; it covers its whole row, so the row is one target. */
.sol { position: relative; row-gap: 4px; align-items: baseline; padding-top: 11px; padding-bottom: 11px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.sol:hover { background: var(--hover-wash); }
.sol__title { grid-area: title; font-family: var(--font-serif); font-size: 1.1875rem; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.sol__title::after { content: ""; position: absolute; inset: 0; }
.sol:hover .sol__title { text-decoration: underline; text-decoration-color: var(--thread); text-underline-offset: 4px; }
.sol__opening { grid-area: opening; max-width: 34rem; font-family: var(--font-serif); font-size: var(--fs-base); line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.sol__n { font-size: var(--fs-ui); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.sol__n.is-zero, .sol__n--steps { color: var(--ink-2); }
.sol__n--steps { grid-area: steps; }
.sol__n--fp { grid-area: fp; }
.sol__n--absent { grid-area: absent; }
/* One chain's formal statements of perturbed steps: false positives without the introduced
   number, other false positives, then the rest as the empty track. */
.sol__bar { grid-area: bar; align-self: start; margin-top: 9px; display: flex; height: 8px; border-radius: 2px; background: var(--rule-strong); overflow: hidden; }
.sol__bar-absent, .sol__bar-other { display: block; height: 100%; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.more__count { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }

.prose { max-width: 36rem; padding-top: 56px; padding-bottom: 24px; margin-left: max(24px, calc((100% - 68rem) / 2 + 24px)); margin-right: auto; padding-left: 0; padding-right: 24px; }
.prose h1 { font-family: var(--font-serif); font-size: var(--fs-display); font-weight: 400; line-height: var(--lh-tight); }
.prose h2 { margin-top: 40px; font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: 400; }
.prose p, .prose li, .prose dd { font-family: var(--font-serif); font-size: var(--fs-read); line-height: var(--lh-read); }
.prose p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose a:hover { color: var(--lit); }
.terms { margin: 14px 0 0; }
.terms dt { margin-top: 16px; font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600; }
.terms dd { margin: 2px 0 0; }

.foot { margin-top: 72px; padding: 24px 0 56px; border-top: 1px solid var(--rule-strong); font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); }
.foot p { max-width: 30rem; margin-bottom: 20px; }
.foot a:hover { color: var(--lit); }

/* ---------------------------------------------------------------- the reader
   .page, .bar, .spread, .left, .switch and .stepper follow Proof Reader's app.css. */

.page { height: 100dvh; display: flex; flex-direction: column; background: var(--desk); }
.bar { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 46px; padding: 0 16px; background: var(--desk); border-bottom: 1px solid var(--rule-strong); }
.bar__left, .bar__column, .bar__right { min-width: 0; display: flex; align-items: center; gap: 14px; }
.bar__column { justify-content: space-between; }
.bar .fam-lockup { gap: 8px; }
.bar .fam-lockup__home img { width: 24px; height: 24px; }
.bar__paper { min-width: 0; overflow: hidden; text-overflow: ellipsis; margin: 0; font-family: var(--font-serif); font-size: 1rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar__link { font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.bar__link:hover { color: var(--lit); }
.bar__link.is-off { color: var(--ink-2); opacity: 0.85; }
.stepper { flex: none; display: flex; align-items: center; gap: 14px; }

.spread { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--desk); }
.left { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; padding: 20px 14px 28px 20px; }
.right { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 20px 24px 40px; border-left: 1px solid var(--rule-strong); background: var(--ground); }
.left:focus-visible, .right:focus-visible { outline-offset: -2px; }

.sheet { max-width: 42rem; margin: 0 auto; padding: 36px 40px 44px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.sheet__title { font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: 400; font-variant-numeric: tabular-nums; }
.sheet__note { margin-top: 6px; max-width: 28rem; font-size: var(--fs-ui); color: var(--ink-2); }
/* The credit under the last step of a chain. */
.sheet__credit { max-width: 30rem; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.steps { list-style: none; margin: 22px -10px 0; padding: 0; }
.step__link { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 6px; padding: 7px 10px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.step__link:hover { background: var(--highlight-soft); }
.step.is-on > .step__link { background: var(--highlight); box-shadow: inset 3px 0 0 var(--thread); }
.step__no { padding-top: 0.32em; font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.step.is-on .step__no { color: var(--ink); }
.step__text { font-family: var(--font-serif); font-size: var(--fs-read); line-height: 1.55; overflow-wrap: anywhere; }
.step__count { grid-column: 2; font-size: var(--fs-sm); font-weight: 600; color: var(--rail-count); font-variant-numeric: tabular-nums; }
.step.is-on .step__count { color: var(--ink); }

.panel { max-width: 44rem; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.panel__title { font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: 400; font-variant-numeric: tabular-nums; }
.panel__from { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.switch { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 6px 0 0 -9px; font-size: var(--fs-ui); }
.switch__item { display: inline-flex; align-items: center; min-height: 30px; padding: 0 9px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.switch__item:hover { color: var(--ink); }
.switch__item[aria-current="true"], .switch__item[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--thread); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.vtext { margin-top: 14px; }
.vtext__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.vtext__body { max-width: 34rem; margin-top: 1px; font-family: var(--font-serif); font-size: var(--fs-read); line-height: 1.55; overflow-wrap: anywhere; }
mark.was { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--thread); text-decoration-thickness: 2px; text-underline-offset: 4px; }
mark.now { padding: 0 2px; border-radius: 2px; background: var(--highlight); color: var(--ink); }
/* Mathematics in step text, typeset by KaTeX. The size is Proof Reader's (.sheet__text .katex). */
.katex { font-size: 1.02em; text-rendering: auto; }
/* A formula and the punctuation written directly after it stay on one line. */
.glue { white-space: nowrap; }
/* A changed token inside a formula (step-math.js), in the colours of mark.was and mark.now. */
.katex .was { border-bottom: 2px solid var(--thread); }
.katex .now { border-radius: 2px; background: var(--highlight); box-shadow: 0 0 0 2px var(--highlight); }
.panel__sum { margin-top: 16px; font-size: var(--fs-ui); color: var(--ink-2); }
/* The step text of one autoformaliser's row, where it differs from the text at the top of the panel. */
.decl__step { margin-top: 8px; }
.decl__step .vtext__label { max-width: 29rem; font-weight: 400; }
.decl__step .vtext__body { font-size: var(--fs-base); }

/* One autoformaliser's formal statement. .decl__notes follows Proof Reader's .stepline__fid; the
   flagged colour is its --rel-assumes-lit, used there for a Lean statement that is not
   equivalent to the statement in the paper. */
.decl { margin-top: 14px; padding: 12px 16px 0; background: var(--sheet); box-shadow: var(--sheet-shadow); border-radius: var(--radius-card); overflow: hidden; }
.decl:not(:has(.decl__code)) { padding-bottom: 12px; }
.decl--fp { box-shadow: inset 3px 0 0 var(--rel-assumes-lit), var(--sheet-shadow); }
.decl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.decl__name { font-family: var(--font-serif); font-size: 1.1875rem; font-weight: 500; }
.verdict { font-size: var(--fs-ui); color: var(--ink-2); }
.verdict--fp { font-weight: 600; color: var(--rel-assumes-lit); }
.decl__tag { padding: 1px 7px; border: 1px solid currentColor; border-radius: var(--radius-s); font-size: var(--fs-xs); font-weight: 600; color: var(--rel-assumes-lit); }
.decl__notes { list-style: none; margin: 6px 0 0; padding: 0; font-size: var(--fs-ui); line-height: 1.42; color: var(--ink-2); }
.decl__notes li { max-width: 29rem; padding: 1px 0 1px 8px; border-left: 2px solid var(--rule-strong); text-wrap: pretty; }
.decl__notes li + li { margin-top: 3px; }
.decl__notes li[data-flagged] { border-left-color: var(--rel-assumes-lit); color: var(--ink); }
.decl__code { margin: 10px -16px 0; padding: 2px 16px; background: var(--code-well); overflow-x: auto; }
.decl__code:focus-visible { outline-offset: -2px; }

/* Lean: Proof Reader's .lean-code and .lk colours. */
.lean-code { display: block; padding: 6px 0; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-variant-ligatures: none; }
.lean-code .lk--keyword { color: var(--lean-keyword); font-weight: 700; }
.lean-code .lk--arrow { color: var(--lean-keyword); }
.lean-code .lk--type { color: var(--code-type); }
.lean-code .lk--comment { color: var(--code-comment); }
.lk--binder { color: var(--ink-2); font-style: italic; }
.lk--bracket { color: var(--ink-3); }
.lk.is-changed { border-radius: 2px; background: var(--highlight); box-shadow: 0 0 0 1px var(--highlight); }

/* Labels assigned by a language model: laid out as Proof Reader's .fid block. */
.fid { max-width: 30rem; margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--rule-strong); font-size: var(--fs-ui); line-height: 1.42; color: var(--ink-2); }
.fid:not([data-verdict="same"]) { border-left-color: var(--rel-assumes-lit); }
.fid p { margin: 0; }
.fid__head { display: flex; align-items: baseline; gap: 10px; }
.decl__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.fid__by { font-size: var(--fs-xs); color: var(--ink-2); }
.fid__verdict { font-weight: 600; color: var(--ink); }
.fid:not([data-verdict="same"]) .fid__verdict { color: var(--rel-assumes-lit); }
.fid .fid__text { margin-top: 2px; font-family: var(--font-serif); font-size: 0.9375rem; color: var(--ink); text-wrap: pretty; }
.fid .fid__why, .fid .fid__second { margin-top: 2px; font-size: var(--fs-sm); }
.fid__quoted { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }

/* The page that lists the labelled statements by label. */
.labels { padding-top: 56px; padding-bottom: 24px; }
.labels h1 { max-width: 40rem; font-family: var(--font-serif); font-size: var(--fs-display); font-weight: 400; line-height: var(--lh-tight); }
.labels__lede { max-width: 38rem; margin-top: 18px; font-family: var(--font-serif); font-size: var(--fs-read); line-height: 1.55; }
.labels__lede a:hover, .cases a:hover { color: var(--lit); }
.labels h2 { max-width: 40rem; margin-top: 48px; font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: 400; }
.labels__note { max-width: 34rem; margin-top: 6px; color: var(--ink-2); }
.group { margin-top: 26px; }
.group h3 { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600; }
.group__n { margin-left: 6px; font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cases { list-style: none; max-width: 48rem; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-2); }
.cases li { display: grid; grid-template-columns: 15rem minmax(0, 30rem); gap: 2px 24px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--rule); text-wrap: pretty; }
.cases a { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (min-width: 1500px) {
  .lean-code { font-size: 0.875rem; }
}

/* On a narrow screen there is one column: the formal statements are placed under the selected step. */
@media (max-width: 900px) {
  .page { height: auto; min-height: 100dvh; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 6px 12px; }
  .bar__column { grid-column: 1 / -1; grid-row: 2; }
  .bar__right .bar__link { display: none; }
  .spread { display: block; }
  .left { overflow: visible; padding: 0; }
  .sheet { max-width: none; padding: 24px 16px 32px; box-shadow: none; }
  .steps { margin: 18px -6px 0; }
  .step > .right { overflow: visible; margin: 6px 0 18px; padding: 12px 10px 16px; border-left: 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
  /* The chain and its first step take a line each; the bar and the three values share the third. */
  .solutions { --sol-columns: minmax(0, 1fr) 2.5rem 4.25rem 5.5rem; --sol-areas: "title title title title" "opening opening opening opening" "bar steps fp absent"; }
  .sols__head, .sol { column-gap: 12px; }
  .sols__head { grid-template-areas: "bar steps fp absent"; }
  .sols__h--title, .sols__h--opening { display: none; }
  .sol__n { margin-top: 3px; }
  .sol__bar { margin-top: 10px; }
  .cases li { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 44px 0 40px; }
  .prose { margin-left: 0; padding-left: 24px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .top__nav a { display: none; }
  .stepper { gap: 10px; }
  .bar .fam-lockup__name { font-size: 1rem; }
  /* A chain page's top row also holds the release toggle and theme switch, so
     on a phone the site name would shrink to three letters. Show the owner
     only; "All chains" on the row below leads back to the front page. */
  .bar .fam-lockup__rule, .bar .fam-lockup__site { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
