/* #403: the textual tradition page (pages/explorer.html, js/explorer.js). Plain CSS, loaded in both looks, as Compare
   witnesses' synopsis.css: the classic colours (bblue-500 brown, bgray-500 grey, bred-500 maroon for focus and marks),
   the classic fonts (Montserrat, STIX Two Text), and the new look's faces and cards where it is on
   (html[data-ui="next"]: next.css --font-ui, --font-read). The charts' own colours (the heatmap's parchment-to-umber
   ramp, Paul Tol's muted palette for the families, with a pattern and a shape each) are the same in both looks.
   Every class is prefixed ex-. */

.ex-page {
    --ex-brown: rgb(155 115 58);
    --ex-brown-text: rgb(132 98 49);
    --ex-maroon: rgb(131 11 12);
    --ex-grey: rgb(240 240 240);
    --ex-rule: rgb(209 213 219);
    --ex-muted: rgb(75 85 99);
    --ex-ink: rgb(17 24 39);
    --ex-tint: rgb(155 115 58 / .15);
    --ex-parchment: #f6f1e7;
    --ex-ui: var(--font-ui, Montserrat, ui-sans-serif, system-ui, sans-serif);
    --ex-read: var(--font-read, 'STIX Two Text', Georgia, serif);
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;   /* a safety net: nothing pans the page sideways (the figures scroll in their own boxes) */
    overflow-x: clip;
    position: relative;
    background: #fff;
    color: var(--ex-ink);
    font-family: var(--ex-ui);
    font-size: 15px;
    line-height: 1.45;
}
.ex-page *, .ex-page *::before, .ex-page *::after { box-sizing: border-box; }
.ex-wrap { max-width: 1480px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.ex-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0; }
.ex-page:not(.ex-js) .ex-app { display: none; }
.ex-page a { color: var(--ex-brown-text); }
.ex-page a:hover { text-decoration: underline; }
.ex-page :focus-visible { outline: 2px solid var(--ex-maroon); outline-offset: 2px; }

