@import url('/css/tokens.css');

/* /timeline (api/pages/timeline.js). Gold is for the one action per screen. */

.tl {
  --tl-gold: #F5B544;
  --tl-gold-hover: #FFC861;
  --tl-ink: #1A1205;
  --tl-violet: #C9B8FF;
  --tl-line: rgba(201, 184, 255, 0.18);
  --tl-card: rgba(255, 255, 255, 0.04);
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 72px;
  color: var(--text, #F4EFE3);
}
.tl a { color: var(--accent-light, #F1C84A); }
/* The breadcrumb is a <nav>, so reset the site header nav styles it would inherit. */
.tl nav.crumbs {
  display: block; position: static; inset: auto; width: auto; height: auto;
  margin: 0 0 16px; padding: 0; border: 0; background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto;
  font-size: 0.85rem; opacity: 0.8; text-align: left;
}

.tl-kicker { margin: 0 0 10px; color: var(--tl-violet); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.tl-hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; }
.tl-lede { margin: 0 0 24px; font-size: 1.08rem; line-height: 1.55; max-width: 60ch; opacity: 0.92; }

.tl-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 20px;
  border: 1px solid var(--tl-line);
  border-radius: 14px;
  background: var(--tl-card);
}
.tl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tl-field label { font-size: 0.88rem; font-weight: 600; }
.tl-opt { font-weight: 400; opacity: 0.7; }
.tl-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--tl-line);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
}
.tl-go {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-block;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--tl-gold);
  color: var(--tl-ink) !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.tl-go:hover, .tl-go:focus-visible { background: var(--tl-gold-hover); }
.tl-go:disabled { opacity: 0.6; cursor: progress; }
.tl-hint { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; opacity: 0.7; }
.tl-err { grid-column: 1 / -1; margin: 0; color: #FF9B8A; }

.tl-results { margin-top: 32px; }
.tl-summary { padding: 20px; border-radius: 14px; border: 1px solid var(--tl-line); background: var(--tl-card); }
.tl-summary h2 { margin: 0 0 6px; }
.tl-counts { margin: 0 0 14px; opacity: 0.85; }
.tl-hl-label { margin: 0 0 6px; color: var(--tl-violet); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tl-highlights { margin: 0; padding-left: 20px; line-height: 1.6; }
.tl-note { margin: 14px 0 0; font-size: 0.85rem; opacity: 0.75; }
.tl-quiet { opacity: 0.85; }

.tl-month { margin: 32px 0 10px; font-size: 1.15rem; color: var(--tl-violet); }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-ev {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--tl-line);
  background: var(--tl-card);
}
.tl-ev-hit { border-left: 3px solid var(--tl-gold); }
.tl-day { font-weight: 700; font-size: 0.92rem; }
.tl-head { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.35; }
.tl-glyph { display: inline-block; min-width: 1.3em; color: var(--tl-gold); }
.tl-felt, .tl-badge { margin: 0 0 6px; font-size: 0.84rem; color: var(--tl-violet); }
.tl-about, .tl-try { margin: 0 0 4px; line-height: 1.5; font-size: 0.95rem; }
.tl-try { opacity: 0.85; }

.tl-cta { margin-top: 36px; padding: 22px; border-radius: 14px; border: 1px solid var(--tl-line); background: var(--tl-card); }
.tl-cta h2 { margin: 0 0 8px; }
.tl-cta p { margin: 0 0 14px; line-height: 1.5; }
.tl-paid { font-size: 0.9rem; opacity: 0.85; margin: 14px 0 0 !important; }

.tl-copy { margin-top: 44px; line-height: 1.6; }
.tl-copy h2 { font-size: 1.3rem; }
.tl-faq details { border-bottom: 1px solid var(--tl-line); padding: 10px 0; }
.tl-faq summary { cursor: pointer; font-weight: 600; }

@media (max-width: 640px) {
  .tl-form { grid-template-columns: 1fr; padding: 16px; }
  .tl-go { justify-self: stretch; text-align: center; }
  .tl-ev { grid-template-columns: 1fr; gap: 4px; }
}

/* Sky trackers (api/pages/sky-trackers.js) share this sheet. */
.tr-answer { margin: 0 0 8px; font-size: clamp(1.2rem, 3.4vw, 1.6rem); font-weight: 700; line-height: 1.3; }
.tr-yes .tr-answer, .tr-answer.tr-yes { color: var(--tl-gold); }
.tr-table-wrap { overflow-x: auto; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tr-table th, .tr-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--tl-line); vertical-align: top; }
.tr-table th { font-size: 0.8rem; color: var(--tl-violet); font-weight: 700; }
.tr-deg { font-size: 0.82rem; opacity: 0.75; }
.tr-note { font-size: 0.85rem; opacity: 0.75; }
.tr-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.tr-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--tl-line); background: var(--tl-card); }
.tr-list li.tr-yes { border-left: 3px solid var(--tl-gold); }
.tr-list a { font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .tr-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Transit-alert opt-in (only rendered while the feature is available). */
.tl-alert-toggle { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; cursor: pointer; }
.tl-alert-toggle input { width: 18px; height: 18px; accent-color: var(--tl-gold); }

/* Conversion (timeline-convert.js): one-line paid offer under the biggest date,
   and the confirmation after an intent-driven opt-in. */
.tl-upsell { margin: 10px 0 0; font-size: 0.92rem; }
.tl-upsell a { color: var(--tl-gold); font-weight: 600; }
.tl-alert-done { margin: 8px 0 0; color: var(--tl-gold); font-weight: 600; }
