/* Shared typography and controls for the apparatus atlas, results and analysis. */
.section {
  --ink:#21383e; --muted:#526368; --accent:#256870; --edge:#d6dbd4;
  --paper:#fffefa; --panel:#f6f7f1; --panel-strong:#fff; --line:#d5ded9; --line-strong:#98aaa5;
  --tint:#edf4f1; --purple:var(--accent); --purple-ink:#20585e; --purple-gradient:#347179; --panel-shadow:none;
  color:var(--ink); background:var(--paper); border-top:1px solid var(--edge); padding:clamp(46px,5.4vw,82px) 0;
}
#leaderboard { background:#f4f8f6; }
.section-inner { width:min(var(--measure),calc(100% - 2 * var(--margin))); margin-inline:auto; }
.section h2, .section h3, .section h4 { color:var(--ink); text-wrap:balance; }
.section h2 { margin:0 0 14px; font:400 clamp(34px,4vw,58px)/1.07 Georgia,"Times New Roman",serif; letter-spacing:-.055em; }
.section h3 { margin:0 0 14px; font:400 clamp(24px,2.6vw,35px)/1.14 Georgia,"Times New Roman",serif; letter-spacing:-.038em; }
.section h4 { margin:0 0 10px; font:650 17px/1.3 var(--sans); }
.section-intro, .results-head { display:flex; align-items:end; justify-content:space-between; gap:36px; margin:0 0 38px; }
.section-intro p, .results-head p { max-width:65ch; font-size:15px; color:var(--muted); line-height:1.7; }
.statistics { display:flex; margin:0; padding:0; gap:clamp(15px,2.2vw,30px); }
.statistics div { border-left:1px solid var(--line); padding-left:clamp(10px,1.4vw,18px); display:flex; flex-direction:column-reverse; gap:2px; }
.statistics dt { font:600 11px/1.4 var(--sans); color:var(--muted); white-space:nowrap; }
.statistics dd { margin:0; color:var(--ink); font:400 clamp(23px,3.2vw,40px)/1.12 Georgia,serif; font-variant-numeric:lining-nums tabular-nums; }
.section .split-note, .fold p { max-width:75ch; margin:12px 0; color:var(--muted); line-height:1.65; }
.section .fold { border-block:1px solid var(--line); padding:12px 0; margin:15px 0; }
.section details summary { font-size:14px; font-weight:620; cursor:pointer; }
.section details summary::marker { color:var(--accent); }
.section details summary:hover { color:var(--accent); }
.section .web-subsection { margin-top:clamp(34px,5vw,72px); }
.section .web-subsection > h3 { margin-bottom:18px; }
.paper-panel { min-width:0; }
.section .overview-layout { display:grid; grid-template-columns:2fr 1fr; gap:24px; }
.section .overview-layout figure { margin:0; }
.section .case-intro { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 22px; }
.case-intro h3 { margin:0; }
.case-intro a, .related-tables a, .table-lede a, .detail-bar a { color:var(--accent); font:600 13px/1.6 var(--sans); text-underline-offset:.2em; }
#browser { min-width:0; }
.atlas-filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:24px; }
.atlas-filters button { min-height:39px; padding:5px 15px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); font:570 13px/1.3 var(--sans); }
.atlas-filters button:hover { color:var(--ink); background:#e9e9df; }
.atlas-filters button[aria-pressed=true] { color:#205861; background:#e6f0eb; border-color:#86aaa1; }
.domain-specimens { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px clamp(12px,1.6vw,21px); }
.specimen { display:block; min-width:0; color:var(--ink); text-decoration:none; }
#atlas .specimen[hidden], #scene-reader[hidden] { display:none; }
.specimen-photo { display:block; overflow:hidden; border-radius:7px; aspect-ratio:16/9; background:#e0e7e1; }
.specimen-image { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.specimen:is(:hover,:focus-visible) .specimen-image { transform:scale(1.045); }
.specimen-meta { display:flex; justify-content:space-between; align-items:baseline; margin-top:10px; gap:5px; font:500 10px/1.4 var(--mono); letter-spacing:.045em; text-transform:uppercase; color:var(--muted); }
.specimen-name { display:block; margin-top:4px; font:400 clamp(17px,1.8vw,24px)/1.2 Georgia,serif; letter-spacing:-.028em; }
.specimen[aria-current=true] .specimen-photo { outline:2px solid #8b6940; outline-offset:2px; }
.specimen:is(:hover,:focus-visible) .specimen-name { text-decoration:underline; text-underline-offset:.15em; }
#scene-reader { scroll-margin-top:12px; margin-block:38px 24px; border-top:2px solid var(--ink); padding-top:18px; }
#scene-reader:focus { outline:none; }
.selectors, .viewer-toolbar, .pager, .sceneinfo, .reader-actions, .video-caption { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.selectors label, .result-controls label, .detail-bar label { display:grid; gap:5px; color:var(--muted); font:600 12px/1.4 var(--sans); }
.section select, .pager button, .copy, #lightbox button { min-height:39px; border:1px solid var(--line-strong,#879799); border-radius:3px; padding:5px 11px; background:var(--panel-strong,#faf9f4); color:var(--ink,#15232c); font:550 14px var(--sans); }
.section button:focus-visible, .section select:focus-visible, .section a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.viewer-toolbar { justify-content:space-between; margin:12px 0 0; }
.viewer-toolbar > span, .video-caption { font:12px/1.6 var(--mono); color:var(--muted); }
#scene-reader article { margin-top:20px; }
.sceneinfo, .video-caption { justify-content:space-between; }
.reader-actions { gap:16px; }
.strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.strip > figure, .fold figure, .pipeline figure { margin:0; }
.frame-thumb { display:block; width:100%; aspect-ratio:16/9; background-color:var(--tint); background-repeat:no-repeat; }
.strip figcaption { margin-top:3px; font:11px/1.5 var(--mono); text-align:center; }
.section .case-media video { display:block; width:min(100%,960px); margin:11px auto; height:auto; }
.case-media .video-caption { margin:7px auto; width:min(100%,960px); }
.full-explanation { max-height:min(520px,62vh); overflow:auto; overflow-wrap:anywhere; }
#example details { margin-top:12px; }
details .copy { float:right; margin:3px 5px 4px 8px; font-size:12px; }
.section pre { margin:8px 0 16px; padding:13px; overflow-wrap:anywhere; white-space:pre-wrap; background:var(--tint); font:14px/1.65 var(--sans); }
.section .pipeline { max-width:100%; }
figure a.zoom { display:block; cursor:zoom-in; }
figure a.zoom img { display:block; width:100%; height:auto; }
.pipeline figure a.zoom, .fold figure a.zoom, .analysis-spread figure a.zoom { overflow:hidden; background:#fff; border:1px solid var(--line); }
.section figcaption { margin-top:8px; color:var(--muted); font:13px/1.55 var(--sans); }
.fold figure { margin-block:16px; }
.section .analysis-spread { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.65fr); gap:clamp(20px,4vw,76px); border-top:1px solid var(--line); padding-top:21px; }
.analysis-spread .paper-panel > p, .analysis-card p { color:var(--muted); line-height:1.7; font-size:15px; margin:0 0 12px; }
.analysis-spread figure { margin:18px 0 0; }
.analysis-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,3.4vw,55px); }
.analysis-card { border-top:1px solid var(--ink); padding-top:15px; }
.section .analysis-card h4 { font:400 clamp(22px,2vw,29px)/1.18 Georgia,serif; margin:0 0 10px; letter-spacing:-.025em; }
.score-plot { margin:10px 0 0; }
.score-plot > div { display:grid; grid-template-columns:86px minmax(26px,1fr) 45px; gap:7px; align-items:center; font:12px/2 var(--sans); }
.score-plot b { display:block; height:5px; background:linear-gradient(90deg,var(--accent) var(--score),#d9dcd4 var(--score)); }
.score-plot strong { text-align:right; font-variant-numeric:tabular-nums; }
.section .exact-readout { margin:30px 0 0; padding:20px 0; border-block:1px solid var(--line); }
.exact-readout figcaption { margin:0 0 12px; font-weight:650; }
.exact-readout dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(20px,4vw,64px); }
.exact-readout dl > div { display:grid; grid-template-columns:1fr auto; gap:7px 14px; align-items:baseline; }
.exact-readout dt, .exact-readout dd span { color:var(--muted); font:12px var(--sans); }
.exact-readout dd { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:end; gap:5px 10px; margin:0; }
.exact-readout b { color:var(--ink); font:400 29px Georgia,serif; }
.exact-readout i { grid-column:1/-1; height:4px; background:linear-gradient(90deg,var(--accent) var(--value),#d9dcd4 var(--value)); }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.tabs { display:flex; flex-wrap:wrap; gap:4px 16px; align-items:center; border-block:1px solid var(--line); padding:3px 0; margin:24px 0 16px; }
.tabs button { border:0; border-bottom:2px solid transparent; border-radius:0; min-height:42px; padding:5px 2px; background:transparent; color:var(--muted); font:600 14px/1.4 var(--sans); }
.tabs button[aria-pressed=true] { border-bottom-color:var(--ink); color:var(--ink); }
.result-controls, .detail-bar, .detail-bar > div { display:flex; flex-wrap:wrap; align-items:end; gap:10px 15px; }
.result-controls { margin:10px 0 18px; }
.result-controls:not(:has(> :not([hidden]))) { display:none; }
.result-controls fieldset { margin:0; padding:0; border:0; }
.result-controls legend { padding:0 0 4px; font:600 12px var(--sans); color:var(--muted); }
.k-options { display:inline-flex; background:var(--panel); border:1px solid var(--line-strong); border-radius:3px; }
.k-options button { border:0; padding:4px 9px; min-width:38px; min-height:34px; background:transparent; color:var(--ink); font:600 13px var(--sans); }
.k-options button[aria-pressed=true] { background:var(--ink); color:#fff; }
.result-legend { display:flex; flex-wrap:wrap; gap:7px 16px; padding:0; list-style:none; margin:12px 0; color:var(--muted); font:12px/1.4 var(--sans); }
.result-legend li { display:inline-flex; gap:6px; align-items:center; }
.result-legend li::before { content:""; width:12px; height:9px; background:var(--row-fill); border:1px solid var(--line-strong); }
.table-lede { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:baseline; gap:8px; }
.table-lede p, .related-tables, .table-description, .result-status, .sort-hint { color:var(--muted); font:13px/1.65 var(--sans); }
.related-tables { margin:14px 0 0; }
.result-status:empty { display:none; }
.tablewrap { max-width:100%; overflow:auto; margin:10px 0; border-top:2px solid var(--ink); border-bottom:1px solid var(--line-strong); background:#fffefa; }
.tablewrap table { width:100%; border-collapse:separate; border-spacing:0; line-height:1.45; font-size:13px; font-variant-numeric:tabular-nums; }
.tablewrap th, .tablewrap td { padding:9px 11px; text-align:right; border-bottom:1px solid #dce1d9; }
.tablewrap th { font-weight:650; }
.tablewrap thead { background:#e1e8e2; }
.tablewrap thead th { color:#223841; }
.tablewrap thead th button { min-height:30px; padding:0; color:inherit; font:inherit; background:none; border:0; text-align:inherit; }
.tablewrap th:first-child, #detail-table .text, .check-table th, .check-table td { text-align:left; }
#results .group th { background:#dbe4de; text-align:left; letter-spacing:.06em; text-transform:uppercase; font:650 11px/1.5 var(--sans); }
#leaderboard [data-group="Proprietary Models"], #leaderboard [data-group^="Training-Based"] { --row-fill:#f8f5ec; --row-hover:#eeeadd; }
#leaderboard [data-group="Open-Weight Models"], #leaderboard [data-group^="Training-Free"] { --row-fill:#f1f7f4; --row-hover:#e4eee8; }
#results tbody tr:not(.group) { background:var(--row-fill,#fffefa); }
#results tbody tr:not(.group):hover { background:var(--row-hover,#e8eeea); }
#results td.best { color:#204957; font-weight:800; }
#results td.runner-up { text-decoration:underline; text-underline-offset:.2em; }
#results th[scope=row] { white-space:nowrap; text-align:left; }
.check-table th, .check-table td { overflow-wrap:anywhere; }
.detail-bar { padding:10px 0; }
.detail-bar label, .detail-bar select, .detail-bar > div { max-width:100%; min-width:0; }
.detail-bar a { margin-left:auto; }
#detail-table th, #detail-table td { vertical-align:top; }
#detail-table td.text { min-width:95px; }
#detail-table td.long-text { min-width:200px; white-space:normal; }
.section .data-disclosure { margin-top:26px; padding:0; border-block:1px solid var(--line-strong); }
.section .data-disclosure > summary { display:flex; justify-content:space-between; align-items:center; padding:19px 1px; list-style:none; color:var(--ink); font:400 clamp(22px,2.25vw,31px)/1.2 Georgia,serif; }
.section .data-disclosure > summary::-webkit-details-marker { display:none; }
.section .data-disclosure > summary::after { content:'+'; color:var(--accent); font:400 25px/1 var(--sans); }
.section .data-disclosure[open] > summary::after { content:'−'; }
.section .data-disclosure[open] { padding-bottom:15px; }
#detailed-results .tablewrap { max-height:min(72vh,660px); }
#detail-table thead { position:sticky; top:0; z-index:1; }
#detail-table th { white-space:nowrap; }
#lightbox { max-width:96vw; max-height:94dvh; padding:12px; border:0; border-radius:4px; background:#f5f3ec; }
#lightbox::backdrop { background:#10191eda; }
#lightbox header { display:flex; justify-content:flex-end; gap:8px; margin-bottom:8px; }
.lightbox-stage { max-height:80dvh; overflow:auto; }
#lightbox.actual-size { width:95vw; }
#lightbox img { display:block; width:auto; max-width:100%; max-height:80dvh; object-fit:contain; }
#lightbox.actual-size img { max-height:none; max-width:none; }


#viewer, #scores, #overview, #analysis { scroll-margin-top:12px; }
.section .results-head { display:block; margin-bottom:20px; }
.section .results-head p { max-width:77ch; font-size:16px; line-height:1.57; }
#scores { margin:38px 0 14px; }
.study-details { margin-top:36px; }
.study-details .study-fold { border:0; border-bottom:1px solid var(--line); margin:0; padding:0; }
.study-details .study-fold:first-of-type { border-top:1px solid var(--line); }
.study-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 0; list-style:none; color:var(--ink); font:600 16px/1.4 var(--sans); }
.study-fold > summary::-webkit-details-marker { display:none; }
.study-fold > summary::after { content:"+"; color:var(--accent); font:400 22px/1 var(--sans); }
.study-fold[open] > summary::after { content:"−"; }
.study-body { padding:0 0 20px; }
.study-body p { max-width:76ch; font-size:16px; }
.study-body img { display:block; max-width:100%; height:auto; }
.study-body figure { max-width:900px; margin:20px auto; }
#leaderboard .results-studies { margin-top:42px; }
#leaderboard .tabs { gap:0 clamp(12px,2vw,26px); border-top:0; }
.section .data-disclosure { margin:20px 0; }
.section .data-disclosure > summary { font:600 16px/1.4 var(--sans); }
.citation { background:#fcfaf4; }
.citation-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.section .copy-citation { color:var(--accent); border:1px solid var(--line-strong); background:#fffefa; padding:8px 14px; border-radius:6px; font:600 14px/1.3 var(--sans); }
.section #bibtex { padding:20px 24px; border-left:3px solid #bc785d; background:#f3f0e8; color:#36464a; font:14px/1.65 var(--mono); }
.section #bibtex code { font:inherit; }
@media (min-width:900px) {
  #leaderboard .results-head { display:block; margin:0 0 18px; }
  #leaderboard .tabs { margin:0 0 9px; padding:0; }
  #leaderboard .tabs button { min-height:40px; }
  #leaderboard .result-controls { margin:12px 0; }
  #leaderboard .result-controls legend { float:left; margin-right:12px; line-height:33px; padding:0; }
  #leaderboard .sort-hint { grid-column:2; grid-row:3; text-align:right; margin:0; }
  #leaderboard .table-lede { margin:6px 0 0; align-items:baseline; flex-wrap:nowrap; }
  #leaderboard .table-lede > p { margin:0; max-width:96ch; }
  #leaderboard .table-lede > a { flex-shrink:0; }
  #leaderboard .result-legend { display:none; }
  #leaderboard .leaderboard-panel > .tablewrap { max-height:clamp(590px,69vh,780px); margin:5px 0; }
  #results thead { position:sticky; top:0; z-index:1; }
  #results thead th { background:#e1e8e2; }
  #results thead th, #results thead td { padding-block:5px; }
  #results .group th { padding-block:5px; }
  .analysis-cards { grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(20px,2.5vw,38px); }
  .analysis-card p, .analysis-spread .paper-panel > p:not(.related-tables) { font-size:16px; line-height:1.65; }
  .score-plot { margin-top:17px; }
  .score-plot > div { font-size:13px; padding-block:5px; }
}
@media (max-width:820px) {
  .section-intro { display:block; }
  .statistics { margin:18px 0; }
  .domain-specimens { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .analysis-cards { grid-template-columns:1fr 1fr; }
  .analysis-card:last-child { grid-column:1/-1; }
}
@media (max-width:630px) {
  .section-inner { width:calc(100% - 36px); }
  .section-intro, .results-head { margin-bottom:22px; }
  .section .case-intro { flex-wrap:wrap; gap:4px 14px; }
  .atlas-filters { gap:2px; }
  .atlas-filters button { min-height:36px; padding:5px 8px; font-size:12px; }
  .domain-specimens { grid-template-columns:1fr 1fr; gap:21px 12px; }
  .specimen-meta { font-size:9px; letter-spacing:0; }
  .analysis-cards, .section .analysis-spread, .section .overview-layout, .exact-readout dl { grid-template-columns:1fr; }
  .analysis-card:last-child { grid-column:auto; }
  .section .analysis-spread { gap:0; }
  .exact-readout dl { gap:14px; }
  .tabs { gap:1px 12px; }
  .tabs button { font-size:13px; }
  .section .selectors { align-items:stretch; }
  .selectors label { min-width:0; flex:1; }
  .selectors select { width:100%; }
  .detail-bar a { margin-left:0; }
  #results th[scope=row], #results thead th:first-child { position:sticky; left:0; max-width:152px; white-space:normal; background:var(--row-fill,#fffefa); box-shadow:1px 0 var(--line); }
  #results thead th:first-child { background:#e1e8e2; }
}
@media (prefers-reduced-motion:reduce) {
  .specimen-image { transition:none; }
}

.study-body table caption { padding:12px 0 6px; color:var(--ink); text-align:left; font-weight:600; }

/* The four chapter headers, the figures and the leaderboard share an editorial grid. */
.section.chapter {
  --chapter-width:1080px;
  --band:#eee8dc;
  --rule:#97794e;
  --rule-ink:#624b2b;
  padding:0;
  border:0;
  background:#fffefa;
}
#dataset.chapter { --band:#dfede6; --rule:#48816f; --rule-ink:#285a4b; }
#leaderboard.chapter { --band:#e3ecf2; --rule:#4d7790; --rule-ink:#34576d; background:#fffefa; }
#error-analysis.chapter { --band:#f3e7dc; --rule:#b47755; --rule-ink:#75472f; }
.chapter > .section-inner, .chapter-head > .section-inner {
  width:min(var(--chapter-width),calc(100% - 2 * var(--margin)));
}
.chapter-head {
  padding:clamp(26px,3.5vw,48px) 0;
  background:var(--band);
  border-top:3px solid var(--rule);
}
.section .chapter-head h2 {
  margin:0; color:#1e353c;
  font-size:clamp(38px,4.2vw,62px); letter-spacing:-.048em;
}
.chapter-head p, .chapter .section-copy p, .leaderboard-reading {
  margin:12px 0 0; max-width:76ch; color:var(--text);
  font:400 clamp(16px,1.16vw,18px)/1.62 var(--sans);
  text-wrap:pretty;
}
.chapter-links { display:flex; flex-wrap:wrap; gap:8px 0; margin-top:19px; }
.chapter-links a {
  display:inline-flex; align-items:center; min-height:26px;
  padding-inline:16px; border-left:1px solid color-mix(in srgb,var(--rule) 42%,transparent);
  color:var(--rule-ink); font:650 14px/1.4 var(--sans);
  text-decoration:underline; text-underline-offset:.24em;
  text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);
}
.chapter-links a:first-child { border:0; padding-left:0; }
.chapter-links a:hover { text-decoration-color:currentColor; }
.chapter-body { padding-block:clamp(28px,3.7vw,52px) clamp(50px,6vw,84px); }
.chapter .section-copy { margin:0 0 20px; }
.chapter .section-copy h3, .chapter #scores {
  font-size:clamp(26px,2.45vw,36px); margin:0;
  letter-spacing:-.035em;
}
.chapter-body :is(.chapter-topic, .reading-block, .research-finding) { scroll-margin-top:20px; }
.chapter-body > .chapter-topic + .chapter-topic,
.chapter-body > .reading-block,
.chapter-body > .leaderboard-panel + .chapter-topic {
  border-top:1px solid #cdd7d1;
  padding-top:clamp(28px,3.4vw,46px);
  margin-top:clamp(34px,4.3vw,60px);
}
.chapter .paper-figure { margin:0; }
.chapter .paper-figure > a {
  padding:clamp(4px,1vw,12px); background:#fff;
  border:1px solid #d2dbd6; border-radius:7px; overflow:hidden;
}
.chapter .paper-figure > a:hover { border-color:var(--rule); }
.chapter .paper-figure img { display:block; width:100%; height:auto; }
.chapter .inset-details, .chapter .figure-source { margin:12px 0 0; }
.chapter .inset-details > details { margin:0; padding:0; border:0; border-bottom:1px solid var(--line); }
.chapter .study-body { padding:8px 0 20px; }
.chapter .study-body p { margin:12px 0; max-width:76ch; }
.chapter .quiet-link, .figure-source a {
  display:inline-block; margin-top:8px; color:var(--rule-ink);
  font:600 14px/1.5 var(--sans);
}
.chapter .atlas-filters { margin-bottom:18px; }
.atlas-domain + .atlas-domain { margin-top:24px; }
.section .atlas-domain h4 {
  display:flex; align-items:center; gap:12px; margin:0 0 11px;
  color:#285a4b; font:650 16px/1.5 var(--sans);
}
.atlas-domain h4::after { content:""; height:1px; background:#ccd9d1; flex:1; }
.domain-specimens { row-gap:16px; }
.specimen-meta { margin-top:6px; }
.leaderboard-panel { min-width:0; }
#leaderboard .leaderboard-panel .tabs { margin-top:16px; }
.leaderboard-reading { font-size:15px; margin:14px 0 0; }
#leaderboard #question-length .length-comparison {
  display:block; margin:0; padding:clamp(16px,2vw,27px);
  border:1px solid #c7d9df; border-radius:7px; background:#eff4f6;
}
#question-length .trend-selectors { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:10px 25px; }
#question-length .trend-plot { max-width:760px; margin:8px auto 0; }
#training-seeds { position:relative; }
#analysis { position:absolute; top:0; width:1px; height:1px; pointer-events:none; }
#training-seeds .paper-figure { max-width:720px; margin-inline:auto; }
#citation { border-top:2px solid var(--edge); }
.nav nav > div a[aria-current] { color:#174f53; }
.nav nav > div a[aria-current]::after { height:3px; background:#286768; }

@media (max-width:740px) {
  .nav nav > div { gap:13px; min-width:0; overflow-x:auto; white-space:nowrap; }
  .nav .brand, .nav nav > div > a { flex-shrink:0; }
  .chapter-links { gap:5px 14px; }
  .chapter-links a { padding:0; border:0; }
  .chapter-head { padding-block:24px; }
}
