/* Families for Better Florida: Legislative Archive
   Layout: one 1440px container on every page; reading text capped near 68ch;
   two-column timelines (Senate | date spine | House) collapse to one column on phones. */

:root {
  /* Color */
  --paper:      #F5F5F1;   /* page ground, faint warm-neutral */
  --surface:    #FFFFFF;   /* cards, header */
  --sunk:       #ECECE5;   /* quiet panels */
  --ink:        #1D222B;   /* body text */
  --navy:       #1B2A4A;   /* brand primary */
  --navy-deep:  #111C33;
  --slate:      #586474;   /* secondary text */
  --muted:      #8B9097;   /* unavailable text */
  --gold:       #B4872F;   /* brand accent, used sparingly */
  --gold-ink:   #85621E;   /* gold for text, passes AA on paper */
  --gold-tint:  #F3EBD9;
  --line:       #DADAD2;
  --line-soft:  #E6E6DF;

  /* Type */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);

  /* Space and layout */
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 68px;
  --radius: 4px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 600; color: var(--navy-deep);
  line-height: 1.2; margin: 0; text-wrap: balance;
}
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink);
}
.lede { font-size: var(--fs-lg); color: var(--slate); max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Wordmark: type only, one line, same on every page */
.wordmark {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--navy-deep); white-space: nowrap;
}
.wordmark .name {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.005em; line-height: 1;
}
.wordmark .name em { font-style: italic; font-weight: 500; color: var(--gold-ink); }
.wordmark .divider { width: 1px; height: 22px; background: var(--line); }
.wordmark .sub {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate);
}
.wordmark:hover { color: var(--navy-deep); }
.wordmark:hover .name em { color: var(--gold); }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 14px; font-size: var(--fs-sm); font-weight: 500;
  color: var(--slate); text-decoration: none; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--navy); background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--navy-deep); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--gold);
}

@media (max-width: 860px) {
  .site-header .container { flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .wordmark .divider, .wordmark .sub { display: none; }
  .site-nav { overflow-x: auto; margin: 4px -8px 0; padding-bottom: 4px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 10px 8px; }
  .site-nav a[aria-current="page"]::after { left: 8px; right: 8px; }
  :root { --header-h: 104px; }
}

/* ---------------- Breadcrumb + page head ---------------- */

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: var(--fs-sm); color: var(--slate);
  padding-block: 24px 0;
}
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs .sep { color: var(--line); }

.page-head { padding-block: 20px 40px; display: grid; gap: 12px; }
.page-head h1 { font-size: var(--fs-3xl); }

/* ---------------- Buttons, chips, pills ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid var(--navy); color: var(--navy); background: var(--surface);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.file {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 12px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--navy); color: var(--navy); background: var(--surface);
  border-radius: var(--radius); text-decoration: none;
  transition: background .15s, color .15s;
}
a.file:hover { background: var(--navy); color: #fff; }
.file .ico { width: 14px; height: 14px; flex: none; }
.file.unavailable {
  border: 1px dashed var(--line); background: transparent;
  color: var(--muted); font-weight: 500; cursor: default;
}
.file.unavailable .tag { font-weight: 400; font-style: italic; }

.pill {
  display: inline-flex; align-items: center;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.pill.vote   { background: var(--navy); color: #fff; }
.pill.passed { background: var(--gold-tint); color: var(--gold-ink); }
.pill.novote { background: var(--sunk); color: var(--slate); }
.pill.tbd    { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

.status-key { display: flex; flex-wrap: wrap; gap: 20px; font-size: var(--fs-sm); color: var(--slate); }
.status-key span { display: inline-flex; align-items: center; gap: 8px; }
.status-key .file { pointer-events: none; min-height: 28px; }

/* ---------------- Home ---------------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px); align-items: end;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: var(--fs-3xl); max-width: 18ch; margin-block: 14px 18px; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.fact { background: var(--surface); padding: 20px 22px; display: grid; gap: 2px; }
.fact .num {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--navy-deep);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.fact .label { font-size: var(--fs-sm); color: var(--slate); }

.section { padding-block: clamp(40px, 5vw, 72px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--slate); max-width: 64ch; }

.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.part {
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.part:hover { border-color: var(--navy); box-shadow: 0 6px 24px -12px rgba(17, 28, 51, .25); color: inherit; }
.part h3 { font-size: var(--fs-2xl); margin-top: 6px; }
.part p { color: var(--slate); max-width: 52ch; }
.part .preview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.part .preview div { font-size: var(--fs-sm); color: var(--slate); }
.part .preview strong { display: block; font-family: var(--serif); font-size: var(--fs-lg); color: var(--navy-deep); }
.part .go { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.part:hover .go { color: var(--gold-ink); }

.years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.year-tile {
  display: grid; gap: 4px; padding: 18px 18px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s;
}
.year-tile:hover { border-color: var(--navy); color: inherit; }
.year-tile .y { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; color: var(--gold-ink); line-height: 1.1; }
.year-tile .b { font-size: var(--fs-sm); color: var(--slate); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); }
.about p { color: var(--slate); max-width: 62ch; }
.about p + p { margin-top: 12px; }

/* ---------------- Bill summary cards (2007) ---------------- */

