/* ===================================================================
   Public laws: the enacted text of an act, rendered in the reading column.
   Started as the spike's inline <style> in public_laws/text.html.erb.
   ================================================================== */

/* A pl page uses the section-page shell: `.doc-main` (the h1) switches `.doc`
   into its three-column grid, the reading column is `#doc-panel-text`, the
   preface facts stand in `#doc-panel-info` (sidebar.css), and the scrollspy
   floats in column 3. */
.pl-doc #doc-panel-text > .pl-section:first-child,
.pl-doc #doc-panel-text > .pl-container:first-child,
.pl-doc #doc-panel-text > .pl-longtitle:first-child { margin-top: 0; }
.pl-index .pl-lede { color: var(--ink-soft, #667); margin: -1rem 0 1.5rem; }
.pl-index h2 { font-size: 1rem; margin: 1.5rem 0 .5rem; color: var(--ink-soft, #667); }
.pl-index h2 .pl-count { font-weight: 400; }
.pl-congress-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.pl-congress-nav a {
  padding: .25rem .6rem;
  border: 1px solid var(--rule, #ddd);
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--ink-soft, #667);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.pl-congress-nav a:hover { background: var(--accent-soft); }
.pl-congress-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pl-congress-nav a .count { font-size: .75rem; opacity: .8; font-variant-numeric: tabular-nums; }

.bills-controls {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  background: var(--panel, #f8f9fa);
  border: 1px solid var(--rule, #e5e7eb);
  border-radius: var(--radius-md, 6px);
}
.bills-search-jump form {
  display: flex;
  gap: .5rem;
}
.bills-search-jump input[type="search"] {
  flex: 1;
  padding: .45rem .75rem;
  border: 1px solid var(--rule, #ddd);
  border-radius: var(--radius-md, 4px);
  background: var(--bg, #fff);
  color: var(--ink, #222);
  font-size: .9rem;
}
.bills-search-jump button {
  padding: .45rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md, 4px);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.bills-search-jump button:hover { filter: brightness(1.1); }
.bills-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.bills-filter-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--faint, #889);
  min-width: 4.5rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bills-results-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.5rem 0 .5rem;
}
.bills-results-header h2 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.bills-range-summary {
  font-size: .85rem;
  color: var(--faint, #889);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.badge-subtle {
  display: inline-block;
  padding: .15rem .45rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--panel, #f0f0f2);
  color: var(--muted, #667);
  border: 1px solid var(--rule, #e0e0e0);
  margin-left: auto;
}
.badge-success {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent, #7a5c2e);
  color: #fff;
  margin-left: auto;
}

.pl-legishistory .pl-legis-actions {
  list-style: none;
  margin: .15rem 0 0;
  padding: 0;
}
.pl-legishistory .pl-legis-actions li {
  padding-left: .7rem;
  text-indent: -.7rem;
  color: var(--ink-soft, #667);
}
.pl-legishistory .pl-legis-actions li + li { margin-top: .1rem; }

.pl-longtitle { text-align: center; margin: 2rem 0; }
.pl-anact { font-variant: small-caps; letter-spacing: .04em; font-size: 1.1rem; font-weight: 600; }
.pl-official { max-width: 42ch; margin: .5rem auto 0; }
.pl-enacting { margin: 1.5rem 0; }

.pl-container { margin: 2.5rem 0; }
.pl-container-head {
  font-size: 1rem; font-variant: small-caps; letter-spacing: .03em;
  border-bottom: 2px solid var(--rule, #ddd); padding-bottom: .3rem; margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}
.pl-container .pl-container { margin-left: 0; }
.pl-title > .pl-container-head { font-size: .95rem; border-bottom-width: 1px; }
.pl-num { color: var(--ink-soft, #667); font-weight: 600; }

.pl-section { margin: 1.75rem 0; scroll-margin-top: 5rem; }
.pl-section-head h3 { font-size: .98rem; margin: 0 0 .5rem; }
.pl-subheading { font-variant: small-caps; color: var(--ink-soft, #667); margin: 0; font-size: .9rem; }

/* The by-Congress index and a divisions law's table of contents. */
.pl-index h2 { font-size: 1rem; margin: 2rem 0 .5rem; color: var(--ink-soft, #667); }
.pl-toc ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.pl-toc li { border-bottom: 1px solid var(--rule); }
.pl-toc li a { display: flex; gap: 1rem; align-items: baseline; padding: var(--space-6, .5rem) .2rem; text-decoration: none; }
.pl-toc li a:hover { background: var(--accent-soft); }
.pl-toc .num { color: var(--accent); font-weight: 620; min-width: 5rem; }
.pl-toc .name { flex: 1; }
.pl-toc ul ul { margin: 0 0 0 1.5rem; }

/* The text ↔ changes tab strip, and the changes list it heads. */
.pl-tabs { display: flex; gap: .3rem; margin: .75rem 0 0; }
.pl-tabs a {
  padding: .25rem .7rem;
  border: 1px solid var(--rule, #ddd);
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--ink-soft, #667);
}
.pl-tabs a:hover { background: var(--accent-soft); }
.pl-tabs a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.pl-changes-page .pl-no-text-note {
  margin: 1rem 0 1.25rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink);
}
.pl-changes-page .summary { color: var(--ink-soft, #667); margin: 1.25rem 0; }
.pl-changes-page .aka { color: var(--ink-soft, #667); font-size: .9rem; }
.pl-changes-page ul.public-law-changes { list-style: none; margin: 0; padding: 0; }
.pl-changes-page ul.public-law-changes li { border-bottom: 1px solid var(--rule); padding: var(--space-6, .5rem) .2rem; }
.pl-changes-page ul.public-law-changes li a { color: var(--accent); font-weight: 620; text-decoration: none; }
.pl-changes-page ul.public-law-changes li a:hover { text-decoration: underline; }
