/* edu.fatehi.dev, the Atlas (design/site-candidates/edu-3-atlas, chosen 2026-10-24; the map reworked 2026-11-04): the
   family's tokens (main-site shared.css) and the atlas's own parts. The map is a night chart: indigo land rising in
   contour bands, lit places in sodium, links in glacier. The home page is the map alone (pan, zoom, details by zoom,
   cards, routes: atlas.js); every topic page, written or under construction, has one layout: the text, and on the right
   one column in one frame, sticky beside the text up to "How it works", then Try it across the whole page (the place's
   own content, or the path's panel: paths.js, styled in edu.css). The code cells and the tool window are ide.css's;
   Python's controls, the topic links' cards and the path panel edu.css's. Sizes, spacing and buttons: one system, the
   tokens below (README, "The look"). */
:root {
  --night: var(--c0B1021);      /* ground and sea */
  --dusk: var(--c121833);       /* raised strips, low land */
  --rule: var(--c27304F);       /* hairlines */
  --moon: var(--cE4E7F0);       /* text */
  --haze: var(--c97A0BE);       /* secondary text */
  --indigo: var(--c33296E);
  --glacier: var(--c2A8597);
  --sodium: var(--cE9D49C);     /* lit places, the way, focus */
  --link: var(--c9FD6DF);
  --serif: 'Literata', 'Iowan Old Style', Georgia, serif;
  --sans: 'Plain Zero', 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'DejaVu Sans Mono', monospace;
  --t-sm: 0.875rem;
  --t-md: 1.09375rem;
  --t-lg: 1.367rem;
  --t-xl: 1.709rem;
  --t-2xl: 2.136rem;
  --gutter: clamp(16px, 4vw, 72px);
  --page-max: 1480px;    /* the header and every page share this width, so their edges line up */
  --measure: 52rem;     /* the reading column: one width for text, headings, formulas, boxes and figures (about 80 characters of the text's serif; 42rem until 2026-11-05, Arash: "a bit wider"; in rem so every font gives the same edge) */
  --side-w: 320px;
  --strip-h: 56px;       /* the header, sticky on a wide screen; its hairline included */
  --side-top: calc(var(--strip-h) + var(--s5));   /* the column's place under the header: it starts there and stays there */
  --col-gap: clamp(32px, 4vw, 64px);   /* between the text and the column */
  --tw-room: max(var(--tw-h, 0px), 41px);   /* the closed tool window's room at the bottom (its 40 px bar and edge; kept on pages without cells too) */
  /* one spacing scale for the whole site */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 64px;
  /* controls: one height, one radius, one border, one type size */
  --ctl: 40px;           /* a button, a field */
  --ctl-sm: 32px;        /* a compact one (chips, a segmented toggle, a button in a list) */
  --radius: 6px;
  --radius-lg: 8px;      /* frames: the column, the card, the cells */
  --frame: var(--c333D63);      /* a frame's border */
  --edge: var(--c48527A);       /* a button's border */
  --edge-hi: var(--c6E78A0);    /* a button's border, pointed at */
  --hover: var(--cFFFFFF0D);
  --press: var(--cFFFFFF17);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: calc(var(--strip-h) + var(--s5)); scrollbar-gutter: stable; }   /* a jump to a section lands below the sticky header; the scrollbar's room is kept on every page that scrolls (the map's keeps it in its header), so the header does not move from page to page */
body {
  margin: 0; background: var(--night); color: var(--moon);
  font-family: var(--serif); font-size: var(--t-md); line-height: 1.6;
  font-weight: 380; font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-x: hidden;
}
::selection { background: var(--cE9D49C55); color: var(--cFFFFFF); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { font-weight: 330; line-height: 1.15; margin: 0; letter-spacing: 0; }
h2 { font-size: var(--t-2xl); }
p { margin: 0 0 0.8em; }
.wrap { padding-inline: var(--gutter); max-width: var(--page-max); margin-inline: auto; }
.sr { position: absolute; inset-inline-start: -9999px; }
a.sr:focus { inset-inline-start: 16px; top: 8px; z-index: 50; background: var(--dusk); padding: 6px 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.quiet { color: var(--haze); }
.small { font-family: var(--sans); font-size: 0.86rem; }
math { font-family: 'Literata', serif; font-size: 1.08em; }
/* a superscript or subscript (R², 10⁻¹⁵, x₂) keeps the line's height: every line of a paragraph the same distance apart */
sup, sub { position: relative; font-size: 0.72em; line-height: 0; vertical-align: baseline; }
sup { top: -0.48em; }
sub { top: 0.26em; }
.by-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .by-mouse { display: none; } .by-touch { display: inline; } }

/* strip: the family's wordmark (to fatehi.dev), then this site with its variable on the main page's figure; on a topic
   page that follows a path, the path in the middle once the column has scrolled away (paths.js); the navigation. Sticky
   on a wide screen, as wide as the page (its edges line up with the text and the column) */
.strip { position: relative; z-index: 20; background: var(--night); box-shadow: inset 0 -1px 0 var(--rule); }   /* the hairline inside the header's 56 px */
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); min-height: var(--strip-h); flex-wrap: wrap; padding-block: var(--s2); }
.brand { display: flex; align-items: center; gap: var(--s3); margin: 0; flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font-size: 1.15rem; font-weight: 420; }
.wordmark svg { width: 28px; height: 28px; flex: none; color: var(--sodium); }
.site { color: var(--moon); text-decoration: none; font-size: 1.15rem; font-weight: 420; padding-inline-start: var(--s3); border-inline-start: 1px solid var(--rule); line-height: 1.3; }
.site i { color: var(--sodium); font-weight: 400; }
.site sub { font-size: 0.62em; top: 0.3em; color: var(--sodium); margin-inline-end: 6px; }
.wordmark:hover, .site:hover { color: var(--cFFFFFF); }
.strip nav { flex: none; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s2); font-family: var(--sans); font-size: 0.95rem; }
/* a link: its words, 12 px on each side (none after the last, whose words end on the page's edge); the current page's
   mark (and, pointed at, a quieter one) under its words on the header's edge; the focus ring round its words */
.strip nav a { --mx: var(--s3); position: relative; display: inline-flex; align-items: center; min-height: 40px; padding-inline: var(--mx); color: var(--haze); text-decoration: none; transition: color 0.15s; }
.strip nav li:last-child a, .strip nav li:nth-last-child(2):has(+ .th) a { padding-inline-end: 0; --mr: 0px; }
.strip nav a::after { content: ''; position: absolute; inset-inline: var(--mx) var(--mr, var(--mx)); inset-block-end: 0; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background-color 0.15s; }
.strip nav a:focus-visible { outline: none; }
.strip nav a:focus-visible::before { content: ''; position: absolute; inset-block: 50%; inset-inline: calc(var(--mx) - 6px) calc(var(--mr, var(--mx)) - 6px); height: 32px; transform: translateY(-50%); border: 2px solid var(--sodium); border-radius: var(--radius); }
.strip nav a:hover { color: var(--moon); }
.strip nav a[aria-current="page"] { color: var(--moon); }
.strip nav a[aria-current="page"]::after { background: var(--sodium); }
.strip-path { display: none; }
@media (min-width: 721px) {
  .strip { position: sticky; top: 0; height: var(--strip-h); }
  .strip .wrap { flex-wrap: nowrap; height: 100%; min-height: 0; padding-block: 0; }
  .strip nav a { min-height: var(--strip-h); }   /* the current page's mark sits on the header's edge */
  .strip nav a:hover:not([aria-current])::after { background: var(--c3A4466); }
  /* the path, once the column is out of view: its name, the step and its name, Previous and Next; as wide as it needs */
  html.ps-beside.sp-on .strip-path:not([hidden]) { display: flex; }
  .strip-path { flex: 0 1 auto; min-width: 0; align-items: center; height: 40px; padding: 0 var(--s1) 0 var(--s4); border: 1px solid var(--frame); border-radius: 999px; background: var(--c0D1329); font-family: var(--sans); font-size: 0.875rem; line-height: 1.2; white-space: nowrap; animation: sp-in 0.18s ease-out; }
  .sp-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-inline-end: var(--s3); color: var(--haze); text-decoration: none; }
  .sp-name:hover { color: var(--sodium); }
  .sp-step { flex: 0 1 auto; min-width: 0; display: flex; align-items: baseline; gap: var(--s2); padding-inline: var(--s3) var(--s2); border-inline-start: 1px solid var(--rule); }
  .sp-k { flex: none; color: var(--haze); font-variant-numeric: lining-nums tabular-nums; }
  .sp-here { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--moon); font-weight: 500; }
  .sp-here::before { content: '\00b7'; margin-inline-end: var(--s2); color: var(--c59638A); font-weight: 400; }
  .sp-nav { flex: none; display: flex; gap: 2px; padding-inline-start: var(--s1); }
  .strip-path .ibtn { width: 32px; height: 32px; border-radius: 999px; }
  .strip-path .sp-next { color: var(--sodium); }
}
@media (min-width: 721px) and (max-width: 1150px) {   /* the step alone where the header has no room for the path's name */
  .sp-name { display: none; }
  .sp-step { border: 0; padding-inline-start: 0; }
}
@keyframes sp-in { from { opacity: 0; transform: translateY(-4px); } }

/* small shared parts */
.pno { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--haze); margin: 0 0 var(--s2); }
.pno a { color: inherit; text-decoration-color: var(--c97A0BE66); }
.pno a:hover { color: var(--moon); }
.lede { font-family: var(--sans); font-size: 1.06rem; line-height: 1.55; color: var(--haze); max-width: 56ch; text-wrap: balance; text-wrap: pretty; }   /* no word alone on the last line */
.lampic { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.3px dashed var(--c8E97B6); flex: none; vertical-align: 0.05em; margin-inline-end: 8px; }
.lampic.on, .rung.here .lampic { border: 0; background: var(--cF5E6BC); box-shadow: 0 0 0 3px var(--cE9D49C22), 0 0 10px 2px var(--cE9D49C66); }
.ol { color: var(--haze); font-size: 0.86em; }
/* a count in the interface (step 25 of 42, 0 of 42 read): the serif's lining figures, as the rails' numerals (the sans
   has a slashed zero) */
.num { font-family: var(--serif); font-weight: 560; font-size: 1em; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.ucn { display: inline-block; font-family: var(--sans); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.02em; color: var(--c8E97B6); border: 1px dashed var(--c4A5578); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
/* a small label above a group (the column's sections, the card's lists, the panel): one style everywhere */
.kicker { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }

/* ---- buttons: one system. A button is 40 px tall (32 px where compact), 6 px round, in the sans at 500 with a 16 px
   side (12 px compact); its edge lightens when pointed at, its ground darkens a step when pressed; the focus ring is
   the site's sodium, 2 px off its edge. .pri is the one action that moves the reader on (Open, Next, Start, Follow):
   a lit lamp, sodium filled, night text. .ibtn is a square icon button (32 px; 40 px for a finger). ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--ctl); padding: 0 var(--s4); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--cFFFFFF06); box-shadow: inset 0 1px 0 var(--cFFFFFF0A); color: var(--moon); text-decoration: none; font-family: var(--sans); font-size: 0.875rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.005em; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.btn:hover { border-color: var(--edge-hi); background: var(--hover); color: var(--cFFFFFF); }
.btn:active { background: var(--press); box-shadow: none; }
.btn:focus-visible { outline-offset: 2px; }
.btn.pri { border-color: var(--sodium); background: var(--sodium); box-shadow: 0 0 0 0 var(--cE9D49C00), inset 0 1px 0 var(--cFFFFFF59); color: var(--c0B1021); font-weight: 600; }
.btn.pri:hover { border-color: var(--cF6E8C3); background: var(--cF6E8C3); box-shadow: 0 0 18px var(--cE9D49C40), inset 0 1px 0 var(--cFFFFFF73); color: var(--c0B1021); }
.btn.pri:active { border-color: var(--cD8C189); background: var(--cD8C189); box-shadow: none; }
.btn.sm { min-height: var(--ctl-sm); padding: 0 var(--s3); font-size: 0.8125rem; }
.btn .arr { font-size: 1.05em; line-height: 1; transition: transform 0.15s; }
.btn:hover .arr { transform: translateX(2px); }
.ibtn { display: inline-grid; place-items: center; flex: none; width: var(--ctl-sm); height: var(--ctl-sm); padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--haze); text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.ibtn:hover { background: var(--hover); color: var(--moon); }
.ibtn:active { background: var(--press); }
.ibtn:focus-visible { outline-offset: 0; }
.ibtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .ibtn { width: var(--ctl); height: var(--ctl); } }
/* a link that acts (Forget, Show the route, All steps): the link's colour and underline, a finger's height */
.textbtn { display: inline-flex; align-items: center; min-height: var(--ctl-sm); padding: 0; margin-inline-start: var(--s2); border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 0.18em; }
.textbtn:hover { color: var(--moon); text-decoration-color: currentColor; }
.textbtn:disabled { color: var(--haze); text-decoration: none; cursor: default; opacity: 0.6; }
.textbtn[data-arm] { color: var(--cD9836B); }
.readkept { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); font-family: var(--sans); font-size: 0.86rem; color: var(--haze); margin: var(--s6) 0 0; }
.readkept .textbtn { margin: 0; }
@media (prefers-reduced-motion: reduce) { .btn, .ibtn, .btn .arr { transition: none; } }
/* a tick: read (sodium, checked) or not yet (a ring); its .tick-sr says so to screen readers */
.tick { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.3px solid var(--cC8CEE3); margin-inline-end: 8px; }
.tick.read { background: var(--sodium); border-color: var(--sodium); box-shadow: 0 0 8px var(--cE9D49C66); }
.tick.read::after { content: ''; width: 6px; height: 3.5px; border: solid var(--c0B1021); border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
.phead { padding-block: var(--s6) var(--s6); }
.phead h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 300; font-variation-settings: 'opsz' 72; margin-block-end: var(--s3); }

/* ================= the map (home): the whole window under the strip ================= */
body.p-home { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--c0A0F1F); }
/* the map's page cannot scroll: it keeps no room for a scrollbar, the map reaches the window's edge; the header keeps
   that room (--sbw, measured by atlas.js) as padding, and the controls their edges, so that nothing moves from page to
   page */
