.cs-atlas-navhead { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #64748b; margin: 0 0 10px; }
.cs-atlas-lead { flex: 1; border-bottom: 1px dotted #cbd5e1; margin: 0 4px 4px; min-width: 18px; }

/* frontispiece fallback figure (pre-generator prod) + hero caption strip */
.cs-atlas-front { margin: 4px 0 44px; }
.cs-atlas-front > img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cs-atlas-front figcaption, .cs-atlas-frontcap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 12px 2px 14px; border-bottom: 1px solid rgba(16, 35, 58, .18); }
.cs-atlas-frontcap { margin: 0 0 34px; padding-top: 0; }
.cs-atlas-legend .cs-atlas-leg--route { width: 16px; height: 3px; border-radius: 2px; background: rgba(148, 190, 228, .9); box-shadow: none; }
.cs-atlas-fronttitle { font-family: Gabarito, Inter, system-ui, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .04em; color: #10233a; }
.cs-atlas-frontstats { font-size: 12.5px; color: #64748b; font-variant-numeric: tabular-nums; }
.cs-atlas-legend { display: inline-flex; align-items: baseline; gap: 16px; font-size: 12.5px; color: #475569; margin-left: auto; }
.cs-atlas-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: #FED470; box-shadow: 0 0 0 1.5px #fff; margin-right: 6px; transform: translateY(1px); }
.cs-atlas-legend .cs-atlas-leg--home { background: #006279; }

/* contents: a typeset table of plates */
.cs-atlas-contents { margin: 0 0 10px; }
.cs-atlas-contents ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 64px; }
.cs-atlas-contents li { break-inside: avoid; }
.cs-atlas-contents a { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; text-decoration: none; }
.cs-atlas-cname { font-weight: 600; font-size: 15px; color: #10233a; }
.cs-atlas-contents a:hover .cs-atlas-cname { color: #006279; }
.cs-atlas-ccount { font-size: 12.5px; color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* direct lookup: the atlas is intentionally complete, so give visitors a
   quick path into its 700+ entries instead of making them know a region */
.cs-atlas-find { position: relative; max-width: 560px; margin: 0 0 34px; }
.cs-atlas-find label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.cs-atlas-find input { box-sizing: border-box; display: block; width: 100%; border: 1px solid rgba(16, 35, 58, .22); border-radius: 4px; padding: 11px 13px; background: #fff; color: #10233a; font: 500 15px/1.3 Inter, system-ui, sans-serif; }
.cs-atlas-find input::placeholder { color: #94a3b8; }
.cs-atlas-find input:focus { border-color: #006279; outline: 2px solid rgba(0, 98, 121, .18); outline-offset: 1px; }
.cs-atlas-results { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; right: 0; overflow: hidden; border: 1px solid rgba(16, 35, 58, .16); border-radius: 5px; background: #fff; box-shadow: 0 14px 32px rgba(16, 35, 58, .16); }
.cs-atlas-results[hidden] { display: none; }
.cs-atlas-result { display: flex; align-items: baseline; gap: 12px; padding: 10px 13px; color: #10233a; text-decoration: none; }
.cs-atlas-result + .cs-atlas-result { border-top: 1px solid rgba(16, 35, 58, .08); }
.cs-atlas-result:hover { background: #f2f8f9; }
.cs-atlas-result:focus-visible { background: #f2f8f9; outline: 2px solid #006279; outline-offset: -2px; }
.cs-atlas-result b { flex: 1; font-size: 14px; }
.cs-atlas-result span { color: #64748b; font-size: 12px; white-space: nowrap; }
.cs-atlas-empty { margin: 0; padding: 11px 13px; color: #64748b; font-size: 13px; }
.cs-atlas-destinations { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin: -15px 0 34px; color: #64748b; font-size: 12.5px; }
.cs-atlas-destinations strong { color: #475569; }
.cs-atlas-destination { color: #006279; text-decoration: underline; text-underline-offset: 2px; }
.cs-atlas-destination + .cs-atlas-destination::before { content: "·"; display: inline-block; margin-right: 8px; color: #94a3b8; text-decoration: none; }

/* the folio: one region, one plate */
.cs-atlas-folio { border-top: 1px solid rgba(16, 35, 58, .18); margin-top: 40px; padding-top: 44px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.cs-atlas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cs-atlas-head h2 { font-family: Gabarito, Inter, system-ui, sans-serif; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: .95; letter-spacing: -0.02em; color: #10233a; margin: 6px 0 0; }
.cs-atlas-desc { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #64748b; max-width: 58ch; }
.cs-atlas-headright { text-align: right; flex-shrink: 0; }
.cs-atlas-stats { margin: 0; font-size: 13px; color: #64748b; font-variant-numeric: tabular-nums; }
.cs-atlas-stats b { color: #006279; font-weight: 700; }
.cs-atlas-browse { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: #006279; text-decoration: underline; text-underline-offset: 3px; }

/* the plotted chart: ports drawn on the map, not floated over photos */
.cs-atlas-chart { position: relative; margin: 24px 0 6px; }
.cs-atlas-chart img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cs-atlas-chart-label-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.cs-atlas-chart-label-lines line { stroke: rgba(16,35,58,.72); stroke-width: 1.35; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cs-atlas-dot { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 999px; z-index: 2; }
.cs-atlas-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: var(--cs-dot-size, 9px); height: var(--cs-dot-size, 9px); transform: translate(-50%, -50%); border-radius: 999px; background: #FED470; box-shadow: 0 0 0 1.3px rgba(255,255,255,.95); transition: transform .14s ease; }
.cs-atlas-dot--home::before { background: #006279; }
.cs-atlas-dot:hover::before, .cs-atlas-dot:focus-visible::before { transform: translate(-50%, -50%) scale(1.3); }
.cs-atlas-dot span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: 11px; line-height: 1.15; letter-spacing: .005em; color: #fff; background: rgba(16, 35, 58, .84); border-radius: 2px; padding: 2.5px 5px; opacity: 0; pointer-events: none; transition: opacity .14s ease; }
.cs-atlas-chart--laid-out .cs-atlas-dot span, .cs-atlas-dot:hover span, .cs-atlas-dot:focus-visible span { opacity: 1; }
.cs-atlas-dot:hover, .cs-atlas-dot:focus-visible { z-index: 50 !important; }

/* the register: an index typeset like back-matter, every port in the DOM */
.cs-atlas-regbody { margin-top: 26px; }
@media (min-width: 1152px) { .cs-atlas-regbody { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; align-items: start; } }
.cs-atlas-cols { columns: 205px 5; column-gap: 28px; }
.cs-atlas-country { break-inside: avoid; margin-bottom: 18px; }
.cs-atlas-country h3 { font-family: Gabarito, Inter, system-ui, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #64748b; margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid rgba(16, 35, 58, .14); }
.cs-atlas-row { display: block; padding: 4.5px 0; text-decoration: none; break-inside: avoid; }
.cs-atlas-pname { font-size: 14px; font-weight: 500; color: #10233a; line-height: 1.3; }
.cs-atlas-row--home .cs-atlas-pname { font-weight: 700; }
.cs-atlas-row:hover .cs-atlas-pname, .cs-atlas-row:focus-visible .cs-atlas-pname { color: #006279; }

/* the loupe uses the same shared polaroid partial as every other page; only
   its sticky placement belongs to the atlas. */
.cs-atlas-loupe { display: none; }
@media (min-width: 1152px) { .cs-atlas-loupe { display: block; position: sticky; top: 90px; } }
.cs-atlas-loupe .polaroid-outer { width: 240px; transform: rotate(var(--cs-polaroid-cant, -2deg)); -webkit-transform: rotate(var(--cs-polaroid-cant, -2deg)); }
.cs-atlas-loupe .polaroid-outer:hover { transform: rotate(var(--cs-polaroid-cant, -2deg)) !important; -webkit-transform: rotate(var(--cs-polaroid-cant, -2deg)) !important; }
.cs-atlas-loupe .polaroid-inner::after { content: ''; position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; transition: opacity .42s ease-in-out; }
.cs-atlas-loupe .polaroid-inner.cs-atlas-photo-black::after { opacity: 1; }
.cs-atlas-loupe .polaroid-label { will-change: clip-path; }

.cs-atlas-colophon { border-top: 1px solid rgba(16, 35, 58, .18); margin-top: 56px; padding: 16px 2px 0; font-size: 12.5px; letter-spacing: .02em; color: #64748b; }

.cs-atlas-contents a:focus-visible, .cs-atlas-row:focus-visible, .cs-atlas-browse:focus-visible, .cs-atlas-dot:focus-visible { outline: 2px solid #006279; outline-offset: 2px; }

@media (max-width: 767px) {
  .cs-atlas-contents ol { columns: 1; }
  .cs-atlas-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cs-atlas-headright { text-align: left; }
  .cs-atlas-front figcaption { padding-bottom: 12px; }
  .cs-atlas-legend { margin-left: 0; }
}
@media (max-width: 639px) {
  .cs-atlas-dot span, .cs-atlas-chart-label-lines { display: none; } /* the compact chart remains tappable; the full register follows immediately */
  .cs-atlas-folio { margin-top: 30px; padding-top: 32px; }
}
