/* The formalization article reader (docs/ARTICLES.md, "Reader"): an article's pinned revision with its
   passages highlighted, beside a panel of passages and their Lean cards; and the view switch
   on the card list of an article that has one. Loaded after style.css and articles.css and built
   from their tokens only (--paper, --surface, --ink, --muted, --line, --line-strong, --accent,
   --serif, the --c-* status colours), so dark mode follows [data-theme] and
   prefers-color-scheme as every articles page does. Status is never colour alone: each status has
   its own stroke under the text (solid, dashed, dotted, double, wavy grey), an icon and a word
   in the peek, the panel and the legend. */

/* ---- the view switch (reader and card list) and the reader's header row ---- */
.atlr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; font-size: 12px; }
.atlr-switch { display: inline-flex; flex: none; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.atlr-switch a { padding: 4px 11px; color: var(--ink); background: var(--surface); text-decoration: none; font-size: 12px; line-height: 1.4; }
.atlr-switch a + a { border-left: 1px solid var(--line-strong); }
.atlr-switch a:hover { color: var(--accent); }
/* The surface colour on the accent: white on light, near black on the lighter dark-mode accent. */
.atlr-switch a[aria-current="page"] { background: var(--accent); color: var(--surface); font-weight: 600; }
.atlr-skip { position: absolute; left: 8px; top: -60px; z-index: 300; padding: 6px 12px; background: var(--surface); color: var(--accent); border: 2px solid var(--accent); border-radius: 6px; font-size: 13px; }
.atlr-skip:focus { top: 8px; }

/* ---- layout: the article column and the sticky panel ---- */
.atlr-body { --atlr-top: 96px; }
/* In-page jumps (Wikipedia's [1], ↑ and section links, #p-<hex>) stop below the sticky header;
   the script sets the measured height. */
:root:has(> body.atlr-body) { scroll-padding-top: 128px; }
/* Whatever a rule below lays out, hidden stays hidden. */
.atlr-body [hidden] { display: none !important; }
/* The article column takes the room: the panel is a column beside it, not half the page.
   Hidden ("Hide the passage list"), the article has the whole width; the script remembers
   which, per reader, in localStorage. */
.atlr-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 400px); align-items: start; }
.atlr-body.atlr-no-panel .atlr-layout { grid-template-columns: minmax(0, 1fr); }
.atlr-body.atlr-no-panel .atlr-panel { display: none; }
.atlr-main { min-width: 0; }
.atlr-head { max-width: 860px; margin: 0 auto; padding: 18px 28px 0; box-sizing: border-box; color: var(--ink); font-size: 15px; line-height: 1.55; }
.atlr-head a, .atlr-panel a, .atlr-foot a { color: var(--accent); text-underline-offset: 2px; }
.atlr-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 75ch; }
/* Shown only where there is a column to hide: on a phone the panel is the bottom sheet. */
.atlr-panel-toggle { margin-left: auto; font: inherit; font-size: 12px; color: var(--accent); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 11px; cursor: pointer; }
.atlr-panel-toggle:hover { border-color: var(--accent); }
/* The notice line heads the article column here, beside the sticky panel, not above it. */
.atlr-head > .articles-notice { margin: 0 0 10px; padding: 0 0 6px; background: none; text-align: left; }
/* The revision is contained (paint containment): nothing in it paints outside the article's box, it
   is a stacking context of its own, and it is the containing block of anything positioned in it.
   So an absolutely positioned element of the revision, whatever its z-index, never covers the
   header, the panel, the page head above it or the footer, and a wide table is cut at the
   article's edge instead of running under the panel. */
.wl-article-body.atlr-article { position: relative; contain: paint; max-width: 860px; min-height: 0; margin: 12px auto 0; padding: 20px 28px 60px; box-sizing: border-box; border-top: 1px solid var(--line); color: var(--ink); }
.atlr-panel { position: sticky; top: var(--atlr-top); height: calc(100vh - var(--atlr-top)); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 12px 18px 28px; border-left: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; }
.atlr-panel:focus { outline: none; }
.atlr-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.atlr-foot { max-width: none; }
/* The revision's images and media with their licences, folded in the footer. */
.atlr-images { margin: 6px 0; }
.atlr-images > summary { cursor: pointer; width: max-content; max-width: 100%; }
.atlr-images ul { margin: 4px 0 0; padding-left: 1.2em; }
.atlr-images li { overflow-wrap: anywhere; }

