/* ls_timeline.css — the state update timeline page family (owner,
   2026-11-19): one page per state, plus one federal page, on every site
   except HOA Weekly. ONE shared file for all of them; a page file never
   carries its own styling. Rendered by website/components/timeline.py,
   which wraps the timeline in the site's own /states/ header and footer
   (#hw-states, ls_grid.css), so only the hero additions (#hw-tl-hero) and
   the timeline body (#hw-tl) are styled here. Layout from the approved AI
   Rules Weekly mockup, version 4 (governance/DECISIONS.md 2026-11-19), in
   the site tokens: static gold is --gold (--gold-bright on hover only),
   text on a gold fill is white, prose links are gold and underlined. */

/* ---------- hero additions ---------- */
#hw-tl-hero .hw-tl-crumbs {
  display: flex; gap: 10px; margin-bottom: 22px;
  font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint);
}
#hw-tl-hero .hw-tl-crumbs a { color: var(--ink-dim); }
#hw-tl-hero .hw-tl-crumbs a:hover { color: var(--gold-bright); }
#hw-tl-hero .hw-intro { max-width: 760px; }
#hw-tl-hero .hw-tl-stats { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 32px; }
#hw-tl-hero .hw-tl-stats b {
  display: block; font-family: var(--serif); font-size: 34px; line-height: 1;
  color: var(--gold); font-weight: 400;
}
#hw-tl-hero .hw-tl-stats span {
  display: block; margin-top: 8px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- layout ---------- */
#hw-tl { background: var(--bg); color: var(--ink); }
#hw-tl .hw-tl-body {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px;
  padding-top: 44px; padding-bottom: 90px; align-items: start;
}
#hw-tl .hw-tl-rail { position: sticky; top: 64px; display: grid; gap: 18px; }
#hw-tl .hw-tl-panel {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 20px 20px 18px;
}
#hw-tl .hw-tl-label {
  margin: 0 0 14px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
#hw-tl .hw-tl-upc { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
#hw-tl .hw-tl-upc li { display: grid; gap: 3px; padding-left: 14px; border-left: 1px solid var(--gold-dim); }
#hw-tl .hw-tl-upc time {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
#hw-tl .hw-tl-upc span { font-size: 13.5px; line-height: 1.45; color: var(--ink-dim); }

/* ---------- the pass panel (pass holders only: downloads + alert settings) ---------- */
#hw-tl .hw-tl-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#hw-tl .hw-tl-dl a {
  font-size: 14px; line-height: 1.45; color: var(--gold);
  text-decoration: underline; text-underline-offset: 2px;
}
#hw-tl .hw-tl-dl a:hover { color: var(--gold-bright); }
#hw-tl .hw-tl-dl a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- audience + duty filters ---------- */
#hw-tl .hw-tl-roles { display: grid; gap: 6px; margin-bottom: 14px; }
#hw-tl .hw-tl-role {
  font: inherit; font-size: 13.5px; text-align: left; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--hairline); border-radius: 5px;
  padding: 8px 12px; cursor: pointer;
}
#hw-tl .hw-tl-role:hover { border-color: var(--gold-dim); color: var(--ink); }
#hw-tl .hw-tl-role:focus-visible, #hw-tl .hw-tl-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#hw-tl .hw-tl-role.hw-tl-on { background: rgba(172, 125, 70, 0.18); border-color: var(--gold); color: var(--ink); font-weight: 600; }
#hw-tl .hw-tl-tog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-dim); cursor: pointer; position: relative; }
#hw-tl .hw-tl-tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#hw-tl .hw-tl-tog span {
  flex: none; width: 30px; height: 17px; border-radius: 999px;
  background: var(--hairline); position: relative; transition: background 0.15s;
}
#hw-tl .hw-tl-tog span:after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--ink); transition: left 0.15s;
}
#hw-tl .hw-tl-tog input:checked + span { background: var(--gold); }
#hw-tl .hw-tl-tog input:checked + span:after { left: 15px; background: #fff; }
#hw-tl .hw-tl-tog input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#hw-tl .hw-tl-mrow[hidden] { display: none; }

