/* Belgü — design direction 2 ("the catalogue"), see site/design/DIRECTION-2.md */
@font-face { font-family: "Noto Sans Old Turkic"; src: url("fonts/NotoSansOldTurkic-Regular.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "Bengu Legacy"; src: url("fonts/bengu-legacy.ttf") format("truetype"); font-display: block; }

:root {
  --f-ui: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-mono: Menlo, "DejaVu Sans Mono", Consolas, ui-monospace, monospace;
  --f-text: Charter, "Bitstream Charter", Georgia, serif;
  --f-rune: "Noto Sans Old Turkic", "Bengu Legacy";
  --bg:#f3efe4; --bg-raised:#faf7ef; --bg-sunken:#e8e2d3; --line:#d3ccbb; --line-ctl:#8d8676;
  --text:#23211d; --text-muted:#5c574c; --text-faint:#696356; --rune:#16140f; --rune-legacy:#5a4e37;
  --ochre:#8a5a14; --kok:#28608c; --rust:#a4472a; --on-accent:#faf7ef;
  --img-paper:#fbf9f3; --row-hover:#ebe5d6; --sel:#efe3c8;
  --rscale: 1;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg:#131518; --bg-raised:#1a1d21; --bg-sunken:#0e1012; --line:#2b2f36; --line-ctl:#6c727e;
  --text:#e4dfd3; --text-muted:#aaa497; --text-faint:#8b8679; --rune:#f3ecda; --rune-legacy:#cdbf9f;
  --ochre:#d9a45a; --kok:#86b0d1; --rust:#d27a58; --on-accent:#131518;
  --img-paper:#dcd7ca; --row-hover:#20242a; --sel:#2a2418;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 13px/1.45 var(--f-ui); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ochre); }
.prose a, .ref a, .main p a, .lit a { color: var(--ochre); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ochre) 40%, transparent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, kbd, .m { font-family: var(--f-mono); font-size: 12px; font-style: normal; }
.m { font-size: inherit; }
code { color: var(--text-muted); overflow-wrap: anywhere; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.n { color: var(--text-faint); font-weight: 400; }
.num { text-align: right; font-family: var(--f-mono); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ochre); color: var(--on-accent); padding: 4px 8px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 20; height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mark__run { font: 15px var(--f-rune); color: var(--ochre); }
.nav { display: flex; gap: 14px; }
.nav a { color: var(--text); line-height: 38px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a[aria-current] { border-bottom-color: var(--ochre); }
.nav a:hover { color: var(--ochre); }
.hsearch { margin-left: auto; position: relative; }
.hsearch input { width: 15rem; height: 28px; padding: 0 28px 0 8px; font: 13px var(--f-ui); color: var(--text); background: var(--bg-sunken);
  border: 1px solid var(--line); border-radius: 2px; }
.hsearch kbd { position: absolute; right: 6px; top: 6px; font-size: 11px; color: var(--text-faint); border: 1px solid var(--line); padding: 0 4px; border-radius: 2px; }
.sicon { display: none; color: var(--text); }
.langs { display: flex; gap: 8px; font-size: 12px; }
.langs a { color: var(--text-muted); }
.langs a.cur { color: var(--text); font-weight: 600; }
.theme, .ixbtn { height: 28px; min-width: 28px; display: grid; place-items: center; color: var(--text); background: none; border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; font: 12px var(--f-ui); padding: 0 8px; }
.ixbtn { display: none; }

/* ---------------------------------------------------------------- shell + index */
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); max-width: 92rem; }
.ix { position: sticky; top: 40px; height: calc(100vh - 40px); height: calc(100dvh - 40px); overscroll-behavior: contain; overflow-y: auto; background: var(--bg-sunken); border-right: 1px solid var(--line);
  scrollbar-width: thin; }
.ix__in { padding: 8px 0 16px; }
.ix__q { padding: 0 8px 8px; }
.ix__q input { width: 100%; height: 28px; padding: 0 8px; font: 12px var(--f-ui); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 2px; }
.ix__r { display: flex; justify-content: space-between; align-items: center; min-height: 28px; gap: 8px; padding: 0 12px; font-weight: 600; border-left: 2px solid transparent; }
.ix__r .n { font-family: var(--f-mono); font-size: 12px; font-weight: 400; }
.ix__r:hover { background: var(--row-hover); }
.is-open > .ix__r { color: var(--ochre); }
.ix__f a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; height: 24px; padding: 0 8px 0 12px; font-size: 12px; border-left: 2px solid transparent; }
.ix__f a:hover { background: var(--row-hover); }
.ix__f a[aria-current] { background: var(--sel); border-left-color: var(--ochre); color: var(--text); }
.ix__f .ixs { font-family: var(--f-mono); color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix__f .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; padding: 16px 16px 0; }
.pg { max-width: 92rem; }
.ftr { margin-top: 32px; padding: 12px 0 24px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 12px; }
.ftr__nav { display: none; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ftr p + p { margin-top: 4px; }

/* ---------------------------------------------------------------- headings, generic blocks */
.titlerow { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
h1, .h1 { font: 600 20px/1.2 var(--f-ui); letter-spacing: -0.005em; }
.titlerow p { max-width: 80ch; }
.h2, .osec > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 8px; padding-top: 6px;
  border-top: 1px solid var(--line-ctl); font: 700 13px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; }
.osec > h2 { justify-content: flex-start; }
.osec > h2 .m:first-child { color: var(--text-faint); }
.osec > h2 .n { margin-left: auto; }
.h2 a { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ochre); }
h3.sub { margin: 12px 0 6px; font: 600 11px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
h3.sub .m, h3.sub .small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tlm { font: 600 11px var(--f-ui); color: var(--text-muted); border: 1px solid var(--line-ctl); border-radius: 2px; padding: 0 3px; letter-spacing: .04em; }
.prose { font: 15px/1.5 var(--f-text); max-width: 68ch; }
.prose p + p { margin-top: 8px; }
.prose ul { list-style: disc; padding-left: 20px; margin: 6px 0; }
.prose h2 { font: 700 13px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 6px; }
.prose i.tr, .prose [lang="otk-Latn"] { font-family: var(--f-mono); font-style: normal; font-size: .9em; }
.about .prose { max-width: 68ch; }
.empty { padding: 12px 0; }

/* badges */
.badge { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; margin-right: 2px; font: 600 11px/1 var(--f-ui); text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-muted); border: 1px solid var(--line-ctl); border-radius: 2px; white-space: nowrap; vertical-align: 1px; }
a.badge:hover { color: var(--ochre); border-color: var(--ochre); }
.badge--rust { color: var(--rust); border-color: color-mix(in srgb, var(--rust) 60%, transparent); }

/* chips, segs */
.chip, .seg button { height: 28px; padding: 0 8px; font: 12px var(--f-ui); color: var(--text-muted); background: none; border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.chip:hover, .seg button:hover { color: var(--text); }
.chips, .seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* tables */
.tblwrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { font: 600 11px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); text-align: left; }
thead th { position: sticky; top: 0; background: var(--bg); padding: 4px 8px; border-bottom: 1px solid var(--line-ctl); white-space: nowrap; }
td { padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: var(--row-hover); }
th.num { text-align: right; }
.stab td.raw { max-width: 22rem; overflow-wrap: anywhere; color: var(--text-muted); }
.stab--src td { font-size: 12px; }
.rtab tr.tot td { font-weight: 600; border-top: 1px solid var(--line-ctl); }
.rtab td:first-child a { font-weight: 600; }
.rtab tr.is-hot { background: var(--row-hover); }

/* finds table */
.ftab td { vertical-align: middle; }
.tblwrap:has(> .ftab) { overflow: visible; }
.ftab thead th { top: 74px; cursor: pointer; z-index: 2; }
.page-home .ftab thead th { top: 40px; }
.ftab thead th.nosort { cursor: default; }
.ftab thead th[aria-sort="ascending"]::after { content: " ▲"; font-family: var(--f-mono); }
.ftab thead th[aria-sort="descending"]::after { content: " ▼"; font-family: var(--f-mono); }
.thsort { all: unset; cursor: pointer; }
.thsort:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.sortable th[aria-sort="ascending"] .thsort::after { content: " ▲"; font-family: var(--f-mono); }
.sortable th[aria-sort="descending"] .thsort::after { content: " ▼"; font-family: var(--f-mono); }
.ftab tr { height: 44px; position: relative; }
.ftab .c-n { color: var(--text-faint); width: 2.5rem; }
.ftab .c-sig { width: 5.5rem; white-space: nowrap; color: var(--text-muted); }
.ftab .c-th { width: 52px; padding: 2px 4px; }
.ftab .c-name a { font-weight: 600; }
.ftab .c-name a::after { content: ""; position: absolute; inset: 0; }
.ftab .tc1 { display: block; max-width: 34rem; font: 12px var(--f-mono); color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftab .c-place { color: var(--text-muted); max-width: 16rem; }
.ftab .c-date { white-space: nowrap; color: var(--text-muted); }
.ftab .c-co { font-family: var(--f-mono); color: var(--text-muted); text-align: center; }
.ftab .c-src { white-space: nowrap; }
.ly.sl i { width: 1.1em; }
.ly { font: 11px var(--f-mono); white-space: nowrap; }
.ly i { font-style: normal; color: var(--line); margin-right: 3px; }
.ly i.on { color: var(--text); }
.th { display: block; width: 44px; height: 34px; overflow: hidden; background: var(--bg-sunken); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th--paper { background: var(--img-paper); padding: 2px; }
.th--paper img { object-fit: contain; mix-blend-mode: multiply; }
.th.is-gray img { filter: grayscale(1); }

/* toolbar */
.tbar { position: sticky; top: 40px; z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 32px; padding: 2px 0;
  background: var(--bg); }
.tbar input[type=search] { height: 28px; width: 16rem; padding: 0 8px; font: 13px var(--f-ui); color: var(--text); background: var(--bg-sunken);
  border: 1px solid var(--line); border-radius: 2px; }
.tbar .cnt { margin-left: auto; color: var(--text-muted); }

/* plates */
.plates ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 8px; margin-top: 8px; }
.plates a { display: block; font-size: 12px; }
.plates .slip { aspect-ratio: 4 / 5; }
.plates .m { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.pl__n { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip { display: block; background: var(--img-paper); padding: 8px; border-radius: 2px; }
.slip img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ph { display: block; background: var(--bg-sunken); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* home */
.stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 16px; }
.stats > div { padding: 6px 8px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dd { margin: 0; font: 20px/1.2 var(--f-mono); }
.stats dt { font: 600 11px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.mapstrip { border: 1px solid var(--line); }
.maplegend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 5px 8px; font: 11px var(--f-ui); color: var(--text-muted); border-top: 1px solid var(--line); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); box-sizing: border-box; }
.lg--s::before { width: 5px; height: 5px; margin: 0 1px; opacity: .55; }
.lg--a::before { background: var(--bg); border: 1px solid var(--ochre); }
.maplegend__more { margin-left: auto; color: var(--ochre); }
.lg--a::before { border-color: color-mix(in srgb, var(--ochre) 65%, transparent); }

/* region head */
.rgh { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 16px; align-items: start; margin-bottom: 8px; }
.rgh p { max-width: 68ch; margin-top: 4px; }
.rgh__map { border: 1px solid var(--line); margin: 0; }

/* map */
.map { display: block; width: 100%; height: auto; background: var(--bg); }
.map .grat path { stroke: var(--line); stroke-opacity: .7; stroke-width: calc(.5px * var(--k)); fill: none; }
.map .grat__l { font: 10px var(--f-mono); fill: var(--text-faint); }
.map--loc .grat__l, .map--mini .grat__l { display: none; }
.map .river { fill: none; stroke: var(--kok); stroke-opacity: .38; stroke-width: calc(.6px * var(--k)); }
.map .river.major { stroke-opacity: .6; stroke-width: calc(.9px * var(--k)); }
.map--app:not(.is-near) .river.minor, .mapstrip .river.minor { display: none; }
.map .lake { fill: var(--kok); fill-opacity: .3; stroke: var(--kok); stroke-opacity: .5; stroke-width: calc(.5px * var(--k)); }
.map .coast { fill: none; stroke: var(--kok); stroke-opacity: .6; stroke-width: calc(.8px * var(--k)); }
.map .sea { fill: var(--kok); fill-opacity: .07; stroke: none; }
.map .border { fill: none; stroke: var(--text-faint); stroke-opacity: .35; stroke-width: calc(.6px * var(--k)); stroke-dasharray: calc(1px * var(--k)) calc(3px * var(--k)); }
.map .lbl-water { font: italic 10px var(--f-ui); letter-spacing: .06em; fill: var(--kok); fill-opacity: .85; }
.map .lbl-river { fill-opacity: .7; }
.map--app:not(.is-zoomed) .lbl-river { display: none; }
.pt circle { fill: var(--ochre); }
.pt--a circle { fill: var(--bg); stroke: var(--ochre); }
.map .pt circle.hit { fill: transparent !important; stroke: none !important; }
.mapstrip .pt--a circle:not(.hit) { fill: color-mix(in srgb, var(--bg) 70%, transparent); stroke-opacity: .6; }
.mapstrip .pt:hover circle:not(.hit) { stroke-opacity: 1; }
.pt__n { font-family: var(--f-mono); fill: var(--text-muted); }
.pt:hover circle, .pt.is-hot circle { stroke: var(--text); stroke-width: calc(1.5px * var(--k)); }
.pt.is-sel circle { stroke: var(--text); stroke-width: calc(1.5px * var(--k)); }
.rlbl text { font-family: var(--f-ui); font-weight: 600; letter-spacing: .06em; fill: var(--text-muted); paint-order: stroke; stroke: var(--bg); stroke-width: calc(3px * var(--k)); }
.rlbl .rlbl__n { font-family: var(--f-mono); font-weight: 400; fill: var(--text-faint); }
.rlbl:hover text, .rlbl.is-hot text { fill: var(--ochre); }

/* ---------------------------------------------------------------- record page */
.rec { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 0 24px; }
.rhead { padding-bottom: 8px; }
.rhead__t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rhead__t .sig { color: var(--ochre); font-size: 15px; }
.alts { margin-top: 2px; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ids { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1px; margin: 8px 1px 0; }
.ids > div { padding: 4px 8px; background: var(--bg); min-width: 0; box-shadow: 0 0 0 1px var(--line); }
.ids dt { font: 600 11px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ids dd { margin: 0; overflow: hidden; overflow-wrap: anywhere; }
.ids-more { display: none; }
.ids dd .m { font-size: 13px; }
.ids dd a { color: var(--ochre); }
.snav { position: sticky; top: 40px; z-index: 4; display: flex; gap: 20px; height: 32px; align-items: center; overflow-x: auto; background: var(--bg);
  border-bottom: 1px solid var(--line); white-space: nowrap; scrollbar-width: none; }
.snav a { display: inline-flex; align-items: baseline; gap: 5px; line-height: 32px; color: var(--text-muted); }
.snav a .n { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.snav a.is-cur { color: var(--text); box-shadow: inset 0 -2px 0 var(--ochre); }
.osec { scroll-margin-top: 80px; }
.rail { position: sticky; top: 48px; align-self: start; display: grid; gap: 8px; padding-top: 4px; }
.lead .slip, .lead .ph { max-height: 24rem; }
.lead .slip img, .lead .ph img { max-height: calc(24rem - 16px); object-fit: contain; }
.lead figcaption { margin-top: 4px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strip a { aspect-ratio: 1; padding: 2px; }
.strip .ph { padding: 0; }
.locator { border: 1px solid var(--line); }
.locator .map { aspect-ratio: 19 / 8; }
.locator figcaption { padding: 2px 6px; border-top: 1px solid var(--line); }
.co { color: var(--text-muted); font-family: var(--f-mono); }

/* reader */
.rbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 32px; margin-bottom: 4px; }
.rbar .legend { font: 11px var(--f-mono); color: var(--text-muted); margin-left: auto; white-space: pre; }
.reader { --cols: var(--lnw, 2.5rem) minmax(0, 1fr) minmax(0, 1fr); }
.ln, .ln-head { display: grid; grid-template-columns: var(--cols); column-gap: 16px; }
.ln { padding: 6px 0; border-top: 1px solid var(--line); }
.ln:target, .ln.is-focus { background: var(--sel); box-shadow: -2px 0 0 var(--ochre); }
.ln-head { padding: 4px 0; background: var(--bg-raised); font: 600 11px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ln-head span { grid-column: 2 / -1; }
.ln-no { font: 12px/1.9 var(--f-mono); color: var(--text-faint); text-align: right; white-space: nowrap; }
.ln-no .cf { display: inline-block; width: 1ch; margin-left: 2px; color: var(--rune-legacy); }
.ln-orig { min-width: 0; }
.rune { font-family: var(--f-rune); font-size: calc(22px * var(--rscale)); line-height: 1.55; letter-spacing: .04em; word-spacing: .15em; color: var(--rune);
  text-align: right; overflow-wrap: anywhere; }
.rune .sep { color: var(--ochre); margin: 0 .08em; }
.rune--dim { color: var(--rune-legacy); }
.rune--legacy { font-family: "Bengu Legacy"; font-size: calc(18px * var(--rscale)); color: var(--rune-legacy); direction: rtl; line-height: 1.7; user-select: none;
  -webkit-user-select: none; border-inline-start: 2px dotted color-mix(in srgb, var(--rune-legacy) 50%, transparent); padding-inline-start: 6px; }
.rune--legacy .lw { direction: ltr; unicode-bidi: isolate; }
.rune--legacy .sep { margin-inline: .12em; }
.ln-tc { margin-top: 2px; font: 13px/1.5 var(--f-mono); }
.ln-tc .sep { color: var(--text-faint); }
.ln-tc .ed { color: var(--rust); }
.ln-tc .lac { color: var(--text-faint); }
.w.is-pair { background: color-mix(in srgb, var(--ochre) 22%, transparent); border-radius: 2px; }
.ln-tr p { font: 15px/1.5 var(--f-text); }
.ln-tr p + p { margin-top: 4px; }
.tl { display: inline-block; min-width: 2.2em; margin-right: 6px; font: 600 11px var(--f-ui); text-transform: uppercase; color: var(--text-faint); letter-spacing: .04em; }
.reader[data-tl="en"] .ln-tr p:not([data-tl="en"]):not(.tl-any),
.reader[data-tl="kk"] .ln-tr p:not([data-tl="kk"]):not(.tl-any),
.reader[data-tl="ru"] .ln-tr p:not([data-tl="ru"]):not(.tl-any) { display: none; }
.reader:not([data-tl="all"]) .ln-tr .tl { display: none; }
.reader.no-rune .rune { display: none; }
.reader.no-ap .ap { display: none; }
.reader.no-tc .ln-tc { display: none; }
.reader.no-tr .ln-tr { display: none; }
.reader.no-tr { --cols: var(--lnw, 2.5rem) minmax(0, 1fr); }
.cp { margin-top: 2px; min-height: 24px; font: 11px var(--f-ui); color: var(--text-muted); background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
a.fn { font: 11px var(--f-mono); color: var(--rust); vertical-align: super; line-height: 0; margin-left: 1px; }
.keys { margin-top: 6px; }
.notes summary, .reading summary { cursor: pointer; padding: 4px 0; }
.fnlist { list-style: decimal; padding-left: 28px; font-size: 12px; color: var(--text-muted); }
@media (min-width: 1100px) { .fnlist { columns: 2; column-gap: 24px; } .fnlist li { break-inside: avoid; } }
.fnlist li + li { margin-top: 4px; }
.fnpop { position: absolute; z-index: 40; max-width: min(28rem, 92vw); background: var(--bg-raised); border: 1px solid var(--line-ctl); border-radius: 2px;
  padding: 8px 12px; font: 13px/1.5 var(--f-ui); color: var(--text); }
.reading { border-top: 1px solid var(--line); }
.reading summary { min-height: 28px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reader--mini { margin: 0 0 8px; }
.reader--mini .rune { font-size: calc(18px * var(--rscale)); }

/* images */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 8px; }
.tile { display: block; aspect-ratio: 4 / 3; }
.tile.slip { aspect-ratio: 4 / 5; }
.tile__cap { display: flex; gap: 4px; align-items: center; margin-top: 2px; font-size: 11px; color: var(--text-muted); }

/* data sheet */
.kv th { width: 11rem; padding: 3px 8px 3px 0; font: 12px/1.4 var(--f-ui); text-transform: none; letter-spacing: 0; color: var(--text-muted); vertical-align: top;
  border-bottom: 1px solid var(--line); }
.kv td { padding: 3px 8px; overflow-wrap: anywhere; }
@media (min-width: 1100px) {
  .kv--2 tbody { display: block; columns: 2; column-gap: 24px; }
  .kv--2 tr { display: table; width: 100%; table-layout: fixed; break-inside: avoid; }
}

/* the citation an Uppsala record asks for, under its data sheet */
.cite { max-width: 80ch; margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid var(--ochre); background: var(--img-paper);
  font: 13px/1.5 var(--f-ui); color: var(--text-muted); }
.cite__k { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.cite__r { color: var(--text); }
.cite__l { white-space: nowrap; }
.cite a { overflow-wrap: anywhere; }

/* literature */
.lit li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 4px; padding: 3px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.ref__n { color: var(--text-faint); }
.littab td.ref { font-size: 12px; }
.littab td.fl { font-size: 12px; max-width: 18rem; }
.littab td.fl a { color: var(--text); margin-right: 4px; }
.littab td.fl a:hover { color: var(--ochre); }
.pubs li { padding: 2px 0; }

/* search */
.bigsearch { display: flex; gap: 8px; max-width: 46rem; margin: 8px 0; }
.bigsearch input { flex: 1; height: 32px; padding: 0 8px; font: 14px var(--f-ui); color: var(--text); background: var(--bg-sunken); border: 1px solid var(--line-ctl); border-radius: 2px; }
.bigsearch button { height: 32px; padding: 0 12px; font: 600 13px var(--f-ui); color: var(--on-accent); background: var(--ochre); border: 0; border-radius: 2px; cursor: pointer; }
.search h1 { margin-bottom: 4px; }
.rgrp h2 { display: flex; gap: 8px; align-items: baseline; margin: 16px 0 4px; padding-top: 6px; border-top: 1px solid var(--line-ctl); font: 700 13px var(--f-ui);
  text-transform: uppercase; letter-spacing: .06em; }
.rgrp .count { font: 400 12px var(--f-mono); color: var(--text-faint); }
.hit { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 2px 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.hit__s { font: 12px var(--f-mono); color: var(--text-faint); }
.hit__t { font-weight: 600; }
.hit > :not(.hit__s) { grid-column: 2; }
.hit__tc { font: 12px var(--f-mono); }
.hit__tr, .hit__x { font-size: 12px; color: var(--text-muted); }
.hit .rune { text-align: left; font-size: 18px; direction: rtl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
mark { background: color-mix(in srgb, var(--ochre) 30%, transparent); color: inherit; }
.more { margin-top: 6px; height: 28px; padding: 0 8px; font: 12px var(--f-ui); color: var(--text); background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }

/* dictionary */
.dict { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 24px; }
.dict__side { position: sticky; top: 48px; align-self: start; display: grid; gap: 8px; }
.dict__side input { height: 28px; padding: 0 8px; font: 13px var(--f-ui); color: var(--text); background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 2px; }
.rail-az, .rail { }
.dict .rail { display: flex; flex-wrap: wrap; gap: 2px 8px; font: 12px var(--f-mono); position: static; padding: 0; }
.dgrp h2 { margin: 12px 0 4px; padding-top: 4px; border-top: 1px solid var(--line-ctl); font: 700 13px var(--f-mono); }
.de { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.de dt { font: 600 13px var(--f-mono); }
.de dd { margin: 0; }
.de__g { font-size: 13px; }
.dict__main:not([data-gl="all"]) .de__g { display: none; }
.dict__main[data-gl="en"] .de__g[data-gl="en"], .dict__main[data-gl="kk"] .de__g[data-gl="kk"], .dict__main[data-gl="ru"] .de__g[data-gl="ru"] { display: block; }
.dict .muted.small a { color: var(--ochre); }

/* signs */
.signs .lede { max-width: 80ch; margin-bottom: 4px; }
.signs section h2 { margin: 16px 0 6px; padding-top: 6px; border-top: 1px solid var(--line-ctl); font: 700 13px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; }
.sgrid { display: grid; gap: 8px; }
.sgrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 8px; }
.sgrow--pair { grid-template-columns: repeat(2, minmax(0, 14rem)); }
@media (min-width: 900px) {
  /* desktop: several consonant pairs per row instead of one pair per row */
  .sgrid:has(.sgrow--pair) { grid-template-columns: repeat(auto-fill, minmax(23rem, 1fr)); gap: 8px 16px; }
  .sgrid .sgrow--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg__d { font-size: 11px; line-height: 1.35; }
}
.sg { border: 1px solid var(--line); padding: 6px 8px; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: baseline; align-content: start; }
.sg__u { font: 28px/1.2 var(--f-rune); color: var(--rune); grid-row: span 2; }
.sg__l { font-family: "Bengu Legacy"; color: var(--rune-legacy); font-size: 14px; }
.sg__v { font: 600 15px var(--f-mono); }
.sg__d { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin-top: 4px; font-size: 11px; }
.sg__d > div { display: contents; }
.sg__d dt { color: var(--text-faint); }
.sg__d dd { margin: 0; font-family: var(--f-mono); }
.sg--shape { border-style: dashed; }
.sg p { grid-column: 1 / -1; margin-top: 4px; }

/* sources */
.src p { max-width: 80ch; margin-top: 4px; }

/* lightbox */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--bg-sunken) 97%, transparent); color: var(--text); }
.lb::backdrop { background: rgba(0,0,0,.6); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.lb__stage img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); object-fit: contain; user-select: none; -webkit-user-drag: none;
  cursor: zoom-in; transform-origin: 50% 50%; transition: transform .12s ease-out; }
.lb__stage.is-zoom img { cursor: grab; }
.lb__stage.is-pan img { cursor: grabbing; transition: none; }
.lb__stage.paper img { background: var(--img-paper); padding: 12px; mix-blend-mode: normal; }
.lb__bar { display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12px; background: var(--bg-sunken); }
.lb__meta { flex: 1; min-width: 0; }
.lb__cap { color: var(--text); font-size: 13px; }
.lb__src { color: var(--text-muted); font-family: var(--f-mono); font-size: 11px; overflow-wrap: anywhere; }
.lb__btn { background: none; border: 1px solid var(--line-ctl); color: var(--text); border-radius: 2px; min-width: 32px; height: 32px; cursor: pointer; font: 14px var(--f-ui); }
.lb__n { color: var(--text-faint); font-family: var(--f-mono); white-space: nowrap; }
.lb__side { display: none; }
@media (min-width: 1200px) {
  .lb.has-side[open] { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: 1fr auto; }
  .lb.has-side .lb__stage { grid-column: 1; grid-row: 1; }
  .lb.has-side .lb__bar { grid-column: 1; grid-row: 2; }
  .lb.has-side .lb__stage img { max-width: calc(100vw - 360px - 2rem); }
  .lb.has-side .lb__side { display: block; grid-column: 2; grid-row: 1 / 3; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px;
    border-left: 1px solid var(--line); background: var(--bg-sunken); }
}
@media (min-width: 1680px) {
  .lb.has-side[open] { grid-template-columns: minmax(0, 1fr) 440px; }
  .lb.has-side .lb__stage img { max-width: calc(100vw - 440px - 2rem); }
}
.lb__gh { position: sticky; top: 0; z-index: 1; margin: 0; padding: 20px 0 8px; background: var(--bg-sunken); font: 11px var(--f-mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); }
.lb__side > .lb__rows:first-child { margin-top: 16px; }
.lb__rows { display: flex; flex-wrap: wrap; gap: 4px; }
.lb__rows::after { content: ""; flex-grow: 999; }
.lb__t { flex: var(--ar) 1 calc(var(--ar) * 88px); aspect-ratio: var(--ar); padding: 0; border: 0; background: var(--bg); cursor: pointer; opacity: .7; }
.lb__t.paper { background: var(--img-paper); }
.lb__t img { width: 100%; height: 100%; object-fit: contain; }
.lb__t:hover, .lb__t:focus-visible { opacity: 1; }
.lb__t[aria-current] { opacity: 1; outline: 2px solid var(--ochre); outline-offset: 2px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1400px) { .nav { gap: 10px; } .hsearch input { width: 11rem; } }
@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .ixbtn { display: grid; }
  .ix { position: fixed; z-index: 30; top: 40px; left: 0; width: min(86vw, 22rem); transform: translateX(-102%); transition: transform .15s; }
  body.ix-open .ix { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .ix__f a, .ix__r { min-height: 36px; }
  .rec { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: -1; grid-template-columns: minmax(0, 1fr); }
  .rec__body { display: contents; }
  .rhead { order: -2; }
  .rail { order: -1; }
  .snav, .osec { order: 0; }
  .lead .slip, .lead .ph { max-height: 14rem; }
  .lead .slip img, .lead .ph img { max-height: calc(14rem - 16px); margin: 0 auto; }
  .strip { display: none; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div:nth-child(4) { border-right: 0; }
  .stats > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .dict { grid-template-columns: minmax(0, 1fr); }
  .dict__side { position: static; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .ftr__nav { display: flex; }
  .ix .ix__in::before { content: none; }
  .rgh { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hdr { gap: 8px; padding: 0 12px; }
  .main { padding: 12px 12px 0; }
  .hsearch { display: none; }
  .sicon { display: grid; margin-left: auto; }
  .mark__run { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .ids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbar { position: static; }
  .tbar input[type=search] { width: 100%; }
  .tbar .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .ftab thead { display: none; }
  .ftab, .ftab tbody { display: block; }
  .ftab tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "th sig ln" "th name co" "th place co"; gap: 0 8px;
    height: auto; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .ftab td { border: 0; padding: 0; }
  .ftab .c-n, .ftab .c-ly, .ftab .c-img, .ftab .c-src, .ftab .c-date { display: none; }
  .ftab .c-th { grid-area: th; width: auto; }
  .ftab .c-sig { grid-area: sig; font-size: 12px; }
  .ftab .c-name { grid-area: name; }
  .ftab .c-place { grid-area: place; font-size: 12px; }
  .ftab .c-ln { grid-area: ln; }
  .ftab .c-co { grid-area: co; }
  .ftab .tc1 { max-width: 100%; }
  .reader { --cols: var(--lnw, 2rem) minmax(0, 1fr); }
  .ln-tr { grid-column: 2; }
  .rune { font-size: calc(20px * var(--rscale)); }
  .kv th { width: 40%; }
  .mapstrip__map { overflow-x: auto; }
  .mapstrip .map { width: 720px; max-width: none; }
  .de { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hit { grid-template-columns: minmax(0, 1fr); }
  .hit > :not(.hit__s) { grid-column: 1; }
  .lb__bar { flex-wrap: wrap; }
  .lb__meta { flex-basis: 100%; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .ix { transition: none; } }
.pubs li, .pubs .m, .ids dd, .stab td { overflow-wrap: anywhere; }
.main { overflow-wrap: break-word; }

/* ---------------------------------------------------------------- review round 2 */
html, body { overflow-x: clip; }
.main, .rec > *, .rec__body > *, .shell > * { min-width: 0; }
.ftab { table-layout: fixed; }
.ftab .c-n { width: 2.5rem; } .ftab .c-sig { width: 5.5rem; } .ftab .c-th { width: 52px; } .ftab .c-place { width: 11rem; }
.ftab .c-date { width: 7rem; } .ftab .c-ln { width: 3rem; } .ftab .c-ly { width: 8rem; } .ftab .c-img { width: 3rem; }
.ftab .c-co { width: 3.5rem; } .ftab .c-src { width: 5.5rem; }
.ftab td { overflow: hidden; }
.ftab td.c-place, .ftab td.c-name a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftab td.c-name a { display: block; }
.ix__f a { grid-template-columns: 4.2rem minmax(0, 1fr); }
.ids dd.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt--s circle { fill: var(--ochre); fill-opacity: .55; stroke: none; }
.pt__n { paint-order: stroke; stroke: var(--bg); stroke-width: calc(3px * var(--k)); fill: var(--text-muted); }
.rune { letter-spacing: .02em; }
.ln { padding: 5px 0; }
.tile.slip { aspect-ratio: auto; height: 12rem; }
.alts { max-width: 100%; }
.rbar .legend { white-space: normal; }
@media (max-width: 720px) {
  .rgh__maps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; }
  .tbar input[type=search] { min-width: 0; }
  .ftab { table-layout: auto; }
  .ftab td.c-name a { white-space: normal; }
  .rune, .ln-tc, .ln-tr p { overflow-wrap: anywhere; }
}
:root:not([data-theme="dark"]) .pt--s circle { fill-opacity: .75; }
.warn { margin: 8px 0 0; padding: 4px 8px; border-left: 2px solid var(--line-ctl); background: var(--bg-raised); font-size: 13px; max-width: 80ch; }
.warn--rust { border-left-color: var(--rust); }
.warn--rust b { color: var(--rust); }
.st--rust { color: var(--rust); font-weight: 600; } .st--muted { color: var(--text-muted); }
.co--n { color: var(--text-faint); }
.ref .au { color: var(--text); } .ref .ti { color: var(--text-muted); }
.littab td:first-child { width: 3.5rem; white-space: nowrap; } .littab td.fl { width: 12rem; } .littab td:nth-child(3) { width: 3rem; }
.pgs summary { cursor: pointer; color: var(--text-muted); font-size: 12px; }
.pglist li { font-size: 12px; padding: 1px 0; overflow-wrap: anywhere; }
.ln-na { display: grid; grid-template-columns: var(--cols); column-gap: 16px; padding: 2px 0; }
.ln-na span { grid-column: 2 / -1; }
.rune-na { font-size: 11px; color: var(--text-faint); font-style: italic; }

/* ---------------------------------------------------------------- interactive map */
.mapapp__bar { top: 40px; }
.mapapp__bar .sel { display: inline-flex; gap: 4px; align-items: center; font: 12px var(--f-ui); color: var(--text-muted); }
.mapapp__bar select { width: 11rem; }
.mapapp__bar select, .mapapp__bar input[type=number] { height: 28px; padding: 0 4px; font: 12px var(--f-mono); color: var(--text); background: var(--bg-sunken);
  border: 1px solid var(--line); border-radius: 0; }
.mapapp__bar input[type=number] { width: 4.6rem; }
.mapapp__main { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 0; border: 1px solid var(--line); margin-top: 4px; }
.mapapp__map { position: relative; min-width: 0; border-right: 1px solid var(--line); }
.mapapp__map .map { height: min(64vh, 620px); touch-action: none; cursor: grab; user-select: none; }
.mapapp__map .map.is-drag { cursor: grabbing; }
.mapapp__map .map:focus-visible { outline: 2px solid var(--ochre); outline-offset: -2px; }
.mapctl { position: absolute; top: 6px; left: 6px; display: grid; gap: 2px; }
.mapctl button { width: 28px; height: 28px; font: 15px/1 var(--f-mono); color: var(--text); background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.mapctl button:hover, .mapctl button:focus-visible { border-color: var(--text); }
.maptip { position: absolute; z-index: 5; max-width: 250px; padding: 4px 6px; font: 12px/1.35 var(--f-ui); background: var(--bg); border: 1px solid var(--text);
  pointer-events: none; }
.maptip__img { float: right; width: 56px; height: 56px; margin: 0 0 2px 6px; background: #fff; }
.maptip__img img { width: 100%; height: 100%; object-fit: contain; }
.maptip .badge { font-size: 10px; }
.maptip.is-pin { pointer-events: auto; max-width: 300px; max-height: 260px; overflow-y: auto; }
.maptip.is-pin ol { margin: 4px 0 0; padding: 0; list-style: none; }
.maptip.is-pin li { padding: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maptip.is-pin li .m { color: var(--text-muted); }
.maptip__x { float: right; width: 20px; height: 20px; padding: 0; font: 14px/1 var(--f-mono); color: var(--text); background: none; border: 1px solid var(--line); cursor: pointer; }
.map--app .lbl-water { font-size: calc(10px * var(--k)); }
.map--app .grat__l { display: none; }
.map--app.is-far .lbl-water, .map--app.is-far .grat__l { display: none; }
.pts .pt circle { stroke: var(--bg); paint-order: stroke; }
.pts .pt--a circle { stroke: var(--ochre); }
.pts .pt--e circle { fill: var(--ochre); stroke: var(--bg); }
.map--app.is-near .pts .pt--s circle { fill-opacity: .85; }
.pts .pt--q circle { stroke: var(--rust); }
.pts .pt--q.pt--e circle { fill: var(--rust); }
.cl circle { fill: var(--bg); stroke: var(--ochre); }
.cl text { font-family: var(--f-mono); text-anchor: middle; fill: var(--text); pointer-events: none; }
.cl:hover circle, .cl:focus-visible circle, .cl.is-hot circle { fill: var(--bg-raised); stroke: var(--text); }
.pt__s { font-family: var(--f-mono); fill: var(--text-muted); paint-order: stroke; stroke: var(--bg); stroke-width: calc(3px * var(--k)); pointer-events: none; }
.map--app .lbl-water { paint-order: stroke; stroke: var(--bg); stroke-width: calc(3px * var(--k)); }
.pts a:focus-visible { outline: none; }
.pts a:focus-visible circle { stroke: var(--text); stroke-width: calc(2px * var(--k)); }
.mapapp__list { display: flex; flex-direction: column; contain: size; }
.mapapp__list .h2 { margin: 0; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.vlist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 0; min-height: 0; font-size: 12px; }
.vlist li { border-bottom: 1px solid var(--line); }
.vlist li a { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; height: 24px; padding: 0 8px; }
.vlist .vn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlist li:hover { background: var(--bg-sunken); }
.vlist a { color: var(--text); }
.vlist li.muted { padding: 2px 8px; }
.vlist .m { color: var(--text-muted); }
.nopos { margin-top: 8px; border: 1px solid var(--line); }
.nopos summary { padding: 4px 8px; cursor: pointer; }
.nopos ul { columns: 3 18rem; column-gap: 16px; margin: 0; padding: 4px 8px; list-style: none; font-size: 12px; border-top: 1px solid var(--line); }
.nopos li { break-inside: avoid; padding: 1px 0; }
.nopos li .m { color: var(--text-muted); }
@media (max-width: 900px) {
  .mapapp__main { grid-template-columns: minmax(0, 1fr); }
  .mapapp__bar .sel select { max-width: 70vw; }
  .mapapp__map { border-right: 0; border-bottom: 1px solid var(--line); }
  .mapapp__list { contain: none; }
  .vlist { max-height: 11rem; flex: none; }
  .mapapp__map .map { height: 62vw; }
  .rtab th, .rtab td { white-space: nowrap; }
  .mapapp__bar { position: static; }
}

/* light theme: quieter water lines and grid */
:root:not([data-theme="dark"]) .map .coast { stroke-opacity: .5; }
:root:not([data-theme="dark"]) .map .river { stroke-opacity: .3; }
:root:not([data-theme="dark"]) .map .river.major { stroke-opacity: .55; }
:root:not([data-theme="dark"]) .map .lake { fill-opacity: .22; }
:root:not([data-theme="dark"]) .map .grat path { stroke-opacity: .5; }

/* ---------------------------------------------------------------- runic signs (catalogue glyphs drawn from SVG) */
.ap i, .rune--tok i, .inv-g i, .signpop__g i { display: inline-block; background: currentColor; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.ap { margin: 2px 0 0; color: var(--text-faint); line-height: 1.2; font-size: calc(16px * var(--rscale)); }
.ap::before { content: attr(data-l); float: left; font: 600 10px/1.9 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.ap { text-align: right; }
.ap .apr { display: block; }
.inv td:last-child { white-space: nowrap; }
.ap i { width: calc(var(--gw, .6) * .9em); height: .9em; margin-right: .05em; vertical-align: -.12em; }
.ap .aps { display: inline-block; width: .35em; }
.ap .apt { font: calc(12px * var(--rscale)) var(--f-mono); color: var(--text-faint); margin: 0 .2em; }
.ap i.gx, .rune--tok i.gx, .inv-g i.gx { background: none; outline: 1px dashed var(--text-faint); }
.rune--tok b { font-weight: inherit; }
.rune--tok b.md { border-bottom: 1px dotted var(--text-faint); padding-bottom: 1px; }
.rune--tok b.lo { color: var(--rune-legacy); border-bottom: 1px dotted var(--rust); padding-bottom: 1px; }
.rune--tok i { width: calc(var(--gw, .6) * 1em); height: 1em; vertical-align: -.14em; }
.rune--tok i.ph { min-width: .6em; padding: 0 2px; outline: 1px dotted var(--rust); outline-offset: 2px; margin: 0 .15em; background-clip: content-box; }
.rune--tok i.gx.ph { background: none; }
.ap i[class^="g"] { }
.ap i:hover, .rune--tok i:hover { color: var(--text); }
.rune--tok b:hover { background: var(--sel); }
.inv td { vertical-align: middle; }
.inv-g { width: 2.4rem; }
.inv-g i { width: 22px; height: 26px; color: var(--text); }
.inv .rune-c { font-family: var(--f-rune); font-size: 20px; color: var(--rune); }
.inv tr.lo .m { color: var(--rust); }
.cfw { font: 11px var(--f-mono); padding: 0 4px; border: 1px solid var(--line); }
.cfw--high { color: var(--text-muted); }
.cfw--medium { color: var(--text-muted); border-color: var(--line-ctl); }
.cfw--low, .cfw--none { color: var(--rust); border-color: var(--rust); }
.signpop { position: absolute; z-index: 30; max-width: 260px; padding: 6px 8px; font: 12px/1.35 var(--f-ui); background: var(--bg); border: 1px solid var(--line-ctl);
  }
.signpop.is-lo { border-color: var(--rust); }
.signpop__g { float: left; width: 34px; height: 40px; margin: 0 8px 2px 0; padding: 2px; border: 1px solid var(--line); background: var(--bg-sunken); }
.signpop__g i { width: 100%; height: 100%; color: var(--text); }
.signpop__u { font: 400 22px var(--f-rune); color: var(--rune); }
.signpop dl { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin: 4px 0 2px; clear: both; }
.signpop dt { color: var(--text-muted); }
.signpop dd { margin: 0; }
.signpop .m { font-family: var(--f-mono); }
.slegend { margin: 2px 0 4px; }
.slegend .rune { display: inline; font-size: 16px; line-height: 1; }
.slegend i.ph { display: inline-block; width: .6em; height: .8em; vertical-align: -.1em; }
@media (max-width: 720px) { .inv .inv-x { display: none; } }

/* ---------------------------------------------------------------- taste pass (round 7) */
.prose--desc { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 16px; max-width: none; }
.prose--desc > h3 { grid-column: 1; margin: 0; padding: 6px 0 2px; font: 600 11px/1.4 var(--f-ui); text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); border-top: 1px solid var(--line); }
.prose--desc > :not(h3) { grid-column: 2; margin: 0; padding: 4px 0 2px; max-width: 72ch; }
.prose--desc > h3 + * { border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 720px) { .prose--desc { display: block; } .prose--desc > h3 { margin-top: 8px; } }
.ftab .c-name a, .rtab td:first-child a, .stab td a { font-weight: 400; }
.ix__f a { font-weight: 400; }
.ix__f a[aria-current] { font-weight: 600; }
a.ext { font: 11px var(--f-mono); text-decoration: none; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp { opacity: 0; transition: opacity .1s; }
.ln:hover .cp, .ln:focus-within .cp, .ln.is-focus .cp { opacity: 1; }
@media (hover: none) { .cp { opacity: 1; } }
.ap { color: var(--text-muted); }
@media (max-width: 720px) { .reader .ln-tr { border-left: 2px solid var(--line); padding-left: 8px; margin-top: 4px; } }
.srcd > summary { cursor: pointer; padding: 4px 0; color: var(--text-muted); }
.srcd[open] > summary { margin-bottom: 4px; }
.rec--norail { grid-template-columns: minmax(0, 1fr); }
/* dictionary: no global index, headword is the search link, glosses clamped */
.page-dict .shell { grid-template-columns: minmax(0, 1fr); }
.page-dict .ix { display: none; }
.dict dt a { color: var(--text); font-weight: 600; }
.dict dt a:hover { color: var(--ochre); }
.de__b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.de__b.is-open { display: block; }

/* images: compact catalogue (every image visible, small tiles, one row per group) */
.cat { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cg { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cg__h { margin: 0; font: 600 11px/1.4 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.cg__h .n { display: block; font: 400 11px var(--f-mono); letter-spacing: 0; color: var(--text-faint); }
.gal--c { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gal--c > li { width: auto; }
.gal--c .tile, .gal--c .tile.slip { height: 84px; width: auto; aspect-ratio: auto; padding: 2px; }
.gal--c .tile img { height: 100%; width: auto; max-width: 280px; object-fit: contain; display: block; }
.gal--c .tile__cap { max-width: 120px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .cg { grid-template-columns: minmax(0, 1fr); } .gal--c .tile, .gal--c .tile.slip { height: 72px; } }
/* ---------------------------------------------------------------- one reader, every edition */
.eds { margin: 0 0 4px; }
.eds .m:first-child, .eds .m { color: var(--text-muted); }
.reader--multi .ln { grid-template-columns: var(--lnw, 2.5rem) minmax(0, 1.25fr) repeat(var(--ntr, 1), minmax(0, 1fr)); }
.reader--multi .tx { margin: 0; font: calc(15px * var(--rscale))/1.5 var(--f-text); }
.reader--multi .tx.c1 { grid-column: 3; } .reader--multi .tx.c2 { grid-column: 4; }
.reader--multi .tx.c3 { grid-column: 5; } .reader--multi .tx.c4 { grid-column: 6; }
.reader--multi .tx[hidden], .reader--multi [hidden] { display: none; }
.reader--multi .tx + .tx { border-left: 1px solid var(--line); padding-left: 10px; }
.reader--multi .tx.c2, .reader--multi .tx.c3, .reader--multi .tx.c4 { border-left: 1px solid var(--line); padding-left: 10px; }
.reader--multi .ln-no .cf { display: block; font-size: 9px; letter-spacing: .04em; color: var(--text-faint); }
.reader--multi .ln-face { margin: 0; font: 600 10px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.reader.no-tr .tx { display: none; }
.reader--multi.no-tr { --ntr: 0 !important; }
/* column header: each column names its edition where it is read */
.mrw .ln-cols { display: grid; grid-template-columns: 2.5rem minmax(0, 1.25fr) repeat(var(--ntr, 1), minmax(0, 1fr)); column-gap: 16px;
  position: sticky; top: 72px; z-index: 3; align-items: end; padding: 4px 0 5px; margin: 0; background: var(--bg);
  border-top: 0; border-bottom: 1px solid var(--line-ctl); }
.colh-orig { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: end; min-width: 0; }
.colh { display: inline-flex; flex-direction: column; gap: 1px; min-width: 0; }
.colh__l { font: 600 10px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.colh__n { font: 12px/26px var(--f-ui); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trc { display: flex; align-items: center; min-width: 0; }
.trc select, .colh select { height: 26px; min-width: 0; width: 100%; max-width: 18rem; padding: 0 4px; font: 12px var(--f-ui); color: var(--text);
  background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 0; text-overflow: ellipsis; }
.trc select { flex: 1 1 auto; }
.trc__x, .trc__add { flex: none; height: 26px; width: 24px; padding: 0; font: 14px var(--f-mono); color: var(--text-muted); background: none;
  border: 1px solid var(--line); border-left: 0; cursor: pointer; }
.trc__add { margin-left: 4px; border-left: 1px solid var(--line); }
.trc__x:hover, .trc__add:hover { color: var(--text); background: var(--bg-sunken); }
.mrw:has(> .reader--multi.no-tr) { --ntr: 0 !important; }
.mrw:has(> .reader--multi.no-tr) .trc { display: none; }
@media (max-width: 760px) {
  .mrw .ln-cols { grid-template-columns: 2rem minmax(0, 1fr); row-gap: 4px; top: 72px; }
  .mrw .ln-cols .trc { grid-column: 2; }
}
/* editions key */
.edkey { margin: 6px 0 2px; font-size: 12px; }
.edkey summary { cursor: pointer; font: 600 11px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.edkey dl { display: grid; gap: 4px; margin: 6px 0 0; }
.edkey dl > div { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 12px; }
.edkey dt { font-weight: 600; }
.edkey dd { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.edkey .sig { display: inline-block; min-width: 3.4em; font-size: 10px; font-weight: 400; color: var(--text-faint); }
@media (max-width: 760px) { .edkey dl > div { grid-template-columns: 1fr; gap: 0; } }
.mrbar .sel { display: inline-flex; gap: 4px; align-items: center; font: 12px var(--f-ui); color: var(--text-muted); }
@media (max-width: 760px) {
  .reader--multi .ln { grid-template-columns: var(--lnw, 2rem) minmax(0, 1fr); }
  .reader--multi .tx { grid-column: 2 !important; border-left: 2px solid var(--line); padding-left: 8px; margin-top: 4px; }
}

.reader--multi .ln-eds { display: inline; margin-left: 4px; font-size: 9px; letter-spacing: .02em; color: var(--text-faint); }
.reader--multi .fb { opacity: .62; }
.reader--multi .fb::before, .reader--multi .tx.alt::before { content: attr(data-sig); display: inline-block; margin-right: 6px; padding: 0 3px;
  font: 9px/14px var(--f-mono); color: var(--text-muted); border: 1px solid var(--line); vertical-align: 2px; }
.reader--multi .tx.alt:not(.fb) { opacity: .85; }
.cfw { white-space: nowrap; }
.tlm--desc { margin: 0 0 4px; }

/* ---------------------------------------------------------------- Signs: compact grid (round 9) */
.sg-note { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 6px; }
.sg-k { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sg-k__s { width: 10px; height: 10px; border: 1px solid var(--line-ctl); }
.sg-k__s.md { border-style: dotted; border-color: var(--text-muted); }
.sg-k__s.lo { border-color: var(--rust); background: color-mix(in srgb, var(--rust) 12%, transparent); }
.sgi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sgi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; grid-template-rows: 26px auto; align-items: center; gap: 1px 3px; padding: 4px 4px 3px;
  background: var(--bg); min-width: 0; }
.sgi:hover, .sgi:focus-visible { background: var(--bg-sunken); outline: none; }
.sgi > i { grid-column: 1; grid-row: 1; width: 18px; height: 22px; justify-self: start; color: var(--text); display: inline-block; background: currentColor;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.sgi > i.gx { background: none; outline: 1px dashed var(--text-faint); }
.sgi__u { grid-column: 2; grid-row: 1; font: 18px/1 var(--f-rune); color: var(--rune); justify-self: end; }
.sgi__u--by { opacity: .6; }
.sgi__u--none { font: 11px var(--f-mono); color: var(--text-faint); }
.sgi__v { grid-column: 1; grid-row: 2; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgi__n { grid-column: 2; grid-row: 2; font-size: 10px; color: var(--text-faint); justify-self: end; }
.sgi.md .sgi__v { text-decoration: underline dotted var(--text-faint); text-underline-offset: 2px; }
.sgi.lo { background: color-mix(in srgb, var(--rust) 7%, var(--bg)); }
.sgi.lo .sgi__v { color: var(--rust); }

/* ---------------------------------------------------------------- phone UX (QA 2026-11) */
body.ix-open { overflow: hidden; }
.hdr { transition: transform .18s ease-out; }
.snav { transition: top .18s ease-out; }
@media (max-width: 760px) {
  /* the edition pickers are set once: they scroll away with the text instead of covering it */
  .mrw .ln-cols { position: static; }
}
@media (max-width: 720px) {
  /* the site bar slides away while reading down and comes back on the way up */
  body.hdr-hide .hdr { transform: translateY(-100%); }
  body.hdr-hide .snav { top: 0; }
  /* touch targets */
  .hdr { gap: 6px; }
  .langs { gap: 0; }
  .langs a { display: grid; place-items: center; min-width: 30px; height: 40px; }
  .sicon { min-width: 36px; height: 40px; place-items: center; }
  .theme, .ixbtn { height: 34px; min-width: 34px; }
  .snav { height: 40px; }
  .snav a { line-height: 40px; }
  .chip, .seg button { height: 36px; padding: 0 10px; }
  .trc select, .colh select { height: 36px; font-size: 16px; max-width: none; }
  .trc__x, .trc__add { height: 36px; width: 36px; font-size: 16px; }
  .ix__f a, .ix__r { min-height: 40px; }
  /* record header: key cells, the rest on demand */
  .ids .ids-x { display: none; }
  .ids.is-open .ids-x { display: block; }
  .ids-more { display: block; grid-column: 1 / -1; padding: 0 !important; }
  .ids-more button { width: 100%; height: 36px; font: 12px var(--f-ui); color: var(--text-muted); background: var(--bg); border: 0; cursor: pointer; }
  .ids-more button::after { content: " ▾"; }
  .ids.is-open .ids-more button::after { content: " ▴"; }
  .alts { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* home: two figures (inscriptions, images), not eight */
  .stats { gap: 1px; background: var(--line); }
  .stats > div { border: 0 !important; background: var(--bg); }
  .stats > div:not(:nth-child(1)):not(:nth-child(6)) { display: none; }
  /* image viewer: one-line source (tap for the full path), big buttons, close in the corner */
  .lb__src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .lb__src.is-full { white-space: normal; overflow-wrap: anywhere; }
  .lb__bar { gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .lb__btn { min-width: 44px; height: 44px; font-size: 16px; }
  .lb__btn[data-a="close"] { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; z-index: 2; background: var(--bg-sunken); }
}

/* ---------------------------------------------------------------- finds list + map page on a phone (QA 2026-11) */
.tbars { position: sticky; top: 40px; z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 32px; padding: 2px 0;
  background: var(--bg); }
.tbars > .tbar { display: contents; }
.tbars .cnt { order: 9; }
.mapfilt > summary { display: none; }
.map .pts .hit { fill: transparent !important; stroke: none !important; }
@media (max-width: 720px) {
  .tbars { display: contents; }
  .tbars > .tbar { display: flex; }
  .tbars > .tbar--q { position: sticky; top: 40px; z-index: 3; flex-wrap: nowrap; padding: 4px 0; transition: top .18s ease-out; }
  .tbars > .tbar--q input[type=search] { flex: 1 1 auto; width: auto; height: 36px; font-size: 16px; }
  .tbars .cnt { order: 0; white-space: nowrap; }
  body.hdr-hide .tbars > .tbar--q { top: 0; }
  .tbar .chips.is-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  /* rows: one tap target each, the line count with its unit, no unexplained coordinate dot */
  .ftab tr { position: relative; grid-template-areas: "th sig ln" "th name name" "th place place"; content-visibility: auto;
    contain-intrinsic-size: auto 67px; }
  .ftab .c-name a::after { content: ""; position: absolute; inset: 0; }
  .ftab .c-co { display: none; }
  .ftab .c-ln { width: auto; overflow: visible; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
  .ftab .c-ln:not(:empty)::before { content: attr(data-u) ": "; }
  /* map: filters folded, a taller map */
  .mapfilt > summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 2px; cursor: pointer;
    font: 600 12px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 1px solid var(--line); }
  .mapfilt > summary .m { margin-left: auto; font-weight: 400; text-transform: none; letter-spacing: 0; }
  .mapfilt[open] > summary { border-bottom: 0; }
  .mapapp__map .map { height: 60vh; height: 60dvh; }
  .mapctl button { min-width: 40px; min-height: 40px; }
}

/* literature: links added by the link check, dead register links, catalogue search for works without a link */
.ext--add { border-bottom: 1px dotted currentColor; }
.ext--dead { text-decoration: line-through; color: var(--text-faint); }
.lk { margin-left: 4px; font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.lk a { color: var(--text-muted); }
@media (hover: hover) { .lk { opacity: 0; transition: opacity .12s; } tr:hover .lk, li:hover .lk, .lk:focus-within { opacity: 1; } }

/* catalogue page links (TBYK, p. N ↗) and the desktop page preview */
.pgref { font: 13px var(--f-ui); text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.pgref abbr { text-decoration: none; }
.pgv { display: none; height: 22px; padding: 0 6px; font: 11px var(--f-ui); color: var(--text-muted); background: none; border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; vertical-align: 1px; }
.pgv:hover, .pgv[aria-expanded="true"] { color: var(--text); border-color: var(--text); }
@media (hover: hover) and (min-width: 900px) { .pgv { display: inline-block; } }
.pgframe { margin: 6px 0 10px; border: 1px solid var(--line); background: var(--bg-sunken); }
.pgframe__bar { display: flex; gap: 8px; justify-content: space-between; padding: 3px 8px; font: 11px var(--f-ui); color: var(--text-muted); border-bottom: 1px solid var(--line); }
.pgframe iframe { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #fff; }
.pgref a.pg { white-space: nowrap; }
@media (max-width: 720px) { .pgref { display: block; margin: 2px 0 0; } }

/* find page maps: wide (where in Eurasia) + close-up (what is around it) */
.maps { display: grid; gap: 6px; }
.ovw { margin: 0; border: 1px solid var(--line); background: var(--bg-sunken); }
.ovw__map { position: relative; display: block; aspect-ratio: 1200 / 582; overflow: hidden; }
.ovw__base { position: absolute; inset: 0; background: var(--text-faint);
  -webkit-mask: url(overview.svg) center / 100% 100% no-repeat; mask: url(overview.svg) center / 100% 100% no-repeat; }
.ovw__box { position: absolute; border: 1px solid var(--ochre); background: color-mix(in srgb, var(--ochre) 10%, transparent); }
.ovw__pt { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ochre);
  box-shadow: 0 0 0 2px var(--bg-sunken); }
.ovw__pt--rough { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: none; border: 1.5px dashed var(--ochre); box-shadow: none; }
.maps__cap { margin: 0; }
@media (max-width: 1100px) {
  .maps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .maps--one { grid-template-columns: minmax(0, 1fr); max-width: 22rem; }
  .maps__cap { grid-column: 1 / -1; }
}
/* region header: the two maps stack in the side column on wide screens, sit side by side on a phone */
@media (min-width: 721px) { .maps.rgh__maps { grid-template-columns: minmax(0, 1fr); } }

/* machine English over the catalogue's Turkish: one button puts the original back */
.mtw:not(.og-on) .og, .mtw.og-on .mt { display: none; }
.mtn .mtb { font: inherit; color: var(--text); background: none; border: 0; padding: 4px 0; min-height: 24px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.mtn .mtb:hover { color: var(--ochre); }

/* no question-mark cursor anywhere: browsers give one to abbr[title] by default */
abbr[title] { cursor: inherit; }
.prose .cite { font-family: var(--f-mono); font-size: 12px; padding: 6px 10px; border-left: 2px solid var(--line-ctl); background: var(--bg-raised); max-width: 80ch; }

/* credits popup (About › How to cite › bitig.kz) */
.credbtn { font: inherit; color: var(--ochre); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.credpop { max-width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; margin: auto; padding: 16px 20px; border: 1px solid var(--line-ctl);
  background: var(--bg-raised); color: var(--text); font-size: 14px; line-height: 1.5; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.credpop::backdrop { background: rgba(0,0,0,.25); }
.credpop__h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 0 10px; }
.credpop__x { font: 20px/1 var(--f-mono); background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 0 2px; }
.credpop dl { margin: 0; }
.credpop dt { font: 11px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 10px; }
.credpop dd { margin: 2px 0 0; }

/* About: a wall of the most striking drawings beside the text (wide screens only), in justified rows */
.cool { display: none; }
@media (min-width: 1200px) {
  .pg.about { display: grid; grid-template-columns: minmax(0, 68ch) minmax(320px, 560px); column-gap: 64px; align-items: start; }
  .pg.about > .titlerow, .pg.about > #missing { grid-column: 1 / -1; }
  .pg.about > .prose { grid-column: 1; grid-row: 2; }
  /* as tall as the text beside it, never taller: images that do not fit are dropped by site.js */
  .cool { display: block; position: relative; grid-column: 2; grid-row: 2; align-self: stretch; }
  .cool__in { position: absolute; inset: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 6px; }
  .cool__in::after { content: ""; flex-grow: 999; }
}
.cool__f { flex: var(--ar) 1 calc(var(--ar) * 118px); aspect-ratio: var(--ar); padding: 5px; background: var(--img-paper); border: 1px solid var(--line); }
.cool__f img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cool__f:hover { border-color: var(--ochre); }
