/* BY DESIGN — IN-STORY TIMELINE: LIGHT, THREE-CHAPTER ACCORDION.
   Styling applies only to timeline built between existing Ghost editor markers. */
[data-bd-timeline-start], [data-bd-timeline-end] { display: none !important; }
body:is(.post-template,.page-template) .gh-content .bd-timeline {
    --tl-ink: #142a49; --tl-muted: #53677e; --tl-blue: #386d8d;
    --tl-pink: #ad3565; --tl-line: #b9ced8; --tl-panel: #f0f4f6;
    grid-column: main; width: 100%; max-width: none; min-width: 0;
    margin: 42px 0 50px; padding: 0;
    background: transparent; border: none;
    color: var(--tl-ink); font-family: var(--bd-sans, Inter, Arial, sans-serif);
}
body:is(.post-template,.page-template) .gh-content .bd-timeline * { box-sizing: border-box; }
body:is(.post-template,.page-template) .gh-content .bd-timeline :is(p,ul,ol,blockquote,figure) { max-width: 100%; }
body:is(.post-template,.page-template) .gh-content .bd-timeline :is(h2,h3,h4,p) { text-decoration: none; }
body:is(.post-template,.page-template) .gh-content .bd-timeline :is(h2,h3)::before,
body:is(.post-template,.page-template) .gh-content .bd-timeline :is(h2,h3)::after { content: none !important; }