/* ---------- federal bar + type chips ---------- */
#hw-tl .hw-tl-fedbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 22px;
  padding: 14px 18px; border: 1px solid var(--gold-dim); border-radius: 10px; background: rgba(172, 125, 70, 0.07);
}
#hw-tl .hw-tl-fedbar:hover { border-color: var(--gold); }
#hw-tl .hw-tl-fbtag {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: var(--gold); border-radius: 3px; padding: 4px 9px;
}
#hw-tl .hw-tl-fbtxt { flex: 1; min-width: 220px; font-size: 14px; line-height: 1.5; color: var(--ink-dim); }
#hw-tl .hw-tl-fbtxt b { color: var(--ink); font-weight: 600; margin-right: 6px; }
#hw-tl .hw-tl-fbgo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--gold);
}
#hw-tl .hw-tl-fedbar:hover .hw-tl-fbgo { color: var(--gold-bright); }
#hw-tl .hw-tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
#hw-tl .hw-tl-chip {
  font: inherit; font-size: 12.5px; letter-spacing: 0.06em; font-weight: 500; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
#hw-tl .hw-tl-chip i { font-style: normal; color: var(--ink-faint); margin-left: 5px; font-size: 11.5px; }
#hw-tl .hw-tl-chip:hover { border-color: var(--gold-dim); color: var(--ink); }
#hw-tl .hw-tl-chip.hw-tl-on { background: var(--gold); border-color: var(--gold); color: #fff; }
#hw-tl .hw-tl-chip.hw-tl-on i { color: #fff; }

/* ---------- the timeline ---------- */
#hw-tl .hw-tl-line { position: relative; }
#hw-tl .hw-tl-mon[hidden], #hw-tl .hw-tl-up[hidden] { display: none; }
#hw-tl .hw-tl-month {
  display: flex; align-items: center; gap: 14px; margin: 38px 0 6px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
#hw-tl .hw-tl-month:after { content: ""; flex: none; width: 62px; height: 1px; background: var(--gold-dim); order: 1; }
#hw-tl .hw-tl-month em {
  order: 2; font-style: normal; font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-faint); font-weight: 500;
}
#hw-tl .hw-tl-up {
  display: grid; grid-template-columns: 78px 21px minmax(0, 1fr); gap: 0 16px;
  position: relative; padding-top: 26px; scroll-margin-top: 60px;
}
#hw-tl .hw-tl-when time { display: block; text-align: right; padding-top: 17px; }
#hw-tl .hw-tl-when b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
#hw-tl .hw-tl-when i { font-style: normal; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; }
#hw-tl .hw-tl-node { position: relative; }
#hw-tl .hw-tl-node:before {
  content: ""; position: absolute; left: 10px; top: -26px; bottom: 0; width: 1px; background: var(--gold-dim);
}
#hw-tl .hw-tl-node:after {
  content: ""; position: absolute; left: 5px; top: 21px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
#hw-tl .hw-tl-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hairline); border-radius: 10px; padding: 20px 26px 18px;
}
#hw-tl .hw-tl-card:hover { border-color: var(--gold-dim); }
#hw-tl .hw-tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 11px; }

/* type badge: a gold fill (white text) for bills; outlined for the rest */
#hw-tl .hw-tl-badge {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 3px; color: var(--ink); border: 1px solid var(--ink-faint);
}
#hw-tl .hw-tl-badge.hw-tl-k-bill { color: #fff; background: var(--gold); border-color: var(--gold); }
#hw-tl .hw-tl-badge.hw-tl-k-law { color: var(--ink); border-color: var(--ink); }
#hw-tl .hw-tl-badge.hw-tl-k-court,
#hw-tl .hw-tl-badge.hw-tl-k-agency,
#hw-tl .hw-tl-badge.hw-tl-k-federal { color: var(--ink-dim); border-color: var(--ink-faint); }
#hw-tl .hw-tl-cite { font-size: 12.5px; color: var(--ink-dim); font-weight: 500; }
#hw-tl .hw-tl-status { font-size: 12px; color: var(--ink-faint); }
#hw-tl .hw-tl-status:before { content: "\00b7"; margin-right: 9px; }

/* impact pill: strongest for a new duty, faintest for no change */
#hw-tl .hw-tl-imp {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px 3px 20px; border-radius: 3px; border: 1px solid var(--hairline);
  color: var(--ink-faint); position: relative;
}
#hw-tl .hw-tl-imp:before {
  content: ""; position: absolute; left: 8px; top: 50%; margin-top: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint);
}
#hw-tl .hw-tl-imp.hw-tl-i-duty { color: #fff; background: var(--gold); border-color: var(--gold); }
#hw-tl .hw-tl-imp.hw-tl-i-duty:before { background: #fff; }
#hw-tl .hw-tl-imp.hw-tl-i-deadline { color: var(--gold); border-color: var(--gold-dim); }
#hw-tl .hw-tl-imp.hw-tl-i-deadline:before { background: var(--gold); }
#hw-tl .hw-tl-imp.hw-tl-i-watch { color: var(--ink-dim); border-color: var(--ink-faint); }
#hw-tl .hw-tl-imp.hw-tl-i-watch:before { background: var(--ink-dim); }

