/* Shared policy sections, editions and source-first comparisons. */
.policy-page { background: var(--paper); color: var(--ink); }
.policy-hero { color: var(--white); background: var(--pine-950); }
.policy-hero-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr); width: var(--wrap); margin: auto; align-items: stretch; }
.policy-hero-inner > div { padding: clamp(2.5rem,6vw,5.4rem) 8% clamp(2.5rem,6vw,5.4rem) 0; align-self: center; }
.policy-hero .eyebrow { color: var(--gold); margin-bottom: 1.1rem; }
.policy-hero h1 { color: inherit; max-width: 17ch; margin: 0 0 1.15rem; font: 400 clamp(2.4rem,4.8vw,4.8rem)/1.04 var(--serif); letter-spacing: -.035em; }
.policy-hero h1 + p { max-width: 52ch; color: var(--pine-100); line-height: 1.65; font-size: clamp(1rem,1.25vw,1.22rem); }
.policy-hero figure { margin: 0; min-height: 240px; position: relative; overflow: hidden; }
.policy-hero figure img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.policy-hero figcaption {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  padding: .35rem .75rem;
  background: var(--pine-950);
  color: var(--white);
  font-size: .875rem;
  line-height: 1.4;
}
.policy-reading { width: min(64rem,calc(100% - 3rem)); margin: auto; padding: clamp(2.2rem,5vw,5rem) 0; font: 400 1.06rem/1.76 var(--sans); }
.policy-reading > p, .policy-reading > ul, .policy-reading > ol { max-width: 80ch; }
.policy-reading h2 { margin: 2.3rem 0 .7rem; font: 500 clamp(1.65rem,3vw,2.55rem)/1.16 var(--serif); letter-spacing: -.025em; color: var(--pine-900); }
.policy-reading h3, .policy-module h3, .policy-note h3 { font: 600 clamp(1.3rem,2vw,1.65rem)/1.23 var(--serif); }
.policy-reading > :first-child { margin-top: 0; }
.policy-reading p, .policy-module p, .policy-note p { margin: .7rem 0 1.1rem; }
.policy-reading a, .policy-note a, .policy-module a, .policy-library a { color: var(--pine-700); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.policy-reading a:hover, .policy-note a:hover, .policy-module a:hover { color: var(--ember-dark); }
.policy-sources { font-size: .94rem; line-height: 1.65; }
.policy-reading li { margin: .5rem 0; }
.policy-reading [id], .policy-module[id], .record-entry { scroll-margin-top: calc(var(--header-height) + 1.25rem); }
.policy-module, .policy-note { margin: 1.75rem 0 2rem; padding: clamp(1.05rem,2.4vw,2rem); border-inline-start: 4px solid var(--pine-700); background: var(--white); color: var(--ink); max-width: 100%; }
.policy-module > :first-child,.policy-note > :first-child { margin-top: 0; }
.route-fork { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; margin: 1.25rem 0; }
.route-fork article { background: var(--pine-100); padding: 1.1rem 1.3rem; border-top: 2px solid var(--pine-700); min-width: 0; }
.route-fork article h3,.route-fork article h4 { margin: 0; font: 650 1.25rem/1.3 var(--serif); color: var(--pine-900); }
.route-fork article p:last-child { margin-bottom: 0; }
.metric-list { margin: 1.2rem 0; }
.metric-list > div { display: grid; grid-template-columns: minmax(8rem,1fr) 3fr; gap: 1rem; align-items: baseline; padding: .85rem 0; border-top: 1px solid var(--line); }
.metric-list dt { font: 600 1.4rem/1.25 var(--serif); color: var(--pine-700); }
.metric-list dd { margin: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.4rem 0 1.8rem; }
.table-scroll:focus-visible { outline: 2px solid var(--pine-700); outline-offset: 2px; }
.table-field-label, .matrix-hint { display: none; }
.policy-page table { border-collapse: collapse; color: var(--ink); width: 100%; font-size: 1rem; line-height: 1.55; }
.policy-page caption { text-align: left; font: 600 1.3rem var(--serif); padding: .6rem 0; }
.policy-page table th, .policy-page table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-page table thead th { background: var(--pine-800); color: var(--white); }
.policy-page table tbody tr:nth-child(odd) { background: var(--white); }
.policy-library { margin: 1.3rem 0 1.8rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 1rem; }
.policy-library article { display: flex; flex-direction: column; align-items: start; padding: 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--pine-700); background: var(--white); color: var(--ink); }
.policy-library article h3 { margin: .35rem 0; font: 600 1.4rem/1.25 var(--serif); }
.policy-library article h3 a { color: var(--ink); text-decoration: none; }
.policy-library article .eyebrow { margin: 0; color: var(--pine-700); font-size: .81rem; }
.policy-library article div { margin-top: auto; display: flex; gap: .5rem 1rem; flex-wrap: wrap; font-size: .94rem; }
.edition-links { display: flex; gap: .65rem 1.5rem; flex-wrap: wrap; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.edition-contents { border-block-end: 1px solid var(--line); padding-block: .65rem; }
.edition-contents summary { cursor: pointer; padding: .65rem .2rem; font-weight: 700; color: var(--pine-700); }
.method-steps { padding-left: 1.4rem; }
.method-steps li { padding-left: .45rem; }
.archive-edition { margin: 0; padding: .6rem 1.25rem; text-align: center; color: var(--pine-900); background: var(--pine-100); font-size: .96rem; }
.archive-edition a { color: inherit; text-decoration: underline; }
.regulatory-takeaway { color: var(--pine-800); padding: .75rem 1rem; border-inline-start: 3px solid var(--pine-700); background: var(--pine-100); }
.regulatory-takeaway strong > span:first-child { display: block; margin-bottom: .25rem; font: 750 .8rem/1.35 var(--sans); letter-spacing: .045em; text-transform: uppercase; }
details.record-entry { border-block-start: 1px solid var(--line); padding-block: .85rem; }
details.record-entry > summary { cursor: pointer; color: var(--pine-900); font: 550 1.2rem/1.45 var(--serif); }
details.record-entry > summary .evidence-chip { margin-inline: .25rem .7rem; vertical-align: middle; }
.policy-history-link a { color: var(--gold); }
@media(max-width:720px) {
  .policy-hero-inner { grid-template-columns: 1fr; width: 100%; }
  .policy-hero-inner > div { padding: 2.4rem 1.3rem 1.8rem; }
  .policy-hero figure { min-height: 0; height: clamp(7rem,27vw,12rem); }
  .policy-reading { width: calc(100% - 2.35rem); }
  .route-fork,.metric-list > div { grid-template-columns: minmax(0,1fr); gap: .5rem; }
  .policy-page table { min-width: 34rem; }
  details.record-entry > summary .evidence-chip { display: block; width: fit-content; margin: .2rem 0; }
}

.archive-edition { padding: 1rem max(1.15rem, calc((100% - 64rem)/2)); background: var(--paper); color: var(--pine-900); line-height: 1.5; }
.archive-edition a { color: inherit; text-underline-offset: .16em; }

.fiscal-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.fiscal-jumps a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.fiscal-stakes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: 1.6rem;
}
.fiscal-stakes section {
  min-width: 0;
  border-top: 3px solid var(--pine-700);
}
.fiscal-stakes h2 { margin-top: .8rem; }
.fiscal-stakes .policy-sources, .fiscal-choices .policy-sources { margin-bottom: 0; }
.fiscal-choices { border-top: 1px solid var(--line); }
.fiscal-choices article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.fiscal-choices h3, .fiscal-choices p:first-child { margin-top: 0; }
.fiscal-choices h3 { margin-bottom: .4rem; }
.fiscal-choices .fiscal-price {
  margin: 0;
  color: var(--pine-800);
  font: 700 1.13rem/1.45 var(--sans);
}
.fiscal-estimates { max-width: 32rem; }
.fiscal-estimates .table-scroll { margin-block: .9rem; }
.fiscal-estimates table { min-width: 0; table-layout: fixed; }
.fiscal-estimates table :is(th, td) { text-align: start; overflow-wrap: anywhere; }
.fiscal-detail, .policy-detail {
  max-width: 80ch;
  border-bottom: 1px solid var(--line);
}
.fiscal-detail summary, .policy-detail summary {
  padding-block: .9rem;
  color: var(--pine-800);
  font-weight: 650;
  cursor: pointer;
}
.fiscal-detail summary:focus-visible, .policy-detail summary:focus-visible {
  outline: 2px solid var(--pine-700);
  outline-offset: 2px;
}
@media (max-width: 45rem) {
  .fiscal-stakes, .fiscal-choices article { grid-template-columns: minmax(0, 1fr); }
  .fiscal-choices article { gap: .6rem; }
}

