/* Atlanta Maps: the Sanborn Georeferencer's look (paper, ink, clay; Cormorant Garamond,
   Calluna Sans, Lato), adapted for a public website. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Calluna Sans";
  src: url("../fonts/calluna-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4efe6;
  --paper-light: #fbf8f2;
  --paper-deep: #e8e0d3;
  --card: #fffdfa;
  --pop-card: rgba(255, 253, 250, 0.8); /* every popup's ground: --card at 80% (Joel, 2026-10-14) */
  --ink: #26221f;
  --ink-soft: #655f58;
  --clay: #d97757;
  --clay-dark: #a9462f;
  --clay-pale: #f5dfd6;
  --grid-blue: #1d5fc4;
  --hairline: rgba(38, 34, 31, 0.15);
  --hairline-strong: rgba(38, 34, 31, 0.27);
  --shadow: 0 8px 28px rgba(46, 39, 32, 0.12);
  --panel-w: 392px;
  --slide: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Calluna Sans", Avenir, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clay-dark);
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ---------- header ---------- */

/* joelsilverman.com's menu bar (read from the live site 2026-10-04) in the site's paper with black type
   (Joel, 2026-10-04), at fixed sizes: Squarespace's fluid formula below 1696 px grew the wordmark to 37 px and the
   menu to 23 px just under that width, then its wide-screen rule dropped them to 27.2 and 19.5 px, so a window a
   little narrower than full screen showed a bigger bar (Joel, 2026-10-14, 1.178: fixed sizes 2 px under the
   wide-screen ones, at every width). No rainbow glow on hover here (Joel, 2026-10-04). The wordmark starts at the panel's text edge (22 px), so its j lines up with the
   T of the panel heading, and the menu ends 22 px from the right (Joel, 2026-10-04). */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 22px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-light);
}

.wordmark {
  color: #000;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25.2px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.56em;
  margin-right: 0.35em;
  font-size: 17.5px;
}

.site-nav a {
  padding: 0.1em 0;
  color: #000;
  font-family: "Calluna Sans", Avenir, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}


/* Too narrow for the whole menu: joelsilverman.com's phone bar and a menu button, with the wordmark at the left
   as on wide screens (Joel, 2026-10-04). */
@media (max-width: 1080px) {
  .site-header {
    justify-content: flex-start;
    padding: 10.4px 64px 10.4px 22px;
  }

  .wordmark {
    font-size: clamp(10px, calc(11.7vw - 21.1px), 25.2px); /* "studio" makes it 8.5 em wide; fits left of the menu button */
    letter-spacing: 0.02em;
    line-height: 1.05;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 4px;
    background: var(--card);
    box-shadow: rgba(0, 0, 0, 0.18) 0 2px 8px;
    color: #000;
    cursor: pointer;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-right: 0;
    padding: 6px 24px 14px;
    border-bottom: 1px solid var(--hairline);
    background: var(--paper-light);
    box-shadow: var(--shadow);
    font-size: 17.5px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 0;
    border-bottom: 1px solid var(--hairline);
  }
}

/* The iPad (Joel, 2026-10-04): a smaller wordmark and bar, where joelsilverman.com's sizes were too prominent;
   desktop keeps them. Touch screens at least 744 px across (an iPad mini upright) and 500 px tall (not a phone on
   its side). */
@media (any-pointer: coarse) and (min-width: 744px) and (min-height: 500px) {
  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .wordmark {
    font-size: 18px;
  }

  .site-nav {
    font-size: 14px;
  }
}

@media (any-pointer: coarse) and (min-width: 744px) and (max-width: 1080px) and (min-height: 500px) {
  .site-header {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .site-nav {
    font-size: 15px;
  }
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- map page ---------- */

body.map-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* The panel lies over the map and slides away; --nav-w is the width it covers. */
.map-shell {
  --nav-w: var(--panel-w);
  position: relative;
  flex: 1;
  min-height: 0;
}

.map-shell.nav-hidden {
  --nav-w: 0px;
}

.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: var(--panel-w);
  min-height: 0;
  border-right: 1px solid var(--hairline);
  background: var(--paper-light);
  transition: transform var(--slide), visibility 0s;
}

@media (min-width: 821px) {
  .nav-hidden .panel {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--slide), visibility 0s linear 0.22s;
  }
}

/* the hide tab hangs off the panel's top right and slides with it (Joel's mockup, 2026-10-04) */
.panel-hide {
  position: absolute;
  top: 22px; /* level with the top of the panel heading */
  left: var(--panel-w);
  z-index: 12;
  width: 24px;
  height: 128px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: var(--paper-light);
  box-shadow: 1px 1px 4px rgba(38, 34, 31, 0.1);
  color: #b5644e; /* the mockup's colour */
  cursor: pointer;
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: left var(--slide), color 0.15s ease;
}

/* Turned by a transform inside a tab of fixed size: with a vertical writing-mode label the iPad drew
   no cream behind it (Joel, 2026-10-04). Reads upward. */
.panel-hide span {
  position: absolute;
  top: 50%;
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.panel-hide:hover {
  color: var(--clay-dark);
}

.nav-hidden .panel-hide {
  left: 0;
}

/* the title, search and switches stay put; only the map list scrolls */
.panel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.panel-fixed {
  flex: none;
  max-height: 75%;
  overflow-y: auto;
  padding: 22px 22px 0;
}

.panel-scroll {
  --gutter: 22px; /* the band behind a map showing reaches across it */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 var(--gutter) 18px;
}

/* The map list's scroll bar stays in view, so the maps below are not hidden (Joel, 2026-10-05): macOS
   hides plain scroll bars until scrolling, but not styled ones. Firefox can only be asked for a thin one. */
.panel-scroll::-webkit-scrollbar,
.panel-body::-webkit-scrollbar {
  width: 8px;
}

.panel-scroll::-webkit-scrollbar-track,
.panel-body::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

.panel-scroll::-webkit-scrollbar-thumb,
.panel-body::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--hairline-strong);
}

@supports not selector(::-webkit-scrollbar) {
  .panel-scroll,
  .panel-body {
    scrollbar-width: thin;
    scrollbar-color: var(--hairline-strong) var(--paper-deep);
  }
}

.panel h1 {
  margin: 0 0 10px;
  color: var(--clay-dark);
  font-size: 40px;
  line-height: 0.96;
  white-space: nowrap; /* one line in every browser (Joel, 2026-10-15): a long city name is shrunk to fit by js/app.js fitName */
}

/* the city dropdown (approved 2026-10-05): the heading is the button; a small triangle in clay, drawn as Download's, at
   the heading's x-height, pointing down while open; the list opens under the heading on the panel's cream */
.city-pick {
  position: relative;
}

.city-button {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
}

.city-button svg {
  flex: none;
  width: 0.42em;
  height: 0.42em;
  color: var(--clay);
  transition: transform 0.15s ease;
}

.city-button:hover svg,
.city-button[aria-expanded="true"] svg {
  color: var(--clay-dark);
}

.city-button[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.city-list {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 220px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper-light);
  font-size: 16px;
  line-height: 1.4;
}

.city-list[hidden] {
  display: none;
}

.city-list a,
.city-list .city-current {
  display: block;
  padding: 5px 12px;
  white-space: nowrap;
}

.city-list a {
  text-decoration: underline;
  text-decoration-color: rgba(169, 70, 47, 0.35);
  text-underline-offset: 3px;
}

.city-list a:hover {
  background: var(--paper-deep);
}

.city-list .city-current {
  color: var(--ink-soft);
}

/* the version at the end of the line under the heading, in the line's small gray type (Joel, 2026-10-15) */
.panel-intro .version {
  color: var(--ink-soft);
  font-family: Lato, sans-serif;
  font-size: 0.8125em; /* 13 px beside the line's 16, shrinking with it on a narrow sheet */
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* one line at every width (Joel, 2026-10-11): 19.74 em long with the version at its end ("v1.221", 2026-10-15), shrunk
   only where the sheet is narrower than that */
.panel-intro {
  margin: 0 0 18px;
  font-size: min(16px, calc((100vw - 40px) / 20)); /* the sheet's 32 px of padding and 8 of scroll bar */
  line-height: 1.4;
  white-space: nowrap;
}

.search {
  position: relative;
  margin-bottom: 16px;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--card);
  font-size: 17px;
}

.search input::placeholder {
  color: #71726d;
}

.search-results {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--card);
}

.search-results li + li {
  border-top: 1px solid var(--hairline);
}

.search-results button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.search-results button:hover,
.search-results button:focus-visible {
  background: var(--clay-pale);
}

/* "1911 Sanborn · 29 Luckie St", "today" */
.search-tag {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
}

.search-status {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  color: var(--ink-soft);
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  flex: 1;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--card);
}

