/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --t-xs: 0.75rem;
  --ps-stone: #5a5851;
  --ps-font-mono: ui-monospace, 'IBM Plex Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  --ps-cartouche-gutter: 1rem;
  --ps-cartouche-w: 260px;
  --ps-desktop-sidebar-end: calc(var(--ps-cartouche-gutter) + var(--ps-cartouche-w));
  --s-5: 20px;
  --s-6: 24px;
  --r-md: 8px;
}

/* Icon control + visible label (viewer / contributor); label at design-token caption size */
.ps-icon-labeled {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1;
}
.ps-icon-labeled__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ps-icon-labeled__text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-xs);
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  max-width: 6.5rem;
}

body {
  /* Body text #0e0e0c on #ecead9 — contrast ratio ~13.4:1, WCAG AAA for normal body copy. */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #ecead9;
  color: #0e0e0c;
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Main stage: map + parallel list view (STU-37) ---- */
.main-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
}

.map-pane {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  z-index: 800;
  box-sizing: border-box;
  /* Room for fixed timeline strip (STU-48): 64px strip + mobile sheet handle reserve */
  padding-bottom: 64px;
}

.map-pane--muted {
  opacity: 0.38;
  pointer-events: none;
}

/* ---- STU-38 — place search (map vs photo-panel sheet) ---- */
.place-search-pool {
  display: none !important;
}

.place-search-mount--cartouche {
  display: none;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.6rem;
}

.place-search-mount--mobile {
  display: none;
  box-sizing: border-box;
  width: 100%;
  padding: 0 0.65rem 0.55rem;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .main-stage.view-mode-map .place-search-mount--cartouche {
    display: block;
  }
}

.main-stage.view-mode-list .place-search-mount--cartouche {
  display: none !important;
}

@media (min-width: 720px) {
  body:has(.main-stage.view-mode-list) .legend {
    display: none;
  }
}

@media (max-width: 719px) {
  .photo-panel.open.sheet-state-half .place-search-mount--mobile,
  .photo-panel.open.sheet-state-full .place-search-mount--mobile {
    display: block;
  }
}

.map-place-search.paper-card {
  background: var(--ps-paper, #f6f3ec);
  border: 1px solid var(--ps-ink, #0e0e0c);
  outline: 1px solid var(--ps-ink, #0e0e0c);
  outline-offset: -4px;
  box-shadow: 3px 5px 18px rgba(14, 14, 12, 0.28);
  padding: 0.55rem 0.65rem 0.5rem;
}

.map-place-search__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.map-place-search .pp-search-label {
  flex: 1;
  min-width: 0;
  display: block;
  margin: 0;
}

.map-place-search .pp-search {
  width: 100%;
}

.pp-search-count {
  flex-shrink: 0;
  font-family: ui-monospace, 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--ps-ink-muted, #5a5851);
  white-space: nowrap;
}

.pp-result__photos {
  display: block;
  font-family: ui-monospace, 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--ps-ink-muted, #5a5851);
  margin-top: 0.2rem;
}

.pp-result.pp-result--active {
  background: #ecead9;
  border-color: #5a5851;
}

.map-place-search .pp-result {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.map-place-search .pp-result__main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.map-place-search .pp-result__main .pp-result__name {
  flex: 1;
  min-width: 0;
}

/* ---- Map: full viewport ---- */
#map {
  width: 100%;
  height: 100%;
}

#map:focus-visible {
  outline: 2px solid #0e0e0c;
  outline-offset: 2px;
}

.leaflet-marker-icon.photo-pin:focus-visible {
  outline: 2px solid #0e0e0c;
  outline-offset: 2px;
}

.leaflet-marker-icon.photo-cluster-donut:focus-visible {
  outline: 2px solid #0e0e0c;
  outline-offset: 2px;
}

/* Live filter summary — visually hidden in map mode; bar above list in list mode */
.main-stage.view-mode-map #listViewStatus.lv-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-stage.view-mode-list #listViewStatus.lv-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 802;
  opacity: 1;
  padding: var(--s-5) var(--s-6) var(--s-4);
  margin: 0;
  font-family: var(--ps-font-ui);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ps-ink-2, #3a3a35);
  background: rgba(236, 234, 217, 0.97);
  border-bottom: 1px solid var(--ps-paper-edge, #dcd9c9);
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

.listview-card {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #ecead9;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.main-stage.view-mode-list .listview-card {
  bottom: 56px;
  z-index: 801;
  opacity: 1;
}

@media (min-width: 720px) {
  .main-stage.view-mode-list .listview-card,
  .main-stage.view-mode-list #listViewStatus.lv-status {
    left: var(--ps-desktop-sidebar-end);
    width: calc(100% - var(--ps-desktop-sidebar-end));
    right: 0;
  }
}

@media (max-width: 719px) {
  .main-stage.view-mode-list .listview-card {
    bottom: calc(88px + 64px + env(safe-area-inset-bottom, 0px));
  }
}

.listview-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top: 2.65rem;
}

.listview-items {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.listview-item {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #dcd9c9;
  background: #f6f3ec;
}

.lv-thumb-col {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #e4e1d4;
}

.lv-thumb-col .lv-thumb-blurhash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lv-thumb-col picture,
.lv-thumb-col img.lv-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lv-thumb-col img.lv-thumb {
  position: relative;
  z-index: 1;
}

.lv-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lv-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ps-ink, #1B2A3A);
  line-height: 1.25;
}

.lv-line {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', Menlo, monospace;
  font-size: 0.72rem;
  color: var(--ps-stone);
  line-height: 1.35;
}

.lv-link {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a6090;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lv-link:focus-visible {
  outline: 2px solid #0e0e0c;
  outline-offset: 2px;
}

.listview-card .empty {
  margin: 3rem 1.25rem 1rem;
  padding: 1.25rem;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--ps-paper-edge);
  background: var(--ps-paper-soft);
  color: var(--ps-stone);
  font-size: 0.92rem;
  font-style: italic;
}

.empty-message {
  margin: 0;
}

.listview-card .empty-donate-link {
  color: var(--ps-iron);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listview-card .empty-donate-link:hover,
.listview-card .empty-donate-link:focus-visible {
  color: var(--ps-iron-hover, #8a3324);
}

.filter-toolbar-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
}

.listview-toggle {
  display: inline-flex;
  flex-direction: row;
  gap: 0.2rem;
  flex-shrink: 0;
  align-items: flex-end;
  padding-bottom: 0.08rem;
}

.listview-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 3.1rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #dcd9c9;
  background: #f6f3ec;
  color: #0e0e0c;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.1;
}

.listview-toggle-btn[aria-checked='true'] {
  background: #e8e4d8;
  border-color: #b8b4a8;
  box-shadow: inset 0 1px 2px rgba(14, 14, 12, 0.06);
}

.listview-toggle-btn:focus-visible {
  outline: 2px solid #0e0e0c;
  outline-offset: 2px;
}

.listview-toggle-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.listview-toggle-text {
  font-size: var(--t-xs);
}

/* ---- Engraved tile layer (B&W, high contrast, anti-sepia) ---- */
.aged-tiles {
  filter: grayscale(0.95) contrast(1.08) brightness(1.02) sepia(0);
}

/* ---- Map credits link (replaces default Leaflet attribution control) ---- */
.map-attribution {
  margin: 0 !important;
  padding: 2px 6px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: var(--t-xs) !important;
  line-height: 1.25 !important;
  color: var(--ps-stone) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.map-attribution a {
  color: var(--ps-stone) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-attribution a:hover {
  color: #0e0e0c !important;
}

@media (max-width: 719px) {
  #map .map-attribution,
  #map .leaflet-control-attribution {
    max-width: calc(100vw - 60px);
    box-sizing: border-box;
    white-space: nowrap;
  }

  #map .map-attribution a {
    font-size: 0;
    text-decoration: none;
  }

  #map .map-attribution a::before {
    content: '©';
    font-size: var(--t-xs);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

/* ---- Credits stub (/credits) ---- */
body.credits-page-body {
  overflow: auto !important;
  height: auto !important;
  min-height: 100dvh;
}

.credits-stub {
  padding: 2rem;
  max-width: 40rem;
}

.credits-stub-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.6rem;
  font-weight: normal;
  color: #0e0e0c;
  margin-bottom: 0.75rem;
}

.credits-stub-lead {
  font-size: 0.9rem;
  color: var(--ps-stone);
  line-height: 1.5;
}

.credits-stub-back {
  margin-top: 1.5rem;
}

.credits-stub-back a {
  color: var(--ps-stone);
  font-size: var(--t-xs);
}

.credits-stub-back a:hover {
  color: #0e0e0c;
}

/* ---- Cartouche overlay ---- */
.cartouche {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 900;
  background: #f6f3ec;
  max-width: 260px;
  width: calc(100vw - 2rem);
  border: 1px solid #0e0e0c;
  outline: 1px solid #0e0e0c;
  outline-offset: -5px;
  box-shadow: 2px 3px 14px rgba(14,14,12,0.35);
}

.cartouche {
  max-height: calc(100dvh - 2rem);
  overflow: clip;
}

.cartouche-inner {
  padding: 0.9rem 1rem 0.85rem;
  position: relative;
}

/* Corner ornaments — small ink marks at each inner border corner */
.cartouche-inner::before,
.cartouche-inner::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: #5a5851;
  border-style: solid;
  pointer-events: none;
}

