@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-normal-v1.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-italic-v1.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/source-sans-3-latin-normal-v1.woff2') format('woff2'); }
:root { --font-serif: 'Cormorant Garamond', Georgia, serif; --font-sans: 'Source Sans 3', Arial, Helvetica, sans-serif; font-family: var(--font-sans); font-size: 112.5%; color: #243b34; background: #f7f6f1; line-height: 1.55; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
body.has-bar { padding-bottom: 92px; }
a { color: #245745; text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #a96828; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 4; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1200px; margin: auto; padding: 26px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; border-bottom: 1px solid #dcded4; }
.brand { text-decoration: none; font-family: var(--font-serif); font-weight: 600; letter-spacing: -.03em; font-size: 1.625rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.brand-mark { background: #244c3e; color: #f8f5e9; width: 35px; height: 38px; display: grid; place-items: center; border-radius: 4px; font: 29px Georgia, serif; flex-shrink: 0; }
.about-link { font-size: .875rem; text-decoration: none; }
main { max-width: 1040px; padding: 0 40px; margin: auto; }
.hero { padding: 34px 0 22px; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .17em; display: flex; align-items: center; gap: 8px; margin: 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #b0813d; flex-shrink: 0; }
h1 { font: 600 clamp(2.4375rem, 4.2vw, 3.1rem)/1.05 var(--font-serif); letter-spacing: -.035em; margin: 18px 0 14px; }
h1 em { font-weight: 400; font-style: italic; color: #52735b; }
.intro { color: #516258; font-size: 1.0625rem; margin: 0 0 8px; max-width: 740px; }

/* Omnisearch panel */
.search-panel { padding: 24px 25px; background: white; border: 1px solid #d7ded5; border-radius: 8px; box-shadow: 0 6px 22px #253c2a07; }
form > label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 6px; color: #243b34; }
#search-hint { color: #5c6a60; font-size: .875rem; margin: 0 0 12px; }

.omni-row { display: flex; gap: 8px; align-items: stretch; }
.omni-box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 42px;
  position: relative;
  border: 1px solid #7f917f;
  background: #fcfdf9;
  border-radius: 6px;
  min-height: 54px;
  cursor: text;
}
.omni-box:focus-within { border-color: #254e3e; box-shadow: 0 0 0 3px #254e3e1f; background: #fff; }
.search-icon { position: absolute; left: 13px; top: 9px; font-size: 1.7rem; line-height: 1.2; color: #5f6f65; pointer-events: none; }

.chip-list { display: contents; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  background: #e7efe4;
  border: 1px solid #bfd0bd;
  border-radius: 18px;
  padding: 4px 6px 4px 12px;
  font-size: .875rem;
  font-weight: 600;
  color: #1f4234;
}
.chip.is-flash { background: #f3e4c3; border-color: #c2934b; }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #325444;
  padding: 0;
}
.chip-x svg, .mc-remove svg { display: block; pointer-events: none; }
.chip-x:hover { background: #254e3e; color: #fff; }

#query {
  flex: 1 1 200px;
  min-width: 120px;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  color: #243b34;
  outline: none;
}
#query::placeholder { color: #5f6c61; opacity: 1; }

.add-another-btn {
  white-space: nowrap;
  background: #f4f6f0;
  border: 1px solid #c5d1c3;
  border-radius: 6px;
  color: #284b3a;
  padding: 10px 14px;
  font-size: .875rem;
  font-weight: 600;
}
.add-another-btn:hover:enabled { background: #e8efe4; border-color: #7d967e; }

#search-button {
  white-space: nowrap;
  background: #254e3e;
  border: 1px solid #254e3e;
  border-radius: 6px;
  color: white;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 600;
}
#search-button:hover:enabled { background: #173f30; }
#search-button span { margin-left: 8px; }

.try-row { margin-top: 16px; display: flex; gap: 7px 8px; align-items: center; flex-wrap: wrap; }
.try-row > span:not(.try-break) { font-size: .75rem; font-weight: 700; letter-spacing: .09em; color: #5d6c60; margin-right: 2px; }
.try-break { flex-basis: 100%; height: 2px; }
.try-row button {
  background: #f4f6f0;
  border: 1px solid #dce2d6;
  border-radius: 5px;
  padding: 7px 11px;
  font-size: .875rem;
  color: #2a4e3b;
  min-height: 38px;
  text-align: left;
}
.try-row button:hover:enabled { border-color: #7d967e; background: #ebf1e7; }
.try-row button.multi { background: #f8f9f5; border-style: dashed; border-color: #c5d1c2; font-size: .84rem; }
.try-row button.multi:hover:enabled { border-style: solid; border-color: #254e3e; background: #ebf1e7; }
.try-row button.multi .sep { color: #7e8d80; }

.search-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid #ecede7; margin-top: 16px; padding-top: 12px; color: #5b685e; font-size: .875rem; }
.search-options-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.checkbox-label { display: inline-flex; gap: 7px; align-items: center; min-height: 35px; cursor: pointer; }
.checkbox-label input { accent-color: #254e3e; width: 16px; height: 16px; }

#results-heading { font: 600 1.6875rem var(--font-serif); margin: 28px 0 6px; overflow-wrap: anywhere; }
#results-heading:not([hidden]) + #status { margin-top: 4px; }
#status { color: #5d6b5e; font-size: .875rem; margin: 18px 0; }
.reader-loading { padding: 36px 0; color: #546658; font-size: 1rem; }

/* Match cards (Omnisearch triage) */
.match-card {
  background: #fff;
  border: 1px solid #d9e0d3;
  border-left: 4px solid #254e3e;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px #253c2a06;
}
.match-card.is-family { border-left-color: #8a6427; }
.match-card.is-broad { border-left-color: #4c6d5c; }
.match-card.is-none { border-left-color: #a6b0a6; }
.match-card.is-attention { box-shadow: 0 0 0 3px #a9682855; }

.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.mc-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.mc-q { font: 600 1.375rem/1.2 var(--font-serif); color: #243b34; overflow-wrap: anywhere; }
.mc-typing { font-size: .7rem; font-weight: 700; letter-spacing: .09em; color: #637365; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-exact { background: #e6f0e4; color: #234c38; }
.badge-family { background: #f5ebd7; color: #744e16; }
.badge-broad { background: #e8efec; color: #2a4c42; }
.badge-none { background: #efefef; color: #555e57; }

.mc-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #dce2d6;
  border-radius: 50%;
  background: #f8f9f5;
  color: #4c5f50;
  padding: 0;
}
.mc-remove:hover { background: #254e3e; border-color: #254e3e; color: #fff; }

.mc-note { margin: 0 0 12px; font-size: .92rem; color: #4a5d50; }
.mc-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.more-ch-btn { margin: -4px 0 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #c6d2c3;
  border-radius: 20px;
  background: #f6f8f3;
  color: #254837;
  font-size: .84rem;
  font-weight: 600;
  text-align: left;
  max-width: 100%;
}
.pill:hover { background: #e8efe4; border-color: #7d967e; }
.pill.ghost { background: transparent; border-color: #dce2d6; color: #546658; }
.pill[aria-pressed="true"] { background: #254e3e; border-color: #254e3e; color: #fff; }
.pill .count { font-weight: 400; opacity: .85; }

.narrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f4f6f0;
  border: 1px solid #dce2d6;
  border-radius: 6px;
}
.narrow label { font-size: .84rem; font-weight: 700; color: #365040; margin: 0; }
.narrow input {
  flex: 1 1 200px;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid #96a796;
  border-radius: 5px;
  background: #fff;
  font-size: .9rem;
}
.narrow small { font-size: .8125rem; color: #56675a; }

.mc-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mc-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid #e1e6db;
  border-radius: 6px;
  background: #fcfdf9;
}
.mc-row.is-selected { background: #f2f7ef; border-color: #9cb69c; }
.mc-check { display: inline-flex; padding: 4px; margin: -2px 0 0 -4px; cursor: pointer; flex-shrink: 0; }
.mc-check input { width: 20px; height: 20px; accent-color: #254e3e; cursor: pointer; }
.mc-body { flex: 1 1 auto; min-width: 0; }
.mc-empty-filter { padding: 14px; font-size: .9rem; color: #59695c; background: #f5f7f1; border-radius: 5px; }

.deg {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e9f0e4;
  color: #234c38;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
.deg.defs { background: #e8eef5; color: #244564; }
.deg.upc { background: #f5ebd5; color: #774e17; }
.version-pill { font-size: .78rem; letter-spacing: normal; color: #56685a; }

.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }
.read-one {
  background: #254e3e;
  color: #fff;
  border: 1px solid #254e3e;
  border-radius: 5px;
  padding: 7px 13px;
  min-height: 38px;
  font-size: .85rem;
  font-weight: 600;
}
.read-one:hover { background: #173f30; }

.companions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8ece2;
}
.companions > span { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5b6c5e; margin-right: 4px; }

/* Sticky bottom selection bar */
.reading-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #1d3e31;
  color: #f8f6ef;
  border-top: 2px solid #b0813d;
  box-shadow: 0 -6px 24px #142a2130;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
}
.rb-inner {
  max-width: 1040px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
}
.rb-text { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .9375rem; }
.rb-sub { color: #c7d9cb; font-size: .875rem; }
.rb-note { color: #f1dca9; font-size: .85rem; }
.rb-note button {
  background: transparent;
  border: 0;
  padding: 0 2px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.rb-go {
  background: #f8f5e9;
  color: #1c3d30;
  border: 1px solid #f8f5e9;
  border-radius: 6px;
  padding: 10px 18px;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 700;
  white-space: nowrap;
}
.rb-go:hover { background: #fff; }

/* Toast status */
#copy-status:empty { display: none; }
#copy-status {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #254e3e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  max-width: 90%;
  z-index: 50;
  box-shadow: 0 4px 18px #142a2135;
}
body.has-bar #copy-status { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* Shared browse & result typography (kept intact for browse/chapter/statute pages) */
.result-group { margin: 30px 0; }
.result-group > h2 { font-size: .92rem; margin: 0 0 13px; display: flex; align-items: center; gap: 9px; }
.result-count { font-size: .875rem; font-weight: normal; padding: 1px 7px; background: #e9eee3; border-radius: 10px; }
.result-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.result-card { background: #fff; border: 1px solid #dce2d5; border-radius: 6px; padding: 22px 24px; }
.result-card, .empty-state { scroll-margin-top: 16px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .85rem; letter-spacing: .06em; color: #5d6f5a; overflow-wrap: anywhere; }
.section-number { font-size: .875rem; letter-spacing: normal; font-weight: 700; color: #3d5d36; }
h3 { font: 600 1.375rem/1.32 var(--font-serif); margin: 8px 0; overflow-wrap: anywhere; }
h3 a { display: block; color: #243e32; text-decoration: none; }
h3 a:hover { text-decoration: underline; }
.version { font-size: .875rem; color: #566959; margin: 8px 0; }
.future { color: #80551e; }
.card-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0 4px; }
.match-reason { font-size: .8125rem; background: #edf2e9; padding: 3px 8px; border-radius: 3px; color: #415c3a; }
.card-bottom small { color: #637062; font-size: .8125rem; }
.official-link { font-size: .875rem; font-weight: 600; }
.show-more { display: block; border: 1px solid #cbd6c3; border-radius: 5px; background: transparent; padding: 11px 18px; color: #2d4c38; margin: 14px auto 0; font-size: .875rem; font-weight: 600; }
.show-more:hover { background: #eef3ea; }
.empty-state { padding: 26px; background: #eef1e8; border: 1px solid #d6ddce; border-radius: 6px; }
.empty-state h2 { font: 600 1.6rem var(--font-serif); margin: 0 0 8px; }
.empty-state p, .empty-state a { font-size: .9rem; }
.filter-text-button { padding: 8px 0; min-height: 40px; background: transparent; border: 0; color: #245745; text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; text-align: left; }
.coverage-summary { border-top: 1px solid #d9dfd1; margin: 40px 0; padding: 20px 0; font-size: .875rem; color: #566857; }
.coverage-summary p { margin: 0 0 6px; }
.coverage-summary p:last-child { margin-bottom: 0; }
.stale-notice { padding: 16px; background: #f2e7ce; font-size: .875rem; border-left: 3px solid #8c6c2f; margin: 16px 0; }
footer { border-top: 1px solid #dcded4; max-width: 1200px; margin: auto; padding: 26px 40px 36px; display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; color: #5c6b5d; font-size: .875rem; }
footer > span { letter-spacing: .1em; font-weight: 700; color: #3d5741; padding-top: 2px; }
footer p { margin: 0; flex: 1; }
footer a { white-space: nowrap; }

.matching-chapters { margin: 16px 0 20px; padding: 14px 16px; background: #f3f5ee; border: 1px solid #d8dfd2; border-radius: 6px; }
.matching-chapters h3 { font: 700 .875rem var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: #4c6251; margin: 0 0 10px; }
.matching-chapter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.matching-chapter-chip { display: inline-flex; align-items: stretch; max-width: 100%; background: #fff; border: 1px solid #cbd6c8; border-radius: 6px; overflow: hidden; }
.matching-chapter-filter { display: flex; align-items: center; text-align: left; min-width: 0; min-height: 44px; border: 0; background: transparent; color: #244537; padding: 8px 12px; font-size: .875rem; }
.matching-chapter-filter > span { min-width: 0; overflow-wrap: anywhere; }
.matching-chapter-filter:hover { background: #e8efe4; }
.matching-chapter-filter[aria-pressed="true"] { background: #254e3e; color: #fff; }
.matching-chapter-browse { display: inline-flex; align-items: center; flex-shrink: 0; padding: 8px 11px; border-left: 1px solid #dce3d7; font-size: .8125rem; text-decoration: none; color: #245745; white-space: nowrap; }
.matching-chapter-browse:hover { background: #eef3ea; text-decoration: underline; }
.matching-chapter-browse-only { border-left: 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }

.popular-topics-section { margin: 36px 0 32px; }
.popular-topics-section h2 { font: 600 1.625rem/1.2 var(--font-serif); margin: 0 0 8px; }
.popular-topics-intro { margin: 0 0 18px; font-size: .9375rem; color: #54665a; }
.popular-topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.popular-topics li { display: flex; }
.popular-topics a { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; width: 100%; padding: 15px 16px; background: #fff; border: 1px solid #dce2d5; border-radius: 6px; text-decoration: none; color: #243e32; overflow-wrap: anywhere; }
.popular-topics a:hover { border-color: #7d967e; background: #fafcf7; }
.popular-topics a span { font: 600 1.0625rem/1.3 var(--font-serif); color: #243e32; }
.popular-topics a small { font-size: .8125rem; font-weight: 600; color: #45643c; }

@media (max-width: 900px) {
  .popular-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 19px 20px; }
  .brand { font-size: 1.4375rem; }
  main { padding: 0 20px; }
  .hero { padding: 26px 0 18px; }
  .intro { font-size: .95rem; }
  .search-panel { padding: 16px 14px; }
  .omni-row { flex-wrap: wrap; }
  .omni-box { flex-basis: 100%; }
  #query { font-size: 1rem; }
  .add-another-btn { flex: 1 1 46%; min-height: 46px; }
  #search-button { flex: 1 1 46%; min-height: 46px; }
  .try-row > span:not(.try-break) { width: 100%; margin-top: 4px; }
  .try-row button { min-height: 42px; }
  .search-options { flex-direction: column; align-items: flex-start; gap: 4px; }
  .match-card { padding: 16px 14px; }
  .mc-row { padding: 12px; gap: 10px; }
  .result-card { padding: 18px; }
  .card-meta { gap: 5px 10px; }
  h3 { font-size: 1.25rem; }
  .official-link { display: inline-block; padding: 6px 0; }
  .matching-chapters { padding: 12px; }
  .matching-chapter-chip { width: 100%; }
  .matching-chapter-filter { flex: 1; }
  .popular-topics { grid-template-columns: 1fr; }
  .reading-bar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .rb-go { width: 100%; text-align: center; }
  footer { flex-wrap: wrap; padding: 24px 20px; gap: 15px; }
  footer > span { width: 100%; }
  footer a { min-height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .12s ease, border-color .12s ease; }
}

.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .875rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.browse-callout { margin: 30px 0; font-size: .9rem; }
.browse-callout h2 { font: normal 1.5rem var(--font-serif); }
.browse-main { padding-top: 24px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; margin-bottom: 32px; }
.browse-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.browse-chapters { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.browse-chapters li { padding: 16px 0; border-bottom: 1px solid #d9dfd1; }
.browse-chapters a { display: block; padding: 6px 0; }
.browse-chapters a span { display: block; font-weight: 700; }
.browse-chapters small { color: #526353; }
.browse-records { margin: 28px 0; }
.browse-records > .result-card:has(.browse-heading:target),
.browse-records > .result-card.is-section-target,
.browse-records > .result-card.is-in-range {
  background: #f3f7ef;
  border-color: #9bb499;
  border-left: 4px solid #254e3e;
  padding-left: 21px;
}
.browse-records.is-range-filtered > .result-card:not(.is-in-range) { display: none; }
.chapter-range-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 22px 0 -8px;
  padding: 16px 20px;
  background: #eef4ea;
  border: 1px solid #b5c9b3;
  border-left: 4px solid #254e3e;
  border-radius: 6px;
  scroll-margin-top: 20px;
}
.chapter-range-info { min-width: 0; flex: 1 1 280px; }
.chapter-range-kicker {
  margin: 0 0 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #46604e;
}
.chapter-range-title {
  margin: 0 0 4px;
  font: 600 1.35rem/1.2 var(--font-serif);
  color: #1e3b30;
}
.chapter-range-meta { margin: 0; font-size: .9rem; color: #355042; }
.chapter-range-subtle { margin: 4px 0 0; font-size: .8125rem; color: #546859; }
.chapter-range-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chapter-range-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #bdd0bb;
  border-radius: 5px;
  background: #fff;
  color: #214a39;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.chapter-range-btn:hover { background: #e3ede0; }
.chapter-range-btn.primary { background: #254e3e; border-color: #254e3e; color: #fff; }
.chapter-range-btn.primary:hover { background: #183a2d; }
.browse-heading { font: 600 1.4375rem/1.4 var(--font-serif); margin: 11px 0; overflow-wrap: anywhere; }
.browse-heading a { display: block; color: #243e32; text-decoration: none; }
.browse-heading a:hover { text-decoration: underline; }
.chapter-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.chapter-navigation a { padding: 10px 0; }
.statute-note { padding: 16px 20px; border-left: 3px solid #b0813d; background: #eef1e8; }
.version-navigation { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.version-navigation a { padding: 8px 12px; border: 1px solid #d8dfd0; border-radius: 5px; }
.statute-versions .official-link { display: inline-block; background: #254e3e; color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 5px; }
.statute-versions .official-link:hover { background: #173f30; }
@media(max-width:640px) { .site-header { flex-wrap: wrap; gap: 14px; } .site-nav { gap: 12px; } .site-nav a { padding: 8px 0; } .browse-chapters { grid-template-columns: 1fr; } }

.about-content { max-width: 740px; padding-bottom: 28px; }
.about-contents { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; border-block: 1px solid #d9dfd1; margin: 28px 0; }
.about-content section { margin: 36px 0; scroll-margin-top: 24px; }
.about-content h2 { font: 600 1.875rem/1.2 var(--font-serif); margin-bottom: 16px; }
.about-content p, .about-dates dd { overflow-wrap: anywhere; }
.about-dates { background: #eef1e8; border: 1px solid #d8dfd0; border-radius: 5px; padding: 20px 24px; }
.about-dates dt { font-weight: 700; }
.about-dates dd { margin: 6px 0 20px; }
.about-dates dd:last-child { margin-bottom: 0; }
.about-return { margin-top: 32px; }

.alias-note { margin: 14px 0 18px; padding: 12px 16px; background: #f2f5ed; border: 1px solid #d7dfd1; border-radius: 5px; font-size: .9rem; color: #2b473a; overflow-wrap: anywhere; }
.alias-disclaimer { color: #59695e; font-size: .85rem; }
.topic-guide-note, .chapter-topics { margin: 12px 0 18px; padding: 12px 16px; background: #eef3ea; border: 1px solid #d2ddd0; border-radius: 5px; font-size: .9rem; color: #243e32; overflow-wrap: anywhere; }
.topic-guide-note a, .chapter-topics a { font-weight: 600; }
.related-statutes { margin: 32px 0; padding: 20px 24px; background: #fff; border: 1px solid #dce2d5; border-radius: 6px; }
.related-statutes h2 { font: 600 1.4375rem/1.3 var(--font-serif); margin: 0 0 14px; }
.related-statutes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-statutes li a { display: block; padding: 4px 0; overflow-wrap: anywhere; }
.topic-directory { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic-directory li { background: #fff; border: 1px solid #dce2d5; border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.topic-directory a { font: 600 1.25rem/1.3 var(--font-serif); color: #243e32; text-decoration: none; overflow-wrap: anywhere; }
.topic-directory a:hover { text-decoration: underline; }
.topic-directory p { margin: 0; font-size: .875rem; color: #54665a; }
.topic-directory small { color: #4d6644; font-size: .8125rem; font-weight: 600; margin-top: auto; }
.topic-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; font-size: .9375rem; }
.chapter-badge { color: #45643c; text-decoration: none; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; }
.chapter-badge:hover { text-decoration: underline; }
.coverage-section { margin: 36px 0; scroll-margin-top: 24px; }
.coverage-section h2 { font: 600 1.6875rem/1.25 var(--font-serif); margin: 0 0 10px; }
.coverage-chapters li { display: flex; flex-direction: column; gap: 4px; }
.coverage-chapters .coverage-source { display: inline-block; font-size: .8125rem; padding: 2px 0; color: #36523d; }
@media (max-width: 640px) { .topic-directory { grid-template-columns: 1fr; } .related-statutes { padding: 16px; } }

/* Tutorial / How-to-use page (/how-to-use/) */
.how-to-use-content { max-width: 920px; padding-bottom: 36px; }
.how-to-use-print-brand, .how-to-use-print-footer { display: none; }
.how-to-use-download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 20px; font-size: .875rem; color: #546658; }
.how-to-use-download-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 5px; background: #254e3e; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.how-to-use-download-btn:hover { background: #173f30; text-decoration: none; }
.how-to-use-content p, .how-to-use-content li, .how-to-use-content dd { max-width: 72ch; overflow-wrap: anywhere; }
.how-to-use-toc { gap: 10px 20px; font-size: .925rem; }
.how-to-use-toc a { font-weight: 600; text-decoration: none; }
.how-to-use-toc a:hover { text-decoration: underline; }
.how-to-use-step { margin: 44px 0; padding-top: 28px; border-top: 1px solid #d9dfd1; scroll-margin-top: 24px; }
.how-to-use-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.how-to-use-step-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #52735b; }
.how-to-use-step h2 { font: 600 clamp(1.6rem, 2.8vw, 2.05rem)/1.18 var(--font-serif); margin: 0 0 14px; color: #243b34; }
.how-to-use-list { padding-left: 22px; margin: 14px 0 20px; display: grid; gap: 10px; }
.how-to-use-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #edf1e7; border: 1px solid #d8dfd1; border-radius: 4px; padding: 1px 6px; color: #1e4234; }
.how-to-use-content kbd { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84em; font-weight: 600; background: #fff; border: 1px solid #b9c5b6; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; color: #243b34; line-height: 1.3; }
.how-to-use-figure { margin: 22px 0 26px; background: #fff; border: 1px solid #d4dcd0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px #1f36290d; }
.how-to-use-figure img { display: block; width: 100%; height: auto; border-bottom: 1px solid #e2e7dc; background: #f7f6f1; }
.how-to-use-figure figcaption { margin: 0; padding: 13px 18px; font-size: .88rem; line-height: 1.5; color: #475a4d; background: #fafbf7; }
.how-to-use-figure figcaption strong { color: #243b34; }
.how-to-use-callout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.how-to-use-callout { background: #fff; border: 1px solid #dce2d5; border-top: 3px solid #254e3e; border-radius: 6px; padding: 16px 18px; }
.how-to-use-callout:nth-child(2) { border-top-color: #8a6427; }
.how-to-use-callout:nth-child(3) { border-top-color: #4c6d5c; }
.how-to-use-callout h3 { font: 600 1.25rem/1.2 var(--font-serif); margin: 0 0 8px; color: #243b34; }
.how-to-use-callout p { margin: 0; font-size: .9rem; color: #4a5d50; }
.how-to-use-shortcuts-wrap { overflow-x: auto; margin: 18px 0 24px; }
.how-to-use-shortcuts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #d8dfd0; border-radius: 6px; overflow: hidden; font-size: .9375rem; }
.how-to-use-shortcuts th, .how-to-use-shortcuts td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e4e9de; vertical-align: top; }
.how-to-use-shortcuts th { background: #eef1e8; font-weight: 700; color: #243b34; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.how-to-use-shortcuts tr:last-child td { border-bottom: 0; }
@media (max-width: 780px) {
  .how-to-use-callout-grid { grid-template-columns: 1fr; }
}
@media print {
  @page { size: letter; margin: 0.5in 0.55in; }
  .skip-link, .site-header, .breadcrumbs, .how-to-use-download-row, .how-to-use-toc, .about-return, footer { display: none !important; }
  html, body { background: #fff !important; color: #1d3029; }
  .how-to-use-content { max-width: none; padding-bottom: 0; font-size: 9.2pt; line-height: 1.44; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .how-to-use-content p, .how-to-use-content li, .how-to-use-content dd { max-width: none; orphans: 3; widows: 3; }
  .how-to-use-print-brand { display: flex; align-items: center; gap: 11px; padding-bottom: 9px; margin-bottom: 12px; border-bottom: 2px solid #244c3e; }
  .how-to-use-print-brand .brand-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 34px; margin: 0; font: 23px/1 Georgia, serif; text-align: center; background: #244c3e !important; color: #f8f5e9 !important; }
  .how-to-use-print-brand strong { display: block; font: 600 14.5pt/1.1 var(--font-serif); color: #243b34; }
  .how-to-use-print-brand > div > span { display: block; font-size: 8.2pt; color: #4d6053; margin-top: 2px; }
  .how-to-use-content .eyebrow { font-size: 7.2pt; margin-bottom: 3px; }
  .how-to-use-content h1 { font-size: 21pt; margin: 4px 0 6px; }
  .how-to-use-content .intro { font-size: 10pt; margin-bottom: 8px; }
  .how-to-use-content .statute-note { padding: 8px 12px; margin: 8px 0 12px; font-size: 8.5pt; }
  .how-to-use-step { border-top: 1px solid #d5ddd0; margin: 14px 0; padding-top: 10px; }
  .how-to-use-step:first-of-type { margin-top: 10px; }
  .how-to-use-step-kicker { font-size: 7.2pt; margin-bottom: 2px; break-after: avoid; }
  .how-to-use-step h2 { font-size: 14.5pt; margin-bottom: 6px; break-after: avoid; }
  .how-to-use-list { margin: 6px 0 10px; gap: 4px; }
  .how-to-use-figure { break-inside: avoid; max-width: 5.55in; margin: 10px auto 12px; box-shadow: none; border-color: #c5cfc0; background: #fff; }
  .how-to-use-figure img { width: 100%; height: auto; border-bottom: 1px solid #dde3d8; }
  .how-to-use-figure figcaption { padding: 7px 11px; font-size: 8.1pt; line-height: 1.38; }
  .how-to-use-callout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 8px 0 10px; break-inside: avoid; }
  .how-to-use-callout { break-inside: avoid; padding: 9px 11px; }
  .how-to-use-callout h3 { font-size: 11pt; margin-bottom: 4px; }
  .how-to-use-callout p { font-size: 8.2pt; }
  #dates-and-privacy { break-before: page; border-top: 0; padding-top: 0; margin-top: 0; }
  .about-dates { padding: 10px 14px; margin: 6px 0; }
  .about-dates dd { margin: 2px 0 7px; }
  .how-to-use-shortcuts-wrap { margin: 6px 0 10px; }
  .how-to-use-shortcuts { font-size: 8.4pt; }
  .how-to-use-shortcuts th, .how-to-use-shortcuts td { padding: 5.5px 10px; }
  .how-to-use-shortcuts tr { break-inside: avoid; }
  .how-to-use-print-footer { display: block; margin-top: 10px; padding-top: 7px; border-top: 1px solid #c5cfc0; font-size: 7.9pt; color: #4a5d50; break-inside: avoid; }
}

/* Reading pages only; the heading search does not load full-text assets. */
.reading-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 22px; border-top: 1px solid #dce2d5; padding-top: 22px; }
.reading-guide { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.reading-guide h3, .text-heading h3, .source-notes h3 { font: 600 1.8rem/1.2 var(--font-serif); margin: 0 0 12px; }
.text-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.text-heading h3 { margin: 0; }
.text-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.statute-versions .reading-version .text-actions .official-link,
.statute-versions .reading-version .text-actions .copy-citation {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #c3d0c1;
  border-radius: 5px;
  background: #fff;
  color: #214a39;
  font: 600 .84rem/1.3 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}
.statute-versions .reading-version .text-actions .official-link:hover,
.statute-versions .reading-version .text-actions .copy-citation:hover {
  background: #e8efe4;
  border-color: #9ab299;
}
.statute-versions .reading-version > .version-date,
.statute-versions .reading-version > .version-checked {
  display: inline;
  margin: 0;
}
.statute-versions .reading-version > .version-checked::before {
  content: " · ";
  color: #7d8f7e;
}
.statute-versions .reading-version > .version-notice {
  margin: 8px 0 0;
}
.reading-guide p { font-size: .875rem; color: #526353; }
.reading-links { display: grid; gap: 4px; }
.reading-links a { display: flex; align-items: center; gap: 10px; padding: 8px; min-height: 44px; text-decoration: none; border-radius: 5px; }
.reading-links a:hover, .reading-links a[aria-current] { background: #e7ede1; }
.reading-links .subsection-number { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 4px; background: #e6ebdf; font-weight: 600; }
.has-editorial-headings a { align-items: flex-start; }
.has-editorial-headings .subsection-number { flex-shrink: 0; }
.has-editorial-headings .subsection-label { min-width: 0; overflow-wrap: anywhere; }
.reading-guide .guide-note { font-size: .8rem; margin: 16px 8px; }
.notes-link { display: inline-block; padding: 12px 8px; }
.reading-content { min-width: 0; }
.reading-description { font-size: .875rem; color: #526353; }
.law-text { background: #fff; border: 1px solid #dce2d5; border-radius: 6px; padding: 0 24px; }
.law-subsection, .law-unsectioned { padding: 20px 0; }
.law-subsection { position: relative; isolation: isolate; padding-inline: 12px; }
.law-subsection + .law-subsection { border-top: 1px solid #e5e8df; }
.law-subsection, .source-notes, .text-heading { scroll-margin-top: 24px; }
/* Keep the highlight between the separators without clipping text or focus rings. */
.law-subsection:target::before { content: ""; position: absolute; inset: 8px 0; z-index: -1; background: #f2f5ec; border-radius: 4px; pointer-events: none; }
.subsection-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.permalink, .subsection-tools button { font: 600 .875rem/1.4 var(--font-sans); padding: 10px 0; min-height: 44px; }
.permalink { text-decoration: none; }
.editorial-heading { font: 600 1.5rem/1.25 var(--font-serif); margin: 0 0 16px; overflow-wrap: anywhere; }
.editorial-heading small { display: block; font: 600 .6875rem/1.5 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: #526353; margin-bottom: 6px; }
.subsection-tools button { background: transparent; border: 0; color: #47634f; text-decoration: underline; cursor: pointer; }
.law-text p, .law-unsectioned, .law-subsection { font: 400 1.0625rem/1.75 var(--font-sans); color: #253a31; overflow-wrap: anywhere; }
.law-text p { margin: 8px 0 16px; }
.law-text p:empty { display: none; }
.source-table { overflow-x: auto; max-width: 100%; margin: 16px 0; }
.source-table table { border-collapse: collapse; width: 100%; }
.source-table td, .source-table th { padding: 8px; border: 1px solid #dce2d5; min-width: 70px; vertical-align: top; }
.source-notes { margin: 30px 0 24px; padding: 24px; background: #eef1e8; border: 1px solid #d8dfd0; border-radius: 6px; font-size: .9375rem; overflow-wrap: anywhere; }
.source-notes .eyebrow { font-size: .75rem; }
.end-note { font-size: .875rem; }
#copy-status:empty { display: none; }
#copy-status { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #254e3e; color: #fff; padding: 12px 20px; border-radius: 5px; max-width: 90%; z-index: 50; }
@media (max-width: 780px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reading-guide { position: static; max-height: none; background: #eef1e8; padding: 18px; border-radius: 6px; }
  .subsection-links { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
  .subsection-links a { justify-content: center; padding: 0; background: #fff; border: 1px solid #d8dfd0; }
  .subsection-links a:hover { background: #e7ede1; border-color: #b8c8b5; }
  .subsection-links a[aria-current] { background: #254e3e; border-color: #254e3e; color: #fff; }
  .subsection-links .subsection-number { min-width: 0; height: auto; background: transparent; }
  .subsection-links .subsection-label { display: none; }
  .subsection-links.has-editorial-headings { grid-template-columns: minmax(0, 1fr); }
  .subsection-links.has-editorial-headings a { justify-content: flex-start; padding: 10px 12px; }
  .subsection-links.has-editorial-headings .subsection-number { min-width: 28px; height: 28px; }
  .subsection-links.has-editorial-headings .subsection-label { display: block; }
  .law-text { padding: 0 16px; }
  .source-notes { padding: 16px; }
}
@media print {
  @page { margin: 0.75in; }
  .skip-link, .site-header, .breadcrumbs, .version-navigation, .reading-guide, .subsection-tools button, .copy-citation, .chapter-navigation, #copy-status, footer { display: none !important; }
  body { background: #fff; color: #111; }
  main { max-width: none; padding: 0; }
  .reading-layout { display: block; border-top: 0; margin-top: 16px; padding-top: 0; }
  .law-text { border: 0; padding: 0; }
  .source-table { overflow: visible; }
  .law-subsection:target::before { display: none; }
  .law-subsection { break-inside: avoid-page; }
  h1, h2, h3, h4, .editorial-heading { break-after: avoid; }
  .statute-versions .official-link,
  .statute-versions .reading-version .text-actions .official-link { background: transparent; border: 0; color: #111; padding: 0; text-decoration: underline; }
  a.official-link::after { content: " (" attr(href) ")"; font-size: .8rem; font-weight: 400; word-break: break-all; }
}

.statute-versions .reading-version { background: transparent; border: 0; padding: 0; }
.reading-version + .reading-version { border-top: 2px solid #cbd5c5; margin-top: 40px; padding-top: 32px; }

.reading-content .source-bold, .ref-pane-body .source-bold { font-weight: 700; }
.reading-content .source-italic, .ref-pane-body .source-italic { font-style: italic; }
.source-indent { text-indent: 25px; }
.source-indentblk { margin-inline: 25px; }
.source-center { text-align: center; }

/* Inline internal citation links (Research Mode cue) */
.law-text a[data-source-href],
.source-notes a[data-source-href] {
  color: #1f4f3c;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .18em;
  border-radius: 2px;
}
.law-text a[data-source-href]:hover,
.source-notes a[data-source-href]:hover {
  background: #e5efe1;
  text-decoration-style: solid;
}
.law-text a.is-ref-active,
.source-notes a.is-ref-active {
  background: #d7e8d1;
  color: #15382a;
  text-decoration-style: solid;
  box-shadow: 0 0 0 2px #d7e8d1;
  border-radius: 3px;
}

.sr-copy-buffer { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* Research Mode: Side-by-Side Citation Reference Pane */
body.has-ref-pane { padding-right: min(500px, 44vw); }
.ref-pane-backdrop { display: none; }
.ref-pane {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(500px, 44vw);
  background: #f8f9f5;
  border-left: 1px solid #cad4c4;
  box-shadow: -8px 0 28px rgba(24, 46, 36, .1);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.ref-pane[hidden], .ref-pane-backdrop[hidden] { display: none !important; }
.ref-pane-head {
  padding: 10px 16px;
  background: #eff3eb;
  border-bottom: 1px solid #d4ddd0;
  flex-shrink: 0;
}
.ref-pane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ref-pane-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.ref-pane-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #4f6354;
}
.ref-pane-back {
  border: 1px solid #c2cfc0;
  background: #fff;
  color: #214a39;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.ref-pane-back:hover { background: #254e3e; border-color: #254e3e; color: #fff; }
.ref-pane-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd6c8;
  border-radius: 50%;
  background: #fff;
  color: #2d4c3e;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.ref-pane-close:hover { background: #254e3e; border-color: #254e3e; color: #fff; }
.ref-pane-close svg { display: block; pointer-events: none; }
.ref-pane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.ref-pane-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 4px;
  border: 1px solid #c3d0c1;
  background: #fff;
  color: #214a39;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ref-pane-btn:hover { background: #e8efe4; }
.ref-pane-btn.primary { background: #254e3e; border-color: #254e3e; color: #fff; }
.ref-pane-btn.primary:hover { background: #1a3b2e; }

.ref-pane-body {
  padding: 18px 20px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.ref-pane-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 11px 20px calc(11px + env(safe-area-inset-bottom));
  background: #eff3eb;
  border-top: 1px solid #d4ddd0;
  flex-shrink: 0;
}
.ref-pane-foot[hidden] { display: none !important; }
.ref-pane-foot-primary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref-pane-foot-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-left: auto; }
.ref-pane-foot-link {
  font-size: .82rem;
  font-weight: 600;
  color: #214a39;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.ref-pane-foot-link:hover { color: #143326; }
.ref-pane-loading, .ref-pane-note { margin: 0 0 14px; font-size: .9rem; color: #4d6052; }
.ref-pane-subtle { margin: -6px 0 14px; font-size: .8125rem; color: #5b6d5f; }
.ref-pane-error { padding: 16px; background: #faf2e8; border: 1px solid #e3c8a5; border-radius: 6px; color: #5e3b14; }
.ref-pane-error p { margin: 0 0 10px; }

.ref-version-sep { margin-top: 24px; padding-top: 20px; border-top: 2px solid #cbd5c5; }
.ref-doc-sec { margin: 0 0 3px; font-size: .84rem; font-weight: 700; color: #3d5d36; }
.ref-doc-title { margin: 0 0 8px; font: 600 1.4rem/1.22 var(--font-serif); color: #1f3c31; outline: none; }
.ref-version-meta { margin: 0 0 14px; font-size: .8125rem; color: #526456; }
.ref-version-meta p { margin: 0 0 4px; }
.ref-pane-body .law-text { padding: 0 16px; }
.ref-pane-body .law-subsection,
.ref-pane-body .law-unsectioned { padding: 14px 4px; font-size: .96rem; line-height: 1.65; }
.ref-pane-body .editorial-heading { font-size: 1.2rem; margin: 0 0 10px; }
.ref-pane-body .source-notes { margin: 20px 0 10px; padding: 16px; font-size: .875rem; }

.ref-pane-filter {
  width: 100%;
  padding: 8px 11px;
  margin: 0 0 12px;
  border: 1px solid #bfd0bd;
  border-radius: 5px;
  background: #fff;
  color: #243b34;
  font: inherit;
  font-size: .9rem;
}
.ref-range-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ref-range-item {
  display: block;
  padding: 10px 12px;
  border: 1px solid #d6dfd2;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: #243b34;
}
.ref-range-item:hover { background: #eef4ea; border-color: #9ab299; }
.ref-range-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.ref-range-head strong { font-size: .92rem; color: #1f4b3a; }
.ref-range-badge { font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; background: #e6efe2; color: #244b39; }
.ref-range-title { display: block; font-size: .875rem; line-height: 1.35; color: #2b4238; }
.ref-range-date { display: block; margin-top: 3px; font-size: .76rem; color: #5b6d5f; }

@media (max-width: 1220px) {
  body.has-ref-pane .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.has-ref-pane .reading-guide { position: static; max-height: none; background: #eef1e8; padding: 16px; border-radius: 6px; }
}
@media (max-width: 980px) {
  body.has-ref-pane { padding-right: 0; }
  .ref-pane-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 38, 30, .35);
    z-index: 39;
  }
  .ref-pane { width: min(92vw, 480px); }
}
@media (max-width: 640px) {
  .ref-pane {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 82vh;
    border-left: 0;
    border-top: 1px solid #cad4c4;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 28px rgba(24, 46, 36, .18);
  }
}
@media print {
  body.has-ref-pane { padding-right: 0 !important; }
  .ref-pane, .ref-pane-backdrop { display: none !important; }
}
