/* The Realm, the public map and property registry at /realm (aurbis repo,
 * docs/specs/realm_territory_v0.md section 12). Colours and type are the
 * site tokens (tokens.css): ink slate chrome, frost text, cold gold for
 * selection. The one loud thing is the place card, a paper registry entry.
 * Loaded only by sites/templates/pages/realm.html, so the body rules below
 * shape this page alone: the Annals bar on top, the map filling the rest. */

:root {
  --realm-label: #EDE3C8;
  --realm-ink-open: #3F5A1E;
  --realm-ink-war: var(--wax-red);
  --realm-war: #C2412E;
  --realm-halo: 0 0 2px var(--ink-slate), 0 0 6px rgba(20, 24, 28, 0.95), 0 1px 2px var(--ink-slate);
  --realm-gap: 14px;
  --realm-ledger-w: 384px;
  --realm-card-w: 440px;
  --realm-seal: 42px;
  --realm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.a-page {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* z-index 0 makes the page its own stacking context, so Leaflet's panes and
   controls (z-index 400 to 1000) and the ledger and card stay under the
   Annals bar (z-index 50) and its Server Status and menu dropdowns. */
.realm {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  font-family: var(--font-clean-body);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: normal;
  color: var(--frost-text);
}
.realm button, .realm input { font: inherit; color: inherit; }
.realm button { cursor: pointer; }
.realm :focus-visible { outline: 2px solid var(--cold-gold-hi); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------ map */
/* #1f1f1f is the colour the atlas pads its edge tiles with. */
.map { position: absolute; inset: 0; background: #1f1f1f; }
.leaflet-container { background: #1f1f1f; font-family: var(--font-clean-body); }
.leaflet-container a { color: inherit; }
/* Fractional zoom leaves hairline gaps between tiles; half a pixel of
   overlap closes them. Leaflet blends tiles with plus-lighter, which would
   brighten the overlap, and these tiles are opaque, so blend normally. */
.leaflet-container img.leaflet-tile {
  width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal;
}
.leaflet-control-zoom {
  border: 1px solid var(--iron-rule) !important; border-radius: 4px !important; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}
.leaflet-control-zoom a {
  width: 44px !important; height: 44px !important; line-height: 42px !important;
  background: var(--ink-panel) !important; color: var(--frost-text) !important;
  border-bottom-color: var(--iron-rule) !important; font-size: 24px !important;
}
.leaflet-control-zoom a:hover { background: var(--ink-panel-hi) !important; }
/* A clicked region must not wear the browser's focus box. */
.leaflet-container path.leaflet-interactive:focus { outline: none; }
.realm .realm-home {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  background: var(--ink-panel); color: var(--frost-text); border: 1px solid var(--iron-rule); border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); font-size: 16px; font-weight: 600; cursor: pointer;
}
.realm .realm-home svg { width: 20px; height: 20px; color: var(--cold-gold-hi); }
.realm .realm-home:hover { background: var(--ink-panel-hi); border-color: var(--cold-gold); }
.realm.has-card .leaflet-right .realm-home { margin-right: calc(var(--realm-card-w) + var(--realm-gap) * 2); }
.leaflet-control-attribution {
  background: rgba(20, 24, 28, 0.78) !important; color: var(--frost-text-fade) !important;
  font-size: 12px !important;
}
.leaflet-control-attribution a { color: var(--frost-text-dim) !important; }
.leaflet-right .leaflet-control { margin-right: var(--realm-gap); transition: margin-right 200ms var(--realm-ease); }
.leaflet-bottom .leaflet-control { margin-bottom: var(--realm-gap); }
/* With a card open, the zoom buttons step left of it. */
.realm.has-card .leaflet-right .leaflet-control-zoom { margin-right: calc(var(--realm-card-w) + var(--realm-gap) * 2); }

/* Hold names: spaced capitals over the land, the way Skyrim's own map
   labels its holds. Size follows the zoom (data-detail on the map). */
.lbl-hold {
  font-family: var(--font-display); font-weight: 700; color: var(--realm-label);
  letter-spacing: 0.22em; text-shadow: var(--realm-halo);
  white-space: nowrap; transform: translate(-50%, -50%); width: max-content;
  pointer-events: none; font-size: 21px; transition: opacity 160ms;
}
[data-detail="1"] .lbl-hold { font-size: 25px; }
[data-detail="2"] .lbl-hold, [data-detail="3"] .lbl-hold { font-size: 28px; opacity: 0.85; }
[data-detail="4"] .lbl-hold, [data-detail="5"] .lbl-hold { font-size: 30px; opacity: 0.5; }

/* Pins: a seal in the holder's or the category's colour, with its name
   beside it. Which categories show names at which zoom is below. */
.seal-icon { background: transparent !important; border: 0 !important; }
.pin {
  display: flex; align-items: center; gap: 8px; width: max-content;
  transform: translate(calc(var(--realm-seal) / -2), -50%);
  background: none; border: 0; padding: 0;
}
.seal {
  --c: #B9B29C; --g: #1E1711;
  display: grid; place-items: center; flex: none;
  width: var(--realm-seal); height: var(--realm-seal);
  border-radius: 50%; border: 2.5px solid var(--ink-slate); background: var(--c); color: var(--g);
  box-shadow: 0 0 0 2px rgba(237, 227, 200, 0.92), 0 4px 10px rgba(0, 0, 0, 0.55);
  transition: transform 140ms var(--realm-ease), box-shadow 140ms;
}
.seal svg { width: 23px; height: 23px; }
.pin:hover .seal { transform: scale(1.1); }
.pin.is-selected .seal { box-shadow: 0 0 0 4px var(--cold-gold-hi), 0 4px 12px rgba(0, 0, 0, 0.6); }
.pin.is-war .seal { box-shadow: 0 0 0 3px var(--realm-war), 0 0 0 5px rgba(237, 227, 200, 0.85), 0 4px 10px rgba(0, 0, 0, 0.55); }
.pin.is-war.is-selected .seal { box-shadow: 0 0 0 3px var(--realm-war), 0 0 0 6px var(--cold-gold-hi), 0 4px 12px rgba(0, 0, 0, 0.6); }
.pin.is-closed .seal { filter: saturate(0.35) brightness(0.8); }
.pin.is-group .seal { width: 48px; height: 48px; font-family: var(--font-clean-body); font-weight: 700; font-size: 20px; }
.pin-label {
  display: none; font-size: 17px; font-weight: 600; color: var(--frost-text);
  text-shadow: var(--realm-halo); white-space: nowrap;
}
.pin.is-selected .pin-label, .pin:hover .pin-label { display: inline; color: var(--cold-gold-hi); }
/* Few pins: always named. Forts, towns and businesses: from detail 1.
   Places (dense inside the cities): from detail 2. Holds carry their names
   on the land already. */
.map.cat-markets .pin-label, .map.cat-banks .pin-label, .map.cat-arenas .pin-label { display: inline; }
.map.cat-forts:not([data-detail="0"]) .pin-label,
.map.cat-towns:not([data-detail="0"]) .pin-label,
.map.cat-business:not([data-detail="0"]) .pin-label { display: inline; }
.map.cat-places:not([data-detail="0"]):not([data-detail="1"]) .pin-label { display: inline; }
.map.cat-holds .pin-label { display: none; }
/* Inside a hold every pin is named: that is the point of going in. The
   holds' own crowns stay unnamed; their names are on the land. */
.map.in-hold:not(.cat-holds) .pin-label { display: inline; }
.pin-label.is-tucked { visibility: hidden; }
.pin:hover .pin-label.is-tucked, .pin:focus-visible .pin-label.is-tucked { visibility: visible; }
.lbl-hold.is-dim { opacity: 0.35; }

/* Region tooltips: the hold or the domain under the pointer. */
.leaflet-tooltip.realm-tip {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
  background: var(--ink-panel); color: var(--frost-text); border: 1px solid var(--iron-rule-hi); border-radius: 5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); font-family: var(--font-clean-body); font-size: 16px; white-space: nowrap;
}
.leaflet-tooltip.realm-tip strong { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; color: var(--realm-label); }
.leaflet-tooltip.realm-tip span { color: var(--frost-text-dim); }
.leaflet-tooltip-top.realm-tip::before { border-top-color: var(--iron-rule-hi); }

/* ------------------------------------------------------------------ ledger */
.ledger {
  position: absolute; z-index: 800;
  top: var(--realm-gap); left: var(--realm-gap); bottom: var(--realm-gap); width: var(--realm-ledger-w);
  display: flex; flex-direction: column;
  background: rgba(28, 34, 40, 0.95); border: 1px solid var(--iron-rule); border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@supports (backdrop-filter: blur(6px)) {
  .ledger { background: rgba(28, 34, 40, 0.9); backdrop-filter: blur(6px); }
}
.ledger-head { position: relative; padding: 16px 16px 12px; }
/* The X that closes the level you are in (a hold, a city). */
.level-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-slate); border: 1px solid var(--iron-rule-hi); color: var(--frost-text);
  font-size: 26px; line-height: 1;
}
.level-close:hover { border-color: var(--cold-gold-hi); color: var(--cold-gold-hi); }
.level-close[hidden] { display: none; }
.ledger-head h1, .crumb { padding-right: 44px; }
.ledger-head h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: 27px; letter-spacing: 0.08em; color: var(--cold-gold-hi);
}
.ledger-sub { margin: 4px 0 12px; color: var(--frost-text-dim); font-size: 17px; line-height: 1.35; }
/* Where you are: Skyrim, a hold, a place. Every step back is a button. */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 6px; font-size: 18px; }
.crumb button {
  padding: 2px 4px; background: none; border: 0; border-radius: 3px;
  color: var(--cold-gold-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 162, 74, 0.45);
}
.crumb button:hover { color: var(--realm-label); text-decoration-color: currentColor; }
.crumb [aria-current="page"] { color: var(--realm-label); text-decoration: none; font-weight: 600; cursor: default; }
.crumb-sep { color: var(--frost-text-fade); }
.hold-facts { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0; font-size: 17px; color: var(--frost-text); }
.hold-facts[hidden] { display: none; }
.hold-facts .link {
  padding: 0; background: none; border: 0; color: var(--cold-gold-hi); font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 162, 74, 0.45);
}
.cats.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger-search input {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--ink-slate); border: 1px solid var(--iron-rule); border-radius: 4px;
  color: var(--frost-text); font-size: 17px;
}
.ledger-search input::placeholder { color: var(--frost-text-fade); }
.ledger-search input:focus { border-color: var(--cold-gold); outline: none; }