html:has(> body.p-home) { scrollbar-gutter: auto; }
.sbw-probe { position: absolute; top: -200px; left: 0; width: 100px; height: 100px; overflow: scroll; visibility: hidden; }
.p-home .strip { padding-inline-end: var(--sbw, 0px); }
.home { position: relative; flex: 1 1 auto; min-height: 0; }
.atlas { position: absolute; inset: 0; overflow: hidden; background: var(--c0A0F1F); }
.world { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; font-family: var(--sans); -webkit-user-select: none; user-select: none; --u: 1; }
.world.dragging { cursor: grabbing; }
.world .sea { fill: var(--c0A0F1F); }
.world .world-bg { display: none; pointer-events: none; }   /* the phone's terrain image; a wide screen draws the terrain itself */
.world .land, .world .band, .world .water path, .world .rc, .world .road, .world .proute .pr-case, .world .proute .pr-line, .world .proute .pr-cross { vector-effect: non-scaling-stroke; }
.map .b0 { fill: var(--c161D3D); } .map .b1 { fill: var(--c1B2147); } .map .b2 { fill: var(--c212551); } .map .b3 { fill: var(--c272A5C); } .map .b4 { fill: var(--c2E2F67); } .map .b5 { fill: var(--c363572); }
/* What the map does not show is not drawn at all (2026-11-29, the map made lighter: three quarters of its shapes, the
   names and lines of other scales, the roads, the rings and the outlines, were drawn at opacity 0, laid out and styled on
   every frame): display none until shown; fading in by @starting-style, out by the discrete transition of display. */
.world .rc { display: none; fill: none; stroke: var(--sodium); stroke-width: 1.6; stroke-opacity: 0; transition: stroke-opacity 0.25s, display 0.25s allow-discrete; pointer-events: none; }
.world .rc.on { display: inline; stroke-opacity: 0.5; }
.world .rc.sel { display: inline; stroke-opacity: 0.95; stroke-width: 2.4; }
@starting-style { .world .rc.on, .world .rc.sel, .world .zc.sel { stroke-opacity: 0; } }   /* the chosen land (atlas.js: choose) */
.world .zc { display: none; fill: none; stroke: var(--sodium); stroke-width: 1.6; stroke-opacity: 0; vector-effect: non-scaling-stroke; pointer-events: none; transition: stroke-opacity 0.25s, display 0.25s allow-discrete; }
.world .zc.sel { display: inline; stroke-opacity: 0.75; }
/* every mark keeps its size on the screen: its group is scaled by --u (atlas.js), around the place */
.world .pk { transform: scale(var(--u)); }
/* the places: lamps (written), rings (under construction) */
.world .pl { cursor: pointer; }
.world .pl:focus-visible { outline: none; }
.world .glow { fill: url(#glow); pointer-events: none; }
.world .hit { fill: transparent; }
.world .dot { fill: var(--c0B1021); stroke: var(--cC8CEE3); stroke-width: 1.3; stroke-dasharray: 2.2 1.6; }
.world .pl.w .dot { fill: var(--cF7E9C2); stroke: none; }
.world .ring { display: none; fill: none; stroke: var(--sodium); stroke-width: 1.5; opacity: 0; transition: opacity 0.15s, display 0.15s allow-discrete; }
.world .pl:hover .ring, .world .pl.hov .ring, .world .pl.sel .ring, .world .pl:focus-visible .ring { display: inline; opacity: 1; }
@starting-style { .world .pl:hover .ring, .world .pl.hov .ring, .world .pl.sel .ring, .world .pl:focus-visible .ring { opacity: 0; } }
.world .pl.sel .ring { stroke-width: 2.2; }
/* names and lines: shown from the scale the build worked out for each (n<i> against zn<i>, d<i> against zd<i>) */
.world .lbl, .world .desc { display: none; paint-order: stroke; stroke: var(--c0A0F1F); stroke-linejoin: round; opacity: 0; transition: opacity 0.3s, display 0.3s allow-discrete; pointer-events: none; }
.world .lbl { font-size: 13.5px; fill: var(--cC9CEE2); stroke-width: 3.4px; font-weight: 400; }
.world .pl.w .lbl { fill: var(--cF3E4BA); font-weight: 600; }
.world .desc { font-size: 11.5px; fill: var(--cA9B1CC); stroke-width: 3px; }
.world.zn0 .lbl.n0, .world.zn1 .lbl.n1, .world.zn2 .lbl.n2, .world.zn3 .lbl.n3, .world.zn4 .lbl.n4, .world.zn5 .lbl.n5,
.world.zd0 .desc.d0, .world.zd1 .desc.d1, .world.zd2 .desc.d2, .world.zd3 .desc.d3 { display: inline; opacity: 1; pointer-events: auto; }
.world .pl.hov .lbl, .world .pl.sel .lbl, .world .pl.nb .lbl, .world .pl:focus-visible .lbl { display: inline; opacity: 1; }
@starting-style {
  .world.zn0 .lbl.n0, .world.zn1 .lbl.n1, .world.zn2 .lbl.n2, .world.zn3 .lbl.n3, .world.zn4 .lbl.n4, .world.zn5 .lbl.n5,
  .world.zd0 .desc.d0, .world.zd1 .desc.d1, .world.zd2 .desc.d2, .world.zd3 .desc.d3,
  .world .pl.hov .lbl, .world .pl.sel .lbl, .world .pl.nb .lbl, .world .pl:focus-visible .lbl { opacity: 0; }
}
.world .pl.hov .lbl, .world .pl.sel .lbl, .world .pl:focus-visible .lbl { fill: var(--cFFFFFF); }
.world .pl.nb .lbl { fill-opacity: 0.85; }
/* a name or line under the card or a control (or within 8 px of it) steps aside, rather than show through or be cut */
.world .lbl.occ, .world .desc.occ, .world .rn.occ, .world .rn.cut { opacity: 0 !important; pointer-events: none !important; }   /* .cut: a land's name the window's edge would cut */
/* a place pointed at or chosen: its roads (sodium from what it rests on, glacier dashes to what leads from it) */
.world .road { display: none; fill: none; stroke-width: 1.6; opacity: 0; transition: opacity 0.2s, display 0.2s allow-discrete; pointer-events: none; }
.world .road.rin { display: inline; stroke: var(--sodium); opacity: 0.9; }
.world .road.rout { display: inline; stroke: var(--link); stroke-dasharray: 5 4; opacity: 0.8; }
@starting-style { .world .road.rin, .world .road.rout { opacity: 0; } }
.world.lit .pl:not(.hov):not(.sel):not(.nb) .dot, .world.lit .pl:not(.hov):not(.sel):not(.nb) .glow { opacity: 0.55; }
/* the lands' and islands' names: far out only */
.world .rn { cursor: pointer; transition: opacity 0.35s; }
.world:not(.zfar) .rn { opacity: 0; pointer-events: none; }
.atlas.carded .world.zn1 .rn { opacity: 0; pointer-events: none; }   /* close enough for the places' names, with a card open: the card names the region */
.world .rhit { fill: transparent; }
.world .rname { font-family: var(--serif); font-size: 19px; letter-spacing: 0.26em; text-anchor: middle; fill: var(--cC4CAE2); fill-opacity: 0.6; paint-order: stroke; stroke: var(--c0A0F1F); stroke-opacity: 0.5; stroke-width: 3px; }
.world .rn.tight .rname { letter-spacing: 0.12em; }   /* where its land has no room for it spaced out (atlas.js) */
.world .rn.small .rname { font-size: 15px; }
.world .rn:hover .rname, .world .rn:focus-visible .rname { fill: var(--cFFFFFF); fill-opacity: 0.9; }
.world .rn:focus-visible { outline: none; }
.world .rn:focus-visible .rhit { stroke: var(--sodium); stroke-width: 1.5; rx: 4px; }
/* a path's route: shown on demand, with numbered stops (filled once read, dashed while under construction) */
.world .proute, .world .pstops { display: none; }
.world .proute.on, .world .pstops.on { display: inline; }
/* a route in legs (build.mjs, routeLegs): a walk on one land or island solid, a crossing over the sea a light dashed
   arc, so that a route that goes back and forth between the lands and an island still reads */
.proute path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.proute .pr-case { stroke: var(--c0B1021); stroke-opacity: 0.75; stroke-width: 7; }
.proute .pr-line { stroke: var(--sodium); stroke-width: 3; }
.proute .pr-cross { stroke: var(--cE9D49C); stroke-opacity: 0.6; stroke-width: 1.6; stroke-dasharray: 1 6; }
.proute .pr-flow { stroke: var(--cFFF6DA); stroke-width: calc(3px * var(--u, 1)); stroke-dasharray: 0.006 0.024; opacity: 0; }
.pr-stop { pointer-events: none; }
.pr-stop circle { fill: var(--c0B1021); stroke: var(--sodium); stroke-width: 1.7; }
.pr-stop .halo { fill: none; stroke: var(--sodium); stroke-width: 1.2; stroke-opacity: 0.6; }   /* the first and the last stop */
.pr-stop text { fill: var(--sodium); font-family: var(--serif); font-size: 11.5px; font-weight: 650; text-anchor: middle; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.pr-stop.read circle { fill: var(--sodium); }
.pr-stop.read text { fill: var(--c0B1021); }
.pr-stop.uc circle { stroke: var(--cC8CEE3); stroke-opacity: 0.8; stroke-dasharray: 2.2 2; }
.pr-stop.uc text { fill: var(--cC8CEE3); font-weight: 500; }
/* stops that would touch at this scale (atlas.js): small dots on the line, their numbers back once there is room */
.pr-stop.tiny circle { r: 4.5px; stroke-width: 1.5; }
.pr-stop.tiny text { display: none; }
/* the steps on an island, beside it, where its stops are too close for their numbers (build.mjs, islandNotes; on the
   map the island's name says them while its route is shown) */
.world.pathing .pl:not(.onp) { opacity: 0.4; }
.world.pathing .pl.onp .dot, .world.pathing .pl.onp .glow { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .proute.on .pr-flow { opacity: 0.85; animation: pflow 2.4s linear infinite; }
  .world.ready .pl.w .glow { animation: lampon 1.2s cubic-bezier(.2,.7,.2,1) both; transform-box: fill-box; transform-origin: center; }
}
@keyframes pflow { from { stroke-dashoffset: 0.03; } to { stroke-dashoffset: 0; } }
@keyframes lampon { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }

/* the controls over the map: framed like the card, 40 px targets; on a wide screen on the page's own edges (where the
   header's wordmark and navigation begin and end), on a phone 12 px from the screen's */
.atlas { --edge-x: calc(max(0px, (100% - var(--sbw, 0px) - var(--page-max)) / 2) + var(--gutter)); --edge-r: calc(var(--edge-x) + var(--sbw, 0px)); }
.ctl { position: absolute; z-index: 3; background: var(--night); border: 1px solid var(--frame); border-radius: var(--radius-lg); box-shadow: 0 10px 30px var(--c00000077); font-family: var(--sans); }   /* opaque: nothing of the map shows through */
.zoomctl { inset-inline-end: var(--edge-r); inset-block-end: 56px; display: grid; overflow: hidden; }
.zoomctl button { display: grid; place-items: center; width: var(--ctl); height: var(--ctl); border: 0; background: none; color: var(--moon); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.zoomctl button + button { border-block-start: 1px solid var(--frame); }
.zoomctl button:hover { background: var(--hover); color: var(--sodium); }
.zoomctl button:active { background: var(--press); }
.zoomctl button:focus-visible { outline-offset: -3px; }
.zoomctl button:disabled { color: var(--c59638A); cursor: default; background: none; }
.zoomctl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pathctl { inset-block-start: var(--s5); inset-inline-start: var(--edge-x); width: min(22rem, calc(100% - 32px)); max-height: calc(100% - 96px); display: flex; flex-direction: column; overflow: hidden; }
.pc-h { margin: 0; font-size: 0.875rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.01em; }
.pc-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--ctl); padding: 0 var(--s3) 0 14px; border: 0; background: none; color: var(--moon); font: inherit; letter-spacing: inherit; cursor: pointer; text-align: start; transition: background-color 0.15s; }
.pc-fold:hover { background: var(--hover); }
.pc-fold:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
.pc-fold::after { content: ''; margin-inline-start: auto; width: 7px; height: 7px; flex: none; border: solid var(--haze); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.pc-fold[aria-expanded="false"]::after { transform: rotate(-45deg); }
.pc-fold svg { width: 22px; height: 12px; flex: none; overflow: visible; fill: none; }
.pc-fold svg path { stroke: var(--sodium); stroke-width: 1.6; stroke-linecap: round; }
.pc-fold svg circle { fill: var(--c0B1021); stroke: var(--sodium); stroke-width: 1.2; }
.pathctl.folded { width: auto; max-width: calc(100% - 90px); }
.pathctl[hidden] { display: none; }
.pc-on { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-on:empty { display: none; }
.pc-body { display: flex; flex-direction: column; min-height: 0; padding: var(--s3); border-block-start: 1px solid var(--frame); }
.pc-body[hidden] { display: none; }
.pc-route { display: flex; flex-direction: column; min-height: 0; margin-block-start: var(--s3); }
.pc-route[hidden] { display: none; }
.pc-meta { margin: 0 0 var(--s1); padding-inline: var(--s1); font-size: 0.8125rem; color: var(--haze); }
.pc-route > .pm { margin: 0 var(--s1) var(--s3); }
/* the steps: the same rail of numbered stops as the topic pages' path panel (edu.css) */
/* it scrolls as the panel's list does: by whole rows, no bar, its ends fading while there is more (atlas.js sets .ft, .fb) */
.pc-steps { --ft: 0px; --fb: 0px; list-style: none; margin: 0 calc(-1 * var(--s3)); padding: 0; overflow-y: auto; min-height: 0; flex: 1 1 auto; max-height: min(46vh, 480px); border-block: 1px solid var(--rule); scrollbar-width: none; overscroll-behavior: contain; scroll-snap-type: y mandatory;
  mask-image: linear-gradient(to bottom, transparent 0, var(--c000000) var(--ft), var(--c000000) calc(100% - var(--fb)), transparent 100%); }
.pc-steps::-webkit-scrollbar { display: none; }
.pc-steps.ft { --ft: 24px; }
.pc-steps.fb { --fb: 24px; }
.pc-steps li { scroll-snap-align: start; }
.pc-part { margin: 0; padding: var(--s3) var(--s3) var(--s1); font-size: 0.6875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--haze); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-steps li:first-child .pc-part { padding-block-start: var(--s2); }
.pc-part .part-n { color: var(--sodium); margin-inline-end: 0.5em; }
.pc-steps li.opens button::before { inset-block-start: 16px; }
.pc-steps li:has(+ li.opens) button::before { inset-block-end: calc(100% - 16px); }
.pc-steps button { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; column-gap: 10px; width: 100%; min-height: var(--ctl-sm); padding: 4px var(--s3); border: 0; background: none; color: var(--moon); font: inherit; font-size: 0.875rem; line-height: 1.3; text-align: start; cursor: pointer; }
.pc-steps button::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: calc(var(--s3) + 15.5px); width: 1px; background: var(--c2E3860); }
.pc-steps li:first-child button::before { inset-block-start: 16px; }
.pc-steps li:last-child button::before { inset-block-end: calc(100% - 16px); }
.pc-steps .n { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.2px solid var(--c4A5578); background: var(--c0B1021); color: var(--haze); font-family: var(--serif); font-size: 0.72rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.pc-steps .t { min-width: 0; padding-block-start: 3px; text-wrap: balance; }
.pc-steps li.read .n { border-color: var(--sodium); background: var(--sodium); color: var(--c0B1021); }
.pc-steps li.uc .n { border-style: dashed; }
.pc-steps li.uc .t { color: var(--haze); }
.pc-steps button:hover { background: var(--hover); }
.pc-steps button:hover .t { color: var(--sodium); }
.pc-steps button:focus-visible { outline-offset: -2px; }
.pc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s3) 0 0; }
.pc-acts .btn { margin: 0; }
/* the foot of the map, one row on the page's edges: the footer's links on the left, the hint on the right under the zoom
   buttons (never over the links, at any width) */
.hint { position: absolute; z-index: 2; inset-block-end: var(--s4); inset-inline-end: var(--edge-r); display: flex; align-items: center; min-height: 30px; margin: 0; padding: 0 14px; border-radius: 999px; background: var(--night); border: 1px solid var(--rule); font-family: var(--sans); font-size: 0.8125rem; line-height: 1.2; color: var(--haze); pointer-events: none; white-space: nowrap; transition: opacity 0.6s; }
.used .hint, .carded .hint { opacity: 0; }
.mapfoot { position: absolute; z-index: 2; inset-block-end: var(--s4); inset-inline-start: var(--edge-x); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; min-height: 30px; font-family: var(--sans); font-size: 0.78rem; color: var(--c7C86A8); }
.mapfoot a { color: var(--haze); text-decoration-color: var(--c97A0BE55); }
.mapfoot a:hover { color: var(--moon); }

/* ---------- the card (a place on the map) ---------- */
.card { position: fixed; z-index: 30; scrollbar-width: thin; scrollbar-color: var(--c2E3860) transparent; left: var(--cx, 12px); top: var(--cy, 12px); width: 23.5rem; max-width: calc(100vw - 24px); max-height: calc(100vh - var(--strip-h) - 88px); overflow: auto; background: var(--c10162D); border: 1px solid var(--frame); border-radius: var(--radius-lg); box-shadow: 0 20px 56px var(--c00000099), 0 0 0 1px var(--cE9D49C14); padding: var(--s3) var(--s5) var(--s5); font-family: var(--sans); font-size: 0.9rem; line-height: 1.5; opacity: 0; transform: translateY(4px); transition: opacity 0.16s, transform 0.16s; }
.card[hidden] { display: none; }
.card.open { opacity: 1; transform: none; }
.card p { margin: 0; }
.card .c-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 36px; margin-inline-end: -12px; color: var(--haze); font-size: 0.78rem; letter-spacing: 0.03em; }
.card h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.2; margin: 2px 0 6px; }
.card h2:focus-visible { outline-offset: 4px; }
.card .c-state { display: flex; align-items: center; color: var(--haze); font-size: 0.8rem; }
.card .c-state .lampic { margin-inline-end: 8px; }
.card .c-title { font-family: var(--serif); font-style: italic; font-size: 1rem; margin-block-start: var(--s3); }
.card .c-line { margin-block-start: var(--s3); color: var(--cCDD2E4); }
.card h3 { margin: 0 0 var(--s1); font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }
.card .c-rel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); margin-block-start: var(--s4); padding-block-start: var(--s4); border-block-start: 1px solid var(--rule); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.card li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.card [data-go] { display: inline-flex; align-items: baseline; min-height: 28px; padding: 4px 0; border: 0; background: none; color: var(--link); font: inherit; line-height: 1.35; text-align: start; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 33%, transparent); text-underline-offset: 0.18em; }
.card [data-go]:hover { color: var(--moon); text-decoration-color: currentColor; }
.card [data-go] .lampic { width: 7px; height: 7px; margin-inline-end: 8px; transform: translateY(-1px); }
.card .c-where, .card .c-none { color: var(--haze); font-size: 0.78rem; }
.card .c-none { padding-block: 4px; }
.card .c-paths { margin-block-start: var(--s4); padding-block-start: var(--s4); border-block-start: 1px solid var(--rule); }
.card .c-paths li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3); }
.card .c-paths .btn[aria-pressed="true"] { border-color: var(--cE9D49CA6); color: var(--sodium); background: var(--cE9D49C14); }
.card .acts { display: flex; gap: var(--s2); margin-block-start: var(--s5); }
.card .acts .btn { flex: 1 1 auto; }
.card.sheet { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; max-height: 62svh; }