/* ---- the revision itself (MediaWiki parse HTML; its TemplateStyles stay inline) ---- */
.atlr-article .mw-parser-output { font-size: 16px; line-height: 1.65; }
.atlr-article { overflow-wrap: break-word; }
.atlr-article pre, .atlr-article .mw-highlight, .atlr-article .numblk { max-width: 100%; overflow-x: auto; }
.atlr-article h2 { font-size: 1.45rem; margin: 1.4em 0 .4em; padding-bottom: .15em; border-bottom: 1px solid var(--line); font-weight: 600; }
.atlr-article h3 { font-size: 1.15rem; margin: 1.2em 0 .3em; }
.atlr-article h4 { font-size: 1rem; margin: 1em 0 .3em; }
/* Links keep a thin underline, as on WikiLean's article pages: colour alone does not set them apart. */
.atlr-article a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.atlr-article a:hover { text-decoration-thickness: 2px; }
.atlr-article img { max-width: 100%; height: auto; }
.atlr-article figure { margin: .4em 0 1em; }
.atlr-article figure[typeof~="mw:File/Thumb"], .atlr-article figure[typeof~="mw:File/Frame"] { float: right; clear: right; max-width: min(300px, 45%); margin: .3em 0 .8em 1.2em; padding: 4px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 13px; line-height: 1.4; }
.atlr-article figure.mw-halign-left { float: left; clear: left; margin: .3em 1.2em .8em 0; }
.atlr-article figure.mw-halign-center, .atlr-article figure.mw-halign-none { float: none; margin-left: auto; margin-right: auto; }
.atlr-article figcaption { padding: 4px 2px 0; color: var(--muted); }
.atlr-article .atlr-img-alt { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; text-align: center; }
/* In the image's own box (the script gives it the image's width and aspect ratio). */
.atlr-article .atlr-img-alt.is-sized { box-sizing: border-box; max-width: 100%; min-height: 0; overflow: hidden; padding: 4px; }
.atlr-article img.atlr-img-off { display: none; }
.atlr-article table { border-collapse: collapse; }
.atlr-article table.wikitable { margin: 1em 0; border: 1px solid var(--line-strong); background: var(--surface); }
.atlr-article table.wikitable th, .atlr-article table.wikitable td { padding: .3em .5em; border: 1px solid var(--line-strong); }
.atlr-article table.wikitable th { background: var(--paper); }
.atlr-article .infobox, .atlr-article .sidebar { float: right; clear: right; max-width: 300px; margin: .3em 0 1em 1.2em; padding: 4px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 13px; line-height: 1.45; }
.atlr-article .hatnote, .atlr-article .dablink { padding-left: 1.6em; margin-bottom: .6em; font-style: italic; color: var(--muted); }
.atlr-article dd { margin-left: 1.6em; }
.atlr-article blockquote { margin: 1em 2em; }
.atlr-article .reflist, .atlr-article .references { font-size: 13.5px; }
/* The note or citation a [1] or ↑ link jumped to, as Wikipedia marks it. */
.atlr-article li:target, .atlr-article sup.reference:target, .atlr-article cite:target { background: var(--line); border-radius: 3px; }
/* Navigation boxes (rows of links to other articles) and empty template wrappers; never
   .noprint, which holds a passage's own [citation needed]. */
.atlr-article .navbox, .atlr-article .mw-empty-elt { display: none; }
.atlr-article .mw-editsection { display: none; }
/* Each formula is its MathML (the builder kept the TeX annotation, which MathML never draws), in a
   font with an OpenType MATH table: without one (Chromium's `math` family is Times on macOS)
   brackets and braces do not stretch, large operators stay small and primes sit too high.
   articles-reader.js draws what MathML Core leaves out (mathvariant, named spaces, the table
   attributes); bold operators and text, and menclose, are drawn here. */
