.rail-chapters {
  display: flex;
  flex-direction: column;
}

.chapter-menu {
  border-bottom: 1px solid var(--line);
}

.chapter-menu > summary {
  list-style: none;
  min-height: 49px;
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #47575e;
  padding: 0 9px;
  cursor: pointer;
}

.chapter-menu > summary::-webkit-details-marker { display: none; }

.chapter-menu[open] > summary,
.chapter-menu > summary:hover,
.chapter-menu > summary:focus-visible {
  color: var(--blue);
  background: #f5f8fd;
}

.menu-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  justify-self: end;
  transition: transform 0.2s ease;
}

.chapter-menu[open] .menu-caret {
  transform: rotate(45deg);
}

.rail-chapter {
  border-bottom: 1px solid var(--line);
}

.rail-chapter > a {
  min-height: 49px;
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #47575e;
  padding: 0 9px;
}

.rail-chapter > a:hover,
.rail-chapter > a:focus-visible,
.rail-chapter > a.active {
  background: #f5f8fd;
  color: var(--blue);
}

.rail-sections {
  display: grid;
  padding: 0 0 10px 8px;
}

.rail-chapters .rail-sections a {
  min-height: 36px;
  display: block;
  grid-template-columns: none;
  font-size: 12px;
  line-height: 1.4;
  color: #5d6b72;
  padding: 8px 10px;
}

.rail-sections a:hover,
.rail-sections a:focus-visible,
.rail-sections a.active {
  color: var(--blue);
}

.section-panel,
.section-block {
  padding: 0 0 12px;
}

.section-panel[hidden] { display: none !important; }
.act-banner[hidden] { display: none !important; }

.section-kicker-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.section-kicker-row span {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--blue);
}

.section-panel h3,
.section-block h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.statute {
  font-size: 14px;
  line-height: 1.85;
  color: #46575e;
  max-width: 760px;
}

.statute p { margin: 0 0 12px; }
.statute ol { margin: 0 0 14px; padding-left: 22px; }
.statute li { margin-bottom: 8px; }
.statute .illustration {
  background: #f7f9fd;
  border-left: 2px solid var(--blue);
  padding: 12px 16px;
  font-size: 13px;
}

.definition-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.definition-list dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.definition-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #53617d;
}

.mapped-rules {
  margin: 22px 0 8px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.mapped-rules h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mapped-rule {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.mapped-rule:first-of-type { border-top: 0; }

.mapped-rule b {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mapped-rule p { margin: 4px 0 0; color: #53617d; line-height: 1.65; }

.mapped-rule a {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
  font-size: 12px;
}

.none-map {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0 12px;
}

.quick-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.quick-access a {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.quick-access a:hover { color: var(--blue); border-color: var(--blue); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.legal-interpretation {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-interpretation h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.act-faq {
  margin-top: 28px;
  text-align: left;
}

.act-faq h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.act-faq .faq-item {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  transform: none;
}

.act-faq .faq-item:hover,
.act-faq .faq-item[open] {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.act-faq .faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.act-faq .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
}

.act-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.act-faq .faq-item summary::after {
  content: "+";
  float: none;
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 500;
  line-height: 1.2;
}

.act-faq .faq-item[open] summary {
  padding-bottom: 8px;
}

.act-faq .faq-item[open] summary::after {
  content: "–";
}

.act-faq .faq-item p,
.act-faq .faq-item ul {
  margin: 0 4px 20px;
  padding-right: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.act-faq .faq-item p + p {
  margin-top: -8px;
}

.act-faq .faq-item ul {
  padding-left: 18px;
}

.act-faq .faq-item li + li {
  margin-top: 8px;
}

.section-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 40px;
  padding-top: 8px;
}

.pager-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.pager-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pager-next {
  justify-content: flex-end;
  text-align: right;
}

.pager-arrow {
  font-size: 20px;
  line-height: 1;
  color: inherit;
  flex-shrink: 0;
}

.pager-btn:hover,
.pager-btn:focus-visible {
  color: var(--blue-deep, #234a9f);
  text-decoration-color: currentColor;
  outline: none;
}

.pager-btn[hidden] {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 680px) {
  .mapped-rule { grid-template-columns: 1fr; }
  .rail-sections { padding-left: 8px; }
  .rail-chapters {
    display: flex;
    flex-direction: column;
  }

  .section-pager {
    grid-template-columns: 1fr;
  }

  .pager-next {
    justify-content: flex-start;
    text-align: left;
  }
}
