/* Shared reading edition layout; legacy posts retain their original presentation. */
.reading-pilot .pilot-section-intro, .pilot-relation-note { font-size: 13px; color: var(--muted); line-height: 1.85; margin: 0 0 18px; word-break: keep-all; overflow-wrap: anywhere; }
.reading-pilot .geo-view-switch { background: #eaece1; border-radius: 12px; padding: 4px; gap: 4px; }
.reading-pilot .geo-view-switch button { min-height: 50px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; }
.reading-pilot .geo-view-switch button[aria-pressed="true"] { background: #fffef8; color: #33482c; box-shadow: 0 2px 8px #26351b15; }
.reading-pilot .geographic-map { height: clamp(300px, 48vh, 430px); }
.reading-pilot .geo-title { word-break: keep-all; overflow-wrap: anywhere; }
.reading-pilot .geo-selection { scroll-margin-top: calc(var(--reader-top, 0px) + 16px); scroll-margin-bottom: calc(var(--qt-toolbar-height, 0px) + 20px); }
.reading-pilot .geographic-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.pilot-map-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pilot-map-shortcuts button { min-height: 48px; border: 1px solid #c9cebd; background: #fffdf7; color: #344b2d; border-radius: 10px; font-size: 13px; text-align: left; padding: 10px; }
.pilot-map-shortcuts button[aria-pressed="true"] { background: #e9eedf; border-color: #6e845b; }
.pilot-map-shortcuts span { display: inline-grid; place-items: center; width: 23px; height: 23px; background: #b94c3f; color: #fff; border-radius: 50%; margin-right: 7px; font-size: 12px; }
.pilot-map-expand { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 15px; background: #4c6040; color: #fffdf7; border-radius: 10px; margin: 12px 0; font-size: 13px; text-decoration: none; }
.reading-pilot.geo-page .geo-intro { display: none; }
.reading-pilot.geo-page .geo-title { font-size: 20px; }
.reading-pilot.geo-page .geographic-map { height: clamp(320px, calc(100dvh - 290px), 680px); min-height: 0; }
.pilot-nation-relation { padding-top: 3px; }
.pilot-nation-relation h4 { color: #4a603b; font-size: 12px; font-weight: 650; margin: 12px 0 4px; }
.pilot-nation-relation p { margin: 0 0 10px; }
.pilot-nation-relation a, .pilot-reference-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #516b40; text-underline-offset: 4px; }
.pilot-actors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.pilot-actors article { border: 1px solid #d9ddce; border-radius: 12px; padding: 16px; background: #fffef8; }
.pilot-actors article > span { font-size: 11px; color: #7b725f; }
.pilot-actors h4 { font-size: 15px; color: #35492d; line-height: 1.6; margin: 5px 0 8px; }
.pilot-actors p, .pilot-relation-edge > p { font-size: 13px; line-height: 1.85; margin: 0 0 10px; word-break: keep-all; overflow-wrap: anywhere; }
.pilot-actors small, .pilot-relation-edge > small { font-size: 11px; color: #7a7c6e; }
.pilot-relation-group { margin: 10px 0; border: 1px solid #d6dccb; border-radius: 12px; background: #fffef8; overflow: hidden; }
.pilot-relation-group > summary { display: flex; justify-content: space-between; gap: 12px; min-height: 52px; padding: 15px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.pilot-relation-group > summary::-webkit-details-marker { display: none; }
.pilot-relation-group > summary > span { transition: transform 180ms; }
.pilot-relation-group > summary[aria-expanded="true"] > span { transform: rotate(180deg); }
.pilot-relation-edges { padding: 0 16px; }
.pilot-relation-edge { border-top: 1px solid #e6e8dc; padding: 22px 0; }
.pilot-edge-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 16px; }
.pilot-edge-diagram > strong { padding: 13px 10px; border-radius: 9px; background: #eef1e6; font-size: 13px; line-height: 1.7; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.pilot-edge-link { display: grid; gap: 6px; text-align: center; }
.pilot-edge-link > span:first-child { font-size: 11px; color: #65764f; }
.pilot-edge-link small { font-size: 11px; line-height: 1.65; color: #6f7567; word-break: keep-all; overflow-wrap: anywhere; }
.pilot-edge-arrow { position: relative; height: 1px; background: #859779; margin: 7px 0; }
.pilot-edge-arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #859779; border-right: 1px solid #859779; transform: rotate(45deg); }
.pilot-edge-arrow.is-both::before { content: ''; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-bottom: 1px solid #859779; border-left: 1px solid #859779; transform: rotate(45deg); }
.pilot-relation-note { margin-top: 18px; }
.pilot-reading-key { border-radius: 12px; background: #f0f2e8; padding: 16px 18px; margin-bottom: 28px; }
.pilot-reading-key p { font-size: 13px; line-height: 1.8; margin: 5px 0; color: #626c57; }
.pilot-reading-key strong { display: block; color: #405335; font-weight: 650; }
.pilot-explanation section { margin: 0 0 24px; }
.pilot-explanation h3 { font-size: 12px; font-weight: 650; letter-spacing: .01em; color: #64794e; margin-bottom: 9px; }
.pilot-explanation p { font-size: calc(1rem * var(--reading-scale, 1)); line-height: 1.95; color: #464a40; word-break: keep-all; overflow-wrap: anywhere; }
.pilot-map-locator { display: flex; align-items: center; justify-content: center; background: #526943; color: #fff; border: 2px solid #fff; border-radius: 22px; box-shadow: 0 2px 8px #25321a33; font: 600 13px/1.2 sans-serif; white-space: nowrap; }
.pilot-map-locator:focus-visible { outline: 3px solid #315fb5; outline-offset: 3px; }
.pilot-plain { border-left: 2px solid #c6d2b3; padding-left: 15px; }
.pilot-explanation .pilot-context-refs { font-size: 12px; color: #7d806f; margin-top: 12px; line-height: 1.85; }
.pilot-word { padding: 16px 18px; background: #f4f0e3; border-radius: 10px; margin: 0 0 22px; }
.pilot-word h4 { font-size: 13px; color: #7c6946; margin: 0 0 8px; }
.pilot-word p { font-size: calc(.9rem * var(--reading-scale, 1)); }
.pilot-source { padding: 16px 0; border-top: 1px solid #e5e7dc; }
.pilot-source a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #526943; }
.pilot-source p, .pilot-scripture { font-size: 13px; line-height: 1.85; }
.pilot-explanation .reference-byline, .pilot-explanation .reference-accessed { font-size: 11px; color: #7b806f; }
.pilot-scripture figcaption { color: #65784f; font-size: 12px; }
.pilot-scripture blockquote { border-left: 2px solid #a7b891; margin: 10px 0 20px; padding: 12px 15px; background: #f6f6ee; }
@media (max-width: 600px) {
    .pilot-actors { grid-template-columns: 1fr; }
    .pilot-actors article { padding: 14px 16px; }
    .pilot-edge-diagram { grid-template-columns: 1fr; gap: 8px; }
    .pilot-edge-diagram > strong { text-align: left; padding: 12px 15px; }
    .pilot-edge-link { position: relative; gap: 3px; text-align: left; padding: 8px 0 8px 38px; min-height: 62px; }
    .pilot-edge-arrow { position: absolute; width: 1px; height: calc(100% - 18px); top: 2px; left: 18px; margin: 0; }
    .pilot-edge-arrow::after { top: auto; bottom: 0; right: -3px; transform: rotate(135deg); }
    .pilot-edge-arrow.is-both::before { top: 0; left: -3px; transform: rotate(135deg); }
    .pilot-relation-edges { padding-inline: 14px; }
    .pilot-explanation p { font-size: calc(.95rem * var(--reading-scale, 1)); }
    .pilot-word { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pilot-relation-group > summary > span { transition: none; } }
