/* static/css/40-pages/map.css */
/* HostelPunk Destination Map (V1, sparse).
   Plan: plans/2026-05-25_hostelpunk-map-swap.md
   Companion JS: /static/js/map.js */

.hp-body--map { overflow: hidden; }
.hp-body--map .hp-main { padding: 0; flex: 1; min-height: 0; }
.hp-body--map .c-app-footer { display: none; }

/* TOOLBAR */
.hp-map-toolbar {
  position: sticky;
  top: 56px;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}
@media (min-width: 768px) {
  .hp-map-toolbar { top: 64px; }
}

.hp-map-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding-block: var(--space-3);
}

.hp-map-toolbar__search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 480px;
}

@media (max-width: 640px) {
  .hp-map-toolbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
  }

  .hp-map-toolbar__search {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    max-width: none;
  }

  .hp-map-toolbar__search .c-input,
  .hp-map-toolbar__search .c-input__field {
    min-width: 0;
  }
}

.hp-dmap {
  position: relative;
  display: block;
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.hp-dmap__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface-muted);
}

.hp-dmap__fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-surface-muted);
}

.hp-dmap__fallback img {
  position: absolute;
  width: 512px;
  height: 512px;
  max-width: none;
  user-select: none;
}

/* --- Marker --- */
.hp-dmap__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  padding: 0;
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18), 0 0 0 1px var(--color-border-subtle);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  transition: transform 120ms var(--ease-decel, ease-out), box-shadow 120ms var(--ease-decel, ease-out);
}
.hp-dmap__marker:hover,
.hp-dmap__marker:focus-visible {
  transform: scale(1.08);
  outline: none;
  z-index: 2;
}
.hp-dmap__marker.is-active {
  transform: scale(1.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.28), 0 0 0 2px var(--color-text-primary);
  z-index: 3;
}

.hp-dmap__marker-glyph {
  display: block;
  pointer-events: none;
}

.hp-dmap__marker-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-dmap__marker:hover .hp-dmap__marker-label,
.hp-dmap__marker:focus-visible .hp-dmap__marker-label,
.hp-dmap__marker.is-active .hp-dmap__marker-label {
  opacity: 1;
}

/* Marker color per quality tier, using style-guide map-marker tokens.
   Top (elite) = bright red; verygood = green; weak/shit = muted dark red.
   Warning red is reserved for bedbug/safety, not used here. */
.hp-dmap__marker[data-tier="top"] {
  background: var(--color-map-marker-top);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.24), 0 0 0 1px var(--color-map-marker-top);
}
.hp-dmap__marker[data-tier="verygood"] {
  background: var(--color-tier-verygood);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.20), 0 0 0 1px var(--color-tier-verygood);
}
.hp-dmap__marker[data-tier="good"] {
  background: var(--color-tier-good);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18), 0 0 0 1px var(--color-tier-good);
}
.hp-dmap__marker[data-tier="meh"] {
  background: var(--color-tier-meh);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18), 0 0 0 1px var(--color-tier-meh);
}
.hp-dmap__marker[data-tier="shit"] {
  background: var(--color-tier-shit);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18), 0 0 0 1px var(--color-tier-shit);
}
/* Regional hubs are a slight visual variation of gateway hubs: same glyph,
   shrunk in JS via popularityToSize, with a small opacity dim so they read
   as subordinate. Color stays bound to quality tier. */
.hp-dmap__marker[data-role="regional_hub"] {
  opacity: 0.92;
}

/* --- Legend --- */
.hp-dmap__legend {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 4;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  padding: var(--space-3);
  box-shadow: var(--shadow-panel, 0 2px 8px rgba(0,0,0,0.18));
  max-width: 260px;
  font-size: 13px;
}
.hp-dmap__legend.is-collapsed .hp-dmap__legend-body { display: none; }

.hp-dmap__legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-2);
  font: inherit;
  color: var(--color-text-primary);
  cursor: pointer;
}
.hp-dmap__legend.is-collapsed .hp-dmap__legend-toggle { margin: 0; }

.hp-dmap__legend-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-dmap__legend-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
}
.hp-dmap__legend-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.hp-dmap__legend-row[data-tier="top"] .hp-dmap__legend-marker {
  background: var(--color-map-marker-top);
}
.hp-dmap__legend-row[data-tier="verygood"] .hp-dmap__legend-marker {
  background: var(--color-tier-verygood);
}
.hp-dmap__legend-row[data-tier="shit"] .hp-dmap__legend-marker {
  background: var(--color-tier-shit);
}
.hp-dmap__legend-row[data-role] .hp-dmap__legend-marker {
  background: var(--color-surface-muted, var(--color-surface));
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
  font-size: 14px;
}
.hp-dmap__legend-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--color-border-subtle);
  font-size: 11px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hp-dmap__legend-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.hp-dmap__legend-meta {
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* --- Status (empty / loading) --- */
.hp-dmap__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-panel, 0 1px 4px rgba(0,0,0,0.12));
}