.cartouche-inner::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.cartouche-inner::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.cartouche-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.6rem;
  font-weight: normal;
  color: #0e0e0c;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.cartouche-sub {
  font-size: 0.72rem;
  color: #5a5851;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.2rem;
  font-style: italic;
}

.cartouche-rule {
  border: none;
  border-top: 1px solid #dcd9c9;
  margin: 0.65rem 0;
}

.cartouche-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-label {
  font-size: 0.8rem;
  color: #3a3a35;
  font-style: italic;
  line-height: 1.3;
}

.filter-label strong {
  font-style: normal;
  color: #0e0e0c;
}

/* Timeline period tokens — match map legend / density ticks (STU-25) */
:root {
  --ps-period-pre1900: #b03020;
  --ps-period-1900: #c87820;
  --ps-period-1940: #1a6090;
  --ps-period-1970: #2a7a45;
  --ps-period-unknown: #6E7585;
}

.timeline-v2 {
  margin: 0.15rem 0 0.35rem;
}

.timeline-v2-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.6rem;
}

.timeline-focus-track {
  flex: 1 1 160px;
  min-width: 0;
}

.timeline-focus-rail {
  position: relative;
  height: 1.35rem;
  margin-bottom: 0.12rem;
  pointer-events: none;
}

.timeline-focus {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #f0ebe0;
  border: 1px solid #dcd9c9;
  box-shadow: 0 1px 2px rgba(14, 14, 12, 0.06);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  color: #0e0e0c;
  white-space: nowrap;
}

.timeline-slider-shell {
  position: relative;
  height: 22px;
}

.timeline-track-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: #dcd9c9;
  border-radius: 2px;
  pointer-events: none;
}

.timeline-density {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.timeline-density-tick {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  transform: translateY(-50%);
  border-radius: 1px;
  background: var(--tick-color, #6d7070);
}

.timeline-slider-shell .timeline-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.timeline-slider-shell .timeline-handle::-webkit-slider-runnable-track {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: 3px;
}

.timeline-slider-shell .timeline-handle::-moz-range-track {
  background: transparent !important;
  border: none !important;
  height: 3px;
}

.timeline-slider-shell .timeline-handle::-moz-range-progress {
  background: transparent !important;
}

.timeline-slider-shell .timeline-handle::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 16px solid transparent;
  background-color: #22356f;
  background-clip: content-box;
  box-shadow: 0 0 0 2px #f6f3ec, 0 1px 4px rgba(14, 14, 12, 0.45);
  cursor: pointer;
  transition: transform 0.1s;
}

.timeline-slider-shell .timeline-handle::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.timeline-slider-shell .timeline-handle::-moz-range-thumb {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 16px solid transparent;
  background-color: #22356f;
  background-clip: content-box;
  box-shadow: 0 0 0 2px #f6f3ec, 0 1px 4px rgba(14, 14, 12, 0.45);
  cursor: pointer;
}

.window-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.window-chip {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #c9c4b6;
  background: #faf8f3;
  color: #3a3a35;
  cursor: pointer;
  line-height: 1.2;
}

.window-chip:hover {
  border-color: #5a5851;
  color: #0e0e0c;
}

.window-chip:focus-visible {
  outline: 2px solid #22356f;
  outline-offset: 1px;
}

.window-chip[aria-checked="true"],
.window-chip[aria-pressed="true"] {
  background: #22356f;
  border-color: #22356f;
  color: #f6f3ec;
}

.cartouche-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  border-bottom: 1px solid #5a5851;
  color: #0e0e0c;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.8rem;
  font-style: italic;
  cursor: pointer;
  padding: 0;
  line-height: 1.4;
}

.cartouche-btn:hover {
  color: #0e0e0c;
  border-bottom-color: #0e0e0c;
}

/* ---- Custom map pin ---- */
.photo-pin {
  background: none !important;
  border: none !important;
  cursor: pointer;
  filter: drop-shadow(1px 2px 3px rgba(14,14,12,0.4));
  transition: filter 0.15s;
}

.photo-pin:hover {
  filter: drop-shadow(1px 2px 6px rgba(14,14,12,0.7)) brightness(0.85);
}

.photo-pin.selected {
  transform: scale(1.6);
  filter: drop-shadow(0 0 5px rgba(34, 53, 111, 0.9)) drop-shadow(0 2px 10px rgba(14, 14, 12, 0.55));
  transition: filter 0.15s, transform 0.15s;
  z-index: 1000 !important;
}

.photo-pin.selected:hover {
  filter: drop-shadow(0 0 7px rgba(34, 53, 111, 1)) drop-shadow(0 2px 10px rgba(14, 14, 12, 0.6)) brightness(0.9);
}

.map-pin-directional-root {
  position: relative;
  width: 44px;
  height: 44px;
}

.map-pin--approved {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ps-paper-soft);
  border: 2px solid var(--marker-period-color);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-direction-cone {
  fill: var(--marker-period-color);
  fill-opacity: 0.18;
  stroke: var(--marker-period-color);
  stroke-width: 1;
  stroke-opacity: 1;
}

.map-direction-icon,
.map-direction__glyph,
.map-pin-icon {
  display: none !important;
}

/* Cluster donut ring (STU-36) */
.photo-cluster-donut {
  background: none !important;
  border: none !important;
  cursor: pointer;
  filter: drop-shadow(1px 2px 3px rgba(14, 14, 12, 0.4));
  transition: filter 0.15s;
}

.photo-cluster-donut:hover {
  filter: drop-shadow(1px 2px 6px rgba(14, 14, 12, 0.7)) brightness(0.98);
}

.photo-cluster-donut-inner {
  display: block;
  line-height: 0;
}

.photo-cluster-donut-count {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  fill: var(--ps-ink);
}

/* ---- Legend ---- */
.legend {
  position: fixed;
  bottom: calc(1.5rem + 64px);
  left: 1rem;
  background: #f6f3ec;
  border: 1px solid #0e0e0c;
  outline: 1px solid #0e0e0c;
  outline-offset: -4px;
  padding: 0.55rem 0.75rem;
  z-index: 800;
  font-size: 0.82rem;
  line-height: 1.75;
  box-shadow: 1px 2px 8px rgba(14,14,12,0.25);
  color: #0e0e0c;
}

.legend-title {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  font-variant: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-stone);
  margin: 0 0 var(--s-2);
  border-bottom: 1px solid #dcd9c9;
  padding-bottom: 0.2rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: #f6f3ec;
  border: 2.5px solid currentColor;
}

/* ---- Photo side panel ---- */
.photo-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 90vw;
  height: 100dvh;
  background: #f6f3ec;
  border-left: 1px solid #0e0e0c;
  outline: 1px solid #0e0e0c;
  outline-offset: -5px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 28px rgba(14,14,12,0.35);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.photo-panel.open {
  transform: translateX(0);
}

.photo-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #dcd9c9;
  flex-shrink: 0;
  background: #e6e2cf;
}