.bill-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bill-card {
  display: grid; gap: 10px; align-content: start;
  padding: 24px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.bill-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bill-card h2 { font-size: var(--fs-2xl); }
.bill-card .sponsor { font-size: var(--fs-sm); color: var(--slate); }
.bill-card .title { font-family: var(--serif); font-style: italic; color: var(--slate); font-size: var(--fs-lg); }
.bill-card p { color: var(--ink); max-width: 64ch; }

.excerpt-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: 24px; padding: 20px 26px;
  background: var(--sunk); border-radius: var(--radius);
}
.excerpt-bar h3 { font-size: var(--fs-lg); }
.excerpt-bar p { color: var(--slate); font-size: var(--fs-sm); max-width: 70ch; margin-top: 2px; }

/* ---------------- Timeline ---------------- */

.tl { padding-block: 16px 64px; }
.tl-cols {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 10;
  display: grid; grid-template-columns: 1fr 120px 1fr;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding-block: 16px 12px;
}
.tl-col-head { display: grid; gap: 2px; }
.tl-col-head .name { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; color: var(--navy-deep); line-height: 1.2; }
.tl-col-head .sub { font-size: var(--fs-sm); color: var(--slate); }

.tl-rows { position: relative; }
.tl-rows::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: var(--line);
}
.tl-row { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: start; padding-block: 18px; }
.tl-cell { min-width: 0; display: grid; gap: 14px; }
.tl-cell.left { grid-column: 1; }
.tl-cell.right { grid-column: 3; }