/* The categories: what the map shows. */
.cats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 0 12px 12px; border-bottom: 1px solid var(--iron-rule);
}
.cats button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 8px; border-radius: 5px;
  background: rgba(20, 24, 28, 0.55); border: 1px solid var(--iron-rule); color: var(--frost-text-dim);
}
.cats button svg { width: 24px; height: 24px; }
.cats .cat-label { font-size: 14.5px; font-weight: 600; line-height: 1.1; }
.cats button:hover { border-color: var(--iron-rule-hi); color: var(--frost-text); }
.cats button[aria-selected="true"] { background: var(--cold-gold-hi); border-color: var(--cold-gold-hi); color: var(--sepia-ink-hi); }

.chips { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 6px; }
.chips[hidden] { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row--holder { padding-top: 6px; border-top: 1px dashed rgba(82, 89, 100, 0.6); }
.chips button {
  height: 36px; padding: 0 13px; border-radius: 18px;
  background: transparent; border: 1px solid var(--iron-rule-hi); color: var(--frost-text-dim); font-size: 16px;
}
.chips button[aria-pressed="true"] { background: var(--frost-text); border-color: var(--frost-text); color: var(--ink-slate); }
.chips button .n { opacity: 0.7; margin-left: 5px; font-variant-numeric: tabular-nums; }
.ledger-list { flex: 1; overflow-y: auto; padding: 4px 0 12px; overscroll-behavior: contain; }
.ledger-group {
  margin: 16px 16px 6px; font-family: var(--font-decorative, "IM Fell English", serif); font-size: 20px;
  color: var(--realm-label); font-weight: normal; letter-spacing: normal;
}
.ledger-note { margin: 12px 16px; color: var(--frost-text-dim); font-size: 17px; }
.row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1px 12px; align-items: center;
  width: 100%; padding: 8px 16px; text-align: left;
  background: none; border: 0; border-left: 3px solid transparent;
}
.row:hover { background: var(--ink-panel-hi); }
.row.is-selected { background: var(--ink-panel-hi); border-left-color: var(--cold-gold-hi); }
.row-seal {
  grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c, #B9B29C); color: var(--g, #1E1711);
  box-shadow: 0 0 0 1.5px rgba(237, 227, 200, 0.7);
}
.row.is-war .row-seal { box-shadow: 0 0 0 2.5px var(--realm-war); }
.row-seal svg { width: 19px; height: 19px; }
.row-name { font-size: 18px; color: var(--frost-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { grid-column: 2; font-size: 16px; color: var(--frost-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-toggle { display: none; }

/* ------------------------------------------------------------------ card */
.card {
  position: absolute; z-index: 850;
  top: var(--realm-gap); right: var(--realm-gap); width: var(--realm-card-w);
  max-height: calc(100% - var(--realm-gap) * 2); overflow-y: auto;
  background: var(--paper-cream); color: var(--sepia-ink); border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--paper-edge);
  animation: realm-card-in 220ms var(--realm-ease);
  overscroll-behavior: contain;
}
.card[hidden] { display: none; }
@keyframes realm-card-in { from { opacity: 0; transform: translateX(16px); } }
.card-frame { position: relative; padding: 18px 22px 22px; }
.card-frame::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(95, 76, 52, 0.35); border-radius: 3px;
}
.card-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(232, 220, 192, 0.92); color: var(--sepia-ink); font-size: 26px; line-height: 1;
}
.card-close:hover { background: var(--paper-warm); }
.plate {
  position: relative; margin: 0 0 16px; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid rgba(59, 42, 28, 0.55); border-radius: 2px; background: var(--paper-warm);
}
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate-blank {
  display: grid; place-items: center; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(59, 42, 28, 0.06) 0 2px, transparent 2px 9px),
    var(--paper-warm);
  color: rgba(59, 42, 28, 0.42);
}
.plate-blank svg { width: 70px; height: 70px; }
.card h2 {
  margin: 0; padding-right: 40px; font-family: var(--font-decorative, "IM Fell English", serif); font-weight: normal;
  font-size: 34px; line-height: 1.08; letter-spacing: normal; color: var(--sepia-ink-hi);
}
.card-kicker { margin: 6px 0 0; font-style: italic; font-size: 19px; color: var(--sepia-ink-fade); }
.holder {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 0;
  padding: 10px 12px; border-radius: 4px; background: rgba(59, 42, 28, 0.07);
  font-size: 19px; color: var(--sepia-ink-hi);
}
.holder-seal {
  width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--c, #B9B29C);
  box-shadow: 0 0 0 2px var(--paper-cream), 0 0 0 3px rgba(59, 42, 28, 0.6);
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.badge {
  display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: 15px;
  border: 1px solid currentColor; font-size: 16px; color: var(--sepia-ink-fade);
}
.badge.is-open { color: var(--realm-ink-open); font-weight: 600; }
.badge.is-war { color: var(--realm-ink-war); font-weight: 600; }
.badge.is-strong { color: var(--sepia-ink-hi); }
.facts {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px;
  margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(95, 76, 52, 0.3);
}
.facts dt { color: var(--sepia-ink-fade); font-size: 17px; }
.facts dd { margin: 0; font-size: 18px; color: var(--sepia-ink-hi); }
.card h3 {
  margin: 18px 0 6px; font-family: var(--font-decorative, "IM Fell English", serif); font-weight: normal;
  font-size: 22px; letter-spacing: normal; color: var(--sepia-ink-hi);
}
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 3px 0; font-size: 18px; }
.history time { color: var(--sepia-ink-fade); font-variant-numeric: tabular-nums; }
.card-list { list-style: none; margin: 0; padding: 0; }
.card-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; text-align: left;
  background: none; border: 0; color: var(--sepia-ink-hi); font-size: 18px;
}
.card-list button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.card-list i { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--c, #B9B29C); box-shadow: 0 0 0 1px rgba(59, 42, 28, 0.6); }
.card-note { margin: 16px 0 0; font-size: 17px; color: var(--sepia-ink-fade); }
.card-action {
  display: block; width: 100%; margin: 16px 0 0; padding: 11px 14px; border-radius: 4px;
  background: var(--sepia-ink-hi); border: 0; color: var(--paper-cream); font-size: 17px; font-weight: 600;
}
.card-action:hover { background: var(--sepia-ink); }
/* A city's way in, on the hold map. */
.realm .city-pin {
  display: flex; align-items: center; gap: 8px; transform: translate(-50%, -100%); width: max-content;
  padding: 7px 14px 7px 10px; border-radius: 20px; border: 2px solid var(--cold-gold-hi);
  background: var(--ink-panel); color: var(--frost-text); font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.realm .city-pin svg { width: 20px; height: 20px; color: var(--cold-gold-hi); }
.realm .city-pin:hover { background: var(--ink-panel-hi); }
.card .link {
  padding: 0; background: none; border: 0; color: var(--sepia-ink-hi); font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(59, 42, 28, 0.45);
}
.card .link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ legend */
.legend {
  position: absolute; z-index: 700; bottom: var(--realm-gap); left: calc(var(--realm-ledger-w) + var(--realm-gap) * 2);
  display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: calc(100% - var(--realm-ledger-w) - 160px);
  padding: 9px 14px; border-radius: 6px; background: rgba(20, 24, 28, 0.85);
  font-size: 16px; color: var(--frost-text-dim);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(237, 227, 200, 0.7); }
.legend i.sw-war { background: var(--realm-label); box-shadow: 0 0 0 2.5px var(--realm-war); }
.legend i.sw-closed { background: #74B8A8; filter: saturate(0.35) brightness(0.8); }
.legend:empty { display: none; }

.fail {
  position: absolute; z-index: 860; left: 50%; top: 24px; transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px)); padding: 12px 16px; border-radius: 6px;
  background: var(--ink-panel); border: 1px solid var(--iron-rule-hi); color: var(--frost-text); font-size: 17px;
}

/* ------------------------------------------------------------------ narrow */
@media (max-width: 1100px) {
  :root { --realm-ledger-w: 340px; --realm-card-w: 400px; }
}

@media (max-width: 720px) {
  :root { --realm-gap: 16px; --realm-seal: 38px; }
  .ledger-toggle {
    display: block; position: absolute; z-index: 820; top: 12px; left: 16px;
    height: 40px; padding: 0 16px; border-radius: 20px;
    background: var(--ink-panel); border: 1px solid var(--iron-rule-hi); color: var(--frost-text); font-size: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  }
  .ledger-toggle[aria-expanded="true"] { background: var(--cold-gold-hi); border-color: var(--cold-gold-hi); color: var(--sepia-ink-hi); }
  .map-back {
    position: absolute; z-index: 820; top: 12px; right: 16px; max-width: 55%;
    height: 40px; padding: 0 16px; border-radius: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: var(--ink-panel); border: 1px solid var(--iron-rule-hi); color: var(--frost-text); font-size: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  }
  .map-back[hidden] { display: none; }
  .ledger {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 66%;
    border-radius: 10px 10px 0 0; border-bottom: 0;
  }
  .ledger[data-open="false"] { display: none; }
  .ledger-head { padding: 14px 16px 10px; }
  .ledger-head h1 { font-size: 23px; }
  .cats { padding: 0 16px 10px; }
  .card {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%;
    border-radius: 10px 10px 0 0; animation-name: realm-card-up;
  }
  .card-frame { padding: 16px 16px 20px; }
  .card-frame::before { inset: 6px; }
  .card h2 { font-size: 29px; }
  .legend { display: none; }
  .lbl-hold { font-size: 14px; letter-spacing: 0.16em; }
  [data-detail="1"] .lbl-hold { font-size: 18px; }
  /* The card and list sheets cover the bottom of the map; pinch zoom stands in. */
  .realm.has-card .leaflet-control-zoom, .realm.has-card .leaflet-control-attribution, .realm.has-card .realm-home,
  .realm.has-ledger .leaflet-control-zoom, .realm.has-ledger .leaflet-control-attribution, .realm.has-ledger .realm-home { display: none; }
  @keyframes realm-card-up { from { opacity: 0; transform: translateY(24px); } }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .seal, .lbl-hold { transition: none; }
}
