:root { --bg:#fbfaf7; --fg:#1d1b18; --muted:#6b665e; --line:#e4e0d8; --accent:#7a3b1d; --card:#fff; --ok:#2f6b3a; --side:#f4f1ea; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#17150f; --fg:#ece8df; --muted:#a39d91; --line:#36322a; --accent:#e0a37a; --card:#201d16; --ok:#8fcf98; --side:#1c1a14; }
}
* { box-sizing: border-box }
body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.55 Georgia, "Times New Roman", serif; }
a { color:var(--accent); text-decoration:none } a:hover { text-decoration:underline }
.muted { color:var(--muted) } .small { font-size:13px }
h1 { font-size:22px; margin:6px 0 10px; font-weight:normal } h2 { font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:4px 0 8px }
h3 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:14px 0 6px; font-weight:normal }

nav.top { display:flex; gap:18px; align-items:baseline; padding:10px 16px; border-bottom:1px solid var(--line); flex-wrap:wrap }
nav.top .brand { font-weight:bold; color:var(--fg); margin-right:10px }
nav.top a.on { font-weight:bold; border-bottom:2px solid currentColor }
nav.sub { display:flex; gap:16px; padding:6px 16px; border-bottom:1px solid var(--line); font-size:.92em; background:var(--soft, transparent); flex-wrap:wrap }
nav.sub a.on { font-weight:bold; color:var(--fg) }
.pager { display:flex; gap:10px; align-items:center; margin:10px 0; flex-wrap:wrap }
.pager .muted { margin:0 4px }

.layout { display:grid; grid-template-columns:300px 1fr; min-height:calc(100vh - 44px) }
.side { background:var(--side); border-right:1px solid var(--line); padding:14px 12px; overflow:auto; max-height:calc(100vh - 44px); position:sticky; top:0 }
.side details summary { list-style:none; cursor:pointer } .side details summary::-webkit-details-marker { display:none }
.facet { display:flex; justify-content:space-between; gap:8px; padding:4px 8px; border-radius:6px; color:var(--fg); font-size:14px }
.facet span { color:var(--muted); font-variant-numeric:tabular-nums } .facet em { color:var(--muted); font-size:11px; font-style:normal }
.facet.grp { font-weight:bold; margin-top:6px } .facet.sub { padding-left:20px; font-size:13px }
.facet.on { background:var(--accent); color:var(--bg) } .facet.on span, .facet.on em { color:var(--bg) }
.main { padding:14px 22px 40px; max-width:1050px }
.vol { display:flex; justify-content:space-between; align-items:baseline; gap:12px }

.filters { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 8px }
input, select, textarea, button { font:inherit; font-size:14px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--fg) }
.filters input[name=q] { flex:1; min-width:220px }
button { background:var(--accent); color:var(--bg); border-color:var(--accent); cursor:pointer }

ol.recs { list-style:none; padding:0; margin:0 }
ol.recs li a { display:grid; grid-template-columns:3.2em 13em 1fr; gap:10px; padding:9px 4px; border-bottom:1px solid var(--line); color:var(--fg) }
ol.recs li a:hover { background:var(--card); text-decoration:none }
.no { color:var(--accent); font-weight:bold } .date { color:var(--muted); font-size:14px }
.tag { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:0 5px; margin-left:4px; white-space:nowrap }
.tag.ok { color:var(--ok); border-color:var(--ok) }