/* ================= a topic's page (written or under construction): the text, and the column on the right ================= */
.topic { padding-block: var(--s5) var(--s8); }
/* The grid: the text on the left, the column (--side-w) on the right. On a wide screen the text's parts are the grid's
   own rows (.tmain and .tbody give no box of their own): the column spans the rows from the title to "How it works"
   and stays in view beside them (sticky), then makes room: "Try it", where it holds code cells, runs across both columns
   so the code has the page's whole width (Arash, 2026-11-04: "the code sections are a bit narrow"); below it the page
   is two columns again: Check yourself in the text's, Where it leads (Mark as read, the next step, the other paths) in
   the column's, under one rule across both; the path stays in reach in the header (paths.js). Where Try it holds no
   cells the column spans every row. A rule runs as wide as the row it heads. The column's box (.tcol) is
   size-contained: it never makes a row taller. */
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); column-gap: var(--col-gap); align-items: start; }
.tmain, .tcol { min-width: 0; }
@media (min-width: 961px) {
  .tgrid > .tmain, .tgrid > .tmain > .tbody { display: contents; }
  .tgrid > .tmain > .thead, .tgrid > .tmain > .tbody > .tsec { grid-column: 1; min-width: 0; }
  .tgrid > .tmain > .tbody > .t-try:has(.pycell) { grid-column: 1 / -1; }
  .tgrid > .tcol { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; contain: size; }
  /* the column spans the title and every section before Try it: the build counts them (tspan-N) */
  .tgrid.tspan-2 > .tcol { grid-row: 1 / span 2; } .tgrid.tspan-3 > .tcol { grid-row: 1 / span 3; } .tgrid.tspan-4 > .tcol { grid-row: 1 / span 4; } .tgrid.tspan-5 > .tcol { grid-row: 1 / span 5; } .tgrid.tspan-6 > .tcol { grid-row: 1 / span 6; } .tgrid.tspan-7 > .tcol { grid-row: 1 / span 7; } .tgrid.tspan-8 > .tcol { grid-row: 1 / span 8; } .tgrid.tspan-9 > .tcol { grid-row: 1 / span 9; } .tgrid.tspan-10 > .tcol { grid-row: 1 / span 10; } .tgrid.tspan-11 > .tcol { grid-row: 1 / span 11; } .tgrid.tspan-12 > .tcol { grid-row: 1 / span 12; } .tgrid.tspan-13 > .tcol { grid-row: 1 / span 13; } .tgrid.tspan-14 > .tcol { grid-row: 1 / span 14; } .tgrid.tspan-15 > .tcol { grid-row: 1 / span 15; } .tgrid.tspan-16 > .tcol { grid-row: 1 / span 16; } .tgrid.tspan-17 > .tcol { grid-row: 1 / span 17; } .tgrid.tspan-18 > .tcol { grid-row: 1 / span 18; } .tgrid.tspan-19 > .tcol { grid-row: 1 / span 19; } .tgrid.tspan-20 > .tcol { grid-row: 1 / span 20; } .tgrid.tspan-21 > .tcol { grid-row: 1 / span 21; } .tgrid.tspan-22 > .tcol { grid-row: 1 / span 22; } .tgrid.tspan-23 > .tcol { grid-row: 1 / span 23; } .tgrid.tspan-24 > .tcol { grid-row: 1 / span 24; } .tgrid.tspan-25 > .tcol { grid-row: 1 / span 25; } .tgrid.tspan-26 > .tcol { grid-row: 1 / span 26; } .tgrid.tspan-27 > .tcol { grid-row: 1 / span 27; } .tgrid.tspan-28 > .tcol { grid-row: 1 / span 28; } .tgrid.tspan-29 > .tcol { grid-row: 1 / span 29; } .tgrid.tspan-30 > .tcol { grid-row: 1 / span 30; }
  .tgrid:not(:has(.t-try .pycell)) > .tcol { grid-row: 1 / -1; }
  /* at least as tall as the column's room in the window (a short page, one under construction): the path's panel is as
     tall on it as on every other page; the room left over is the last row's, under the text */
  .tgrid { grid-template-rows: repeat(32, auto) 1fr; min-height: calc(100vh - var(--side-top) - var(--tw-room) - var(--s5)); }
  /* below Try it: Where it leads in the column's place, its rule joined to Check yourself's across the gap */
  /* after a Try it with code, the sections below are as wide as it (Arash, 2026-11-05: "The text after try it section
     should expand the width of try it section") */
  .tgrid:has(.t-try .pycell) > .tmain > .tbody > .t-check, .tgrid:has(.t-try .pycell) > .tmain > .tbody > .t-leads { grid-column: 1 / -1; }
  .tgrid:has(.t-try .pycell) .t-try > p, .tgrid:has(.t-try .pycell) .t-try > ul, .tgrid:has(.t-try .pycell) .t-try > ol { max-width: none; }   /* the text in a Try it with code: as wide as the cells (Arash, 2026-11-05) */
  .tgrid:has(.t-try .pycell) .t-check .checks, .tgrid:has(.t-try .pycell) .t-check .checks .ans > *, .tgrid:has(.t-try .pycell) .t-check .checks .q { max-width: none; }
}
.thead { padding-block-end: var(--s6); border-block-end: 1px solid var(--rule); }
.thead .pno { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); min-height: 24px; margin-block-end: var(--s4); }
.pstate { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s2); border: 1px solid var(--cE9D49C55); border-radius: 4px; color: var(--sodium); font-size: 0.72rem; letter-spacing: 0.04em; }
.pstate.uc { border-style: dashed; border-color: var(--c4A5578); color: var(--c8E97B6); }
.thead h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 300; font-variation-settings: 'opsz' 72; margin-block-end: var(--s3); max-width: 48rem; text-wrap: balance; }   /* a long title in two balanced lines, not three narrow ones */
.thead .sub { font-style: italic; font-size: var(--t-lg); color: var(--haze); margin-block-end: var(--s3); }
.thead .tline { font-family: var(--sans); font-size: 1.04rem; line-height: 1.55; color: var(--cC3C9DD); max-width: 60ch; margin-block-end: 0; }
/* what it rests on, in the topic's head: a row of chips, each a place (ticked once read; dashed while under construction) */
.before { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-block-start: var(--s5); font-family: var(--sans); font-size: 0.8125rem; }
.b-k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--haze); margin-inline-end: var(--s1); }
.before ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.before li { display: flex; }
.before a { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl-sm); padding: 0 14px 0 10px; border: 1px solid var(--frame); border-radius: 999px; background: var(--c0D1329); color: var(--moon); text-decoration: none; line-height: 1.2; font-weight: 500; transition: border-color 0.15s, color 0.15s, background-color 0.15s; }
.before a:hover { border-color: var(--cE9D49C99); background: var(--cE9D49C0D); color: var(--sodium); }
.before a .tick, .before a .lampic { margin: 0; }
.before li.u a { border-style: dashed; border-color: var(--c4A5578); color: var(--cB4BBD3); }
.before li.u a:hover { border-color: var(--c8E97B6); color: var(--moon); background: var(--hover); }
/* the column: one frame, the same width and place on every topic page, 24 px under the header at rest and while the
   page scrolls, its foot 24 px over the tool window's bar: it always fits the window. In it the place's own content, or
   (paths.js) the path's panel (edu.css draws the panel; the frame here draws the border and ground). Both have the same
   three parts: a head, a middle that takes the room that is left and scrolls in itself (no bar, its ends fading while
   there is more: paths.js sets .ft and .fb), and a foot that is always in view. */
