/* Expanded career entries: a calm editorial reading layer within the existing
   glass cards. Native details and document-height scrolling remain in control. */
.cinematic-preview #timeline .material-detail[open] > summary {
  margin-top: 4px;
  padding-block: 12px 14px;
  border-bottom: 1px solid rgb(181 220 207 / 24%);
  color: #c2e8df;
  font-weight: 650;
}
.cinematic-preview #timeline .material-detail > summary::marker {
  color: #dfcca6;
}
.cinematic-preview #timeline .material-detail > summary:focus-visible {
  outline: 3px solid #bcece0;
  outline-offset: 3px;
}

.cinematic-preview #timeline .timeline-detail-body {
  padding-top: clamp(18px, 3vw, 25px);
}
.cinematic-preview #timeline .timeline-detail-body > .timeline-entry {
  display: flow-root;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.cinematic-preview #timeline .timeline-detail-body > .timeline-entry + .timeline-entry {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(19px, 3vw, 26px);
  border-top: 1px solid rgb(182 216 204 / 22%);
}
.cinematic-preview #timeline .timeline-detail-body :is(.timeline-entry, .coursework) > h4 {
  max-width: 32ch;
  margin: 0 0 10px;
  color: #f5e8d0;
  font: 600 clamp(21px, 2.15vw, 25px) / 1.15 var(--font-display, "Cormorant Garamond", serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cinematic-preview #timeline .timeline-detail-body :is(.timeline-entry, .coursework) > p {
  max-width: 64ch;
  margin: 0 0 13px;
  color: #edf5f1;
  line-height: 1.57;
}
.cinematic-preview #timeline .timeline-detail-body .timeline-entry > .resume-meta {
  margin: 0 0 13px;
  color: #b6d9d0;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: .01em;
}
.cinematic-preview #timeline .timeline-detail-body .timeline-entry > ul:not(.directory-entries) {
  margin: 10px 0 0;
  padding-inline-start: 1.25rem;
}
.cinematic-preview #timeline .timeline-detail-body .timeline-entry > ul:not(.directory-entries) > li {
  margin: 0 0 9px;
  padding-inline-start: 2px;
  line-height: 1.55;
}
.cinematic-preview #timeline .timeline-detail-body .timeline-entry > ul:not(.directory-entries) > li::marker {
  color: #d8c59e;
}
.cinematic-preview #timeline .timeline-detail-body strong { color: #f6e8ce; }
.cinematic-preview #timeline .timeline-detail-body a {
  color: #c1e9df;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

/* Coursework is one index panel per institution, with original DOM order. */
.cinematic-preview #timeline .timeline-detail-body > .coursework {
  min-width: 0;
  margin-top: clamp(24px, 3vw, 32px);
  padding: clamp(15px, 2.5vw, 22px);
  border: 1px solid rgb(177 211 198 / 22%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(125 170 157 / 10%), rgb(12 36 41 / 14%));
  box-shadow: inset 0 1px 0 rgb(238 232 208 / 9%);
}
.cinematic-preview #timeline .coursework > p {
  color: #c2d8d1;
  font-size: .9rem;
}
.cinematic-preview #timeline .course-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  columns: auto;
}
.cinematic-preview #timeline .course-list > li {
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgb(179 210 197 / 14%);
  color: #e4f0eb;
  font-size: .88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  break-inside: avoid;
}
.cinematic-preview #timeline .course-code {
  color: #bbdfd6;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .035em;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .cinematic-preview #timeline .timeline-card.is-expanded .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Keep the default floating tour control clear of long mobile reading text.
   The control remains movable and the card header retains its full width. */
@media (max-width: 460px) {
  .cinematic-preview #timeline .material-detail[open] > .timeline-detail-body {
    padding-inline-end: 40px;
  }
}
@media (max-width: 350px) {
  .cinematic-preview #timeline .course-list > li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
    padding-block: 7px;
  }
  .cinematic-preview #timeline .course-code {
    line-height: 1.25;
  }
}

/* Existing project/test entries stay real links; the divider and title provide
   hierarchy without introducing a decorative layer over their text. */
.cinematic-preview #timeline .timeline-detail-body .directory-entries > li + li {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgb(182 216 204 / 22%);
}
.cinematic-preview #timeline .timeline-detail-body .directory-entries h5 {
  margin: 0 0 8px;
  color: #f5e8d0;
  font-size: 1rem;
  line-height: 1.3;
}
.cinematic-preview #timeline .timeline-detail-body .directory-entries :is(p, li) {
  line-height: 1.55;
}

@media (forced-colors: active) {
  .cinematic-preview #timeline .timeline-detail-body > .coursework {
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
  .cinematic-preview #timeline .timeline-detail-body :is(h4, p, strong, a, .course-code, .resume-meta, .directory-entries h5) {
    color: CanvasText;
  }
}
@media print {
  .cinematic-preview #timeline .timeline-detail-body > .coursework {
    background: #fff;
    border-color: #aaa;
    box-shadow: none;
  }
  .cinematic-preview #timeline .material-detail[open] > summary,
  .cinematic-preview #timeline .timeline-detail-body :is(h4, p, strong, a, .course-code, .resume-meta, .directory-entries h5),
  .cinematic-preview #timeline .course-list > li { color: #111 !important; }
  .cinematic-preview #timeline .course-list > li { border-bottom-color: #bbb; }
}
