/* Six public proofs. Scoped to the parallel landing; era keeps its own styles. */
.journey-section {
  padding-block: clamp(3rem, 5vw, 5rem);
  background: var(--parallel-paper);
  color: var(--parallel-night);
  --journey-muted: #52626b;
  --journey-line: #d4d9d5;
}
.journey-context,
.journey-migrations {
  background: var(--parallel-night);
  color: var(--parallel-light);
  --journey-muted: #b7c7cf;
  --journey-line: #365064;
}
.journey-overview { background: #eeeade; }
.journey-shell { width: min(calc(100% - 4rem), 78rem); margin-inline: auto; }
.journey-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.journey-copy { min-width: 0; }
.journey-kicker { margin: 0 0 .8rem; color: var(--journey-muted); font-size: .9rem; font-weight: 700; }
.journey-copy h2 { max-width: 15ch; margin: 0; font: 500 clamp(2.3rem, 3.6vw, 3.5rem)/1.04 "Cormorant Garamond", Georgia, serif; text-wrap: balance; }
.journey-copy > p:not(.journey-kicker) { max-width: 38ch; margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.journey-copy .journey-invitation { color: var(--journey-muted); font-size: .9rem; }
.journey-cta { display: inline-flex; gap: 1rem; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; margin-top: 1.65rem; padding: .8rem 1.1rem; border: 1px solid var(--parallel-deep); border-radius: 8px; background: var(--parallel-deep); color: #fff; font: 700 .9rem/1.4 Mulish, Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .18s ease; }
.journey-cta span { flex: 0 0 auto; }
.journey-context .journey-cta,
.journey-migrations .journey-cta { border-color: #aac0cf; }
.journey-cta:hover { background: #164560; }
.journey-section :is(a, button, input, select, summary, [role="button"]):focus-visible { outline: 3px solid #c79052; outline-offset: 4px; }
.journey-reassurance { display: block; margin-top: .85rem; color: var(--journey-muted); font-size: .8rem; line-height: 1.6; }
.journey-reassurance a { text-underline-offset: .2em; }
.journey-demo-note { margin: .85rem 0 0; color: var(--journey-muted); font-size: .8rem; line-height: 1.5; text-align: center; }
.journey-section [hidden] { display: none !important; }

/* Geographic proof: real reference outline and point projection, zero tiles. */
.geocoding-proof { overflow: hidden; border: 1px solid #8cbbc8; border-radius: 12px; background: #b6dceb; }
.geocoding-toolbar { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--parallel-paper); color: #435d6b; font-size: .8rem; }
.geocoding-status { color: #3b614b; font-weight: 700; }
.geocoding-canvas { position: relative; }
.journey-france { display: block; width: 100%; height: clamp(18rem, 25vw, 25rem); }
.journey-france .journey-map-context { fill: #c7d9b5; stroke: #7b9e82; }
.journey-france .journey-map-land { fill: #faf1d7; stroke: #4c8499; stroke-width: .4; }
.journey-map-context { fill: #cfdbd8; stroke: #9bb3bd; stroke-width: .22; stroke-linejoin: round; }
.journey-map-land { fill: #faf8ef; stroke: #829da9; stroke-width: .3; stroke-linejoin: round; }
.geocoding-pin { cursor: pointer; }
.geocoding-hit { fill: transparent; }
.geocoding-halo { fill: #315f7d; opacity: .12; }
.geocoding-dot { fill: #315f7d; stroke: #fff; stroke-width: .5; }
.geocoding-pin text { fill: #24495e; font: 600 3.1px Mulish, Arial, sans-serif; paint-order: stroke; stroke: #faf1d7; stroke-width: 1.2px; stroke-linejoin: round; opacity: 0; pointer-events: none; }
.geocoding-pin:is(:hover, :focus-visible, [aria-pressed="true"]) text { opacity: 1; }
.geocoding-pin:is([data-geocode-select="quimper"], [data-geocode-select="lyon"], [data-geocode-select="bordeaux"], [data-geocode-select="paris"]) text { opacity: 1; }
.geocoding-pin[aria-pressed="true"] .geocoding-halo { opacity: .35; }
.geocoding-pin[aria-pressed="true"] .geocoding-dot { fill: #9a5a2e; }
.geocoding-pin[aria-pressed="true"] text { font-weight: 800; fill: #071f32; }
.geocoding-person { padding: .85rem 1.2rem; background: var(--parallel-paper); color: #071f32; }
.geocoding-person [data-geocode-person] { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; align-items: baseline; }
.geocoding-person [data-geocode-person] > span { grid-column: 1; grid-row: 1; }
.geocoding-person [data-geocode-person] > strong { grid-column: 1; grid-row: 2; }
.geocoding-person .geocoding-relationship { grid-column: 2; grid-row: 1; color: var(--parallel-lineage); font-weight: 700; }
.geocoding-person [data-geocode-person] > p:last-child { grid-column: 2; grid-row: 2; }
.geocoding-person span { font-size: .8rem; color: #52626b; }
.geocoding-person strong { display: block; margin-top: .3rem; font-size: 1rem; }
.geocoding-person p { margin: .25rem 0 0; font-size: .8rem; }
.geocoding-map-note { position: absolute; right: 1rem; bottom: 1rem; font-size: .75rem; color: #48606c; }
.geocoding-places { display: flex; align-items: center; gap: 1rem; padding: .65rem 1.2rem; border-top: 1px solid var(--journey-line); background: var(--parallel-paper); }
.geocoding-places label { font-size: .8rem; color: var(--journey-muted); }
.geocoding-places select { flex: 1; min-width: 0; min-height: 44px; padding: .5rem; border: 1px solid #8cbbc8; border-radius: 6px; background: var(--parallel-paper); color: var(--parallel-deep); font: inherit; font-size: .9rem; }
.geocoding-places button { min-width: 0; min-height: 65px; border: 0; border-top: 2px solid transparent; padding: .7rem .9rem; background: transparent; color: #435d6b; text-align: left; cursor: pointer; }
.geocoding-places button[aria-pressed="true"] { border-top-color: #315f7d; background: #d3e2e9; color: #062d4a; }
.geocoding-places button:hover { background: #dce8ec; }
.geocoding-places button span { display: block; font-weight: 700; font-size: .95rem; }
.geocoding-places button small { display: block; margin-top: .2rem; font-size: .75rem; }
.journey-map-unavailable { padding: 2rem; line-height: 1.6; }

/* Place context: one reading, geography and languages in natural sentences. */
.journey-search { position: relative; z-index: 2; }
.journey-search label { display: block; margin-bottom: .6rem; font-size: 1rem; font-weight: 700; }
.journey-search-row { display: flex; gap: .6rem; }
.journey-search-row input { flex: 1; min-width: 0; min-height: 48px; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 8px; background: #fbf6ea; color: #071f32; font: inherit; }
.journey-search-row input::placeholder { color: #52626b; }
.journey-search-row button { min-height: 48px; padding: .7rem 1.15rem; border: 1px solid #88a6b8; border-radius: 8px; background: #315f7d; color: #fff; font-weight: 700; cursor: pointer; }
.journey-search-row button:hover { background: #3c6e8e; }
.journey-search-message { min-height: 1.5em; margin: .5rem 0 1.1rem; color: var(--journey-muted); font-size: .8rem; line-height: 1.5; }
.journey-search-results { position: absolute; top: 5.5rem; right: 0; left: 0; z-index: 3; max-height: 20rem; overflow-y: auto; border: 1px solid #92a3aa; border-radius: 8px; background: #fbf6ea; color: #071f32; }
.journey-search-results button { display: block; width: 100%; min-height: 56px; padding: .8rem 1rem; border: 0; border-bottom: 1px solid #d4d9d5; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.journey-search-results button:hover,
.journey-search-results button:focus-visible { background: #e0e9eb; outline-offset: -3px; }
.journey-search-results strong { display: block; font-size: 1rem; }
.journey-search-results span { display: block; margin-top: .3rem; font-size: .8rem; color: #52626b; }
.commune-story header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.commune-story h3 { margin: 0; font: 500 2.4rem/1.1 "Cormorant Garamond", Georgia, serif; }
.commune-story header > span { color: var(--journey-muted); font-size: .8rem; }
.commune-narrative { max-width: 58ch; margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; }
.commune-narrative p { margin: 0 0 .5rem; text-wrap: pretty; }
.commune-narrative strong { font-weight: 700; color: #fff; }
.commune-period { display: block; color: var(--journey-muted); font-size: .8rem; line-height: 1.5; }
.commune-setting { margin: .6rem 0; color: #c2d4c3; font-size: .9rem; }
.commune-attached { color: var(--journey-muted); margin: .5rem 0; font-size: .9rem; }
.commune-photo { position: relative; overflow: hidden; height: 156px; margin: 1.25rem 0 .3rem; border-radius: 8px; background: #163448; }
.commune-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.commune-photo figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: .5rem; align-items: end; padding: 1.4rem .85rem .65rem; background: linear-gradient(transparent, #071f32); color: white; font-size: .75rem; line-height: 1.4; }
.commune-photo figcaption > span { max-width: 55%; }
.commune-photo figcaption a { max-width: 45%; text-align: right; text-underline-offset: .2em; }
.commune-locator { position: absolute; right: .7rem; top: .7rem; width: 6rem; padding: .25rem; border-radius: 6px; background: #071f32; }
.commune-locator svg { display: block; width: 100%; height: auto; }
.commune-locator .journey-map-land { fill: #315f7d; stroke: #dbe4e6; stroke-width: .8; }
.commune-locator .journey-map-context { fill: #19364b; stroke: #638297; }
.commune-photo-empty { display: grid; height: 100%; place-items: center; padding: 1.5rem 7rem 3rem 1.5rem; color: #b7c7cf; font-size: .9rem; }
.commune-photo-retry { min-height: 44px; padding: .5rem 0; border: 0; background: transparent; color: var(--parallel-light); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.commune-sources { color: var(--journey-muted); font-size: .8rem; line-height: 1.6; }
.commune-sources summary { display: flex; align-items: center; min-height: 44px; gap: .65rem; cursor: pointer; list-style: none; }
.commune-sources summary::before { content: "+"; font-size: 1.1rem; }
.commune-sources[open] summary::before { content: "−"; }
.commune-sources p { margin: .25rem 0 .7rem; max-width: 65ch; }
.commune-sources a { display: inline-block; margin-right: 1rem; padding-block: .4rem; }

/* Shared controls inside the three compact demonstrations. */
.journey-switch { display: flex; gap: .25rem; border-bottom: 1px solid var(--journey-line); }
.journey-switch button { flex: 1 1 0; min-width: 0; min-height: 48px; border: 0; border-bottom: 2px solid transparent; padding: .7rem .8rem; background: transparent; color: var(--journey-muted); font-size: .9rem; cursor: pointer; }
.journey-switch button[aria-pressed="true"],
.journey-switch button[aria-selected="true"] { border-bottom-color: currentColor; color: inherit; font-weight: 700; }
.journey-switch button:hover { background: rgba(127, 151, 165, .12); }
.journey-migrations .passelia-migration-map { margin: 0; }
.journey-migrations .passelia-migration-map svg { width: 100%; height: clamp(20rem, 27vw, 28rem); }
.journey-migrations .journey-map-land { fill: #16394e; stroke: #52788f; stroke-width: .3; }
.journey-migrations .journey-map-context { fill: #102d40; stroke: #315569; }
.journey-migration-route { fill: none; stroke-width: .8; stroke-linejoin: round; }
.journey-migration-route--paternal { stroke: #81b3d3; }
.journey-migration-route--maternal { stroke: #b2c7a6; stroke-dasharray: 1.5 1; }
.journey-migrations .passelia-migration-map circle { fill: #c5d6dc; stroke: #071f32; stroke-width: .5; }
.journey-migrations .passelia-migration-map .journey-migration-meeting { fill: #d9aa75; stroke: #fff; }
.journey-migrations .passelia-migration-map text { fill: #e4edf1; font-size: 3px; paint-order: stroke; stroke: #16394e; stroke-width: 1.2px; stroke-linejoin: round; }
.journey-migrations .passelia-migration-map figcaption { font-size: 1rem; color: #f7f1e5; }

/* Fiche: only the selected view is visible, with a working local edit example. */
.journey-person-sheet { overflow: hidden; border: 1px solid #c8cec7; border-radius: 12px; background: #fffdf7; }
.journey-person-identity { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.7rem; }
.journey-monogram { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #e4e9df; color: #526f5a; font: 500 1.6rem "Cormorant Garamond", Georgia, serif; }
.journey-person-identity p { margin: 0 0 .2rem; font: 500 2rem "Cormorant Garamond", Georgia, serif; }
.journey-person-identity span:not(.journey-monogram) { color: #52626b; font-size: .9rem; }
.journey-person-sheet .journey-switch { padding-inline: 1rem; }
.journey-sheet-content { min-height: 19rem; padding: 1.6rem 1.8rem; }
.journey-person-facts { margin: 0; }
.journey-person-facts > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid #dfe3db; }
.journey-person-facts dt { color: #52626b; font-size: .9rem; }
.journey-person-facts dd { margin: 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.journey-sheet-note { color: #52626b; font-size: .9rem; line-height: 1.6; margin: 1.2rem 0 0; }
.journey-sheet-content form label { display: block; font-weight: 700; margin-bottom: .7rem; }
.journey-sheet-content form input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #a5b2b6; border-radius: 8px; background: white; color: #071f32; font: inherit; }
.journey-sheet-content form p { color: #52626b; font-size: .9rem; }
.journey-sheet-content form .journey-cta { margin-top: .4rem; }
.journey-demo-status { display: block; margin-top: .7rem; font-size: .85rem; color: #526f5a; }
.journey-story-label { color: #526f5a; font-size: .9rem; }
.journey-sheet-content blockquote { margin: 1rem 0; font: 500 1.8rem/1.35 "Cormorant Garamond", Georgia, serif; overflow-wrap: anywhere; }
.journey-person-sheet > footer { padding: .85rem 1.8rem; border-top: 1px solid #dfe3db; color: #52626b; font-size: .8rem; }

/* Profile and tree share one stage; readable relationships with orthogonal joins. */
.journey-overview-stage { min-height: 28rem; padding-top: 1.2rem; }
.journey-overview-stage figure { margin: 0; }
.journey-overview-stage img { display: block; width: 100%; height: auto; border: 1px solid #c8cec7; border-radius: 8px; }
.journey-overview-stage figcaption { margin-top: .7rem; text-align: center; font-size: .8rem; color: #52626b; }
.journey-preview-link { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: .5rem; font-size: .8rem; text-underline-offset: .2em; }
.journey-tree-hint { text-align: center; font-size: .8rem; line-height: 1.5; color: #52626b; }
.journey-tree-scroll { overflow-x: auto; padding: 1rem 0; }
.journey-tree-scroll:focus-visible { outline: 3px solid #c79052; outline-offset: 3px; }
.journey-tree { position: relative; width: 600px; height: 330px; margin: auto; }
.journey-tree svg { position: absolute; top: 0; left: 0; width: 600px; height: 300px; }
.journey-tree svg path { fill: none; stroke: #82928d; stroke-width: 1.5; }
.journey-tree-grandparents,
.journey-tree-parents { position: absolute; left: 0; display: grid; width: 100%; align-items: center; justify-items: center; }
.journey-tree-grandparents { top: 12px; grid-template-columns: repeat(4, 1fr); }
.journey-tree-parents { top: 133px; grid-template-columns: repeat(2, 1fr); }
.journey-tree-grandparents > div,
.journey-tree-parents > div,
.journey-tree-root { display: flex; width: 136px; height: 64px; flex-direction: column; justify-content: center; gap: .4rem; padding: .6rem; border: 1px solid #b5c2bd; border-radius: 8px; background: #fbf6ea; text-align: center; }
.journey-tree strong { font-size: .85rem; font-weight: 700; }
.journey-tree span { color: #52626b; font-size: .75rem; }
.journey-tree-root { position: absolute; top: 248px; left: 225px; width: 150px; background: #062d4a; color: #fff; border-color: #062d4a; }
.journey-tree-root span { color: #d1dfe6; }
.journey-tree-caption { margin: .5rem 0 0; text-align: center; font-size: 1rem; }

@media (max-width: 1100px) {
  .journey-layout { gap: 2rem; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
  .journey-shell { width: calc(100% - 3rem); }
  .journey-copy h2 { font-size: 2.7rem; }
  .journey-tree-scroll { overflow-x: auto; }
}
@media (max-width: 860px) {
  .journey-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .journey-copy { display: contents; }
  .journey-layout > :not(.journey-copy) { order: 2; margin-top: 1.5rem; }
  .journey-copy > .journey-cta { order: 3; align-self: flex-start; }
  .journey-copy > .journey-reassurance { order: 4; }
  .journey-shell { max-width: 44rem; }
  .journey-copy h2 { max-width: 22ch; }
  .journey-copy > p:not(.journey-kicker) { max-width: 58ch; }
  .journey-copy .journey-invitation { display: none; }
  .journey-france { height: 22rem; }
  .journey-overview-stage { min-height: 0; }
  .journey-tree { transform: none; margin: auto; }
}
@media (max-width: 520px) {
  .journey-shell { width: calc(100% - 2rem); }
  .journey-section { padding-block: 2.75rem; }
  .journey-copy h2 { font-size: 2.45rem; }
  .journey-cta { width: 100%; }
  .geocoding-toolbar { padding: .85rem; font-size: .75rem; }
  .geocoding-status { display: none; }
  .journey-france { height: 18rem; }
  .geocoding-person { padding: .8rem 1rem; }
  .geocoding-person [data-geocode-person] { display: flex; flex-direction: column; gap: .3rem; }
  .geocoding-person strong { margin: 0; }
  .geocoding-person p { margin: 0; }
  .geocoding-places { flex-direction: column; align-items: stretch; gap: .4rem; padding: .75rem 1rem; }
  .geocoding-map-note { top: .6rem; bottom: auto; font-size: .7rem; }
  .geocoding-places button { padding-inline: .65rem; }
  .geocoding-places button small { font-size: .65rem; }
  .journey-search-row { gap: .5rem; }
  .journey-search-row input { padding-inline: .7rem; }
  .journey-search-row button { padding-inline: .7rem; font-size: .85rem; }
  .commune-narrative { font-size: 1rem; }
  .commune-photo { height: 170px; }
  .commune-photo figcaption { flex-wrap: wrap; }
  .commune-photo figcaption > span,
  .commune-photo figcaption a { max-width: 100%; }
  .commune-photo figcaption a { text-align: left; }
  .journey-migrations .passelia-migration-map svg { height: 20rem; }
  .journey-switch button { padding-inline: .45rem; font-size: .8rem; }
  .journey-sheet-content { padding: 1rem 1.1rem; min-height: 20rem; }
  .journey-person-facts > div { grid-template-columns: 1fr; gap: .3rem; }
  .journey-person-sheet > footer { padding-inline: 1.1rem; }
  .journey-tree-caption { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-cta { transition: none; }
}