.tside { position: sticky; top: var(--side-top); --ps-border: 0; --ps-bg: transparent; --ps-top: 0px;
  max-height: min(100%, calc(100vh - var(--side-top) - var(--tw-room) - var(--s5))); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); font-family: var(--sans); }
.tside > .pathside { max-height: none; flex: 0 1 auto; min-height: 0; position: static; }
/* the place's own content: sections of one rhythm (16 px around, a rule between, a kicker, 12 px to what it holds) */
.sideplace { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.s-sec { padding: var(--s4); }
.s-sec + .s-sec { border-block-start: 1px solid var(--rule); }
.sideplace > .s-sec { flex: none; }
/* the rules round the middle belong to its neighbours: its fading ends would fade them too */
.s-where:has(+ .s-mid) { border-block-end: 1px solid var(--rule); }
.s-mid + .s-sec { border-block-start: 1px solid var(--rule); }
.s-mid { --ft: 0px; --fb: 0px; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent 0, var(--c000000) var(--ft), var(--c000000) calc(100% - var(--fb)), transparent 100%); }
.s-mid::-webkit-scrollbar { display: none; }
.s-mid.ft { --ft: 24px; }
.s-mid.fb { --fb: 24px; }
.s-mid:focus-visible { outline-offset: -2px; }
.s-sec h2 { margin-block-end: var(--s3); font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); line-height: 1.4; }
.s-sec p { margin: 0; }
.sloc { margin: 0; }
.sloc figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s3); margin-block-start: var(--s2); font-size: 0.84rem; line-height: 1.4; }
.sloc figcaption a:first-child { color: var(--moon); text-decoration: none; }
.sloc figcaption a:first-child:hover { color: var(--sodium); }
.s-sum, .s-sec p.quiet { font-size: 0.84rem; color: var(--haze); line-height: 1.5; }
.s-ladder { margin-block-start: var(--s2); }
.s-ladder summary { display: inline-flex; align-items: center; min-height: var(--ctl-sm); cursor: pointer; font-size: 0.84rem; color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 0.18em; }
.s-ladder summary:hover { color: var(--moon); }
.s-list { list-style: none; margin: 0; padding: 0; display: grid; font-size: 0.875rem; line-height: 1.35; }
.s-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); min-height: 28px; padding-block: 3px; }   /* rows of 28 px, as the ladder's */
.s-list li > a { min-width: 0; }
.s-list a, .uclist .uc-name { display: inline-flex; align-items: baseline; color: var(--moon); text-decoration: none; }
.s-list a .lampic { align-self: center; }
.s-list a:hover, .uclist .uc-name:hover { color: var(--sodium); }
.s-list .ol { font-size: 0.78rem; }
.s-list .ucn { margin: 0; }
.s-paths ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.s-paths li { display: grid; gap: 2px; font-size: 0.875rem; }
.s-pname { color: var(--moon); font-family: var(--serif); font-size: 1.06rem; font-weight: 400; text-decoration: none; line-height: 1.3; text-wrap: balance; }   /* a path's name as the panel names it */
.s-pname:hover { color: var(--sodium); }
.s-step { color: var(--haze); font-size: 0.8125rem; line-height: 1.4; }
.s-follow { margin-block-start: var(--s3); width: 100%; }
.s-follow.following { border-color: var(--cE9D49CA6); background: var(--cE9D49C1F); box-shadow: none; color: var(--sodium); }
/* the way up: an altitude scale, the level's number on a rail (the rail's numerals, as the path's stops), from this
   place at the top down to the shore (0); the rail runs from the first number's middle to the last's. Every row is 28 px,
   a level 8 px from the next; one marker per row: the place's lamp */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.s-ladder .ladder { margin-block-start: var(--s3); }
.ladder li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--s2); align-items: start; }
.ladder li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 11.5px; width: 1px; inset-block: 14px calc(-1 * (var(--s2) + 14px)); background: var(--c2E3860); }
.ladder .alt { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 20px; height: 20px; margin-block: 4px; border: 1px solid var(--c3A4466); border-radius: 50%; background: var(--c0D1329); font-family: var(--serif); font-size: 0.6875rem; font-weight: 600; line-height: 1; color: var(--haze); font-variant-numeric: lining-nums tabular-nums; }
.ladder li:first-child .alt { border-color: var(--cE9D49C99); color: var(--sodium); }
/* where it leads: on the way up's grid (a 24 px slot, 8 px, the lamp), the slot holding a small arrow up: these lie
   higher than this place */
.s-leads .s-list li { position: relative; padding-inline-start: calc(24px + var(--s2)); }
.s-leads .s-list li::before { content: ''; position: absolute; inset-inline-start: 8.5px; top: 50%; width: 6px; height: 6px; border: solid var(--c59638A); border-width: 1.4px 0 0 1.4px; transform: translateY(-1px) rotate(45deg); }
.rungs { display: grid; }
.rung { display: flex; align-items: center; min-height: 28px; padding-block: 3px; font-size: 0.86rem; color: var(--moon); text-decoration: none; line-height: 1.3; }
a.rung:hover { color: var(--sodium); }
.rung.here { color: var(--sodium); font-weight: 600; }
/* the small maps (an <image> of /map.svg, with what is drawn on top) */
.locmap { display: block; width: 100%; height: auto; border: 1px solid var(--c2E3860); border-radius: var(--radius); background: var(--c0A0F1F); }
.locmap .sea { fill: var(--c0A0F1F); }
.locmap .ldots .w { fill: var(--cF7E9C2); }
.locmap .ldots .u { fill: var(--c0B1021); stroke: var(--cC8CEE3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.locmap .lroads path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.locmap .lroads .rin { stroke: var(--sodium); stroke-opacity: 0.9; }
.locmap .lroads .rout { stroke: var(--link); stroke-opacity: 0.85; stroke-dasharray: 4 3; }
.locmap .lhere .hr { fill: none; stroke: var(--sodium); stroke-width: 1.6; }
.locmap .lhere .hd { fill: var(--sodium); }
.locmap .lhere .hp { fill: none; stroke: var(--sodium); stroke-width: 1; opacity: 0; }
.locmap .proute .pr-case, .locmap .proute .pr-line, .locmap .proute .pr-cross { vector-effect: non-scaling-stroke; }
.locmap .proute .pr-case { stroke-width: 5; }
.locmap .proute .pr-line { stroke-width: 2.2; }
.locmap .proute .pr-cross { stroke-width: 1.4; }
.locmap .proute .pr-flow { display: none; }
/* the path's page: its map follows the step in view (paths.js): the view moves (the marks keep their size: --u), the
   part in view is drawn, the rest dimmed, the step in view ringed in white */
.pathmap svg.live .pk { transform: scale(var(--u)); }
.pathmap svg.live .ldots .w { r: calc(3.6px * var(--u)); }
.pathmap svg.live .ldots .u { r: calc(2.8px * var(--u)); }
.pathmap svg .pr-walk, .pathmap svg .pr-cross, .pathmap svg .pr-stop { transition: opacity 0.3s; }
.pathmap svg.focus .pr-walk:not(.cur), .pathmap svg.focus .pr-cross:not(.cur) { opacity: 0.18; }
.pathmap svg.focus .pr-stop:not(.cur) { opacity: 0.35; }
/* the trail: the part's route up to the step in view, lit leg by leg in order (paths.js) */
.pathmap svg .ptrail path { fill: none; stroke: var(--cFFF6DA); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.25s; }
.pathmap svg .ptrail path.lit { opacity: 0.95; }
.pr-stop.at circle:not(.halo), .pr-stop.hot circle:not(.halo) { stroke: var(--cFFF6DA); stroke-width: 2.6; }
.pr-stop.at text, .pr-stop.hot text { fill: var(--cFFF6DA); }
.pathmap svg.focus .pr-stop.hot { opacity: 1; }
.pr-stop.at.read circle:not(.halo) { fill: var(--cFFF6DA); }
.pr-stop.at.read text { fill: var(--c0B1021); }
@media (prefers-reduced-motion: no-preference) {
  .locmap .lhere .hp { animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.2); } }

/* the text: sections in the skeleton (why, idea, how, try, check, where it leads) */
.tbody > .tsec > p, .tbody > .tsec > ul, .tbody > .tsec > ol:not(.checks), .tbody > .tsec > h3 { max-width: var(--measure); }
.tbody > .tsec > figure, .tbody > .tsec > .formula, .tbody .in-study, .tbody .in-study figure, .tbody .checks { max-width: var(--measure); }   /* figures and boxes on the text's edge (2026-11-05) */
/* a subheading within a section: a break of its own (32 px above, 8 px to its text), in the serif at a weight that
   tells it from the text */
.tbody > .tsec > h3 { margin: var(--s6) 0 var(--s2); font-size: 1.25rem; font-weight: 520; line-height: 1.3; color: var(--cF1F3F8); font-variation-settings: 'opsz' 24; text-wrap: balance; }
.tbody > .tsec > h2 + h3 { margin-block-start: var(--s3); }
.tsec code { overflow-wrap: anywhere; }   /* a long name in a topic's text breaks rather than widening a phone's page */
.tbody .big { font-size: 1.22rem; line-height: 1.55; }
.tbody p { text-wrap: pretty; }   /* where the browser can: no word alone on a paragraph's last line */
.tsec { padding-block: var(--s7) 0; }
.tsec + .tsec { margin-block-start: var(--s7); border-block-start: 1px solid var(--rule); }
.tsec > h2, .pathtext h2 { display: flex; align-items: center; gap: var(--s3); font-size: 1.5rem; font-weight: 360; margin-block-end: var(--s5); }
.tsec > h2::before, .pathtext h2::before { content: ''; width: 18px; height: 2px; flex: none; background: var(--sodium); }
.tsec.whynote { padding-block-start: var(--s2); }
.tsec.whynote[hidden] { display: none; }
.t-onpath h2 .op-k { display: block; margin-block-end: var(--s1); font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }   /* a general topic's section for the path being followed */
.t-onpath[hidden] { display: none; }
/* the zones of a land (build.mjs, zonesSVG): a faint dashed border, and the zone's name in small capitals once one zooms
   in past the lands' names; gone again when the places' own lines show */
.world .zborder { fill: none; stroke: var(--cA3AED6); stroke-opacity: 0.5; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.world .zname { pointer-events: none; opacity: 0; transition: opacity 0.3s; cursor: pointer; }
.world .zname text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; fill: var(--cB4BBD3); paint-order: stroke; stroke: var(--c0A0F1F); stroke-width: 3px; stroke-linejoin: round; }
.world .zname { opacity: 0.6; pointer-events: auto; }
.world .zname:hover text { fill: var(--sodium); }
.world.zn0 .zname { opacity: 0.85; }
.world .zname.occ { opacity: 0 !important; }
/* a collapsible list inside a section (the tokenizers on Tokens and embeddings): a frame on the text's edge, closed by
   default; its summary a row like the check questions' */
.tbody details.toklist { max-width: var(--measure); margin: var(--s4) 0 var(--s5); border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; }
.toklist > summary { display: flex; align-items: center; gap: var(--s3); min-height: var(--ctl); padding: var(--s2) var(--s4); cursor: pointer; list-style: none; color: var(--moon); font-weight: 500; border-radius: var(--radius-lg); }
.toklist > summary::-webkit-details-marker { display: none; }
.toklist > summary::before { content: ''; width: 8px; height: 8px; border-inline-end: 1.6px solid var(--sodium); border-block-end: 1.6px solid var(--sodium); transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
.toklist[open] > summary::before { transform: rotate(45deg); }
.toklist > summary:hover { background: var(--hover); }
.toklist[open] > summary { border-block-end: 1px solid var(--rule); border-end-start-radius: 0; border-end-end-radius: 0; }
.toklist h3 { margin: var(--s4) var(--s4) var(--s2); font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--haze); }
.toklist ul { margin: 0; padding: 0 var(--s4) var(--s2) calc(var(--s4) + 1.1em); }
.toklist li { margin: 0 0 var(--s2); color: var(--cC9CEDD); }
.toklist li::marker { color: var(--c4A5578); }
.toklist ul:last-child { padding-block-end: var(--s4); }   /* a page in its own sections: the why without a heading */
.t-why p { max-width: var(--measure); margin: 0; padding-inline-start: var(--s4); border-inline-start: 2px solid var(--cE9D49C99); font-size: 1.1rem; }
.t-why .wp { display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--sodium); margin-block-end: var(--s1); }
.t-try h2 + .pyhead { margin-block-start: 0; border-block-start: 0; }
/* a topic link in the text (the build's tlink): a quiet dotted underline; edu.css's card shows where it lies */
a.tlink { color: inherit; text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, var(--link) 67%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a.tlink:hover, a.tlink:focus-visible { color: var(--link); text-decoration-style: solid; }
a.tlink[data-written="0"] { text-decoration-color: var(--c8E97B677); }
/* a formula, then what it says in plain words, with links to what to review */
.formula { display: flex; justify-content: center; justify-content: safe center; max-width: var(--measure); margin: var(--s3) 0; font-size: 1.3rem; overflow-x: auto; flex-wrap: wrap; align-items: center; gap: 8px 2.4em; }   /* centred on the text's measure, not on the wider column; safe: a formula wider than a phone scrolls from its start */
.formula math { margin: 0; white-space: nowrap; }
/* a display formula's scripts, closer to what they belong to: the text's serif has no table of math metrics, so the
   browser's own spacing sets a square far above a fence and its subscript far below (moved, not resized: MathML
   ignores margins and offsets there, not a transform) */
.formula msubsup > :nth-child(2) { transform: translateY(-0.1em); }
.formula msubsup > :nth-child(3) { transform: translateY(0.2em); }
.tsec p.formula-say, p.formula-say { max-width: var(--measure); margin: 0 0 22px; padding: 6px 0 6px 14px; border-inline-start: 2px solid color-mix(in srgb, var(--link) 40%, transparent); font-family: var(--sans); font-size: 0.94rem; line-height: 1.55; color: var(--cC9CEE0); }
p.formula-say::before { content: 'In words'; display: block; margin-block-end: 2px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
/* a figure or an animation (inline SVG, its own <animate>), with its caption */
.tsec figure.fig:not(.out figure) { max-width: var(--measure); }   /* in Try it too: only the code cells span the page */
.tsec figure.fig:not(.out figure) { margin: var(--s5) 0 var(--s6); padding: var(--s4) var(--s4) var(--s3); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--c0D1329); }
.tsec figure.fig:not(.out figure) > svg { display: block; width: 100%; height: auto; max-height: 460px; margin-inline: auto; font-family: var(--sans); overflow: visible; }
.tsec figure.fig:not(.out figure) > figcaption { margin-block-start: 10px; font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; color: var(--haze); max-width: var(--measure); }
@media (max-width: 600px) { .tsec figure.fig.wide:not(.out figure) { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--c2E3860) transparent; } .tsec figure.fig.wide:not(.out figure)::before { content: "Scroll sideways to see all \2192"; display: block; position: sticky; left: 0; margin-block-end: 6px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--link); } .tsec figure.fig.wide:not(.out figure) > svg { min-width: 640px; max-height: none; } .tsec figure.fig.mid:not(.out figure) { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--c2E3860) transparent; } .tsec figure.fig.mid:not(.out figure) > svg { min-width: 480px; max-height: none; } .tsec figure.fig.mid:not(.out figure)::before { content: "Scroll sideways to see all \2192"; display: block; position: sticky; left: 0; margin-block-end: 6px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--link); } .formula { padding-bottom: 6px; font-size: 1.05rem; } }   /* phone: dense figures keep a readable size and scroll sideways (2026-11-17, attention critic) */
.tsec figure.fig.narrow:not(.out figure) > svg { max-width: 520px; }
/* a small table in a text (2026-11-27): hairlines only, the sans of the interface */
.tsec table.tbl { width: 100%; max-width: var(--measure); margin: var(--s4) 0; border-collapse: collapse; font-family: var(--sans); font-size: 0.9rem; line-height: 1.45; }
.tsec table.tbl th { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: bottom; font-weight: 600; color: var(--moon); }
.tsec table.tbl td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
/* a figure drawn on a canvas as a block of fatehi.dev's chip (figs.js, 2026-11-27): the block is its own frame (the
   raised copper plate and its name plate are drawn on the canvas), so the figure loses the text's frame; its caption
   below, as with every figure */
