/* Family atlas: quiet paper, clear coastlines, and labels set above the map. */
.family-atlas {
  --atlas-paper: #f8f5ee;
  --atlas-water: #edf1ee;
  --atlas-land: #e3ddce;
  --atlas-ink: #343d36;
  --atlas-muted: #5d665e;
  --atlas-copper: #935936;
  position: relative;
  left: 50%;
  width: min(1140px, calc(100vw - 64px));
  transform: translateX(-50%);
  margin: 3rem 0 4rem;
  background: var(--atlas-paper);
  color: var(--atlas-ink);
  border-top: 3px solid #6b7869;
  border-bottom: 1px solid #c9c8bb;
}
.atlas-heading {
  display: flex;
  margin: 0;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 2rem 1.3rem;
}
.atlas-eyebrow, .atlas-select-label, .atlas-detail-branch {
  font-family: system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--atlas-muted);
}
.atlas-heading .atlas-eyebrow { margin: 0 0 0.4rem; }
.atlas-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  color: var(--atlas-ink);
}
.atlas-instruction {
  margin: 0 0 0.1rem;
  color: var(--atlas-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}
.atlas-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding: 0 2rem 1.2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  color: var(--atlas-muted);
}
.atlas-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend-place, .legend-arrival {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atlas-copper);
  border: 1.5px solid var(--atlas-copper);
}
.legend-arrival { background: transparent; }
.legend-journey { width: 22px; border-top: 1.5px dashed var(--atlas-copper); }
.atlas-overview { border-top: 1px solid #d4d7cb; }
.atlas-map-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.atlas-map { display: block; width: 100%; height: auto; }
.atlas-map--overview { min-width: 800px; }
.atlas-sea { fill: var(--atlas-water); }
.atlas-land { fill: var(--atlas-land); stroke: #a3a694; stroke-width: 0.8; stroke-linejoin: round; }
.atlas-border { fill: none; stroke: #bab7a6; stroke-width: 0.6; }
.atlas-lake { fill: var(--atlas-water); stroke: #a3a694; stroke-width: 0.6; }
.atlas-graticule { fill: none; stroke: #aab9b1; stroke-width: 0.6; opacity: 0.3; }
.atlas-region, .atlas-context {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 4px;
  fill: #6b7367;
}
.atlas-context { font-size: 9px; letter-spacing: 2px; fill: #7c8172; }
.atlas-ocean { font-size: 25px; font-style: italic; fill: #72877d; letter-spacing: 1px; }
.atlas-ocean--small { font-size: 15px; letter-spacing: 0.5px; }
.atlas-annotation { font-family: system-ui, sans-serif; font-size: 11px; fill: #5e6c62; }
.atlas-inset-frame { fill: none; stroke: #72836e; stroke-width: 0.8; stroke-dasharray: 3 4; opacity: 0.7; }
.atlas-journey {
  fill: none;
  stroke: var(--atlas-copper);
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 150ms ease, stroke-width 150ms ease;
}
.atlas-journey.is-active { opacity: 0.95; stroke-width: 2; }
.atlas-node { cursor: pointer; outline: none; }
.atlas-leader { fill: none; stroke: #63715e; stroke-width: 0.8; opacity: 0.75; pointer-events: none; }
.atlas-point-target, .atlas-label-target { fill: transparent; }
.atlas-point-halo { fill: var(--atlas-copper); opacity: 0; pointer-events: none; }
.atlas-point { fill: var(--atlas-copper); stroke: #faf8f1; stroke-width: 1.6; pointer-events: none; }
.atlas-node--arrival .atlas-point { fill: var(--atlas-paper); stroke: var(--atlas-copper); stroke-width: 1.7; }
.atlas-place-label, .atlas-place-subtitle {
  fill: var(--atlas-ink);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  paint-order: stroke fill;
  stroke: var(--atlas-paper);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.atlas-place-subtitle {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 11px;
  stroke-width: 3px;
  fill: #5c645c;
}
.atlas-map--europe .atlas-place-label { font-size: 17px; }
.atlas-node.is-active .atlas-point-halo, .atlas-node:hover .atlas-point-halo { opacity: 0.16; }
.atlas-node.is-active .atlas-place-label, .atlas-node:hover .atlas-place-label { fill: #864b2c; }
.atlas-node:focus-visible .atlas-label-target { stroke: var(--atlas-copper); stroke-width: 1.6; fill: #f8f5ee; fill-opacity: 0.8; }
.atlas-node:focus-visible .atlas-point-target { stroke: var(--atlas-copper); stroke-width: 1.5; stroke-dasharray: 2 2; }
.atlas-map-scroll:focus-visible { outline: 2px solid var(--atlas-copper); outline-offset: -3px; }
.atlas-overview-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 2rem;
  border-top: 1px solid #d4d7cb;
  border-bottom: 1px solid #d4d7cb;
  font: 500 0.6rem/1.5 system-ui, sans-serif;
  letter-spacing: 0.12em;
  color: var(--atlas-muted);
}
.atlas-caption-note { font-weight: 400; letter-spacing: 0; }
.atlas-mobile-hint { display: none; letter-spacing: 0; }
.atlas-lower { display: grid; grid-template-columns: 1fr 1fr; }
.atlas-europe { border-right: 1px solid #d4d7cb; min-width: 0; }
.atlas-europe figcaption { padding: 1.6rem 2rem 1.2rem; }
.atlas-europe figcaption p { font-size: 1.15rem; margin: 0.25rem 0 0; }
.atlas-details { padding: 1.7rem 2rem 1.3rem; min-width: 0; }
.atlas-select-label { display: block; margin-bottom: 0.5rem; }
.atlas-details select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #bbc2b4;
  border-radius: 2px;
  padding: 0.65rem 2rem 0.65rem 0.7rem;
  background-color: #fffcf6;
  color: var(--atlas-ink);
  font: 400 0.8rem/1.4 var(--font-serif);
}
.atlas-details select:focus-visible, .atlas-colophon summary:focus-visible { outline: 2px solid var(--atlas-copper); outline-offset: 3px; }
.atlas-detail-branch { margin: 1.7rem 0 0.4rem; color: #865336; }
.atlas-detail-content h3 { font-size: 1.65rem; font-weight: 200; line-height: 1.4; margin: 0 0 0.7rem; color: var(--atlas-ink); }
.atlas-detail-content > p:not(.atlas-detail-branch) { font-size: 0.83rem; line-height: 1.8; margin-bottom: 1rem; }
.atlas-detail-content .atlas-detail-journey {
  border-left: 2px solid #aa7957;
  padding-left: 0.85rem;
  color: #7b4d31;
  font-weight: 400;
  font-size: 0.77rem;
}
.atlas-detail-associations { border-top: 1px solid #d4d7cb; padding-top: 1rem; margin: 1.1rem 0; }
.atlas-detail-associations > div { display: grid; grid-template-columns: 7.4rem 1fr; gap: 1rem; margin-bottom: 0.65rem; }
.atlas-detail-associations dt { font: 500 0.64rem/1.65 system-ui, sans-serif; color: var(--atlas-muted); }
.atlas-detail-associations dd { font-size: 0.77rem; line-height: 1.6; }
.atlas-detail-content .atlas-detail-position { color: var(--atlas-muted); font-size: 0.66rem !important; font-family: system-ui, sans-serif; }
.atlas-selection-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atlas-colophon { border-top: 1px solid #d4d7cb; padding: 1rem 2rem; display: flex; gap: 2rem; justify-content: space-between; align-items: start; }
.atlas-colophon > p { font-style: italic; font-size: 0.7rem; margin: 0; }
.atlas-colophon details { font: 400 0.65rem/1.8 system-ui, sans-serif; max-width: 31rem; }
.atlas-colophon summary { cursor: pointer; white-space: nowrap; text-align: right; }
.atlas-colophon details[open] summary { margin-bottom: 0.7rem; }
.atlas-colophon details p { margin-bottom: 0.7rem; }
.atlas-noscript { margin: 1rem 2rem; font-size: 0.85rem; }
.family-atlas [hidden] { display: none !important; }
@media (max-width: 900px) {
  .family-atlas { width: calc(100vw - 32px); }
  .atlas-heading, .atlas-details { padding-left: 1.3rem; padding-right: 1.3rem; }
  .atlas-detail-content h3 { font-size: 1.4rem; }
  .atlas-detail-associations > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .atlas-europe figcaption { padding-left: 1.3rem; padding-right: 1.3rem; }
}
@media (max-width: 680px) {
  .family-atlas { margin-top: 2rem; }
  .atlas-heading { display: block; padding: 1.3rem 1rem 0.8rem; }
  .atlas-instruction { margin-top: 0.75rem; font-size: 0.75rem; }
  .atlas-instruction br { display: none; }
  .atlas-legend { padding: 0 1rem 1rem; gap: 0.6rem 1rem; font-size: 0.6rem; }
  .atlas-overview-caption { padding: 0.7rem 1rem; flex-wrap: wrap; gap: 0.3rem; font-size: 0.55rem; }
  .atlas-caption-note { display: none; }
  .atlas-mobile-hint { display: inline; }
  .atlas-lower { grid-template-columns: 1fr; }
  .atlas-europe { border-right: 0; border-bottom: 1px solid #d4d7cb; }
  .atlas-europe figcaption { padding: 1.3rem 1rem 1rem; }
  .atlas-europe figcaption p { font-size: 1rem; }
  .atlas-map--europe .atlas-place-label { font-size: 21px; }
  .atlas-map--europe .atlas-place-subtitle { font-size: 14px; }
  .atlas-details { padding: 1.3rem 1rem; }
  .atlas-details select { font-size: 16px; }
  .atlas-detail-branch { margin-top: 1.3rem; }
  .atlas-detail-content h3 { font-size: 1.6rem; }
  .atlas-detail-associations > div { grid-template-columns: 7.4rem 1fr; gap: 0.75rem; }
  .atlas-colophon { padding: 1rem; display: block; }
  .atlas-colophon details { margin-top: 0.7rem; }
  .atlas-colophon summary { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-journey { transition: none; }
}