.panel-close-btn,
.panel-expand-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: #0e0e0c;
  cursor: pointer;
  font-family: 'IM Fell English', Georgia, serif;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.panel-close-btn .ps-icon-labeled__glyph {
  font-size: 1.7rem;
}

.panel-expand-btn .ps-icon-labeled__glyph {
  font-size: 1.3rem;
}
.panel-expand-btn .ps-icon-labeled__glyph svg {
  display: block;
}

.panel-close-btn:hover,
.panel-expand-btn:hover {
  color: #0e0e0c;
}

.panel-image-wrap {
  width: 100%;
  background: #ecead9;
  padding: 0.85rem 0.85rem 0.6rem;
  flex-shrink: 0;
  border-bottom: 1px solid #dcd9c9;
}

/* Never crop — see §1 Principle 2 — panel chrome lives on .panel-image-stack */
.panel-image-wrap .panel-photo-picture {
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.panel-image-wrap .panel-photo-picture:hover {
  opacity: 0.9;
}

.panel-body {
  padding: 1.1rem 1.3rem 1.75rem;
}

.panel-meta-top {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #dcd9c9;
  padding-bottom: 0.6rem;
}

.panel-meta-top h2 {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.4rem;
  font-weight: normal;
  color: #0e0e0c;
  flex: 1;
  line-height: 1.2;
}

.panel-year {
  font-size: 1rem;
  font-style: italic;
  color: #5a5851;
  white-space: nowrap;
}

.panel-compass {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #3a3a35;
  font-style: italic;
}

.compass-rose {
  width: 24px;
  height: 24px;
  border: 1px solid #5a5851;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: #f6f3ec;
}

.compass-rose::after {
  content: '↑';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--bearing, 0deg));
  font-size: 13px;
  color: #0e0e0c;
  line-height: 1;
}

.panel-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #0e0e0c;
  margin-bottom: 0.85rem;
  font-style: italic;
}

.panel-source {
  font-size: 0.82rem;
  color: #5a5851;
  font-style: italic;
  border-top: 1px solid #dcd9c9;
  padding-top: 0.5rem;
}

.pp-line {
  margin-bottom: 0.35rem;
}

.pp-actions {
  margin-top: 0.5rem;
}

/* ---- Time-scrub strip (STU-26) ---- */
.panel-scrub-mount {
  flex-shrink: 0;
  background: #e6e2cf;
  border-bottom: 1px solid var(--ps-rule);
  padding: 0.55rem 0.85rem 0.65rem;
}

.panel-scrub-mount[hidden] {
  display: none !important;
}

.scrub-strip {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  outline: none;
}

.scrub-strip:focus-visible {
  outline: 2px solid var(--ps-ink);
  outline-offset: 2px;
}

.ss-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-xs);
  color: var(--ps-ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ss-label a.scrub-view-all {
  color: var(--ps-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scrub-rail {
  display: flex;
  flex-direction: row;
  gap: 0.45rem;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.scrub-frame {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 2px;
}

.scrub-frame:focus-visible {
  outline: 2px solid var(--ps-ink);
  outline-offset: 2px;
}

.sf-thumb-wrap {
  display: block;
  width: 52px;
  height: 40px;
  background: var(--ps-paper-soft);
  border: 1px solid var(--ps-rule);
  overflow: hidden;
}

.sf-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: none;
}

.scrub-frame[aria-pressed="true"] .sf-thumb {
  outline: 2px solid var(--ps-ink);
  outline-offset: -2px;
}

.sf-year {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  color: var(--ps-ink-muted);
  line-height: 1.1;
}

.scrub-frame[aria-pressed="true"] .sf-year {
  font-weight: 700;
  color: var(--ps-ink);
}

/* ---- Full-screen lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,5,0,0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.hidden { display: none; }

.lightbox .lightbox-picture {
  display: block;
  max-width: 95vw;
  max-height: 95dvh;
  background: var(--ps-paper-soft);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.lightbox .lightbox-picture img {
  max-width: 95vw;
  max-height: 95dvh;
  object-fit: contain;
  cursor: default;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 0.9rem;
  right: 1.25rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: rgba(245,237,218,0.9);
  font-size: 2.5rem;
  cursor: pointer;
  font-family: 'IM Fell English', Georgia, serif;
  line-height: 1;
  padding: 0;
  z-index: 10;
  transition: color 0.15s;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-close .ps-icon-labeled__glyph {
  font-size: 2.5rem;
}
.lightbox-close .ps-icon-labeled__text {
  color: rgba(245, 237, 218, 0.95);
}
.lightbox-close:hover .ps-icon-labeled__text {
  color: #fff;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: calc(3.2rem + 56px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245,237,218,0.96);
  color: #0e0e0c;
  border: 1px solid #5a5851;
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  font-style: italic;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 2px 3px 10px rgba(14,14,12,0.25);
  max-width: 90vw;
  text-align: center;
  font-family: 'IM Fell English', Georgia, serif;
}

.toast.ok {
  border-color: #4a6b4e;
  background: rgba(228, 236, 229, 0.97);
}

.toast.warn {
  border-color: var(--ps-iron, #a23e2a);
  background: rgba(255, 244, 238, 0.97);
}

.toast .toast-map-empty-text {
  display: inline;
}

.toast .toast-inline-link.btn-ghost {
  display: inline;
  padding: 0;
  margin: 0;
  min-height: 0;
  font: inherit;
  font-style: italic;
  color: var(--ps-iron, #a23e2a);
  text-decoration: underline;
  text-decoration-color: var(--ps-iron, #a23e2a);
  text-underline-offset: 2px;
  vertical-align: baseline;
}

.toast .toast-inline-link.btn-ghost:hover,
.toast .toast-inline-link.btn-ghost:focus-visible {
  color: var(--ps-iron-hover, #8a3324);
  text-decoration-color: var(--ps-iron-hover, #8a3324);
}

.toast button {
  background: transparent;
  border: none;
  color: #5a5851;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 719px) {
  /* STU-54 — left cartouche is desktop-only; nav bottom sheet replaces it */
  .cartouche {
    display: none !important;
  }

  .photo-panel {
    width: 100%;
    height: 80dvh;
    top: auto;
    bottom: 0;
    right: 0;
    transform: translateY(100%);
    border-left: none;
    border-top: 2px solid #0e0e0c;
    box-shadow: 0 -4px 28px rgba(14,14,12,0.35);
    outline: none;
    z-index: 1001;
  }

  .photo-panel.open {
    transform: translateY(0);
  }

  /* Period chips live in nav half sheet (STU-54) */
  .legend {
    display: none !important;
  }

  .toast-container {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 88px + 64px + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .toast-container .toast {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: auto;
    pointer-events: auto;
  }
}

/* Subscribe to digest */
.cartouche-subscribe { margin-top: 0.6rem; }
.subscribe-row { display: flex; gap: 0.4rem; align-items: stretch; }
.subscribe-row input[type=email] {
  flex: 1; min-width: 0; padding: 0.4rem 0.55rem;
  font-family: inherit; font-size: 0.85rem;
  background: #ffffff; color: #0e0e0c;
  border: 1px solid #5a5851; border-radius: 3px;
}
.subscribe-row input[type=email]:focus { outline: none; border-color: #0e0e0c; }
.subscribe-row .cartouche-btn { white-space: nowrap; padding: 0.35rem 0.7rem; }
.subscribe-status { min-height: 1em; margin: 0.35rem 0 0; font-size: 0.8rem; font-style: italic; color: #0e0e0c; }
.subscribe-status.error { color: #b03020; }
.subscribe-status.ok { color: #2a7a45; }

/* ===================================================================
   PLAIN SIGHT — Engraved Atlas overrides
   Bone paper · near-black ink · deep ink-blue accent
   =================================================================== */

:root {
  --ps-paper: #f6f3ec;
  --ps-paper-2: #ecead9;
  --ps-paper-soft: #f6f3ec;
  /* Paper-haze marker fill (STU-36); distinct from modal scrim class `.ps-overlay-bg` */
  --ps-overlay-bg: #f6f3ec;
  --ps-ink: #0e0e0c;
  --ps-ink-muted: #5a5851;
  --ps-rule: #dcd9c9;
  --ps-accent: #22356f;
  --ps-accent-on: #f6f3ec;
  /* Primary CTA fill (design system — STU-55) */
  --ps-iron: #a23e2a;
  --ps-iron-hover: #8a3324;
  --m-base: 200ms;
}

/* Display surfaces keep the period serif for engraved character */
.cartouche-title,
.panel-meta-top h2,
.login-title,
.cartouche-sub {
  font-family: 'Cormorant Garamond', 'IM Fell English', Georgia, serif !important;
}

.cartouche-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.9rem;
  color: var(--ps-accent);
}

.cartouche-sub {
  font-style: italic;
  color: var(--ps-ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-top: 0.15rem;
}

/* Subtle paper noise on the cartouche & legend */
.cartouche,
.legend,
.photo-panel,
.login-card {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>"),
    linear-gradient(#f6f3ec, #f6f3ec);
  background-blend-mode: multiply;
}

/* Inner double-rule on cartouche — engraved chrome */
.cartouche {
  border: 1px solid var(--ps-ink) !important;
  outline: 1px solid var(--ps-ink) !important;
  outline-offset: -5px !important;
  box-shadow: 2px 3px 14px rgba(14,14,12,0.18) !important;
}

/* Primary CTAs — terracotta iron (design system .btn-primary) */
.cartouche-btn-primary,
#submitPhotoBtn,
#addPhotoBtn,
#loginSubmit,
.review-submit-btn {
  background: var(--ps-iron) !important;
  color: #fff !important;
  border: 1px solid var(--ps-iron) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}
.cartouche-btn-primary:hover,
#submitPhotoBtn:hover,
#addPhotoBtn:hover,
#loginSubmit:hover,
.review-submit-btn:hover {
  background: var(--ps-iron-hover) !important;
  border-color: var(--ps-iron-hover) !important;
}

/* Secondary buttons (Reset, Subscribe, Near me) — italic serif links, ink-blue on hover */
.cartouche-btn {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: var(--ps-ink) !important;
  border-bottom-color: var(--ps-ink-muted) !important;
}
.cartouche-btn:hover {
  color: var(--ps-accent) !important;
  border-bottom-color: var(--ps-accent) !important;
}


/* Panel heading: ink-blue era marker */
.panel-meta-top h2 {
  color: var(--ps-ink) !important;
  font-weight: 600;
}
.panel-year {
  color: var(--ps-accent) !important;
  font-style: italic;
}

/* Search & subscribe inputs — engraved hairlines */
#searchInput,
#subscribeEmail,
.subscribe-row input[type=email] {
  font-family: 'Inter', system-ui, sans-serif !important;
  background: #ffffff !important;
  border: 1px solid var(--ps-ink) !important;
  color: var(--ps-ink) !important;
}

/* Login modal */
.login-title {
  color: var(--ps-accent);
  font-weight: 700;
}
.login-card {
  border: 1px solid var(--ps-ink) !important;
  outline: 1px solid var(--ps-ink) !important;
  outline-offset: -5px !important;
}

/* Intro / About modal — engraved atlas style */
/* Translucent scrim + blur — also targets reduced-transparency (see .ps-overlay-bg) */
.ps-overlay-bg {
  background: rgba(14, 14, 12, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: introFadeIn 220ms ease-out;
}
.intro-overlay.hidden { display: none !important; }
@keyframes introFadeIn { from { opacity: 0; } to { opacity: 1; } }

.intro-card {
  position: relative;
  max-width: 460px;
  width: 100%;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>"),
    linear-gradient(#f6f3ec, #f6f3ec);
  background-blend-mode: multiply;
  border: 1px solid var(--ps-ink);
  outline: 1px solid var(--ps-ink);
  outline-offset: -5px;
  box-shadow: 4px 6px 28px rgba(14, 14, 12, 0.35);
  /* Extra top padding so stacked close control (STU-19) clears the title */
  padding: 3.25rem 2rem 1.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ps-ink);
  animation: introCardIn 280ms ease-out;
}
@keyframes introCardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ps-ink-muted);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}
.intro-close.ps-icon-labeled {
  align-items: flex-end;
}
.intro-close .ps-icon-labeled__glyph {
  font-size: 1.4rem;
}

.intro-close:hover,
.intro-close:focus-visible { color: var(--ps-accent); outline: none; }
.intro-close:hover .ps-icon-labeled__text,
.intro-close:focus-visible .ps-icon-labeled__text {
  color: var(--ps-accent);
}

.intro-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--ps-accent);
  margin: 0;
  letter-spacing: 0.01em;
}
.intro-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ps-ink-muted);
  margin: 0.15rem 0 0.7rem;
}
.intro-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ps-ink);
}
.intro-body p { margin: 0.55rem 0; }
.intro-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}
.intro-actions .cartouche-btn-primary { padding: 0.55rem 1.2rem; }

