.law-layout {
  margin-top: 10px;
  --green: var(--orange);
}
.law-reading {
  min-width: 0;
}
.law-text {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.9;
}
.law-text a,
.law-sources a,
.law-related a {
  color: var(--orange);
}
.law-toc {
  background: #f2eee5;
  border-color: var(--line);
}
.law-source-note {
  background: #f3efe7;
  border-color: var(--line);
}
.law-highlights {
  background: #f5eee3;
}
.law-article h3,
.law-chapter h2,
.law-annex h2 {
  font-family: var(--serif);
  font-weight: 500;
}
.law-actions .button,
.law-highlight-source {
  color: var(--orange);
}
.law-highlight-card {
  border-color: var(--line);
}
.law-reading img {
  max-width: 100%;
  height: auto;
}
.law-text table {
  font-size: 12px;
}
.law-text .law-table-scroll {
  max-width: 100%;
  overflow: auto;
}
.law-back-top {
  background: var(--orange);
  color: white;
}
.law-toc a:hover {
  color: var(--orange);
}
.law-sources,
.law-related {
  margin-top: 40px;
}
.law-related ul {
  padding-left: 20px;
}
.law-sources p,
.law-related li {
  font-size: 12px;
}
.law-toc summary {
  cursor: pointer;
}
.law-highlight-heading h3 {
  font-family: var(--font);
}
.law-source-note p {
  font-size: 12px;
}
.law-quick-links a {
  background: var(--light-orange);
  color: var(--orange);
}
.law-supplement {
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.law-supplement h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 18px;
}
.law-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.law-highlight-grid h3 {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.law-highlight-grid p {
  font-size: 12px;
  line-height: 1.85;
}
.law-highlight-grid .law-highlight-source {
  margin-top: 15px;
  display: inline-block;
  font-size: 11px;
}
.law-text td,
.law-text th {
  vertical-align: top;
}
.law-text td p,
.law-text th p {
  margin: 0;
}
.law-text .annex-source {
  font-size: 11px;
  margin-top: 15px;
}
@media (max-width: 700px) {
  .law-highlight-grid {
    grid-template-columns: 1fr;
  }
}
/* Reading hierarchy follows the reference library; editorial notes follow the full text. */
.document-body {
  padding-bottom: 80px;
}
.law-reading {
  min-width: 0;
}
.law-highlights {
  margin: 72px 0 0;
  padding: 36px 0 0;
  border-top: 1px solid #d8cec0;
  background: transparent;
}
.law-highlights-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 30px;
}
.law-highlights-header .eyebrow {
  font: 650 10px/1.6 var(--font);
  letter-spacing: 1.8px;
  color: #9a563b;
  margin: 0 0 15px;
}
.law-highlights-header h2 {
  font: 500 clamp(30px, 3vw, 42px)/1.15 var(--serif);
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 0 0 15px;
}
.law-highlights-header p:not(.eyebrow) {
  font: 400 13px/1.85 var(--font);
  color: #65645d;
  max-width: 62ch;
}
.law-highlights-count {
  min-width: 72px;
  text-align: right;
  padding-top: 28px;
  color: #786451;
  white-space: normal;
}
.law-highlights-count strong {
  font: 400 42px/1 var(--serif);
  color: #b8542e;
}
.law-highlights-count span {
  display: block;
  font-size: 10px;
  margin-top: 8px;
}
.law-highlights-note {
  font: 400 12px/1.8 var(--font);
  color: #79756c;
  margin: 0 0 26px;
}
.law-highlights-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.law-highlight,
.law-highlight[class*="law-highlight--"] {
  --point-color: #a24c2e;
  --point-bg: #fffdfa;
  --point-line: #e2d9cd;
  background: var(--point-bg);
  border: 1px solid var(--point-line);
  border-left: 3px solid #be6947;
  border-radius: 3px 12px 12px 3px;
  padding: 28px 32px;
  margin: 0;
}
.law-highlight-top {
  gap: 12px;
  font-family: var(--font);
}
.law-highlight-number {
  color: #85634e;
  font-size: 11px;
  letter-spacing: 1px;
}
.law-highlight-tag {
  border: 0;
  background: #f5eee5;
  padding: 4px 9px;
  border-radius: 4px;
  color: #7d5943;
  font-size: 10px;
}
.law-highlight-reference {
  color: #926c57;
  font-size: 11px;
}
.law-highlight h3 {
  color: var(--ink);
  font: 600 18px/1.5 var(--font);
  margin: 18px 0 14px;
  overflow-wrap: anywhere;
}
.law-highlight p {
  color: #565851;
  font: 400 14px/1.9 var(--font);
  max-width: 84ch;
  margin: 12px 0;
}
.law-highlight-source {
  margin-top: 20px;
  color: var(--orange);
  font: 600 12px/1.6 var(--font);
  text-decoration: none;
  padding: 4px 0;
}
.law-highlight-source:hover {
  text-decoration: underline;
}
.law-highlight-more {
  margin-top: 18px;
  border-color: #e7dfd4;
}
.law-highlight-more summary {
  padding: 14px 0;
  font-size: 12px;
  color: #896044;
}
.law-highlight-more .law-highlight-excerpt {
  border-color: #e7dfd4;
}
.law-source-note {
  padding: 24px 28px;
  border-radius: 8px;
  background: #f3f0e9;
}
.law-source-note p {
  line-height: 1.85;
}
.law-article:target,
.law-annex:target {
  outline-color: #c78868;
}
@media (max-width: 700px) {
  .law-highlights {
    margin-top: 48px;
    padding-top: 28px;
  }
  .law-highlights-header {
    gap: 18px;
    padding-bottom: 24px;
  }
  .law-highlights-header h2 {
    font-size: 31px;
  }
  .law-highlights-count {
    display: block;
    padding-top: 30px;
    text-align: right;
    min-width: 48px;
  }
  .law-highlights-count strong {
    font-size: 33px;
  }
  .law-highlights-count span {
    font-size: 9px;
  }
  .law-highlight,
  .law-highlight[class*="law-highlight--"] {
    padding: 22px 20px;
  }
  .law-highlight h3 {
    font-size: 17px;
  }
  .law-highlight p {
    font-size: 14px;
  }
  .law-source-note {
    padding: 20px;
  }
}

.law-source-files {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.law-source-files h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  margin: 8px 0;
}
.law-source-files > p {
  color: var(--muted);
  line-height: 1.8;
}
.source-pdf {
  display: block;
  width: 100%;
  height: min(78vh, 1000px);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0;
  background: #f0eee9;
}
.source-figure {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.source-figure img {
  max-width: 100%;
  height: auto;
}
.source-figure figcaption {
  font: 12px/1.6 var(--font);
  margin-top: 12px;
}
.pdf-page-text {
  white-space: pre-wrap;
  font: 15px/1.8 var(--font);
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .law-source-files {
    padding: 20px;
  }
  .source-pdf {
    height: 65vh;
  }
}

.source-figure[data-unavailable] { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f3; }
.source-figure .source-figure-unavailable { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.source-figure img[hidden] { display: none; }