.narrow { max-width:860px; margin:auto; padding:14px 16px 50px }
.crumbs { display:flex; gap:16px; margin-bottom:6px }
.who { margin:0 0 6px } .summary { font-style:italic; color:var(--muted) }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:6px 16px 14px; margin:14px 0 }
.prose { white-space:pre-wrap; line-height:1.7 }
.term { display:inline-block; border:1px solid var(--line); border-radius:4px; padding:0 6px; margin:2px 4px 2px 0; font-style:italic; font-size:14px }
.flash { background:var(--card); border-left:3px solid var(--ok); padding:6px 10px }
.edit summary { cursor:pointer; list-style:none } .edit summary::-webkit-details-marker { display:none }
.edit label { display:block; margin:8px 0; font-size:13px; color:var(--muted) }
.edit label input:not([type=checkbox]), .edit label select, .edit label textarea { display:block; width:100%; margin-top:3px; color:var(--fg) }
.edit label.check { display:flex; gap:8px; align-items:center }
form.inline { display:inline }
table { border-collapse:collapse; width:100% } td { padding:5px 6px; border-bottom:1px solid var(--line); vertical-align:top }
td.num { text-align:right; color:var(--muted); font-variant-numeric:tabular-nums; width:4em }

@media (max-width:760px) {
  .layout { grid-template-columns:1fr } .side { position:static; max-height:none; border-right:0; border-bottom:1px solid var(--line) }
  ol.recs li a { grid-template-columns:2.6em 1fr } .date { grid-column:2 } .meta { grid-column:2 }
  .main { padding:12px 16px 30px }
}