/* Optional row of cartouche text-style controls */
.home-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.1rem;
  padding-bottom: 0.2rem;
}
.cartouche-btn-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.86rem;
  color: var(--ps-ink-muted);
  cursor: pointer;
  border-bottom: 1px dotted var(--ps-rule);
  line-height: 1.4;
}
.cartouche-btn-link:hover,
.cartouche-btn-link:focus-visible {
  color: var(--ps-accent);
  border-bottom-color: var(--ps-accent);
}
.cartouche-btn-link:focus-visible {
  outline: 1px dotted var(--ps-accent);
  outline-offset: 3px;
}
.cartouche-btn-link.hidden { display: none; }

/* ---- Browse mode entry (STU-39) ---- */
.browse-panel {
  margin-top: 0.55rem;
  width: 100%;
}

.browse-panel-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .browse-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: start;
  }
}

.browse-card {
  border: 1px solid var(--ps-rule);
  border-radius: 4px;
  padding: 0.45rem 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.35);
}

.browse-card-title {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-stone);
  margin: 0 0 var(--s-3);
}

.browse-decades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.browse-decade {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--ps-rule);
  border-radius: 999px;
  background: var(--ps-paper-soft);
  color: var(--ps-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  line-height: 1.2;
}

.browse-decade:hover,
.browse-decade:focus-visible {
  border-color: var(--ps-ink-muted);
  outline: none;
}

.browse-decade:focus-visible {
  outline: 2px solid var(--ps-ink);
  outline-offset: 2px;
}

.browse-decade-label {
  font-weight: 500;
}

.browse-decade-sep {
  color: var(--ps-ink-muted);
  font-weight: 400;
}

.browse-decade-count {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', Menlo, monospace;
  font-size: 0.7rem;
  color: var(--ps-ink-muted);
}

.browse-streets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.browse-street-btn {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  padding: 0.2rem 0.05rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.78rem;
  color: var(--ps-ink);
}

.browse-street-btn:hover,
.browse-street-btn:focus-visible {
  color: var(--ps-accent);
  outline: none;
}

.browse-street-btn:focus-visible {
  outline: 2px solid var(--ps-ink);
  outline-offset: 2px;
}

