/* ============================================================
   THE STEAMPUNK FIELD GUIDE — timeline.css
   Styles for the full text timeline + animated chronology wrapper.
   Loaded in addition to main.css on timeline pages.
   ============================================================ */

/* ---- Era rail (full text timeline) ------------------------- */
.tl-eras { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tl-era-jump {
  font-family: var(--mono); font-size: 0.74rem; text-decoration: none;
  color: var(--ink-soft); background: var(--parchment-card);
  border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px;
  transition: background 0.14s ease, color 0.14s ease;
}
.tl-era-jump:hover, .tl-era-jump:focus { background: var(--brass); color: #2a2008; }

/* era block */
.tl-era { margin-bottom: clamp(36px, 5vw, 60px); scroll-margin-top: 80px; }
.tl-era-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  border-bottom: 2px solid var(--brass); padding-bottom: 12px; margin-bottom: 8px;
}
.tl-era-head h2 { font-family: var(--display); margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.tl-era-head .tl-years { font-family: var(--mono); font-size: 0.82rem; color: var(--copper-deep); letter-spacing: 0.04em; }
.tl-era-blurb { color: var(--ink-soft); font-style: italic; max-width: 720px; margin-bottom: 22px; }

/* the spine */
.tl-spine { position: relative; padding-left: 30px; }
.tl-spine::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brass), var(--line-soft));
}
.tl-row {
  position: relative; display: grid; grid-template-columns: 72px 1fr;
  gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px dashed var(--line-soft);
}
.tl-row::before {
  content: ""; position: absolute; left: -25px; top: 22px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--parchment-card); border: 2px solid var(--copper);
  box-shadow: 0 0 0 3px var(--parchment);
}
.tl-row .tl-year { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--copper-deep); }
.tl-row .tl-body { display: flex; flex-direction: column; gap: 5px; }
.tl-row .tl-title { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; line-height: 1.25; }
.tl-row .tl-title a { text-decoration: none; color: var(--ink); }
.tl-row .tl-title a:hover { color: var(--copper-deep); }
.tl-row .tl-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-row .tl-note { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 560px) {
  .tl-row { grid-template-columns: 1fr; gap: 4px; }
  .tl-row .tl-year { font-size: 1rem; }
}

/* filter bar */
.tl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.tl-filters label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.tl-filters select, .filter-select {
  font-family: var(--serif); font-size: 0.92rem; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--parchment-card); color: var(--ink);
}

/* ---- Animated chronology wrapper --------------------------- */
.chrono-frame {
  position: relative; border: 2px solid var(--brass); border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(29,58,85,0.04) 0 14px, rgba(29,58,85,0.08) 14px 28px),
    var(--blueprint);
  box-shadow: 0 6px 24px var(--shadow-deep); overflow: hidden;
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  color: #dce8f0; text-align: center;
}
.chrono-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chrono-openlink { margin-top: 12px; text-align: right; }

.reduced-note {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.92rem; color: var(--ink-soft); background: var(--parchment-soft);
  border: 1px solid var(--line); border-left: 4px solid var(--verdigris);
  border-radius: var(--radius); padding: 14px 18px; margin-top: 18px;
}
.reduced-note .rn-icon { font-family: var(--mono); color: var(--verdigris-dk); font-weight: 700; }

/* no-JS canon table fallback */
.canon-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--parchment-card); border: 1px solid var(--line); }
.canon-table caption { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); text-align: left; padding: 10px 4px; }
.canon-table th, .canon-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.canon-table thead th { font-family: var(--display); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--brass-deep); background: var(--parchment-soft); border-bottom: 2px solid var(--brass); }
.canon-table tbody tr:hover { background: rgba(154,119,51,0.06); }
.canon-table a { color: var(--copper-deep); text-decoration: none; font-weight: 600; }
.canon-table a:hover { text-decoration: underline; }
@media (max-width: 720px) { .canon-table .col-hide { display: none; } }
