:root {
  color-scheme: light only;
  --sea: #DDE8F0; --leaf: #FFFFFF; --ink: #14213D; --text: #1B2540; --graphite: #4D5870;
  --line: #CBD5E1; --soft: #EDF1F6; --accent: #2447C5; --warn: #B3261E; --hi: #14213D; --on-hi: #FFFFFF;
  --s0: #0D5630; --s1: #1C7042; --s2: #2F8853; --s3: #489F67; --s4: #68B47F; --s5: #89C798; --s6: #A8D7B1; --s7: #C3E4C8; --s8: #D9EEDC;
  --n0: #EEF0F4; --n1: #DCE8FA; --n2: #ADC5F0; --n3: #7093D8; --n4: #3B5FB2; --n5: #142A6A;
  --tile: #E6ECFA; --gu: #4D5870; --gt: #2F8853; --gt-bg: #E9F5EC; --go: #C8443C; --go-bg: #FBEAE8;
  --nx: #E9E9E5; --shore: #7F95B8; --border: #6377AE; --ban: #D9534B; --off: #EEF2F6;
  --head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --shadow: 0 2px 10px rgba(20, 33, 61, .12);
  --gl: max(12px, env(safe-area-inset-left)); --gr: max(12px, env(safe-area-inset-right));
  /* how much of the panel shows under the map on a phone */
  --peek: min(322px, 50svh);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--leaf); color: var(--text); font: 400 16.5px/1.55 "Instrument Sans", "Segoe UI", Arial, sans-serif; transition: opacity .18s ease; }
body.leaving { opacity: 0; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
svg.ic { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h2 { font: 700 27px/1.2 var(--head); letter-spacing: -.01em; color: var(--ink); margin: 0 0 6px; }
h3 { font: 600 17px/1.35 "Instrument Sans", "Segoe UI", Arial, sans-serif; color: var(--ink); margin: 0 0 3px; }

/* the map page: the map fills the screen, the controls sit in a panel over it */
.page { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; min-height: 440px; overflow: hidden; background: var(--sea); transition: background-color .35s; }
.count .stage { background: #F3F6FA; }
#world { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; }
#world.zoomed { touch-action: none; cursor: grab; }
/* the part of the stage the map is fitted into; the drawing itself runs under the panel and the search box */
.mapbox { position: absolute; inset: 52px 0 calc(var(--peek) - 22px) 0; pointer-events: none; }
.over { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 8px; padding: max(8px, env(safe-area-inset-top)) var(--gr) 0 var(--gl); pointer-events: none; }
.over > *, .top > * { pointer-events: auto; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; min-height: 44px; pointer-events: none; }
.mast, .mast a { display: flex; align-items: center; gap: 8px; }
.mast { margin: 0; }
.logo { width: 26px; height: 26px; flex: none; }
.mast b { font: 700 19px/1.2 var(--head); color: var(--ink); }
.mast a { text-decoration: none; }
/* the menu at the top right: a round button that opens a small panel with the languages and the links */
.menu { position: relative; margin-left: auto; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--leaf); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s, border-color .25s; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--soft); }
.menu[open] summary { border-color: var(--ink); }
.burger { width: 20px; height: 20px; }
.burger path { transform-origin: 12px 12px; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.menu[open]:not(.closing) .burger path:nth-child(1) { transform: rotate(45deg) translateY(5px); }
.menu[open]:not(.closing) .burger path:nth-child(2) { opacity: 0; }
.menu[open]:not(.closing) .burger path:nth-child(3) { transform: rotate(-45deg) translateY(-5px); }
.menu-box { position: absolute; z-index: 6; right: 0; top: 52px; width: max-content; min-width: 232px; max-width: min(320px, calc(100vw - 24px)); max-height: max(150px, calc(100svh - var(--peek) - 76px)); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: var(--leaf); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px rgba(20, 33, 61, .18); transform-origin: top right; animation: menu-in .22s cubic-bezier(.2, .8, .2, 1); }
.menu.closing .menu-box { animation: menu-out .17s ease forwards; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-6px) scale(.96); } }
.menu-box nav { display: flex; flex-direction: column; }
.menu-box nav + nav { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.menu-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 4px; font-size: 13.5px; color: var(--graphite); }
.menu-h svg.ic { width: 16px; height: 16px; }
.menu-box a, .menu-box b { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 11px; font-size: 15.5px; line-height: 1.25; color: var(--ink); text-decoration: none; }
.menu-box a { transition: background-color .25s; }
.menu-box a:hover { background: var(--soft); }
.menu-box b { font-weight: 600; }
.menu-box b svg.ic { margin-left: auto; color: var(--accent); }
.menu-links svg.ic { color: var(--graphite); }
@media (prefers-reduced-motion: reduce) { .menu-box, .menu.closing .menu-box { animation-duration: .01s; } }

