/* A field atlas within the existing RIDGE NOTE editorial system. */
.atlas-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; padding-block: 48px 32px; }
.atlas-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.5; margin: 8px 0 0; letter-spacing: .04em; }
.atlas-hero .eyebrow { margin: 0; color: var(--signal); font-size: 12px; }
.atlas-intro { color: var(--ink-soft); font-size: 14px; margin: 0 0 5px; }
.atlas-stats { display: flex; gap: 36px; padding-block: 18px; margin-bottom: 22px; border-block: 1px solid var(--line); }
.atlas-stats > div { display: flex; align-items: baseline; gap: 8px; }
.atlas-stats strong { font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1; }
.atlas-stats span { font-size: 12px; color: var(--ink-soft); }
.atlas-stats .atlas-period { margin-left: auto; align-self: center; font-size: 12px; color: var(--ink-soft); }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; border: 1px solid var(--line); margin-bottom: 30px; }
.atlas-main, .atlas-sidebar { min-width: 0; }
.atlas-map { position: relative; height: 550px; background: #e9efeb; overflow: hidden; scroll-margin-top: 90px; }
.atlas-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.atlas-canvas.is-dragging { cursor: grabbing; }
.atlas-land { fill: #c6d4c5; stroke: #9cb3a0; stroke-width: .8; vector-effect: non-scaling-stroke; }
.atlas-grid { fill: none; stroke: #173a32; stroke-opacity: .07; stroke-width: 1; vector-effect: non-scaling-stroke; }
.atlas-track { fill: none; stroke: #b64c27; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlas-track.is-muted { stroke: #789583; stroke-opacity: .48; stroke-width: 1.4; }
.atlas-track.is-hike { stroke: #426a51; }
.atlas-track.is-selected { stroke: #b64c27; stroke-width: 3.6; }
.atlas-region { fill: #657d6d; font-family: var(--body); letter-spacing: .08em; }
.atlas-pin { cursor: pointer; }
.atlas-pin circle { fill: var(--pine); stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.atlas-pin text { fill: white; font-family: var(--body); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.atlas-pin:focus { outline: none; }
.atlas-pin:focus circle, .atlas-pin:hover circle { fill: var(--signal); stroke: white; stroke-width: 4; }
.atlas-pin.is-trail circle { fill: var(--signal); }
.atlas-marker-label { paint-order: stroke; stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; fill: var(--pine); font-family: var(--body); font-weight: 600; pointer-events: none; }
.atlas-compass { position: absolute; top: 22px; left: 24px; font-family: var(--mono); font-size: 10px; color: #506958; text-align: center; line-height: 1.3; pointer-events: none; }
.atlas-compass svg { display: block; width: 22px; height: 38px; margin-top: 4px; }
.atlas-map-title { position: absolute; top: 20px; left: 64px; max-width: calc(100% - 160px); margin: 0; color: var(--pine); font-size: 12px; font-weight: 600; pointer-events: none; }
.atlas-map-title span { display: block; font-size: 10px; font-weight: 400; opacity: .75; margin-top: 3px; }
.atlas-map-title > span:first-child { font-size: 12px; font-weight: 600; opacity: 1; margin-top: 0; }
.atlas-controls { position: absolute; top: 18px; right: 16px; display: grid; gap: 1px; box-shadow: 0 2px 8px #173a3210; }
.atlas-controls button { border: 1px solid var(--line); background: var(--paper); cursor: pointer; width: 40px; height: 40px; font-size: 23px; line-height: 1; }
.atlas-controls button:disabled { opacity: .4; cursor: default; }
.atlas-reset { position: absolute; left: 20px; bottom: 36px; background: var(--paper); border: 1px solid var(--line); padding: 8px 12px; font-size: 12px; cursor: pointer; min-height: 42px; }
.atlas-scale { position: absolute; right: 18px; bottom: 40px; color: var(--pine); font: 10px var(--mono); text-align: center; border-bottom: 2px solid var(--pine); padding-bottom: 2px; pointer-events: none; }
.atlas-attribution { position: absolute; right: 0; bottom: 0; max-width: 100%; background: #fcfbf7e8; padding: 3px 9px; font-size: 10px; color: var(--ink-soft); line-height: 1.5; }
.atlas-attribution a { text-decoration: underline; }
.atlas-legend { display: flex; gap: 20px; align-items: center; font-size: 11px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.atlas-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--pine); }
.atlas-dot.trail { background: var(--signal); }
.atlas-legend > span:last-child { margin-left: auto; color: var(--ink-soft); }
.atlas-sidebar { border-left: 1px solid var(--line); background: var(--paper); }
.atlas-filters { padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }
.atlas-filters h2 { font: 500 21px var(--display); margin: 0 0 16px; }
.atlas-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.atlas-tabs button { font-size: 12px; cursor: pointer; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); background: transparent; }
.atlas-tabs button[aria-pressed=true] { color: var(--paper); background: var(--pine); border-color: var(--pine); }
.atlas-search { display: grid; grid-template-columns: minmax(0,1fr) 82px; gap: 8px; }
.atlas-search input, .atlas-search select { min-width: 0; width: 100%; height: 40px; border: 1px solid var(--line); background: #fff; font: 12px var(--body); padding: 8px; border-radius: 0; color: var(--ink); }
.atlas-search select { padding-right: 0; }
.atlas-result { font-size: 11px; color: var(--ink-soft); margin: 12px 0 0; min-height: 22px; }
.atlas-result button { background: none; border: 0; padding: 3px 0; color: var(--signal); cursor: pointer; font-size: 11px; text-decoration: underline; margin-left: 10px; }
.atlas-list { margin: 0; padding: 0; list-style: none; max-height: 428px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.atlas-list li { margin: 0; }
.atlas-record { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px 20px; cursor: pointer; }
.atlas-record:hover, .atlas-record[aria-pressed=true] { background: #edf1e8; }
.atlas-record[aria-pressed=true] { box-shadow: inset 3px 0 var(--signal); }
.atlas-record-top { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 10px; margin-bottom: 5px; }
.atlas-record strong { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.atlas-record-meta { display: flex; gap: 14px; font-size: 11px; color: var(--ink-soft); margin-top: 7px; }
.atlas-empty { padding: 28px 20px; color: var(--ink-soft); font-size: 13px; }
.atlas-detail { padding: 26px 28px; border-top: 1px solid var(--line); background: var(--paper); scroll-margin-top: 94px; }
.atlas-detail-label { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 11px; margin-bottom: 8px; }
.atlas-detail h2 { font-family: var(--display); font-size: clamp(21px, 2.3vw, 28px); font-weight: 500; line-height: 1.6; margin: 0 0 18px; overflow-wrap: anywhere; }
.atlas-detail-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 0 0 20px; }
.atlas-detail-stats div { display: grid; gap: 3px; }
.atlas-detail-stats dt { color: var(--ink-soft); font-size: 10px; }
.atlas-detail-stats dd { margin: 0; font: 500 21px var(--display); }
.atlas-detail-stats small { font: 12px var(--body); }
.atlas-elevation { width: 100%; height: 124px; display: block; overflow: visible; }
.atlas-elevation text { fill: var(--ink-soft); font: 10px var(--body); }
.atlas-profile-note { color: var(--ink-soft); font-size: 10px; margin: 8px 0 0; }
.atlas-hint { padding: 4px 0; color: var(--ink-soft); font-size: 13px; margin: 0; }
.atlas-detail a { display: inline-block; margin-top: 14px; font-size: 12px; text-decoration: underline; }
.atlas-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-block: 8px 64px; color: var(--ink-soft); font-size: 12px; }
.atlas-notes h2 { font: 500 19px var(--display); color: var(--ink); margin: 0 0 12px; }
.atlas-notes p { margin: 0 0 10px; }
.atlas-home { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; padding-block: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 20px 54px; }
.atlas-home h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.55; margin: 8px 0 14px; }
.atlas-home p { color: var(--ink-soft); font-size: 14px; }
.atlas-home figure { margin: 0; position: relative; }
.atlas-home img { display: block; width: 100%; height: 280px; object-fit: contain; background: #e9efeb; }
.atlas-home figcaption { color: var(--ink-soft); font-size: 10px; margin-top: 6px; }
html:not(.has-js) .atlas-layout { display: none; }
@media (max-width: 1100px) { .atlas-layout { grid-template-columns: minmax(0,1fr) 290px; } .atlas-hero { gap: 30px; } }
@media (max-width: 760px) {
  .atlas-hero { display: block; padding-block: 30px 20px; } .atlas-intro { margin-top: 18px; font-size: 13px; }
  .atlas-stats { gap: 18px; flex-wrap: wrap; padding-block: 14px; } .atlas-stats strong { font-size: 23px; }
  .atlas-stats .atlas-period { margin: 0; width: 100%; font-size: 10px; }
  .atlas-layout { display: flex; flex-direction: column; } .atlas-map { height: 420px; }
  .atlas-sidebar { border-left: 0; border-top: 1px solid var(--line); order: 2; }
  .atlas-main { display: contents; } .atlas-map, .atlas-legend { order: 1; } .atlas-detail { order: 3; }
  .atlas-legend { flex-wrap: wrap; gap: 6px 16px; padding-inline: 14px; } .atlas-legend > span:last-child { margin-left: 0; }
  .atlas-filters { padding: 18px 16px 12px; } .atlas-filters h2 { margin-bottom: 12px; }
  .atlas-list { max-height: 300px; } .atlas-record { padding: 14px 16px; }
  .atlas-detail { padding: 24px 16px; } .atlas-detail-stats { gap: 16px 26px; }
  .atlas-notes { grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
  .atlas-home { grid-template-columns: 1fr; gap: 20px; margin-block: 10px 40px; padding-block: 32px; }
  .atlas-home img { height: 260px; }
}