.browse-street-name {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.browse-street-count {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', Menlo, monospace;
  font-size: 0.72rem;
  color: var(--ps-ink-muted);
  flex-shrink: 0;
  text-align: right;
}

@media (max-width: 719px) {
  .map-pane {
    padding-bottom: calc(88px + 64px + env(safe-area-inset-bottom, 0px));
  }

  .browse-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    max-height: min(48vh, 22rem);
    overflow-y: auto;
    z-index: 840;
    padding: 0.55rem 0.85rem 0.75rem;
    border-top: 2px solid var(--ps-ink);
    box-shadow: 0 -4px 22px rgba(14, 14, 12, 0.22);
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>"),
      linear-gradient(#f6f3ec, #f6f3ec);
    background-blend-mode: multiply;
    width: 100%;
    max-width: none;
  }

  .browse-panel[hidden] {
    display: none !important;
  }
}

/* Leaflet attribution — read as engraved footnote */
.leaflet-control-attribution {
  font-family: 'Inter', system-ui, sans-serif !important;
  background: rgba(246,243,236,0.92) !important;
  color: var(--ps-ink-muted) !important;
  border-top: 1px solid var(--ps-rule) !important;
}

/* Keep attribution above fixed timeline strip (STU-48) */
.leaflet-bottom {
  margin-bottom: 56px;
}

@media (max-width: 719px) {
  .leaflet-bottom {
    margin-bottom: calc(88px + 64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- Drag-photo-onto-map highlight ---- */
.drag-highlight {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  border: 4px dashed var(--ps-accent);
  background: rgba(34, 53, 111, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 120ms ease;
}
.drag-highlight.active {
  opacity: 1;
  pointer-events: none;
}
.drag-highlight-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ps-accent);
  background: rgba(246, 243, 236, 0.92);
  border: 1px solid var(--ps-accent);
  padding: 0.9rem 2rem;
  box-shadow: 2px 3px 14px rgba(14,14,12,0.18);
  pointer-events: none;
}

/* ---- Public submission dialog (STU-57 — viewport-bound card, scroll body) ---- */
.submission-dialog {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  max-height: 100dvh;
  overflow: hidden;
}
.submission-dialog.hidden { display: none !important; }

/* ---- STU-80 — desktop split contribution + drag affordance + pending pin ---- */
.cartouche-drag-hint {
  display: none;
  margin: 0.35rem 0 0;
  font-family: var(--ps-font-ui);
  font-size: 11px;
  color: var(--ps-stone);
  text-align: center;
  line-height: 1.35;
}

@media (min-width: 720px) {
  .cartouche-drag-hint {
    display: block;
  }

  .submission-dialog.submission-dialog--desktop-split {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    max-height: none;
    overflow: visible;
    pointer-events: none;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .submission-dialog.submission-dialog--desktop-split .submission-card {
    pointer-events: auto;
    width: 360px;
    max-width: 360px;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    box-shadow: 6px 0 28px rgba(14, 14, 12, 0.22);
  }

  .submission-dialog.submission-dialog--desktop-split .submission-card--step2-desktop .submission-card__header {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .submission-dialog.submission-dialog--desktop-split .submission-card--step2-desktop {
    padding-bottom: 1rem;
  }
}

.map-drag-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border: 2px dashed var(--ps-iron);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 80ms ease;
}

.map-drag-ring.map-drag-ring--visible {
  opacity: 1;
  visibility: visible;
}

#map .leaflet-tile-pane.map-drag-dim-tiles {
  opacity: 0.8;
  transition: opacity 120ms ease;
}

.ps-pending-submission-pin {
  background: transparent !important;
  border: none !important;
}

.ps-pending-pin-stack {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-pending-pin-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px dashed var(--ps-period-1900, #c87820);
  box-sizing: border-box;
  flex-shrink: 0;
}

.ps-pending-pin-nav-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-ink);
  transform: rotate(var(--ps-nav-rot, 0deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.ps-pending-pin-nav-layer.ps-pending-pin-nav-layer--hide {
  display: none;
}

.pp-step-helper--drag-place {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ps-stone);
}

.pp-compass-fieldset {
  border: none;
  padding: 0;
  margin: 0.75rem 0 0.5rem;
}

.pp-step4-compass-legend {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ps-ink);
  padding: 0;
  margin: 0 0 0.4rem;
}

.pp-compass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  gap: 0.35rem;
  max-width: 100%;
}

.pp-compass-btn {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  font-family: var(--ps-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--ps-rule);
  border-radius: 3px;
  background: var(--ps-paper-soft, #f6f3ec);
  color: var(--ps-ink);
  cursor: pointer;
}

.pp-compass-btn:hover,
.pp-compass-btn:focus-visible {
  border-color: var(--ps-ink-muted);
  outline: none;
}

.pp-compass-btn--selected {
  background: var(--ps-iron-soft, #ddd8cc);
  border-color: var(--ps-iron, #a23e2a);
}

.pp-compass-btn--skip {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.82rem;
}

.pp-step4-map-thumb-wrap {
  margin: 0.5rem 0 0.75rem;
}

.pp-step4-direction {
  margin: 0.75rem 0 0.5rem;
}

.pp-step4-direction-heading {
  margin: 0 0 0.5rem;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ps-ink);
}

.pp-step4-direction-map {
  margin: 0 0 0.5rem;
}

.pp-step4-direction-facing {
  margin: 0 0 0.35rem;
  font-family: var(--ps-font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ps-stone);
}

.pp-step4-direction-skip {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ps-stone);
  cursor: pointer;
  text-align: left;
}

.pp-step4-direction-skip:hover,
.pp-step4-direction-skip:focus-visible {
  color: var(--ps-ink-muted);
  outline: none;
}

.pp-step4-direction--collapsed .pp-step4-direction-map,
.pp-step4-direction--collapsed .pp-step4-direction-facing {
  display: none;
}

.pp-step4-map-thumb {
  width: 100%;
  height: 200px;
  border: 1px solid var(--ps-rule);
  border-radius: 3px;
  overflow: hidden;
  background: #e6e2cf;
  pointer-events: none;
}

.pp-step4-direction .ps-direction-cone-handle {
  width: 12px;
  height: 12px;
  border-width: 1px;
  pointer-events: auto;
}

.pp-step4-direction .ps-direction-cone-body {
  pointer-events: none;
  cursor: default;
}

.pp-step4-map-thumb .leaflet-control-container {
  display: none;
}

.submission-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 3rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ps-paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>"),
    linear-gradient(#f6f3ec, #f6f3ec);
  background-blend-mode: multiply;
  border: 1px solid var(--ps-ink);
  outline: 1px solid var(--ps-ink);
  outline-offset: -5px;
  box-shadow: 4px 6px 28px rgba(14, 14, 12, 0.35);
  /* Room for stacked close control (STU-19) above the heading */
  padding: 2.85rem 1.75rem 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ps-ink);
}

.submission-card__header {
  flex-shrink: 0;
}

.submission-card__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.submission-card__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ps-rule);
}

.submission-card__footer .cartouche-btn-primary {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.submission-card__footer .phone-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.submission-card--chooser .submission-card__body {
  flex: 0 1 auto;
}

.submission-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ps-accent);
  margin-bottom: 0.2rem;
}

.submission-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  line-height: 1;
  color: var(--ps-ink-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.submission-close.ps-icon-labeled {
  align-items: flex-end;
}
.submission-close .ps-icon-labeled__glyph {
  font-size: 1.5rem;
}
.submission-close:hover,
.submission-close:focus-visible {
  color: var(--ps-accent);
}
.submission-close:hover .ps-icon-labeled__text,
.submission-close:focus-visible .ps-icon-labeled__text {
  color: var(--ps-accent);
}

#submissionForm,
#pubStep4Form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
}

#submissionForm label,
#pubStep4Form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--ps-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#submissionForm input[type=text],
#submissionForm input[type=number],
#submissionForm input[type=email],
#submissionForm textarea,
#submissionForm select,
#pubStep4Form input[type=text],
#pubStep4Form input[type=email],
#pubStep4Form textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--ps-ink);
  background: #fff;
  border: 1px solid var(--ps-ink);
  padding: 0.4rem 0.6rem;
  border-radius: 0;
  width: 100%;
}
#submissionForm input:focus,
#submissionForm textarea:focus,
#submissionForm select:focus,
#pubStep4Form input:focus,
#pubStep4Form textarea:focus {
  outline: none;
  border-color: var(--ps-accent);
}

#submissionForm hr {
  border: none;
  border-top: 1px solid var(--ps-rule);
  margin: 0.2rem 0;
}

.sub-help {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ps-ink-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.1rem;
}

.sub-row {
  display: flex;
  gap: 0.75rem;
}
.sub-row label { flex: 1; }

.sub-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem !important;
  padding-top: 1.4rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}
.sub-check input[type=checkbox] { width: auto; }

.sub-location-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0.1rem 0 0.35rem;
}

.sub-location-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ps-ink-muted);
}

/* STU-63 — public donation camera bearing */
.sub-muted {
  font-style: italic;
  color: var(--ps-ink-muted);
  font-weight: normal;
}
.sub-pub-camera-bearing {
  margin: 0.5rem 0 0.35rem;
  padding: 0.45rem 0 0.35rem;
  border-top: 1px dashed var(--ps-rule);
}
.sub-pub-camera-device-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
}
.sub-pub-camera-readout {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: var(--ps-ink);
}
.sub-pub-camera-rose {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-start;
  margin: 0.35rem 0;
}
.sub-pub-cam-chip {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--ps-rule);
  border-radius: 2px;
  background: var(--ps-paper-soft);
  color: var(--ps-ink);
  cursor: pointer;
}
.sub-pub-cam-chip:hover {
  background: var(--ps-paper);
}
.sub-pub-cam-chip.selected {
  background: var(--ps-ink);
  color: var(--ps-paper-soft);
  border-color: var(--ps-ink);
}
.sub-pub-camera-unknown {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ps-ink-muted);
  cursor: pointer;
}