/* the search box. On a phone and a tablet it is a round button at the right that grows into the box when tapped */
.finder { position: relative; height: 50px; }
.find { position: absolute; right: 0; top: 0; width: 50px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 5px 0 15px; overflow: hidden; background: var(--leaf); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); color: var(--ink); transition: width .34s cubic-bezier(.2, .8, .2, 1), border-color .25s; }
.find:focus-within { border-color: var(--ink); }
.find label { display: flex; flex: none; }
.find input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text); }
.find input::-webkit-search-cancel-button { display: none; }
.find input, .find-x { visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
.find-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.find-x:hover { background: var(--soft); }
.find-x svg { width: 17px; height: 17px; }
.find-open { position: absolute; z-index: 1; right: 0; top: 0; width: 50px; height: 50px; border: 0; border-radius: 25px; background: none; }
.finder.open .find { width: min(100%, 560px); }
.finder.open .find input, .finder.open .find-x { visibility: visible; opacity: 1; transition: opacity .25s .1s; }
.finder.open .find-open { display: none; }
.rows { list-style: none; margin: 0; padding: 0; }
#list { position: absolute; z-index: 2; left: 0; right: 0; top: 58px; max-height: max(150px, calc(100svh - var(--peek) - 150px)); overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; background: var(--leaf); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(20, 33, 61, .16); }
.rows > li + li { border-top: 1px solid var(--soft); }
.rows > li.empty { padding: 14px 16px; color: var(--graphite); }
.row { position: relative; display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 16px 11px 64px; transition: background-color .2s; }
.row:hover { background: var(--soft); }
.gl { display: inline-flex; align-items: center; gap: 6px; font: 700 17px/1 var(--head); color: var(--ink); }
.gl.wd { font-size: 14px; }
.row .gl { position: absolute; left: 16px; top: 13px; }
.row .nm { font-weight: 600; font-size: 17px; color: var(--ink); margin-right: 8px; }
.row .rg { color: var(--graphite); font-size: 14px; }
.row .ln { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 15px; }
.nomap .row .ln { display: block; }

/* the score swatch */
.pg { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--s0); vertical-align: -3px; transition: background-color .3s; }
.pg.s1 { background: var(--s1); } .pg.s2 { background: var(--s2); } .pg.s3 { background: var(--s3); } .pg.s4 { background: var(--s4); }
.pg.s5 { background: var(--s5); } .pg.s6 { background: var(--s6); } .pg.s7 { background: var(--s7); } .pg.s8 { background: var(--s8); }
.pg.s6, .pg.s7, .pg.s8 { box-shadow: inset 0 0 0 1px rgba(20, 33, 61, .2); }
.pg.sb { background: var(--ban); }
/* grey areas are striped; the three kinds differ in colour */
.pg.sn { background: repeating-linear-gradient(135deg, var(--gu) 0 2px, var(--leaf) 2px 5px); box-shadow: inset 0 0 0 1px var(--gu); }
.pg.sn.gt { background: repeating-linear-gradient(135deg, var(--gt) 0 2px, var(--gt-bg) 2px 5px); box-shadow: inset 0 0 0 1px var(--gt); }
.pg.sn.go { background: repeating-linear-gradient(135deg, var(--go) 0 2px, var(--go-bg) 2px 5px); box-shadow: inset 0 0 0 1px var(--go); }

