/* Public fixture only. Palette contracts: map/data/branchColors.js and
   map/history/historyCartographicTheme.js. Working labels use Map's Mulish. */
.journey-geocoding { padding-block: 2rem; }
.journey-geocoding .journey-layout { grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4rem); }
.journey-geocoding .journey-copy { display: grid; gap: 2.2rem; }
.geocoding-heading .journey-kicker { margin-bottom: 1.3rem; }
.journey-geocoding .journey-copy h2 { max-width: 15ch; font-size: clamp(2.3rem, 3.4vw, 3.2rem); }
.geocoding-heading .journey-invitation { margin: 1.3rem 0 0; font: 600 .95rem/1.6 Mulish, Arial, sans-serif; color: #3f718d; }
.geocoding-copy > p { max-width: 55ch; margin: 0; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.geocoding-copy .journey-cta { margin-top: 1.6rem; }
.geocoding-copy .journey-reassurance { margin-top: .85rem; }
.geocoding-proof { position: relative; font-family: Mulish, system-ui, sans-serif; border-color: #a6afad; }
.geocoding-proof [data-branch="pp"] { --branch-color: #228be6; --branch-surface: #e6f0fa; }
.geocoding-proof [data-branch="pm"] { --branch-color: #a682ff; --branch-surface: #f0eafa; }
.geocoding-proof [data-branch="mp"] { --branch-color: #ffc75f; --branch-surface: #fcf0d8; }
.geocoding-proof [data-branch="mm"] { --branch-color: #ff5e5b; --branch-surface: #fbe7e5; }
.geocoding-proof [data-branch="paternal"],
.geocoding-proof [data-branch="maternal"] { --branch-color: #71838d; --branch-surface: #eaf0ef; }
.geocoding-pp-stop { stop-color: #228be6; }
.geocoding-pm-stop { stop-color: #a682ff; }
.geocoding-mp-stop { stop-color: #ffc75f; }
.geocoding-mm-stop { stop-color: #ff5e5b; }
.geocoding-proof .journey-france { width: 100%; height: auto; aspect-ratio: 210 / 154; max-height: 30rem; }
.geocoding-map-background path { vector-effect: non-scaling-stroke; stroke-width: .8px; }
.geocoding-proof .journey-map-context { fill: #ecebe6; stroke: #a6afad; }
.geocoding-proof .journey-map-land { fill: #f2f0ea; stroke: #788381; }
.geocoding-toolbar { align-items: center; padding-block: .45rem; }
.geocoding-view-switch { display: flex; align-items: center; gap: .35rem; }
.geocoding-view-switch button { min-height: 44px; padding: .45rem .7rem; border: 0; border-radius: 6px; background: transparent; color: #315f7d; font: inherit; cursor: pointer; }
.geocoding-view-switch button[aria-pressed="true"] { background: #071f32; color: #fbf6ea; font-weight: 700; }
.geocoding-view-switch button:hover { text-decoration: underline; text-underline-offset: .25em; }
.geocoding-canvas { background: #d9e7e8; overflow: auto hidden; scrollbar-width: thin; }
[data-geocode-view="tree"] .geocoding-canvas { background: #f1eee4; }
.geocoding-map-background,
.geocoding-map-point,
.geocoding-tree-card,
.geocoding-tree-links,
.geocoding-tree-root { transition: opacity 350ms ease-out; }
[data-geocode-view="tree"] :is(.geocoding-map-background, .geocoding-map-point, .geocoding-map-note),
[data-geocode-view="map"] :is(.geocoding-tree-card, .geocoding-tree-links, .geocoding-tree-root) { opacity: 0; pointer-events: none; }
.geocoding-tree-links path { fill: none; stroke: var(--branch-color); stroke-width: .35; }
.geocoding-tree-root rect { fill: #071f32; }
.geocoding-tree-root text { fill: #fff; font: 700 4.7px Mulish, sans-serif; }
.geocoding-tree-card rect { fill: var(--branch-surface); stroke: var(--branch-color); stroke-width: .35; }
.geocoding-tree-card text { opacity: 1; fill: #071f32; stroke: none; font: 700 4.8px Mulish, sans-serif; }
.geocoding-tree-card .geocoding-tree-place { font-size: 3.7px; font-weight: 400; fill: #435d6b; }
.geocoding-pin[aria-pressed="true"] .geocoding-tree-card rect { stroke-width: .8; }
.geocoding-proof .geocoding-pin .geocoding-dot { fill: var(--branch-color); }
.geocoding-proof [data-branch="paternal"] .geocoding-dot { fill: url(#geo-paternal); }
.geocoding-proof [data-branch="maternal"] .geocoding-dot { fill: url(#geo-maternal); }
.geocoding-proof .geocoding-halo { fill: none; stroke: #071f32; stroke-width: .45; opacity: 0; }
.geocoding-proof .geocoding-pin:is(:hover, :focus-visible, [aria-pressed="true"]) .geocoding-halo { opacity: 1; }
.journey-geocoding .geocoding-pin:focus,
.journey-geocoding .geocoding-pin:focus-visible { outline: none; }
.geocoding-pin:focus-visible .geocoding-tree-card rect { stroke: #071f32; stroke-width: 1; }
.geocoding-proof .geocoding-tree-card text { opacity: 1; stroke: none; }
.geocoding-caption { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--parallel-paper); border-top: 1px solid #d4d9d5; }
.geocoding-proof .geocoding-person { flex: 0 1 48%; min-width: 0; min-height: 4.7rem; display: flex; align-items: center; padding: .6rem .75rem; border: 1px solid #a6b7bd; border-radius: 8px; background: #fffdf7; }
.geocoding-proof .geocoding-person [data-geocode-person] { display: flex; flex-direction: column; gap: .1rem; }
.geocoding-proof .geocoding-person strong { margin: 0; font-size: 1rem; line-height: 1.4; }
.geocoding-proof .geocoding-person strong span { font-size: inherit; font-weight: 700; color: #071f32; }
.geocoding-proof .geocoding-relationship { color: #52626b; margin: 0; font-weight: 400; font-size: .75rem; line-height: 1.4; }
.geocoding-legend { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: auto auto; gap: .4rem .8rem; color: #314654; font-size: .75rem; line-height: 1.4; }
.geocoding-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.geocoding-legend i { flex: 0 0 auto; width: .65rem; height: .65rem; border-radius: 50%; background: var(--branch-color); }
.geocoding-proof .geocoding-map-note { top: auto; bottom: .45rem; right: .65rem; font-size: .6rem; pointer-events: none; }
.geocoding-map-note a { pointer-events: auto; }
.geocoding-map-note a { color: inherit; text-underline-offset: .15em; }

@media (max-width: 900px) {
  .journey-geocoding .journey-layout { grid-template-columns: minmax(0, 1fr); }
  .journey-geocoding .journey-copy { gap: 1.6rem; }
  [data-geocode-view="tree"] .journey-france { min-width: 590px; }
}

@media (max-width: 600px) {
  .geocoding-toolbar { flex-wrap: wrap; gap: .25rem; }
  .geocoding-toolbar > span { flex: 1 1 13rem; }
  .geocoding-caption { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .6rem .75rem; }
  .geocoding-proof .geocoding-person { flex-basis: auto; width: fit-content; max-width: 100%; min-height: 4.7rem; }
  .geocoding-legend { gap: .5rem; }
  .geocoding-proof[data-geocode-view="map"] .journey-france { height: auto; aspect-ratio: 210 / 154; }
}

@media (prefers-reduced-motion: reduce) {
  .geocoding-proof :is(.geocoding-map-background, .geocoding-map-point, .geocoding-tree-card, .geocoding-tree-links, .geocoding-tree-root) { transition: none; }
}
.geocoding-paris { pointer-events: none; fill: #071f32; }
.geocoding-paris circle { stroke: #fffdf7; stroke-width: .6; }
.geocoding-paris text { font: 600 3px Mulish, sans-serif; paint-order: stroke; stroke: #fbf6ea; stroke-width: .8; stroke-linejoin: round; }