.tsec figure.fig.cv:not(.out figure) { padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.tsec figure.fig.cv > canvas { display: block; width: 100%; }
/* play and step on a figure's name plate, left of its FIG·nn (figs.js controls; 2026-11-27, Arash) */
figure.fig.cv.has-ctl { position: relative; }
/* a figure's layer links, for keyboards and screen readers (the plates on the canvas are the links for the pointer) */
.fig-links { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fig-links:focus-within { position: static; width: auto; height: auto; clip-path: none; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 2px 0; font-family: var(--sans); font-size: 0.8rem; }
.fig-ctl { position: absolute; top: 5px; right: 50px; display: flex; gap: 4px; z-index: 1; }
.fig-ctl button { position: relative; width: 21px; height: 16px; padding: 0; border: 1px solid var(--edge); border-radius: 2px; background: var(--night); color: var(--sodium); cursor: pointer; }
.fig-ctl button:hover { border-color: var(--sodium); }
.fig-ctl button:focus-visible { outline: 2px solid var(--sodium); outline-offset: 1px; }
.fig-ctl button::before, .fig-ctl button::after { content: ''; position: absolute; top: 3.5px; height: 7px; background: currentColor; }
.fc-play::before { left: 7px; width: 7px; clip-path: polygon(0 0, 100% 50%, 0 100%); }   /* paused: a triangle, Play */
.fc-play.on::before { left: 6px; width: 2.5px; clip-path: none; }                          /* playing: two bars, Pause */
.fc-play.on::after { left: 11px; width: 2.5px; }
.fc-play:not(.on)::after { display: none; }
.fc-step::before { left: 5px; width: 7px; clip-path: polygon(0 0, 100% 50%, 0 100%); }   /* a triangle to a bar: one step */
.fc-step::after { left: 13px; width: 2px; }   /* no shadow round it: a halo on the light themes (Arash, 2026-11-27) */
.tsec figure.fig.cv:not(.out figure) > figcaption { margin: 0; padding: 10px 2px 0; }
/* phone: a figure whose words would read too small opens full-screen on a tap (atlas.js, zoomFigures; 2026-11-26) */
.tsec figure.fig.tapzoom { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.tsec figure.fig.tapzoom::before { content: "Tap to enlarge \2922"; display: block; margin-block-end: 6px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--link); }
.tsec figure.fig.tapzoom:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
html.figzoom-on, html.figzoom-on body { overflow: hidden; }
.figzoom { position: fixed; inset: 0; z-index: 1000; display: flex; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--c2E3860) transparent; background: var(--c0B1021); }
.figzoom-in { margin: auto; padding: 56px 12px 20px; }
.figzoom-in > svg { display: block; height: auto; max-width: none; overflow: visible; font-family: var(--sans); }
.figzoom-cap { position: sticky; left: 12px; max-width: calc(100vw - 24px); margin: 12px 0 0; font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; color: var(--haze); }
.figzoom-hint { position: fixed; top: 10px; left: 12px; right: 96px; display: flex; align-items: center; min-height: var(--ctl); margin: 0; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.35; color: var(--link); pointer-events: none; }
.figzoom-hint[hidden] { display: none; }
.figzoom-x { position: fixed; top: 10px; right: 12px; z-index: 1; background: var(--c0D1329); }
/* a topic's Python cells (ide.css draws them), each in a section of its own */
.pycell { margin-block: 0; }
.tbody p.uses { font-family: var(--sans); font-size: 0.86rem; color: var(--haze); margin: 22px 0 0; }
.tbody .pycell + p { margin-block-start: 26px; }
.pyhow { font-family: var(--sans); font-size: 0.86rem; }
/* check yourself: the cards as wide as the text's column; their words keep the measure */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); counter-reset: q; }
.checks li { counter-increment: q; }
.checks details { border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); transition: border-color 0.15s, background-color 0.15s; }
.checks details:hover { border-color: var(--c3E4974); }
.checks details[open] { border-color: var(--c3E4974); }
.checks summary { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; align-items: baseline; gap: var(--s3) var(--s4); padding: var(--s4) var(--s5) var(--s4) var(--s4); cursor: pointer; list-style: none; border-radius: var(--radius-lg); }
.checks summary:focus-visible { outline-offset: -2px; }
.checks summary::-webkit-details-marker { display: none; }
.checks summary::before { content: counter(q); font-style: italic; color: var(--sodium); font-size: 1.1rem; line-height: 1.5; font-variant-numeric: lining-nums; }
.checks .q { max-width: 62ch; line-height: 1.5; }
.checks .qa { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl-sm); padding: 0 var(--s3) 0 14px; border: 1px solid var(--edge); border-radius: 999px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; line-height: 1; color: var(--link); white-space: nowrap; transition: border-color 0.15s, color 0.15s, background-color 0.15s; align-self: start; margin-block-start: -3px; }   /* a compact control, 32 px as the chips, centred on the question's first line */
.checks .qa::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.checks summary:hover .qa { border-color: color-mix(in srgb, var(--link) 53%, transparent); background: color-mix(in srgb, var(--link) 5%, transparent); color: var(--moon); }
.checks details[open] summary { border-block-end: 1px dashed var(--rule); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.checks details[open] .qa { color: var(--haze); }
.checks details[open] .qa::after { transform: translateY(1px) rotate(-135deg); }
.checks .ans { padding: var(--s3) var(--s5) var(--s1) calc(var(--s4) + 1.25rem + var(--s4)); }
.checks .ans > * { max-width: var(--measure); }
.checks .ans p { margin: 0 0 0.7em; }
/* where it leads: Mark as read (a toggle in the button system), the next step on the path, the other paths, research */
.readrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.readbtn { gap: 10px; padding-inline: 14px var(--s4); border-color: var(--cE9D49CA6); color: var(--sodium); }
.readbtn:hover { border-color: var(--sodium); background: var(--cE9D49C14); color: var(--cF6E7BE); }
.readbtn[aria-pressed="true"] { background: var(--cE9D49C24); border-color: var(--sodium); }
.readbtn:disabled { opacity: 0.5; cursor: default; }
.readbtn .tick { margin: 0; border-color: var(--sodium); }
.readnote { margin: 0; font-family: var(--sans); font-size: 0.84rem; line-height: 1.45; color: var(--haze); }
.nextstep { margin-block-start: var(--s6); }
.nextstep[hidden] { display: none; }
.ns-k, .ns-gap { margin: 0 0 var(--s2); font-family: var(--sans); font-size: 0.84rem; line-height: 1.45; color: var(--haze); }
.ns-no { white-space: nowrap; }
.ns-go { display: grid; gap: var(--s1); padding: var(--s4) var(--s5) var(--s4) 20px; border: 1px solid var(--cE9D49C77); border-inline-start: 3px solid var(--sodium); border-radius: var(--radius-lg); background: var(--cE9D49C0A); color: var(--moon); text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.ns-go:hover { border-color: var(--sodium); background: var(--cE9D49C14); }
.ns-t { font-size: 1.15rem; line-height: 1.3; color: var(--sodium); }
.ns-t::after { content: '\00a0\2192'; }
.ns-why { font-family: var(--sans); font-size: 0.88rem; line-height: 1.5; color: var(--haze); }
/* the paths through it and the research: the column's blocks (the same label, the path's name, its step on a line of its
   own, Follow this path), so the page says it one way. Where the column with its own "Paths through it" is in view
   beside them (a page without cells, not following a path) or right after them (a phone), they are not repeated. */
.onpaths, .research { max-width: var(--side-w); margin-block-start: var(--s6); font-family: var(--sans); font-size: 0.92rem; line-height: 1.5; }
.onpaths[hidden] { display: none; }
.onpaths h3, .research h3 { margin-block-end: var(--s3); font-family: var(--sans); font-size: 0.7rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }
.onpaths ul, .research ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.onpaths ul { gap: var(--s4); }
.onpaths li[hidden] { display: none; }
.tgrid:not(:has(.t-try .pycell)):has(.tside:not([data-side="path"])) .t-leads .onpaths { display: none; }
/* an under-construction page: what it rests on and what leads from it (where it lies is in the column, as on every page) */
.uclist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); max-width: var(--measure); gap: var(--s2); font-family: var(--sans); }   /* one under another, as wide as the text */
.uclist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s1) var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); }
.uclist .uc-line { grid-column: 1 / -1; }
.uclist li.u { border-style: dashed; border-color: var(--c4A5578); }
.uclist .uc-name { font-size: 0.98rem; }
.uc-where { font-size: 0.78rem; color: var(--haze); }
.uc-line { font-size: 0.86rem; line-height: 1.45; color: var(--cC3C9DD); }

/* the bar at the top of a topic page while on a path, where the column is not beside the text (paths.js): the same
   head as the column's panel, the same progress, Previous and Next as two equal buttons, and the whole list folded */
.pathbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s2); margin: 0 0 var(--s5); padding: var(--s3) var(--s2) 0 var(--s4); border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); font-family: var(--sans); font-size: 0.9rem; overflow: hidden; }
.pathbar[hidden] { display: none; }
.pathbar.off { border-style: dashed; padding-block-end: var(--s3); }
.pathbar p { margin: 0; }
.pb-head { grid-column: 1; grid-row: 1; min-width: 0; padding-block-start: 2px; }
.pb-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s3); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }
.pb-step { color: var(--haze); font-weight: 400; letter-spacing: 0.02em; text-transform: none; font-size: 0.8rem; font-variant-numeric: lining-nums tabular-nums; }
.pb-name { display: block; margin-block-start: 2px; color: var(--moon); font-family: var(--serif); font-size: 1.06rem; line-height: 1.3; text-decoration: none; text-wrap: balance; }
.pb-name:hover { color: var(--sodium); }
.pb-note { margin-block-start: 2px !important; color: var(--haze); font-size: 0.84rem; }
.pb-x { grid-column: 2; grid-row: 1; align-self: start; margin-block-start: -4px; }
.pb-prog { grid-column: 1 / -1; display: grid; gap: 2px; margin: var(--s3) var(--s2) 0 0; }
.pb-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s3); font-size: 0.75rem; color: var(--haze); }
.pb-nav { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); margin: var(--s3) var(--s2) 0 0; }
.pb-nav1 { grid-template-columns: minmax(0, 1fr); }
.pb-prev, .pb-next { display: grid; align-content: center; gap: 2px; min-width: 0; min-height: 56px; padding: var(--s2) var(--s3); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--cFFFFFF06); color: var(--moon); text-decoration: none; line-height: 1.3; transition: background-color 0.15s, border-color 0.15s; }
.pb-next { border-color: var(--sodium); background: var(--sodium); color: var(--c0B1021); text-align: end; }
.pb-prev:hover { border-color: var(--edge-hi); background: var(--hover); }
.pb-next:hover { border-color: var(--cF6E8C3); background: var(--cF6E8C3); }
.pb-prev:active { background: var(--press); }
.pb-next:active { border-color: var(--cD8C189); background: var(--cD8C189); }
.pb-dir { color: var(--haze); font-size: 0.74rem; white-space: nowrap; }
.pb-prev .pb-dir::before { content: '\2190\00a0'; }
.pb-next .pb-dir::after { content: '\00a0\2192'; }
.pb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 500; }   /* one line: both boxes always 56 px (the whole name in the tooltip and the list) */
.pb-next .pb-t { font-weight: 600; }
.pb-next .pb-dir { color: var(--c0B1021B3); }
.pb-nav1 .pb-next { text-align: start; }
.pb-back .pb-dir::after { content: none; }
.pb-back .pb-dir::before { content: '\2190\00a0'; }

