/* Collection front */
.hub-intro { padding-block: 32px 24px; }
.hub-title { margin-top: 14px; font-size: clamp(44px, 11.4vw, 84px); font-weight: 650; line-height: .92; letter-spacing: -.045em; color: var(--ink); }
.hub-title em { display: block; font-family: 'Instrument Serif', Georgia, serif; font-size: 1.14em; font-style: italic; font-weight: 400; line-height: .98; letter-spacing: -.02em; }
.hero-deck { max-width: 30em; margin-top: 20px; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--muted); }
.trip-hub:not(.is-reading) .browse-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.is-reading .hub-intro { display: none; }
.is-reading .browse-title { margin: 44px 0 16px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; letter-spacing: -.03em; }
.empty-note { display: none; padding: 28px 20px; border: 1.5px dashed var(--chip-line); border-radius: 14px; color: var(--muted); text-align: center; }

/* Filter chips. The filtering itself is plain CSS, driven by the checked inputs. */
.chips { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 22px; }
@supports not selector(:has(*)) { .chips { display: none; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--chip-line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: background-color .15s, color .15s, border-color .15s; }
.chips input:checked + .chip { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.chips input:focus-visible + .chip { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-mark { flex: none; width: 14px; height: 14px; }
.mark-good { fill: #2f9b7f; }
.mark-mixed { fill: #c9851a; }
.mark-ring { fill: none; stroke: #c9851a; stroke-width: 1.5; }
.mark-bad { fill: #d9532f; }
.report-browser:has([name="outcome"]:checked) .report-list > .report-card { display: none; }
.report-browser:has(#outcome-good:checked) .report-list > [data-tone="good"],
.report-browser:has(#outcome-mixed:checked) .report-list > [data-tone="mixed"],
.report-browser:has(#outcome-bad:checked) .report-list > [data-tone="bad"] { display: block; }
.report-browser:has(#stage-first:checked) .report-list > .report-card:not([data-first]) { display: none; }
/* Nothing to show: every checked outcome has no card, or none among the first times. */
.report-browser:has([name="outcome"]:checked):not(:has(#outcome-good:checked):has(.report-card[data-tone="good"]:not([hidden]))):not(:has(#outcome-mixed:checked):has(.report-card[data-tone="mixed"]:not([hidden]))):not(:has(#outcome-bad:checked):has(.report-card[data-tone="bad"]:not([hidden]))) .empty-note,
.report-browser:has(#stage-first:checked):has([name="outcome"]:checked):not(:has(#outcome-good:checked):has(.report-card[data-first][data-tone="good"]:not([hidden]))):not(:has(#outcome-mixed:checked):has(.report-card[data-first][data-tone="mixed"]:not([hidden]))):not(:has(#outcome-bad:checked):has(.report-card[data-first][data-tone="bad"]:not([hidden]))) .empty-note,
.report-browser:has(#stage-first:checked):not(:has(.report-card[data-first]:not([hidden]))) .empty-note { display: block; }

/* Ticket cards */
.report-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 48px; }
.report-card { --stub: 56px; position: relative; overflow: hidden; overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 12px; transition: border-color .22s ease; }
.card-head { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); min-height: 124px; background: var(--surface); transition: background-color .22s ease; }
.card-head::before, .card-head::after { content: ""; position: absolute; right: calc(var(--stub) - 8px); width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.card-head::before { top: -9px; }
.card-head::after { bottom: -9px; transition: opacity .2s ease; }
.card-face { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 17px 14px 17px 18px; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13px; line-height: 1.35; color: var(--muted); transition: color .22s ease; }
.card-tone { font-weight: 700; transition: color .22s ease; }
[data-tone="good"] .card-tone { color: var(--good); }
[data-tone="mixed"] .card-tone { color: var(--mixed); }
[data-tone="bad"] .card-tone { color: var(--bad); }
.card-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 3.7vw, 28px); font-weight: 560; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; transition: color .22s ease; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after, a.card-stub::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible, a.card-stub:focus-visible { outline: none; }
.card-title a:focus-visible::after, a.card-stub:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -4px; border-radius: 15px; }
.card-who { display: grid; gap: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .22s ease; }
.card-person { font-weight: 550; color: var(--ink); }
.card-setting { overflow-wrap: anywhere; }
.is-open > .card-head .card-person, .is-loading > .card-head .card-person { color: var(--cream); }
.card-stub { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 0 0; border-left: 2px dashed var(--surface); background: var(--night); color: var(--cream); text-decoration: none; transition: border-color .22s ease; }
.card-number { font-size: 12px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; color: #b3c2b6; white-space: nowrap; }
.card-number small { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.card-mins, .card-read { font-size: 12px; font-weight: 650; line-height: 1.2; text-align: center; }
.is-read:not(.is-open) .card-mins, .is-open .card-read { display: none; }
.card-read { color: #b3c2b6; }
.card-chev { display: grid; place-items: center; width: 30px; height: 30px; margin-block: auto; border: 1px solid currentColor; border-radius: 50%; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.card-chev svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-sun { display: block; width: 44px; height: 22px; }
.sun-disc { fill: var(--peach); }
.sun-ray { fill: none; stroke: var(--sun); stroke-width: 1.2; opacity: .6; }
@media (hover: hover) {
  .report-card:not(.is-open):hover { border-color: var(--chip-line); }
  .report-card:not(.is-open) .card-head:hover .card-chev { transform: translateY(3px); }
}

/* Opening floods the face with the night colour; the stub's chevron turns over. */
.report-card.is-open, .report-card.is-loading { border-color: var(--night); }
.is-open > .card-head, .is-loading > .card-head { background: var(--night); }
.is-open > .card-head .card-title, .is-loading > .card-head .card-title { color: var(--cream); }
.is-open > .card-head .card-tags, .is-open > .card-head .card-who,
.is-loading > .card-head .card-tags, .is-loading > .card-head .card-who { color: #b3c2b6; }
.is-open[data-tone="good"] > .card-head .card-tone, .is-loading[data-tone="good"] > .card-head .card-tone { color: #8fdcc2; }
.is-open[data-tone="mixed"] > .card-head .card-tone, .is-loading[data-tone="mixed"] > .card-head .card-tone { color: #f0c36a; }
.is-open[data-tone="bad"] > .card-head .card-tone, .is-loading[data-tone="bad"] > .card-head .card-tone { color: #ffa286; }
.is-open > .card-head .card-stub, .is-loading > .card-head .card-stub { border-left-color: #33493f; }
.is-open > .card-head .card-chev { transform: rotate(180deg); }
.is-open > .card-head::after { opacity: 0; }
.is-open > .card-head :focus-visible::after { outline-color: var(--sun); }
.reader-mount { margin-top: 20px; }
.reader-mount:empty { display: none; }

/* The opened report */
.card-body { display: flow-root; overflow: hidden; overflow: clip; background: var(--surface); }
/* Tucked behind the face until the face scrolls away, then it holds the title and a way out. */
.reader-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; margin-top: -58px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.reader-bar b { min-width: 0; overflow: hidden; font-weight: 650; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.reader-close { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--chip-line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.reader-bar:focus-within { z-index: 4; }
.reader-close:focus-visible { outline-offset: -3px; }
.reader-read { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; padding: 22px 18px 34px; }
.reader-overview { width: 100%; max-width: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts-top { padding: 13px 15px; border-bottom: 1px dashed var(--chip-line); background: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.compact-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.compact-facts > div { grid-column: 1 / -1; min-width: 0; display: grid; align-content: start; gap: 4px; padding: 12px 15px; background: var(--surface); }
.compact-facts > .fact-paired { grid-column: auto; }
.compact-facts dt { font-size: 12px; font-weight: 550; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.compact-facts dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.compact-facts .fact-paired dd { font-size: 17px; line-height: 1.4; }
.compact-facts dd small { display: block; margin-top: 3px; font-size: 14px; font-weight: 450; color: var(--muted); }
.fact-route { font-weight: 450; }
.facts-note { padding: 10px 15px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.report-emergency-note { margin: 10px 15px; padding: 12px 14px; border: 1.5px solid var(--bad); border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 1.45; color: #5c1f12; }
.report-emergency-note a { color: inherit; }
.story-copy { width: 100%; max-width: 640px; margin-inline: auto; }
.story-copy section + section { margin-top: 38px; }
.story-copy h2 { margin-bottom: 14px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px, 3.2vw, 30px); font-weight: 560; line-height: 1.2; letter-spacing: -.018em; text-wrap: pretty; scroll-margin-top: 74px; }
.story-copy p { margin-bottom: 1.2em; font-size: clamp(17px, 1.75vw, 18.5px); line-height: 1.78; text-wrap: pretty; }
.story-copy p:last-child { margin-bottom: 0; }
.story-opening > p:first-of-type::first-letter { float: left; padding: .06em .1em 0 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 3.6em; font-style: italic; line-height: .78; color: var(--accent); }
.report-contents { width: 100%; max-width: 640px; border-block: 1px solid var(--line); }
.report-contents summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); list-style: none; cursor: pointer; }
.report-contents summary::-webkit-details-marker { display: none; }
.report-contents summary::after { content: "+"; font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1; }
.report-contents [open] > summary::after { content: "−"; }
.report-contents ol { margin: 0; padding: 0 0 14px 1.5em; font-size: 16px; line-height: 1.45; }
.report-contents li { padding: 5px 0; }
.report-contents li::marker { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.report-contents a { text-decoration-color: var(--chip-line); text-underline-offset: 4px; overflow-wrap: anywhere; }
/* The aftermath arrives like morning. */
.reader-dawn { padding: 0 18px 36px; background: linear-gradient(180deg, #f8e1cf 0, #fff2e4 180px, var(--surface) 100%); }
.dawn-top { position: relative; margin: 0 -18px 28px; padding: 22px 66px 13px 18px; border-bottom: 1px solid #dfaa86; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8f3414; }
.dawn-top::after { content: ""; position: absolute; right: 20px; bottom: 0; width: 42px; height: 22px; background: radial-gradient(circle at 50% 100%, var(--peach) 0 12px, transparent 12.5px 17px, #dfaa86 17.5px 18px, transparent 18.5px); pointer-events: none; }
.reader-extras { max-width: 692px; margin-inline: auto; padding: 4px 18px 22px; }
.end-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.end-mark::before, .end-mark::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.reader-byline { font-size: 13.5px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.reader-byline a { color: inherit; }

/* Supporting detail, on demand */
.trip-detail-block { border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.reader-byline + .trip-detail-block { margin-top: 14px; }
.trip-detail-block:last-of-type { border-bottom: 1px solid var(--line); }
.trip-detail-block > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 56px; padding: 9px 0; font-weight: 650; color: var(--ink); list-style: none; cursor: pointer; }
.trip-detail-block > summary::-webkit-details-marker { display: none; }
.trip-detail-block > summary > span, .trip-detail-block > summary > small { grid-column: 1; }
.trip-detail-block > summary > small { font-size: 13px; font-weight: 450; color: var(--muted); }
.trip-detail-block > summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; font-size: 22px; font-weight: 400; line-height: 1; }
.trip-detail-block[open] > summary::after { content: "−"; }
.trip-detail-body { padding-bottom: 16px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.trip-detail-body p { margin: 10px 0; }
.trip-detail-body > :first-child { margin-top: 0; }
.trip-detail-body h2 { margin: 18px 0 6px; font-size: 17px; }
.trip-detail-body h3 { margin: 18px 0 6px; font-size: 16px; }
.trip-dose-events, .trip-full-timeline { list-style: none; padding: 0 0 0 20px; border-left: 1px solid var(--chip-line); margin: 16px 0 18px 4px; }
.trip-dose-events > li, .trip-full-timeline > li { margin: 0 0 16px; position: relative; }
.trip-dose-events > li:last-child, .trip-full-timeline > li:last-child { margin-bottom: 0; }
.trip-dose-events > li::before, .trip-full-timeline > li::before { content: ""; width: 7px; height: 7px; position: absolute; left: -24px; top: 9px; border-radius: 50%; background: var(--sun); }
.trip-dose-events span, .trip-full-timeline span { font-size: 14px; font-weight: 650; color: var(--ink); }
.trip-dose-events p, .trip-full-timeline p { margin: 2px 0 0; }
.trip-info-list > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 16px; border-top: 1px dotted #bdb59d; padding: 9px 0; }
.trip-info-list dt { font-size: 13px; color: var(--muted); }
.trip-info-list dd { margin: 0; }
.trip-source-footer { padding-top: 6px; }
.report-sequence { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 18px; }
.report-sequence a { display: grid; align-content: start; gap: 5px; padding: 13px 16px 15px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s ease; }
.report-sequence a:hover { border-color: var(--ink); }
.report-sequence span { font-size: 12px; font-weight: 650; letter-spacing: .03em; color: var(--muted); }
.report-sequence strong { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 560; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }

.method-note { padding-block: 34px 8px; border-top: 1px solid var(--line); }
.method-note h2 { margin-top: 12px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; letter-spacing: -.03em; }
.method-note h2 em, .collection-hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.12em; font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.method-note > p:not(.eyebrow) { max-width: 44em; margin-top: 14px; font-size: 15px; color: var(--muted); }

/* First-time collection */
.breadcrumbs { font-size: 12px; color: var(--muted); margin-block: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 12px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: '/'; margin-right: 12px; }
.collection-hero { padding: 14px 0 32px; }
.collection-hero h1 { margin-block: 14px 20px; font-size: clamp(36px, 7vw, 54px); line-height: 1.02; letter-spacing: -.04em; }
.collection-hero .hero-deck { max-width: 36em; }
.collection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; font-size: 14px; }
.collection-button { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--night); color: var(--cream); font-weight: 600; text-decoration: none; }
.collection-button:hover { background: #1d352b; }
.collection-link { margin-top: 20px; font-size: 14px; }
.browse-heading { padding-block: 22px 16px; }
.browse-heading h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.browse-heading > p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.starting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.starting-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s ease; }
.starting-card:hover { border-color: var(--ink); }
.starting-card .eyebrow > span { margin: 0 12px 0 0; }
.starting-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 23px; font-weight: 560; line-height: 1.18; letter-spacing: -.015em; }
.starting-card > p:not(.eyebrow) { font-size: 15px; line-height: 1.6; color: var(--muted); }
.starting-read { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; }
.starting-read > span { margin-left: 12px; }
.collection-scope { margin-block: 30px 12px; padding: 18px 22px; border-left: 3px solid var(--peach); border-radius: 0 12px 12px 0; background: var(--soft); font-size: 14px; line-height: 1.7; }
.collection-scope p + p { margin-top: 10px; }
.collection-scope strong { font-weight: 650; }

@media (min-width: 620px) {
  .hub-intro { padding-block: 56px 32px; }
  .report-card { --stub: 68px; }
  .card-face { padding: 20px 22px 20px 26px; }
  .reader-bar { padding: 0 14px 0 26px; }
  .reader-read { padding: 28px 26px 34px; }
  .reader-dawn { padding: 0 26px 38px; }
  .dawn-top { margin: 0 -26px 30px; padding: 26px 76px 13px 26px; }
  .dawn-top::after { right: 30px; }
  .compact-facts > div { padding: 14px 18px; }
  .compact-facts .fact-paired dd { font-size: 18px; }
  .reader-extras { padding: 4px 26px 28px; }
}
@media (max-width: 359px) {
  .compact-facts { grid-template-columns: minmax(0, 1fr); }
  .compact-facts > .fact-paired { grid-column: 1 / -1; }
  .compact-facts .fact-paired dd { font-size: 16px; }
}
@media (max-width: 560px) {
  .starting-grid { grid-template-columns: 1fr; }
  .trip-info-list > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .archive-header, .archive-footer, .chips, .reader-bar, .card-stub, .report-contents, .report-sequence, .method-note, .is-reading .report-browser { display: none !important; }
  .report-card { border: 0; }
  .card-head { display: block; min-height: 0; }
  .is-open > .card-head { background: none; }
  .is-open > .card-head .card-title, .is-open > .card-head .card-person, .is-open > .card-head .card-who, .is-open > .card-head .card-tags, .is-open > .card-head .card-tone { color: black; }
  .dawn-top::after { display: none; }
  .trip-detail-block > summary::after { content: none; }
  .story-copy { max-width: none; }
  .story-copy h2 { break-after: avoid; }
  .story-copy p { font-size: 12pt; orphans: 3; widows: 3; }
  .reader-overview { break-inside: avoid; }
  body { background: white; color: black; }
}
