:root {
  --page: #f3f5f7;
  --sheet: #ffffff;
  --ink: #18202c;
  --muted: #586272;
  --rule: #d6dbe2;
  --link: #1b4d8f;
  --seal: #b4232a;
  --added: #1d6a39;
  --removed: #a3262a;
  --caution: #8a5a00;
  --caution-bg: #fff7e2;
  --info-bg: #eaf1fa;
  --target: #fff3c4;
  --serif: "Source Serif 4 Variable", "Source Serif Pro", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 9.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font: 600 1.75rem/1.2 var(--serif);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--sheet);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- header and footer ------------------------------------------------------- */

.site-header {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}

.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wordmark {
  font: 600 1.375rem/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
}

.wordmark__mark {
  color: var(--seal);
  margin-right: 0.15em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.quick-search {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 1 22rem;
  min-width: 0;
}

.quick-search input {
  flex: 1;
  min-width: 0;
}

main.wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1.25rem 0 2rem;
}

.site-footer p {
  margin: 0 0 0.25rem;
  max-width: 70ch;
}

.sync--failed {
  color: var(--removed);
}

.sync__detail {
  display: block;
  color: var(--muted);
}

/* --- forms --------------------------------------------------------------------- */

input[type="search"],
input[type="date"],
textarea,
select {
  font: inherit;
  color: inherit;
  background: var(--sheet);
  border: 1px solid #a9b2bf;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  max-width: 100%;
}

button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

button:hover {
  background: #2c3748;
}

.button--quiet {
  color: var(--ink);
  background: var(--sheet);
  border-color: #a9b2bf;
  font-weight: 400;
}

.button--quiet:hover {
  background: var(--page);
}

.language {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-form,
.compare {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field--wide {
  flex: 1 1 22rem;
}

.field--submit {
  align-self: flex-start;
  padding-top: 1.55rem;
}

.field__help {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
}

/* --- shared bits ----------------------------------------------------------------- */

.lede,
.side__note {
  color: var(--muted);
  max-width: 62ch;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.notice {
  background: var(--info-bg);
  border-left: 3px solid var(--link);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

.notice--quiet {
  background: none;
  border-left-color: var(--rule);
  padding: 0.25rem 0.75rem;
}

.disclaimer {
  background: var(--caution-bg);
  border-left: 3px solid var(--caution);
  padding: 0.875rem 1rem;
  margin: 1.25rem 0 2rem;
  max-width: 70ch;
}

.disclaimer p {
  margin: 0;
}

.disclaimer .disclaimer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8125rem;
  line-height: 1.3;
  padding: 0.1rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  white-space: nowrap;
}

.badge--in_force,
.badge--parsed {
  color: var(--added);
}

.badge--partial {
  color: var(--caution);
}

.badge--unparsed {
  color: var(--removed);
}

.badge--not_in_force,
.badge--unknown,
.badge--original,
.badge--consolidated,
.tag--quiet {
  color: var(--muted);
}

.badge--current {
  color: var(--added);
}

.badge--future,
.badge--reconstructed {
  color: var(--caution);
}

.tag {
  color: var(--link);
}

.stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.stats__added {
  color: var(--added);
}

.stats__removed {
  color: var(--removed);
}

.page-head {
  margin-bottom: 1rem;
}

.page-head__back {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.page-head__act {
  font: 1.0625rem/1.45 var(--serif);
  color: var(--muted);
  max-width: 70ch;
}

/* --- changes feed ---------------------------------------------------------------- */

.feed-layout {
  display: grid;
  gap: 2.5rem;
}

.feed {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.feed__item {
  padding: 1rem 0 1.125rem;
  border-bottom: 1px solid var(--rule);
}

.feed__address {
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.feed__address a {
  color: var(--muted);
}

.feed__title {
  font: 500 1.125rem/1.4 var(--serif);
  max-width: 68ch;
  margin-bottom: 0.4rem;
}

.feed__title a {
  color: var(--ink);
  text-decoration: none;
}

.feed__title a:hover {
  text-decoration: underline;
}

.feed__kind {
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
}

.feed__source {
  color: var(--muted);
  font-family: var(--serif);
}

.feed__meta,
.result__meta,
.change__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.side h2 {
  margin-top: 0.4rem;
}

.pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pending-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--rule);
}

.pending-list a {
  font-family: var(--serif);
}

.pending-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 60rem) {
  .feed-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3.5rem;
  }
}

/* --- search ------------------------------------------------------------------------ */

.result-count {
  color: var(--muted);
}

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.result {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule);
}

.result__title {
  font: 500 1.0625rem/1.4 var(--serif);
  max-width: 70ch;
  margin-bottom: 0.35rem;
}

.result__snippet {
  font-family: var(--serif);
  max-width: 70ch;
  margin-bottom: 0.35rem;
}

mark {
  background: var(--target);
  color: inherit;
  padding: 0 0.1em;
}

.choice {
  border: 0;
  padding: 0;
  margin: 0;
}

.choice legend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.25rem;
}