/* ================= the learning paths: the list, and a path's page ================= */
.paths { padding-block: 0 96px; }
.pathlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
/* a path on the list: its route on the left, its name, goal, progress and the two ways in on the right */
.pathcard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s5) var(--s7); align-items: center; padding: var(--s5); border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); }
.pathcard.coming { grid-template-columns: minmax(0, 1fr); border-style: dashed; }
.pc-fig { display: block; border-radius: var(--radius); }
/* the list of paths as a grid of cards (2026-11-28): find, shelf chips, Continue on top, coming paths dimmed at the end */
.pfilters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-block-end: var(--s6); }
.pf-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pf-chip { min-height: 34px; padding: 0 var(--s3); border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--haze); font: inherit; font-family: var(--sans); font-size: 0.88rem; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.pf-chip:hover { border-color: var(--edge-hi); color: var(--moon); }
.pf-chip[aria-pressed="true"] { border-color: var(--cE9D49CA6); background: var(--cE9D49C14); color: var(--sodium); }
.pf-chip .num { margin-inline-start: 0.25em; opacity: 0.7; }
.pf-sec { margin-block-end: var(--s7); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); overflow: hidden; transition: border-color 0.15s; }
.pcard:hover, .pcard:focus-within { border-color: var(--edge-hi); }
.pcard.coming { border-style: dashed; opacity: 0.72; }
.pcard[hidden] { display: none; }
.pk-fig { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-block-end: 1px solid var(--frame); }
.pk-fig svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.pk-text { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); flex: 1; }
.pk-meta { margin: 0; font-family: var(--sans); font-size: 0.78rem; color: var(--haze); }
.pk-name { margin: 0; font-size: 1.18rem; font-weight: 400; line-height: 1.25; }
.pk-name a { color: var(--moon); text-decoration: none; }
.pk-name a::after { content: ''; position: absolute; inset: 0; }   /* the whole card opens the path */
.pk-goal { margin: 0; font-family: var(--sans); font-size: 0.86rem; line-height: 1.45; color: var(--haze); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pk-prog { margin-block-start: auto; padding-block-start: var(--s2); }
.pk-prog .ph-count { margin: var(--s1) 0 0; font-family: var(--sans); font-size: 0.78rem; color: var(--haze); }
.pk-map { position: absolute; inset-block-start: var(--s2); inset-inline-end: var(--s2); z-index: 1; padding: 2px var(--s2); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--c0D1329E6); font-family: var(--sans); font-size: 0.76rem; color: var(--haze); text-decoration: none; }
.pk-map:hover, .pk-map:focus-visible { border-color: var(--sodium); color: var(--sodium); }
/* a path's progress, one picture everywhere: a slice per step, a gap where a part begins; read lit, under construction
   hollow, this step a taller tick (build.mjs and paths.js draw it) */
.pm { display: flex; align-items: center; gap: 1px; min-width: 0; height: 14px; }
.pm i { flex: 1 1 0; min-width: 2px; height: 6px; background: var(--c2C3559); }
.pm i:first-child, .pm i.p0 { border-start-start-radius: 3px; border-end-start-radius: 3px; }
.pm i:last-child, .pm i:has(+ .p0) { border-start-end-radius: 3px; border-end-end-radius: 3px; }
.pm i.p0 { margin-inline-start: 4px; }
.pm i.uc { background: transparent; box-shadow: inset 0 0 0 1px var(--c3A4466); }
.pm i.read { background: var(--sodium); }
.pm i.here { height: 14px; border-radius: 1px; background: var(--moon); box-shadow: 0 0 0 2px var(--c0D1329); }
.pm i.here.read { background: var(--cFFF6DA); }
.pc-fig .locmap { transition: border-color 0.15s; }
.pc-fig:hover .locmap { border-color: var(--cE9D49C88); }
.pc-text { display: grid; gap: var(--s2); align-content: center; min-width: 0; }
.pc-text .pno { margin: 0; }
.pname { margin: 0; font-size: var(--t-xl); font-weight: 400; line-height: 1.2; text-wrap: balance; }
.pname a { color: var(--moon); text-decoration: none; }
.pname a:hover { color: var(--sodium); }
.pgoal { font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; color: var(--haze); margin: 0; max-width: 52ch; }
.pmeta { display: grid; gap: var(--s1); max-width: 30rem; margin: var(--s2) 0 0; font-family: var(--sans); font-size: 0.8125rem; color: var(--haze); }
.pmeta p, .ph-prog p { margin: 0; }
.pnote { font-family: var(--sans); font-size: 0.8rem; color: var(--c7C86A8); }
.pc-btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }
.pcount { font-variant-numeric: lining-nums; }
/* a path's page: the text, and beside it (sticky, 24 px under the header) the route and the parts */
.pathpage { padding-block: var(--s6) 96px; --pp-side: clamp(340px, 38%, 540px); }
.pp { display: grid; grid-template-columns: minmax(0, 1fr) var(--pp-side); grid-template-areas: "head side" "text side"; column-gap: var(--col-gap); align-items: start; }
.pathhead { grid-area: head; padding-block-end: var(--s6); border-block-end: 1px solid var(--rule); }
.pathhead .pno { margin-block-end: var(--s3); }
.pathhead h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 300; font-variation-settings: 'opsz' 72; margin-block-end: var(--s3); text-wrap: balance; }
.pathhead .lede { max-width: 56ch; margin-block-end: var(--s5); }
.pp-side { grid-area: side; align-self: stretch; }
.pp-stick { position: sticky; top: var(--side-top); display: grid; gap: var(--s4); }
.pathmap { margin: 0; }
.pathmap figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--haze); margin-block-start: var(--s2); }
.pp-cap { display: grid; gap: 2px; min-height: calc(2 * 1.45em + 2px); line-height: 1.45; }
.pp-cap-k { color: var(--moon); font-weight: 500; font-size: 0.8125rem; }
.pp-cap-k .num { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; }
.pp-cap-t { min-width: 0; }
.pp-parts ol { list-style: none; margin: 0; padding: var(--s2) 0; border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); font-family: var(--sans); }
.pp-parts a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); min-height: var(--ctl-sm); padding: 2px var(--s4); color: var(--moon); text-decoration: none; font-size: 0.875rem; line-height: 1.3; transition: background-color 0.15s, color 0.15s; }
.pp-parts a:hover { background: var(--hover); }
.pp-parts a:hover .pp-t { color: var(--sodium); }
.pp-parts a:focus-visible { outline-offset: -2px; }
.pp-n { justify-self: center; font-family: var(--serif); font-size: 0.875rem; font-weight: 600; color: var(--sodium); font-variant-numeric: lining-nums; }
.pp-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-r { font-family: var(--serif); font-size: 0.8125rem; color: var(--haze); font-variant-numeric: lining-nums tabular-nums; }
.pp-parts li.cur a { background: var(--cE9D49C14); }
.pp-parts li.cur .pp-t { color: var(--sodium); font-weight: 600; }
.ph-prog { display: grid; gap: var(--s1); max-width: 34rem; margin: 0 0 var(--s5); font-family: var(--sans); font-size: 0.8125rem; color: var(--haze); }
.ph-act { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.ph-act .btn { flex: 0 1 auto; }
/* a path's two buttons (Start or Continue, and Map; Open the path and Map) one width, the wider one's (2026-11-21, Arash) */
.ph-act:has(> .btn + .btn), .pc-btns { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-self: start; }
.ph-none { font-family: var(--sans); font-size: 0.92rem; color: var(--haze); align-self: center; }
.pathtext { grid-area: text; padding-block-start: var(--s7); min-width: 0; }   /* its words keep the measure */
.pathtext .intro p { max-width: var(--measure); font-size: 1.15rem; line-height: 1.6; }
.pathtext .intro .partref { color: var(--moon); text-decoration-color: var(--cE9D49C88); }
.pathtext .intro .partref:hover { color: var(--sodium); text-decoration-color: currentColor; }
.pathtext .intro .partref b { font-weight: 600; }
.stepsec, .closing { padding-block-start: var(--s7); margin-block-start: var(--s7); border-block-start: 1px solid var(--rule); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ''; position: absolute; inset-block: 26px 44px; inset-inline-start: 15px; width: 2px; background: linear-gradient(var(--sodium), var(--cE9D49C44)); opacity: 0.55; }
.step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-block: 12px 14px; }
/* a path in parts: the part's name and its steps above its first step, on the page's night (it breaks the rail: one
   rail per part) */
.spart { position: relative; z-index: 1; margin: 0; padding-block: var(--s7) var(--s3); background: var(--night); scroll-margin-block-start: calc(var(--side-top) + var(--s2)); }
.spart:first-child { padding-block-start: var(--s2); }
.spart-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); margin: 0; font-size: 1.3rem; font-weight: 420; line-height: 1.3; color: var(--moon); }
.spart-h .part-n { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }
.spart-m { margin: 2px 0 0; font-family: var(--sans); font-size: 0.8125rem; color: var(--haze); }
.step { scroll-margin-block-start: calc(var(--side-top) + var(--s2)); }
.step.at .sno { box-shadow: 0 0 0 4px var(--cE9D49C26); }
.sno { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.6px solid var(--sodium); background: var(--night); color: var(--sodium); font-family: var(--serif); font-size: 0.875rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.step.read .sno { background: var(--sodium); color: var(--night); box-shadow: 0 0 10px var(--cE9D49C66); }
.step.next .sno { outline: 1.6px solid var(--sodium); outline-offset: 3px; }
.step.uc .sno { border-style: dashed; border-color: var(--c7C86A8); color: var(--haze); }
.sbody h3 { margin: 3px 0 2px; font-size: 1.22rem; font-weight: 400; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.sbody h3 a { color: var(--moon); text-decoration: none; }
.sbody h3 a:hover { color: var(--sodium); }
.step.uc h3 a { color: var(--haze); }
.ucnote { font-family: var(--sans); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.02em; color: var(--c8E97B6); border: 1px dashed var(--c4A5578); border-radius: 4px; padding: 0 6px; }
.splace { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 6px; font-family: var(--sans); font-size: 0.8125rem; color: var(--moon); }
.splace .ol a { color: inherit; text-decoration-color: var(--c97A0BE55); }
.swhy { max-width: var(--measure); margin: 0 0 4px; color: var(--haze); }
.sbody h3, .splace { max-width: var(--measure); }
.sx { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; font-family: var(--sans); font-size: 0.84rem; color: var(--haze); }
.xic { position: relative; width: 15px; height: 15px; flex: none; align-self: flex-start; margin-top: 1px; border-radius: 50%; border: 1.4px solid var(--moon); }
.xic::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1.3px solid var(--sodium); }
.closing p { max-width: var(--measure); }
.toresearch { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-block-start: var(--s5); font-family: var(--sans); font-size: 0.86rem; color: var(--haze); }

/* ================= the index of places: by land and island ================= */
.places { padding-block: 0 96px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); padding-block: 0 var(--s5); border-block-end: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9rem; }
.find { display: flex; align-items: center; gap: var(--s3); color: var(--haze); }
.find input { background: var(--c0D1329); color: var(--moon); border: 1px solid var(--edge); border-radius: var(--radius); padding: 0 var(--s3); min-height: var(--ctl); width: 16rem; transition: border-color 0.15s; }
.find input:hover { border-color: var(--edge-hi); }
.find input:focus-visible { outline-offset: 1px; border-color: var(--sodium); }
.find input::placeholder { color: var(--c6F7896); }
.wonly { display: flex; align-items: center; gap: var(--s2); min-height: var(--ctl); color: var(--haze); cursor: pointer; }
.wonly input { accent-color: var(--sodium); width: 16px; height: 16px; }
.igrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s7); padding-block-start: var(--s6); align-items: start; }
.icols { columns: 2; column-gap: 40px; }
.ireg { break-inside: avoid; padding-block-end: var(--s6); }
.ireg[hidden] { display: none; }
.ireg h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); font-size: 1.45rem; font-weight: 400; margin-block-end: var(--s2); padding-block-end: var(--s2); border-block-end: 1px solid var(--rule); }
.ireg h2 a { color: var(--sodium); text-decoration: none; }
.ireg h2 a:hover { text-decoration: underline; }
.icount { margin-inline-start: auto; font-family: var(--sans); font-size: 0.78rem; color: var(--haze); }
.ireg ul { list-style: none; margin: 0; padding: 0; }
.ireg .izone { margin: var(--s3) 0 var(--s1); font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }   /* a region of My studies or Papers (2026-11-21) */
.ireg .izone a { color: var(--haze); text-decoration: none; }
.ireg .izone a:hover { color: var(--sodium); }
.ireg li[hidden] { display: none; }
.ireg li a { display: grid; grid-template-columns: auto auto minmax(12px, 1fr) auto; align-items: baseline; gap: 0 6px; padding-block: 4px; text-decoration: none; color: var(--moon); font-family: var(--sans); font-size: 0.94rem; }
.ireg li a .lampic { align-self: start; margin-block-start: 0.5em; margin-inline-end: 4px; }   /* on the name's first line */
.ireg li a:hover .iname, .ireg li a:focus-visible .iname, .ireg li.hov .iname { color: var(--sodium); }
.dots { border-block-end: 1px dotted var(--c4A5578); transform: translateY(-4px); }
.ist { font-size: 0.78rem; color: var(--c8E97B6); }
.ist .tick { margin: 0; transform: translateY(2px); }
.icols .none { font-family: var(--sans); color: var(--haze); }
.iloc { position: sticky; top: var(--side-top); }
.iloc figure { margin: 0; }
.locmap.mini .ldots .w { fill: var(--cF7E9C2); }
.locmap.mini .ldots .u { stroke-width: 1.2; }
.locmap.mini .ldots .on { stroke: var(--sodium); stroke-width: 2.5; }
.locmap.mini .mark { opacity: 0; transition: opacity 0.2s; }
.locmap.mini .mark.on { opacity: 1; }
.locmap.mini .mk1 { fill: none; stroke: var(--sodium); stroke-width: 2; vector-effect: non-scaling-stroke; }
.locmap.mini .mk2 { fill: none; stroke: var(--sodium); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.iloc figcaption { font-family: var(--sans); font-size: 0.88rem; color: var(--haze); margin-block-start: var(--s3); min-height: 3em; }
.iloc figcaption b { color: var(--moon); font-weight: 600; }

/* ---------- not found, under construction, a moved page ---------- */
.p-404 #main { min-height: 55vh; }
.p-moved main { padding-block: 40px; font-family: var(--sans); }

/* ---------- footer (the family's) ---------- */
.foot { border-block-start: 1px solid var(--rule); background: var(--dusk); padding-block: 40px 48px; font-size: 0.95rem; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; }
.foot h2 { font-size: var(--t-lg); margin-block-end: 12px; font-weight: 400; }
.side { display: grid; gap: 28px; align-content: start; }
.fcontact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.fcontact li { display: grid; gap: 2px; align-content: start; }
.fcontact .k { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--haze); }
.fcontact a { font-family: var(--sans); font-size: 1rem; overflow-wrap: anywhere; }
.fcontact .legal { display: flex; gap: 20px; margin: 18px 0 0; font-family: var(--sans); font-size: 0.82rem; }
.fcontact .legal a { color: var(--haze); }
.fcontact .legal .copy { color: var(--haze); }   /* the copyright line (2026-11-20), quiet like the links */
.fcontact .legal { flex-wrap: wrap; row-gap: 8px; } .fcontact .legal > * { white-space: nowrap; }   /* a phone: whole items to the next line, never a word broken */
.colophon { color: var(--haze); font-size: var(--t-sm); max-width: var(--measure); border-block-start: 1px solid var(--rule); padding-block-start: 20px; }
.colophon p { margin-block-end: 0.6em; text-wrap: balance; text-wrap: pretty; }