.hp-dmap__status[hidden],
.hp-dmap__status-action[hidden] {
  display: none !important;
}

.hp-dmap__status-action {
  margin-left: 0;
  min-height: 36px;
}

@media (max-width: 639px) {
  .hp-dmap__status {
    width: min(calc(100% - 32px), 360px);
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hp-dmap__status > span {
    flex: 1 1 100%;
    text-align: center;
  }
}

.hp-dmap__noscript-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-dmap__noscript-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hp-dmap__noscript-list a {
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.hp-dmap__noscript-list span {
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
}

/* --- Sheet (mobile bottom sheet → desktop popup) --- */
.hp-dmap__sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  background: var(--color-surface);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.22);
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  max-height: 70vh;
  max-height: 70dvh;
  overflow-y: auto;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 180ms var(--ease-decel, ease-out), opacity 180ms ease-out;
}
.hp-dmap__sheet.is-open {
  transform: translateY(0);
  opacity: 1;
}
.hp-dmap__sheet-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
}

@media (min-width: 1024px) {
  /* Desktop: anchor the sheet as a side popup instead of a bottom sheet */
  .hp-dmap__sheet {
    left: auto;
    right: var(--space-4);
    bottom: var(--space-4);
    width: 360px;
    border-radius: 12px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
  }
}

.hp-dmap__sheet-head { margin-bottom: var(--space-2); }
.hp-dmap__sheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.hp-dmap__sheet-sub {
  margin: 2px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}
.hp-dmap__sheet-why {
  display: inline-block;
  margin: var(--space-2) 0;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}
.hp-dmap__sheet-why[data-why="quality"] { color: var(--color-tier-verygood); }
.hp-dmap__sheet-why[data-why="activity_gem"] { color: var(--color-signal-positive); }
.hp-dmap__sheet-why[data-why="sticky"] { color: var(--color-text-tertiary); }
.hp-dmap__sheet-why[data-why="gateway_hub"],
.hp-dmap__sheet-why[data-why="regional_hub"] {
  color: var(--color-map-marker-info);
}

.hp-dmap__sheet-description {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 1.45;
}

.hp-dmap__route-chip {
  display: inline-block;
  margin: var(--space-2) 0 0;
  padding: 2px 10px;
  border: 1px solid var(--color-map-marker-info);
  border-radius: 999px;
  color: var(--color-map-marker-info);
  font-size: 12px;
  font-weight: 600;
}
.hp-dmap__route-chip[data-route-role="regional_hub"] {
  border-style: dashed;
  color: var(--color-text-secondary);
}

.hp-dmap__sheet-next {
  margin: var(--space-3) 0 var(--space-2);
}
.hp-dmap__fly-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hp-dmap__fly-link::after {
  content: "→";
  color: var(--color-map-marker-info);
  font-size: 0.9em;
  line-height: 1;
  text-decoration: none;
}
.hp-dmap__fly-link:hover,
.hp-dmap__fly-link:focus-visible {
  color: var(--color-map-marker-info);
  text-decoration-color: currentColor;
}
.hp-dmap__sheet-title-link {
  text-decoration-color: transparent;
}
.hp-dmap__sheet-title-link:hover,
.hp-dmap__sheet-title-link:focus-visible {
  text-decoration-color: currentColor;
}
.hp-dmap__sheet-next h3 {
  margin: 0 0 6px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 700;
}
.hp-dmap__sheet-next ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--color-text-primary);
}
.hp-dmap__sheet-next li span {
  font-size: 13px;
}
.hp-dmap__sheet-next li small {
  display: block;
  color: var(--color-text-tertiary);
  font-size: 11px;
}

.hp-dmap__sheet-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-2) 0;
  padding: 0;
}
.hp-dmap__sheet-tags li {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-surface-muted);
  border-radius: 999px;
}
.hp-dmap__sheet-cta {
  margin: var(--space-3) 0 0;
}

/* --- Mapbox attribution / nav control polish --- */
.hp-body--map .mapboxgl-ctrl-attrib {
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
}

.hp-body--map .mapboxgl-ctrl-attrib a {
  color: var(--color-text-secondary);
}

.hp-dmap .mapboxgl-ctrl-attrib {
  background: rgba(0,0,0,0); /* let our surface tones breathe */
}