.sub-dropped-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border: 1px solid var(--ps-rule);
  display: block;
  margin-top: 0.35rem;
}

.sub-status {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ps-ink-muted);
  min-height: 1.2em;
  margin-top: 0.1rem;
}

/* STU-65 — upload progress + field/submit errors */
.sub-progress {
  height: 3px;
  width: 100%;
  background: var(--ps-paper-soft, #f6f3ec);
  overflow: hidden;
  position: relative;
  border-radius: 0;
}
.sub-progress.hidden { display: none; }
.sub-progress__bar {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--ps-iron);
  animation: subProgressSlide 1.1s linear infinite;
  will-change: transform;
}
@keyframes subProgressSlide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(380%); }
}
@media (prefers-reduced-motion: reduce) {
  .sub-progress__bar { animation: none; width: 100%; opacity: 0.6; }
}

.sub-field-error {
  display: block;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ps-iron);
  text-transform: none;
  letter-spacing: 0;
  margin-top: -0.4rem;
  margin-bottom: 0.2rem;
}
.sub-field-error.hidden { display: none; }

#submissionForm input[aria-invalid="true"],
#submissionForm textarea[aria-invalid="true"] {
  border-color: var(--ps-iron);
}

.sub-error {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ps-iron);
  margin-top: 0.1rem;
}
.sub-error.hidden { display: none; }
.sub-error__copy { line-height: 1.4; }
.sub-error .btn-secondary {
  align-self: flex-start;
  font-family: 'IM Fell English', Georgia, serif;
  font-style: normal;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  text-align: center;
  border-radius: 2px;
  line-height: 1.35;
  background: #5a5851;
  color: #f6f3ec;
  border: 1px solid #3a3530;
}
.sub-error .btn-secondary:hover,
.sub-error .btn-secondary:focus-visible {
  background: #3a3530;
  outline: none;
}

/* ===================================================================
   STU-18 / STU-19 — prefers-reduced-transparency & forced-colors
   =================================================================== */

@media (prefers-reduced-transparency: reduce) {
  .ps-overlay-bg {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1;
    background: rgb(14, 14, 12);
  }

  .lightbox {
    background: var(--ps-ink);
  }

  .lightbox-close {
    color: var(--ps-paper-soft);
  }

  .lightbox-close:hover {
    color: #ffffff;
  }

  .toast {
    background: var(--ps-paper);
    border-color: var(--ps-ink);
  }

  .leaflet-control-attribution {
    background: var(--ps-paper) !important;
  }

  .drag-highlight {
    background: var(--ps-paper);
  }

  .drag-highlight-label {
    background: var(--ps-paper);
    border-color: var(--ps-accent);
  }
}

@media (forced-colors: active) {
  :root {
    --ps-paper: Canvas;
    --ps-paper-2: Canvas;
    --ps-paper-soft: Canvas;
  }

  .cartouche,
  .legend,
  .photo-panel,
  .login-card,
  .intro-card,
  .submission-card {
    border: 2px solid ButtonText;
    outline: 2px solid ButtonText;
    outline-offset: -4px;
    box-shadow: none !important;
    background-color: Canvas !important;
  }

  .cartouche,
  .legend,
  .photo-panel,
  .login-card {
    background-image: none !important;
  }

  .intro-card,
  .submission-card {
    background-image: none !important;
  }

  .cartouche-btn-primary,
  #submitPhotoBtn,
  #addPhotoBtn,
  #loginSubmit,
  .review-submit-btn {
    border: 2px solid ButtonText !important;
  }

  .cartouche-btn:focus-visible,
  .cartouche-btn-link:focus-visible,
  .cartouche-btn-primary:focus-visible,
  .panel-close-btn:focus-visible,
  .panel-expand-btn:focus-visible,
  .lightbox-close:focus-visible,
  .intro-close:focus-visible,
  .submission-close:focus-visible,
  .cp-close-btn:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  #map:focus-visible,
  .leaflet-marker-icon.photo-pin:focus-visible,
  .leaflet-marker-icon.photo-cluster-donut:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
}

/* ---- STU-27 source chooser (shared: submission dialog + curator wizard) ---- */

.ps-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chooser {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.35rem;
}

button.chooser-card,
.chooser-card.btn-secondary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: 1px solid var(--ps-ink-muted);
  color: var(--ps-ink);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease;
}

button.chooser-card:hover,
button.chooser-card:focus-visible {
  border-color: var(--ps-accent);
  background: rgba(34, 53, 111, 0.06);
  outline: none;
}

.chooser-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--ps-accent);
}

.chooser-card__icon svg {
  display: block;
}

.chooser-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.chooser-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ps-ink);
}

.chooser-card__sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ps-ink-muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.chooser-eyebrow {
  margin-top: 0.25rem;
}

.sub-photo-note {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ps-ink-muted);
}

.scan-tips-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(14, 14, 12, 0.45);
}

.scan-tips-overlay.hidden {
  display: none !important;
}

.scan-tips-card.paper-card {
  max-width: 340px;
  width: 100%;
  background: var(--ps-paper);
  border: 1px solid var(--ps-ink);
  outline: 1px solid var(--ps-ink);
  outline-offset: -4px;
  padding: 1.25rem 1.35rem;
  box-shadow: 4px 6px 24px rgba(14, 14, 12, 0.35);
}

.scan-tips-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  color: var(--ps-accent);
}

.scan-tips-body {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ps-ink);
}

.scan-tips-card .cartouche-btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.submission-card--chooser {
  max-width: 440px;
}

/* ---- STU-66 — five-step contribution flow (full-screen step surfaces) ---- */

.submission-card--step2,
.submission-card--step3,
.submission-card--step4,
.submission-card--step5 {
  max-width: 560px;
}

.submission-card--step2 {
  max-width: 720px;
}

.pp-step-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--ps-ink);
  letter-spacing: 0;
  text-transform: none;
}

.pp-step-helper {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ps-ink-muted);
  margin: 0 0 0.65rem;
}

.pp-step-helper--stone {
  color: var(--ps-stone, #6d7070);
}

.submission-card__header--crossfade {
  transition: opacity 150ms var(--ease-out, cubic-bezier(0.33, 1, 0.68, 1));
}

.pp-step-skip {
  width: 100%;
  box-sizing: border-box;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  color: var(--ps-ink-muted);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
}

.pp-step-back,
.pp-step-unsure {
  width: 100%;
  box-sizing: border-box;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  color: var(--ps-ink-muted);
  border: 1px dashed #a69b7a;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
}

.pp-step-back:hover,
.pp-step-back:focus-visible,
.pp-step-unsure:hover,
.pp-step-unsure:focus-visible {
  color: var(--ps-ink);
  border-color: #5a5851;
  outline: none;
}

/* Step 2 — map + crosshair + coord readout */
.submission-card--step2 .submission-card__body--map {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 320px;
}

.pp-step2-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  width: 100%;
  background: #e6e2cf;
}

.pp-step2-map .leaflet-control-attribution {
  display: none;
}

.pp-step2-crosshair {
  position: absolute;
  left: 50%;
  top: calc(50% - 0.65rem);
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 500;
  filter: drop-shadow(0 0 2px rgba(246, 243, 236, 0.85));
}

.pp-step2-coord {
  font-family: ui-monospace, 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ps-ink);
  background: rgba(246, 243, 236, 0.92);
  border-top: 1px solid var(--ps-rule);
  padding: 0.4rem 0.65rem;
  margin: 0;
}

.pp-step2-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin: 0 0 0.65rem;
}

.pp-step2-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.pp-step2-search-wrap .pp-search-label {
  margin-bottom: 0;
}

.pp-step2-search-wrap .gps-prompt.paper-card {
  background: var(--ps-paper-soft, #f6f3ec);
  border: 1px solid var(--ps-rule);
  padding: 0.6rem 0.7rem;
  border-radius: 3px;
}

.pp-step2-search-wrap .gps-prompt__copy {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ps-ink-muted);
}