.tl-date {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 0;
  background: var(--paper); padding-block: 6px;
}
.tl-date::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--paper); box-sizing: content-box; margin-bottom: 6px;
}
.tl-date .d { font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); color: var(--navy-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tl-date .y { font-size: var(--fs-xs); color: var(--slate); letter-spacing: 0.04em; }
.tl-date.tbd::before { background: var(--paper); border: 2px dashed var(--muted); width: 10px; height: 10px; }
.tl-date.tbd .d { color: var(--muted); }

.card {
  position: relative; display: grid; gap: 10px;
  padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tl-cell.left .card::after, .tl-cell.right .card::after {
  content: ""; position: absolute; top: 30px; width: 32px; height: 1px; background: var(--line);
}
.tl-cell.left .card::after { right: -33px; }
.tl-cell.right .card::after { left: -33px; }
.card .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.card h3 { font-size: var(--fs-lg); }
.card .meta { font-size: var(--fs-sm); color: var(--slate); }
.card .chamber-tag { display: none; }
.card .desc { font-size: 0.9375rem; max-width: 64ch; }
.card .note {
  font-size: var(--fs-sm); color: var(--slate);
  border-left: 2px solid var(--gold); padding-left: 12px;
}
.card .files { margin-top: 4px; }

.card.pending { background: transparent; border-style: dashed; }
.card.pending h3, .card.pending .meta { color: var(--muted); }

/* Full-width rows: court cases, links, unplaced bills */
.tl-row.full .tl-cell { grid-column: 1 / -1; position: relative; z-index: 1; }
.wide-card {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.wide-card .yr { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.wide-card h3 { font-size: var(--fs-lg); margin-top: 2px; }
.wide-card .meta { font-size: var(--fs-sm); color: var(--slate); margin-top: 2px; }
.wide-card.case { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.wide-card.case .eyebrow { color: var(--gold-ink); }
.wide-card.pending { background: var(--paper); border-style: dashed; }
.wide-card.pending .yr, .wide-card.pending h3 { color: var(--muted); }
a.wide-card.link { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }
a.wide-card.link .yr { color: #E3C687; }
a.wide-card.link h3 { color: #fff; }
a.wide-card.link .meta { color: #C7CFDC; }
a.wide-card.link .go { color: #E3C687; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
a.wide-card.link:hover { background: var(--navy-deep); }

.empty-slot {
  min-height: 56px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-soft); border-radius: var(--radius);
  font-size: var(--fs-sm); font-style: italic; color: var(--muted);
}

/* ---------------- Year pages ---------------- */

.year-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: 64px; }
.year-bills { display: grid; gap: 20px; }
.year-bill { display: grid; gap: 12px; padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.year-bill .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.year-bill h2 { font-size: var(--fs-2xl); }
.year-bill .chamber { font-size: var(--fs-sm); color: var(--slate); }
.year-bill p { max-width: 68ch; }
.statute-tag {
  display: inline-flex; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 2px; background: var(--gold-tint); color: var(--gold-ink);
}
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-box { padding: 22px; background: var(--sunk); border-radius: var(--radius); display: grid; gap: 10px; }
.aside-box h3 { font-size: var(--fs-md); font-family: var(--sans); font-weight: 600; color: var(--navy-deep); }
.aside-box p { font-size: var(--fs-sm); color: var(--slate); }

.pager {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 28px; border-top: 1px solid var(--line);
}
.pager a { display: grid; gap: 2px; text-decoration: none; }
.pager .dir { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.pager .t { font-family: var(--serif); font-size: var(--fs-xl); color: var(--navy-deep); }
.pager a:hover .t { color: var(--gold-ink); }
.pager .next { text-align: right; margin-left: auto; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-deep); color: #C7CFDC; margin-top: 0; }
.site-footer .container {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; padding-block: 48px;
}
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark .name em { color: #E3C687; }
.site-footer .wordmark .divider { background: #3A4762; }
.site-footer .wordmark .sub { color: #9AA6BA; }
.site-footer p { font-size: var(--fs-sm); margin-top: 14px; max-width: 46ch; }
.site-footer h4 { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: #9AA6BA; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #E3C687; }

/* ---------------- File viewer ---------------- */

.viewer {
  width: min(1100px, 94vw); max-height: 92vh; padding: 0;
  border: 0; border-radius: 6px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 64px -16px rgba(17, 28, 51, .45);
}
.viewer::backdrop { background: rgba(17, 28, 51, .6); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.viewer-title { font-family: var(--serif); font-weight: 600; color: var(--navy-deep); font-size: var(--fs-lg); }
.viewer-sub { font-size: var(--fs-xs); color: var(--slate); }
.viewer-actions { display: flex; gap: 8px; flex: none; }
.viewer-body { background: var(--paper); }
.viewer-body iframe { display: block; width: 100%; border: 0; }
.viewer[data-kind="doc"] .viewer-body iframe { height: 78vh; }
.viewer[data-kind="video"] .viewer-body iframe { aspect-ratio: 16 / 9; height: auto; max-height: 78vh; }
.viewer[data-kind="audio"] .viewer-body iframe { height: 120px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .year-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .hero, .parts, .about, .bill-pair { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .container > :first-child { grid-column: 1 / -1; }

  .tl-cols { display: none; }
  .tl-rows::before { left: 7px; }
  .tl-row { grid-template-columns: 1fr; padding: 12px 0 12px 32px; }
  .tl-date { position: absolute; left: 0; top: 18px; grid-column: auto; padding: 0; background: none; }
  .tl-date::before { margin: 0; width: 10px; height: 10px; }
  .tl-date .d, .tl-date .y { display: none; }
  .tl-cell.left, .tl-cell.right { grid-column: 1; }
  .tl-cell:empty { display: none; }
  .tl-cell.left .card::after, .tl-cell.right .card::after { display: none; }
  .card .chamber-tag { display: block; }
  .empty-slot { display: none; }
  .tl-row.empty-year { display: none; }
  .wide-card { grid-template-columns: 1fr; gap: 8px; }
  .wide-card .yr { font-size: 1.25rem; }
}
@media (max-width: 560px) {
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px; }
  .fact .num { font-size: 1.5rem; }
  .part .preview { grid-template-columns: 1fr; }
  .year-bill, .bill-card { padding: 22px 20px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .viewer-bar { flex-direction: column; align-items: stretch; }
}

.tl-mobile-only { display: none; }
@media (max-width: 900px) { .tl-mobile-only { display: grid; } }
.btn .ico { width: 16px; height: 16px; flex: none; }
.hero h1 { max-width: 20ch; }

/* ---------------- 2007 homepage: Date | SB 1004 | HB 573 ---------------- */

.home-head { padding-block: 32px 24px; }
.pill.signed { background: var(--navy); color: #fff; }

.bill-text {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 0 24px;
  padding-block: 20px; border-top: 1px solid var(--line);
}
.bill-text::before { content: "Bill text"; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); padding-top: 4px; }
.bill-text .bt { display: grid; gap: 8px; align-content: start; min-width: 0; }
.bill-text h2 { font-size: var(--fs-xl); }

.tl.dated .tl-cols,
.tl.dated .tl-row { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
.tl.dated .tl-rows::before { left: 5px; margin-left: 0; }
.tl.dated .tl-row { border-top: 1px solid var(--line-soft, var(--line)); }
.tl.dated .tl-date {
  grid-column: 1; grid-row: 1; justify-self: start; justify-items: start;
  padding: 18px 0 0 22px; background: none;
}
.tl.dated .tl-date::before { position: absolute; left: 0; top: 24px; margin: 0; width: 8px; height: 8px; }
.tl.dated .tl-cell.sb { grid-column: 2; grid-row: 1; }
.tl.dated .tl-cell.hb { grid-column: 3; grid-row: 1; }
.tl.dated .tl-row.full .tl-cell.span { grid-column: 2 / -1; }
.tl.dated .card::after { display: none; }
.card .where { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.card .bill-label { display: none; }

@media (max-width: 1100px) and (min-width: 901px) {
  .tl.dated .tl-cols, .tl.dated .tl-row, .bill-text { grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .tl.dated .card { padding: 16px; }
}

@media (max-width: 900px) {
  .bill-text { grid-template-columns: 1fr; gap: 16px; }
  .tl.dated .tl-cols { display: none; }
  .tl.dated .tl-rows::before { display: none; }
  .tl.dated .tl-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .tl.dated .tl-date {
    position: static; grid-row: auto; display: flex; align-items: baseline; gap: 6px; padding: 0;
  }
  .tl.dated .tl-date::before { display: none; }
  .tl.dated .tl-date .d, .tl.dated .tl-date .y { display: inline; }
  .tl.dated .tl-date .y { font-size: var(--fs-sm); }
  .tl.dated .tl-cell.sb, .tl.dated .tl-cell.hb, .tl.dated .tl-row.full .tl-cell.span { grid-column: 1; grid-row: auto; }
  .tl.dated .tl-cell:empty { display: none; }
  .tl.dated .card .bill-label { display: inline; }
  .tl.dated .tl-cell.sb .card { box-shadow: inset 3px 0 0 var(--navy); }
  .tl.dated .tl-cell.hb .card { box-shadow: inset 3px 0 0 var(--gold); }
  .years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .excerpt-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl.dated .card { padding: 16px; }
  .file { min-height: 40px; }
}
