.timeline-page {
  width: min(1180px, calc(100% - 64px));
  margin: 2.5rem auto 0;
}
.timeline-page [hidden] { display: none !important; }
.timeline-back { color: var(--soft); font-size: .85rem; }
.timeline-back:hover { color: var(--gold); }
.timeline-heading { max-width: 780px; margin: 2rem 0 2.5rem; }
.timeline-heading .eyebrow { color: var(--gold); margin-bottom: .7rem; }
.timeline-heading h1 { color: var(--paper); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.06; margin: 0 0 1rem; }
.timeline-heading h1 em { color: var(--gold); }
.timeline-heading > p:last-child { max-width: 60ch; color: var(--soft); font-size: 1.05rem; }
.timeline-page button, .timeline-page select { font-family: var(--sans); }
.timeline-page button:focus-visible, .timeline-page select:focus-visible, .timeline-page summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.timeline-interactive { display: grid; padding: 2rem; background: var(--paper); color: var(--ink); border-radius: var(--radius); }
.timeline-controls { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.timeline-controls > p { display: contents; }
.timeline-controls label { display: grid; gap: .35rem; font-size: .73rem; font-weight: 700; color: var(--muted); letter-spacing: .015em; }
.timeline-controls select { min-height: 44px; max-width: 100%; padding: .5rem 2rem .5rem .7rem; color: var(--ink); background: #fffaf0; border: 1px solid #bbaeaa; border-radius: 5px; font-size: .83rem; }
.timeline-album-select { flex: 1; min-width: 220px; }
.timeline-reset { min-height: 44px; padding: .4rem .7rem; border: 0; background: transparent; color: var(--purple); text-decoration: underline; text-underline-offset: .2em; font-size: .83rem; }
.timeline-count { margin: 1.25rem 0 0; font-size: .78rem; color: var(--muted); }
.timeline-chart-hint { color: var(--muted); font-size: .75rem; margin: .5rem 0 0; }
.timeline-plot { position: relative; height: 280px; margin: 0 60px; }
.timeline-axis { position: absolute; top: 130px; width: 100%; height: 2px; background: #cbbfc6; }
.timeline-tick { position: absolute; top: 244px; color: var(--muted); font-size: .7rem; transform: translateX(-50%); }
.timeline-tick::before { content: ""; position: absolute; bottom: 1.8rem; left: 50%; width: 1px; height: 7px; background: #cbbfc6; }
.timeline-stop {
  position: absolute;
  top: 131px;
  width: 36px;
  height: 36px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.timeline-dot { display: block; width: 17px; height: 17px; margin: auto; border: 2px solid var(--ink); border-radius: 50%; background: var(--album-color); }
.timeline-stop::before { content: ""; position: absolute; left: 50%; width: 1px; height: 32px; background: #bbaeaa; }
.timeline-stop.is-above::before { bottom: 26px; }
.timeline-stop.is-below::before { top: 26px; }
.timeline-stop-label { position: absolute; left: 50%; transform: translateX(-50%); display: grid; gap: .3rem; width: 122px; font-size: .73rem; font-weight: 600; line-height: 1.25; text-align: center; }
.timeline-stop.is-above .timeline-stop-label { bottom: 65px; }
.timeline-stop.is-below .timeline-stop-label { top: 65px; }
.timeline-stop-date { color: var(--muted); font-size: .65rem; font-weight: 400; }
.timeline-stop.is-selected .timeline-dot { outline: 3px solid var(--purple); outline-offset: 4px; }
.timeline-stop.is-selected .timeline-stop-label, .timeline-stop:hover .timeline-stop-label { color: var(--purple); }
.timeline-stop.is-selected .timeline-stop-label > span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.timeline-detail { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem; border: 1px solid #d5c8c6; border-radius: 6px; background: #fffaf0; scroll-margin-top: 90px; }
.timeline-record { width: 115px; height: 115px; border-radius: 50%; background: repeating-radial-gradient(circle at center, #211b27 0, #211b27 3px, #332b38 4px, #211b27 5px); display: grid; place-items: center; }
.timeline-record span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--record-color); color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.timeline-edition { color: var(--purple); margin: 0 0 .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.timeline-detail h2 { margin: 0 0 .3rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.15; }
.timeline-subtitle { color: var(--muted); font-size: .85rem; margin: 0; }
.timeline-release { color: var(--purple); font-weight: 600; margin: .55rem 0 .85rem; font-size: .9rem; }
#album-summary { max-width: 70ch; font-size: .93rem; margin-bottom: 1rem; }
.timeline-date-note { font-size: .78rem; color: var(--muted); }
.timeline-detail-bottom { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.timeline-detail-bottom a { font-size: .8rem; font-weight: 600; }
#album-gap { margin: 0; color: var(--muted); font-size: .75rem; flex: 1; min-width: 180px; }
.timeline-stepper { grid-column: 2; display: flex; justify-content: space-between; gap: 1rem; }
.timeline-stepper button { min-height: 44px; padding: .5rem .8rem; border: 1px solid #bbaeaa; border-radius: 5px; color: var(--ink); background: transparent; font-size: .82rem; font-weight: 600; }
.timeline-stepper button:hover:not(:disabled) { background: var(--gold); }
.timeline-stepper button:disabled { opacity: .4; cursor: default; }
.timeline-scope { max-width: 85ch; color: var(--soft); margin: 1.5rem 0; font-size: .82rem; }
.timeline-scope a { color: var(--gold); }
.timeline-sources { padding: 1.15rem 1.5rem; border: 1px solid var(--night-line); border-radius: 6px; }
.timeline-sources summary { color: var(--paper); cursor: pointer; font-size: .9rem; }
.timeline-table-wrap { overflow-x: auto; }
.timeline-table { width: 100%; margin-top: 1rem; border-collapse: collapse; color: var(--paper); font-size: .85rem; }
.timeline-table caption { color: var(--soft); padding: .7rem 0; text-align: left; font-size: .75rem; }
.timeline-table th, .timeline-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--night-line); text-align: left; }
.timeline-table th { font-weight: 500; }
.timeline-table a { color: var(--gold); }
.timeline-table time { white-space: nowrap; }
.timeline-signoff { margin: 2rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; }
.timeline-loading { color: var(--soft); font-size: .85rem; }
.timeline-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.timeline-stop.is-single .timeline-dot {border-radius:2px;transform:rotate(45deg);}
.timeline-chart.is-dense .timeline-stop-label {opacity:0;pointer-events:none;background:var(--paper);padding:.25rem;z-index:5;}
.timeline-chart.is-dense .timeline-stop:hover .timeline-stop-label,
.timeline-chart.is-dense .timeline-stop:focus-visible .timeline-stop-label,
.timeline-chart.is-dense .timeline-stop.is-selected .timeline-stop-label {opacity:1;}
.timeline-chart.is-layered .timeline-plot {height:395px;}
.timeline-chart.is-layered .timeline-axis {top:115px;}
.timeline-chart.is-layered .timeline-stop:not(.is-single) {top:116px;}
.timeline-chart.is-layered .timeline-stop.is-single {top:266px;}
.timeline-chart.is-layered .timeline-tick {top:355px;}
.timeline-secondary-axis {position:absolute;top:265px;height:2px;width:100%;background:#cbbfc6;}
.timeline-lane-label {position:absolute;left:-55px;font-size:.65rem;color:var(--muted);}
.album-lane {top:107px;}
.single-lane {top:257px;}
.timeline-period {position:absolute;height:16px;padding:0;border:1px solid var(--ink);border-radius:4px;background:var(--album-color);color:var(--ink);}
.timeline-period-label {position:absolute;bottom:45px;left:50%;transform:translateX(-50%);width:150px;font-weight:600;font-size:.8rem;}
.timeline-period-range {position:absolute;bottom:23px;left:50%;transform:translateX(-50%);width:180px;font-size:.68rem;}
.timeline-period-bridge {position:absolute;left:100%;top:7px;height:1px;border-top:1px dashed var(--purple);}
.timeline-period-release {position:absolute;top:-2px;width:19px;height:19px;border:2px solid var(--purple);border-radius:50%;background:var(--paper);transform:translateX(-50%);}
.timeline-period-release-label {position:absolute;top:27px;transform:translateX(-50%);width:170px;font-size:.7rem;}
.timeline-period.is-selected {outline:3px solid var(--purple);outline-offset:4px;}
.timeline-chart.is-recording .timeline-axis {top:230px;}
.timeline-sources h3 {color:var(--paper);font-size:1.2rem;margin:1.5rem 0 .5rem;}
#album-sound-link {font-size:.8rem;font-weight:600;}

@media (max-width: 1000px) {
  .timeline-interactive { padding: 1.5rem; }
  .timeline-plot { margin-inline: 46px; }
  .timeline-stop-label { width: 104px; font-size: .69rem; }
}
@media (max-width: 900px) {
  .timeline-page { width: calc(100% - 32px); margin-top: 1.5rem; }
  .timeline-heading { margin-block: 1.5rem 2rem; }
  .timeline-heading h1 { font-size: 2.7rem; }
  .timeline-interactive { padding: 1.1rem; }
  .timeline-controls { gap: .8rem; }
  .timeline-controls label { min-width: 0; }
  .timeline-album-select { flex-basis: 100%; }
  .timeline-album-select select { width: 100%; }
  .timeline-controls label:first-child { flex: 1; }
  .timeline-reset { min-height: 36px; padding: 0; }
  .timeline-count { margin-bottom: 1rem; }
  .timeline-detail { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; gap: 1rem; }
  .timeline-record { display: none; }
  .timeline-stepper { grid-column: 1; }
  .timeline-detail-bottom { gap: .7rem; }
  .timeline-detail { order: 1; }
  .timeline-chart { order: 2; margin-top: 1.25rem; }
  .timeline-chart-hint { font-size: 0; }
  .timeline-chart-hint::after { content: "Tap an album below, or use the album selector above."; font-size: .75rem; }
  .timeline-plot { height: auto; margin: 1rem 0 0; }
  .timeline-axis, #timeline-ticks { display: none; }
  #timeline-stops { position: relative; }
  #timeline-stops::before { content: ""; position: absolute; top: 20px; bottom: 25px; left: 14px; width: 2px; background: #cbbfc6; }
  .timeline-stop { display: block; position: relative; top: auto; left: auto !important; width: 100%; height: auto; min-height: 62px; padding: .7rem .5rem .7rem 43px; transform: none; border-radius: 5px; text-align: left; }
  .timeline-stop::before { display: none; }
  .timeline-dot { position: absolute; top: calc(50% - 8.5px); left: 7px; }
  .timeline-stop .timeline-stop-label { position: static; width: auto; transform: none; text-align: left; font-size: .82rem; }
  .timeline-stop-date { font-size: .72rem; }
  .timeline-stop.is-selected { background: #f0e7dc; }
  .timeline-sources { padding: 1rem; }
  .timeline-chart.is-layered .timeline-plot {height:auto;}
  .timeline-chart.is-layered .timeline-stop:not(.is-single),
  .timeline-chart.is-layered .timeline-stop.is-single {top:auto;}
  .timeline-chart.is-dense .timeline-stop-label {opacity:1;background:transparent;padding:0;}
  .timeline-secondary-axis,.timeline-lane-label {display:none;}
  .timeline-chart.is-recording #timeline-stops::before {display:none;}
  .timeline-period {position:relative;display:grid;gap:.4rem;top:auto!important;left:auto!important;width:100%!important;height:auto;min-height:100px;text-align:left;margin-bottom:1rem;padding:1rem;background:#fffaf0;border:1px solid #d5c8c6;}
  .timeline-period-label,.timeline-period-range,.timeline-period-release-label {position:static;transform:none;width:auto;}
  .timeline-period-bridge,.timeline-period-release {display:none;}
}

/* Brand stripe on the interactive panel */
.timeline-interactive { position: relative; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.timeline-interactive::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.timeline-heading { margin-top: 3rem; }
.timeline-edition, .timeline-stop-date, .timeline-tick, .timeline-count { font-family: var(--mono); letter-spacing: .02em; }
.timeline-sources { border-radius: var(--radius); }
@media (max-width: 900px) {
  .timeline-controls label:first-child select { width: 100%; }
}

/* ---- The making of each album (sessions chart) ---- */
.sessions-panel {
  position: relative; margin: 1.5rem 0; padding: 1.75rem;
  border-radius: var(--radius); background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.sessions-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.sessions-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1rem; }
.sessions-head .eyebrow { margin-bottom: .35rem; }
.sessions-head h2 { margin: 0 0 .4rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sessions-sub { max-width: 62ch; margin: 0; color: var(--muted); font-size: .88rem; }
.sessions-mode { display: flex; gap: .4rem; }
.sessions-mode button { min-height: 42px; padding: .4rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--sans); font-size: .85rem; font-weight: 600; }
.sessions-mode button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sessions-loading { color: var(--muted); font-size: .85rem; }
.sessions-chart-wrap { overflow-x: auto; }
#sessions-chart { display: block; }
.sess-axis line { stroke: #e6dccb; }
.sess-axis text { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.sess-label { fill: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.sess-hit { fill: transparent; }
.sess-row { cursor: pointer; outline: none; }
.sess-row:hover .sess-hit, .sess-row:focus-visible .sess-hit { fill: rgba(31, 24, 48, .05); }
.sess-row.is-selected .sess-hit { fill: rgba(255, 199, 44, .22); }
.sess-row:focus-visible .sess-label { text-decoration: underline; }
.sess-tick { stroke-width: 1.5; }
.sess-bridge { stroke-width: 1.5; stroke-dasharray: 3 3; }
.sess-release { fill: var(--paper); stroke-width: 2.5; }
.sessions-tip {
  position: absolute; z-index: 5; max-width: 300px; padding: .7rem .85rem; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-size: .8rem; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.sessions-tip strong { display: block; font-family: var(--serif); font-size: 1rem; }
.sess-tip-line { display: block; }
.sess-tip-sub { display: block; margin-top: .3rem; color: var(--soft); font-size: .72rem; }
.sessions-detail { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--paper-line); border-left: 6px solid var(--album, var(--gold)); border-radius: 8px; background: #fffaf0; }
.sessions-detail .eyebrow { margin-bottom: .3rem; font-size: .68rem; }
.sessions-detail h3 { margin: 0 0 .7rem; font-size: 1.6rem; color: var(--ink); }
.sess-facts { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0 0 .8rem; }
.sess-facts dt { color: var(--muted); font-family: var(--mono); font-size: .66rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.sess-facts dd { margin: 0; font-weight: 600; }
.sess-subhead { margin: .6rem 0 .2rem; font-weight: 700; font-size: .85rem; }
.sess-phases { margin: 0 0 .6rem; padding-left: 1.1rem; font-size: .85rem; }
.sess-notes { font-size: .88rem; }
.sess-sources { font-size: .78rem; font-weight: 600; margin: 0; }
@media (max-width: 760px) { .sessions-panel { padding: 1.1rem; } }
.timeline-table small { display: block; margin-top: .3rem; color: var(--soft); font-size: .75rem; }
.sessions-panel { scroll-margin-top: 90px; }
.sessions-scroll-hint { display: none; margin: 0 0 .4rem; color: var(--muted); font-size: .75rem; }
@media (max-width: 760px) { .sessions-scroll-hint { display: block; } }