/* static/css/40-pages/zz-contrast-rescue.css */
.hp-contrast-rescue .c-property-card__eyebrow,
.hp-contrast-rescue .c-property-card__name,
.hp-contrast-rescue .hp-hostel__eyebrow,
.hp-contrast-rescue .hp-hostel__name,
.hp-contrast-rescue .hp-score__title,
.hp-contrast-rescue .hp-score__value,
.hp-contrast-rescue .hp-score__level,
.hp-contrast-rescue .hp-score__meta,
.hp-contrast-rescue .c-rank-label,
.hp-contrast-rescue .c-lang-stack,
.hp-contrast-rescue .c-lang-divergence,
.hp-contrast-rescue .c-property-card__foot {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 10px rgba(0, 0, 0, 0.58),
    0 0 22px rgba(0, 0, 0, 0.36);
}

.c-property-card.hp-contrast-rescue .c-property-card__name::before,
.hp-hostel__hero.hp-contrast-rescue .hp-hostel__name::before {
  inset: -0.78em -1.38em;
  background: radial-gradient(
    ellipse at var(--hp-title-halo-x) 55%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 1.22)) 0%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.72)) 30%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.28)) 62%,
    transparent 100%
  );
}

@container hp-list (min-width: 720px) {
  .c-property-card.hp-contrast-rescue .c-property-card__body::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
      linear-gradient(
        to right,
        transparent 0%,
        color-mix(in oklab, #06090f 20%, transparent) 39%,
        color-mix(in oklab, #06090f 40%, transparent) 64%,
        color-mix(in oklab, #06090f 58%, transparent) 100%
      );
    backdrop-filter: blur(2.5px) saturate(122%);
    -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  }

  .c-property-card.hp-contrast-rescue .c-property-card__body::after {
    content: "";
    position: absolute;
    inset: 14% 3% 12% 39%;
    z-index: -1;
    border-radius: var(--radius-card);
    background: radial-gradient(
      ellipse at 66% 45%,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      transparent 75%
    );
    filter: blur(10px);
    pointer-events: none;
  }
}

@container hp-list (max-width: 719.98px) {
  .c-property-card.hp-contrast-rescue .c-property-card__body {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
      color-mix(in oklab, #0b0e14 29%, transparent);
    backdrop-filter: blur(3.5px) saturate(118%);
    -webkit-backdrop-filter: blur(3.5px) saturate(118%);
  }
}

@media (min-width: 768px) {
  .hp-hostel__hero.hp-contrast-rescue .hp-hostel__hero-info::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
      linear-gradient(
        to right,
        transparent 0%,
        color-mix(in oklab, var(--hp-hero-dark) 24%, transparent) 42%,
        color-mix(in oklab, var(--hp-hero-dark) 44%, transparent) 65%,
        color-mix(in oklab, var(--hp-hero-dark) 60%, transparent) 100%
      );
    backdrop-filter: blur(2.5px) saturate(122%);
    -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  }
}

@media (max-width: 767.98px) {
  .hp-hostel__hero.hp-contrast-rescue .hp-hostel__hero-info {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
      color-mix(in oklab, var(--hp-hero-dark) 30%, transparent);
    backdrop-filter: blur(3.5px) saturate(118%);
    -webkit-backdrop-filter: blur(3.5px) saturate(118%);
  }
}

/* static/css/66-border-crossings.css */
.hp-border { max-width: 920px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-8); }
.hp-border .hp-breadcrumb { flex-wrap: wrap; gap: var(--space-2); font-size: 13px; }
.hp-border h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: var(--space-2) 0 var(--space-6); }
.hp-border h2 { font-size: 21px; line-height: 1.3; }
.hp-border h3 { font-size: 15px; margin: var(--space-5) 0 var(--space-2); }
.hp-border p { line-height: 1.5; margin: var(--space-2) 0; }
.hp-border a { text-underline-offset: 3px; }
.hp-border a:focus-visible, .hp-border summary:focus-visible, .hp-border-marker:focus-visible { outline: 3px solid var(--color-border-strong); outline-offset: 3px; }
.hp-border__header { margin-top: var(--space-6); }
.hp-border__location, .hp-border__clock { color: var(--color-text-secondary); font-size: 13px; }
.hp-border__reported { background: var(--color-surface); border: 1px solid var(--color-border-subtle); border-left: 5px solid var(--color-signal-info); border-radius: var(--radius-card); padding: var(--space-5); }
.hp-border__reported[data-tone="warning"], .hp-border-list li[data-tone="warning"] { border-left-color: var(--color-signal-danger); }
.hp-border__reported[data-tone="hours"], .hp-border-sheet[data-tone="hours"] h3 { border-left-color: var(--color-text-tertiary); }
.hp-border__reported[data-tone="season"], .hp-border-list li[data-tone="season"], .hp-border-sheet[data-tone="season"] h3 { border-left-style: double; border-left-color: var(--color-border-strong); }
.hp-border__reported[data-stale="true"], .hp-border-list li[data-stale="true"], .hp-border-sheet[data-stale="true"] h3 { border-left-style: dashed; }
.hp-border__reported .hp-border__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--color-text-secondary); margin: 0 0 var(--space-2); }
.hp-border__reported h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 var(--space-3); }
.hp-border__confidence { font-weight: 650; font-size: 15px; }
.hp-border__confidence span { font-weight: 450; }
.hp-border__warning { font-weight: 650; }
.hp-border__warning::before { content: "⚠ "; }
.hp-border__advice { padding-top: var(--space-3); border-top: 1px solid var(--color-border-subtle); }
.hp-border__evidence-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.hp-border__timing { padding: var(--space-6) 0; }
.hp-border__timing h2 { margin: 0 0 var(--space-3); }
.hp-border__section { padding: var(--space-5) 0; border-top: 1px solid var(--color-border-subtle); scroll-margin-top: 80px; }
.hp-border__conflicts { border: 1px solid var(--color-signal-danger); border-radius: var(--radius-control); padding: var(--space-4); margin-bottom: var(--space-6); scroll-margin-top: 80px; }
.hp-border__evidence { border-top: 1px solid var(--color-border-subtle); padding: var(--space-4) 0; overflow-wrap: anywhere; }
.hp-border__source { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.hp-border__source a { min-height: 44px; display: inline-flex; align-items: center; }
.hp-border__source span, .hp-border__evidence-state { font-size: 12px; color: var(--color-text-secondary); }
.hp-border__evidence blockquote { margin: var(--space-3) 0 0; padding-left: var(--space-3); border-left: 2px solid var(--color-border-subtle); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.hp-border__road summary { min-height: 44px; cursor: pointer; padding: var(--space-3) 0; }
.hp-border__road-status { font-size: 20px; font-weight: 650; }
.hp-border-list { list-style: none; padding: 0; }
.hp-border-list li { background: var(--color-surface); border-left: 3px solid var(--color-border-strong); border-bottom: 1px solid var(--color-border-subtle); padding: var(--space-4); }
.hp-border-list li > a { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; align-items: center; min-height: 44px; }
.hp-border-list li p { font-size: 13px; color: var(--color-text-secondary); }
.hp-border-map-control .hp-border-toggle { position: relative; overflow: visible; color: var(--color-map-control-ink); }
.hp-border-toggle::after { content: ""; position: absolute; inset: -7.5px; }
.hp-border-toggle svg { display: block; width: 20px; height: 20px; margin: auto; }
.hp-border-toggle[aria-pressed="false"] svg, .hp-border-toggle[aria-busy="true"] svg { opacity: .45; }
.hp-border-directory { display: inline-flex; align-items: center; min-height: 44px; }
.hp-border-marker { display: grid; place-items: center; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.hp-border-marker__icon { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--color-surface); border-radius: 8px; color: var(--color-border-crossing-ink); background: var(--color-border-crossing-unknown); box-shadow: var(--shadow-card); }
.hp-border-marker[data-state="open"] .hp-border-marker__icon { background: var(--color-border-crossing-open); }
.hp-border-marker[data-state="open"][data-weather="true"] .hp-border-marker__icon { background: var(--color-border-weather-alert); color: var(--color-border-weather-ink); }
.hp-border-weather { margin: var(--space-5) 0; padding: var(--space-2) 0 var(--space-2) var(--space-4); border-left: 3px solid var(--color-border-subtle); overflow-wrap: anywhere; }
.hp-border-weather[data-warning="true"] { border-left-color: var(--color-border-weather-alert); }
.hp-border-weather h2 { font-size: 18px; margin: 0 0 var(--space-2); }
.hp-border-weather__level { font-weight: 650; }
.hp-border-weather ul { padding-left: var(--space-5); line-height: 1.5; }
.hp-border-weather summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--color-text-secondary); font-size: 13px; }
.hp-border-marker[data-state="closed"] .hp-border-marker__icon,
.hp-border-marker[data-state="passenger_closed"] .hp-border-marker__icon,
.hp-border-marker[data-state="restricted"] .hp-border-marker__icon,
.hp-border-marker[data-state="night"] .hp-border-marker__icon { background: var(--color-signal-danger); }
.hp-border-marker__icon svg { width: 22px; height: 22px; }
.hp-border-marker:hover .hp-border-marker__icon, .hp-border-marker[aria-expanded="true"] .hp-border-marker__icon { box-shadow: 0 0 0 2px var(--color-text-primary), var(--shadow-card); }
.hp-border-sheet h2 { font-size: 20px; margin: 0 0 var(--space-3); }
.hp-border-sheet h3 { margin: var(--space-2) 0; font-size: 22px; border-left: 5px solid var(--color-signal-info); padding-left: var(--space-3); }
.hp-border-sheet[data-tone="warning"] h3 { border-left-color: var(--color-signal-danger); }
.hp-border-sheet p { margin: var(--space-2) 0; }
.hp-border-sheet a { display: inline-flex; align-items: center; min-height: 44px; }
.hp-border-sheet .hp-border__clock { font-size: 12px; }
.hp-border__season { font-weight: 650; }
.hp-border-sheet__sources { list-style: none; margin: var(--space-3) 0; padding: 0; border-top: 1px solid var(--color-border-subtle); }
.hp-border-sheet__sources li { padding: var(--space-2) 0; overflow-wrap: anywhere; }
.hp-border-sheet__sources a { text-decoration: underline; text-underline-offset: 3px; }
.hp-border-sheet__sources small { display: block; font-size: 12px; line-height: 1.5; color: var(--color-text-secondary); }
.hp-border-sheet__sources a:focus-visible { outline: 3px solid var(--color-border-strong); outline-offset: 2px; }
.hp-border-sheet__roads summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-size: 14px; }
.hp-border-sheet__roads summary:focus-visible { outline: 3px solid var(--color-border-strong); outline-offset: 2px; }
.hp-border-sheet__roads dl { margin: 0; }
.hp-border-sheet__roads dl > div { margin: 0 0 var(--space-3); font-size: 13px; line-height: 1.5; }
.hp-border-sheet__roads dt { font-weight: 650; }
.hp-border-sheet__roads dd { margin: 0; color: var(--color-text-secondary); }
.hp-border-map-list { display: none; }
@media (min-width: 700px) { .hp-border { padding: var(--space-8) var(--space-6); } .hp-border__reported { padding: var(--space-6); } }
@media (scripting: none) { .hp-border-map-list { display: block; } }
.hp-border-control-status:not([hidden]) { display: block; position: absolute; top: 190px; right: var(--space-3); z-index: 3; max-width: 240px; padding: var(--space-3); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text-primary); box-shadow: var(--shadow-card); font-size: 12px; }
.hp-border__road summary small { display: block; color: var(--color-text-secondary); font-size: 12px; margin-top: var(--space-1); }
.hp-border .hp-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.hp-dmap__sheet:has(.hp-border-sheet) .hp-dmap__sheet-close { min-width: 44px; min-height: 44px; }
.hp-border-sheet h2 { padding-right: 36px; }
.hp-border__evidence-link, .hp-border-sheet .c-button { height: auto; min-height: 44px; padding: var(--space-3); white-space: normal; line-height: 1.4; text-align: center; }
.hp-border__older > summary { min-height: 44px; cursor: pointer; padding: var(--space-3) 0; color: var(--color-text-secondary); }
.hp-border__older > .hp-border__road { margin-left: var(--space-4); }
.hp-border__cities { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; }
.hp-border__cities a { min-height: 44px; display: inline-flex; align-items: center; }
.hp-city-borders { border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-4); }
.hp-city-borders h2 { font-size: 18px; line-height: 1.35; margin: 0 0 var(--space-3); }
.hp-city-borders .hp-border-list { margin: 0; }
.hp-city-borders .hp-border-list li { padding: var(--space-3) var(--space-4); }
.hp-city-borders .hp-border-list li p { margin: var(--space-1) 0 0; }
.hp-city-borders a { text-underline-offset: 3px; }
.hp-city-borders a:focus-visible { outline: 3px solid var(--color-border-strong); outline-offset: 3px; }
.hp-city-borders__more > summary { min-height: 44px; cursor: pointer; padding: var(--space-3) 0; color: var(--color-text-secondary); font-size: 14px; }
.hp-city-borders .hp-border-list li > a span { font-weight: 600; }
.hp-border__opens { font-size: 18px; font-variant-numeric: tabular-nums; }
.hp-border__hours, .hp-border__road-summary { font-size: 16px; }
.hp-border__confidence a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.hp-border__details { margin-top: var(--space-5); border-top: 1px solid var(--color-border-subtle); scroll-margin-top: 80px; }
.hp-border__details > summary { min-height: 44px; padding: var(--space-3) 0; cursor: pointer; font-size: 15px; font-weight: 600; }