/* ---- heading ---- */
.ex-head { margin-bottom: .75rem; }
.ex-head h1 { margin: 0; font-family: var(--ex-read); font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
.ex-alpha { display: inline-block; vertical-align: middle; margin-left: .375rem; padding: 0 .4rem; border: 1px solid var(--ex-brown);
    border-radius: 999px; color: var(--ex-brown-text); font-family: var(--ex-ui); font-size: .625rem; font-weight: 700;
    line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.ex-lede { margin: .25rem 0 0; max-width: 62rem; color: rgb(55 65 81); }
.ex-name { font-weight: 600; }
.ex-note { margin: 1rem 0; padding: .75rem 1rem; background: var(--ex-grey); border: 1px solid #000; max-width: 60rem; }
.ex-fail { border-color: var(--ex-maroon); }

/* ---- the views' jump links (phones) ---- */
.ex-jump { display: none; }

/* ---- settings: Compare's control bar (grey, a black rule) ---- */
.ex-settings { background: var(--ex-grey); border: 1px solid #000; }
.ex-settings > summary { display: none; }
.ex-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding: .5rem .75rem; font-size: .8125rem; }
.ex-control { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1.25rem; }
.ex-range { gap: .375rem .625rem; }
.ex-label { font-weight: 600; }
.ex-seg { display: inline-flex; flex-wrap: wrap; }
.ex-seg button { border: 1px solid var(--ex-brown); background: #fff; color: var(--ex-brown-text); font: inherit; font-weight: 600;
    padding: .2rem .6rem; margin-left: -1px; cursor: pointer; min-height: 1.75rem; }
.ex-seg button:first-child { margin-left: 0; border-radius: .25rem 0 0 .25rem; }
.ex-seg button:last-child { border-radius: 0 .25rem .25rem 0; }
.ex-seg button[aria-pressed="true"] { background: var(--ex-brown); color: #fff; position: relative; }
.ex-seg button:hover:not([aria-pressed="true"]) { background: var(--ex-tint); }
.ex-passages { display: inline-flex; align-items: center; gap: .375rem; }
.ex-page select { border: 2px solid var(--ex-brown); border-radius: .25rem; background: #fff; padding: .1rem .3rem; font: inherit;
    font-size: .8125rem; max-width: 9rem; }
/* Philipp (24 Nov 2026, the witness view's Passage): From and To as wide as the longest passage name, as a select is,
   up to 30rem (9rem cut collection 129's names, "1.4. Introduction: Contents, purpose, and their connection"); To goes
   under From where the two have no room side by side. Phones: each takes half its line (below) */
.ex-passages { flex-wrap: wrap; max-width: 100%; }
.ex-passages select { max-width: min(30rem, 100%); }
.ex-check { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; cursor: pointer; }
.ex-check input { accent-color: var(--ex-brown); width: 1rem; height: 1rem; margin: 0; }
.ex-field { display: inline-flex; align-items: center; gap: .375rem; flex-wrap: wrap; }

/* ---- progress ---- */
.ex-status { display: flex; align-items: center; gap: .75rem; min-height: 1.75rem; padding: .375rem 0; font-size: .8125rem;
    color: var(--ex-muted); }
.ex-meter { flex: 0 0 10rem; height: 4px; background: var(--ex-rule); border-radius: 2px; overflow: hidden; }
.ex-meter span { display: block; height: 100%; width: 0; background: var(--ex-brown); transition: width .2s linear; }
.ex-status.ex-done .ex-meter { visibility: hidden; flex-basis: 0; }

/* ---- the families' legend ---- */
.ex-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; padding: .25rem 0 .75rem;
    border-bottom: 1px solid var(--ex-rule); margin-bottom: 1rem; }
.ex-legend-h { margin: 0 .25rem 0 0; font-size: .8125rem; font-weight: 700; }
.ex-families { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; }
.ex-fam { display: inline-flex; align-items: center; border: 1px solid var(--ex-rule); background: #fff; border-radius: 3px;
    font-size: .8125rem; line-height: 1.2; }
.ex-fam > button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; font: inherit; color: inherit;
    padding: .3rem .55rem; cursor: pointer; border-radius: inherit; }
.ex-fam > button:hover { background: var(--ex-tint); }
.ex-fam b { font-weight: 700; }
.ex-fam .ex-count { color: var(--ex-muted); font-variant-numeric: tabular-nums; }
.ex-fam > button[aria-pressed="false"] { color: var(--ex-muted); }
.ex-fam > button[aria-pressed="false"] b { text-decoration: line-through; }
.ex-fam > button[aria-pressed="false"] svg { opacity: .3; }
.ex-fam .ex-split { border-left: 1px solid var(--ex-rule); border-radius: 0; padding: .3rem .45rem; color: var(--ex-brown-text);
    font-size: .75rem; font-weight: 600; }
.ex-legend-note { flex: 1 1 100%; margin: 0; font-size: .75rem; color: var(--ex-muted); }
.ex-legend-note:empty { display: none; }
.ex-pinned { flex: 1 1 100%; font-size: .8125rem; padding: .375rem .625rem; background: #fffbeb; border: 1px solid rgb(232 201 138); }
.ex-pinned button { border: 0; background: none; color: var(--ex-brown-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---- the views ---- */
.ex-views { display: flex; flex-direction: column; gap: 1.25rem; }
.ex-row { display: flex; flex-direction: column; gap: 1.25rem; }
.ex-view { min-width: 0; padding-top: .75rem; border-top: 1px solid #000; }
.ex-view-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.ex-view h2 { margin: 0; font-family: var(--ex-read); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.ex-desc { margin: .25rem 0 .625rem; font-size: .8125rem; color: var(--ex-muted); max-width: 46rem; }
.ex-tablebtn { border: 1px solid var(--ex-brown); border-radius: .25rem; background: #fff; color: var(--ex-brown-text);
    padding: .125rem .5rem; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ex-tablebtn:hover { background: var(--ex-brown); color: #fff; }
.ex-tablebtn[aria-expanded="true"] { background: var(--ex-brown); color: #fff; }
.ex-basis { margin: .5rem 0 0; font-size: .75rem; color: var(--ex-muted); max-width: 52rem; }
.ex-basis:empty { display: none; }
.ex-caption { margin: .25rem 0 .5rem; font-size: .875rem; color: var(--ex-maroon); }
.ex-figure { position: relative; min-height: 2rem; }
.ex-figure svg { display: block; font-family: inherit; overflow: visible; }
.ex-key { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-top: .5rem; font-size: .75rem; color: var(--ex-muted); }
.ex-key:empty { display: none; }
.ex-key-item { display: inline-flex; align-items: center; gap: .375rem; }
.ex-key-item > svg { flex: none; }
.ex-scale { display: inline-flex; align-items: flex-start; gap: .375rem; white-space: nowrap; }
.ex-scale-label { line-height: 10px; }
.ex-ramp { display: block; overflow: visible; }
.ex-hint-inline { color: var(--ex-muted); font-size: .75rem; white-space: normal; }
/* the keys the heatmap and the barcode answer, shown while they have the focus (and read with them) */
.ex-hint { display: none; margin: .375rem 0 0; font-size: .75rem; color: var(--ex-muted); }
.ex-figure:has(.ex-body:focus-visible) .ex-hint { display: block; }
.ex-empty-line { padding: .75rem 0; }
.ex-inline-svg { display: inline-block; vertical-align: -2px; flex: none; }
.ex-zoom { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; }
.ex-zoombtn { width: 1.75rem; height: 1.75rem; border: 1px solid var(--ex-brown); border-radius: .25rem; background: #fff;
    color: var(--ex-brown-text); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; }
.ex-zoombtn:hover { background: var(--ex-tint); }
.ex-empty { padding: 2rem 0; color: var(--ex-muted); font-size: .875rem; }

/* the heatmap and the barcode: a grid of SVGs whose labels stay in view while the cells scroll (phones) */
.ex-scroll { overflow: auto; max-width: 100%; overscroll-behavior: contain; }
.ex-grid { display: grid; width: max-content; }
.ex-grid > svg { background: #fff; }
.ex-corner { position: sticky; top: 0; left: 0; z-index: 3; }
.ex-top { position: sticky; top: 0; z-index: 2; }
.ex-left { position: sticky; left: 0; z-index: 2; }
.ex-body { outline: none; }
.ex-body:focus-visible { outline: 2px solid var(--ex-maroon); outline-offset: 2px; }
.ex-lab { font-size: 12px; fill: var(--ex-brown-text); font-weight: 600; cursor: pointer; }
.ex-lab.ex-lab-small { font-size: 10.5px; }
.ex-lab.is-hot, .ex-lab.is-pinned { fill: var(--ex-maroon); font-weight: 800; }
.ex-lab.is-pinned { text-decoration: underline; }
.ex-tick { font-size: 11px; fill: var(--ex-muted); }
.ex-chap { font-size: 12px; font-weight: 700; fill: var(--ex-ink); }
.ex-dendro { fill: none; stroke: rgb(156 163 175); stroke-width: 1; }
.ex-num { font-size: 9px; pointer-events: none; font-variant-numeric: tabular-nums; }
/* the row and the column under the cursor, and the cursor's cell: maroon or black outside, white inside, so that
   they show on every step of the ramp (and on every family's colour in the barcode) */
.ex-hot-line { fill: none; stroke: var(--ex-maroon); stroke-width: 1.5; pointer-events: none; }
.ex-hot-line-in { fill: none; stroke: rgb(255 255 255 / .85); stroke-width: 1; pointer-events: none; }
.ex-cell-cursor { pointer-events: none; }
.ex-cur-out { fill: none; stroke: #111; stroke-width: 2; }
.ex-cur-in { fill: none; stroke: #fff; stroke-width: 2; }
.ex-skel { fill: #f1ede4; }
.ex-strip.is-hot .ex-strip-bg, .ex-strip.is-pinned .ex-strip-bg { fill: rgb(155 115 58 / .18); }
.ex-switch { fill: var(--ex-maroon); stroke: #fff; stroke-width: 1; }
.ex-switch.ex-weak { fill: #fff; stroke: var(--ex-maroon); stroke-width: 1.5; }
.ex-switch-line { stroke: var(--ex-maroon); stroke-width: 2; pointer-events: none; }
.ex-switch-line.ex-weak { stroke-dasharray: 3 2; stroke-width: 1.5; }
.ex-pass { fill: var(--ex-ink); }
.ex-ring { fill: #fff; stroke: rgb(55 65 81); stroke-width: 1.25; pointer-events: none; }
.ex-brush { fill: rgb(131 11 12 / .08); stroke: var(--ex-maroon); stroke-width: 1; pointer-events: none; }
.ex-switch-list { margin: .5rem 0 0; padding: 0; list-style: none; font-size: .8125rem; }
.ex-switch-list li { margin: .125rem 0; padding-left: 1.1rem; position: relative; }
.ex-switch-list li::before { content: "▼"; position: absolute; left: 0; color: var(--ex-maroon); font-size: .7rem; top: .15rem; }
.ex-switch-list li.ex-weak-item::before { content: "▽"; }
.ex-weak-why { color: var(--ex-muted); font-style: italic; }
.ex-switch-list:empty { display: none; }

/* the timeline and the map */
.ex-time svg, .ex-map svg { max-width: 100%; height: auto; }
.ex-axis line, .ex-axis path { stroke: rgb(156 163 175); }
.ex-grid-line { stroke: rgb(229 231 235); }
.ex-lane-label { font-size: 12px; font-weight: 700; fill: var(--ex-ink); }
.ex-lane-count { font-size: 11px; fill: var(--ex-muted); font-weight: 400; }
.ex-mark { cursor: pointer; outline: none; }
.ex-mark text { font-size: 12px; fill: var(--ex-ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.ex-mark.is-hot text, .ex-mark.is-pinned text { font-weight: 800; fill: var(--ex-maroon); }
.ex-mark .ex-shape { transition: transform .15s ease; }
.ex-mark.is-hot .ex-shape, .ex-mark.is-pinned .ex-shape { transform: scale(1.45); }
.ex-mark:focus-visible .ex-shape path:first-child { stroke: var(--ex-maroon); stroke-width: 2.5; }
.ex-has-hot .ex-mark:not(.is-hot):not(.is-pinned), .ex-undated.ex-has-hot .ex-chip:not(.is-hot):not(.is-pinned) { opacity: .35; }
.ex-hit { fill: transparent; stroke: none; cursor: pointer; }
.ex-leader { stroke: rgb(75 85 99 / .7); stroke-width: .75; }
.ex-bad { fill: var(--ex-maroon); font-weight: 800; font-size: 11px; }
.ex-figure svg.ex-mapsvg { overflow: hidden; }
.ex-land { fill: var(--ex-parchment); }
.ex-coast { fill: none; stroke: #a8916c; stroke-width: .9px; }
.ex-river { fill: none; stroke: #a9c0ce; stroke-width: .8px; }
.ex-sea { fill: #e9f0f4; }
.ex-graticule line { stroke: rgb(120 100 70 / .12); stroke-width: 1; }
.ex-deg { font-size: 9px; fill: rgb(107 114 128); paint-order: stroke; stroke: rgb(255 255 255 / .8); stroke-width: 2.5px; }
.ex-sea-name { font-family: var(--ex-read); font-style: italic; font-size: 12px; fill: #5f7686; letter-spacing: .04em; }
.ex-place { font-size: 11px; fill: rgb(55 65 81); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.ex-place-dot { fill: rgb(55 65 81); }
.ex-else { fill: #fff; stroke: var(--ex-rule); }
.ex-else-title { font-size: 11px; font-weight: 700; fill: var(--ex-ink); }
.ex-undated { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .8125rem; }
.ex-undated-h { font-weight: 700; margin-right: .25rem; }
.ex-chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--ex-rule); background: #fff; border-radius: 3px;
    padding: .1rem .4rem; font: inherit; font-size: .75rem; font-weight: 600; color: var(--ex-ink); cursor: pointer; }
.ex-chip:hover, .ex-chip.is-hot { background: var(--ex-tint); border-color: var(--ex-brown); }
.ex-chip.is-pinned { border-color: var(--ex-maroon); color: var(--ex-maroon); }

/* ---- tooltip ---- */
.ex-tip { position: fixed; z-index: 50; max-width: 22rem; padding: .5rem .625rem; background: #fff; color: var(--ex-ink);
    border: 1px solid #000; box-shadow: 0 4px 14px rgb(0 0 0 / .18); font-size: .8125rem; line-height: 1.4; pointer-events: none; }
.ex-tip b { font-weight: 700; }
.ex-tip .ex-tip-h { font-weight: 700; font-size: .875rem; }
.ex-tip .ex-tip-go { color: var(--ex-brown-text); margin-top: .25rem; }
.ex-tip .ex-tip-muted { color: var(--ex-muted); }
.ex-tip-close { display: none; }
.ex-tip .ex-tip-go a { color: var(--ex-brown-text); }
.ex-swatch { display: inline-block; width: .7rem; height: .7rem; border: 1px solid rgb(0 0 0 / .4); vertical-align: -1px; margin-right: .2rem; }

/* ---- tables: each in a box of its own that scrolls (and takes the keyboard's focus) ---- */
.ex-table { margin-top: .75rem; }
.ex-table-scroll { overflow: auto; max-height: 28rem; border: 1px solid var(--ex-rule); }
.ex-near-h { margin: .75rem 0 .25rem; font-size: .8125rem; font-weight: 700; }
.ex-table table { border-collapse: collapse; font-size: .75rem; font-variant-numeric: tabular-nums; }
.ex-table caption { text-align: left; padding: .375rem .5rem; font-weight: 600; caption-side: top; }
.ex-table th, .ex-table td { border: 1px solid var(--ex-rule); padding: .2rem .4rem; text-align: left; white-space: nowrap; }
.ex-table thead th { position: sticky; top: 0; background: var(--ex-grey); z-index: 1; }
.ex-table tbody th { position: sticky; left: 0; background: #fff; }
.ex-table .ex-near { margin: .5rem 0; padding-left: 1rem; font-size: .8125rem; }
.ex-table .ex-near li { margin: .1rem 0; }

@media (prefers-reduced-motion: reduce) {
    .ex-mark .ex-shape, .ex-meter span { transition: none; }
}

/* ---- wide: the timeline and the map side by side from 1000 px; from 1200 px the heatmap and the barcode too, their
   figures' tops level (one row for the headings and descriptions, one for the figures, one for the rest: so the
   rows of witnesses line up across the two, and neither card opens a gap of the other's) ---- */
@media (min-width: 1000px) {
    .ex-row-bottom { flex-direction: row; align-items: stretch; gap: 1.5rem; }
    .ex-row-bottom > .ex-view-time { flex: 1 1 0; min-width: 0; }
    .ex-row-bottom > .ex-view-map { flex: 0 0 auto; width: clamp(22rem, 40%, 30rem); }
}
@media (min-width: 1200px) {
    /* the heatmap's column as wide as its picture (and not narrower than its heading), the barcode the rest */
    .ex-row-top { display: grid; grid-template-columns: min-content minmax(0, 1fr); grid-template-rows: auto auto auto;
        column-gap: 1.5rem; row-gap: 0; }
    .ex-row-top > .ex-view { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
    .ex-row-top .ex-heat .ex-scroll { overflow: visible; }
    .ex-row-top > .ex-view-heat { min-width: 24rem; }
    .ex-row-top .ex-view-intro { align-self: start; }
    .ex-row-top .ex-view-more { align-self: start; min-width: 0; }
}

/* ---- phones: the views stacked, a row of links to them, the settings in a drawer ---- */
@media (max-width: 767px) {
    .ex-wrap { padding: .75rem 1rem 3rem; }
    .ex-head h1 { font-size: 1.375rem; }
    .ex-lede { font-size: .875rem; }
    .ex-jump { display: flex; position: sticky; top: 0; z-index: 10; gap: .25rem; margin: 0 -1rem .5rem; padding: .375rem 1rem;
        background: #fff; border-bottom: 1px solid var(--ex-rule); overflow-x: auto; font-size: .8125rem; font-weight: 600; }
    .ex-jump a { flex: none; padding: .3rem .6rem; border: 1px solid var(--ex-brown); border-radius: 999px; color: var(--ex-brown-text);
        text-decoration: none; }
    .ex-settings > summary { display: flex; align-items: baseline; gap: .5rem; padding: .5rem .75rem; cursor: pointer; font-size: .875rem;
        list-style: none; }
    .ex-settings > summary::-webkit-details-marker { display: none; }
    .ex-settings > summary::before { content: ""; flex: none; align-self: center; width: .45rem; height: .45rem;
        border: solid var(--ex-brown); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
    .ex-settings[open] > summary::before { transform: rotate(45deg); }
    .ex-settings-name { font-weight: 700; }
    .ex-settings-now { color: var(--ex-muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ex-controls { flex-direction: column; align-items: stretch; padding-top: 0; }
    .ex-control { gap: .5rem 1rem; width: 100%; }
    .ex-page select { font-size: 16px; max-width: 11rem; }
    /* the range's two lists share the line; the switches wrap within it (nothing wider than the screen) */
    .ex-passages { display: flex; width: 100%; flex-wrap: wrap; }
    .ex-passages select { flex: 1 1 0; min-width: 0; max-width: none; }
    .ex-check { white-space: normal; }
    .ex-field { display: block; }
    .ex-field select { margin: 0 .25rem; }
    /* a jump link leaves the view's heading below the sticky bar */
    .ex-view { scroll-margin-top: 3.5rem; }
    /* the witnesses pinned: a bar under the jump links, in view wherever the pin was made */
    .ex-pinned { position: sticky; top: 2.75rem; z-index: 9; margin: 0 -1rem .5rem; padding: .375rem 1rem;
        box-shadow: 0 2px 6px rgb(0 0 0 / .08); }
    .ex-seg button { min-height: 2.25rem; }
    .ex-scroll { max-height: 72vh; border: 1px solid var(--ex-rule); }
    .ex-tip { left: 0 !important; right: 0; bottom: 0; top: auto !important; max-width: none; border-width: 1px 0 0; pointer-events: auto;
        padding: .75rem 1rem 1rem; box-shadow: 0 -4px 14px rgb(0 0 0 / .18); }
    .ex-tip-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0;
        width: 44px; height: 44px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ex-ink); }
    .ex-tip { padding-right: 3rem; }
    .ex-tip .ex-tip-go a { display: inline-block; margin-top: .25rem; padding: .4rem .75rem; border: 1px solid var(--ex-brown);
        border-radius: .25rem; font-weight: 600; text-decoration: none; }
    .ex-legend { gap: .375rem; }
}

/* ---- the new look: Source Sans 3 and STIX Two Text, each view a card ---- */
html[data-ui="next"] .ex-page { font-size: 16px; }
html[data-ui="next"] .ex-head h1 { font-size: 2rem; letter-spacing: -.005em; }
html[data-ui="next"] .ex-settings { border: 1px solid var(--ex-rule); border-radius: 8px; background: rgb(248 248 248); }
html[data-ui="next"] .ex-controls { font-size: .875rem; padding: .625rem 1rem; }
html[data-ui="next"] .ex-view { border: 1px solid var(--ex-rule); border-radius: 8px; padding: 1.25rem 1.5rem 1.5rem; }
html[data-ui="next"] .ex-view h2 { font-size: 1.375rem; }
html[data-ui="next"] .ex-desc { font-size: .875rem; }
html[data-ui="next"] .ex-legend { border-bottom: 0; padding-bottom: .25rem; }
html[data-ui="next"] .ex-fam { border-radius: 999px; }
html[data-ui="next"] .ex-fam .ex-split { border-radius: 0 999px 999px 0; }
html[data-ui="next"] .ex-chip { border-radius: 999px; }
html[data-ui="next"] .ex-tip { border-color: var(--ex-rule); border-radius: 8px; }
html[data-ui="next"] .ex-note { border-radius: 8px; border-color: var(--ex-rule); }
html[data-ui="next"] .ex-table { border-radius: 6px; }
html[data-ui="next"] .ex-tablebtn { border-radius: 999px; padding: .15rem .65rem; }
html[data-ui="next"] .ex-lab { font-size: 12.5px; }
html[data-ui="next"] .ex-lab.ex-lab-small { font-size: 11px; }
@media (hover: hover) {
    html[data-ui="next"] .ex-tablebtn:hover:not([aria-expanded="true"]) { background: var(--ex-tint); color: var(--ex-brown-text); }
}
/* the classic look loads Montserrat at one weight only: its hierarchy by size and colour, not by a bold the
   browser has to draw */
html:not([data-ui="next"]) .ex-legend-h { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ex-brown-text); }
html:not([data-ui="next"]) .ex-fam b { color: var(--ex-ink); }
html:not([data-ui="next"]) .ex-label { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--ex-brown-text); }
html:not([data-ui="next"]) .ex-switch-list b, html:not([data-ui="next"]) .ex-pinned b { color: var(--ex-brown-text); }
html:not([data-ui="next"]) .ex-tip .ex-tip-h { color: var(--ex-brown-text); font-size: .9375rem; }
html:not([data-ui="next"]) .ex-near-h { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ex-brown-text); }
@media (max-width: 767px) {
    html[data-ui="next"] .ex-view { padding: 1rem; }
    html[data-ui="next"] .ex-head h1 { font-size: 1.5rem; }
    html[data-ui="next"] .ex-tip { border-radius: 12px 12px 0 0; }
}
