/* About path: dates stay on one shared axis; detail content stays in the page. */
.path-section {
  --path-work: #a8b9c7;
  --path-study: #b1bfb4;
  --path-community: #c5b8a8;
  min-width: 0;
  padding-block: 65px 82px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}
.path-section [hidden] { display: none !important; }
.path-section [data-path-group] {
  --path-color: var(--muted);
  --path-rgb: 191, 199, 203;
}
.path-section [data-path-group="work"] { --path-color: var(--path-work); --path-rgb: 168, 185, 199; }
.path-section [data-path-group="study"] { --path-color: var(--path-study); --path-rgb: 177, 191, 180; }
.path-section [data-path-group="community"] { --path-color: var(--path-community); --path-rgb: 197, 184, 168; }
.path-section [data-path-group="milestone"] { --path-color: var(--muted); --path-rgb: 191, 199, 203; }
.path-heading { gap: 28px; margin-bottom: 26px; }
.path-heading > * { min-width: 0; }
.path-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.path-heading .eyebrow { font-size: .875rem; }
.path-heading > p { max-width: 42ch; font-size: 1rem; line-height: 1.8; }
.path-explorer {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .035), transparent 48%), var(--panel);
}
.path-controls { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 15px 28px; min-width: 0; padding: 23px 25px 22px; border-bottom: 1px solid var(--line); }
.path-slider-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.path-slider-label label { min-width: 0; }
.path-slider-label output { color: var(--text); font-size: 1.125rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
input.path-year-range { display: block; width: 100%; min-width: 0; height: 36px; margin: 0; accent-color: var(--accent); }
.path-filter-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.path-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 42px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--muted); font-size: .875rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.path-filter:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .5); }
.path-filter[aria-pressed="true"] { color: var(--text); background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .55); }
.path-filter[data-path-group][aria-pressed="true"] { color: var(--path-color); background: rgba(var(--path-rgb), .12); border-color: rgba(var(--path-rgb), .55); }
.path-chart-scroll {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(var(--accent-rgb), .5) var(--panel);
  scrollbar-width: thin;
  scroll-padding-inline: 25px;
  padding: 18px 25px 20px;
  -webkit-overflow-scrolling: touch;
}
.path-chart-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.path-chart {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 680px;
  padding-bottom: 12px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / var(--year-count, 11)) 100%;
  border-right: 1px solid var(--line);
}
.path-year-highlight {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(var(--selected-column, 10) * 100% / var(--year-count, 11));
  width: calc(100% / var(--year-count, 11));
  border-inline: 1px solid rgba(var(--accent-rgb), .22);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .035));
  pointer-events: none;
}
.path-years, .path-lane, .path-milestones { position: relative; z-index: 1; }
.path-years { display: grid; grid-template-columns: repeat(var(--year-count, 11), minmax(0, 1fr)); margin: 0 0 11px; }
.path-year { justify-self: center; min-width: 58px; min-height: 44px; padding: 9px 7px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: .875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.path-year:hover { color: var(--text); background: rgba(var(--accent-rgb), .08); }
.path-year[aria-pressed="true"] { color: var(--accent); background: var(--panel-solid); border-color: rgba(var(--accent-rgb), .48); }
.path-lane { margin-top: 20px; }
.path-lane-title { display: inline-block; width: fit-content; max-width: 100%; margin: 0 0 11px; padding: 2px 12px 2px 9px; background: var(--panel); color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.5; letter-spacing: .02em; }
.path-bars { display: grid; grid-template-columns: repeat(var(--year-count, 11), minmax(0, 1fr)); grid-template-rows: repeat(var(--lane-rows, 1), 44px); row-gap: 8px; min-width: 0; }
.path-bar {
  grid-column: var(--start) / span var(--span, 1);
  grid-row: var(--row, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  max-width: calc(100% - 8px);
  height: 44px;
  margin-inline: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(var(--path-rgb), .28);
  border-radius: 7px;
  background: rgba(var(--path-rgb), .065);
  color: var(--muted);
  text-align: left;
}
.path-bar-name { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; line-height: 1.25; }
.path-bar-date { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .75rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.path-bar[data-in-year="true"] { color: var(--path-color); background: rgba(var(--path-rgb), .14); border-color: rgba(var(--path-rgb), .6); }
.path-bar[data-in-year="false"] { color: var(--muted); background: rgba(var(--path-rgb), .035); border-color: rgba(var(--path-rgb), .22); }
.path-bar:hover { color: var(--path-color); background: rgba(var(--path-rgb), .17); border-color: var(--path-color); }
.path-bar[aria-pressed="true"] { color: var(--path-color); background: rgba(var(--path-rgb), .23); border-color: var(--path-color); box-shadow: inset 0 0 0 1px var(--path-color); }
.path-bar:focus-visible { position: relative; z-index: 3; outline: 2px solid var(--path-color); outline-offset: 2px; }
.path-bar[data-start-before-range="true"] { border-left-style: dashed; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.path-milestones { display: grid; grid-template-columns: repeat(var(--year-count, 11), minmax(0, 1fr)); align-items: start; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.path-milestone { grid-column: var(--start); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; justify-self: center; width: calc(100% - 8px); min-width: 0; min-height: 56px; padding: 7px 3px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); }
.path-milestone-symbol { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 1.25rem; line-height: 1; }
.path-milestone-label { max-width: 100%; color: inherit; font-size: .875rem; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.path-milestone:hover, .path-milestone[aria-pressed="true"], .path-milestone[data-in-year="true"] { color: var(--text); border-color: var(--line); background: var(--panel-solid); }
.path-milestone[aria-pressed="true"] .path-milestone-symbol, .path-milestone[data-in-year="true"] .path-milestone-symbol { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.path-chart-note, .path-mobile-hint { margin: 0; padding: 0 25px 20px; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.path-mobile-hint { display: none; padding-bottom: 10px; }
.path-selection { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-width: 0; border-top: 1px solid var(--line); }
.path-year-list, .path-details { min-width: 0; padding: 27px 25px 29px; }
.path-year-list { border-right: 1px solid var(--line); }
.path-selection-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 17px; }
.path-selection-header h3 { color: var(--text); font-size: 1.25rem; line-height: 1.4; letter-spacing: -.02em; }
.path-selection-header > :not(h3) { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.path-entry-options { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; max-height: 244px; min-width: 0; overflow-x: hidden; overflow-y: auto; padding: 3px 4px 8px; margin-inline: -4px; scrollbar-color: rgba(var(--accent-rgb), .4) transparent; scrollbar-width: thin; }
.path-option { flex: 1 1 170px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; max-width: 100%; min-height: 70px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent; text-align: left; }
.path-option-name { color: var(--text); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.path-option-kind { color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.path-option:hover { background: rgba(var(--path-rgb), .055); border-color: rgba(var(--path-rgb), .5); }
.path-option[aria-pressed="true"] { background: rgba(var(--path-rgb), .105); border-color: var(--path-color); }
.path-option[aria-pressed="true"] .path-option-name { color: var(--path-color); }
.path-option:focus-visible { outline-color: var(--path-color); outline-offset: 2px; }
.path-year-list > p, .path-entry-options > p { font-size: 1rem; line-height: 1.75; }
.path-details article, .path-details [data-path-detail] { min-width: 0; }
.path-detail-category, .path-details .eyebrow { margin: 0 0 9px; color: var(--path-color, var(--accent)); font-size: .875rem; line-height: 1.6; }
.path-detail-title, .path-details h3 { margin: 0 0 10px; color: var(--text); font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.path-detail-org { margin: 0 0 10px; color: var(--text); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.path-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin: 0 0 17px; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.path-detail-meta > * { min-width: 0; overflow-wrap: anywhere; }
.path-detail-summary { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.path-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 9px 20px; min-width: 0; margin-top: 20px; }
.path-links a { display: inline-block; max-width: 100%; padding-block: 2px 4px; color: var(--text); font-size: .875rem; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.path-links a:hover { color: var(--accent); }
.path-full-list { min-width: 0; margin-top: 26px; border-block: 1px solid var(--line); }
.path-full-list > summary { min-height: 56px; padding: 15px 3px; color: var(--text); font-size: 1rem; line-height: 1.6; cursor: pointer; }
.path-full-list > summary::marker { color: var(--accent); }
.path-full-list > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.path-chronology { margin: 0; padding: 0; list-style: none; }
.path-chronology > li, .path-chronology > article { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; min-width: 0; padding-block: 24px; border-top: 1px solid var(--line); }
.path-chronology-date { color: var(--muted); font-size: .875rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.path-chronology-content { min-width: 0; }
.path-chronology h3 { margin: 0 0 9px; color: var(--text); font-size: 1.25rem; line-height: 1.4; letter-spacing: -.015em; overflow-wrap: anywhere; }
.path-chronology h3 > button { max-width: 100%; min-height: 32px; padding-block: 3px; color: inherit; text-align: left; overflow-wrap: anywhere; }
.path-chronology h3 > button:hover { color: var(--accent); }
.path-chronology-content > p { margin-top: 8px; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.path-chronology .path-links { margin-top: 13px; }

@media (max-width: 1050px) {
  .path-mobile-hint { display: block; }
  .path-heading { align-items: flex-start; }
  .path-selection { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .path-option { flex-basis: 100%; }
}
@media (max-width: 900px) {
  .path-heading { flex-direction: column; gap: 17px; }
  .path-heading > p { max-width: 65ch; text-align: left; }
  .path-controls { grid-template-columns: 160px minmax(0, 1fr); gap: 12px 20px; }



}
@media (max-width: 680px) {
  .path-section { padding-block: 46px 58px; }
  .path-heading { margin-bottom: 22px; }
  .path-heading h2 { font-size: 2.3rem; }

  .path-explorer { border-radius: 15px; }
  .path-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 18px; }
  .path-slider-label { justify-content: space-between; }
  .path-filter-row { gap: 7px; margin-top: 6px; }
  .path-filter { min-height: 42px; padding-inline: 12px; }
  .path-chart-scroll { padding: 16px 18px 18px; scroll-padding-inline: 18px; }
  .path-chart-note, .path-mobile-hint { padding-inline: 18px; }
  .path-selection { grid-template-columns: minmax(0, 1fr); }
  .path-year-list, .path-details { padding: 23px 18px; }
  .path-year-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .path-entry-options { max-height: 220px; }
  .path-option { flex-basis: 150px; }
  .path-detail-title, .path-details h3 { font-size: 1.5rem; }
  .path-chronology > li, .path-chronology > article { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 22px; }


  .path-links { column-gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .path-section *, .path-section *::before, .path-section *::after { scroll-behavior: auto; transition: none; animation: none; }
}

.path-anchor{display:block;height:0;scroll-margin-top:0}
.path-lane-title{position:sticky;left:0;z-index:2}
.path-selection{scroll-margin-block:110px 25px}
.path-timeline-return{display:inline-block;margin-top:15px;font-size:.875rem;color:var(--muted)}
.path-timeline-return:hover{color:var(--accent)}