.atlr-article math { font-family: "STIX Two Math", "Latin Modern Math", "Cambria Math", "Noto Sans Math", "Libertinus Math", math; }
.atlr-article mo[mathvariant^="bold"], .atlr-article mtext[mathvariant^="bold"] { font-weight: 700; }
.atlr-article menclose[notation~="left"] { border-left: .067em solid; padding-left: .17em; }
.atlr-article menclose[notation~="right"] { border-right: .067em solid; padding-right: .17em; }
.atlr-article menclose[notation~="box"] { border: .067em solid; padding: .1em .17em; }
.atlr-article menclose[notation~="updiagonalstrike"] { background: linear-gradient(to top right, transparent calc(50% - .04em), currentColor calc(50% - .04em), currentColor calc(50% + .04em), transparent calc(50% + .04em)); }
.atlr-article menclose[notation~="downdiagonalstrike"] { background: linear-gradient(to bottom right, transparent calc(50% - .04em), currentColor calc(50% - .04em), currentColor calc(50% + .04em), transparent calc(50% + .04em)); }
.atlr-article menclose[notation~="horizontalstrike"] { background: linear-gradient(transparent calc(50% - .04em), currentColor calc(50% - .04em), currentColor calc(50% + .04em), transparent calc(50% + .04em)); }
.atlr-article .mwe-math-element-block { display: block; text-align: center; margin: .7em 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.atlr-article .mwe-math-element-block:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.atlr-article math[display="block"] { font-size: 1.08em; }
/* An inline formula wider than the column (a phone) scrolls sideways in its own box, which the
   script marks (atlr-wide) and makes focusable; the page itself never scrolls sideways. */
.atlr-article .mwe-math-element-inline.atlr-wide { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; }
.atlr-article .mwe-math-element-inline.atlr-wide:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-theme="dark"] .atlr-article img.skin-invert, [data-theme="dark"] .atlr-article .skin-invert img { filter: invert(1) hue-rotate(180deg); }
/* Boxes whose TemplateStyles hard-code a light background (sister-project boxes, message boxes,
   quote boxes), beside style.css's infobox, sidebar, wikitable and navbox: on the dark surface. */
