/* Awakening from the Meaning Crisis, a visual guide. Design notes: ../../DESIGN.md
   Light theme: a whiteboard written with a black marker; the one red marker marks the point to keep.
   Dark theme: the same board as a blackboard, with yellow chalk for the point to keep. */

:root {
  --field: #F8F9F7;
  --ink: #17202B;
  --ink-2: #47525E;
  --ink-3: #5C6772;
  --rule: #D5DAD6;
  --rule-strong: #A9B0AE;
  --line: #7B858B;
  --accent: #B4232A;
  --accent-wash: rgba(180, 35, 42, 0.07);
  --accent-field: #F3EAE9;      /* the wash laid on the field, as one solid colour for marked boxes */

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --measure: 36em;
  --margin-col: 15rem;
  --t-caption: 0.8125rem;
  --t-note: 0.9rem;
  --t-h3: 1.25rem;
  --t-h2: 1.6rem;
  --t-h1: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field: #1C2622; --ink: #EDEFE9; --ink-2: #B7BFB8; --ink-3: #98A29B;
    --rule: #2F3D37; --rule-strong: #4C5D55; --line: #6F8077;
    --accent: #F2C94C; --accent-wash: rgba(242, 201, 76, 0.11); --accent-field: #343827;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --field: #1C2622; --ink: #EDEFE9; --ink-2: #B7BFB8; --ink-3: #98A29B;
  --rule: #2F3D37; --rule-strong: #4C5D55; --line: #6F8077;
  --accent: #F2C94C; --accent-wash: rgba(242, 201, 76, 0.11); --accent-field: #343827;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s5); }
body {
  margin: 0; background: var(--field); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.6;
  font-optical-sizing: auto; font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
p { margin: 0 0 var(--s4); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.012em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--ink); }
::selection { background: var(--accent-wash); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.3em; }
.sans, figcaption, .note, .site-header, .site-footer, .kicker, .tag, .meta { font-family: var(--sans); font-feature-settings: "kern", "lnum", "tnum"; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--field); padding: var(--s2) var(--s3); z-index: 50; }
#main:focus { outline: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header and footer ---------- */
.site-header { border-bottom: 1px solid var(--rule); font-size: var(--t-note); }
.site-header .inner, .site-footer .inner {
  max-width: calc(var(--measure) + var(--margin-col) + 2 * var(--s8) + 10rem);
  margin: 0 auto; padding: var(--s4) var(--s6);
}
.site-header .inner { display: flex; align-items: baseline; gap: var(--s5); flex-wrap: wrap; }
.wordmark { font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.wordmark span { color: var(--ink-3); font-weight: 400; font-size: var(--t-note); margin-left: var(--s2); padding-left: var(--s3); border-left: 1px solid var(--rule-strong); }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.site-nav a { display: inline-block; text-decoration: none; color: var(--ink-2); padding: var(--s1) 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.theme-toggle { font: inherit; color: var(--ink-2); background: none; border: 0; padding: var(--s1) 0; min-height: 24px; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { color: var(--ink); }
@media (max-width: 1180px) { .wordmark span { display: none; } }
@media (max-width: 900px) and (min-width: 721px) { .site-header .inner { gap: var(--s2) var(--s4); } .site-nav ul { gap: 0 var(--s3); } }   /* the nav stays on one line at tablet width */

.site-footer { border-top: 1px solid var(--rule); font-size: var(--t-note); color: var(--ink-2); margin-top: var(--s9); }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); padding-top: var(--s5); padding-bottom: var(--s7); }
.site-footer p { margin: 0; max-width: 46em; }
.site-footer .thanks { flex-basis: 100%; }

/* ---------- page grid ---------- */
.page { max-width: calc(var(--measure) + var(--margin-col) + 2 * var(--s8) + 4rem); margin: 0 auto; padding: var(--s8) var(--s6) 0; }
.row { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, var(--margin-col)); column-gap: var(--s8); align-items: start; }
.row > .main { min-width: 0; }
.row.wide { grid-template-columns: minmax(0, 1fr); }
.page-head { margin-bottom: var(--s7); }
.kicker { font-size: var(--t-note); color: var(--ink-3); margin-bottom: var(--s3); }
.kicker a { color: inherit; }
.page-head h1 { font-size: var(--t-h1); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: var(--s5); }
.lede { font-size: 1.3rem; line-height: 1.45; color: var(--ink); max-width: 30em; }
.lede.q { font-style: italic; }
.gist { font-size: 1.1rem; color: var(--ink-2); }
.section { padding-top: var(--s7); margin-top: var(--s7); border-top: 1px solid var(--rule); }
.section h2 { font-size: var(--t-h2); margin-bottom: var(--s4); }
.section h3 { font-size: var(--t-h3); margin: var(--s6) 0 var(--s3); }
.section > .row + .row { margin-top: var(--s5); }
.sec-intro { color: var(--ink-2); font-size: 1.1rem; }

