.timeline-page {
  display: block;
  padding: clamp(38px, 5.7vw, 85px) 0 clamp(64px, 8vw, 120px);
}
.timeline-page [hidden] { display: none !important; }
.timeline-page [data-kind="Education"] { --block: #9ec0e2; --dot: light-dark(#3f687f, var(--block)); }
.timeline-page [data-kind="Experience"] { --block: #f29380; --dot: light-dark(#a54431, var(--block)); }
.timeline-page [data-kind="Leadership"] { --block: #c8adc9; --dot: light-dark(#775878, var(--block)); }
.timeline-page [data-kind="Credentials"] { --block: #efbd78; --dot: light-dark(#88601f, var(--block)); }
.tl-intro {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
  margin-bottom: clamp(36px, 5.3vw, 78px);
}
.tl-period, .tl-source, .tl-count, .tl-meta, .tl-chart-key, .tl-tick, .tl-all-years {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.tl-period {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--accent);
  letter-spacing: .055em;
}
.tl-period span { width: 40px; height: 1px; background: currentColor; }
.tl-heading h1 {
  font: 400 clamp(64px, 7.4vw, 112px)/1 var(--serif);
  letter-spacing: -.07em;
  margin: 12px 0 18px;
}
.tl-heading h1 span { color: var(--accent); }
.tl-deck { max-width: 36ch; color: var(--muted); font-size: clamp(17px,1.4vw,21px); line-height: 1.53; }
.tl-source { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.tl-overview {
  color-scheme: dark;
  --chart-grid: rgb(230 237 243 / .15);
  color: var(--stage-ink);
  background: var(--stage);
  padding: clamp(18px, 2.25vw, 34px);
  border-radius: 4px;
  min-width: 0;
}
.tl-chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tl-chart-head h2 { font: 400 clamp(19px, 1.8vw, 28px)/1.15 var(--serif); letter-spacing: -.035em; }
.tl-all-years {
  border: 1px solid var(--stage-muted); background: transparent; color: var(--stage-ink);
  padding: 6px 11px; border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.tl-all-years[aria-pressed="true"] { background: var(--stage-action); border-color: var(--stage-action); color: var(--on-stage-action); }
.tl-all-years:not(:disabled):hover { box-shadow: 0 0 0 1px var(--stage-ink); }
.tl-year-select { display: none; }
.tl-bars {
  --plot-height: clamp(100px, 8.8vw, 136px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--tl-years), minmax(0,1fr));
  margin: 22px 0 12px;
  isolation: isolate;
}
.tl-bars::before {
  content: ""; position: absolute; inset: 0 0 auto; height: var(--plot-height); z-index: -1;
  background-image: repeating-linear-gradient(to top,var(--chart-grid) 0 1px,transparent 1px calc(100% / var(--tl-peak))),
    linear-gradient(to right,rgb(230 237 243 / .06) 1px,transparent 1px);
  background-size: 100% 100%, calc(100% / var(--tl-years)) 100%;
}
.tl-column {
  color: var(--stage-ink); border: 0; background: transparent; border-radius: 2px;
  padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; text-align: center;
}
button.tl-column:not(:disabled) { cursor: pointer; }
button.tl-column:not(:disabled):hover, button.tl-column:focus-visible { background: rgb(230 237 243 / .13); }
.tl-column[aria-pressed="true"] { background: rgb(230 237 243 / .10); }
.tl-overview :is(button, select):focus-visible { outline-color: var(--stage-focus, #79baff); outline-offset: 1px; }
.tl-stack {
  display: flex; flex-direction: column-reverse; gap: 2px; justify-content: flex-start;
  margin: 0 auto; width: 68%; height: var(--plot-height);
  animation: tl-rise .56s cubic-bezier(.16,1,.3,1) both; transform-origin: bottom;
}
.tl-block {
  display: block; height: calc(var(--plot-height) / var(--tl-peak) - 2px);
  width: 100%; background: var(--block); border-radius: 1px;
  transition: opacity .16s, background-color .2s, box-shadow .2s;
}
.tl-tick { display: block; padding-top: 8px; font-size: clamp(10px,.92vw,13px); }
.tl-gap .tl-tick { color: var(--stage-muted); }
.tl-column[aria-pressed="true"] .tl-tick { color: var(--stage-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--stage-action); text-underline-offset: 4px; }
.tl-bars:has([aria-pressed="true"]) button:not([aria-pressed="true"]) .tl-block { opacity: .38; }
.tl-bars .tl-stack .tl-muted-block { background: transparent; box-shadow: inset 0 0 0 1px var(--stage-muted); }
.tl-chart-key { color: var(--stage-muted); font-size: 11px; }
.tl-chart-key span[aria-hidden] { display: inline-block; width: 11px; height: 7px; margin-right: 4px; border: 1px solid currentColor; }
.tl-tools {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  border-block: 1px solid var(--rule); padding: 12px 0;
}
.tl-count { color: var(--muted); margin-left: auto; }
.tl-count > span:nth-child(2) { padding-inline: 4px; color: var(--accent); }
.tl-filters { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tl-filters button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; padding: 9px 13px; min-height: 40px; font-size: 14px; border-radius: 22px;
  border: 1px solid transparent; cursor: pointer; color: var(--ink);
}
.tl-filters button:hover { border-color: var(--control-border); }
.tl-filters button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.tl-swatch, .tl-kind::before { width: 8px; height: 8px; border-radius: 1px; background: var(--dot); flex: none; }
.tl-filters button[aria-pressed="true"] .tl-swatch { background: var(--block); box-shadow: 0 0 0 1px currentColor; }
.tl-group {
  display: grid; grid-template-columns: clamp(106px, 16%, 230px) minmax(0,1fr);
  gap: clamp(20px, 3vw, 48px); border-bottom: 1px solid var(--rule);
  padding: clamp(24px, 2.6vw, 40px) 0;
}
.tl-group h2 { font: 400 clamp(42px, 4.6vw, 70px)/1 var(--serif); letter-spacing: -.06em; }
.tl-entries { border-left: 1px solid var(--rule); min-width: 0; }
.tl-entry { position: relative; padding-left: clamp(20px, 3vw, 46px); }
.tl-entry::before {
  content: ""; position: absolute; left: -4px; top: 28px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px var(--paper);
}
.tl-entry[open]::before { background: var(--accent); }
.tl-entry summary { list-style: none; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 20px 4px 20px 0; cursor: pointer; }
.tl-entry summary::-webkit-details-marker { display: none; }
.tl-entry + .tl-entry summary { border-top: 1px solid var(--rule); }
.tl-entry-head { display: grid; gap: 5px; }
.tl-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 2px; color: var(--muted); }
.tl-kind { display: inline-flex; align-items: center; gap: 6px; }
.tl-kind::before { content: ""; }
.tl-title { font-weight: 550; font-size: clamp(21px, 1.9vw, 29px); letter-spacing: -.04em; line-height: 1.2; }
.tl-org { color: var(--muted); font-size: 15px; line-height: 1.45; }
.tl-disclosure { position: relative; width: 32px; height: 32px; flex: none; border: 1px solid var(--control-border); border-radius: 50%; transition: background .16s; }
.tl-disclosure::before, .tl-disclosure::after {
  content: ""; position: absolute; width: 12px; height: 1px; background: var(--ink); left: calc(50% - 6px); top: 50%;
}
.tl-disclosure::after { transform: rotate(90deg); transition: transform .2s; }
.tl-entry[open] .tl-disclosure::after { transform: rotate(0); }
.tl-entry summary:hover .tl-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.tl-entry summary:hover .tl-disclosure { background: var(--hover); }
.tl-body { max-width: 68ch; padding: 0 42px 22px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tl-body a, .tl-empty button { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tl-body a { display: inline-block; padding: 8px 0 0; }
.tl-entry[open] .tl-body, .timeline-page[data-enhanced] .tl-group:not([hidden]) { animation: tl-show .24s ease-out; }
@supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
  .tl-entry::details-content {
    interpolate-size: allow-keywords;
    block-size: 0;
    overflow: clip;
    transition: block-size .22s ease, content-visibility .22s allow-discrete;
  }
  .tl-entry[open]::details-content { block-size: auto; }
}
.tl-empty { padding: 40px 0; }
.tl-empty button { cursor: pointer; padding: 12px 0; background: transparent; border: 0; }
.timeline-page:not([data-enhanced]) :is(.tl-filters, .tl-all-years, .tl-chart-hint, .tl-year-select) { display: none; }
@keyframes tl-rise { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@keyframes tl-show { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (min-width: 751px) and (max-width: 1040px) {
  .tl-century { display: none; }
}
@media (max-width: 750px) {
  .tl-intro { grid-template-columns: 1fr; gap: 17px; margin-bottom: 28px; }
  .tl-deck { max-width: 44ch; }
  .tl-source { margin-top: 4px; }
  .tl-group { grid-template-columns: 88px minmax(0,1fr); gap: 15px; }
  .tl-tools { gap: 6px; }
  .tl-filters button { min-height: 44px; padding-inline: 11px; }
  .tl-count { margin-left: 0; }
}
@media (max-width: 540px) {
  .tl-century { display: none; }
  .tl-overview { padding: 18px 14px; }
  .tl-all-years { display: none; }
  .tl-year-select {
    display: block; min-height: 44px; border: 1px solid var(--stage-muted); border-radius: 3px;
    padding: 6px 7px; color: var(--on-stage-action); background: var(--stage-action); font: 12px var(--mono);
  }
  .tl-bars { margin-top: 18px; }
  .tl-group { display: block; padding: 24px 0 10px; }
  .tl-group h2 { font-size: 43px; margin-bottom: 16px; }
  .tl-entries { margin-left: 4px; }
  .tl-entry { padding-left: 18px; }
  .tl-body { padding-right: 4px; font-size: 15px; }
  .tl-filters { gap: 0; }
  .tl-tools { display: grid; }
  .tl-filters button { font-size: 13px; gap: 5px; padding-inline: 9px; }
  .tl-count { padding-left: 3px; }
  .tl-meta { font-size: 11px; gap: 3px 10px; }
}
@media (max-width: 435px) {
  .tl-filters { display: grid; grid-template-columns: repeat(3, max-content); }
  .tl-filters button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-page *, .timeline-page *::after, .tl-entry::details-content { animation: none !important; transition: none !important; }
}
@media print {
  .timeline-page { padding: 0; }
  .tl-intro { display: block; margin-bottom: 15px; }
  .tl-heading h1 { font-size: 38px; }
  .tl-overview, .tl-source, .tl-tools, .tl-empty, .tl-disclosure { display: none; }
  .tl-group, .tl-entry { break-inside: avoid; }
  .tl-group { padding: 12px 0; grid-template-columns: 75px 1fr; }
  .tl-group h2 { font-size: 30px; }
  .tl-entry summary, .tl-body { padding-block: 5px; }
  .tl-entry::details-content { display: contents; content-visibility: visible; block-size: auto; }
  .tl-title { font-size: 17px; }
}