.library-intro .policy-hero-inner { display: block; }
.library-intro .policy-hero-inner > div { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.library-intro .eyebrow { margin-bottom: .5rem; }
.library-intro h1 { margin-bottom: .5rem; }
.library-intro h1 + p { margin-block: 0; }
.library-intro + .policy-reading { padding-top: 1.35rem; }
.library-valley { margin: 0 0 2rem; }
.library-valley img { display: block; width: 100%; height: clamp(8rem, 22vw, 17rem); object-fit: cover; }
.library-discovery { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 3rem); align-items: start; margin-bottom: 2rem; }
.library-discovery h2 { margin: 0 0 .45rem; }
.library-lookup label { display: block; margin-bottom: .7rem; }
.library-lookup input { box-sizing: border-box; width: 100%; min-height: 3rem; padding: .65rem .9rem; font: inherit; border: 1px solid var(--pine-700); border-radius: .35rem; background: white; color: var(--ink); }
.library-lookup [hidden] { display: none !important; }
.library-lookup [data-library-status] { margin: 0; }
.library-lookup [data-library-status]:not(:empty) { margin-top: .75rem; }
.library-lookup .library-reset { min-height: 44px; font-size: .9375rem; }
.library-archive-entry { border-left: 2px solid var(--pine-700); padding-left: 1.4rem; }
.library-archive-entry p { margin-bottom: 0; }
.library-matches { list-style: none; margin: 0 0 1rem; padding: 0; }
.library-matches li { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.library-matches li span { display: block; color: var(--pine-700); font: 600 .82rem/1.5 var(--sans); }
.library-matches li a { overflow-wrap: anywhere; }
@media (max-width: 44rem) {
  .library-discovery { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (max-width: 40rem) {
  /* The page's scroll padding already clears the sticky header. */
  .policy-reading [id], .policy-module[id], .record-entry { scroll-margin-top: 0; }
  .reading-table-wrap { overflow: visible; }
  .policy-page .reading-table {
    display: block; width: 100%; min-width: 0; border-top: 2px solid var(--pine-700);
  }
  .reading-table caption, .reading-table tbody { display: block; }
  .reading-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .policy-page .reading-table tbody tr {
    display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--line); background: transparent;
  }
  .policy-page .reading-table tbody :is(th, td) {
    display: block; padding: .3rem 0; border: 0; overflow-wrap: anywhere;
  }
  .reading-table th[scope="row"] { color: var(--pine-900); font-size: 1.1rem; }
  .table-field-label {
    display: block; margin-bottom: .12rem; color: var(--pine-700); font-weight: 650; font-size: .9rem;
  }
  .policy-page .matrix-table tr > :first-child {
    position: sticky; left: 0; max-width: 38vw; overflow-wrap: anywhere;
    border-inline-end: 1px solid var(--line); background: var(--paper);
  }
  .policy-page .matrix-table thead tr > :first-child { background: var(--pine-800); color: var(--white); }
  .policy-page .matrix-table tbody tr:nth-child(odd) > :first-child { background: var(--white); }
}
@media screen and (max-width: 34rem) {
  .policy-reading .matrix-hint { display: block; margin: .9rem 0 .25rem; color: var(--pine-700); font-size: .9rem; }
  .policy-reading .matrix-hint + .matrix-scroll { margin-top: 0; }
}

.edition-footprint { margin: 1.5rem 0; }
.edition-footprint img { display: block; width: min(100%, 42rem); height: auto; }
.edition-footprint figcaption { margin-top: .75rem; line-height: 1.55; }
.policy-reading.edition p a { overflow-wrap: anywhere; }