.note { font-size: var(--t-note); line-height: 1.5; color: var(--ink-2); padding-top: 0.25em; }
.note p { margin-bottom: var(--s3); }
.note .label { display: block; font-size: var(--t-caption); font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.toc { font-family: var(--sans); font-size: var(--t-note); line-height: 1.5; color: var(--ink-2); }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-strong); }
.toc li { padding: 3px 0 3px var(--s4); }
.toc a { text-decoration: none; display: inline-block; min-height: 24px; }
.toc a:hover { text-decoration: underline; }
.toc .n { color: var(--ink-3); display: inline-block; min-width: 1.8em; }

/* the point to keep: the only place besides diagram accents and the current nav item where the accent is used */
.keep { border-left: 3px solid var(--accent); padding: var(--s1) 0 var(--s1) var(--s4); margin: var(--s5) 0; }
.keep .k { display: block; font-family: var(--sans); font-size: var(--t-caption); font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.keep p { margin: 0; font-size: 1.2rem; line-height: 1.45; }

.tag { display: inline-block; font-size: var(--t-caption); line-height: 20px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: 0 var(--s2); white-space: nowrap; vertical-align: 0.1em; }
.tag.rec { color: var(--ink); border-color: var(--ink); font-weight: 600; }
a.term { text-decoration-style: dotted; text-decoration-color: var(--line); }
a.term:hover { text-decoration-style: solid; text-decoration-color: var(--accent); }
.tip { position: absolute; z-index: 30; max-width: 21rem; background: var(--field); border: 1px solid var(--ink); padding: var(--s3) var(--s4); font-family: var(--sans); font-size: var(--t-note); line-height: 1.45; pointer-events: none; }
.tip b { display: block; }

/* ---------- lecture pages ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s5) 2.6rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; width: 1.75rem; height: 1.75rem; border: 1.25px solid var(--ink); border-radius: 50%; font-family: var(--sans); font-size: var(--t-note); font-weight: 600; line-height: 1.6rem; text-align: center; }
.steps > li::after { content: ""; position: absolute; left: calc(0.875rem - 0.5px); top: 2.1rem; bottom: 0.2rem; border-left: 1.25px solid var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin: 0 0 var(--s1); letter-spacing: -0.005em; }
.steps p { margin: 0; }
.steps .src { display: block; font-family: var(--sans); font-size: var(--t-caption); color: var(--ink-3); margin-top: var(--s1); }
dl.terms { margin: 0; }
dl.terms dt { font-family: var(--sans); font-weight: 600; margin-top: var(--s4); }
dl.terms dt .aka { font-weight: 400; color: var(--ink-3); font-size: var(--t-note); margin-left: var(--s2); }
dl.terms dd { margin: 0; }
dl.terms dd.more { color: var(--ink-2); font-size: 1rem; margin-top: 2px; }
dl.terms .meta { font-size: var(--t-caption); color: var(--ink-3); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain > li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
ul.plain > li:first-child { border-top: 1px solid var(--rule); }
.who { font-family: var(--sans); font-weight: 600; }
.by { font-family: var(--sans); font-size: var(--t-note); color: var(--ink-2); }
.why { display: block; color: var(--ink-2); font-size: 1rem; }
cite.bk { font-style: italic; font-weight: 600; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); font-family: var(--sans); font-size: var(--t-note); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--ink); }
.pager a { text-decoration: none; display: block; }
.pager a:hover .t { text-decoration: underline; }
.pager .d { display: block; color: var(--ink-3); font-size: var(--t-caption); }
.pager .t { font-weight: 600; font-size: 1rem; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- lists of lectures ---------- */
.lec-list { list-style: none; margin: 0; padding: 0; }
.lec-list > li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.lec-list .n { font-family: var(--sans); font-size: var(--t-note); color: var(--ink-3); font-feature-settings: "tnum"; }
.lec-list a.t { font-family: var(--sans); font-weight: 600; text-decoration: none; }
.lec-list a.t:hover { text-decoration: underline; }
.lec-list .q { display: block; color: var(--ink-2); font-size: 1rem; }
.part-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.part-head .range { font-family: var(--sans); font-size: var(--t-note); color: var(--ink-3); }

/* ---------- filters and index pages ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; font-family: var(--sans); font-size: var(--t-note); margin: 0 0 var(--s5); }
.filter input[type="search"] { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 2px; padding: var(--s2) var(--s3); min-width: 0; width: 18rem; max-width: 100%; }
.filter label { display: inline-flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; min-height: 24px; max-width: 100%; }
.filter .count { color: var(--ink-3); }
.az { display: flex; flex-wrap: wrap; gap: 2px var(--s1); font-family: var(--sans); font-size: var(--t-note); margin-bottom: var(--s5); padding: 0; list-style: none; }
.az a { display: inline-block; min-width: 24px; min-height: 24px; text-align: center; text-decoration: none; }
.az a:hover { text-decoration: underline; }
.entry { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.entry h3, .entry h4 { font-size: 1.1rem; margin: 0 0 var(--s1); }
.entry h3 .aka, .entry h3 .dates { font-weight: 400; color: var(--ink-3); font-size: var(--t-note); margin-left: var(--s2); }
.entry p { margin: 0 0 var(--s1); }
.entry .more { color: var(--ink-2); font-size: 1rem; }
.entry .in { font-family: var(--sans); font-size: var(--t-caption); color: var(--ink-3); }
.entry .in a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
.entry:target { background: var(--accent-wash); box-shadow: -12px 0 0 var(--accent-wash), 12px 0 0 var(--accent-wash); }
.letter, .section h3.letter { font-size: var(--t-h3); margin: var(--s7) 0 0; padding-bottom: var(--s1); border-bottom: 1px solid var(--ink); }
[hidden] { display: none !important; }

/* ---------- diagrams ---------- */
figure { margin: var(--s6) 0 var(--s7); }
figcaption { font-size: var(--t-note); line-height: 1.5; color: var(--ink-2); margin-top: var(--s4); max-width: 40em; }
figcaption b { color: var(--ink); font-weight: 600; margin-right: 0.3em; }
.dgm { font-family: var(--sans); }
.dgm .label { display: block; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.dgm .sub { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); margin-top: 3px; }
.dgm .node { display: block; position: relative; z-index: 1; background: var(--field); border: 1.25px solid var(--ink); border-radius: 3px; padding: var(--s2) var(--s3); text-align: center; color: inherit; text-decoration: none; }
.dgm .node.accent { border: 2px solid var(--accent); background: var(--accent-field); }
.dgm a.node:hover, .dgm a.node:focus-visible { border-color: var(--accent); outline-offset: 3px; }
.dgm a.node .label { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.18em; }
.dgm-text { font-size: var(--t-caption); color: var(--ink-2); margin-top: var(--s2); }
.dgm-text summary { cursor: pointer; display: inline-block; min-height: 24px; color: var(--ink-3); text-decoration: underline dotted; text-decoration-color: var(--line); text-underline-offset: 0.18em; list-style: none; }
.dgm-text summary::-webkit-details-marker { display: none; }
.dgm-text[open] summary { color: var(--ink-2); }
.dgm-text ul { margin: var(--s2) 0 0; }

.flow { position: relative; display: flex; flex-direction: column; gap: 52px; padding: var(--s2) 44px; }
.flow-row { display: flex; justify-content: center; gap: var(--s5); }
.flow-row .node { flex: 0 1 13.5rem; min-width: 0; align-self: center; }
.flow-row.n1 .node { flex-basis: 17rem; }
.flow.has-side-labels .flow-row { gap: 6.5rem; }
.dgm-cycle .flow-row { gap: 6.5rem; }
.dgm-cycle .flow-row .node { flex-basis: 13rem; }
.flow-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-edges .edge { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.flow-edges .edge.dashed { stroke-dasharray: 5 4; }
.flow-edges .head { fill: var(--ink); stroke: none; }
.edge-label { position: absolute; z-index: 2; transform: translate(-50%, -50%); background: var(--field); padding: 0 5px; font-size: 0.75rem; line-height: 1.25; color: var(--ink-2); text-align: center; max-width: 9.5rem; }
.edge-label.side { max-width: 6.1rem; transform: translate(-50%, calc(-100% - 4px)); padding: 0 2px; }
.edge-label.around { writing-mode: vertical-rl; max-width: none; white-space: nowrap; padding: 3px 0; line-height: 1.1; }
.edge-label.around.left { transform: translate(-50%, -50%) rotate(180deg); }
.flow-row.gap2 { margin-top: 12px; }
.flow-row.gap3 { margin-top: 30px; }
.flow-centre { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.75rem; font-style: italic; color: var(--ink-3); background: var(--field); padding: 0 3px; text-align: center; line-height: 1.2; max-width: 6rem; }

.table-wrap { overflow-x: auto; position: relative; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.4; }
table.cmp thead th { text-align: left; font-weight: 600; padding: 0 var(--s4) var(--s2) 0; border-bottom: 1.25px solid var(--ink); vertical-align: bottom; }
table.cmp thead td { border-bottom: 1.25px solid var(--ink); }
table.cmp tbody th { text-align: left; font-weight: 400; font-size: var(--t-caption); color: var(--ink-3); padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; width: 22%; }
table.cmp td { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cmp td:last-child, table.cmp thead th:last-child { padding-right: 0; }

.opp { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr); align-items: center; row-gap: 0; }
.opp .pole { border: 1.25px solid var(--ink); border-radius: 3px; padding: var(--s3); text-align: center; align-self: stretch; }
.opp .alone { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px dashed var(--line); }
.opp .k { font-weight: 600; color: var(--ink); }
.opp .versus { text-align: center; padding: 0 var(--s1); }
.opp .versus svg { display: block; width: 100%; height: 16px; }
.opp .versus .edge { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.opp .versus .head { fill: var(--ink); }
.opp .versus .axis { display: block; font-size: 0.75rem; line-height: 1.25; color: var(--ink-2); margin-top: var(--s1); }
.opp .stem { grid-column: 1 / -1; justify-self: center; width: 0; height: 30px; border-left: 1.25px solid var(--ink); }
.opp .balance { grid-column: 1 / -1; justify-self: center; width: min(100%, 20rem); }
.opp .balance .k { display: block; font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }

ol.levels { list-style: none; margin: 0; padding: 0 0 0 var(--s5); max-width: 30rem; position: relative; }
ol.levels::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 0; border-left: 1.25px solid var(--ink); }
ol.levels::after { content: ""; position: absolute; left: 0.5px; top: 0; border: 5px solid transparent; border-bottom: 8px solid var(--ink); border-top: 0; }
ol.levels li { border: 1.25px solid var(--ink); border-radius: 3px; padding: var(--s2) var(--s3); margin-top: -1.25px; }
ol.levels li.accent { border: 2px solid var(--accent); background: var(--accent-field); position: relative; z-index: 1; }
.dgm-levels .axis { font-size: 0.8125rem; color: var(--ink-2); margin: var(--s2) 0 0 var(--s5); }

ol.tl { list-style: none; margin: 0; padding: 0; position: relative; }
ol.tl li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: var(--s5); padding: 0 0 var(--s4); position: relative; }
ol.tl li::before { content: ""; position: absolute; left: calc(8.5rem + var(--s5) / 2 - 4.5px); top: 0.42em; width: 9px; height: 9px; border: 1.25px solid var(--ink); border-radius: 50%; background: var(--field); z-index: 1; }
ol.tl li::after { content: ""; position: absolute; left: calc(8.5rem + var(--s5) / 2 - 0.6px); top: 0.42em; bottom: -0.42em; border-left: 1.25px solid var(--line); }
ol.tl li:last-child::after { display: none; }
ol.tl li.accent::before { border-color: var(--accent); background: var(--accent); }
ol.tl .when { font-size: 0.8125rem; color: var(--ink-2); text-align: right; padding-top: 0.12em; font-feature-settings: "tnum", "lnum"; }
ol.tl .what { padding-left: var(--s2); }

/* ---------- the board (home page only) ---------- */
.board { border: 2px solid var(--ink); border-bottom-width: 10px; border-radius: 6px; padding: var(--s6) var(--s5) var(--s5); margin: 0 0 var(--s7); }
.board figure { margin: 0; }
.board .flow { gap: 44px; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin: 0; padding: 0; list-style: none; }
.routes h3 { font-size: 1.05rem; margin: 0 0 var(--s2); }
.routes p { margin: 0; color: var(--ink-2); font-size: 1rem; }
ul.links { list-style: none; padding: 0; margin: 0; }
ul.links li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
ul.links li:first-child { border-top: 1px solid var(--rule); }
ul.links a { font-family: var(--sans); font-weight: 600; }
ul.links span { display: block; color: var(--ink-2); font-size: 1rem; }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > .note, .row > .toc { margin-top: var(--s4); max-width: var(--measure); }
  .page-head .toc { margin-top: var(--s5); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .page { padding: var(--s6) var(--s4) 0; }
  .site-header .inner, .site-footer .inner { padding-left: var(--s4); padding-right: var(--s4); }
  .site-header .inner { gap: var(--s2) var(--s4); }
  .site-nav { order: 3; flex-basis: 100%; }
  .wordmark { flex: 1; }
  .flow { padding: var(--s2) 22px; gap: 46px; }
  .flow-row { gap: var(--s3); }
  .flow.has-side-labels .flow-row, .dgm-cycle .flow-row { gap: 4.6rem; }
  .dgm .node { padding: 6px var(--s2); }
  .dgm .label { font-size: 0.82rem; }
  .dgm .sub { font-size: 0.75rem; }
  .edge-label { font-size: 0.7rem; max-width: 7rem; }
  .edge-label.side { max-width: 4.3rem; }
  .flow-centre { max-width: 3.5rem; font-size: 0.7rem; }
  table.cmp { font-size: 0.82rem; table-layout: fixed; }   /* equal columns: without it one column is squeezed and short words get hyphenated */
  table.cmp thead td { width: 21%; }
  table.cmp th, table.cmp td { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }   /* only long words are broken */
  .opp { grid-template-columns: minmax(0, 1fr) 3.2rem minmax(0, 1fr); }
  .opp .pole { padding: var(--s2); }
  ol.tl li { grid-template-columns: 5.4rem minmax(0, 1fr); column-gap: var(--s4); }
  ol.tl li::before { left: calc(5.4rem + var(--s4) / 2 - 4.5px); }
  ol.tl li::after { left: calc(5.4rem + var(--s4) / 2 - 0.6px); }
  .board { padding: var(--s4) var(--s2); margin-left: calc(-1 * var(--s2)); margin-right: calc(-1 * var(--s2)); }
  .routes { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  table.cmp tbody th { width: 26%; }
  table.cmp td, table.cmp tbody th, table.cmp thead th { padding-right: var(--s3); }
}

@media print {
  .site-header, .site-footer .legend, .theme-toggle, .filter, .pager, .skip { display: none; }
  body { font-size: 11pt; }
  .dgm-text { display: block; }
  figure, .steps > li, .entry { break-inside: avoid; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
