/* The timeline reflects the featured selection without another animation loop. */
.ark-timeline { margin: clamp(56px, 8vw, 90px) auto 0; max-width: 980px; text-align: center; }
.ark-timeline h3 { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 32px); color: #fff9f5; font: italic 400 clamp(1.6rem, 3vw, 2.3rem)/1.2 Georgia, serif; margin: 0; }
.ark-timeline h3::before, .ark-timeline h3::after { content: ""; width: clamp(35px, 10vw, 125px); height: 1px; background: linear-gradient(90deg, transparent, #d25a5e); }
.ark-timeline h3::after { transform: scaleX(-1); }
.ark-timeline-current { min-height: 1.5em; margin: 12px 0 22px; color: #e8ccc7; font-size: .85rem; }
.ark-timeline-navigation { display: flex; align-items: center; gap: 12px; }
.ark-timeline-navigation > button { flex: 0 0 44px; min-width: 44px; min-height: 44px; border: 1px solid #b2575b; border-radius: 50%; color: #ffe9e4; background: transparent; cursor: pointer; }
.ark-timeline-navigation > button:disabled { opacity: .4; cursor: default; }
/* The rail is a decorative background. Each actual date stays a button. */
.ark-timeline-items { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: linear-gradient(to bottom, transparent 41px, #b2575b 41px, #b2575b 42px, transparent 42px); }
.ark-timeline-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; min-width: 0; min-height: 104px; padding: 2px 6px 12px; color: #e8ccc7; background: transparent; border: 0; cursor: pointer; font: inherit; overflow-wrap: anywhere; }
.ark-timeline-item::before { content: ""; position: absolute; top: 35px; left: calc(50% - 7px); width: 12px; height: 12px; border: 1px solid #e67b77; border-radius: 50%; background: #1c080d; }
.ark-timeline-item .ark-timeline-year { color: #fff9f5; font: italic 400 1.25rem/28px Georgia, serif; }
.ark-timeline-item .ark-timeline-name { font: italic .85rem/1.3 Georgia, serif; }
.ark-timeline-item[aria-pressed="true"] { color: #fff; }
.ark-timeline-item[aria-pressed="true"]::before { background: #ed6a67; box-shadow: 0 0 0 4px #c73c3c33; }
.ark-timeline-item[aria-pressed="true"] .ark-timeline-year { color: #ffb1a8; }
.ark-timeline button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  /* The dates remain real buttons, including when two favorites share a year. */
  .ark-timeline {
    margin-top: 48px;
    padding: 20px 16px;
    border: 1px solid #a9474e88;
    border-radius: 12px;
    background: #1c0b11;
    text-align: left;
  }
  .ark-timeline h3 { justify-content: flex-start; color: #e8b8ae; font: 600 .75rem/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
  .ark-timeline h3::before, .ark-timeline h3::after { display: none; }
  .ark-timeline-current { margin: 16px 0 18px; color: #fff9f5; font: 400 1rem/1.5 Georgia, serif; }
  /* Put navigation beneath the rail so all three dates stay legible on a phone. */
  .ark-timeline-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ark-timeline-items { grid-row: 1; grid-column: 1 / -1; width: 100%; }
  .ark-timeline-navigation > button { grid-row: 2; justify-self: start; }
  .ark-timeline-navigation > button:last-child { justify-self: end; }
  .ark-timeline-item { padding-inline: 2px; }
  .ark-timeline-item .ark-timeline-year { font-size: 1.05rem; }
  .ark-timeline-item .ark-timeline-name { font-size: .8rem; }
}

/* Place the real timeline buttons and navigation in one compact phone row. */
@media (max-width: 600px) {
  .ark-timeline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px 8px;
    margin-top: 12px;
    padding: 10px 8px;
  }
  .ark-timeline-current { margin: 0; font-size: .8rem; text-align: right; overflow-wrap: anywhere; }
  .ark-timeline-navigation {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 1px;
  }
  .ark-timeline-items {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: linear-gradient(to bottom, transparent 24px, #b2575b 24px, #b2575b 25px, transparent 25px);
  }
  .ark-timeline-navigation > button { grid-row: 1; justify-self: center; }
  .ark-timeline-navigation > button:first-child { grid-column: 1; }
  .ark-timeline-navigation > button:last-child { grid-column: 3; }
  .ark-timeline-item {
    min-height: 58px;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 0 2px 3px;
  }
  .ark-timeline-item::before { top: 18px; left: calc(50% - 7px); }
  .ark-timeline-item .ark-timeline-year { font-size: .85rem; line-height: 18px; }
  .ark-timeline-item .ark-timeline-name { font-size: .7rem; line-height: 1.2; }
}