[data-theme="dark"] .atlr-article .portal-bar, [data-theme="dark"] .atlr-article .portal-bar-content, [data-theme="dark"] .atlr-article .portalbox, [data-theme="dark"] .atlr-article .portalbox-entry, [data-theme="dark"] .atlr-article .sister-bar, [data-theme="dark"] .atlr-article .sister-bar-header,
[data-theme="dark"] .atlr-article .side-box, [data-theme="dark"] .atlr-article .side-box-abovebelow,
[data-theme="dark"] .atlr-article .sistersitebox, [data-theme="dark"] .atlr-article .ambox,
[data-theme="dark"] .atlr-article .ombox, [data-theme="dark"] .atlr-article .tmbox, [data-theme="dark"] .atlr-article .quotebox,
[data-theme="dark"] .atlr-article .infobox-above, [data-theme="dark"] .atlr-article .infobox-header,
[data-theme="dark"] .atlr-article .sidebar-title, [data-theme="dark"] .atlr-article .sidebar-heading,
[data-theme="dark"] .atlr-article .sidebar-above, [data-theme="dark"] .atlr-article .sidebar-below {
  background-color: var(--surface) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
[data-theme="dark"] .atlr-article .hatnote { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .atlr-article img.skin-invert { filter: invert(1) hue-rotate(180deg); }
}

/* ---- the highlights: WikiLean's status wash, and the plane's stroke under every line ---- */
mark.atl { color: var(--ink); background: var(--st-bg); border-radius: 1px; padding: 0; cursor: pointer;
  border-bottom: 1.5px var(--st-line) var(--st); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .12s ease, filter .12s ease; }
mark.atl[data-status="partial"] { border-bottom-width: 2px; }
/* A passage's text is ink on its wash, even in a quiet hatnote or caption; link text keeps its link colour. */
.atlr-article a mark.atl { color: inherit; }
mark.atl[data-status="not_formalized"] { border-bottom-width: 3px; }
/* A passage with no status gets no highlight until it is read: the builder refuses a mark on one,
   and a mark from an older store reads as the plain text around it. */
mark.atl[data-status="unresolved"] { background: none; border-bottom: 0; text-decoration: none; color: inherit; cursor: inherit; }
/* A display formula inside a passage takes the wash as a block. */
mark.atl .mwe-math-element-block { background: var(--st-bg); border-radius: 3px; padding: 2px 6px; }
mark.atl.atl-first { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
mark.atl.atl-last { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
/* In dark mode a link's blue on a wash falls under 4.5:1; inside a passage it is lighter. */
[data-theme="dark"] .atlr-article a mark.atl, [data-theme="dark"] .atlr-article mark.atl a { color: #a9c6f2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .atlr-article a mark.atl, :root:not([data-theme]) .atlr-article mark.atl a { color: #a9c6f2; }
}
mark.atl.is-hover { filter: brightness(.93); }
[data-theme="dark"] mark.atl.is-hover { filter: brightness(1.18); }
/* Selected: the wash at three times its strength (the margin bar marks its extent; an outline
   around every run would box each formula and link apart). */
mark.atl.is-sel { background-image: linear-gradient(var(--st-bg), var(--st-bg)), linear-gradient(var(--st-bg), var(--st-bg)); }
mark.atl.is-sel .mwe-math-element-block { background-image: linear-gradient(var(--st-bg), var(--st-bg)); }
mark.atl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
mark.atl[id] { scroll-margin-top: 16px; }
html:not(.atlr-js) mark.atl:target { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A passage a filter leaves out reads as plain text. */
mark.atl.is-off, mark.atl.is-off .mwe-math-element-block { background: none; border-bottom-color: transparent; text-decoration: none; cursor: auto; outline: none; filter: none; }
/* "Dim other text": the prose outside the passages turns quiet, the passages stay ink. */
.atlr-dim .atlr-article .mw-parser-output { color: var(--muted); }
.atlr-dim .atlr-article mark.atl:not(.is-off) { color: var(--ink); }
.atlr-dim .atlr-article img { opacity: .6; }
/* The viewer's margin bar: the selected passage, first line to last, in the article's left padding. */
.atlr-mbar { position: absolute; left: 10px; width: 4px; border-radius: 2px; background: var(--accent); pointer-events: none; }

/* ---- the hover peek (desktop pointer only) ---- */
.atlr-peek { position: fixed; z-index: 150; max-width: min(560px, calc(100vw - 16px)); box-sizing: border-box; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(40, 30, 10, .16); font: 12.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.atlr-peek code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.atlr-peek .atlr-peek-st { font-weight: 700; color: var(--st-ink); }

/* ---- the panel: nav strip, index, selected passage ---- */
.atlr-sheet-head { display: none; }
.atlr-nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -12px -18px 10px; padding: 8px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.atlr-back, .atlr-stepbtn, .atlr-copy, .atlr-more, .atlr-close { font: inherit; font-size: 13px; color: var(--accent); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.atlr-back:hover, .atlr-stepbtn:hover, .atlr-copy:hover, .atlr-more:hover { border-color: var(--accent); }
.atlr-step { display: inline-flex; align-items: center; gap: 6px; }
.atlr-stepbtn { min-width: 32px; padding: 2px 8px; font-size: 16px; line-height: 1.2; }
.atlr-stepbtn:disabled { opacity: .45; cursor: default; }
.atlr-pos { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.atlr-h2 { margin: 0 0 4px; }
.atlr-missing { margin: 4px 0 8px; padding: 6px 10px; border: 1.5px dashed var(--c-partial); border-radius: 6px; color: var(--c-partial-ink); font-size: 13px; }
.atlr-toc { margin: 8px 0 0; }
.atlr-groups, .atlr-rows { list-style: none; margin: 0; padding: 0; }
.atlr-group + .atlr-group { margin-top: 8px; }
.atlr-group-h { margin: 8px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* A compact row: the swatch, then the passage's first words over two lines and its
   lead declaration under them. The words are cut at the end of a line, never in the
   middle of a word, and the row's title carries them whole. */
.atlr-row { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 1px 8px; align-items: start; padding: 5px 6px; border-radius: 4px; color: var(--ink) !important; text-decoration: none !important; }
.atlr-row:hover, .atlr-row.is-hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.atlr-swatch { grid-row: 1 / span 2; margin-top: 3px; width: 12px; height: 12px; border-radius: 2px; background: var(--st-bg); border: 1.5px var(--st-line) var(--st); box-sizing: border-box; }
.atlr-swatch[data-status="not_formalized"] { border-width: 3px; }
.atlr-swatch[data-status="unresolved"] { border: 1.5px dashed var(--c-untouched); }
.atlr-row-text { font-family: var(--serif); font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: break-word; }
.atlr-row-text .articles-math-display { display: inline; }
.atlr-row-lead { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11.5px; }
.atlr-row-lead code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--ink); }
.atlr-row-note { color: var(--c-partial-ink); }
.atlr-keys { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.atlr-keys kbd { display: inline-block; min-width: 1.2em; padding: 0 4px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.atlr-panel .articles-legend-rel { margin-top: 10px; }

/* The selected passage: the card list's block, under a 3 px accent bar, its text clamped. */
.atlr-pp.articles-passage { margin: 0; padding: 10px 14px 12px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 6px; scroll-margin-top: 0; }
.atlr-pp.is-subject { box-shadow: none; }
.atlr-pp .articles-p-h:focus { outline: none; }
.atlr-pp .articles-p-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.atlr-clamp:not(.is-open) .articles-quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.atlr-clamp:not(.is-open) .articles-math-display { display: inline; }
/* Clamped, the panel shows the passage itself; the sentence around it (grey) comes with "Show
   all", and the article shows it around the highlight. */
.atlr-clamp:not(.is-open) .articles-affix { display: none; }
.atlr-more { margin: 2px 0 0; padding: 1px 8px; font-size: 12px; }
.atlr-related { margin: 12px 0 0; }
.atlr-related > summary { cursor: pointer; width: max-content; max-width: 100%; }
.atlr-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.atlr-copy { padding: 1px 8px; font-size: 12.5px; }
.atlr-copy-msg { color: var(--muted); font-size: 12px; }
.atlr-fab { display: none; }

/* ---- phone and tablet: one column, the panel a bottom sheet (only with the script) ---- */
@media (max-width: 999px) {
  .atlr-layout { display: block; }
  .atlr-head { padding: 14px 16px 0; }
  /* Whatever the revision holds that is wider than a phone scrolls in its own box (tables, code,
     formulas); anything else is clipped, so the page never scrolls sideways. */
  .wl-article-body.atlr-article { padding: 14px 16px 48px; overflow-x: clip; }
  .atlr-mbar { left: 4px; }
  .atlr-article figure[typeof~="mw:File/Thumb"], .atlr-article figure[typeof~="mw:File/Frame"], .atlr-article .infobox, .atlr-article .sidebar { float: none; max-width: 100%; margin: .6em 0; }
  .atlr-article table { display: block; max-width: 100%; overflow-x: auto; }
  .atlr-panel { position: static; height: auto; overflow: visible; border-left: 0; border-top: 1px solid var(--line-strong); padding: 12px 16px 24px; }
  /* The panel is the bottom sheet here, so there is no column to hide. */
  .atlr-panel-toggle { display: none; }
  .atlr-body.atlr-no-panel .atlr-panel { display: block; }
  .atlr-js .atlr-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 140; height: 46vh; overflow-y: auto; padding: 0 16px 20px; border-top: 1px solid var(--line-strong); border-radius: 12px 12px 0 0; box-shadow: 0 -6px 18px rgba(40, 30, 10, .18); transform: translateY(105%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  .atlr-js.atlr-sheet-open .atlr-panel { transform: none; visibility: visible; transition: transform .2s ease; }
  /* The sheet's top strip is one row: the handle over it, the nav (or the index heading) and ✕. */
  .atlr-js .atlr-sheet-head { position: sticky; top: 0; z-index: 3; display: block; height: 0; margin: 0 -16px; }
  .atlr-js .atlr-handle { position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-strong); }
  .atlr-js .atlr-close { position: absolute; right: 10px; top: 13px; padding: 0 9px; font-size: 14px; line-height: 24px; }
  .atlr-js .atlr-nav { top: 0; margin: 0 -16px 8px; padding: 14px 54px 6px 16px; }
  .atlr-js .atlr-index { padding-top: 14px; }
  .atlr-js .atlr-index .atlr-h2 { padding-right: 44px; }
  /* The passage's text is in the article just above the sheet: the sheet goes straight to its status and cards. */
  .atlr-js .atlr-pp.atlr-in-text .atlr-clamp, .atlr-js .atlr-pp.atlr-in-text .atlr-more { display: none; }
  /* With the sheet open the header keeps its first row; the chips come back when it closes. */
  .atlr-js.atlr-sheet-open .atlr-body .atlr-bar { display: none; }
  .atlr-js .atlr-fab { position: fixed; right: 16px; bottom: 16px; z-index: 130; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--surface); font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 2px 8px rgba(40, 30, 10, .25); cursor: pointer; }
  .atlr-js .atlr-fab[hidden], .atlr-js.atlr-sheet-open .atlr-fab { display: none; }
  .atlr-peek { display: none; }
}
@media (max-width: 599px) {
  .atlr-js .atlr-panel { height: 52vh; }
  /* A short header on a phone: the site name and its links (the breadcrumb under it names the
     articles, and search is on the articles page). */
  .atlr-body .wl-header .wl-sep, .atlr-body .wl-header .articles-home, .atlr-body .wl-header .wl-searchbox { display: none; }
  .atlr-body .wl-title { align-items: center; }
  .atlr-body .wl-nav { align-items: center; }
  .atlr-article .mw-parser-output { font-size: 15.5px; }
  .atlr-row-lead { max-width: 9em; }
}
@media (prefers-reduced-motion: reduce) {
  mark.atl, .atlr-js .atlr-panel { transition: none; }
}
@media (prefers-contrast: more) {
  .atlr-panel, .atlr-pp.articles-passage, .atlr-switch { border-color: var(--ink); }
  .atlr-hint, .atlr-keys, .atlr-row-lead, .atlr-pos { color: var(--ink); }
}
