/* ===================================
   Stop page redesign — overrides on top of xbit.css.
   Loaded only by stop.html.j2, so these rules are safe to be
   page-wide (body, .guide-header, etc.) without extra scoping.
   =================================== */

body {
    background-color: #efece4;
    color: #38353c;
}

a {
    color: #8e6a41;
}

a:hover {
    color: #6f5130;
}

.guide-header {
    padding: 10px 16px;
}

.header-logo {
    width: 132px;
}

.guide-main {
    max-width: 720px;
    padding: 0 20px;
}

.guide-footer {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 16px;
}

.footer-logo {
    width: 132px;
}

.footer-address {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.footer-credit {
    margin-left: 0;
}

/* ---- Breadcrumb nav ---- */
.stop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #ddd7c9;
}

.stop-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #8e6a41;
}

.stop-nav-current {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9c948a;
    white-space: nowrap;
}

/* ---- Hero ---- */
.stop-hero {
    padding: 36px 0 4px;
}

.stop-eyebrow {
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8e6a41;
    line-height: 1.4;
}

.stop-title {
    margin-top: 22px;
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #38353c;
}

.stop-subtitle {
    margin-top: 14px;
    font-size: 17px;
    font-style: italic;
    color: #6d665e;
}

/* ---- Story description ---- */
.content-body {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.7;
    color: #443f39;
}

/* ---- Site map ---- */
.stop-map {
    margin: 28px 0 0;
    background-color: #fffdf8;
    border: 1px solid #ddd7c9;
    border-radius: 12px;
    overflow: hidden;
}

.stop-map-image {
    position: relative;
    background-color: #e8e2d4;
}

.stop-map-image img {
    display: block;
    width: 100%;
    height: auto;
}

.stop-map-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.stop-map-marker-dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #8e6a41;
    border: 2px solid #fffdf8;
    box-shadow: 0 1px 4px rgba(56, 53, 60, 0.35);
}

.stop-map-marker-pulse {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #8e6a41;
    animation: stop-map-pulse 2s ease-out infinite;
}

/* Overview map: larger dots carrying the stop number. */
.stop-map-marker--numbered .stop-map-marker-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #fffdf8;
}

.stop-map-marker--numbered .stop-map-marker-pulse {
    width: 24px;
    height: 24px;
}

@keyframes stop-map-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stop-map-marker-pulse {
        animation: none;
        opacity: 0.35;
    }
}

.stop-map-caption {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #ddd7c9;
    font-size: 15px;
    color: #6d665e;
}

.stop-map-caption-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background-color: #8e6a41;
}

/* ---- Q&A section ---- */
.qa-section {
    margin-top: 48px;
}

.qa-section-kicker {
    width: 44px;
    height: 4px;
    background-color: #8e6a41;
}

.qa-section h2 {
    margin: 14px 0 0;
    padding: 0;
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 28px;
    font-weight: 700;
    color: #38353c;
    text-transform: none;
}

.qa-section h2::after {
    display: none;
}

.qa-section-intro {
    margin-top: 8px;
    font-size: 16px;
    color: #6d665e;
}

.qa-item {
    border-top: 1px solid #ddd7c9;
    border-bottom: none;
}

.qa-item:last-child {
    border-bottom: 1px solid #ddd7c9;
}

.qa-summary {
    align-items: flex-start;
    min-height: 64px;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.qa-summary::after {
    content: "+";
    margin-top: 4px;
    font-size: 18px;
}

.qa-item[open] > .qa-summary::after {
    content: "\2212";
}

.qa-body {
    padding: 0 0 26px;
}

.qa-description {
    font-size: 17px;
    line-height: 1.7;
    color: #4a443d;
    margin-bottom: 18px;
}

/* ---- Accuracy card ---- */
.accuracy-card {
    margin-top: 48px;
    margin-bottom: 48px;
    background-color: #e5dfd1;
    border-radius: 12px;
    padding: 28px 24px;
}

.accuracy-card h2 {
    margin: 14px 0 0;
    padding: 0;
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 26px;
    font-weight: 700;
    color: #38353c;
    text-transform: none;
}

.accuracy-card h2::after {
    display: none;
}

.accuracy-card p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.7;
    color: #4a443d;
}

.accuracy-card p:first-of-type {
    margin-top: 16px;
}

.accuracy-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8e6a41;
    text-decoration: none;
    border-bottom: 2px solid #c9b394;
}

/* ---- Next stop CTA ---- */
.next-stop-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0 48px;
    padding: 22px 24px;
    background-color: #8e6a41;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
}

.next-stop-card:hover {
    background-color: #7c5c37;
    color: #fff;
}

.next-stop-kicker {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
}

.next-stop-title {
    display: block;
    margin-top: 4px;
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}

.next-stop-arrow {
    font-size: 26px;
    flex-shrink: 0;
}

/* ---- Audio player (shared audio-player, themed; tokens documented in its README) ---- */
.stop-player {
    --pm-bg: #38353c;
    --pm-fg: #fff;
    --pm-fg-muted: rgba(255, 255, 255, 0.62);
    --pm-border: transparent;
    --pm-radius: 12px;
    --pm-padding: 20px;
    --pm-accent: #c79a5f;
    --pm-on-accent: #38353c;
    --pm-accent-hover: #d9b07a;
    --pm-focus-ring: #c79a5f;
    --pm-error: #ffb4a8;
    --pm-wave-played: #c79a5f;
    --pm-wave-unplayed: rgba(255, 255, 255, 0.22);
    --pm-heading-fg: #fff;
    --pm-speaker-fg: #c79a5f;
    --pm-line-active-bg: rgba(199, 154, 95, 0.22);
    --pm-line-active-fg: #fff;
    --pm-line-hover-bg: rgba(255, 255, 255, 0.08);
    --pm-font-body: Lato, Helvetica, Arial, sans-serif;
    --pm-font-heading: museo-slab, "Times New Roman", Times, serif;
}

.stop-player {
    margin-top: 28px;
}

.stop-player .pm-player {
    box-shadow: none;
}

.qa-body .stop-player {
    margin-top: 0;
}

.static-transcript h2 {
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 22px;
    color: #38353c;
}

.static-transcript dt {
    font-weight: 700;
}

.static-transcript dd {
    margin: 0 0 10px;
}

/* AI narration note under the main player. */
.stop-player-note {
    margin: 12px 0 0;
    font-size: 14px;
    color: #6d665e;
}
