/* A quiet shell around a functional timeline. All motion is presentation only. */
[data-testid="timeline-home"] { background: #fbf8f3; }
[data-testid="timeline-home"] [data-testid="app-header"] { min-height: 72px; background: #fbf8f3ed; border-bottom-color: transparent; backdrop-filter: blur(14px); }
[data-testid="timeline-home"] [data-testid="app-nav-item"] { border-bottom-color: transparent !important; background: transparent !important; padding-block: 10px; }
[data-testid="timeline-home"] [data-testid="mobile-nav"] { background: transparent !important; padding-block: 0 !important; }
.timeline-experience {
  --tl-maroon: #630031; --tl-orange: #cf4420; --tl-ink: #34232b; --tl-muted: #7c7072;
  --tl-line: #d5c6c8; --tl-paper: #fbf8f3; --tl-ease: cubic-bezier(.22,1,.36,1);
  --tl-detail-gap: 14px;
  color: var(--tl-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%; min-width: 0; position: relative; isolation: isolate;
}
.timeline-experience *, .timeline-experience *::before, .timeline-experience *::after { box-sizing: border-box; }
.timeline-experience button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.timeline-experience button:disabled { cursor: default; }
.timeline-experience button:focus-visible, .tl-scroller:focus-visible { outline: 2px solid var(--tl-orange); outline-offset: 5px; }
.timeline-experience p { margin: 0; }
.tl-heading { text-align: center; padding: 32px 18px 0; transition: opacity .7s ease, transform .7s var(--tl-ease); }
.tl-eyebrow { color: #927b81; font-size: 10px; letter-spacing: .21em; font-weight: 600; }
.tl-heading h1 { font-size: clamp(25px,3vw,42px); letter-spacing: -.055em; line-height: 1.17; font-weight: 540; margin: 13px 0 12px; color: #462936; }
.tl-subtitle { font-size: 13px; color: var(--tl-muted); line-height: 1.5; }
.tl-date-toolbar { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; }
.tl-scroller { position: relative; width: 100%; overflow: visible; }
.tl-world { position: relative; height: clamp(340px,calc(100svh - 380px),510px); width: 100%; }
.tl-axis, .tl-selector-track, .tl-events { position: absolute; left: 72px; right: 72px; top: 50%; height: 1px; }
.tl-axis { pointer-events: none; }
.tl-axis-base { position: absolute; height: 1px; left: var(--line-start); width: var(--line-size); top: 0;
  background: linear-gradient(90deg,#63003145,#630031a6 28%,#cf442075 80%,#cf442040);
  transition: left .62s var(--tl-ease), width .62s var(--tl-ease); }
.tl-axis-base::after { content: ""; position: absolute; inset: -7px 0; background: linear-gradient(90deg,transparent,#63003109,#cf44200a,transparent); filter: blur(5px); }
.tl-origin { position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--tl-maroon); transform: translateX(-50%); opacity: 0; }
.tl-origin i { position: absolute; inset: -10px; border: 1px solid #63003120; border-radius: 50%; }
.tl-intro .tl-origin { animation: tl-dot-birth 1.95s var(--tl-ease) both; }
.tl-intro .tl-axis-base { transform-origin: center; animation: tl-line-birth 1.95s var(--tl-ease) both; }
.tl-intro .tl-heading, .tl-intro .tl-controls, .tl-intro .tl-campus-note, .tl-intro .tl-selector-track { opacity: 0; pointer-events: none; }
.tl-selector-track { touch-action: none; user-select: none; z-index: 2; height: 100px; margin-top: -50px; }
.tl-day { position: absolute; top: 0; left: var(--position); transform: translateX(-50%); width: 72px; height: 100px; padding: 0; border: 0; color: var(--tl-muted); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: left .62s var(--tl-ease), opacity .45s ease, color .2s ease; }
.tl-day-caption { font-size: 12px; height: 24px; font-weight: 450; }
.tl-day-date { font-size: 11px; height: 24px; padding-top: 11px; }
.tl-tick { display: grid; place-items: center; height: 20px; }
.tl-tick i { width: 1px; height: 7px; background: #b49b9f; transition: all .25s ease; }
.tl-day.major .tl-day-caption { color: #513440; font-weight: 650; }
.tl-day.major .tl-tick i { height: 12px; background: var(--tl-maroon); }
.tl-day.chosen { color: var(--tl-maroon); }
.tl-day.chosen .tl-tick i { width: 7px; height: 7px; border-radius: 50%; background: var(--tl-maroon); box-shadow: 0 0 0 5px #6300310c; }
.tl-day:focus-visible { border-radius: 12px; outline-offset: -4px !important; }
.tl-day.vanish { opacity: 0; pointer-events: none; }
.tl-range-glow { position: absolute; left: var(--start); width: var(--size); height: 3px; top: -1px; background: var(--tl-maroon); box-shadow: 0 0 18px #63003122; border-radius: 8px; }
.tl-controls { min-height: 135px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; transition: opacity .55s ease; }
.tl-instruction { font-size: 15px; letter-spacing: -.02em; line-height: 1.6; color: #553944; }
.tl-hint { font-size: 11px; line-height: 1.6; color: #8d7d81; }
.tl-confirm-slot { margin-top: 18px; }
.tl-confirm { border: 1px solid #6300311a; padding: 11px 17px; min-height: 44px; border-radius: 24px; background: var(--tl-maroon); color: #fff8f2; font-size: 12px !important; font-weight: 550 !important; display: flex; align-items: center; gap: 26px; box-shadow: 0 4px 12px #63003110; transition: opacity .25s ease, transform .25s var(--tl-ease), box-shadow .25s ease; }
.tl-confirm:disabled { background: transparent; color: #a69499; border-color: #dcd0d2; box-shadow: none; }
.tl-confirm:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 20px #63003120; }
.tl-campus-note { text-align: center; color: #99888e; font-size: 8px; font-weight: 500; letter-spacing: .18em; padding: 24px 0 16px; transition: opacity .6s ease; }
.tl-campus-note span { color: #cf442077; margin-inline: 12px; }
.tl-events { z-index: 3; }
.tl-event { position: absolute; left: var(--position); width: 0; height: 0; z-index: 1; }
.tl-event.is-open { z-index: 12; }
.tl-event-dot { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; background: #bf9ba6; border: 2px solid var(--tl-paper); border-radius: 50%; animation: tl-node-in .4s var(--tl-ease) var(--delay) both; }
.tl-event.is-match .tl-event-dot { background: var(--tl-maroon); box-shadow: 0 0 0 3px #63003109; }
.tl-stem { position: absolute; left: 0; width: 1px; height: 45px; background: #d4bdc5; transform-origin: bottom; animation: tl-stem-in .55s var(--tl-ease) var(--delay) both; }
.side-a .tl-stem { bottom: 3px; }
.side-b .tl-stem { top: 3px; transform-origin: top; }
.tl-event-date { position: absolute; left: 0; white-space: nowrap; transform: translateX(-50%); font-size: 9px; color: #8b747e; letter-spacing: .02em; animation: tl-node-in .4s ease var(--delay) both; }
.side-a .tl-event-date { top: 12px; }
.side-b .tl-event-date { bottom: 12px; }
.tl-bubble { --tl-card-width: clamp(104px,13vw,176px); width: var(--tl-card-width); position: absolute; left: 0; margin-left: calc(var(--tl-card-width) / -2);
  background: #fffdf9; border: 1px solid #e8dfe0; border-radius: 15px;
  box-shadow: 0 3px 12px #4c152705,0 1px 1px #4c152705;
  transition: border-color .25s ease, box-shadow .25s ease; animation: tl-bubble-in .65s var(--tl-ease) var(--delay) both; }
.side-a .tl-bubble { bottom: 48px; --rise: 15px; transform-origin: bottom center; border-bottom-right-radius: 5px; }
.side-b .tl-bubble { top: 48px; --rise: -15px; transform-origin: top center; border-top-left-radius: 5px; }
/* Keep hover continuous across the visible gap without attaching the panels. */
.is-open .tl-bubble::after { content: ""; position: absolute; left: 0; right: 0; height: calc(var(--tl-detail-gap) + 2px); }
.side-a.is-open .tl-bubble::after { bottom: 100%; }
.side-b.is-open .tl-bubble::after { top: 100%; }
.tl-event.is-match .tl-bubble { border-color: #cdb5be; background: #fffaf3; }
.tl-event.is-open .tl-bubble { border-color: #946776; box-shadow: 0 12px 40px #4016251f,0 3px 8px #4016250a; }
.tl-bubble-trigger { display: flex; text-align: left; flex-direction: column; gap: 8px; padding: 14px 13px 12px; width: 100%; border: 0; background: transparent; border-radius: inherit; min-height: 110px; color: var(--tl-ink); }
.tl-bubble-time { color: #8c6977; font-size: 10px; font-weight: 550; letter-spacing: .02em; }
.tl-bubble-title { font-size: 13px; line-height: 1.35; font-weight: 550; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-match { font-size: 9px; color: #89747c; display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.tl-match i { width: 4px; height: 4px; background: #a68a95; border-radius: 50%; flex-shrink: 0; }
.is-match .tl-match { color: #7a3652; }
.is-match .tl-match i { background: #cf4420; }
.tl-bubble-extra { position: absolute; width: 270px; left: 50%; transform: translateX(-50%); background: #fffdf9; border: 1px solid #d4bac4; border-radius: 14px; padding: 18px; box-shadow: 0 15px 38px #4016251a; z-index: 20; animation: tl-extra-in .23s var(--tl-ease); }
.tl-bubble-extra::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; }
.side-a .tl-bubble-extra { bottom: calc(100% + var(--tl-detail-gap)); transform-origin: bottom center; --extra-rise: 5px; }
.side-b .tl-bubble-extra { top: calc(100% + var(--tl-detail-gap)); transform-origin: top center; --extra-rise: -5px; }
.tl-horizontal .tl-bubble-extra { max-height: var(--tl-extra-room, 60svh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side-a .tl-bubble-extra::before { top: auto; bottom: -9px; }
.tl-extra-heading { display: flex; align-items: center; gap: 10px; }
.tl-extra-heading img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.tl-extra-heading p { color: #6d5360; font-size: 11px; line-height: 1.5; }
.tl-explanation { font-size: 10px; line-height: 1.6; color: #8d7983; padding-top: 5px; }
.tl-bubble-actions { display: flex; justify-content: space-between; gap: 5px; border-top: 1px solid #eee4e6; margin-top: 10px; }
.tl-bubble-actions button { min-height: 44px; background: none; border: 0; color: var(--tl-maroon); font-size: 11px; padding: 4px; }
.tl-bubble-actions button:disabled { opacity: .5; }
.tl-followups { opacity: 0; transform: translateY(8px); display: flex; flex-direction: column; align-items: center; transition: opacity .65s ease, transform .65s var(--tl-ease); }
.tl-followups.visible { opacity: 1; transform: translateY(0); }
.tl-change { display: inline-flex; align-items: center; gap: 7px; background: #fffaf3; border: 1px solid #ccb4be; border-radius: 22px; color: var(--tl-maroon); font-size: 12px !important; font-weight: 550 !important; padding: 9px 14px; min-height: 44px; transition: background .2s ease, border-color .2s ease; }
.tl-change:hover:not(:disabled) { background: #f5e9e6; border-color: #946776; }
.tl-change:disabled { opacity: .5; }
.tl-discover { border: 0; background: none; padding: 9px 20px; color: var(--tl-maroon); font-size: 14px !important; font-weight: 550 !important; letter-spacing: -.02em; min-height: 44px; }
.tl-discover span { display: inline-block; margin-left: 12px; transition: transform .25s ease; }
.tl-discover:hover span { transform: translate(2px,-2px); }
.tl-no-events { position: absolute; left: 50%; top: 65%; width: min(330px,90%); transform: translateX(-50%); text-align: center; }
.tl-no-events p { font-size: 19px; letter-spacing: -.03em; }
.tl-no-events span { display: block; font-size: 12px; color: #87707b; line-height: 1.6; margin-top: 8px; }
.tl-error { max-width: 480px; padding: 14px; font-size: 12px; color: #862947; }
.tl-error button { border: 0; background: transparent; text-decoration: underline; color: inherit; min-height: 44px; margin-inline: 8px; }
.tl-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Portrait is the same interaction rotated, with a draggable event rail. */
.tl-vertical .tl-heading { padding-top: 24px; }
.tl-vertical .tl-heading h1 { font-size: 27px; max-width: 310px; margin-inline: auto; }
.tl-vertical .tl-world { height: min(405px,48svh); }
.tl-vertical .tl-axis, .tl-vertical .tl-events, .tl-vertical .tl-selector-track { top: 36px; bottom: 36px; left: 50%; right: auto; height: auto; width: 1px; }
.tl-vertical .tl-selector-track { width: 180px; margin-top: 0; margin-left: -90px; }
.tl-vertical .tl-axis-base { top: var(--line-start); height: var(--line-size); width: 1px; left: 0; background: linear-gradient(#63003145,#630031aa 30%,#cf442060); transition: top .62s var(--tl-ease), height .62s var(--tl-ease); }
.tl-vertical .tl-origin { top: 50%; left: -4px; transform: translateY(-50%); }
.tl-vertical .tl-intro .tl-axis-base { transform: scaleY(0); }
.tl-vertical.tl-intro .tl-axis-base { animation-name: tl-line-birth-vertical; }
.tl-vertical .tl-day { top: var(--position); left: 0; width: 180px; height: 44px; transform: translateY(-50%); flex-direction: row; justify-content: space-between; transition: top .62s var(--tl-ease), opacity .45s ease; }
.tl-vertical .tl-day-caption { width: 68px; height: auto; text-align: right; }
.tl-vertical .tl-day-date { width: 68px; height: auto; padding-top: 0; text-align: left; }
.tl-vertical .tl-tick { position: absolute; left: 80px; width: 20px; }
.tl-vertical .tl-tick i { width: 7px; height: 1px; }
.tl-vertical .tl-day.major .tl-tick i { width: 12px; height: 1px; }
.tl-vertical .tl-day.chosen .tl-tick i { width: 7px; height: 7px; }
.tl-vertical .tl-range-glow { top: var(--start); height: var(--size); width: 3px; left: -1px; }
.tl-vertical .tl-scroller.is-populated { max-height: 58svh; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b695a3 transparent; cursor: grab; border-radius: 16px; mask-image: linear-gradient(transparent,#000 16px,#000 calc(100% - 16px),transparent); }
.tl-vertical .tl-world.has-events { height: calc(var(--event-count) * 194px + 150px); min-height: 380px; }
.tl-vertical .has-events .tl-axis, .tl-vertical .has-events .tl-events { top: 65px; bottom: 65px; }
.tl-vertical .tl-event { top: var(--position); left: 0; }
.tl-vertical .tl-event .tl-stem { top: 0; height: 1px; width: 19px; bottom: auto; animation: tl-stem-side .5s var(--tl-ease) var(--delay) both; }
.tl-vertical .side-a .tl-stem { left: auto; right: 3px; transform-origin: right; }
.tl-vertical .side-b .tl-stem { left: 3px; transform-origin: left; }
.tl-vertical .tl-bubble { width: calc((100vw - 82px) / 2); max-width: 230px; margin: 0; top: -45px; bottom: auto; transform-origin: center; }
.tl-vertical .side-a .tl-bubble { left: auto; right: 22px; border-radius: 14px 5px 14px 14px; --rise: 0px; }
.tl-vertical .side-b .tl-bubble { left: 22px; right: auto; border-radius: 5px 14px 14px 14px; --rise: 0px; }
.tl-vertical .tl-bubble-trigger { min-height: 106px; padding: 12px 10px; gap: 7px; }
.tl-vertical .tl-bubble-title { font-size: 12px; }
.tl-vertical .tl-event-date { top: -26px; bottom: auto; font-size: 10px; }
.tl-vertical .side-a .tl-event-date { left: 14px; transform: none; }
.tl-vertical .side-b .tl-event-date { left: auto; right: 14px; transform: none; }
.tl-vertical .tl-bubble-extra { width: min(286px,calc(100vw - 50px)); top: calc(100% + var(--tl-detail-gap)); bottom: auto; transform: none; --extra-rise: -5px; }
.tl-vertical .is-open .tl-bubble::after { top: 100%; bottom: auto; }
.tl-vertical .side-a .tl-bubble-extra { left: 0; }
.tl-vertical .side-b .tl-bubble-extra { left: auto; right: 0; }
.tl-vertical .tl-bubble-extra::before { top: -9px; bottom: auto; }
.tl-vertical .tl-controls { padding-top: 8px; min-height: 132px; }
.tl-vertical .tl-campus-note { padding: 12px 0 20px; font-size: 7px; }

/* A landscape phone retains the five-above/five-below composition. */
@media (orientation: landscape) and (max-height: 600px) {
  [data-testid="timeline-home"] [data-testid="app-header"] { min-height: 52px; }
  [data-testid="timeline-home"] [data-testid="mobile-nav"] { display: none; }
  .tl-heading { padding-top: 5px; }
  .tl-eyebrow { display: none; }
  .tl-heading h1 { font-size: 21px; margin: 3px 0; }
  .tl-subtitle { font-size: 10px; }
  .tl-world { height: calc(100svh - 182px); min-height: 200px; }
  .tl-axis, .tl-selector-track, .tl-events { left: 40px; right: 40px; }
  .tl-bubble { --tl-card-width: clamp(96px,13.5vw,140px); border-radius: 10px; }
  .tl-bubble-trigger { padding: 8px; gap: 4px; min-height: 74px; }
  .tl-bubble-title { font-size: 11px; -webkit-line-clamp: 2; }
  .tl-match, .tl-bubble-time { font-size: 8px; }
  .tl-stem { height: 23px; }
  .side-a .tl-bubble { bottom: 26px; }
  .side-b .tl-bubble { top: 26px; }
  .tl-controls { min-height: 58px; }
  .tl-instruction { font-size: 12px; }
  .tl-confirm-slot { margin-top: 5px; }
  .tl-hint, .tl-campus-note { display: none; }
  .tl-followups { gap: 0; }
  .tl-change { min-height: 25px; padding: 4px 12px; font-size: 10px !important; }
  .tl-discover { min-height: 30px; padding: 4px 12px; font-size: 12px !important; }
}
@keyframes tl-dot-birth { 0%,8% { opacity: 0; scale: .2; } 25%,58% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .75; } }
@keyframes tl-line-birth { 0%,42% { transform: scaleX(0); opacity: 0; } 47% { opacity: 1; } 90%,100% { transform: scaleX(1); opacity: 1; } }
@keyframes tl-line-birth-vertical { 0%,42% { transform: scaleY(0); opacity: 0; } 47% { opacity: 1; } 90%,100% { transform: scaleY(1); opacity: 1; } }
@keyframes tl-node-in { from { opacity: 0; scale: .1; } to { opacity: 1; scale: 1; } }
@keyframes tl-stem-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tl-stem-side { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tl-bubble-in { from { opacity: 0; transform: translateY(var(--rise)) scale(.94); filter: blur(2px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes tl-extra-in { from { opacity: 0; translate: 0 var(--extra-rise, -5px); } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .timeline-experience *, .timeline-experience *::before, .timeline-experience *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.tl-scroll-hint { text-align: center; font-size: 9px; letter-spacing: .04em; color: #a38c96; padding: 12px 0 0; }
/* Edge popovers stay on canvas; narrow landscape retains every navigation action. */
.tl-horizontal .tl-event:first-child .tl-bubble-extra { left: 0; transform: none; }
.tl-horizontal .tl-event:last-child .tl-bubble-extra { left: auto; right: 0; transform: none; }
@media (orientation: landscape) and (max-height: 600px) and (max-width: 799px) {
  [data-testid="timeline-home"] [data-testid="mobile-nav"] { display: flex; }
  .tl-heading h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