.segmented button {
  border: 0;
  border-right: 1px solid var(--hairline);
  background: none;
  cursor: pointer;
  font-size: 16px;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button[aria-pressed="true"] {
  background: var(--clay-pale);
  box-shadow: inset 0 -2px 0 var(--clay);
  color: var(--clay-dark);
}

/* Base map: one row, or a Left and a Right row while comparing; 3D is Google's (Joel, 2026-10-12) */
.base-row {
  align-items: flex-start;
}

.base-row .control-label {
  min-height: 40px;
}

/* two rows: the label above them, so each row has the panel's width */
.base-row.is-two {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.base-row.is-two .control-label {
  min-height: 0;
}

.base-sides {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.base-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.base-side[hidden],
.base-side-label[hidden] {
  display: none;
}

.base-side-label {
  width: 44px;
  color: var(--ink-soft);
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "Bottom" while the divider lies across */
.stacked .base-side-label {
  width: 61px;
}

.base-side .segmented {
  min-width: 0;
}

.base-side .segmented button {
  min-width: 0;
  padding: 0 2px;
}

/* resting until the 1st, or before Google's counter has answered */
.segmented button[aria-disabled="true"] {
  color: var(--ink-soft);
  cursor: default;
  opacity: 0.45;
}

/* a side showing Google 3D: its maps are paused, greyed in the list, their ticks kept */
.map-item.is-paused .map-name,
.eye.is-paused {
  opacity: 0.45;
}

/* "show street names" in the 1949 aerial's card: a sliding switch, where its opacity slider was */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.switch-track {
  position: relative;
  width: 28px;
  height: 16px;
  flex: none;
  border-radius: 8px;
  background: var(--hairline-strong);
  transition: background 0.18s ease;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}

/* switches side by side, a wrapped one flush left ("show street names", "show street numbers", then "show key map"
   in the 1911 Sanborn card) */
.switch:not(.switch-right) {
  margin-right: 14px;
}

/* at the card's right edge, on its own line (the 1930 and 1949 cards) */
.switch.switch-right {
  display: flex;
  width: max-content;
  margin-left: auto;
}

.switch[aria-checked="true"] .switch-track {
  background: var(--clay);
}

.switch[aria-checked="true"] .switch-knob {
  transform: translateX(12px);
}

.button {
  min-height: 40px;
  padding: 8px 14px 7px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--card);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.button:hover {
  border-color: var(--clay);
  color: var(--clay-dark);
}

.button.primary {
  border-color: var(--clay-dark);
  background: var(--clay);
  color: #231915;
}

.button.primary:hover {
  background: #e28361;
  color: #231915;
}

/* the list of maps */

.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 8px 0 6px;
  border-bottom: 1px solid var(--hairline-strong);
}

.list-head .sides {
  display: flex;
  gap: 4px;
  padding-bottom: 6px;
}

.list-head .sides span {
  width: 46px;
  color: var(--ink-soft);
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* "Bottom" fits over its eye in the base map row's size, centred though wider than the eye */
.stacked .list-head .sides span {
  display: flex;
  justify-content: center;
  font-size: 13px;
}

.map-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-item {
  border-bottom: 1px solid var(--hairline);
}

/* A map showing: its card on a pale green band, #83bd71 at 40%, out to the panel's edges (Joel, 2026-10-14) */
.map-item.is-on {
  --on-band: rgb(131 189 113 / 40%);
  background: var(--on-band);
  box-shadow: calc(-1 * var(--gutter)) 0 var(--on-band), var(--gutter) 0 var(--on-band);
}

/* Hovering a map's card colours its name, a different colour card to card: deeper shades of the pastels
   e9d77f, b9d4e6, b8cf8a, eac78c, deb1b2, so the name stays readable on the cream (Joel, 2026-10-05). */
@media (hover: hover) {
  .map-name {
    transition: color 0.15s;
  }

  .map-item:hover .map-name {
    color: var(--hue);
  }

  .map-item:nth-child(7n + 1) { --hue: #806a00; }
  .map-item:nth-child(7n + 2) { --hue: #2f6690; }
  .map-item:nth-child(7n + 3) { --hue: #4d6e1a; }
  .map-item:nth-child(7n + 4) { --hue: #9a5a10; }
  .map-item:nth-child(7n + 5) { --hue: #9c4a4c; }
  .map-item:nth-child(7n + 6) { --hue: #6a559a; }
  .map-item:nth-child(7n + 7) { --hue: #2c7560; }
}

.map-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px 0 3px;
}

/* the visibility eye */
.eye {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.eye svg {
  width: 22px;
  height: 22px;
}

.eye[aria-pressed="false"] {
  color: var(--ink-soft);
  opacity: 0.6;
}

.eye:hover {
  color: var(--clay-dark);
  opacity: 1;
}

.map-name {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16.5px;
  line-height: 1.3;
  text-align: left;
}

.map-name .year {
  margin-right: 5px;
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.map-item.is-on .map-name {
  color: var(--ink);
}

.side-pick {
  display: flex;
  gap: 4px;
}

.side-pick .eye {
  width: 46px;
}

/* downloads and zoom, one line under the name, from the panel's left edge */
.map-details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 0 0 9px;
  font-size: 13px;
}


/* Download: a closed menu; its triangle turns down and the files appear beside it */
.dl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--clay);
  cursor: pointer;
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dl-toggle:hover {
  color: var(--clay-dark);
}

.dl-toggle svg {
  width: 11px;
  height: 11px;
  transition: transform 0.15s ease;
}

.dl-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.map-details .download-links a,
.map-details .link-button {
  font-size: 13px;
}

.map-details .download-links {
  gap: 2px 10px;
}

.zoom-link {
  display: inline-grid;
  place-items: center;
  align-self: center;
  margin: -3px -3px -3px auto;
  padding: 3px;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.zoom-link svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

@media (hover: hover) { /* a touch screen keeps :hover after a tap, which left the square on */
  .zoom-link:hover {
    background: var(--clay-pale);
  }
}


.download-links a,
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--clay-dark);
  cursor: pointer;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: rgba(169, 70, 47, 0.35);
  text-underline-offset: 3px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.muted {
  color: var(--ink-soft);
}

/* a switch: pressed in while the sheet grid shows; the negative margin keeps the line as wide as before */
.map-details .grid-link {
  margin: -2px -5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--grid-blue);
  text-decoration-color: rgba(29, 95, 196, 0.35);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.map-details .grid-link[aria-pressed="true"] {
  background: rgba(29, 95, 196, 0.11);
  box-shadow: inset 0 1px 3px rgba(29, 95, 196, 0.45), inset 0 0 0 1px rgba(29, 95, 196, 0.25);
  text-decoration: none;
}

/* the map stage */

.map-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9e4da;
}

.map {
  position: absolute;
  inset: 0;
}

.map-right {
  z-index: 2;
}

/* 1930 address readout, matched to docs/design/address-readout. */
.address-readout, .address-lines {
  --o-card: rgba(255, 253, 250, 0.8); /* 80%: the map shows through (Joel, 2026-10-06) */
  --o-ink: #26221f;
  --o-soft: #6d665e;
  --o-old: #a9462f;
  --o-rule: rgba(38, 34, 31, 0.13);
  --o-edge: rgba(38, 34, 31, 0.22);
  --o-halo: rgba(255, 253, 250, 0.92);
}
.address-readout {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.address-lines { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; mix-blend-mode: darken; }
.address-readout[hidden], .address-lines[hidden], .address-card[hidden] { display: none; }
.address-error { position: absolute; z-index: 9; top: 76px; padding: 10px 13px; background: #fffdfa; color: #26221f; border: 1px solid rgba(38, 34, 31, 0.22); border-radius: 5px; box-shadow: 0 1px 2px rgba(38, 34, 31, 0.10), 0 10px 26px rgba(38, 34, 31, 0.18); font: 400 14px/1.35 "Lato", "Gill Sans", sans-serif; text-align: center; pointer-events: none; }
.address-error[hidden] { display: none; }
.address-cursor .maplibregl-canvas-container,
.address-cursor .maplibregl-canvas { cursor: none !important; }
.address-block { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.address-block .halo { stroke: var(--o-halo); stroke-width: 9; stroke-linecap: round; fill: none; }
.address-block .run { stroke: var(--o-old); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.address-block .tick { stroke: var(--o-old); stroke-width: 2.5; stroke-linecap: round; }
.address-block .tick-halo { stroke: var(--o-halo); stroke-width: 7; stroke-linecap: round; }
.address-block .tie { stroke: var(--o-ink); stroke-width: 1.25; stroke-dasharray: 1.5 3; stroke-linecap: round; }
.address-block .snap { fill: var(--o-old); stroke: var(--o-halo); stroke-width: 2.5; }
.address-block .ring-halo { stroke: var(--o-halo); stroke-width: 4; fill: none; }
.address-block .ring { stroke: var(--o-old); stroke-width: 1.5; fill: none; }
.address-reticle { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.address-reticle::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 3px solid var(--o-ink); box-shadow: 0 0 0 2.5px var(--o-halo), inset 0 0 0 2.5px var(--o-halo); }
.address-reticle i { position: absolute; background: var(--o-ink); border-radius: 1px; box-shadow: 0 0 0 2.5px var(--o-halo); }
.address-reticle i:nth-child(1) { left: 20.5px; top: 0; width: 3px; height: 10px; }
.address-reticle i:nth-child(2) { left: 20.5px; bottom: 0; width: 3px; height: 10px; }
.address-reticle i:nth-child(3) { top: 20.5px; left: 0; width: 10px; height: 3px; }
.address-reticle i:nth-child(4) { top: 20.5px; right: 0; width: 10px; height: 3px; }
.address-card { position: absolute; pointer-events: none; display: grid; grid-template-columns: auto auto; column-gap: 16px; align-items: baseline; padding: 15px 24px 16px 22px; background: var(--o-card); color: var(--o-ink); border: 1px solid var(--o-edge); border-radius: 5px; box-shadow: 0 1px 2px rgba(38, 34, 31, 0.10), 0 10px 26px rgba(38, 34, 31, 0.18); white-space: nowrap; }
.address-card::before { content: ""; position: absolute; left: -6px; top: calc(var(--pointer-y, 50%) - 5px); width: 10px; height: 10px; background: var(--o-card); border-left: 1px solid var(--o-edge); border-bottom: 1px solid var(--o-edge); transform: rotate(45deg); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.address-card.flip::before { left: auto; right: -6px; transform: rotate(-135deg); }
.address-card .lab { font: 400 12.5px/1 "Lato", "Gill Sans", sans-serif; letter-spacing: 0.02em; color: var(--o-soft); }
.address-card .adr { font: 600 21px/1.25 "Cormorant Garamond", "Iowan Old Style", Georgia, serif; font-variant-numeric: lining-nums tabular-nums; color: var(--o-ink); }
.address-card .adr b { font-weight: 700; }
.address-card .old { color: var(--o-old); }
.address-card .none { font: italic 500 19px/1.25 "Cormorant Garamond", "Iowan Old Style", Georgia, serif; color: var(--o-soft); }
.address-card .detail { grid-column: 2; color: var(--o-soft); font: 400 11px/1.2 "Lato", "Gill Sans", sans-serif; white-space: normal; max-width: 260px; }
.address-card .rule { grid-column: 1 / -1; height: 1px; background: var(--o-rule); margin: 9px 0 8px; }
.address-card.compact { grid-template-columns: 1fr; width: min(244px, calc(100vw - 20px)); white-space: normal; row-gap: 3px; padding: 11px 14px 12px; }
.address-card.compact .adr { font-size: 19px; }
.address-card.compact .detail { grid-column: 1; }
.address-card.compact .rule { margin: 5px 0; }

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 0;
  cursor: ew-resize;
}

.divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(38, 34, 31, 0.35);
}

.divider-handle {
  position: absolute;
  top: 50%;
  left: -22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--clay-dark);
  touch-action: none;
}

/* A diamond: the clay arrows point the way it drags, the pale corners the way a double-click turns it */
.divider-handle svg {
  width: 32px;
  height: 32px;
}

/* Stacked (a double-click on the divider): it lies across the map beside the panel, the left side's maps above */
.stacked .divider {
  right: 0;
  bottom: auto;
  width: auto;
  height: 0;
  cursor: ns-resize;
}

.stacked .divider::before {
  top: -1.5px;
  bottom: auto;
  left: 0;
  right: 0;
  width: auto;
  height: 3px;
}

.stacked .divider-handle {
  top: -22px;
  left: 50%;
  margin: 0 0 0 -22px;
}

.stacked .divider-handle svg {
  transform: rotate(90deg);
}

.side-tag {
  position: absolute;
  top: 12px;
  z-index: 4;
  max-width: 40%;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(251, 248, 242, 0.94);
  box-shadow: 0 1px 4px rgba(38, 34, 31, 0.2);
  font-size: 15px;
  line-height: 1.3;
  pointer-events: none;
}

.side-tag.left {
  left: calc(var(--nav-w) + 12px);
  transition: left var(--slide), top var(--slide);
}

.nav-hidden .side-tag.left {
  top: 56px;
}

.side-tag.right {
  right: 56px;
  text-align: right;
}

.stacked .side-tag.right {
  top: calc(var(--split-y) + 12px);
  left: calc(var(--nav-w) + 12px);
  right: auto;
  text-align: left;
  transition: left var(--slide);
}

.map-notice {
  position: absolute;
  top: 14px;
  z-index: 5;
  overflow: hidden;
  isolation: isolate;
  padding: 9px 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, #174497, #12357a);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 17px;
  text-shadow: 0 1px 2px rgba(10, 30, 70, 0.45);
  white-space: nowrap;
  /* centred on the uncovered map by margins: a -50% shift lands between pixels and blurs the tiles */
  left: var(--nav-w);
  right: 0;
  width: max-content;
  margin-inline: auto;
  transition: left var(--slide);
}

.notice-close {
  margin: -4px -6px -4px 10px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  vertical-align: -2px;
  opacity: 0.8;
}

.notice-close:hover {
  opacity: 1;
}

/* A moment's confirmation (the copied extent, the Google buttons resting), below the Sanborn notice when that shows;
   long ones wrap within the uncovered map, 92 px clear of the buttons at the top right on each side (2026-10-13; 16 px
   until then, which covered the compass on an iPad) */
.map-notice.flash-notice {
  max-width: calc(100% - var(--nav-w) - 184px);
  white-space: normal;
  text-align: center;
  pointer-events: none;
  transition: left var(--slide), opacity 0.4s;
}

/* a copy the browser refused, on a touch screen (Joel, 2026-10-14): the notice takes the finger, and a touch and hold on
   the figures selects them whole for the Copy button */
.map-notice.flash-notice.is-hold {
  pointer-events: auto;
}

.flash-notice.is-hold .flash-select {
  -webkit-user-select: all;
  user-select: all;
}

#grid-notice:not([hidden]) ~ .flash-notice,
#grid-notice:not([hidden]) ~ .offline-notice,
#offline-notice:not([hidden]) ~ .flash-notice {
  top: 62px;
}

#grid-notice:not([hidden]) ~ #offline-notice:not([hidden]) ~ .flash-notice {
  top: 110px;
}

/* While the connection is down (2026-10-12), below the Sanborn notice when that shows. */
.map-notice.offline-notice {
  pointer-events: none;
}

.flash-notice.is-fading {
  opacity: 0;
}

/* After a zoom, at the middle of the uncovered map while the new level's tiles load. Centred by
   margins for the same reason as above; clicks and scrolls pass through to the map. */
.map-notice.tile-loading {
  top: 0;
  bottom: 0;
  height: max-content;
  margin: auto;
  max-width: none;
  padding: 7px 14px;
  font-size: 15px;
  white-space: nowrap;
  pointer-events: none;
}

/* Tile waterfall, as on the Ultracode effort slider: two layers of white tiles, each falling one
   5 px row at a time at its own pace. White type keeps at least 4.5:1 contrast on every tile.
   The patterns come from scripts/notice_tiles.py. */
/* When the map cannot be drawn (no WebGL2): a card centred on the uncovered map, 2026-10-05 */
.map-failure {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--nav-w);
  right: 0;
  z-index: 6;
  width: min(440px, calc(100% - 32px));
  height: max-content;
  margin: auto;
  padding: 18px 22px;
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  transition: left var(--slide);
}

.map-failure[hidden] {
  display: none;
}

.map-failure p {
  margin: 0 0 10px;
}

.map-failure p + p {
  color: var(--ink-soft);
}

.map-failure button {
  margin-top: 4px;
  padding: 6px 14px;
  border: 1px solid var(--clay);
  border-radius: 2px;
  background: var(--clay-pale);
  color: var(--clay-dark);
  font: inherit;
  cursor: pointer;
}

.map-notice::before,
.map-notice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.map-notice::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-linejoin='round'%3E%3Cpath opacity='0.04' d='M11.5 1.5h3v3h-3zM16.5 1.5h3v3h-3zM26.5 1.5h3v3h-3zM31.5 1.5h3v3h-3zM51.5 1.5h3v3h-3zM61.5 1.5h3v3h-3zM71.5 1.5h3v3h-3zM76.5 1.5h3v3h-3zM111.5 1.5h3v3h-3zM131.5 1.5h3v3h-3zM136.5 1.5h3v3h-3zM151.5 1.5h3v3h-3zM156.5 1.5h3v3h-3zM6.5 6.5h3v3h-3zM21.5 6.5h3v3h-3zM46.5 6.5h3v3h-3zM61.5 6.5h3v3h-3zM86.5 6.5h3v3h-3zM111.5 6.5h3v3h-3zM116.5 6.5h3v3h-3zM121.5 6.5h3v3h-3zM11.5 11.5h3v3h-3zM36.5 11.5h3v3h-3zM66.5 11.5h3v3h-3zM156.5 11.5h3v3h-3zM1.5 16.5h3v3h-3zM11.5 16.5h3v3h-3zM16.5 16.5h3v3h-3zM26.5 16.5h3v3h-3zM101.5 16.5h3v3h-3zM111.5 16.5h3v3h-3zM126.5 16.5h3v3h-3zM141.5 16.5h3v3h-3zM41.5 21.5h3v3h-3zM46.5 21.5h3v3h-3zM56.5 21.5h3v3h-3zM76.5 21.5h3v3h-3zM111.5 21.5h3v3h-3zM121.5 21.5h3v3h-3zM126.5 21.5h3v3h-3zM146.5 21.5h3v3h-3zM41.5 26.5h3v3h-3zM66.5 26.5h3v3h-3zM76.5 26.5h3v3h-3zM96.5 26.5h3v3h-3zM106.5 26.5h3v3h-3zM111.5 26.5h3v3h-3zM116.5 26.5h3v3h-3zM131.5 26.5h3v3h-3zM141.5 26.5h3v3h-3zM1.5 31.5h3v3h-3zM26.5 31.5h3v3h-3zM46.5 31.5h3v3h-3zM51.5 31.5h3v3h-3zM61.5 31.5h3v3h-3zM71.5 31.5h3v3h-3zM76.5 31.5h3v3h-3zM91.5 31.5h3v3h-3zM121.5 31.5h3v3h-3zM131.5 31.5h3v3h-3zM141.5 31.5h3v3h-3zM6.5 36.5h3v3h-3zM41.5 36.5h3v3h-3zM111.5 36.5h3v3h-3zM131.5 36.5h3v3h-3zM141.5 36.5h3v3h-3zM146.5 36.5h3v3h-3zM26.5 41.5h3v3h-3zM31.5 41.5h3v3h-3zM36.5 41.5h3v3h-3zM46.5 41.5h3v3h-3zM56.5 41.5h3v3h-3zM61.5 41.5h3v3h-3zM71.5 41.5h3v3h-3zM76.5 41.5h3v3h-3zM131.5 41.5h3v3h-3zM146.5 41.5h3v3h-3zM21.5 46.5h3v3h-3zM26.5 46.5h3v3h-3zM56.5 46.5h3v3h-3zM116.5 46.5h3v3h-3zM131.5 46.5h3v3h-3zM136.5 46.5h3v3h-3zM141.5 46.5h3v3h-3zM16.5 51.5h3v3h-3zM46.5 51.5h3v3h-3zM66.5 51.5h3v3h-3zM76.5 51.5h3v3h-3zM91.5 51.5h3v3h-3zM101.5 51.5h3v3h-3zM106.5 51.5h3v3h-3zM111.5 51.5h3v3h-3zM116.5 51.5h3v3h-3zM126.5 51.5h3v3h-3zM146.5 51.5h3v3h-3zM151.5 51.5h3v3h-3zM6.5 56.5h3v3h-3zM16.5 56.5h3v3h-3zM46.5 56.5h3v3h-3zM56.5 56.5h3v3h-3zM71.5 56.5h3v3h-3zM76.5 56.5h3v3h-3zM96.5 56.5h3v3h-3zM146.5 56.5h3v3h-3zM26.5 61.5h3v3h-3zM36.5 61.5h3v3h-3zM66.5 61.5h3v3h-3zM76.5 61.5h3v3h-3zM106.5 61.5h3v3h-3zM141.5 61.5h3v3h-3zM11.5 66.5h3v3h-3zM31.5 66.5h3v3h-3zM41.5 66.5h3v3h-3zM56.5 66.5h3v3h-3zM96.5 66.5h3v3h-3zM111.5 66.5h3v3h-3zM116.5 66.5h3v3h-3zM121.5 66.5h3v3h-3zM126.5 66.5h3v3h-3zM131.5 66.5h3v3h-3zM6.5 71.5h3v3h-3zM26.5 71.5h3v3h-3zM41.5 71.5h3v3h-3zM46.5 71.5h3v3h-3zM51.5 71.5h3v3h-3zM56.5 71.5h3v3h-3zM66.5 71.5h3v3h-3zM86.5 71.5h3v3h-3zM96.5 71.5h3v3h-3zM101.5 71.5h3v3h-3zM106.5 71.5h3v3h-3zM111.5 71.5h3v3h-3zM146.5 71.5h3v3h-3zM26.5 76.5h3v3h-3zM36.5 76.5h3v3h-3zM51.5 76.5h3v3h-3zM56.5 76.5h3v3h-3zM66.5 76.5h3v3h-3zM76.5 76.5h3v3h-3zM111.5 76.5h3v3h-3zM116.5 76.5h3v3h-3zM121.5 76.5h3v3h-3zM136.5 76.5h3v3h-3zM156.5 76.5h3v3h-3zM11.5 81.5h3v3h-3zM41.5 81.5h3v3h-3zM56.5 81.5h3v3h-3zM91.5 81.5h3v3h-3zM101.5 81.5h3v3h-3zM121.5 81.5h3v3h-3zM146.5 81.5h3v3h-3zM6.5 86.5h3v3h-3zM21.5 86.5h3v3h-3zM31.5 86.5h3v3h-3zM46.5 86.5h3v3h-3zM56.5 86.5h3v3h-3zM61.5 86.5h3v3h-3zM111.5 86.5h3v3h-3zM131.5 86.5h3v3h-3zM136.5 86.5h3v3h-3zM156.5 86.5h3v3h-3zM61.5 91.5h3v3h-3zM76.5 91.5h3v3h-3zM106.5 91.5h3v3h-3zM111.5 91.5h3v3h-3zM121.5 91.5h3v3h-3zM131.5 91.5h3v3h-3zM141.5 91.5h3v3h-3zM26.5 96.5h3v3h-3zM41.5 96.5h3v3h-3zM56.5 96.5h3v3h-3zM66.5 96.5h3v3h-3zM76.5 96.5h3v3h-3zM81.5 96.5h3v3h-3zM91.5 96.5h3v3h-3zM16.5 101.5h3v3h-3zM21.5 101.5h3v3h-3zM46.5 101.5h3v3h-3zM111.5 101.5h3v3h-3zM121.5 101.5h3v3h-3zM131.5 101.5h3v3h-3zM136.5 101.5h3v3h-3zM16.5 106.5h3v3h-3zM36.5 106.5h3v3h-3zM41.5 106.5h3v3h-3zM51.5 106.5h3v3h-3zM56.5 106.5h3v3h-3zM61.5 106.5h3v3h-3zM111.5 106.5h3v3h-3zM146.5 106.5h3v3h-3zM6.5 111.5h3v3h-3zM16.5 111.5h3v3h-3zM31.5 111.5h3v3h-3zM96.5 111.5h3v3h-3zM111.5 111.5h3v3h-3zM116.5 111.5h3v3h-3zM126.5 111.5h3v3h-3zM131.5 111.5h3v3h-3zM146.5 111.5h3v3h-3zM156.5 111.5h3v3h-3zM1.5 116.5h3v3h-3zM46.5 116.5h3v3h-3zM66.5 116.5h3v3h-3zM76.5 116.5h3v3h-3zM91.5 116.5h3v3h-3zM136.5 116.5h3v3h-3z'/%3E%3Cpath opacity='0.08' d='M1.5 1.5h3v3h-3zM21.5 1.5h3v3h-3zM81.5 1.5h3v3h-3zM146.5 1.5h3v3h-3zM11.5 6.5h3v3h-3zM26.5 6.5h3v3h-3zM31.5 6.5h3v3h-3zM56.5 6.5h3v3h-3zM101.5 6.5h3v3h-3zM71.5 11.5h3v3h-3zM111.5 11.5h3v3h-3zM116.5 11.5h3v3h-3zM121.5 11.5h3v3h-3zM141.5 11.5h3v3h-3zM146.5 11.5h3v3h-3zM31.5 16.5h3v3h-3zM56.5 16.5h3v3h-3zM61.5 16.5h3v3h-3zM76.5 16.5h3v3h-3zM131.5 16.5h3v3h-3zM146.5 16.5h3v3h-3zM156.5 16.5h3v3h-3zM21.5 21.5h3v3h-3zM31.5 21.5h3v3h-3zM51.5 21.5h3v3h-3zM66.5 21.5h3v3h-3zM71.5 21.5h3v3h-3zM101.5 21.5h3v3h-3zM106.5 21.5h3v3h-3zM151.5 21.5h3v3h-3zM1.5 26.5h3v3h-3zM51.5 26.5h3v3h-3zM56.5 26.5h3v3h-3zM61.5 26.5h3v3h-3zM81.5 26.5h3v3h-3zM101.5 26.5h3v3h-3zM126.5 26.5h3v3h-3zM151.5 26.5h3v3h-3zM16.5 31.5h3v3h-3zM41.5 31.5h3v3h-3zM81.5 31.5h3v3h-3zM101.5 31.5h3v3h-3zM11.5 36.5h3v3h-3zM26.5 36.5h3v3h-3zM56.5 36.5h3v3h-3zM61.5 36.5h3v3h-3zM86.5 36.5h3v3h-3zM101.5 36.5h3v3h-3zM136.5 36.5h3v3h-3zM151.5 36.5h3v3h-3zM81.5 41.5h3v3h-3zM91.5 41.5h3v3h-3zM126.5 41.5h3v3h-3zM141.5 41.5h3v3h-3zM6.5 46.5h3v3h-3zM16.5 46.5h3v3h-3zM51.5 46.5h3v3h-3zM86.5 46.5h3v3h-3zM146.5 46.5h3v3h-3zM1.5 51.5h3v3h-3zM6.5 51.5h3v3h-3zM26.5 51.5h3v3h-3zM31.5 51.5h3v3h-3zM41.5 51.5h3v3h-3zM51.5 51.5h3v3h-3zM71.5 51.5h3v3h-3zM136.5 51.5h3v3h-3zM156.5 51.5h3v3h-3zM11.5 56.5h3v3h-3zM26.5 56.5h3v3h-3zM36.5 56.5h3v3h-3zM66.5 56.5h3v3h-3zM106.5 56.5h3v3h-3zM111.5 56.5h3v3h-3zM121.5 56.5h3v3h-3zM126.5 56.5h3v3h-3zM141.5 56.5h3v3h-3zM156.5 56.5h3v3h-3zM21.5 61.5h3v3h-3zM31.5 61.5h3v3h-3zM61.5 61.5h3v3h-3zM96.5 61.5h3v3h-3zM111.5 61.5h3v3h-3zM146.5 61.5h3v3h-3zM156.5 61.5h3v3h-3zM16.5 66.5h3v3h-3zM51.5 66.5h3v3h-3zM66.5 66.5h3v3h-3zM76.5 66.5h3v3h-3zM81.5 66.5h3v3h-3zM101.5 66.5h3v3h-3zM151.5 66.5h3v3h-3zM1.5 71.5h3v3h-3zM11.5 71.5h3v3h-3zM36.5 71.5h3v3h-3zM71.5 71.5h3v3h-3zM76.5 71.5h3v3h-3zM116.5 71.5h3v3h-3zM6.5 76.5h3v3h-3zM11.5 76.5h3v3h-3zM16.5 76.5h3v3h-3zM31.5 76.5h3v3h-3zM41.5 76.5h3v3h-3zM46.5 76.5h3v3h-3zM61.5 76.5h3v3h-3zM71.5 76.5h3v3h-3zM81.5 76.5h3v3h-3zM96.5 76.5h3v3h-3zM131.5 76.5h3v3h-3zM1.5 81.5h3v3h-3zM21.5 81.5h3v3h-3zM31.5 81.5h3v3h-3zM36.5 81.5h3v3h-3zM61.5 81.5h3v3h-3zM76.5 81.5h3v3h-3zM96.5 81.5h3v3h-3zM126.5 81.5h3v3h-3zM141.5 81.5h3v3h-3zM156.5 81.5h3v3h-3zM11.5 86.5h3v3h-3zM41.5 86.5h3v3h-3zM66.5 86.5h3v3h-3zM101.5 86.5h3v3h-3zM126.5 86.5h3v3h-3zM1.5 91.5h3v3h-3zM11.5 91.5h3v3h-3zM21.5 91.5h3v3h-3zM56.5 91.5h3v3h-3zM66.5 91.5h3v3h-3zM91.5 91.5h3v3h-3zM151.5 91.5h3v3h-3zM6.5 96.5h3v3h-3zM11.5 96.5h3v3h-3zM46.5 96.5h3v3h-3zM51.5 96.5h3v3h-3zM61.5 96.5h3v3h-3zM111.5 96.5h3v3h-3zM126.5 96.5h3v3h-3zM141.5 96.5h3v3h-3zM26.5 101.5h3v3h-3zM31.5 101.5h3v3h-3zM41.5 101.5h3v3h-3zM91.5 101.5h3v3h-3zM151.5 101.5h3v3h-3zM6.5 106.5h3v3h-3zM11.5 106.5h3v3h-3zM31.5 106.5h3v3h-3zM46.5 106.5h3v3h-3zM86.5 106.5h3v3h-3zM106.5 106.5h3v3h-3zM116.5 106.5h3v3h-3zM121.5 106.5h3v3h-3zM126.5 106.5h3v3h-3zM141.5 106.5h3v3h-3zM151.5 106.5h3v3h-3zM1.5 111.5h3v3h-3zM11.5 111.5h3v3h-3zM21.5 111.5h3v3h-3zM36.5 111.5h3v3h-3zM56.5 111.5h3v3h-3zM86.5 111.5h3v3h-3zM91.5 111.5h3v3h-3zM101.5 111.5h3v3h-3zM106.5 111.5h3v3h-3zM136.5 111.5h3v3h-3zM16.5 116.5h3v3h-3zM21.5 116.5h3v3h-3zM26.5 116.5h3v3h-3zM41.5 116.5h3v3h-3zM56.5 116.5h3v3h-3zM81.5 116.5h3v3h-3zM86.5 116.5h3v3h-3zM116.5 116.5h3v3h-3zM126.5 116.5h3v3h-3zM141.5 116.5h3v3h-3zM146.5 116.5h3v3h-3z'/%3E%3Cpath opacity='0.13' d='M6.5 1.5h3v3h-3zM91.5 1.5h3v3h-3zM96.5 1.5h3v3h-3zM116.5 1.5h3v3h-3zM121.5 1.5h3v3h-3zM36.5 6.5h3v3h-3zM66.5 6.5h3v3h-3zM126.5 6.5h3v3h-3zM136.5 6.5h3v3h-3zM41.5 11.5h3v3h-3zM46.5 11.5h3v3h-3zM101.5 11.5h3v3h-3zM106.5 11.5h3v3h-3zM151.5 11.5h3v3h-3zM86.5 16.5h3v3h-3zM116.5 16.5h3v3h-3zM1.5 21.5h3v3h-3zM6.5 21.5h3v3h-3zM26.5 21.5h3v3h-3zM81.5 21.5h3v3h-3zM16.5 26.5h3v3h-3zM26.5 26.5h3v3h-3zM71.5 26.5h3v3h-3zM91.5 26.5h3v3h-3zM136.5 26.5h3v3h-3zM156.5 26.5h3v3h-3zM6.5 31.5h3v3h-3zM11.5 31.5h3v3h-3zM56.5 31.5h3v3h-3zM96.5 31.5h3v3h-3zM136.5 31.5h3v3h-3zM156.5 31.5h3v3h-3zM1.5 36.5h3v3h-3zM31.5 36.5h3v3h-3zM36.5 36.5h3v3h-3zM71.5 36.5h3v3h-3zM96.5 36.5h3v3h-3zM6.5 41.5h3v3h-3zM16.5 41.5h3v3h-3zM21.5 41.5h3v3h-3zM66.5 41.5h3v3h-3zM116.5 41.5h3v3h-3zM136.5 41.5h3v3h-3zM11.5 46.5h3v3h-3zM46.5 46.5h3v3h-3zM71.5 46.5h3v3h-3zM81.5 46.5h3v3h-3zM106.5 46.5h3v3h-3zM36.5 51.5h3v3h-3zM61.5 51.5h3v3h-3zM81.5 51.5h3v3h-3zM31.5 56.5h3v3h-3zM61.5 56.5h3v3h-3zM81.5 56.5h3v3h-3zM11.5 61.5h3v3h-3zM86.5 61.5h3v3h-3zM101.5 61.5h3v3h-3zM131.5 61.5h3v3h-3zM136.5 61.5h3v3h-3zM151.5 61.5h3v3h-3zM36.5 66.5h3v3h-3zM46.5 66.5h3v3h-3zM156.5 66.5h3v3h-3zM81.5 71.5h3v3h-3zM136.5 71.5h3v3h-3zM156.5 71.5h3v3h-3zM106.5 76.5h3v3h-3zM26.5 81.5h3v3h-3zM46.5 81.5h3v3h-3zM51.5 81.5h3v3h-3zM86.5 81.5h3v3h-3zM111.5 81.5h3v3h-3zM116.5 81.5h3v3h-3zM131.5 81.5h3v3h-3zM136.5 81.5h3v3h-3zM16.5 86.5h3v3h-3zM71.5 86.5h3v3h-3zM81.5 86.5h3v3h-3zM106.5 86.5h3v3h-3zM141.5 86.5h3v3h-3zM151.5 86.5h3v3h-3zM16.5 91.5h3v3h-3zM41.5 91.5h3v3h-3zM81.5 91.5h3v3h-3zM96.5 91.5h3v3h-3zM126.5 91.5h3v3h-3zM136.5 91.5h3v3h-3zM146.5 91.5h3v3h-3zM21.5 96.5h3v3h-3zM121.5 96.5h3v3h-3zM146.5 96.5h3v3h-3zM151.5 96.5h3v3h-3zM156.5 96.5h3v3h-3zM1.5 101.5h3v3h-3zM71.5 101.5h3v3h-3zM76.5 101.5h3v3h-3zM86.5 101.5h3v3h-3zM96.5 101.5h3v3h-3zM101.5 101.5h3v3h-3zM156.5 101.5h3v3h-3zM1.5 106.5h3v3h-3zM131.5 106.5h3v3h-3zM76.5 111.5h3v3h-3zM106.5 116.5h3v3h-3zM131.5 116.5h3v3h-3z'/%3E%3Cpath opacity='0.2' d='M66.5 1.5h3v3h-3zM41.5 6.5h3v3h-3zM51.5 6.5h3v3h-3zM106.5 6.5h3v3h-3zM131.5 6.5h3v3h-3zM1.5 11.5h3v3h-3zM26.5 11.5h3v3h-3zM51.5 11.5h3v3h-3zM76.5 11.5h3v3h-3zM136.5 11.5h3v3h-3zM6.5 16.5h3v3h-3zM36.5 16.5h3v3h-3zM51.5 16.5h3v3h-3zM71.5 16.5h3v3h-3zM36.5 21.5h3v3h-3zM136.5 21.5h3v3h-3zM36.5 26.5h3v3h-3zM86.5 26.5h3v3h-3zM116.5 31.5h3v3h-3zM21.5 36.5h3v3h-3zM76.5 36.5h3v3h-3zM106.5 36.5h3v3h-3zM51.5 41.5h3v3h-3zM106.5 41.5h3v3h-3zM111.5 41.5h3v3h-3zM151.5 41.5h3v3h-3zM156.5 41.5h3v3h-3zM41.5 46.5h3v3h-3zM96.5 46.5h3v3h-3zM121.5 46.5h3v3h-3zM156.5 46.5h3v3h-3zM91.5 56.5h3v3h-3zM131.5 56.5h3v3h-3zM151.5 56.5h3v3h-3zM71.5 61.5h3v3h-3zM26.5 66.5h3v3h-3zM131.5 71.5h3v3h-3zM21.5 76.5h3v3h-3zM101.5 76.5h3v3h-3zM151.5 76.5h3v3h-3zM76.5 86.5h3v3h-3zM101.5 96.5h3v3h-3zM131.5 96.5h3v3h-3zM6.5 101.5h3v3h-3zM36.5 101.5h3v3h-3zM51.5 101.5h3v3h-3zM56.5 101.5h3v3h-3zM61.5 101.5h3v3h-3zM71.5 106.5h3v3h-3zM76.5 106.5h3v3h-3zM81.5 111.5h3v3h-3zM6.5 116.5h3v3h-3zM61.5 116.5h3v3h-3z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 120px;
  animation: tiles-a 2.4s steps(24) infinite;
}

.map-notice::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-linejoin='round'%3E%3Cpath opacity='0.05' d='M21.5 1.5h3v3h-3zM61.5 1.5h3v3h-3zM116.5 1.5h3v3h-3zM51.5 6.5h3v3h-3zM66.5 6.5h3v3h-3zM106.5 6.5h3v3h-3zM1.5 11.5h3v3h-3zM66.5 11.5h3v3h-3zM116.5 11.5h3v3h-3zM6.5 16.5h3v3h-3zM76.5 21.5h3v3h-3zM96.5 21.5h3v3h-3zM111.5 21.5h3v3h-3zM71.5 26.5h3v3h-3zM46.5 31.5h3v3h-3zM116.5 31.5h3v3h-3zM86.5 36.5h3v3h-3zM91.5 36.5h3v3h-3zM71.5 41.5h3v3h-3zM16.5 46.5h3v3h-3zM46.5 46.5h3v3h-3zM91.5 46.5h3v3h-3zM91.5 51.5h3v3h-3zM36.5 56.5h3v3h-3zM41.5 56.5h3v3h-3zM71.5 56.5h3v3h-3zM91.5 56.5h3v3h-3zM96.5 56.5h3v3h-3zM106.5 56.5h3v3h-3zM1.5 61.5h3v3h-3zM21.5 61.5h3v3h-3zM41.5 61.5h3v3h-3zM61.5 61.5h3v3h-3zM41.5 66.5h3v3h-3zM71.5 66.5h3v3h-3zM91.5 66.5h3v3h-3zM11.5 71.5h3v3h-3zM41.5 71.5h3v3h-3zM51.5 76.5h3v3h-3zM101.5 76.5h3v3h-3z'/%3E%3Cpath opacity='0.08' d='M56.5 16.5h3v3h-3zM36.5 21.5h3v3h-3zM86.5 21.5h3v3h-3zM56.5 26.5h3v3h-3zM66.5 31.5h3v3h-3zM76.5 41.5h3v3h-3zM6.5 46.5h3v3h-3zM26.5 46.5h3v3h-3zM31.5 46.5h3v3h-3zM106.5 51.5h3v3h-3zM16.5 56.5h3v3h-3zM6.5 61.5h3v3h-3zM26.5 61.5h3v3h-3zM106.5 61.5h3v3h-3zM11.5 66.5h3v3h-3zM16.5 66.5h3v3h-3zM6.5 71.5h3v3h-3zM56.5 71.5h3v3h-3zM56.5 76.5h3v3h-3zM71.5 76.5h3v3h-3zM86.5 76.5h3v3h-3z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 80px;
  animation: tiles-b 3.2s steps(16) infinite;
}

@keyframes tiles-a {
  to { background-position: 0 120px; }
}

@keyframes tiles-b {
  to { background-position: 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-notice::before,
  .map-notice::after {
    animation: none;
  }
}

/* the altitude stays beside the panel */
#map .maplibregl-ctrl-bottom-left {
  transform: translateX(var(--nav-w));
  transition: transform var(--slide);
}

.gliding .divider {
  transition: left var(--slide);
}

.gliding .map-right {
  transition: clip-path var(--slide);
}

/* the sheet download card (a MapLibre popup) */

.maplibregl-popup-content {
  padding: 14px 16px 14px;
  border-radius: 2px;
  background: var(--pop-card);
  box-shadow: var(--shadow);
  font-family: "Calluna Sans", Avenir, sans-serif;
}

.maplibregl-popup-close-button {
  width: 30px;
  height: 30px;
  color: var(--ink-soft);
  font-size: 22px;
}

.sheet-card h3 {
  margin: 0 28px 10px 0;
  font-size: 24px;
  line-height: 1.1;
}

.sheet-card .buttons {
  display: flex;
  gap: 8px;
}

.sheet-card .button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
}

.sheet-card .button small {
  color: var(--ink-soft);
  font-size: 15px;
}

/* the right-click card: the point marked with a dot, its latitude and longitude, and that they were copied */

.coord-popup .maplibregl-popup-content {
  padding: 8px 14px 9px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.coord-popup .maplibregl-popup-tip {
  border-top-color: var(--card);
}

.coord-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.coord-status {
  color: var(--ink-soft);
  font-size: 13px;
}

.coord-text {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  user-select: all;
  -webkit-user-select: all;
}

.coord-marker {
  width: 12px;
  height: 12px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.search-marker {
  width: 18px;
  height: 18px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

/* the map's bottom right: the coordinate readout over the credit line */
.map-foot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: calc(100% - var(--nav-w) - 160px); /* clear of the altitude */
  pointer-events: none;
}

/* latitude and longitude, as at the foot of Google Earth; the pointer passes through
   to the map */
.map-readout {
  display: flex;
  gap: 0.9em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(251, 248, 242, 0.75);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0.8;
}

/* the credit line, one line when there is room */
.map-credit {
  pointer-events: auto;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(251, 248, 242, 0.75);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.map-credit:hover {
  opacity: 1;
}

.map-credit a {
  color: inherit;
}

/* over the aerial: white type, no backing (Joel, 2026-10-05); the street map keeps the cream */
.map-foot.on-imagery .map-readout,
.map-foot.on-imagery .map-credit {
  background: none;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.map-foot.on-imagery .credit-logo {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* the camera's height above the ground, at the bottom left, styled as MapLibre's scale bar was */
#map .maplibregl-ctrl.map-alt {
  margin: 0 0 6px 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #000;
  font-family: "Calluna Sans", Avenir, sans-serif;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

/* the compass (CompassControl): a ring that turns with the map, its N on north, around a white
   disc of arrows (tilt and turn) and the camera (straight down); the buttons beneath are centred on it */

.maplibregl-ctrl-top-right .compass {
  position: relative;
  width: 72px;
  height: 72px;
  user-select: none;
  -webkit-user-select: none;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl:not(.compass) {
  margin-right: 31.5px; /* 10 px plus half of 72 less 29 */
}

.compass-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 250, 0.85);
  border-radius: 50%;
  background: rgba(251, 248, 242, 0.42);
  box-shadow: 0 1px 4px rgba(46, 39, 32, 0.22);
  cursor: grab;
  touch-action: none;
}

.compass-ring.is-turning {
  cursor: grabbing;
}

.compass-n {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--clay-dark);
  box-shadow: 0 1px 2px rgba(46, 39, 32, 0.3);
  color: #fff;
  cursor: pointer;
  font: 700 11px/18px Lato, sans-serif;
}

/* how hard the joystick pushes toward each arrow, 0 to 1, set by CompassControl */
@property --heat {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.compass-disc {
  isolation: isolate; /* the arrows' glow sits on the white */
  touch-action: none;
  cursor: grab;
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.compass-arrow,
.compass-cam {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #333;
  cursor: pointer;
}

.compass-arrow {
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--clay-dark) calc(var(--heat) * 100%), #333);
  transition: --heat 0.15s;
}

/* the heat: a warm glow behind the arrow the view is moving toward */
.compass-arrow::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(217 119 87 / 0.6), rgb(217 119 87 / 0));
  opacity: var(--heat);
}

.compass-arrow svg {
  width: 12px;
  height: 12px;
}

.compass-arrow.up { top: 0; left: 16px; }
.compass-arrow.right { top: 16px; right: 0; transform: rotate(90deg); }
.compass-arrow.down { bottom: 0; left: 16px; transform: rotate(180deg); }
.compass-arrow.left { top: 16px; left: 0; transform: rotate(-90deg); }

.compass-arrow[aria-disabled="true"] {
  opacity: 0.25;
  cursor: default;
}

.compass-cam {
  inset: 14px;
  border-radius: 50%;
  transition: translate 0.12s; /* the knob follows the joystick */
}

.compass-cam svg {
  width: 16px;
  height: 16px;
}

/* tilted: the camera takes the accent, a button to return straight down */
.compass-cam.is-tilted {
  color: var(--clay-dark);
}

@media (hover: hover) {
  .compass-arrow:not([aria-disabled="true"]):hover,
  .compass-cam:hover {
    color: var(--clay-dark);
  }
}

/* the + and − buttons, with their note to the left on hover */

.zoom-ctrl,
.tip-ctrl {
  position: relative;
}

.zoom-tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  padding: 4px 9px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--pop-card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: "Calluna Sans", Avenir, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity 0.12s, visibility 0s 0.12s;
}

@media (hover: hover) {
  .zoom-ctrl:hover .zoom-tip,
  .zoom-ctrl:has(:focus-visible) .zoom-tip,
  .tip-ctrl:hover .zoom-tip,
  .tip-ctrl:has(:focus-visible) .zoom-tip {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.12s 0.25s, visibility 0s 0.25s;
  }
}

/* the full-screen button beneath them: touch screens above the phone layout (the iPad) */

.fullscreen-ctrl {
  display: none;
}

@media (any-pointer: coarse) and (min-width: 821px) {
  .fullscreen-ctrl {
    display: block;
  }
}

/* drawn to the weight of MapLibre's + and − */
.fullscreen-ctrl .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M9 12.5V9h3.5M16.5 9H20v3.5M20 16.5V20h-3.5M12.5 20H9v-3.5' fill='none' stroke='%23333' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.fullscreen-ctrl .is-full .maplibregl-ctrl-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M9 12h3V9M17 9v3h3M20 17h-3v3M12 20v-3H9' fill='none' stroke='%23333' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* the copy-extent button: corner marks round a red centre (Joel's pick B, 2026-10-12) */
.extent-ctrl button {
  display: grid;
  place-items: center;
}

.extent-ctrl svg {
  width: 24px;
  height: 24px;
}

/* the camera (Joel, 2026-10-12): in the ruler's style and its button's width */
.camera-ctrl .camera-btn {
  display: grid;
  place-items: center;
  width: 46px;
}

.camera-btn svg {
  width: 34px;
  height: 24px;
  pointer-events: none;
}

/* pressed in, as the ruler while on, from the click until the picture is saved (item 11) */
.maplibregl-ctrl.camera-ctrl .camera-btn[aria-busy="true"] {
  background: var(--clay-pale);
  box-shadow: inset 0 0 0 2px var(--clay), inset 0 2px 4px rgba(46, 39, 32, 0.25);
  cursor: progress;
}

/* the ruler (js/ruler.js): a level ruler in a button half again as wide (Joel, 2026-10-12, 1.157), pressed in and
   ringed in clay while on, its card to the left */
.ruler-ctrl .ruler-btn {
  display: grid;
  place-items: center;
  width: 46px;
}

.ruler-btn svg {
  width: 40px;
  height: 16px;
  pointer-events: none;
}

.maplibregl-ctrl.ruler-ctrl .ruler-btn[aria-pressed="true"] {
  background: var(--clay-pale);
  box-shadow: inset 0 0 0 2px var(--clay), inset 0 2px 4px rgba(46, 39, 32, 0.25);
}

.ruler-ctrl.is-on .zoom-tip {
  display: none;
}

/* the field of view (Joel, 2026-10-14, 1.180): "FOV°" in the numbers button's type, pressed in and ringed in clay while
   its card is open; the card to the left, small with small type on an 80% ground (Joel's rule for every popup, site/CLAUDE.md):
   a slider from 15mm to 100mm with the normal 36mm marked in the middle (its label puts the lens back), the lens and its view
   angle read out at the top */
.lens-ctrl .lens-btn {
  width: auto;
  min-width: 46px;
  padding: 0 8px;
  color: #000;
  font: 700 13px/1 Lato, sans-serif;
  letter-spacing: 0.02em;
}

.maplibregl-ctrl.lens-ctrl .lens-btn[aria-expanded="true"] {
  background: var(--clay-pale);
  box-shadow: inset 0 0 0 2px var(--clay), inset 0 2px 4px rgba(46, 39, 32, 0.25);
}

.lens-ctrl.is-open .zoom-tip {
  display: none;
}

.lens-card {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 224px;
  max-width: calc(100vw - 112px);
  padding: 7px 10px 7px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--pop-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-family: "Calluna Sans", Avenir, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  cursor: default;
}

.lens-card[hidden],
.lens-note[hidden] {
  display: none;
}

.lens-head {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lens-head h3 {
  margin: 0;
  color: var(--clay-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.lens-head .info-dot {
  width: 18px;
  height: 18px;
}

.lens-head .info-dot svg {
  width: 14px;
  height: 14px;
}

.lens-out {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lens-x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.lens-x svg {
  width: 12px;
  height: 12px;
}

.lens-x:hover {
  color: var(--clay-dark);
}

.lens-track {
  position: relative;
}

.lens-track::before { /* the normal lens's mark, under the slider's middle */
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: var(--ink-soft);
}

.lens-slider {
  position: relative;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.lens-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: var(--hairline-strong);
}

.lens-slider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--hairline-strong);
}

.lens-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 1.5px solid var(--card);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 1px 3px rgba(46, 39, 32, 0.35);
  -webkit-appearance: none;
  appearance: none;
}

.lens-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--card);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 1px 3px rgba(46, 39, 32, 0.35);
}

.lens-slider:disabled {
  opacity: 0.4;
  cursor: default;
}

.lens-marks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  margin-top: -3px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.lens-marks > span:last-child {
  text-align: right;
}

.lens-normal {
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lens-normal:hover {
  color: var(--clay-dark);
}

.lens-ctrl.is-held .lens-normal {
  color: var(--ink-soft);
  cursor: default;
}

.lens-note {
  margin: 2px 0 0;
  color: var(--clay-dark);
}

/* the rotation (Joel, 2026-10-15): two arrows chasing round a circle in the ruler's yellow and black, in the FOV button's
   width, pressed in and ringed in clay while its card is open; the card, as the Field of View card's, holds QGIS's
   Rotation box: the figure, its degree sign and two stepping arrows */
.rotation-ctrl .rotation-btn {
  display: grid;
  place-items: center;
  width: 46px;
  touch-action: manipulation; /* a double tap turns the map (app.js), never zooms the page */
}

.rotation-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.maplibregl-ctrl.rotation-ctrl .rotation-btn[aria-expanded="true"] {
  background: var(--clay-pale);
  box-shadow: inset 0 0 0 2px var(--clay), inset 0 2px 4px rgba(46, 39, 32, 0.25);
}

.rotation-ctrl.is-open .zoom-tip {
  display: none;
}

.rotation-card {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  display: flex;
  align-items: center;
  gap: 4px;
  width: 224px;
  max-width: calc(100vw - 112px);
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--pop-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-family: "Calluna Sans", Avenir, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  cursor: default;
}

.rotation-card[hidden] {
  display: none;
}

.rotation-card h3 {
  margin: 0;
  color: var(--clay-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.rotation-card .info-dot {
  width: 18px;
  height: 18px;
}

.rotation-card .info-dot svg {
  width: 14px;
  height: 14px;
}

/* QGIS's spin box: a white field, the figure right-aligned before its degree sign, the arrows stacked at its end */
.rotation-field {
  display: flex;
  align-items: stretch;
  height: 24px;
  margin-left: auto;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: #fff;
}

.rotation-field:focus-within {
  border-color: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
}

.maplibregl-ctrl .rotation-input {
  width: 50px;
  padding: 0 1px 0 4px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 13px/1 "Calluna Sans", Avenir, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.rotation-unit {
  align-self: center;
  padding-right: 4px;
  font-size: 13px;
}

.rotation-steps {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hairline);
}

.maplibregl-ctrl .rotation-steps button {
  display: grid;
  place-items: center;
  flex: 1;
  width: 16px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  touch-action: manipulation;
}

.maplibregl-ctrl .rotation-steps button + button {
  border-top: 1px solid var(--hairline);
}

.rotation-steps svg {
  width: 9px;
  height: 9px;
}

.rotation-steps button[data-step="-1"] svg {
  transform: rotate(180deg);
}

.maplibregl-ctrl .rotation-steps button:active {
  background: var(--clay-pale);
  color: var(--clay-dark);
}

/* the street numbers button: Joel's plate as the button itself, "Pre-1925" on aged paper over "Post-1925" on the ruler's
   yellow in 13 px Lato Bold (1.157; a 22 px picture of it until then); its (i) to the left on a white disc; pressed in
   and ringed in clay while the address card shows, as the ruler */
.numbers-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.numbers-ctrl .info-dot {
  background: var(--card);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.maplibregl-ctrl.numbers-ctrl .maplibregl-ctrl-group {
  background: none;
}

.maplibregl-ctrl.numbers-ctrl .numbers-btn {
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid #000;
  border-radius: 4px;
  color: #000;
  font: 700 13px/1 Lato, sans-serif;
  letter-spacing: 0.01em;
}

.numbers-btn span {
  padding: 3px 7px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.numbers-btn .pre {
  border-bottom: 1.5px solid #000;
  background: #e3b27a;
}

.numbers-btn .post {
  background: #f8d95c;
}

@media (hover: hover) {
  .numbers-btn:hover span {
    filter: brightness(0.95);
  }
}

.maplibregl-ctrl.numbers-ctrl .numbers-btn[aria-pressed="true"] {
  border-color: var(--clay);
  box-shadow: 0 0 0 1.5px var(--clay);
}

.numbers-btn[aria-pressed="true"] span {
  box-shadow: inset 0 2px 4px rgba(46, 39, 32, 0.3);
}

/* 10 px clear of the street numbers plate and its (i) below the ruler, 105 px wide against the ruler's 46 (2026-10-13;
   10 px from the ruler until then, which put the card's right edge under the plate) */
.ruler-card {
  position: absolute;
  top: 0;
  right: calc(100% + 69px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 224px;
  max-width: calc(100vw - 155px);
  padding: 7px 10px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--pop-card); /* --card at 80% (Joel, 2026-10-12, 1.151) */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-family: "Calluna Sans", Avenir, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  cursor: default;
}

.ruler-card[hidden],
.ruler-row[hidden] {
  display: none;
}

.ruler-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ruler-head h3 {
  margin: 0;
  color: var(--clay-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.maplibregl-ctrl .ruler-card .ruler-x {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -4px -5px -4px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.ruler-x svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .maplibregl-ctrl .ruler-card .ruler-x:hover {
    color: var(--clay-dark);
  }
}

.ruler-card .segmented {
  display: grid;
  height: 28px;
  background: none;
}

.maplibregl-ctrl .ruler-card .segmented button {
  width: auto;
  height: auto;
  padding: 0 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.ruler-card .segmented button { /* small, as every popup (Joel, 2026-10-14, 1.180) */
  padding: 0 4px;
  font-size: 11.5px;
}

.ruler-card .ruler-units {
  grid-template-columns: 1fr 1fr 1.3fr 1fr; /* room for "Kilometers" */
}

.maplibregl-ctrl .ruler-card .segmented button[aria-pressed="true"] {
  background: var(--clay-pale);
  color: var(--clay-dark);
}

.ruler-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.ruler-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ruler-row > span {
  color: var(--ink-soft);
}

.ruler-length {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ruler-heading {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.maplibregl-ctrl .ruler-card .ruler-clear {
  width: 100%;
  height: auto;
  min-height: 32px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.maplibregl-ctrl .ruler-card .ruler-clear:not(:disabled):hover {
  background-color: #e28361; /* .button.primary's, over MapLibre's grey */
}

.maplibregl-ctrl .ruler-card .ruler-clear:disabled {
  opacity: 0.4;
  cursor: default;
}

/* the measure on each map, drawn over the map and under its buttons; only its points take the pointer */
.ruler-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ruler-grab {
  pointer-events: all;
  cursor: move;
  touch-action: none;
}

.ruler-on .maplibregl-canvas {
  cursor: crosshair !important;
}

/* Touch screens (2026-10-13): no target under 29 px among the map's buttons and their cards. A clear ring round the
   small ones (the street numbers (i), the ruler card's x, Center Map) widens what a finger may hit without changing
   their look; the ruler card's Line/Path and unit rows grow 4 px. */
@media (any-pointer: coarse) {
  .numbers-ctrl .info-dot,
  .maplibregl-ctrl .ruler-card .ruler-x,
  .zoom-link {
    position: relative;
  }

  .numbers-ctrl .info-dot::after,
  .maplibregl-ctrl .ruler-card .ruler-x::after,
  .zoom-link::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
  }

  .zoom-link::after {
    inset: 0 -5px -7px; /* Center Map's: none over the map's name just above it, 7 px down into its own row */
    border-radius: 2px;
  }

  .ruler-card .segmented {
    height: 32px;
  }

  /* the Field of View card's x and its 36mm (2026-10-14): the 36mm's ring reaches 2 px up, short of the slider's thumb,
     and 12 px down into the card's foot, 5 px deeper on touch */
  .lens-ctrl .lens-x,
  .lens-ctrl .lens-normal {
    position: relative;
  }

  .lens-ctrl .lens-x::after,
  .lens-ctrl .lens-normal::after {
    content: "";
    position: absolute;
    inset: -7px -5px -2px -6px; /* the x: up to the card's border, none under the slider below it */
    border-radius: 50%;
  }

  .lens-ctrl .lens-normal::after {
    inset: -2px -6px -12px;
    border-radius: 2px;
  }

  .lens-card {
    padding-bottom: 12px;
  }

  /* the Rotation card on touch (2026-10-15): its x ringed as the Field of View card's, the box on a row of its own with
     its arrows side by side, each 36 x 32 px */
  .rotation-ctrl .lens-x {
    position: relative;
    margin-left: auto;
  }

  .rotation-ctrl .lens-x::after {
    content: "";
    position: absolute;
    inset: -6px -6px -4px;
    border-radius: 50%;
  }

  .rotation-card {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .rotation-field {
    order: 1;
    flex-basis: 100%;
    height: 32px;
    margin-left: 0;
  }

  .maplibregl-ctrl .rotation-input {
    flex: 1;
    font-size: 16px; /* 16 px or more, or iPhone Safari zooms the page into the box */
  }

  .rotation-unit {
    font-size: 16px;
  }

  .rotation-steps {
    flex-direction: row-reverse;
  }

  .maplibregl-ctrl .rotation-steps button {
    width: 36px;
  }

  .maplibregl-ctrl .rotation-steps button + button {
    border-top: 0;
    border-right: 1px solid var(--hairline);
  }

  .rotation-steps svg {
    width: 12px;
    height: 12px;
  }
}

/* two rows of units where four across no longer fit "Kilometers" (the card narrows to clear the buttons on phones) */
@media (max-width: 404px) {
  .ruler-card .ruler-units {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
    height: auto;
  }

  .maplibregl-ctrl .ruler-card .ruler-units button {
    min-height: 32px;
    border-bottom: 1px solid var(--hairline);
  }
}

/* info dots */

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: help;
  vertical-align: middle;
}

.info-dot:hover,
.info-dot[aria-expanded="true"] {
  color: var(--clay-dark);
}

.info-dot svg {
  width: 16px;
  height: 16px;
}

.info-pop { /* every popup: small, small type, an 80% ground (Joel, 2026-10-14, 1.180) */
  position: fixed;
  z-index: 100;
  max-width: 300px;
  padding: 8px 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--pop-card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: "Calluna Sans", Avenir, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.info-pop.one-line {
  width: max-content;
  max-width: calc(100vw - 16px);
}

/* ---------- phones ---------- */

.panel-toggle {
  display: none;
}

@media (max-width: 820px) {
  /* the button stack 8 px apart (10 above 820 px): with the Rotation button (1.210) its foot cleared a 375 x 667 iPhone's
     coordinate readout by 11 px, where at 10 px it ran 9 px into it */
  .maplibregl-ctrl-top-right .maplibregl-ctrl + .maplibregl-ctrl {
    margin-top: 8px;
  }

  .site-header {
    padding-left: 16px; /* the sheet title's edge */
  }

  .map-shell,
  .map-shell.nav-hidden {
    --nav-w: 0px;
  }

  .panel-hide {
    display: none;
  }

  .panel {
    top: auto;
    right: 0;
    width: auto;
    padding-top: 0;
    max-height: 62%;
    border-top: 1px solid var(--hairline-strong);
    border-right: 0;
    box-shadow: 0 -8px 24px rgba(46, 39, 32, 0.14);
    transform: translateY(calc(100% - 56px));
    transition: transform 0.22s ease;
  }

  .panel.is-open {
    transform: none;
  }

  .panel-toggle svg {
    transition: transform 0.22s ease;
  }

  .panel.is-open .panel-toggle svg {
    transform: rotate(180deg);
  }

  .panel-toggle {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    background: var(--paper-light);
    cursor: pointer;
    color: var(--clay-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
  }

  .panel-toggle > span { /* the site's name on one line, shrunk to fit by js/app.js fitName where the button is too narrow */
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .panel h1 {
    display: none;
  }

  /* the open sheet's bar: the city dropdown takes the place of the bar's own title (the closed bar keeps its title) */
  .panel.is-open .panel-toggle > span {
    visibility: hidden;
  }

  .panel.is-open .city-pick {
    position: absolute;
    top: 0;
    left: 16px;
    right: 56px; /* clear of the bar's arrow */
    z-index: 2;
  }

  .panel.is-open h1 {
    display: flex;
    align-items: center;
    height: 56px;
    margin: 0;
    font-size: 26px;
    line-height: 1;
  }

  .panel-body {
    display: block; /* on a phone the whole sheet scrolls */
    overflow-y: auto;
  }

  .panel-fixed {
    max-height: none;
    overflow: visible;
    padding: 14px 16px 0;
  }

  .panel-scroll {
    --gutter: 16px;
    overflow: visible;
    padding: 0 var(--gutter) 14px;
  }

  .map-foot {
    bottom: 62px; /* above the closed panel */
    max-width: calc(100% - 92px); /* clear of the altitude */
  }

  #map .maplibregl-ctrl-bottom-left {
    bottom: 56px; /* the altitude, above the closed panel */
  }

  .map-notice {
    top: 10px;
    max-width: calc(100% - 24px);
    font-size: 15px;
    white-space: normal;
  }

  /* a moment's confirmation: centred on the map left of the compass and the buttons beneath it, wrapping (2026-10-13;
     across them until then) */
  .map-notice.flash-notice {
    right: 92px;
    max-width: calc(100% - 116px);
  }
}

/* the satellite source's mark at the head of its credit (Esri's words, Google's or MapTiler's logo) */
.credit-mark {
  font-weight: 700;
}

.credit-logo {
  height: 16px;
  width: auto;
  vertical-align: -3px;
}

.credit-logo.google {
  margin: 0 10px; /* Google's required clear space beside its logo */
}

/* Picture mode (?shot=1): the map alone, for the link preview picture the preview Worker takes
   (workers/atlas-preview; docs/diagrams/link-previews.mmd). The comparison's dividing line stays. */
.shot .site-header,
.shot .panel,
.shot .panel-hide,
.shot .maplibregl-control-container,
.shot .map-foot,
.shot .map-notice,
.shot .side-tag,
.shot .divider-handle {
  display: none !important;
}

/* ---------- first-visit guide (roadmap item 5, 1.204) ---------- */

/* The "?" at the foot of the button stack: Center Map's 18 px weight in the stack's 29 px button, a pale clay square on
   hover and while the guide is open */
.guide-ctrl .guide-btn {
  display: grid;
  place-items: center;
}

.guide-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.maplibregl-ctrl.guide-ctrl .guide-btn[aria-expanded="true"] {
  background: var(--clay-pale);
}

@media (hover: hover) {
  .maplibregl-ctrl.guide-ctrl .guide-btn:hover {
    background: var(--clay-pale);
  }
}

/* the street numbers plate's note shows on the plate's hover only; its (i) has its own */
.numbers-ctrl {
  position: relative;
}

.numbers-ctrl .zoom-tip {
  right: calc(100% + 8px);
}

@media (hover: hover) {
  .numbers-ctrl:has(.numbers-btn:hover) .zoom-tip,
  .numbers-ctrl:has(.numbers-btn:focus-visible) .zoom-tip {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.12s 0.25s, visibility 0s 0.25s;
  }
}

/* One card over the map below the top bar, on the panel's paper at 95% under a clay rule, in the panel's type: rows of
   a picture, a name and one sentence. Desktop and iPad: two columns on one screen, the panel's controls and the map's
   gestures on the left, the stack on the right (each picture a copy of the live control); its rows are spaced tightly
   enough to stay one screen on laptop windows down to 1366 x 650 (review fix). Phones: one column above the closed
   sheet, scrolling inside the card; the page never scrolls. Wherever the rows do not fit, the foot of the rows fades and
   "More below" sits over it until they are scrolled to the end (.has-more, set in js/app.js). */
.guide {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 15; /* over the panel (10) and its tab (12), under the top bar (20) */
  display: flex;
  flex-direction: column;
  width: min(880px, calc(100% - 32px));
  max-height: calc(100% - 16px);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: rgba(244, 239, 230, 0.95); /* --paper at 95% */
  -webkit-backdrop-filter: blur(6px); /* what shows through (the panel's words where the card covers it) stays out of the way */
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translate(-50%, -50%);
}

.guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  gap: 0 32px;
  min-height: 0;
  padding: 14px 24px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* rows below the card's foot: the last 36 px fade, and "More below" sits on the foot's rule at the text's left edge */
.guide.has-more .guide-body {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}

.guide.has-more .guide-foot::before {
  content: "More below \2193";
  position: absolute;
  top: 0;
  left: 24px;
  padding: 1px 12px 2px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--clay-dark);
  font-size: 15px;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

.guide-panel,
.guide-map {
  grid-column: 1;
}

.guide-stack {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.guide-group h3 {
  margin: 8px 0 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.1;
}

.guide-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 31px;
  padding: 1px 0;
}

.guide-row.no-pic {
  grid-template-columns: minmax(0, 1fr);
}

.guide-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.guide-row b {
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.guide-pic {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the panel's own pieces, drawn small */
.guide-field {
  width: 88px;
  padding: 4px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 14px;
}

.guide-label {
  color: var(--ink-soft);
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.guide-dl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--clay);
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-dl svg {
  width: 11px;
  height: 11px;
}

.guide-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* the stack's controls, copied: out of the map's corner they keep their look but not its margins */
.guide-pic .maplibregl-ctrl {
  margin: 0;
  float: none;
}

.guide-pic .compass {
  position: relative;
  width: 72px;
  height: 72px;
  zoom: 0.6;
}

.guide-pic .zoom-ctrl {
  zoom: 0.8;
}

.guide-foot {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px 24px 12px;
  border-top: 1px solid var(--hairline);
}

.guide-hint {
  margin: 0 auto 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.guide-ok {
  min-width: 96px;
}

/* where it fits, between the panel and the button stack, so both show beside it: 146 px keeps it clear of the street
   numbers plate's (i), the stack's widest part (item 5 review finding 6: 82 px, the compass alone, overlapped it 11 px) */
@media (min-width: 1400px) {
  .guide {
    left: calc((var(--nav-w) + 100% - 146px) / 2);
    width: min(880px, calc(100% - var(--nav-w) - 146px - 16px));
  }
}

@media (max-width: 820px) {
  /* above the closed sheet's bar, which the panel rows point to */
  .guide {
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    max-height: calc(100% - 56px - 16px);
    transform: none;
  }

  /* phones keep the looser spacing: they scroll inside the card at every size */
  .guide-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 16px 6px;
  }

  .guide-stack {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-group h3 {
    margin: 12px 0 4px;
  }

  .guide-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
    min-height: 33px;
    padding: 3px 0;
  }

  .guide-row p {
    line-height: 1.3;
  }

  .guide-foot {
    padding: 10px 16px 14px;
  }

  .guide.has-more .guide-foot::before {
    left: 16px;
  }
}

/* a phone held sideways: two columns, the stack on the right, as on the iPad, tighter (item 5 review finding 7: one
   column showed two rows of 21) */
@media (max-width: 820px) and (max-height: 500px) and (orientation: landscape) {
  .guide-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 20px;
  }

  .guide-stack {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .guide-group h3 {
    margin: 6px 0 2px;
    font-size: 18px;
  }

  .guide-row {
    min-height: 29px;
    padding: 1px 0;
  }

  .guide-row p {
    line-height: 1.2;
  }

  .guide-foot {
    padding: 6px 16px 8px;
  }
}