/* ================= "In this study": a topic's tie to the study, set apart from the general text ================= */
/* <aside class="in-study"><p class="in-study-h">In this study</p> ... </aside>, in a topic's text (article.html) */
.in-study { max-width: var(--measure); margin: 24px 0 26px; padding: 12px 18px 4px 16px; border: 1px solid var(--rule); border-inline-start: 2px solid color-mix(in srgb, var(--link) 60%, transparent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--c0D1329); font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; }
.in-study .in-study-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.in-study .in-study-h::before { content: ''; width: 14px; height: 2px; flex: none; background: var(--link); }
.in-study p { margin: 0 0 0.8em; max-width: none; }
.in-study ul, .in-study ol { margin: 0 0 0.8em; padding-inline-start: 1.2em; }
.in-study li { margin-block-end: 0.3em; }
.in-study b { color: var(--cFFFFFF); font-weight: 600; }
.in-study .formula { font-size: 1.15rem; }
.tbody .in-study + p { margin-block-start: 0; }

/* ================= the socket in one picture (dna-socket-in-one-page, Try it): the two stages as rows of boxes ================= */
/* <figure class="socket-fig"><p><b>stage</b></p><ul><li>box, with its link</li> ...</ul> (twice), <p>note</p>, <figcaption> */
.socket-fig { margin: var(--s2) 0 var(--s6); padding: var(--s5); border: 1px solid var(--frame); border-radius: var(--radius-lg); background: var(--c0D1329); font-family: var(--sans); font-size: 0.9375rem; line-height: 1.45; }
.socket-fig > p { margin: 0 0 var(--s3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--haze); }
.socket-fig > p b { font-weight: 600; color: inherit; }
.socket-fig ul { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s4) var(--s5); }
.socket-fig li { position: relative; display: block; min-height: 72px; margin: 0; padding: var(--s3) var(--s4); border: 1px solid var(--c3A4466); border-radius: var(--radius); background: var(--dusk); color: var(--moon); text-wrap: balance; }
.socket-fig li + li::before { content: '\2192'; position: absolute; inset-inline-start: calc(-1 * var(--s5) / 2 - 0.5em); top: 50%; width: 1em; text-align: center; transform: translateY(-50%); color: var(--sodium); opacity: 0.8; }
.socket-fig ul ~ ul + p { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px dashed var(--cE9D49C88); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--moon); }
.socket-fig ul ~ ul + p b { color: var(--sodium); font-weight: 600; }
.socket-fig figcaption { font-size: 0.875rem; color: var(--haze); }
@media (max-width: 640px) {   /* a phone: the boxes one under another, the arrows pointing down */
  .socket-fig { padding: var(--s4); }
  .socket-fig ul { grid-template-columns: 1fr; gap: var(--s5); }
  .socket-fig li { min-height: 0; }
  .socket-fig li + li::before { content: '\2193'; inset-inline-start: 50%; top: calc(-1 * var(--s5) / 2 - 0.6em); transform: translateX(-50%); }
}