.pp-step2-search-wrap .gps-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pp-step2-search-wrap .gps-prompt__actions button {
  flex: 1 1 auto;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 719px) {
  .submission-card--step2:not(.submission-card--step2-desktop) .pp-step2-coord.step-2-coordinate-display {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 1rem + 48px + 0.5rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--ps-font-mono);
    font-size: 12px;
    color: var(--ps-stone);
    letter-spacing: 0.04em;
    z-index: 901;
  }

  .submission-card--step2:not(.submission-card--step2-desktop) .step-2-continue {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 1rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    min-height: 48px;
    z-index: 901;
  }
}

/* Step 3 — large year input + Approximate toggle */
.submission-card--step3 .submission-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.pp-step3-year-label {
  display: block;
  width: 100%;
  text-align: center;
}

.pp-step3-year {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 600;
  text-align: center;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ps-ink);
  color: var(--ps-ink);
  letter-spacing: 0.06em;
  padding: 0.2rem 0;
  outline: none;
}

.pp-step3-year::placeholder {
  color: var(--ps-stone);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

.pp-step3-year::-webkit-outer-spin-button,
.pp-step3-year::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pp-step3-year[type='number'] {
  -moz-appearance: textfield;
}

.pp-step3-year:focus {
  border-bottom-color: var(--ps-accent);
}

.pp-step3-approx {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ps-ink-muted);
  text-transform: none;
  letter-spacing: 0;
}

.pp-step3-approx input[type='checkbox'] {
  width: auto;
}

/* Step 4 — full-width photo + stacked form */
.submission-card--step4 .submission-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pp-step4-thumb {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--ps-rule);
  border-radius: 3px;
  background: var(--ps-paper-2, #ecead9);
}

#pubStep4Form {
  margin-top: 0;
}

#pubStep4Form .sub-help {
  margin: -0.35rem 0 0;
}

@media (max-width: 390px) {
  .submission-card--step4 .pp-step4-thumb,
  #pubStep4Form input[type=text],
  #pubStep4Form input[type=email],
  #pubStep4Form textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Step 5 — review summary */
.submission-card--step5 .submission-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.pp-step5-thumb {
  max-height: 200px;
  max-width: 100%;
  width: auto;
  border: 1px solid var(--ps-rule);
  background: var(--ps-paper-2, #ecead9);
  display: block;
  margin: 0 auto;
}

.pp-step5-title {
  margin: 0.35rem 0 0.1rem;
  font-size: 1.55rem;
}

.pp-step5-year {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ps-ink-muted);
  margin: 0 0 0.5rem;
}

.pp-step5-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.35rem;
  text-align: left;
  border-top: 1px dashed var(--ps-rule);
  padding-top: 0.55rem;
}

.pp-step5-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.pp-step5-key {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ps-stone);
}

.pp-step5-val {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ps-ink);
  text-align: right;
}

.pp-step5-mono {
  font-family: ui-monospace, 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---- STU-29 — sheet handle, resume draft, receipt phone footer ---- */

.sheet-handle {
  display: none;
}

.resume-draft-mount {
  position: fixed;
  z-index: 1002;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(5.5rem + 56px);
  width: calc(100vw - 2rem);
  max-width: 380px;
  pointer-events: none;
}

@media (max-width: 719px) {
  .resume-draft-mount {
    bottom: calc(88px + 64px + env(safe-area-inset-bottom, 0px));
  }
}

.resume-draft-mount:not([hidden]) {
  pointer-events: auto;
}

.resume-draft-mount[hidden] {
  display: none !important;
}

.resume-card {
  background: var(--ps-paper);
  border: 1px solid var(--ps-ink);
  outline: 1px solid var(--ps-ink);
  outline-offset: -4px;
  padding: 0.85rem 1rem;
  box-shadow: 3px 5px 18px rgba(14, 14, 12, 0.28);
}

.resume-card .rc-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.rc-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--ps-rule);
  background: var(--ps-paper-2);
}

.rc-thumb.rc-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--ps-ink-muted);
}

.rc-meta {
  flex: 1;
  min-width: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ps-ink-muted);
}

.rc-meta .rc-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.95rem;
  color: var(--ps-ink);
  font-style: italic;
  margin: 0 0 0.2rem;
}

.rc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.rc-actions button {
  flex: 1;
  min-width: 120px;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  border-radius: 2px;
}

.rc-actions .rc-resume {
  background: var(--ps-accent);
  color: var(--ps-accent-on);
  border: 1px solid var(--ps-accent);
}

.rc-actions .rc-discard {
  background: transparent;
  color: var(--ps-ink-muted);
  border: 1px dashed #a69b7a;
}

.sub-receipt-heading {
  font-family: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}

.sub-receipt-body {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.sub-receipt-meta {
  font-family: ui-monospace, 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ps-ink-muted);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.sub-receipt-preview {
  max-width: 100%;
  border: 1px solid var(--ps-rule);
  margin-bottom: 0.65rem;
}

.sub-receipt-map-wrap {
  margin: 0.85rem 0 0.5rem;
  border: 1px solid var(--ps-rule);
  overflow: hidden;
}

.sub-receipt-map {
  height: 300px;
  width: 100%;
}

.sub-receipt-map-caption {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ps-stone);
  margin: 0 0 0.75rem;
}

.sub-receipt-share-label {
  font-size: 0.95rem;
  margin: 0.5rem 0 0.25rem;
}

.sub-receipt-preview-link {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
  word-break: break-all;
}

.sub-receipt-preview-link a {
  color: var(--ps-ink-blue, #22356f);
}

.photo-pin--pending-preview {
  background: transparent;
  border: none;
}

.photo-pin--pending-preview svg {
  display: block;
}

.phone-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ps-rule);
}

.phone-bottom .btn-secondary,
.phone-bottom .btn-ghost {
  width: 100%;
  box-sizing: border-box;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  text-align: center;
  border-radius: 2px;
  line-height: 1.35;
}

.phone-bottom .btn-secondary {
  background: #5a5851;
  color: #f6f3ec;
  border: 1px solid #3a3530;
}

.phone-bottom .btn-secondary:hover,
.phone-bottom .btn-secondary:focus-visible {
  background: #3a3530;
  outline: none;
}

.phone-bottom .btn-ghost {
  background: transparent;
  color: #5a5851;
  border: 1px dashed #a69b7a;
}

.phone-bottom .btn-ghost:hover,
.phone-bottom .btn-ghost:focus-visible {
  color: var(--ps-ink);
  border-color: #5a5851;
  outline: none;
}

.submission-card--receipt .phone-bottom {
  gap: var(--s-2);
}