/* the update's headline: the /latest/ card-headline pattern (h2) */
#hw-tl .hw-tl-h {
  font-family: var(--serif); font-size: 21px; line-height: 1.3; font-weight: 400; color: #f5f2ea;
  margin: 0 0 10px; padding: 0; border: 0; letter-spacing: 0; text-transform: none;
}
#hw-tl .hw-tl-card p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.66; color: var(--ink-dim); }
#hw-tl .hw-tl-card p b { color: var(--ink); font-weight: 600; }

/* ---------- what this means ---------- */
#hw-tl .hw-tl-means {
  margin: 16px 0 4px; border: 1px solid var(--gold-dim); border-radius: 6px;
  background: rgba(172, 125, 70, 0.05); overflow: hidden;
}
#hw-tl .hw-tl-mhead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px;
  padding: 10px 16px; border-bottom: 1px solid var(--hairline); background: rgba(172, 125, 70, 0.08);
}
#hw-tl .hw-tl-mhead > span {
  font-size: 11px; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 700; color: var(--gold);
}
#hw-tl .hw-tl-stake { font-style: normal; font-size: 13px; color: var(--ink-dim); }
#hw-tl .hw-tl-stake b {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  margin-right: 8px; font-weight: 600;
}
#hw-tl .hw-tl-means dl { margin: 0; }
#hw-tl .hw-tl-mrow {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px;
  padding: 11px 16px; border-top: 1px solid var(--hairline);
}
#hw-tl .hw-tl-mrow:first-child { border-top: 0; }
#hw-tl .hw-tl-mrow dt { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
#hw-tl .hw-tl-mrow dd { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--ink-dim); }
#hw-tl .hw-tl-mrow.hw-tl-na dt, #hw-tl .hw-tl-mrow.hw-tl-na dd { color: var(--ink-faint); }

/* ---------- sources + closing note (prose links: gold, underlined) ---------- */
#hw-tl .hw-tl-srcs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--hairline); font-size: 13px;
}
#hw-tl .hw-tl-srcs > span {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
}
#hw-tl .hw-tl-src, #hw-tl .hw-tl-end a {
  color: var(--gold); text-decoration: underline; text-underline-offset: 2px;
}
#hw-tl .hw-tl-src { display: inline-flex; align-items: center; gap: 6px; }
#hw-tl .hw-tl-src:hover, #hw-tl .hw-tl-end a:hover { color: var(--gold-bright); }
#hw-tl .hw-tl-end { margin: 34px 0 0 115px; font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); max-width: 680px; }
#hw-tl .hw-tl-end + .hw-tl-end { margin-top: 10px; }

/* ---------- smaller screens (980 / 720, the site breakpoints) ---------- */
@media (max-width: 980px) {
  #hw-tl .hw-tl-body { grid-template-columns: 1fr; gap: 28px; }
  #hw-tl .hw-tl-rail { position: static; order: 2; }
}
@media (max-width: 720px) {
  #hw-tl-hero .hw-tl-stats { gap: 16px 22px; }
  #hw-tl-hero .hw-tl-stats b { font-size: 26px; }
  #hw-tl .hw-tl-up { grid-template-columns: 21px minmax(0, 1fr); gap: 0 10px; }
  #hw-tl .hw-tl-when { grid-column: 2; grid-row: 1; }
  #hw-tl .hw-tl-when time { text-align: left; padding: 0 0 8px; display: flex; gap: 7px; align-items: baseline; }
  #hw-tl .hw-tl-node { grid-column: 1; grid-row: 1 / 3; }
  #hw-tl .hw-tl-node:after { top: 2px; }
  #hw-tl .hw-tl-card { grid-column: 2; padding: 16px 16px 14px; }
  #hw-tl .hw-tl-h { font-size: 18.5px; }
  #hw-tl .hw-tl-mrow { grid-template-columns: 1fr; gap: 4px; }
  #hw-tl .hw-tl-end { margin-left: 31px; }
}