/* Story-level label and short introduction, not a second hero card. */
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-intro {
    border-top: 1px solid var(--tl-line); padding: 23px 0 22px;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-label {
    color: var(--tl-blue) !important;
    font: 750 12px/1.4 var(--bd-sans) !important; letter-spacing: .14em;
    text-transform: uppercase; margin: 0 0 10px !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-label::after {
    content: ''; display: block; margin-top: 6px; width: 32px; height: 3px;
    background: var(--tl-blue);
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-title {
    margin: 0 0 8px !important; padding: 0 !important;
    color: var(--tl-ink) !important; font: 700 clamp(24px, 2.4vw, 28px)/1.24 var(--bd-sans) !important;
    letter-spacing: -.02em !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-dek {
    margin: 0 !important; color: var(--tl-muted) !important;
    font: 400 16px/1.55 var(--bd-sans) !important;
}

/* A single slate-blue connector passes the three collapsible organizing chapters. */
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-flow { position: relative; padding: 0 0 0 2px; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-flow::before {
    position: absolute; content: ''; left: 17px; top: 26px; bottom: 24px;
    width: 2px; background: var(--tl-line);
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter {
    position: relative; margin: 0 0 8px !important; padding: 0 0 0 46px;
    border: none; min-width: 0;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter::before {
    position: absolute; z-index: 2; content: attr(data-part);
    left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; background: var(--tl-blue); border: 2px solid #f9f8f5;
    font: 700 15px/1 var(--bd-sans);
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter-summary {
    display: grid; grid-template-columns: minmax(0, 1fr) 22px;
    gap: 12px; align-items: center; cursor: pointer; list-style: none;
    padding: 11px 0 16px; margin: 0 !important;
    border-bottom: 1px solid #d4e0e5;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline summary::-webkit-details-marker { display: none; }
body:is(.post-template,.page-template) .gh-content .bd-timeline summary::marker { content: ''; }
body:is(.post-template,.page-template) .gh-content .bd-timeline summary:focus-visible {
    outline: 2px solid var(--tl-blue); outline-offset: 4px;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter-text { min-width: 0; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-phase {
    display: block; color: var(--tl-ink) !important;
    font: 700 clamp(19px, 1.9vw, 21px)/1.32 var(--bd-sans) !important;
    letter-spacing: -.015em !important; margin: 0 !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-period {
    display: block; color: var(--tl-blue) !important;
    font: 650 12px/1.45 var(--bd-sans) !important;
    text-transform: uppercase; letter-spacing: .08em; margin-top: 6px;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter-toggle,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-toggle {
    color: var(--tl-blue); font: 400 24px/1 Arial, sans-serif;
    text-align: right; align-self: center;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter-toggle::before,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-toggle::before { content: '+'; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter[open] > summary .bd-timeline-chapter-toggle::before,
body:is(.post-template,.page-template) .gh-content .bd-timeline details[open] > summary .bd-timeline-toggle::before { content: '−'; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-phase-content { padding: 0 0 17px; min-width: 0; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-phase-dek {
    display: block; max-width: 760px; margin: 7px 0 0 !important;
    color: var(--tl-muted) !important;
    font: 400 14.5px/1.52 var(--bd-sans) !important;
}

/* Event-level timeline: dates in their own desktop column, first event expanded. */
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-list { list-style: none; margin: 0; padding: 0; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry {
    position: relative; margin: 0; padding: 0;
    border-bottom: 1px solid #d9e3e8;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry:last-child { border-bottom: none; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry::before {
    content: ''; position: absolute; left: -32px; top: 23px;
    width: 9px; height: 9px; border-radius: 50%;
    border: 2px solid var(--tl-blue); background: #f9f8f5; z-index: 1;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry:has(> details[open])::before { background: var(--tl-pink); border-color: var(--tl-pink); }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-summary {
    display: grid; grid-template-columns: minmax(0, 1fr) 22px;
    gap: 10px; align-items: center; cursor: pointer; list-style: none;
    padding: 12px 0 13px; margin: 0 !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-summary-text {
    display: grid; grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px; align-items: start; min-width: 0;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-date {
    display: flex; flex-direction: column; gap: 2px;
    font-family: var(--bd-sans); margin: 0 !important; padding: 0;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-date-day {
    display: block; color: var(--tl-ink) !important;
    font: 750 15px/1.35 var(--bd-sans) !important; letter-spacing: .006em;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-date-year {
    display: block; color: var(--tl-blue) !important;
    font: 650 13px/1.35 var(--bd-sans) !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry-headline {
    display: block; color: var(--tl-ink) !important;
    font: 680 17px/1.36 var(--bd-sans) !important;
    letter-spacing: -.013em; margin: 0 !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body {
    padding: 16px 18px 17px; margin: 0 0 13px 124px;
    background: var(--tl-panel); min-width: 0;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body p,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body li {
    color: #26394c !important; font: 400 16px/1.60 var(--bd-sans) !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body p { margin: 0 0 13px !important; max-width: 760px; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body li { max-width: 760px; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body--media p,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body--media li { max-width: 100%; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body .bd-timeline-source { margin-top: 16px !important; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body p:last-child { margin-bottom: 0 !important; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body strong { color: inherit !important; }
body:is(.post-template,.page-template) .gh-content .bd-timeline a {
    color: #1d5d64 !important; text-decoration: underline !important;
    text-decoration-color: #8baeb3 !important; text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline a:hover { color: #113f47 !important; }
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-source,
body:is(.post-template,.page-template) .gh-content .bd-timeline figcaption {
    color: var(--tl-muted) !important; font: 400 13px/1.5 var(--bd-sans) !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline figure,
body:is(.post-template,.page-template) .gh-content .bd-timeline .kg-image-card { width: 100%; margin: 0 0 12px !important; }
body:is(.post-template,.page-template) .gh-content .bd-timeline :is(figure img,.kg-image-card img) { display: block; max-width: 100%; height: auto; object-fit: contain; }
body:is(.post-template,.page-template) .gh-content .bd-timeline figcaption { margin-top: 6px !important; text-align: left; }
body:is(.post-template,.page-template) .gh-content .bd-timeline blockquote {
    margin: 14px 0 !important; padding: 0 0 0 14px; border-left: 2px solid var(--tl-line);
}
body:is(.post-template,.page-template) .gh-content .bd-timeline blockquote p { color: inherit !important; }

@media (min-width: 680px) {
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body--media {
        display: grid; grid-template-columns: minmax(0, 1fr) 38%;
        gap: 15px; align-items: start;
    }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-detail-copy,
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-detail-media { min-width: 0; }
}
@media (max-width: 767px) {
    body:is(.post-template,.page-template) .gh-content .bd-timeline { margin: 34px 0 42px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-intro { padding: 19px 0; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-title { font-size: 24px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-dek { font-size: 15px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-flow::before { left: 14px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter { padding-left: 40px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-chapter::before { width: 30px; height: 30px; top: 11px; left: -1px; font-size: 13px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-phase { font-size: 18px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry::before { left: -30px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-summary-text { grid-template-columns: 1fr; gap: 5px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-date { flex-direction: row; align-items: baseline; gap: 8px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-date-day { font-size: 13px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-date-year { font-size: 12px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-entry-headline { font-size: 16px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body { margin-left: 0; padding: 13px 14px; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body p,
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body li { font-size: 15px !important; }
}
@media print {
    body:is(.post-template,.page-template) .gh-content .bd-timeline details::details-content { content-visibility: visible !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline :is(.bd-timeline-phase-content,.bd-timeline-details-body) { display: block !important; }
}

/* Evidence sources are a secondary reference level, not another body paragraph. */
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body p.bd-timeline-source,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body li.bd-timeline-source,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body .bd-timeline-source,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body figcaption {
    font-family: var(--bd-sans) !important;
    color: var(--tl-muted) !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}
/* Respect a Ghost editor's wide/full card choice even in an expanded entry. */
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body > .kg-image-card.kg-width-wide,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body > .kg-image-card.kg-width-full {
    width: 100%; grid-column: auto; margin: 18px 0 14px !important;
}
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-detail-media img,
body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body > figure img {
    width: 100%; height: auto; object-fit: contain;
}
@media (max-width: 767px) {
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-phase-dek { font-size: 14px !important; }
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body p.bd-timeline-source,
    body:is(.post-template,.page-template) .gh-content .bd-timeline .bd-timeline-details-body figcaption { font-size: 13px !important; }
}
