/* Overlapping periods with stable hit targets and date-linked milestones. */
.bio-overview {
  --bio-paper: #1a1c1b;
  --bio-silver: #d9d9d2;
  --bio-bluegray: #a8b7c3;
  --bio-lavender: #b7b3cc;
  --bio-champagne: #d5c2a8;
  --bio-flag: #c5cbc1;
  margin: 30px 0 36px;
  min-width: 0;
}

.bio-overview-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}
.bio-overview-heading h3 {
  margin: 0;
  color: var(--ink, #f2f0ec);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.bio-overview-heading p { color: #a5a8a2; font-size: .72rem; line-height: 1.7; }

.bio-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 23px;
  margin: 15px 0 12px;
  padding: 0;
  list-style: none;
}
.bio-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #b6b8b3;
  font-size: .68rem;
  line-height: 1.5;
}
.bio-legend .education { --bio-color: var(--bio-silver); }
.bio-legend .service { --bio-color: var(--bio-bluegray); }
.bio-legend .activity { --bio-color: var(--bio-lavender); }
.bio-legend .award { --bio-color: var(--bio-champagne); }
.bio-legend .credential { --bio-color: var(--bio-flag); }
.bio-legend i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  width: 17px;
  height: 7px;
  border: 1px solid var(--bio-color);
  border-radius: 1px;
  background: var(--bio-color);
  color: var(--bio-color);
  font-style: normal;
}
.bio-legend .award i,
.bio-legend .credential i { height: 17px; border: 0; border-radius: 0; background: transparent; }
.bio-legend svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bio-chart-scroll {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  overflow: visible;
  border-top: 1px solid #e6e0d51a;
  border-bottom: 1px solid #e6e0d526;
}
.bio-chart-scroll:focus-visible { outline: 2px solid var(--accent, #d5c2a8); outline-offset: 5px; }
.bio-chart { width: 100%; min-width: 0; padding: 0 8px; background: var(--bio-paper); }
.bio-plot { position: relative; height: 146px; }
.bio-periods {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.bio-trigger {
  margin: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .16s, border-color .16s, color .16s;
}
.bio-trigger:focus-visible { outline: 2px solid var(--accent, #d5c2a8); outline-offset: 4px; }

.bio-band {
  position: absolute;
  z-index: auto;
  top: 76px;
  left: var(--start, 0%);
  width: var(--duration, 0%);
  min-width: 2px;
  height: 20px;
  margin: 0;
  padding: 0;
}
.bio-band-body {
  --bio-face-layer: 1;
  --bio-face-border: #d9d9d29e;
  --bio-face-fill: #d9d9d23b;
  --bio-face-active-border: #f3f2e8;
  --bio-face-active-fill: #d9d9d26b;
  position: absolute;
  z-index: auto;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #eceee8;
}
/* Hit targets stay in place. Only the non-interactive visual face is raised. */
.bio-band-body::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 100%;
  min-height: 32px;
  transform: translateY(-50%);
}
.bio-band-body::after {
  content: '';
  position: absolute;
  z-index: var(--bio-face-layer);
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--bio-face-border);
  border-radius: 2px;
  background: var(--bio-face-fill);
  pointer-events: none;
  transition: transform .16s ease, border-color .16s, background-color .16s, box-shadow .16s;
}
.bio-band.university .bio-band-body { --bio-face-fill: #c5cec743; }
.bio-band.service .bio-band-body {
  --bio-face-layer: 2;
  --bio-face-border: #bfd1dccc;
  --bio-face-fill: #849aadad;
  --bio-face-active-border: #e0edf5;
  --bio-face-active-fill: #a1b5c7c9;
}
.bio-band.activity .bio-band-body {
  --bio-face-layer: 2;
  --bio-face-border: #c5bddacc;
  --bio-face-fill: #8f89ae9c;
  --bio-face-active-border: #e8e2f5;
  --bio-face-active-fill: #aaa3c9c9;
}
.bio-band.academy .bio-band-body {
  --bio-face-layer: 3;
  --bio-face-border: #e9e5d5;
  --bio-face-fill: #dedbd28a;
  --bio-face-active-border: #fffdf4;
  --bio-face-active-fill: #e6e2d5b3;
}
.bio-band.academy .bio-band-body::before { left: 50%; right: auto; width: max(100%, 28px); transform: translate(-50%, -50%); }
.bio-band.academy .bio-band-body::after { border-right-style: dashed; }
.bio-band-body:hover::after,
.bio-band-body.is-active::after,
.bio-band-body:focus-visible::after {
  z-index: 5;
  border-color: var(--bio-face-active-border);
  background: var(--bio-face-active-fill);
  box-shadow: 0 5px 10px #0006;
  transform: translateY(-6px);
}
.bio-band-body:focus-visible { outline: none; }
.bio-band-body:focus-visible::after { outline: 2px solid var(--accent, #d5c2a8); outline-offset: 3px; }

.bio-connectors {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.bio-connector {
  fill: none;
  stroke: #c5cbc160;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.bio-connector.award { stroke: #d5c2a86b; }
.bio-connector.credential { stroke: #c5cbc160; }

/* Icons sit above their dates; layout only adjusts their centers to avoid collisions. */
.bio-events {
  --bio-event-gap: 6px;
  position: absolute;
  z-index: 3;
  top: 34px;
  right: 0;
  left: 0;
  display: block;
  height: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.bio-event {
  --bio-event-color: var(--bio-flag);
  position: absolute;
  top: 0;
  left: var(--event-x, 0px);
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}
.bio-event.award { --bio-event-color: var(--bio-champagne); }
.bio-event-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--bio-event-color);
}
.bio-event-symbol:hover,
.bio-event-symbol.is-active { border-color: #dce1d330; background: #2b2f29; color: #eff0e8; }
.bio-event.award .bio-event-symbol:hover,
.bio-event.award .bio-event-symbol.is-active { border-color: #d5c2a854; color: #f0d9b7; }
.bio-event-symbol svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.bio-years {
  position: absolute;
  top: 112px;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  border-top: 1px solid #cad2c351;
  color: #b6beb0;
  font-size: .68rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.bio-years > span {
  position: relative;
  display: block;
  padding-top: 10px;
  white-space: nowrap;
  transform: translateX(-1px);
}
.bio-years > span::before { content: ''; position: absolute; top: -1px; left: 1px; width: 1px; height: 6px; background: #cad2c36b; }
.bio-chart-note { margin-top: 11px; color: #989f95; font-size: .67rem; line-height: 1.8; }

/* The shared hover/focus/tap panel lives outside the chart. */
.bio-tooltip {
  position: fixed;
  z-index: 120;
  box-sizing: border-box;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  max-height: min(380px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px;
  border: 1px solid #777d6e;
  border-radius: 4px;
  background: #232621;
  color: #e7eae0;
  box-shadow: 0 12px 34px #0006;
  font-family: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: auto;
}
.bio-tooltip[hidden],
.bio-tooltip [hidden] { display: none !important; }
.bio-tooltip-date {
  display: block;
  margin: 0 0 5px;
  color: #c3b89f;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.bio-tooltip-title {
  display: block;
  margin: 0;
  color: #f0f0e8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}
.bio-tooltip-description {
  display: block;
  margin: 7px 0 0;
  color: #bdc4b7;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
}
.bio-tooltip-description:empty { display: none; }

@media (max-width: 740px) {
  .bio-overview { margin: 26px 0 30px; }
  .bio-overview-heading { gap: 6px 14px; }
  .bio-overview-heading p { font-size: .66rem; }
  .bio-legend { gap: 9px 17px; margin: 13px 0 11px; }
  .bio-legend li { gap: 6px; font-size: .64rem; }
  .bio-chart-note { font-size: .64rem; }
}
@media (max-width: 480px) {
  /* Collision spacing lets seven 26 x 28px targets fit within 200px. */
  .bio-events { --bio-event-gap: 3px; }
  .bio-event { width: 26px; }
  .bio-event-symbol { width: 26px; }
  .bio-years { font-size: 9px; }
  .bio-years > span:not(:nth-child(3n + 1)) { color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .bio-trigger,
  .bio-band-body::after { transition: none; }
  .bio-band-body:hover::after,
  .bio-band-body.is-active::after,
  .bio-band-body:focus-visible::after { transform: none; }
}

@media print {
  .bio-overview {
    --bio-paper: #fff;
    --bio-silver: #6f766d;
    --bio-bluegray: #566e81;
    --bio-lavender: #766b89;
    --bio-champagne: #866744;
    --bio-flag: #4f5d49;
    margin: 18px 0;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .bio-overview-heading { break-after: avoid; }
  .bio-overview-heading h3 { color: #222; font-size: 13pt; }
  .bio-overview-heading p,
  .bio-legend li,
  .bio-chart-note { color: #555; }
  .bio-legend { margin: 10px 0; gap: 8px 18px; }
  .bio-chart-scroll { overflow: visible; border-color: #bbb; }
  .bio-chart { min-width: 0; padding: 0 8px; }
  .bio-band-body,
  .bio-band.university .bio-band-body {
    --bio-face-border: #757e73;
    --bio-face-fill: #e1e4de;
  }
  .bio-band.service .bio-band-body { --bio-face-border: #6a8294; --bio-face-fill: #a8bccc; }
  .bio-band.activity .bio-band-body { --bio-face-border: #807796; --bio-face-fill: #bdb8ce; }
  .bio-band.academy .bio-band-body { --bio-face-border: #77796c; --bio-face-fill: #c9cbb5; }
  .bio-band-body::after,
  .bio-band-body:hover::after,
  .bio-band-body.is-active::after,
  .bio-band-body:focus-visible::after {
    z-index: var(--bio-face-layer);
    border-color: var(--bio-face-border);
    background: var(--bio-face-fill);
    box-shadow: none;
    outline: none;
    transform: none;
    transition: none;
  }
  .bio-connector,
  .bio-connector.credential { stroke: #8b9385; }
  .bio-connector.award { stroke: #a58d6e; }
  .bio-trigger:focus-visible { outline: none; }
  .bio-event-symbol,
  .bio-event-symbol:hover,
  .bio-event-symbol.is-active,
  .bio-event.award .bio-event-symbol:hover,
  .bio-event.award .bio-event-symbol.is-active { border-color: transparent; background: transparent; color: var(--bio-event-color); }
  .bio-years { border-color: #888; color: #454c40; font-size: 7.5pt; }
  .bio-years > span::before { background: #888; }
  .bio-chart-note { margin-top: 8px; font-size: 7pt; }
  .bio-tooltip { display: none !important; }
}
