.story-timeline {
  max-width: 1020px;
}
.story-timeline .back-link {
  color: var(--muted);
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.timeline-heading {
  padding: 14px 0 25px;
}
.timeline-heading-photo {
  flex: none;
}
.timeline-heading .home-story-credit {
  min-height: 24px;
  margin-top: 3px;
}
.timeline-heading .timeline-latest {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  margin: .8rem 0 .12rem;
  font-size: .87rem;
}
.timeline-latest strong {
  font-variant-numeric: tabular-nums;
}
.timeline-years {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: 0 0 1.15rem;
}
.timeline-years a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
}
.timeline-years a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.timeline-year {
  display: grid;
  grid-template-columns: minmax(72px, .7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(16px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
  padding: clamp(18px, 3.5vw, 32px) 0;
}
.timeline-year h2 {
  margin: 0;
  font: 550 clamp(1.15rem, 2.5vw, 1.6rem)/1.4 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeline-events,
.timeline-event,
.timeline-product-head {
  min-width: 0;
}
.timeline-event + .timeline-event {
  margin-top: 1.65rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}
.timeline-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .87rem;
}
.timeline-evidence {
  padding: .21rem .52rem;
  border-radius: 3px;
  background: #e8eee7;
  color: #31483a;
  font-weight: 650;
}
.timeline-evidence.is-campaign {
  color: #684923;
  background: #f3e9d6;
}
.story-timeline .interview-record {
  border: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.story-timeline .interview-record + .interview-record {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dotted var(--line);
}
/* Product imagery, identity and note names stay visible at every width. */
.timeline-product {
  display: grid;
  grid-template-columns: clamp(160px, 20vw, 230px) minmax(0,1fr);
  grid-template-areas: "art head" "art notes" "art link";
  grid-template-rows: auto auto 1fr;
  gap: .8rem clamp(16px,3vw,32px);
  align-items: start;
}
.timeline-art { grid-area: art; min-width: 0; }
.timeline-art .product-photo {
  width:100%;
  height:auto;
  aspect-ratio:1;
  min-height:0;
  max-height:none;
  overflow:hidden;
  border-radius:6px;
  background:#f2efed;
}
.timeline-art .product-photo > img { display:block; width:100%; height:100%; padding:0; object-fit:contain; }
.timeline-text-only { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "notes" "link"; }
.timeline-product-head { grid-area: head; align-self: end; }
.timeline-product-brand,.timeline-format { color:var(--muted); font-size:.9rem; line-height:1.45; }
.timeline-product-brand { margin:0 0 .25rem; font-weight:650; }
.story-timeline .interview-record h3 {
  margin:0;
  color:var(--ink);
  font:650 clamp(1.35rem,3vw,1.9rem)/1.24 var(--sans,system-ui);
  letter-spacing:-.045em;
  overflow-wrap:anywhere;
}
.timeline-format { margin:.25rem 0 0; }
.timeline-notes { grid-area:notes; min-width:0; }
.timeline-notes h4 { margin:0 0 .35rem; color:var(--ink); font:680 .95rem/1.45 var(--sans,system-ui); }
.timeline-notes ul { display:flex; flex-wrap:wrap; align-items:center; gap:.32rem .4rem; margin:0; padding:0; list-style:none; }
.timeline-notes li {
  display:inline-flex; align-items:center; gap:.38rem; min-width:0;
  padding:.25rem .58rem;
  border:1px solid var(--line);
  border-radius:99px;
  background:var(--paper); color:var(--ink);
  font-size:1rem;
  line-height:1.45;
}
.timeline-notes li > span {
  width:.72rem; height:.72rem; flex:none;
  border-radius:50%; background:var(--swatch,#a595ac); box-shadow:inset 0 0 0 1px #0003;
}
.timeline-notes .timeline-extra { color:var(--muted); border:0; background:none; padding-inline:.15rem; font-size:.86rem; }
.timeline-product-link {
  grid-area:link; display:inline-flex; align-items:center; justify-self:start;
  min-height:44px; padding:0 .9rem; border:1px solid #c7bcd6; border-radius:5px;
  color:var(--iris-ink); font-size:.9rem; font-weight:630;
}
.timeline-product-link:hover { background:var(--iris-wash); }
.timeline-unmatched,.timeline-checked { font-size:.82rem; color:var(--muted); }
.timeline-source { border-top:1px solid var(--line); margin:.9rem 0 0; }
.timeline-source summary {
  min-height:44px; padding:.63rem 0; cursor:pointer; width:fit-content; max-width:100%;
  color:var(--muted); font-size:.8125rem; font-weight:650; overflow-wrap:anywhere;
}
.timeline-source summary span { margin-left:.25rem; font-weight:450; }
.timeline-source-body {
  max-width:70ch; margin:0 0 .35rem; padding:0 0 0 .8rem; border-left:2px solid var(--line);
  font-size:.875rem; line-height:1.6; color:var(--muted); overflow-wrap:anywhere;
}
.timeline-source-body p { margin:.25rem 0; }
.timeline-source-record + .timeline-source-record { margin-top:.5rem; }
.timeline-source-links { display:flex; flex-wrap:wrap; align-items:baseline; gap:.18rem .8rem; }
.timeline-source-links a { padding-block:.18rem; text-decoration:underline; text-underline-offset:.2em; }
.story-timeline a:focus-visible,.story-timeline summary:focus-visible { outline:2px solid var(--iris-ink); outline-offset:3px; }
@media(max-width:700px) {
  .timeline-year { display:block; }
  .timeline-year h2 { margin-bottom:.7rem; }
  .timeline-heading { gap:16px; padding:6px 0 20px; }
  .timeline-product { grid-template-columns:minmax(130px, 32%) minmax(0,1fr); }
}
@media(max-width:480px) {
  .timeline-product {
    grid-template-columns:clamp(96px,29vw,132px) minmax(0,1fr);
    grid-template-areas:"art head" "notes notes" "link link";
    gap:.8rem .95rem;
  }
  .timeline-product-head { align-self:center; }
  .timeline-text-only { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "notes" "link"; }
  .timeline-source { margin-top:.75rem; }
}

.timeline-year.single-year { display:block; }
@media (max-width:480px) {
  .timeline-product { grid-template-columns:minmax(124px,42%) minmax(0,1fr); }
  .timeline-art .product-photo { aspect-ratio:4/5; }
  .timeline-product.timeline-text-only { grid-template-columns:minmax(0,1fr); }
  .timeline-heading.profile-heading { padding:5px 0 12px; }
}