.submission-card--receipt .phone-bottom .btn-secondary,
.submission-card--receipt .phone-bottom .btn-ghost {
  background: transparent;
  color: var(--ps-ink);
  border: 1px dashed var(--ps-paper-edge, #ece5d6);
  border-radius: var(--r-md);
  min-height: 48px;
  font-family: var(--ps-font-ui);
  font-size: var(--t-base);
  font-weight: 500;
  padding: 0 var(--s-5);
}

.submission-card--receipt .phone-bottom .btn-secondary:hover,
.submission-card--receipt .phone-bottom .btn-secondary:focus-visible,
.submission-card--receipt .phone-bottom .btn-ghost:hover,
.submission-card--receipt .phone-bottom .btn-ghost:focus-visible {
  background: var(--ps-paper-soft);
  border-color: var(--ps-ink);
  color: var(--ps-ink);
  outline: none;
}

@media (max-width: 719px) {
  .sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0.45rem 0.75rem 0.35rem;
    border: none;
    border-bottom: 1px solid var(--ps-rule);
    background: #e6e2cf;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    color: var(--ps-ink-muted);
    touch-action: none;
  }

  .sheet-handle:focus-visible {
    outline: 2px solid var(--ps-accent);
    outline-offset: 2px;
  }

  .sheet-handle-grip {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: rgba(14, 14, 12, 0.35);
  }

  .sheet-handle-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .photo-panel.open.sheet-state-collapsed {
    height: auto;
    max-height: 38vh;
    min-height: 64px;
    overflow: hidden;
  }

  .photo-panel.open.sheet-state-collapsed .sheet-handle {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    padding: 0.35rem 0.65rem 0.3rem;
  }

  .sheet-collapsed-wordmark {
    display: none;
  }

  .photo-panel.open.sheet-state-collapsed .sheet-collapsed-wordmark {
    display: block;
    font-family: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ps-accent, #22356f);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .photo-panel.open.sheet-state-collapsed .sheet-handle-label {
    width: 100%;
    text-align: center;
    margin-top: 0.05rem;
  }

  .photo-panel.open.sheet-state-half .sheet-collapsed-wordmark,
  .photo-panel.open.sheet-state-full .sheet-collapsed-wordmark {
    display: none !important;
  }

  .photo-panel.open.sheet-state-half .sheet-handle,
  .photo-panel.open.sheet-state-full .sheet-handle {
    flex-direction: column;
  }

  .photo-panel.open.sheet-state-collapsed .panel-image-wrap,
  .photo-panel.open.sheet-state-collapsed .panel-scrub-mount,
  .photo-panel.open.sheet-state-collapsed .panel-body {
    display: none !important;
  }

  .photo-panel.open.sheet-state-half {
    height: 80dvh;
    max-height: 80dvh;
  }

  .photo-panel.open.sheet-state-full {
    height: calc(100dvh - env(safe-area-inset-bottom, 0px));
    max-height: 100dvh;
  }

  .photo-panel.open.sheet-state-half .panel-image-wrap,
  .photo-panel.open.sheet-state-half .panel-scrub-mount,
  .photo-panel.open.sheet-state-half .panel-body,
  .photo-panel.open.sheet-state-full .panel-image-wrap,
  .photo-panel.open.sheet-state-full .panel-scrub-mount,
  .photo-panel.open.sheet-state-full .panel-body {
    display: block;
  }

  .photo-panel.open.sheet-state-half .panel-scrub-mount[hidden],
  .photo-panel.open.sheet-state-full .panel-scrub-mount[hidden] {
    display: none !important;
  }
}

/* ===================================================================
   STU-54 — mobile nav bottom sheet (fixed z-index 900)
   =================================================================== */

.nav-bottom-sheet {
  display: none;
}

@media (max-width: 719px) {
  .nav-bottom-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 900;
    max-width: 100vw;
    box-sizing: border-box;
    background: var(--ps-paper, #f6f3ec);
    border-top: 1px solid var(--ps-paper-edge, #ece5d6);
    transition: height 0.22s ease, max-height 0.22s ease;
    overflow: hidden;
  }

  .nav-bottom-sheet,
  .nav-bottom-sheet__body,
  .nav-sheet-collapsed-brand,
  .nav-sheet-full-block {
    background: var(--ps-paper, #f6f3ec);
  }

  .nav-bottom-sheet__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .nav-bottom-sheet .sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: var(--s-1) var(--s-3);
    min-height: 22px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--ps-font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ps-stone);
    touch-action: none;
  }

  .nav-bottom-sheet .sheet-handle:focus-visible {
    outline: 2px solid var(--ps-accent, #22356f);
    outline-offset: 2px;
  }

  .nav-bottom-sheet .sheet-handle-grip {
    width: 40px;
    height: 4px;
    margin-bottom: var(--s-1);
    border-radius: 2px;
    background: var(--ps-stone);
    opacity: 0.5;
    flex-shrink: 0;
  }

  .nav-bottom-sheet .sheet-handle-label {
    font-family: var(--ps-font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ps-stone);
  }

  .nav-sheet-collapsed-brand {
    text-align: center;
    padding: 0;
    flex-shrink: 0;
  }

  .nav-bottom-sheet .ps-wordmark {
    font-family: var(--ps-font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--ps-ink, #0e0e0c);
    margin: 2px 0 0;
    flex-shrink: 0;
  }

  .nav-sheet-strap {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: 12px;
    line-height: 1.25;
    color: var(--ps-ink-muted, #5a5851);
    margin: 0.15rem 0 0;
  }

  .nav-sheet-half-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav-sheet-listview-mount .listview-toggle {
    justify-content: center;
  }

  .nav-sheet-listview-mount .listview-toggle-btn,
  .nav-sheet-listview-mount .listview-toggle-text {
    font-family: "DM Sans", "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .nav-period-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-period-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    font-family: var(--ps-font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--ps-ink, #0e0e0c);
    background: #faf8f3;
    color: var(--ps-ink, #0e0e0c);
    cursor: pointer;
    line-height: 1.2;
  }

  .nav-period-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .nav-period-chip[aria-pressed="false"] {
    opacity: 0.38;
    text-decoration: line-through;
  }

  .nav-period-chip:focus-visible {
    outline: 2px solid var(--ps-accent, #22356f);
    outline-offset: 2px;
  }

  .nav-sheet-half-scroll .nav-sheet-donate-cta {
    align-self: stretch;
    width: 100%;
    min-height: 48px;
    margin-top: 0.15rem;
    padding: 0.55rem 0.75rem;
  }

  .nav-sheet-full-block {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--ps-paper, #f6f3ec);
    overflow: hidden;
  }

  .nav-sheet-full-toolbar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0.5rem 0;
    border-bottom: 1px solid var(--ps-rule, #dcd9c9);
    background: var(--ps-paper, #f6f3ec);
  }

  .nav-sheet-full-close {
    background: transparent;
    border: none;
    color: var(--ps-ink-muted, #5a5851);
    cursor: pointer;
  }

  .nav-sheet-full-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 1rem 1.25rem;
  }

  .nav-sheet-full-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ps-accent, #22356f);
    margin: 0 0 0.35rem;
  }

  .nav-sheet-chooser-stub {
    margin-top: 0.5rem;
  }

  /* Collapsed: grip, SHOW MORE, wordmark */
  .nav-bottom-sheet.nav-sheet-state-collapsed {
    height: 88px;
    max-height: 88px;
    min-height: 88px;
    padding: var(--s-2) var(--s-4) var(--s-3);
    align-items: center;
    gap: var(--s-1);
  }

  .nav-bottom-sheet.nav-sheet-state-collapsed .sheet-handle {
    border-bottom: 0;
    padding: 0;
  }

  .nav-bottom-sheet.nav-sheet-state-collapsed .nav-sheet-strap {
    display: none;
  }

  .nav-bottom-sheet.nav-sheet-state-collapsed .nav-sheet-half-scroll,
  .nav-bottom-sheet.nav-sheet-state-collapsed .nav-sheet-full-block {
    display: none !important;
  }

  .nav-bottom-sheet.nav-sheet-state-collapsed .nav-sheet-collapsed-brand {
    display: block;
  }

  /* Half: ~50% viewport */
  .nav-bottom-sheet.nav-sheet-state-half {
    height: 50dvh;
    max-height: 50dvh;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .nav-bottom-sheet.nav-sheet-state-half .nav-sheet-collapsed-brand {
    display: none !important;
  }

  .nav-bottom-sheet.nav-sheet-state-half .nav-sheet-half-scroll {
    display: flex !important;
  }

  .nav-bottom-sheet.nav-sheet-state-half .nav-sheet-full-block {
    display: none !important;
  }

  /* Full: contribution surface */
  .nav-bottom-sheet.nav-sheet-state-full {
    height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px));
    padding: 0;
    gap: 0;
    align-items: stretch;
    border-top: none;
  }

  .nav-bottom-sheet.nav-sheet-state-full #navSheetHandle {
    display: none !important;
  }

  .nav-bottom-sheet.nav-sheet-state-full .nav-sheet-collapsed-brand {
    display: none !important;
  }

  .nav-bottom-sheet.nav-sheet-state-full .nav-sheet-half-scroll {
    display: none !important;
  }

  .nav-bottom-sheet.nav-sheet-state-full .nav-sheet-full-block {
    display: flex !important;
  }

  .place-search-mount--nav-sheet {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    flex-shrink: 0;
  }

  .nav-bottom-sheet.nav-sheet-state-half .place-search-mount--nav-sheet {
    display: block;
  }

  .active-filter-chips-mount:empty {
    display: none;
  }
}

@media (min-width: 720px) {
  .nav-bottom-sheet {
    display: none !important;
  }
}