/* the map */
.land { fill: var(--nx); stroke: var(--border); stroke-width: .7; vector-effect: non-scaling-stroke; transition: fill .35s, opacity .35s; }
.land.sub { stroke: var(--border); stroke-opacity: .7; stroke-width: .7; stroke-dasharray: 3 2.5; }
.land.sub.s0, .land.sub.s1, .land.sub.s2, .land.sub.s3, .land.sub.s4, .land.sub.n3, .land.sub.n4, .land.sub.n5, .land.sub.sb { stroke: var(--leaf); stroke-opacity: .45; }
.frame { fill: none; stroke: var(--border); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.land[data-id], .dot { cursor: pointer; }
.land.s0, .dot.s0 { fill: var(--s0); } .land.s1, .dot.s1 { fill: var(--s1); } .land.s2, .dot.s2 { fill: var(--s2); }
.land.s3, .dot.s3 { fill: var(--s3); } .land.s4, .dot.s4 { fill: var(--s4); } .land.s5, .dot.s5 { fill: var(--s5); }
.land.s6, .dot.s6 { fill: var(--s6); } .land.s7, .dot.s7 { fill: var(--s7); } .land.s8, .dot.s8 { fill: var(--s8); }
.land.sb { fill: var(--ban); } .dot.sb { fill: var(--ban); }
/* a grey area: striped land, and for a small place a circle that is half colour and half white */
.land.sn { fill: url(#hatch-u); } .dot.sn { fill: url(#half-u); stroke: var(--gu); stroke-width: 1.4; }
.land.sn.gt { fill: url(#hatch-t); } .dot.sn.gt { fill: url(#half-t); stroke: var(--gt); }
.land.sn.go { fill: url(#hatch-o); } .dot.sn.go { fill: url(#half-o); stroke: var(--go); }
.land.n0 { fill: url(#qm); } .dot.n0 { fill: var(--n0); }
.qm-bg { fill: var(--n0); } .qm-t { font: 700 8px "Instrument Sans", Arial, sans-serif; fill: var(--graphite); } .land.n1, .dot.n1 { fill: var(--n1); } .land.n2, .dot.n2 { fill: var(--n2); }
.land.n3, .dot.n3 { fill: var(--n3); } .land.n4, .dot.n4 { fill: var(--n4); } .land.n5, .dot.n5 { fill: var(--n5); }
.land.off { fill: var(--off); stroke-dasharray: 1.5 2; }
.dot { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .35s, opacity .35s; }
.dot.off { opacity: 0; pointer-events: none; }
.land.on, .land.sub.on, .dot.on { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2.6; }
.hatch-bg { fill: var(--leaf); } .hatch-c { fill: var(--gu); } .hatch-s { stop-color: var(--gu); }
.hatch-bg.t { fill: var(--gt-bg); } .hatch-c.t { fill: var(--gt); } .hatch-s.t { stop-color: var(--gt); }
.hatch-bg.o { fill: var(--go-bg); } .hatch-c.o { fill: var(--go); } .hatch-s.o { stop-color: var(--go); }
.zoom { position: absolute; right: var(--gr); bottom: 34px; display: grid; background: var(--leaf); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; pointer-events: auto; }
.zoom button { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); transition: background-color .2s; }
.zoom button:hover { background: var(--soft); }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom svg { width: 18px; height: 18px; }
#mapfail { margin: 0; padding: 20px 16px; pointer-events: auto; }
.tip { position: absolute; z-index: 3; left: 0; top: 0; min-width: 200px; max-width: 260px; pointer-events: none; background: var(--leaf); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(20, 33, 61, .18); padding: 10px 12px 11px; font-size: 14.5px; line-height: 1.35; opacity: 0; transition: opacity .15s; }
.tip.show { opacity: 1; }
.tip h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font: 700 17px/1.2 var(--head); color: var(--ink); }
.tip dl { margin: 0; }
.tip dl div { display: flex; justify-content: space-between; gap: 14px; }
.tip dt { color: var(--graphite); } .tip dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tip dl div.sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.tip dl div.sum dt { color: var(--ink); font-weight: 600; }
.tip p { margin: 0; color: var(--text); }
.tip.touch { pointer-events: auto; }
.tip .txt { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px; border-radius: 22px; background: var(--hi); color: var(--on-hi); text-align: center; text-decoration: none; }

/* controls: a pill marks what is selected */
.mark { border: 1px solid transparent; padding: 5px 12px; background: none; color: var(--ink); border-radius: 18px; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.mark i { font-style: normal; color: var(--graphite); font-size: 14px; }
.mark:hover { background: var(--soft); }
.mark[aria-pressed="true"] { background: var(--hi); border-color: var(--hi); color: var(--on-hi); font-weight: 600; }
.mark[aria-pressed="true"] i { color: var(--on-hi); }
.mark::first-letter { text-transform: uppercase; }
.marks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15.5px; }
.marks > span { flex: 0 0 100%; color: var(--graphite); font-size: 13.5px; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 2px; }
.seg > span { grid-column: 1 / -1; margin-bottom: 2px; }
.seg .mark { min-height: 42px; padding: 4px 6px; border: 0; border-radius: 4px; background: var(--soft); white-space: normal; line-height: 1.2; }
.seg .mark:hover { background: var(--line); }
.seg .mark[aria-pressed="true"] { background: var(--hi); }
.seg .mark:first-of-type { border-radius: 14px 4px 4px 14px; }
.seg .mark:last-of-type { border-radius: 4px 14px 14px 4px; }
.modes > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tog { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px 4px 0; border: 0; background: none; font-size: 15px; transition: opacity .25s; }
.tog[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.txt { border: 0; background: none; padding: 5px 6px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.txt[disabled] { opacity: .5; text-decoration: none; cursor: default; }

/* the panel */
.panel { position: relative; z-index: 5; margin-top: calc(-1 * var(--peek)); padding: 8px max(16px, env(safe-area-inset-right)) 22px max(16px, env(safe-area-inset-left)); background: var(--leaf); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(20, 33, 61, .10); }
.panel::before { content: ""; display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #B9C3D2; }
.title { margin: 0 0 2px; font: 700 26px/1.12 var(--head); letter-spacing: -.012em; color: var(--ink); }
.title i { font-style: normal; }
.title span + span::before { content: " "; }
.lead { margin: 0 0 12px; font-size: 15.5px; color: var(--graphite); }
.filter { margin: 14px 0 0; }
.ends { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--graphite); margin: 0 0 4px; }
.scale { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.scale button { display: grid; gap: 3px; padding: 0 0 4px; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: center; transition: opacity .25s; }
.scale .pg { width: auto; height: 16px; border-radius: 0; box-shadow: none; }
.scale button:first-child .pg { border-radius: 8px 0 0 8px; }
.scale button:last-child .pg { border-radius: 0 8px 8px 0; }
.scale button span { justify-self: center; min-width: 26px; padding: 1px 0; border-radius: 11px; transition: background-color .25s, color .25s; }
.scale button:hover span { background: var(--soft); }
.scale button.out { opacity: .3; }
.scale button.edge span { background: var(--hi); color: var(--on-hi); }
.extras { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; margin-top: 4px; }
.greys { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; }
.greys > span { flex: 1 0 100%; margin-top: 6px; font-size: 14px; color: var(--graphite); }
.say { margin: 10px 0 0; font-weight: 600; color: var(--ink); max-height: 4.8em; overflow: hidden; transition: max-height .3s ease, margin-top .3s ease, opacity .3s ease; }
.say:empty { max-height: 0; margin-top: 0; opacity: 0; }
.wants { margin-top: 12px; }
.wants .mark { border-color: var(--line); white-space: normal; text-align: left; max-width: 100%; font-size: 14.5px; }
.wants .mark[aria-pressed="true"] { border-color: var(--hi); }
.keyrow { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 14px 0 0; font-size: 14.5px; color: var(--text); }
/* coloured by number of children: the key above is the legend, so the score filter loses its map colours */
.count .scale .pg, .count .tog .pg { background: var(--line); box-shadow: none; }
.keyrow b { display: inline-block; width: 22px; height: 12px; margin-right: 5px; border: 1px solid var(--shore); border-radius: 3px; vertical-align: -1px; }
.keyrow .n0 { background: var(--n0); color: var(--graphite); font-size: 10px; line-height: 11px; text-align: center; } .keyrow .n1 { background: var(--n1); } .keyrow .n2 { background: var(--n2); } .keyrow .n3 { background: var(--n3); } .keyrow .n4 { background: var(--n4); } .keyrow .n5 { background: var(--n5); } .keyrow .nx { background: var(--nx); }
.mapcap { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); min-height: 1.55em; }
.mapnote { margin: 4px 0 0; color: var(--graphite); font-size: 14.5px; }
.sub { color: var(--graphite); max-width: 66ch; margin: 0 0 16px; }
.panel > .sub { margin: 10px 0 0; font-size: 14.5px; }
.tally { margin: 10px 0 0; font-size: 14.5px; }
.tally b { color: var(--ink); }

/* the text under the map */
.more { position: relative; z-index: 5; background: var(--leaf); padding: 0 max(16px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.more > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
section { padding-top: 46px; }
.doc section { padding-top: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 0 34px; margin-top: 12px; }
.card { border-top: 1px solid var(--line); padding: 12px 0 14px; }
.card p { margin: 0; }
.card .when { display: block; font-size: 14.5px; color: var(--accent); font-weight: 600; }
.tablewrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
th { color: var(--ink); }
.plain { padding-left: 20px; max-width: 72ch; }
.plain li { margin-bottom: 6px; }
.srcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 6px 34px; margin-top: 10px; }
.srcs ul { list-style: none; padding: 0; margin: 4px 0 14px; font-size: 15.5px; }
.srcs li { padding: 3px 0; }
.support { display: flex; gap: 8px; align-items: flex-start; margin-top: 44px; margin-bottom: -30px; font-size: 15.5px; }
.support svg.ic { margin-top: 3px; color: var(--ban); transition: transform .25s; }
.support:hover svg.ic { transform: scale(1.18); }
.support a { font-weight: 600; text-decoration-color: var(--accent); }
footer { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--graphite); font-size: 14.5px; }
.onward { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; margin-bottom: 0; font-size: 15px; }
.panel > .onward { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }

/* the page for one place, over the map */
.scrim { position: fixed; inset: 0; background: rgba(20, 33, 61, .36); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 20; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; background: var(--leaf); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(20, 33, 61, .18); padding: 18px max(18px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); transform: translateY(104%); visibility: hidden; transition: transform .36s cubic-bezier(.2, .8, .2, 1), visibility 0s .36s; }
.sheet.open { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
/* the name and the close button stay in view while the rest of the sheet scrolls under them */
.sheet > header { position: sticky; top: -18px; z-index: 2; display: flex; gap: 12px; align-items: flex-start; margin-top: -18px; padding: 18px 0 10px; background: var(--leaf); }
.sheet > header::after, .cmpview > header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(var(--leaf), rgba(255, 255, 255, 0)); pointer-events: none; }
.sheet > header > div { flex: 1; min-width: 0; }
.sheet .gl { margin-top: 5px; font-size: 21px; }
.sheet .gl .pg { width: 24px; height: 24px; border-radius: 7px; }
.sheet .gl.wd { font-size: 15px; }
.sheet h2 { font-size: 26px; margin: 0; }
.sheet .rg { margin: 0; color: var(--graphite); font-size: 15px; }
.x { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); background: var(--leaf); border-radius: 50%; color: var(--ink); transition: background-color .2s; }
.x:hover { background: var(--soft); }
.x svg { width: 18px; height: 18px; }
.verdict { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
/* an action as a real button: icon, label, pill outline; filled once it is switched on */
.btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 21px; background: var(--leaf); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2; text-align: left; transition: background-color .25s, border-color .25s, color .25s, opacity .25s; }
.btn:hover { background: var(--soft); border-color: var(--ink); }
.btn svg.ic { width: 17px; height: 17px; }
/* the place's two actions share one row; on a narrow phone a label may take two lines inside its button */
#sh-acts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content); align-items: stretch; }
#sh-acts > .txt { grid-column: 1 / -1; }
@media (max-width: 430px) { #sh-acts .btn { gap: 6px; padding: 7px 12px 7px 10px; font-size: 14.5px; border-radius: 18px; } #sh-acts .btn svg.ic { width: 16px; height: 16px; } }
.btn[aria-pressed="true"] { background: var(--hi); border-color: var(--hi); color: var(--on-hi); }
.btn[disabled] { opacity: .5; cursor: default; background: var(--leaf); border-color: var(--line); }
.acts .txt { padding-left: 0; }
#sh-body { margin: 0; }
/* each section opens with a heading in the headline font and its icon in a blue tile (option B, owner, 24 November 2026) */
#sh-body > div { border-top: 1px solid var(--line); padding: 20px 0 18px; }
#sh-body > div:first-child { border-top: 0; padding-top: 12px; }
#sh-body dt { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; font: 700 20px/1.2 var(--head); letter-spacing: -.01em; color: var(--ink); }
#sh-body dt svg { width: 34px; height: 34px; flex: none; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--tile); color: var(--accent); }
#sh-body dt .pt { font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
#sh-body dd { margin: 2px 0 0; overflow-wrap: anywhere; }
#sh-body .stat-pass { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--line); font-size: 14.5px; }
/* long text as points: one sentence per line */
.pts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.pts li { position: relative; padding-left: 16px; line-height: 1.45; }
.pts li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 8px; height: 2px; border-radius: 1px; background: var(--accent); }
.pt { margin-left: auto; font-weight: 400; color: var(--graphite); font-size: 14.5px; white-space: nowrap; }
.steps ol { margin: 4px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 7px; }
.steps li b { color: var(--ink); margin-right: 8px; }
.steps li .pt { float: right; }
.steps li > span:last-child { display: block; }
.inside { margin: 6px 0 0; padding-left: 18px; }
.inside li { margin-bottom: 4px; }
.inside b { color: var(--ink); }
.pips { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: 0; }
.pips i { width: 14px; height: 8px; border-radius: 4px; background: var(--line); }
.pips i.on { background: var(--ink); }
.rel b { color: var(--ink); }
.lvl { background: var(--hi); color: var(--on-hi); font-weight: 600; font-size: 14.5px; padding: 2px 9px; border-radius: 11px; margin-right: 4px; }
.lv-s .lvl { background: none; color: var(--warn); padding: 0; font-size: inherit; text-decoration: underline wavy; text-underline-offset: 3px; }
.stat-pass { display: block; margin-top: 6px; font-size: 15px; color: var(--graphite); }
.closing { margin: 14px 0 0; color: var(--graphite); font-size: 15px; }

/* shortlist and comparison */
.tray { position: fixed; z-index: 19; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 10px calc(16px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); background: var(--hi); color: var(--on-hi); border-radius: 18px 18px 0 0; transform: translateY(110%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s; }
.tray.show { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.tray p { margin: 0; flex: 1 1 200px; font-weight: 600; }
.tray .txt { color: var(--on-hi); text-decoration-color: var(--on-hi); }
.cmpview { position: fixed; z-index: 21; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--leaf); padding: 16px calc(16px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); transform: translateY(104%); visibility: hidden; transition: transform .36s cubic-bezier(.2, .8, .2, 1), visibility 0s .36s; }
.cmpview.open { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
.cmpview > header { position: sticky; top: -16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -16px 0 6px; padding-top: 16px; background: var(--leaf); }
.cmpview h2 { margin: 0; }
.cmpwrap { overflow-x: auto; border-top: 1px solid var(--line); }
#cmp-t { min-width: 0; width: auto; font-size: 15.5px; }
#cmp-t th, #cmp-t td { min-width: 190px; max-width: 280px; padding: 9px 14px 9px 0; }
#cmp-t tbody th, #cmp-t thead td { min-width: 104px; max-width: 120px; position: sticky; left: 0; background: var(--leaf); color: var(--ink); font-size: 14.5px; }
#cmp-t thead th { font-size: 18px; vertical-align: bottom; }
#cmp-t thead .gl { display: flex; margin-bottom: 4px; }
#cmp-t thead .txt { display: block; padding: 2px 0; font-weight: 400; font-size: 14.5px; }
#cmp-t i { color: var(--graphite); }

/* plain pages: one place, the A to Z list and the page for a wrong address (written by tools/pages.py) */
@view-transition { navigation: auto; }
.doc { max-width: 860px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.doc .top { display: flex; padding: 12px 0 4px; }
.doc .menu-box { max-height: none; }
.doc .title { font-size: clamp(28px, 6.4vw, 44px); line-height: 1.08; margin: 12px 0 12px; }
.doc .lead { font-size: 18px; }
.trail { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; }
.trail .txt { padding-left: 0; font-weight: 400; }
.where { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; color: var(--graphite); font-size: 15px; }
.where .gl { font-size: 20px; }
.where .gl .pg { width: 22px; height: 22px; border-radius: 6px; }
.where .gl.wd { font-size: 15px; }
.doc main { display: block; }
.doc h2 { font-size: 23px; margin-top: 18px; }
.reg { list-style: none; padding: 0; margin: 4px 0 18px; }
.reg li { padding: 9px 0 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.reg li > a:first-child { font-weight: 600; }
.reg li span { display: block; color: var(--graphite); font-size: 15px; }
.reg li span ~ a { display: block; font-size: 15px; }
.doc h3 { margin-top: 18px; }
.az { list-style: none; padding: 0; margin: 6px 0 0; columns: 3 230px; column-gap: 34px; }
.az li { padding: 3px 0; break-inside: avoid; }
.az span { color: var(--graphite); font-size: 14.5px; }

/* the map could not be drawn: an ordinary page with the full list */
.nomap .stage { position: static; height: auto; min-height: 0; overflow: visible; padding-bottom: 28px; }
.nomap .over, .nomap .mapbox { position: static; }
.nomap .finder { height: auto; }
.nomap .find { position: static; width: auto; }
.nomap .find input { visibility: visible; opacity: 1; }
.nomap .find-open, .nomap .find-x { display: none; }
.nomap #list { position: static; max-height: none; margin-top: 8px; box-shadow: none; }
.nomap .panel { position: relative; left: auto; top: auto; width: auto; max-height: none; margin: 0; }

@media (pointer: coarse) {
  .mark { min-height: 42px; padding: 8px 12px; }
  .tog, .txt { min-height: 44px; }
  .scale button { padding: 8px 0 8px; }
}
}
@media (min-width: 600px) and (max-width: 899px) {
  .sheet { left: 50%; right: auto; width: min(660px, calc(100% - 32px)); transform: translate(-50%, 104%); }
  .sheet.open { transform: translate(-50%, 0); }
  .panel { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  .panel > * { max-width: 620px; }
}
@media (min-width: 900px) {
  /* desktop: the panel floats at the left, the map takes the rest of the window */
  .stage { position: relative; height: 100vh; min-height: 640px; }
  .mapbox { inset: 84px 16px 28px 392px; }
  .over { left: 392px; right: 20px; top: 16px; flex-direction: row; align-items: center; gap: 18px; padding: 0; }
  .top { display: contents; }
  .mast { order: 1; }
  .finder { order: 2; flex: 0 1 380px; height: 46px; }
  .find { position: static; width: auto; padding: 0 16px; }
  .find input { visibility: visible; opacity: 1; }
  .find-open, .find-x { display: none; }
  .menu { order: 3; }
  .menu-box { max-height: calc(max(100vh, 640px) - 96px); }
  .find { height: 46px; }
  #list { top: 54px; max-height: min(62vh, 460px); }
  .zoom { right: 4px; bottom: -8px; }
  .zoom button { width: 42px; height: 42px; }
  .panel { position: absolute; left: 16px; top: 16px; width: 360px; max-height: calc(max(100vh, 640px) - 32px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 22px 24px 24px; border-radius: 20px; box-shadow: 0 6px 28px rgba(20, 33, 61, .14); }
  .panel::before { display: none; }
  .title { font-size: 31px; line-height: 1.08; margin-bottom: 6px; }
  .lead { margin-bottom: 16px; }
  .more { padding-left: 32px; padding-right: 32px; }
  .sheet { left: auto; right: 16px; top: 16px; bottom: 16px; width: 470px; max-height: none; border-radius: 20px; box-shadow: 0 8px 36px rgba(20, 33, 61, .22); padding: 22px 24px 28px; transform: translateX(calc(100% + 40px)); }
  .nomap .stage { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation: none !important; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