/* ================= narrower screens ================= */
@media (max-width: 1180px) {
  .icols { columns: 1; }
  .igrid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
}
@media (max-width: 960px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .tside { position: static; max-height: none; overflow: visible; margin-block-start: var(--s7); }
  .s-mid { overflow: visible; mask-image: none; }   /* the column after the text: no scroll box of its own, a swipe on it scrolls the page (Arash, 2026-11-06) */
  .t-leads .onpaths { display: none; }   /* the column, right after, has them */
  .pathcard { grid-template-columns: minmax(0, 1fr); }
  .pp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "text"; }
  .pp-stick { position: static; }
  .pp-side { margin-block-start: var(--s6); }
}
@media (max-width: 720px) {
  /* every frame (the path's bar, a cell, a figure, a card, the column, a map) reaches 8 px from the screen's edge; the
     words stay on the 16 px edge */
  :root { --t-2xl: 1.75rem; --bleed: calc(-1 * var(--gutter) + var(--s2)); }
  .strip .wrap { gap: 0 var(--s4); padding-block: var(--s2) 0; }
  .strip ul { gap: 0 var(--s5); font-size: 0.9rem; }
  .strip nav a { --mx: 0px; min-height: 44px; }
  .zoomctl { inset-inline-end: var(--s2); }
  .mapfoot { inset-inline-start: var(--s3); gap: 2px var(--s3); font-size: 0.74rem; }
  .mapfoot span { display: none; }
  .hint { inset-inline: 50% auto; transform: translateX(-50%); min-height: 28px; font-size: 0.76rem; }
  .world .rname { font-size: 12.5px; letter-spacing: 0.14em; }
  .card.sheet { max-height: 60svh; padding: var(--s2) var(--s4) 0; }
  .card.sheet .acts { position: sticky; bottom: 0; margin: var(--s4) calc(-1 * var(--s4)) 0; padding: var(--s3) var(--s4) var(--s4); border-block-start: 1px solid var(--rule); background: var(--c10162D); box-shadow: 0 -16px 16px -4px var(--c10162D); }   /* Open stays in reach; what scrolls under it fades into it */
  .world .pstops .pk { transform: scale(calc(var(--u) * 0.8)); }   /* a whole route on a phone: smaller stops */
  .card h2 { font-size: 1.3rem; }
  .card .c-rel { gap: var(--s3); }
  .card .c-paths li { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .card .c-paths .btn { justify-self: start; }
  .phead h1 { font-size: 2.4rem; }
  .igrid { grid-template-columns: minmax(0, 1fr); }
  .iloc { position: static; order: -1; }
  .iloc figcaption { min-height: 0; }
  .find input { width: 100%; }
  .find { flex: 1 1 100%; }
  .pathbar { margin: 0 var(--bleed) var(--s5); }
  .tside, .checks, .ns-go, .in-study, .socket-fig, .uclist, .pathcard, .pathmap .locmap, .iloc .locmap { margin-inline: var(--bleed); }
  .pathmap .locmap, .iloc .locmap { width: calc(100% - 2 * var(--bleed)); max-width: none; }
  .tside { width: auto; }
  .before { gap: var(--s2); }
  .b-k { flex: 1 0 100%; }
  .tsec { padding-block-start: var(--s6); }
  .tsec + .tsec { margin-block-start: var(--s6); }
  .tsec > h2, .pathtext h2 { font-size: 1.3rem; margin-block-end: var(--s4); }
  .checks summary { grid-template-columns: 1.25rem minmax(0, 1fr); padding: var(--s3) var(--s3) var(--s3) var(--s3); gap: var(--s2) var(--s2); }
  .checks .qa { grid-column: 2; justify-self: start; margin-block-start: 0; }
  .checks .ans { padding: var(--s3) var(--s3) var(--s1) calc(var(--s3) + 1.25rem + var(--s2)); }
  .tsec figure.fig:not(.out figure) { padding: var(--s3) var(--s3) var(--s2); margin-inline: var(--bleed); }
  .in-study { margin-block: 20px 22px; padding: 10px 12px 2px 12px; font-size: 0.93rem; }
  .socket-fig { padding: 12px 12px 10px; }
  .socket-fig ul { flex-direction: column; gap: 18px; }
  .socket-fig li + li::before { content: '\2193'; inset-inline-start: 50%; top: -17px; transform: translateX(-50%); }
  .pathcard { padding: var(--s3); gap: var(--s4); }
  .ph-act .btn, .pc-btns .btn { flex: 1 1 auto; }
  .ph-act .btn, .pc-btns .btn { white-space: normal; text-align: center; padding-block: 6px; }   /* a long label ("Start: Attention Is All You Need") wraps in its half, not clipped */
  .ph-act:has(> .btn + .btn), .pc-btns { display: grid; grid-auto-columns: minmax(0, 1fr); justify-self: stretch; }   /* a phone: the two halves of the width */
  .pc-text { padding: 0 var(--s1) var(--s1); }
  .readbtn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .checks .qa::after { transition: none; }
  .world .lbl, .world .desc, .world .rn, .world .road { transition: none; }
}
@media print { .tside, .pathbar, .ctl, .strip-path { display: none !important; } .strip { position: static; } .tgrid { grid-template-columns: minmax(0, 1fr); } }

/* the map made easier to read (2026-11-06, Arash: "hard to navigate and understand, so don't change it too much"): each zone
   a firmer border (the tints were dropped: Arash did not like the colours), a row of the lands to fly to, and a key to the dots */
.landctl { inset-block-start: var(--s5); inset-inline-end: var(--edge-r); display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; max-width: calc(100% - 22rem); overflow: visible; }
.lm { position: relative; }
.lm-b { padding: 6px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 0.8125rem; color: var(--moon); cursor: pointer; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.lm-b::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-start: 7px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: 0.7; }
.lm-b:hover, .lm.open .lm-b { background: var(--hover); color: var(--sodium); }
.lm.cur .lm-b { color: var(--sodium); box-shadow: inset 0 0 0 1px var(--cE9D49C66); }
.lm-panel { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; width: 17rem; padding: 6px; background: var(--night); border: 1px solid var(--frame); border-radius: var(--radius-lg); box-shadow: 0 14px 34px var(--c000000AA); font-family: var(--sans); z-index: 4; }
.lm-panel a { display: flex; align-items: center; gap: 8px; text-decoration: none; border-radius: var(--radius); }
.lm-panel ul { list-style: none; margin: 0; padding: 0; }
.lm-land { padding: 8px 12px; font-size: 0.86rem; font-weight: 600; color: var(--moon); }
.lm-zs { margin-block-start: 2px; }
.lm-zi { position: relative; }
.lm-z { padding: 7px 12px; font-size: 0.86rem; color: var(--moon); }
.lm-z::after { content: ''; width: 5px; height: 5px; margin-inline-start: 6px; border-right: 1.4px solid currentColor; border-top: 1.4px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.lm-n { margin-inline-start: auto; font-size: 0.72rem; color: var(--haze); }
.lm-zi.open > .lm-z { background: var(--hover); color: var(--sodium); }
.lm-h { margin: 8px 12px 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--c8D96B6); }
.lm-loose { max-height: min(46vh, 360px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--c3A4270) transparent; }
.lm-sub { position: absolute; inset-block-start: -7px; inset-inline-end: calc(100% + 10px); width: 17rem; max-height: min(64vh, 520px); overflow-y: auto; padding: 6px; background: var(--night); border: 1px solid var(--frame); border-radius: var(--radius-lg); box-shadow: 0 14px 34px var(--c000000AA); scrollbar-width: thin; scrollbar-color: var(--c3A4270) transparent; }
.lm-sh { display: flex; align-items: center; gap: 6px; margin: 4px 6px 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--cB4BBD3); }
.lm-back { display: none; width: 26px; height: 26px; border: 1px solid var(--edge); border-radius: var(--radius); background: none; color: var(--moon); font-size: 1rem; line-height: 1; cursor: pointer; }
.lm-p { padding: 5px 12px 5px 26px; font-size: 0.84rem; color: var(--c8D96B6); position: relative; }
.lm-p::before { content: ''; position: absolute; inset-inline-start: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; border: 1px dashed var(--c8D96B6); }
.lm-p.w { color: var(--moon); }
.lm-p.w::before { border: 0; background: var(--cF7E9C2); }
.lm-panel a:hover, .lm-panel a:focus-visible { background: var(--hover); color: var(--sodium); }
.lm-panel a.cur { color: var(--sodium); background: var(--cE9D49C14); }
.mapkey { position: absolute; z-index: 2; inset-block-end: calc(var(--s4) + 34px); inset-inline-start: var(--edge-x); display: flex; gap: 16px; margin: 0; font-family: var(--sans); font-size: 0.78rem; color: var(--c9AA3C2); pointer-events: none; }
.mapkey span { display: inline-flex; align-items: center; gap: 6px; }
.mapkey i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.mapkey .k-w { background: var(--cF7E9C2); box-shadow: 0 0 8px var(--cF7E9C2AA); }
.mapkey .k-c { border: 1.3px dashed var(--cC8CEE3); width: 8px; height: 8px; }
.mapkey .k-p { width: 18px; height: 0; border-radius: 0; border-top: 2px solid var(--sodium); }
.explore-b { display: none; }
.lm-top { display: flex; align-items: center; gap: 6px; margin: 0; }
.lm-top .lm-land { flex: 1; }
.lm-up { display: none; width: 32px; height: 32px; flex: none; border: 1px solid var(--edge); border-radius: var(--radius); background: none; color: var(--moon); font-size: 1rem; line-height: 1; cursor: pointer; }
@media (max-width: 720px) {
  /* a phone (2026-11-06, Arash: the menu hid the Paths control, and an open menu hid the map): one bar at the foot,
     Paths and Explore; each opens a sheet over the lower part of the map, the map in view above it, one sheet at a time */
  .atlas { --bar: 44px; --sheet-h: min(46svh, 420px); --sheet-b: calc(var(--bar) + 2 * var(--s2)); }
  .pathctl, .pathctl.folded, .pathctl:not(.folded) { inset-block: auto var(--s2); inset-inline: var(--s2) auto; width: calc(50% - 12px); max-width: none; max-height: none; flex-direction: column-reverse; }
  .pathctl:not(.folded) { inset-inline-end: var(--s2); width: auto; }
  .pathctl .pc-body { border-block-start: 0; border-block-end: 1px solid var(--frame); max-height: var(--sheet-h); }
  .pathctl .pc-steps { max-height: none; }
  .pc-fold { min-height: var(--bar); }
  .pc-fold[aria-expanded="false"]::after, .explore-b[aria-expanded="false"]::after { transform: translateY(2px) rotate(-135deg); }   /* opens upwards */
  .explore-b { display: flex; align-items: center; gap: 10px; inset-block: auto var(--s2); inset-inline: auto var(--s2); width: calc(50% - 12px); min-height: var(--bar); padding: 0 var(--s3) 0 14px; color: var(--moon); font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
  .explore-b::after { content: ''; margin-inline-start: auto; width: 7px; height: 7px; flex: none; border: solid var(--haze); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
  .explore-b svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--sodium); stroke-width: 1.4; stroke-linejoin: round; }
  .explore-b:focus-visible { outline-offset: -3px; }
  .pc-open .explore-b, .exploring .pathctl { display: none; }
  .exploring .explore-b, .atlas:not(.routed) .explore-b { inset-inline-start: var(--s2); width: auto; }
  .landctl { display: none; }
  .exploring .landctl { display: block; inset-block: auto var(--sheet-b); inset-inline: var(--s2); max-width: none; height: var(--sheet-h); overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
  .exploring.lm-on .landctl { visibility: hidden; }
  .lm { position: static; }
  .lm-b { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius); font-size: 0.9rem; }
  .lm-b::after { margin-inline-start: auto; transform: rotate(-45deg); }
  .lm-panel { position: absolute; inset-block: auto var(--sheet-b); inset-inline: var(--s2); width: auto; height: var(--sheet-h); overflow-y: auto; overscroll-behavior: contain; z-index: 5; }
  .lm-sub { position: static; width: auto; max-height: none; border: 0; box-shadow: none; padding: 0; }
  .lm-panel.drilled > .lm-top, .lm-panel.drilled > .lm-h, .lm-panel.drilled > .lm-loose, .lm-panel.drilled .lm-zi:not(.open), .lm-panel.drilled .lm-zi.open > .lm-z { display: none; }
  .lm-back, .lm-up { display: inline-grid; place-items: center; }
  .lm-top .lm-h { margin: 0 6px; }
  .lm-loose { max-height: none; }
  .zoomctl { inset-block-end: calc(var(--sheet-b) + 28px); }
  .mapfoot { inset-block-end: var(--sheet-b); }
  .mapkey { inset-block-end: calc(var(--sheet-b) + 34px); gap: 12px; }
  .hint { inset-block: var(--s3) auto; }
  .exploring .zoomctl, .exploring .mapfoot, .exploring .mapkey, .exploring .hint, .pc-open .zoomctl, .pc-open .mapfoot, .pc-open .mapkey, .pc-open .hint { display: none; }
  .world:not(.zn0) .zname { opacity: 0; }   /* a phone, far out: no room for the zones' names beside the lands' */
  .world:not(.ready) { visibility: hidden; }   /* a phone: the map waits for its first view (2026-11-17, Arash: a flicker on opening) */
  .world { transform-origin: 50% 50%; }   /* a phone: moved as one picture while it moves (atlas.js, apply); drawn only inside the window
     (2026-11-17: drawn beyond it, the sea alone was thousands of device pixels wide and the phone dropped frames) */
  .world.ready .pl.w .glow { animation: none; }
  .world .terrain { display: none; }   /* a phone: the terrain comes from one image (.world-bg), drawn from a cached bitmap */
  .world .world-bg { display: inline; }   /* a phone: the lamps are lit at once, without 123 separate animations over the map */
  /* a phone: the lines keep their width on the screen by the zoom factor (--u) instead of non-scaling strokes, which the
     browser recomputes on every redraw and which cost most of a redraw (2026-11-17, measured 44 ms against 20 ms) */
  .world .land, .world .band, .world .water path, .world .rc, .world .zc, .world .road, .world .proute .pr-case, .world .proute .pr-line, .world .proute .pr-cross { vector-effect: none; }
  .world .land { stroke-width: calc(1.15 * var(--u)); }
  .world .band { stroke-width: calc(0.6 * var(--u)); }
  .world .water path { stroke-width: calc(0.8 * var(--u)); }
  .world .rc, .world .zc, .world .road { stroke-width: calc(1.6 * var(--u)); }
  .world .rc.sel { stroke-width: calc(2.4 * var(--u)); }
  .world .road.rout { stroke-dasharray: calc(5 * var(--u)) calc(4 * var(--u)); }
  .world .proute .pr-case { stroke-width: calc(7 * var(--u)); }
  .world .proute .pr-line { stroke-width: calc(3 * var(--u)); }
  .world .proute .pr-cross { stroke-width: calc(1.6 * var(--u)); stroke-dasharray: calc(1 * var(--u)) calc(6 * var(--u)); }
}
/* a heavy map (the draft site's 1,500 places, 2026-11-29: "extremely heavy"): drawn as on a phone on every screen: the
   terrain as one cached image, lines scaled by --u instead of non-scaling strokes, no lamp animations, moved as one
   picture while it moves (atlas.js, HEAVY) */
.world.heavy { transform-origin: 50% 50%; overflow: visible; }   /* drawn beyond the window too: a flight to another land shows the map on its way, not the sea alone */
/* the lands' menu in groups (the draft map): a row per group, its name in the small capitals of the other labels */
.landctl.grouped { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.lm-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.lm-gn { flex: none; width: 9rem; white-space: nowrap; margin: 0; padding-inline: 10px 6px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); }
@media (max-width: 720px) { .lm-grp { display: block; } .lm-gn { width: auto; padding: 12px 10px 4px; } }
.world.heavy .world-bg { display: inline; }
.world.heavy .pl.w .glow { animation: none; }
.world.heavy .land, .world.heavy .band, .world.heavy .water path, .world.heavy .rc, .world.heavy .zc, .world.heavy .road, .world.heavy .proute .pr-case, .world.heavy .proute .pr-line, .world.heavy .proute .pr-cross { vector-effect: none; }
.world.heavy .rc, .world.heavy .zc, .world.heavy .road { stroke-width: calc(1.6 * var(--u)); }
.world.heavy .rc.sel { stroke-width: calc(2.4 * var(--u)); }
.world.heavy .road.rout { stroke-dasharray: calc(5 * var(--u)) calc(4 * var(--u)); }
.world.heavy .proute .pr-case { stroke-width: calc(7 * var(--u)); }
.world.heavy .proute .pr-line { stroke-width: calc(3 * var(--u)); }
.world.heavy .proute .pr-cross { stroke-width: calc(1.6 * var(--u)); stroke-dasharray: calc(1 * var(--u)) calc(6 * var(--u)); }
/* the Theme button in the header and its list (theme.js, themes.py; 2026-11-06) */
.strip nav li.th { position: relative; display: flex; align-items: center; margin-inline-start: var(--s3); padding-inline-start: var(--s4); border-inline-start: 1px solid var(--rule); }
.th-b { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 0; background: none; font: inherit; color: var(--haze); cursor: pointer; padding: 0; transition: color 0.15s; }
.th-b:hover, .th-b[aria-expanded="true"] { color: var(--moon); }
.th-sw { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--sodium) 50%, var(--frame) 50%); box-shadow: 0 0 0 1px var(--edge); }
.th-list { position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; z-index: 20; width: 18rem; padding: 6px; background: var(--night); border: 1px solid var(--frame); border-radius: var(--radius-lg); box-shadow: 0 14px 34px var(--c000000AA); font-family: var(--sans); }
.th-o { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius); background: none; font: inherit; font-size: 0.86rem; color: var(--moon); text-align: start; cursor: pointer; }
.th-o:hover { background: var(--hover); }
.th-o[aria-checked="true"] { background: var(--cE9D49C14); color: var(--sodium); }
.th-o small { margin-inline-start: auto; color: var(--haze); font-size: 0.72rem; }
.th-g { margin: 6px 10px 4px; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); }   /* the themes in two groups, dark and light (2026-11-21) */
.th-list [role="group"] + [role="group"] { margin-block-start: 4px; padding-block-start: 2px; border-block-start: 1px solid var(--rule); }
.th-chips { display: inline-flex; }
.th-chips i { display: block; width: 12px; height: 18px; }
.th-chips i:first-child { border-radius: 4px 0 0 4px; } .th-chips i:last-child { border-radius: 0 4px 4px 0; }
/* path shelves (2026-11-07): My studies, Papers, Bases on /paths; a path's base */
.shelf { margin-block-end: var(--s7); }
.shelf-h { margin: 0 0 var(--s2); font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--sodium); }
.shelf-note { margin: 0 0 var(--s4); max-width: 60ch; font-family: var(--sans); font-size: 0.92rem; color: var(--haze); }
.ph-base { margin: calc(-1 * var(--s2)) 0 var(--s4); max-width: 56ch; font-family: var(--sans); font-size: 0.9rem; color: var(--haze); }
/* the map's land menu on a tablet (2026-11-20, Arash: "On a tablet the maps menus were going into 2 rows"): one row from
   721 to 1219 px. Its 723 px wrapped below about 1080 px (22 rem kept for the Paths panel), and up to 1210 px it overlapped
   or touched the Paths panel of an open route (iPad landscape, 1180 px). Here the menu takes the whole top row, slightly
   tighter, and the Paths panel sits under it; wider screens and the phone are as before */
@media (min-width: 721px) and (max-width: 1219px) {
  .landctl { max-width: calc(100% - var(--edge-x) - var(--edge-r)); flex-wrap: nowrap; gap: 0; }
  .lm-b { padding-inline: 8px; }
  .lm-b::after { margin-inline-start: 5px; }
  .pathctl { inset-block-start: calc(var(--s5) + 43px + var(--s2)); max-height: calc(100% - 147px); }   /* under the bar (43 px), 8 px apart */
  .lm { position: static; }   /* every land's panel opens under the bar's right end, its side panel to its left: both fit */
}

/* the drafts (2026-11-28): the draft site's mark in the header, the note on a draft page, the list on /drafts */
.strip nav .draft-on { display: inline-flex; align-items: center; min-height: 40px; padding-inline: var(--s3); color: var(--sodium); }
@media (min-width: 721px) { .strip nav .draft-on { min-height: var(--strip-h); } }
.strip a.site.armed { color: var(--sodium); text-decoration: underline 2px; text-underline-offset: 7px; }   /* the switch's double click is in: one click more, after a pause */
.draft-toast { position: fixed; z-index: 60; top: 68px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 8px; background: var(--sodium); color: var(--c0A0F1F); font: 600 0.9rem/1.3 var(--sans, sans-serif); transition: opacity 0.6s; }
.draft-toast.gone { opacity: 0; }
.draft-note { margin: 16px 0 0; padding: 8px 12px; border: 1px dashed var(--sodium); border-radius: 8px; font-size: 0.85rem; max-width: 52rem; }
