/* hislife.css — "His Life" timeline page
   All pixel positions derived from Figma node yv1BNsSxoz6yRcWDqqDxyi / 1029:1574
   and Anima export. Y-coords subtract 101px (nav height) from Anima coordinates.
   X-coords are identical to Figma/Anima.
   Page canvas: 1440px wide, ~17800px tall timeline body. */

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.hl-wrap {
  position: relative;
  width: 1440px;
  min-height: 23150px;
  background: #fff;
  overflow-x: clip;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hl-amber-circle {
  position: absolute;
  top: 57px;
  left: 1127px;
  width: 369px;
  height: 369px;
  background: rgba(217, 152, 46, 0.15);
  border-radius: 50%;
}

.hl-title {
  position: absolute;
  top: 117px;
  left: 209px;
  width: 596px;
  font-family: var(--font-main);
  font-weight: var(--fw-medium);
  font-size: 44px;
  color: #d9982e;
  line-height: normal;
  white-space: nowrap;
  margin: 0;
}

.hl-subtitle {
  position: absolute;
  top: 180px;
  left: 209px;
  width: 734px;
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  font-size: 24px;
  color: #202020;
  line-height: normal;
  margin: 0;
}

.hl-portrait {
  position: absolute;
  top: 47px;
  left: 982px;
  width: 304px;
  height: 300px;
  object-fit: contain;
}

.hl-hero-line {
  position: absolute;
  top: 398px;
  left: 0;
  width: 1197px;
  height: 3px;
  background: rgba(217, 152, 46, 0.2);
}

/* ── TIMELINE SPINE ───────────────────────────────────────── */
.hl-spine-dot {
  position: absolute;
  top: 461px;
  left: 151px;
  width: 8px;
  height: 8px;
  background: #2e3d63;
  border-radius: 0;
  z-index: 1;
}

.hl-spine {
  position: absolute;
  top: 469px;
  left: 154px;
  width: 2px;
  height: 22600px;
  background: rgba(46, 61, 99, 0.8);
  z-index: 1;
}

/* ── ERA LABEL (large "1940s to 1950s") ───────────────────── */
.hl-era {
  position: absolute;
  top: 476px;
  left: 205px;
  width: 190px;
  font-family: var(--font-deco);
  font-size: 80px;
  color: #FFB338;
  text-align: center;
  line-height: normal;
}

/* ── SMALL YEAR INDEX COLUMN (left sidebar, x=0, w=154) ────── */
.hl-year-col {
  position: absolute;
  top: 484px;
  left: 0;
  width: 154px;
  font-family: var(--font-deco);
  font-size: 36px;
  line-height: 34px;
  text-align: center;
  background: #fff;
  z-index: 2;
}
.hl-year-col .navy { color: #2a427e; }
.hl-year-col .wht  { color: #fff; background-color: #2a417d; border-radius: 3px; }

/* ── AMBER DOTS (timeline event markers) ──────────────────── */
/* Figma: dot 5px above event text cap. CSS event text halfLead=4px →
   dot needs to be at event_top-1, but inline tops set it at event_top-8.
   translateY(+7px) closes the 7px gap without touching 37 inline styles. */
.hl-dot {
  position: absolute;
  left: 531px;
  width: 32px;
  height: 32px;
  background: #ffb337;
  border-radius: 50%;
  transform: translateY(7px);
}

/* ── YEAR LABELS (large 80px Agdasima, amber) ─────────────── */
.hl-year {
  position: absolute;
  font-family: var(--font-deco);
  font-size: 80px;
  color: #FFB338;
  white-space: nowrap;
  line-height: normal;
}

/* ── VERTICAL CONNECTOR LINES (gray, 1px, x=496) ─────────── */
.hl-vline {
  position: absolute;
  left: 496px;
  width: 1px;
  background: #808080;
}

/* ── BLUE BAND CONNECTOR LINES (amber, 4px, x=496) ───────── */
.hl-bbline {
  position: absolute;
  left: 496px;
  width: 4px;
  background: #ffb338;
}

/* ── HORIZONTAL RULES (amber, 3px, x=218, w=1143) ─────────── */
.hl-hline {
  position: absolute;
  left: 218px;
  width: 1143px;
  height: 3px;
  background: #d9982e;
}

/* ── NAVY LEFT STRIP BARS ─────────────────────────────────── */
.hl-lstrip {
  position: absolute;
  left: 0;
  width: 155px;
  height: 29px;
  background: #2a417d;
}

/* ── BLUE BANDS (full-width navy) ─────────────────────────── */
.hl-band {
  position: absolute;
  left: 155px;
  width: 1285px;
  height: 517px;
  background: #2a417d;
}

/* ── EVENT TEXT (black, 24px Afacad, x=542) ──────────────── */
.hl-event {
  position: absolute;
  left: 542px;
  width: 620px;
  font-family: var(--font-main);
  font-size: 24px;
  color: #202020;
  line-height: normal;
  margin: 0;
}

/* ── BLUE BAND TEXT (white, 24px Afacad) ─────────────────── */
.hl-bbtext {
  position: absolute;
  left: 218px;
  font-family: var(--font-main);
  font-size: 24px;
  color: #fff;
  line-height: normal;
  margin: 0;
}

/* ── YEAR NAV LINKS ───────────────────────────────────────── */
.hl-yn-item {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-deco);
  font-size: 36px;
  line-height: 34px;
  color: #2e3d63;
  text-decoration: none;
  padding: 4px 2px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}
.hl-yn-item:hover { background-color: rgba(42, 65, 125, 0.12); }
.hl-yn-item.active { color: #fff; background-color: #2a417d; }
.hl-yn-track {
  transition: transform 0.25s ease;
}
.hl-year-col.is-fixed {
  position: fixed !important;
  top: 101px;
  pointer-events: none;
  max-height: calc(100vh - 121px);
  overflow: hidden;
}

/* ── INLINE LINKS IN EVENT TEXT ──────────────────────────── */
.hl-event a {
  color: #d9982e !important;
  text-decoration: underline;
  font-style: italic;
}
.hl-event a:hover { color: #ffb337; }

/* ── PHOTOS ───────────────────────────────────────────────── */
.hl-photo {
  position: absolute;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* ── PUBLISHER LINK (2021 book section) ─────────────────── */
.hl-pub-link {
  position: absolute;
  width: 140px;
  font-family: var(--font-main);
  font-size: 24px;
  color: #000;
  text-decoration: underline;
  white-space: nowrap;
  z-index: 1;
}
.hl-pub-link:hover { color: var(--c-accent, #d9982e); }
