.route-atlas { padding-block: 42px 52px; }
.route-atlas [hidden] { display: none !important; }
.atlas-heading { max-width: 920px; margin-bottom: 24px; }
.atlas-heading h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.2; letter-spacing: -.03em; margin-bottom: 16px; }
.atlas-heading p { max-width: 760px; font-size: 1.13rem; line-height: 1.6; margin-bottom: 0; }
.atlas-switcher { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 14px; }
.atlas-switcher button { border: 0; background: transparent; color: var(--muted); min-height: 42px; padding: 9px 23px; font-size: 1rem; }
.atlas-switcher button[aria-pressed=true] { background: var(--accent); color: white; }
.atlas-hint { font-size: .98rem; color: var(--muted); margin-bottom: 23px; }
.atlas-pane + .atlas-pane { margin-top: 34px; }
.atlas-enhanced .atlas-pane { margin-top: 0; }
.atlas-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; border: 1px solid var(--line); background: var(--surface); }
.atlas-map-column { min-width: 0; }
.atlas-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 12px 18px; min-height: 64px; border-bottom: 1px solid var(--line); }
.atlas-toolbar h2 { margin: 0 auto 0 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.atlas-zoom { display: flex; align-items: center; gap: 4px; }
.atlas-zoom button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 5px 9px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1.3rem; line-height: 1; }
.atlas-zoom .atlas-fit { font-size: .9rem; margin-left: 7px; padding-inline: 12px; }
.atlas-zoom output { min-width: 46px; text-align: center; font-size: .88rem; font-variant-numeric: tabular-nums; }
.atlas-original { font-size: .9rem; white-space: nowrap; }
.atlas-viewport { position: relative; width: 100%; aspect-ratio: 1.416; max-height: 680px; overflow: auto; overscroll-behavior: contain; background: #fff; scroll-behavior: auto; scroll-margin-top: 165px; }
.atlas-viewport:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.atlas-viewport.is-zoomed { cursor: grab; }
.atlas-viewport.is-dragging { cursor: grabbing; user-select: none; }
.atlas-canvas { position: relative; width: 100%; margin: auto; }
.atlas-image { display: block; width: 100%; max-width: none; height: auto; pointer-events: none; }
.atlas-marker { position: absolute; display: grid; place-items: center; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: white; box-shadow: 0 1px 5px #203b3b55; padding: 0; cursor: pointer; }
.atlas-marker span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.atlas-marker[aria-pressed=true] { background: #153b3c; outline: 3px solid var(--focus); outline-offset: 3px; }
.atlas-selection { padding: 17px 20px; background: var(--paper); border-top: 1px solid var(--line); display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; }
.atlas-selection > div { min-width: 0; }
.atlas-selection > div > span { color: var(--muted); font-size: .82rem; }
.atlas-selection p { margin: 3px 0 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35; }
.atlas-selection > a { font-size: .95rem; white-space: nowrap; }
.atlas-selection > a > span { margin-left: 8px; }
.atlas-people { border-left: 1px solid var(--line); padding: 0 14px; min-width: 0; background: var(--paper); }
.atlas-people summary { cursor: pointer; min-height: 64px; padding: 20px 4px; display: flex; align-items: center; gap: 12px; justify-content: space-between; font-size: .95rem; font-weight: 600; line-height: 1.4; list-style: none; }
.atlas-people summary::-webkit-details-marker { display: none; }
.atlas-people summary:focus-visible, .atlas-legend summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.atlas-count { font-size: .85rem; font-weight: 400; border: 1px solid var(--line); min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; }
.atlas-people ul { margin: 0; padding: 0 0 12px; list-style: none; max-height: 600px; overflow-y: auto; }
.atlas-people li { border-top: 1px solid var(--line); }
.atlas-person { display: flex; align-items: center; gap: 12px; padding: 12px 5px; width: 100%; min-height: 65px; border: 0; color: var(--ink); background: transparent; text-align: left; font-size: .95rem; line-height: 1.4; }
.atlas-person > img { display: block; flex: 0 0 34px; width: 34px; height: 43px; object-fit: contain; object-position: center; }
.atlas-person > span:not(.atlas-person-arrow) { flex: 1; }
.atlas-person-arrow { color: var(--muted); font-size: 1.1rem; }
.atlas-person:hover, .atlas-person[aria-pressed=true] { background: var(--surface); color: var(--accent); }
.atlas-person[aria-pressed=true] { box-shadow: inset 3px 0 var(--accent); }
.atlas-person:focus-visible { outline-offset: -3px; }
.atlas-person-fallback { display: block; padding: 12px 5px; font-size: .95rem; }
.atlas-enhanced .atlas-person-fallback { display: none; }
.atlas-legend { margin-top: 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.atlas-legend summary { cursor: pointer; font-size: 1.12rem; font-weight: 550; min-height: 32px; }
.atlas-legend-original { max-width: 100%; margin-block: 24px 16px; overflow: auto; overscroll-behavior: contain; }
.atlas-legend-original img { display: block; width: 1131px; max-width: 100%; height: auto; }
.atlas-legend-original:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.atlas-legend > a { font-size: .95rem; }
.atlas-screenreader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1400px) { .atlas-workspace { grid-template-columns: minmax(0, 1fr) 310px; } }
@media (max-width: 1100px) { .atlas-workspace { grid-template-columns: minmax(0, 1fr) 255px; }.atlas-toolbar { gap: 8px; padding-inline: 12px; }.atlas-original { margin-left: auto; } }
@media (max-width: 800px) {
  .route-atlas { padding-block: 28px 38px; }
  .atlas-heading h1 { font-size: 2rem; }
  .atlas-heading p { font-size: 1.04rem; }
  .atlas-workspace { grid-template-columns: 1fr; }
  .atlas-toolbar { gap: 10px; }
  .atlas-toolbar h2 { font-size: .93rem; }
  .atlas-original { font-size: .85rem; }
  .atlas-zoom { order: 3; width: 100%; justify-content: flex-start; }
  .atlas-zoom .atlas-fit { margin-left: auto; }
  .atlas-viewport { aspect-ratio: 1.2; scroll-margin-top: 105px; }
  .atlas-marker { width: 28px; height: 28px; }
  .atlas-people { border-left: 0; border-top: 1px solid var(--line); padding-inline: 14px; }
  .atlas-people summary { min-height: 58px; padding-block: 16px; }
  .atlas-people summary::after { content: '+'; font-size: 1.3rem; margin-left: auto; }
  .atlas-people[open] summary::after { content: '−'; }
  .atlas-people .atlas-count { margin-right: 5px; }
  .atlas-people ul { max-height: 400px; }
  .atlas-person { min-height: 64px; font-size: 1rem; }
  .atlas-selection { flex-direction: column; align-items: flex-start; gap: 12px; padding: 15px; }
  .atlas-selection p { font-size: 1.15rem; }
  .atlas-legend-original img { max-width: none; }
  .atlas-switcher { width: 100%; }
  .atlas-switcher button { flex: 1; padding-inline: 12px; }
}