.choice label {
  font-weight: 400;
  font-size: 1rem;
}

.pager {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- act page ---------------------------------------------------------------------- */

.act-head {
  max-width: 62rem;
}

.act-head__address {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.act-head__type::before {
  content: "/";
  margin: 0 0.4em;
  color: var(--rule);
}

.act-head__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  font-size: 0.9375rem;
}

.act-head__status-text {
  color: var(--muted);
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 1rem 0;
}

.dates dt,
.version__facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.dates dd,
.version__facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.act-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.at-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.at-form label {
  font-size: 0.875rem;
  font-weight: 600;
}

.act-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.timeline h2 {
  margin-bottom: 0.75rem;
}

.versions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--rule);
}

.version {
  position: relative;
  padding: 0 0 1.125rem 1rem;
  font-size: 0.875rem;
}

.version::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--muted);
}

.version--selected::before {
  background: var(--ink);
  border-color: var(--ink);
}

.version p {
  margin: 0 0 0.2rem;
}

.version__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.version__kind {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.version__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.75rem;
  margin: 0.25rem 0;
}

.version__facts div {
  display: contents;
}

.version__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.15rem 0 0.3rem;
}

.version__title {
  font-family: var(--serif);
  color: var(--muted);
}

.version__match {
  color: var(--caution);
}

.amendments {
  margin: 0.25rem 0 0;
}

.amendments summary {
  cursor: pointer;
  color: var(--link);
  padding: 0.2rem 0;
}

.amendments__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border-left: 2px dashed var(--rule);
}

.version--reconstructed::before {
  width: 8px;
  height: 8px;
  left: -5px;
  border-style: dashed;
}

.version--reconstructed.version--selected::before {
  border-style: solid;
}

.version__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.version__shown {
  font-weight: 600;
}

.text__heading {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 1.25rem 1rem 2rem;
  font: 1.0625rem/1.65 var(--serif);
}

.unit {
  margin: 0;
  scroll-margin-top: 1rem;
}

.sheet > div.unit {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  column-gap: 1.25rem;
  padding: 0.2rem 0.5rem 0.2rem 0;
  border-left: 3px solid transparent;
}

.unit__path {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  padding-top: 0.2rem;
  font: 0.75rem/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: none;
}

.unit__path:hover {
  color: var(--link);
  text-decoration: underline;
}

.unit__text {
  grid-column: 2;
  margin: 0;
  max-width: 68ch;
}

.unit--d1 .unit__text {
  padding-left: 1.25rem;
}

.unit--d2 .unit__text {
  padding-left: 2.5rem;
}

.unit--d3 .unit__text {
  padding-left: 3.75rem;
}

.sheet > div.unit:target,
.sheet > div.unit:has(span:target) {
  background: var(--target);
  border-left-color: var(--caution);
}

.unit--plain,
.unit--annex-text {
  margin-left: calc(var(--gutter) + 1.25rem);
  padding: 0.2rem 0;
  max-width: 68ch;
}

.unit--plain {
  margin-bottom: 0.4rem;
}

.unit--heading {
  font: 600 1.0625rem/1.4 var(--serif);
  text-align: center;
  margin: 2rem 0 1rem calc(var(--gutter) + 1.25rem);
  max-width: 68ch;
}

.unit--annex {
  font: 600 1.0625rem/1.4 var(--serif);
  margin: 2.5rem 0 0.75rem calc(var(--gutter) + 1.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: 68ch;
}

.unit__heading-label,
.unit__heading-text {
  display: block;
}

.unit--heading .unit__heading-text {
  font-weight: 500;
}

.unit--annex .unit__heading-text {
  font-weight: 400;
}

@media (min-width: 64rem) {
  .act-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
  }

  .timeline {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .sheet {
    padding: 2rem 2.5rem 3rem 1rem;
  }
}

@media (max-width: 40rem) {
  .sheet > div.unit {
    display: block;
    padding: 0.35rem 0 0.35rem 0.5rem;
  }

  .unit__path {
    display: block;
    justify-self: start;
    text-align: left;
    padding-top: 0;
  }

  .unit--plain,
  .unit--annex-text,
  .unit--heading,
  .unit--annex {
    margin-left: 0;
  }

  .unit--d1 {
    margin-left: 0.75rem;
  }

  .unit--d2 {
    margin-left: 1.5rem;
  }

  .unit--d3 {
    margin-left: 2.25rem;
  }

  .unit--d1 .unit__text,
  .unit--d2 .unit__text,
  .unit--d3 .unit__text {
    padding-left: 0;
  }
}

/* --- diff page ------------------------------------------------------------------- */

.compare .field {
  flex: 1 1 16rem;
}

.compare .field--submit {
  flex: 0 0 auto;
}

.compare select {
  width: 100%;
}

.diff-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.diff-summary p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}

.pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin: 0;
}

.pair dt {
  font-weight: 600;
  font-size: 0.875rem;
}

.pair dd {
  margin: 0;
}

.amending {
  margin-bottom: 2rem;
}

.amending__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amending__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: 62rem;
}

.amending__address {
  font-weight: 600;
  font-size: 0.9375rem;
}

.amending__title {
  font-family: var(--serif);
  flex: 1 1 24rem;
}

.amending__date {
  color: var(--muted);
  font-size: 0.875rem;
}

.diff {
  margin-top: 0.75rem;
}

.diff__format {
  display: flex;
  gap: 1.25rem;
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
}

.diff__format[hidden] {
  display: none;
}

.patch {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 1rem;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Legal units are long single lines: wrap them instead of scrolling sideways. */
.diff__view .d2h-wrapper {
  font-family: var(--serif);
}

.diff__view .d2h-file-header {
  font-family: var(--sans);
  height: auto;
}

.diff__view .d2h-file-name {
  white-space: normal;
}

.diff__view .d2h-diff-table {
  font: 0.9375rem/1.55 var(--serif);
}

.diff__view .d2h-code-linenumber,
.diff__view .d2h-code-side-linenumber {
  position: static;
  vertical-align: top;
  font: 0.75rem/1.55 var(--sans);
  padding-top: 0.2rem;
}

.diff__view .d2h-code-line,
.diff__view .d2h-code-side-line {
  display: block;
  width: auto;
  padding: 0.1rem 0.75rem;
  white-space: normal;
}

.diff__view .d2h-code-line-ctn {
  display: inline;
  width: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Every pair of versions has different labels, so diff2html would always call it a rename. */
.diff__view .d2h-tag {
  display: none;
}

.diff__view .d2h-code-line ins,
.diff__view .d2h-code-line del,
.diff__view .d2h-code-side-line ins,
.diff__view .d2h-code-side-line del {
  display: inline;
}

.diff__view .d2h-file-side-diff {
  overflow-x: hidden;
}

.moved {
  background: var(--info-bg);
  border-left: 3px solid var(--link);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.moved summary {
  cursor: pointer;
  font-weight: 600;
}

.moved__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.moved__list li {
  padding: 0.3rem 0;
  border-top: 1px solid var(--rule);
}

.moved__paths {
  font-weight: 600;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.moved__paths del {
  color: var(--removed);
}

.moved__paths ins {
  color: var(--added);
  text-decoration: none;
}

.moved__text {
  font-family: var(--serif);
  color: var(--muted);
}

.embed {
  margin-top: 2rem;
}

.embed summary {
  cursor: pointer;
  font-weight: 600;
}

.embed label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.embed textarea {
  width: 100%;
  font: 0.8125rem/1.4 ui-monospace, monospace;
}

.embedded {
  background: var(--sheet);
  padding: 0.75rem;
}

.embedded__head p {
  margin: 0 0 0.35rem;
}

.embedded__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
}

.embedded__note {
  color: var(--caution);
  font-size: 0.875rem;
}

/* --- history and blame ------------------------------------------------------------ */

.log {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.log__entry {
  padding: 0.75rem 0 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.log__entry--current {
  border-left: 3px solid var(--added);
  padding-left: 0.75rem;
}

.log__head,
.log__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.875rem;
  margin: 0 0 0.3rem;
}

.log__seq {
  font-weight: 600;
}

.log__date {
  font-variant-numeric: tabular-nums;
}

.log__address {
  font-weight: 600;
  font-size: 0.9375rem;
}

.log__title {
  font-family: var(--serif);
}

.log__meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.blame {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.blame__block {
  display: grid;
  gap: 0.25rem 1.25rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.blame__origin {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.blame__kind {
  color: var(--caution);
}

.blame__lines {
  font: 0.9375rem/1.55 var(--serif);
  min-width: 0;
  overflow-wrap: anywhere;
}

.blame__lines p {
  margin: 0 0 0.15rem;
}

@media (min-width: 52rem) {
  .blame__block {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .blame__origin {
    flex-direction: column;
  }
}

/* --- validation ------------------------------------------------------------------- */

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 1.5rem 0 2rem;
}

.figures dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.figures dd {
  margin: 0;
  font: 600 1.5rem/1.2 var(--serif);
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  font-size: 0.9375rem;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.table th {
  font-size: 0.8125rem;
  color: var(--muted);
}

.table .table__number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table__title {
  display: block;
  font-family: var(--serif);
  color: var(--muted);
}

/* --- pending page ---------------------------------------------------------------- */

.pending-group {
  margin-bottom: 2.5rem;
}

.pending-group > h2 {
  font: 600 1.375rem/1.3 var(--serif);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
}

.change {
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.change__title {
  font: 500 1.125rem/1.4 var(--serif);
  max-width: 70ch;
}

.change__base {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.change__subhead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-size: 0.9375rem;
  margin-top: 1.25rem;
}

.change__subhead .stats {
  font-weight: 400;
  font-size: 0.875rem;
}

.instructions {
  margin: 0;
  padding-left: 1.5rem;
  max-width: 72ch;
}

.instruction {
  padding: 0.3rem 0;
}

.instruction__state {
  margin-right: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--removed);
}

.instruction--applied .instruction__state {
  color: var(--added);
}

.instruction__text {
  font-family: var(--serif);
}

@media (max-width: 40rem) {
  h1 {
    font-size: 1.5rem;
  }

  .quick-search {
    flex-basis: 100%;
    margin-left: 0;
  }

  .field--submit {
    padding-top: 0;
  }

  .search-form .field,
  .search-form select {
    width: 100%;
  }
}

/* --- who made it -------------------------------------------------------------------- */

.who {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.who__facts {
  display: grid;
  gap: 0.375rem;
  margin: 0;
}

.who__facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0 1rem;
}

.who__facts dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.who__facts dd {
  margin: 0;
  min-width: 0;
}

.who__detail,
.who__club {
  color: var(--muted);
  font-size: 0.875rem;
}

.who__list summary {
  cursor: pointer;
  color: var(--link);
}

.who__list ul {
  columns: 16rem;
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.tally--passed {
  color: var(--added);
}

.tally--failed {
  color: var(--removed);
}

.vote--yes {
  color: var(--added);
}

.vote--no {
  color: var(--removed);
}

.vote--abstain {
  color: var(--caution);
}

.vote--absent,
.vote--no_vote {
  color: var(--muted);
}

/* --- MP vote chart ------------------------------------------------------------- */

.vote-chart {
  /* Validated as a set (dataviz palette check); every row is also labelled, so colour is not alone. */
  --vote-yes: #008300;
  --vote-no: #e34948;
  --vote-abstain: #eda100;
  --vote-no_vote: #6250d6;
  --vote-absent: #a2a8b1;
  --vote-vote_valid: #2a78d6;
  --chart-ink: var(--ink);
  --chart-muted: var(--muted);
  --chart-rule: #e6e9ee;
  margin: 0 0 1rem;
}

.vote-chart__plot {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.vote-chart__plot canvas {
  display: block;
}

.vote-chart__tip {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 0.125rem;
  padding: 0.375rem 0.625rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgb(24 32 44 / 12%);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}

.vote-chart__tip[hidden] {
  display: none;
}

.vote-chart__tip strong {
  color: var(--ink);
  font-size: 0.9375rem;
}

.vote-chart__counts {
  width: auto;
  min-width: 18rem;
}

.vote-chart__counts tbody th {
  font-weight: 400;
  font-size: inherit;
  color: var(--ink);
}

.vote-chart__key {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.375rem;
  border-radius: 2px;
  vertical-align: -0.05em;
}

.vote-chart__key--yes { background: var(--vote-yes); }
.vote-chart__key--no { background: var(--vote-no); }
.vote-chart__key--abstain { background: var(--vote-abstain); }
.vote-chart__key--no_vote { background: var(--vote-no_vote); }
.vote-chart__key--absent { background: var(--vote-absent); }
.vote-chart__key--vote_valid { background: var(--vote-vote_valid); }

.blame__who {
  color: var(--muted);
}

@media (max-width: 40rem) {
  .who__facts > div {
    grid-template-columns: 1fr;
  }
}

main > section + section {
  margin-top: 2rem;
}
