/* TSFA Tennessee bill tracker (1.27.0). Builds on resources.css (same page ID and colors).
   Layout follows the width of the section itself (container queries), so it fits a full-width row or a narrow column. */
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt,
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser { container-type: inline-size; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
  align-items: end; margin: 0 0 16px;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools[hidden] { display: none; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools label {
  display: block; margin: 0; color: var(--tsfa-navy); font-size: 13px; font-weight: 700;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools input,
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools select {
  display: block; width: 100%; height: auto; margin-top: 6px; padding: 10px 12px !important;
  border: 1px solid #b8c4cc !important; border-radius: 8px !important; background: #fff !important;
  color: var(--tsfa-ink) !important; font: 400 15px/1.4 Arial, Helvetica, sans-serif !important; box-shadow: none !important;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools input:focus,
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools select:focus { outline: 3px solid var(--tsfa-gold); outline-offset: 1px; }
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-count {
  grid-column: 1 / -1; margin: 0 !important; color: var(--tsfa-muted) !important; font-size: 13px !important;
}

/* Table */
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-table {
  border: 1px solid var(--tsfa-line); border-radius: 12px; overflow: hidden; background: var(--tsfa-white);
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-head,
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-cells {
  display: grid; grid-template-columns: 110px minmax(0, 2.4fr) 150px minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 18px;
  padding: 16px 20px;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-head {
  background: var(--tsfa-navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-row { border-top: 1px solid var(--tsfa-line); }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-row:nth-child(odd) { background: #fbfcfd; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-row[hidden] { display: none; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-label { display: none; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-bill strong {
  display: block; color: var(--tsfa-red-dark); font-size: 17px; font-weight: 800; letter-spacing: 0.2px;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-comp,
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-small {
  display: block; margin-top: 4px; color: var(--tsfa-muted); font-size: 12px; line-height: 1.4;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-what h3 {
  margin: 0 0 6px !important; color: var(--tsfa-deep) !important; font-size: 16px !important; line-height: 1.3 !important;
}
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-note {
  margin: 8px 0 6px !important; padding: 8px 10px !important; border-left: 4px solid var(--tsfa-red);
  background: var(--tsfa-cream); color: var(--tsfa-ink) !important; font-size: 13px !important; line-height: 1.45 !important;
}
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-note span {
  color: var(--tsfa-red-dark); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-sponsor { margin: 0 !important; color: var(--tsfa-muted) !important; font-size: 12px !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-date { display: block; color: var(--tsfa-ink); font-size: 14px; font-weight: 700; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-date.is-hearing { color: var(--tsfa-red-dark); }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-pill {
  display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.2;
  background: var(--tsfa-sky); color: var(--tsfa-blue);
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-pill.is-committee { background: #fff4d6; color: #7a5a00; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-pill.is-moving { background: #fde8ea; color: var(--tsfa-red-dark); }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-pill.is-law { background: var(--tsfa-navy); color: #fff; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-pill.is-stopped { background: #eceff1; color: #4a555e; }

/* Details */
html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more { padding: 0 20px 14px; }
html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more summary {
  display: inline-block; cursor: pointer; color: var(--tsfa-red-dark); font-size: 12px; font-weight: 800; list-style: none;
}
html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more summary::-webkit-details-marker { display: none; }
html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more summary::before { content: "+ "; }
html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more[open] summary::before { content: "\2212  "; }
html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more summary:focus-visible { outline: 3px solid var(--tsfa-gold); outline-offset: 3px; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 12px; padding: 18px;
  border-radius: 10px; background: var(--tsfa-sky);
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid h4 {
  margin: 0 0 8px !important; color: var(--tsfa-deep) !important; font: 800 11px/1.3 Arial, Helvetica, sans-serif !important;
  letter-spacing: 1.2px !important; text-transform: uppercase !important;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid p { margin: 0 0 8px !important; color: var(--tsfa-ink) !important; font-size: 13px !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid li {
  margin: 0 0 8px !important; padding: 0 !important; color: var(--tsfa-ink); font-size: 13px; font-weight: 700; line-height: 1.4; list-style: none !important;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid li::before { display: none !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid li span { display: block; color: var(--tsfa-muted); font-weight: 400; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid li.is-up { color: var(--tsfa-red-dark); }
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-links a {
  display: block; margin-bottom: 6px; color: var(--tsfa-blue) !important; font-size: 12px; font-weight: 800; text-decoration: underline !important;
}
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-empty {
  margin: 12px 0 0 !important; padding: 18px 22px !important; border: 1px dashed var(--tsfa-line); color: var(--tsfa-muted) !important;
}
html body #tsfa-page-resources#tsfa-page-resources p.tsfa-bt-empty[hidden] { display: none; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt p.tsfa-res-note { margin-top: 16px !important; color: var(--tsfa-muted) !important; font-size: 12px !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt p.tsfa-res-note a { color: var(--tsfa-blue) !important; text-decoration: underline !important; }

/* Public teaser (Take Action page) */
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser-box {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 40px; align-items: center;
  padding: 34px; border-radius: 15px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(22, 95, 141, 0.7), transparent 40%), linear-gradient(125deg, var(--tsfa-deep) 0%, var(--tsfa-navy) 60%, #0c456f 100%);
  box-shadow: 0 14px 30px rgba(9, 47, 83, 0.14);
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser-box p.tsfa-res-kicker { color: var(--tsfa-gold) !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser-box h2 {
  margin-bottom: 12px !important; color: #fff !important; font-size: clamp(24px, 3vw, 34px) !important; letter-spacing: -0.6px !important;
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser-box p.tsfa-res-intro { margin: 0 !important; color: rgba(255, 255, 255, 0.86) !important; font-size: 16px !important; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-stats div {
  padding: 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; background: rgba(255, 255, 255, 0.07);
}
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-stats strong { display: block; color: var(--tsfa-gold); font-size: 28px; font-weight: 800; line-height: 1.1; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-stats span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.86); font-size: 12px; font-weight: 700; }
html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn {
  padding: 13px 18px; border-radius: 8px; background: var(--tsfa-red); color: #fff !important; font-size: 13px; font-weight: 800;
  box-shadow: 0 7px 20px rgba(207, 63, 75, 0.28); transition: transform 160ms ease, background-color 160ms ease;
}
html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn:hover { background: var(--tsfa-red-dark); transform: translateY(-2px); }
html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn.secondary { border: 1px solid rgba(255, 255, 255, 0.48); background: transparent; box-shadow: none; }
html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn.secondary:hover { background: rgba(255, 255, 255, 0.13); }

@container (max-width: 980px) {
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-head,
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-cells { grid-template-columns: 96px minmax(0, 2fr) 130px minmax(0, 1.2fr); }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-head span:nth-child(5) { display: none; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next { grid-column: 2 / -1; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next .tsfa-bt-label { display: inline; margin-right: 6px; color: var(--tsfa-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next .tsfa-bt-date,
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next .tsfa-bt-small { display: inline; margin-right: 6px; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 720px) {
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools { grid-template-columns: 1fr 1fr; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools label:first-child { grid-column: 1 / -1; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-head { display: none; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-cells { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px 18px 10px; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-what { grid-column: 1 / -1; order: 2; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-bill { order: 0; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-status { order: 1; text-align: right; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-last { order: 3; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next { order: 4; grid-column: auto; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-last .tsfa-bt-label,
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next .tsfa-bt-label { display: block; margin: 0 0 2px; color: var(--tsfa-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next .tsfa-bt-date,
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-next .tsfa-bt-small { display: block; margin-right: 0; }
  html body #tsfa-page-resources#tsfa-page-resources details.tsfa-bt-more { padding: 0 18px 16px; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-teaser-box { grid-template-columns: 1fr; padding: 26px 22px; }
}
@container (max-width: 480px) {
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-tools { grid-template-columns: 1fr; }
  html body #tsfa-page-resources#tsfa-page-resources .tsfa-bt-more-grid { grid-template-columns: 1fr; padding: 14px; }
  html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn { transition: none; }
  html body #tsfa-page-resources#tsfa-page-resources a.tsfa-bt-btn:hover { transform: none; }
}