/* period context */
.wide { max-width:1100px }
nav.decades { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 10px }
nav.decades a { border:1px solid var(--line); border-radius:6px; padding:3px 10px; color:var(--fg); font-size:14px }
nav.decades a.on { background:var(--accent); color:var(--bg); border-color:var(--accent) }
.ctxgrid { display:grid; grid-template-columns:1fr 1fr; gap:14px } .ctxgrid .card { margin:0 }
.card.holy, .tag.holy { border-color:#b08d2e } .card.holy h3, .tag.holy { color:#9a7a1f }
@media (prefers-color-scheme: dark) { .card.holy h3, .tag.holy { color:#d9b85c } }
.work { margin:6px 0 10px } .lbl { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin:14px 0 4px }
@media (max-width:760px) { .ctxgrid { grid-template-columns:1fr } }
.flash.warn { border-left-color:#b5651d } .tag.warn { color:#b5651d; border-color:#b5651d }

/* record: Latin beside its translation */
.panes { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start } .panes .card { margin:0 }
nav.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:8px 0 4px }
nav.tabs a { padding:4px 12px; border:1px solid transparent; border-bottom:0; border-radius:6px 6px 0 0; color:var(--muted); font-size:14px }
nav.tabs a.on { border-color:var(--line); background:var(--card); color:var(--fg); margin-bottom:-1px }
.pane .prose { max-height:70vh; overflow:auto }
.pane details { margin-top:10px }
@media (max-width:900px) { .panes { grid-template-columns:1fr } }

a.w { color:inherit } a.w:hover { color:var(--accent); text-decoration:underline dotted }
button.ghost { background:transparent; color:var(--accent) } .nowrap { white-space:nowrap }

/* translator workbench: Latin | engine | existing translation */
.wb { padding:14px 20px 40px; max-width:1600px; margin:auto }
.wb-pick { display:flex; gap:24px; flex-wrap:wrap; align-items:end }
.wb-pick .filters { align-items:center }
.wb-title { margin-top:12px }
.wb-cols { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; align-items:stretch }
.wb-cols .card { margin:0; display:flex; flex-direction:column; gap:8px }
.wb-text { width:100%; min-height:46vh; flex:1; font-family:Georgia, serif; font-size:15px; line-height:1.6; resize:vertical }
@media (max-width:1100px) { .wb-cols { grid-template-columns:1fr } .wb-text { min-height:30vh } }

/* translation progress */
.prog { margin-top:14px }
.prog-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; flex-wrap:wrap }
.bar { height:12px; background:var(--side); border:1px solid var(--line); border-radius:7px; overflow:hidden; margin:10px 0 }
.bar .fill { height:100%; width:0; border-radius:7px; transition:width .6s ease;
  background:repeating-linear-gradient(45deg, var(--accent) 0 12px, color-mix(in srgb, var(--accent) 75%, white) 12px 24px);
  background-size:34px 34px; animation:stripes 1s linear infinite }
.bar .fill.done { animation:none; background:var(--ok) }
@keyframes stripes { to { background-position:34px 0 } }
@media (prefers-reduced-motion: reduce) { .bar .fill { animation:none } }
.steps { margin:6px 0; padding-left:20px } .steps li { color:var(--muted); margin:2px 0 }
.steps li.now { color:var(--fg); font-weight:bold } .steps li.ok { color:var(--ok) } .steps li.ok::marker { content:"✓ " }

/* map */
.mapwrap { padding:12px 18px 30px; max-width:1500px; margin:auto }
.map-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap }
.map-ctl { display:flex; gap:10px; flex-wrap:wrap; align-items:center }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:7px; overflow:hidden }
.seg button { background:var(--card); color:var(--fg); border:0; border-right:1px solid var(--line); border-radius:0; padding:5px 10px; font-size:13px }
.seg button:last-child { border-right:0 } .seg button.on { background:var(--accent); color:var(--bg) }
.map-grid { display:grid; grid-template-columns:1fr 300px; gap:14px; margin:10px 0 }
#map { height:72vh; min-height:420px; border:1px solid var(--line); border-radius:10px }
.map-side .big { font-size:20px; margin:4px 0 }
.barrow { display:grid; grid-template-columns:54px 1fr 34px; gap:6px; align-items:center; font-size:13px; cursor:pointer; padding:2px 0 }
.barrow i { display:block; height:12px; background:var(--accent); opacity:.55; border-radius:3px; transition:width .5s }
.barrow.on i { opacity:1 } .barrow.on span, .barrow.on b { font-weight:bold }
.barrow b { font-weight:normal; text-align:right; color:var(--muted) }
@media (max-width:900px) { .map-grid { grid-template-columns:1fr } #map { height:60vh } }

/* whole-archive map: one colour per edition */
:root { --ed0: #7a3b1d; --ed1: #2f6f8f; --ed2: #5b8a3a; --ed3: #8a5a9e; --ed4: #b08a1e; --ed5: #a33b5a; --ed6: #3a7a74; --ed7: #6b6b6b; }
#eds { flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
#eds .ed { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
#eds .ed i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* bibliography */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
ul.biblio { list-style: none; padding-left: 0; margin: 4px 0 10px; }
ul.biblio li { padding: 4px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.grid-form { display: flex; flex-wrap: wrap; gap: 6px; }
.grid-form input[name=title] { flex: 1 1 320px; }

/* spelling review: reasons and own correction */
td.why div { margin: 2px 0; line-height: 1.35; }
td.why .warn { color: #a33b1d; }
td.decide form.correct { display: inline-flex; gap: 4px; margin-top: 4px; }
td.decide form.correct input { font-size: 0.9em; }

/* map filters and journeys */
.map-filters { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.map-filters select { max-width: 22em; }
.map-filters .kw { display: inline-flex; gap: .3rem; align-items: center; }
.jnum span { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #b8402a; color: #fff;
  font: 600 11px/20px system-ui, sans-serif; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.libtext { white-space: pre-wrap; font-size: .92rem; line-height: 1.45; max-width: 52rem; }

/* concepts */
.concept-search input { padding: .35rem .5rem; }
.concept-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.concept-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.2rem; }
@media (max-width: 800px) { .concept-grid { grid-template-columns: 1fr; } }
.barrow i.lib { background: #2f6f8f; opacity: .55; }
.hits td { vertical-align: top; }
.save-concept { margin: .4rem 0 1rem; }
table.overview td, table.overview th { padding: .15rem .35rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin: 0 2px 0 6px; }
.dot.new { background: #2e7d4f; } .dot.old { background: var(--accent, #7a3b1d); }

/* glossed reading view */
.glosswrap { max-width: 78rem; }
.grow { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 15rem); gap: 1.1rem; margin: 0 0 .7rem; align-items: start; }
@media (max-width: 900px) { .grow { grid-template-columns: 1fr; } .gm:empty { display: none; } }
.gt { font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; line-height: 1.8; padding: .2rem .7rem; border-left: 3px solid transparent; }
.gt.g1 { border-left-color: #7F77DD; } .gt.g2 { border-left-color: #1D9E75; } .gt.g3 { border-left-color: #D85A30; }
.gm { font-family: Georgia, serif; font-size: .82rem; line-height: 1.45; color: var(--muted, #666); }
.gi { margin: 0 0 .55rem; } .gi b { color: var(--text, #222); font-weight: 600; }
.gt sup, .gi sup { font-family: system-ui, sans-serif; font-size: .7em; color: #185FA5; margin-left: 1px; }
.tag.t1 { background: #EEEDFE; color: #3C3489; } .tag.t2 { background: #E1F5EE; color: #085041; } .tag.t3 { background: #FAECE7; color: #712B13; }
.g-concept { background: #FAEEDA; border-radius: 3px; padding: 0 2px; }
.g-person { border-bottom: 2px solid #7F77DD; } .g-place { border-bottom: 2px dotted #1D9E75; } .g-mine { background: #E6F1FB; border-radius: 3px; padding: 0 2px; }
.linkbtn { background: none; border: none; color: var(--muted, #888); cursor: pointer; padding: 0 2px; }
a.btn.small { font-size: .8rem; margin-left: .6rem; padding: .15rem .5rem; border: 1px solid var(--line, #ccc); border-radius: 6px; text-decoration: none; }

/* concept synthesis */
.syn { margin: 1rem 0 1.2rem; }
.syn-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }
.syn-nums > div { background: var(--card, #fff); border: 1px solid var(--line, #e3ddd3); border-radius: 10px; padding: .7rem .9rem; }
.syn-nums b { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 600; }
.syn-nums span { font-size: .85rem; color: var(--muted, #777); }
.syn-sentence { font-size: 1.08rem; line-height: 1.6; margin: .9rem 0 .6rem; max-width: 60rem; }
.syn-users { display: flex; gap: 2px; border-radius: 6px; overflow: hidden; font-size: .78rem; margin: .3rem 0 .5rem; }
.syn-users span { background: #E1F5EE; color: #085041; padding: .25rem .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 2.5rem; }
.syn-users span:nth-child(2) { background: #EEEDFE; color: #3C3489; } .syn-users span:nth-child(3) { background: #FAECE7; color: #712B13; }
.syn-users span:nth-child(4) { background: #FAEEDA; color: #633806; }
svg.freq { width: 100%; height: 210px; } .fb { fill: #b8846b; } .fb:hover { fill: #7a3b1d; }
.fv { font-size: 10px; text-anchor: middle; fill: var(--text, #333); } .fx { font-size: 10px; text-anchor: middle; fill: var(--muted, #888); }
.fl { fill: #2f6f8f; } .flline { fill: none; stroke: #2f6f8f; stroke-width: 1.2; opacity: .55; }
.key { display: inline-block; width: 12px; height: 10px; margin: 0 4px 0 10px; vertical-align: -1px; } .kb { background: #b8846b; } .kl { background: #2f6f8f; border-radius: 50%; width: 9px; height: 9px; }
#cmap { height: 560px; border-radius: 8px; }
.cmap-legend { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.cmap-legend i { display: inline-block; width: 180px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(60,120,180), rgb(190,70,40)); }
.pbar { display: inline-block; width: 140px; height: 8px; background: var(--line, #e6e0d6); border-radius: 4px; vertical-align: middle; margin-left: 8px; overflow: hidden; }
.pbar.wide { width: 260px; } .pbar i { display: block; height: 100%; background: #1D9E75; }
.run { border-top: 1px solid var(--line, #eee); padding: .5rem 0; } .run.on b { color: #0F6E56; }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.glosswrap { position: relative; }
.gt .w { cursor: pointer; border-radius: 3px; } .gt .w:hover { background: #E6F1FB; }
#wpop { position: absolute; z-index: 50; width: min(420px, 90vw); max-height: 360px; overflow: auto; background: var(--card, #fff);
  border: 1px solid var(--line, #d8d2c8); border-radius: 10px; padding: .6rem .75rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); font-size: .85rem; line-height: 1.45; }
.wp-head { margin-bottom: .35rem; } .wp-head .tag { margin-left: .3rem; }
.wp-lex { background: #FAEEDA; border-radius: 6px; padding: .3rem .45rem; margin: .3rem 0; }
.wp-sense { border-top: 1px solid var(--line, #eee); padding: .3rem 0; } .wp-foot { margin-top: .35rem; font-size: .8rem; }

/* map: names of the period's realms, provinces and counties */
.rg { white-space: nowrap; pointer-events: auto; transform: translate(-50%, -50%); }
.rg span { font-family: Georgia, serif; font-style: italic; color: var(--muted, #6b5b4b); text-shadow: 0 0 3px var(--card, #fff), 0 0 3px var(--card, #fff); }
.rg1 span { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-style: normal; opacity: .55; }
.rg2 span { font-size: 13px; letter-spacing: .06em; opacity: .75; }
.rg3 span { font-size: 11px; opacity: .8; }
.map-find { margin: .3rem 0; } .map-find input { width: 18rem; }
/* the layer menu without Leaflet's icon image: a text button */
.leaflet-control-layers-toggle { background-image: none !important; width: auto !important; height: auto !important; padding: 4px 8px; font: 13px Georgia, serif; color: var(--ink, #333); text-decoration: none; }
.leaflet-control-layers-toggle::after { content: "Layers"; }
.leaflet-control-layers-expanded .leaflet-control-layers-toggle { display: none; }

/* atlas */
.atlas-ctl label { margin-right: .4rem; } .atlas-ctl input[size] { width: auto; }
.atlas-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr); gap: 1rem; align-items: start; }
#amap { height: 560px; border-radius: 8px; border: 1px solid var(--line, #ddd); }
.atlas-table td { vertical-align: top; } .atlas-table tr.sub td { border-top: none; padding-top: 0; font-size: .85em; }
.atlas-table tr.focusrow td { background: var(--side, #f6f1e7); }
.spark .b-all { fill: var(--line, #d8cfc2); } .spark .b-hit { fill: var(--accent, #7a3b1d); }
.spread-row { display: grid; grid-template-columns: 15rem 14rem 1fr; gap: .6rem; align-items: center; padding: .15rem 0; }
.spread-track { position: relative; height: 1em; border-bottom: 1px solid var(--line, #ddd); }
.spread-bar { position: absolute; top: -.2em; transform: translateX(-50%); color: var(--accent, #7a3b1d); }
@media (max-width: 900px) { .atlas-grid { grid-template-columns: 1fr; } #amap { height: 380px; } }

/* teaching */
.recipes { display: flex; gap: .8rem; flex-wrap: wrap; }
.recipes button { text-align: left; max-width: 18rem; padding: .7rem .9rem; }
.recipes button.primary { border: 2px solid var(--accent, #7a3b1d); }

.livestats th { text-align: left; font-weight: normal; color: var(--muted, #777); width: 7rem; }
pre.log { max-height: 16rem; overflow: auto; font-size: .8em; white-space: pre-wrap; }

.wb-prep { margin: .4rem 0 .8rem; padding: .4rem .7rem; border-left: 3px solid var(--line, #d8cfc2); background: var(--side, #f6f1e7); }
.wb-prep p { margin: .2rem 0; }

.senses-table tr.retired td { opacity: .45; text-decoration: line-through; }
.senses-table td { vertical-align: top; }

/* layout of the listing pages (2026-10-27): one comfortable column, quiet headings, tables that fit */
body > main { padding:14px 22px 50px; max-width:1200px; margin:0 auto }
h1 .muted, h1 .small { font-size:14px }
h2 .muted, h2 .small, h3 .muted { display:block; text-transform:none; letter-spacing:0; font-size:13px; font-weight:normal;
  color:var(--muted); margin-top:3px; line-height:1.45 }
.card { overflow-x:auto }
.card > p:first-child, .card > h2:first-child, .card > h3:first-child { margin-top:8px }
th { text-align:left; font-weight:normal; font-size:12px; color:var(--muted); padding:6px 6px 4px; border-bottom:2px solid var(--line);
  white-space:nowrap; vertical-align:bottom }
th.num { text-align:right }
td { overflow-wrap:break-word }
td.num { width:auto; white-space:nowrap; overflow-wrap:normal }
table.index tr:hover td { background:color-mix(in srgb, var(--accent) 4%, transparent) }
tr.focusrow td { background:color-mix(in srgb, var(--ok) 7%, transparent) }
.card form, .card form.card { margin:8px 0 }
form.card { padding:8px 12px; display:flex; gap:8px; flex-wrap:wrap; align-items:center }
label.check { white-space:nowrap; margin-right:6px }
details > summary { cursor:pointer }
pre.log { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; max-height:16em; overflow:auto; margin:4px 0;
  background:var(--side); padding:6px 8px; border-radius:6px }
span.ok { color:var(--ok) } span.warn { color:#b5651d }
@media (max-width:760px) { body > main { padding:12px 14px 40px } nav.top { gap:12px } }
.bar { height:10px; background:var(--line); border-radius:6px; overflow:hidden; margin:8px 0 4px }
.bar span { display:block; height:100%; background:var(--ok); transition:width .5s }
.card.running { border-color:var(--ok) }
button.ghost { background:var(--card); color:var(--accent) }

/* the tabs as a left-side menu (the sub-tabs stay above each page) */
@media (min-width:761px) {
  body { padding-left:190px }
  nav.top { position:fixed; top:0; left:0; bottom:0; width:190px; box-sizing:border-box; flex-direction:column; flex-wrap:nowrap;
            align-items:stretch; gap:2px; padding:16px 12px; border-bottom:0; border-right:1px solid var(--line);
            background:var(--bg, #fff); overflow-y:auto; z-index:20 }
  nav.top .brand { margin:0 0 14px; line-height:1.25; font-size:1.02em }
  nav.top a { padding:5px 8px; border-radius:6px }
  nav.top a.on { border-bottom:0; background:var(--soft, rgba(0,0,0,.06)) }
}

/* home: the name above the Ebstorf Map, zoomable */
main.home { max-width:none; padding:12px 18px 10px; display:flex; flex-direction:column; height:calc(100vh - 10px); box-sizing:border-box }
.home-title { text-align:center; margin:4px 0 10px; font-size:1.8em; letter-spacing:.02em }
.mapview { position:relative; flex:1; min-height:300px; overflow:hidden; border:1px solid var(--line); border-radius:8px;
           background:#f3efe6; cursor:grab; touch-action:none; outline:none }
.mapview.dragging { cursor:grabbing }
.mapview img { position:absolute; top:0; left:0; transform-origin:0 0; user-select:none; max-width:none; will-change:transform }
.mapctl { position:absolute; right:10px; top:10px; display:flex; flex-direction:column; gap:4px }
.mapctl button { width:34px; height:34px; font-size:18px; line-height:1; border-radius:6px; border:1px solid var(--line);
                 background:rgba(255,255,255,.9); color:#333; padding:0; cursor:pointer }
.mapctl button:hover { background:#fff }
.home-hint { text-align:center; margin:8px 0 0 }
.home-hint .credit { margin-left:10px; opacity:.75 }

/* Library > Vocabulary: the progress figures */
.vocab-progress { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px }
.vocab-progress b { font-size:1.35em }
nav.sub.inline { border:0; padding:4px 0 8px; background:none }

/* map: issuer colours and the journey's decades */
.legend span { display: inline-flex; align-items: center; gap: .3em; margin-right: .6em; white-space: nowrap; }
.legend i, i.sw { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .3em; vertical-align: -1px; }
