/* Readable document layout, using the main website's colour palette. */
.statutes { padding: 55px 6% 80px; }
.statutes-heading { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.backlink { display: inline-block; font-size: 13px; margin-bottom: 32px; }
.statutes-heading h1 { font-size: clamp(48px, 7vw, 84px); letter-spacing: -3px; }
.statutes-heading > p:not(.eyebrow) { color: #52655c; }
.print-button { padding: 10px 18px; background: var(--ink); color: white; border: 0; margin-top: 10px; }
.statutes-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 55px; padding-top: 40px; }
.contents { align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.contents summary { font-weight: bold; cursor: pointer; padding: 0 0 14px; }
.contents-links { display: grid; gap: 0; }
.contents-links a { padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.contents-links a:hover, .backlink:hover { text-decoration: underline; }
.statutes-text { max-width: 760px; min-width: 0; overflow-wrap: break-word; }
.statutes-text h2 { font-size: 27px; letter-spacing: -.5px; margin: 42px 0 18px; line-height: 1.3; scroll-margin-top: 30px; }
.statutes-text > div:first-child > h2:first-child { margin-top: 0; }
.statutes-text p, .statutes-text li { line-height: 1.8; }
.statutes-text li { padding-left: 4px; margin-bottom: 10px; }
.statutes-text ul, .statutes-text ol { padding-left: 25px; }
.source-note { font-size: 12px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 35px; }
.source-note a { text-decoration: underline; }
nav a[aria-current="page"] { border-bottom: 2px solid var(--green); }
header > nav { flex-wrap: wrap; }
@media (max-width: 900px) {
    .statutes-layout { grid-template-columns: 1fr; gap: 35px; }
    .contents { position: static; max-height: none; background: #edf0e5; padding: 22px; }
    .contents-links { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 620px) {
    .statutes { padding: 35px 6% 50px; }
    .contents-links { grid-template-columns: 1fr; }
    .statutes-text h2 { font-size: 24px; }
}
@media print {
    @page { margin: 20mm; }
    body { background: white; color: black; font: 11pt/1.5 Georgia, serif; }
    header, footer, .topline, .skip, .contents, .backlink, .print-button, .textlink, .source-note { display: none !important; }
    .statutes { padding: 0; }
    .statutes-heading { padding-bottom: 16px; }
    .statutes-heading h1 { font-size: 32pt; letter-spacing: 0; margin-bottom: 12px; }
    .statutes-layout { display: block; padding-top: 12px; }
    .statutes-text { max-width: none; }
    .statutes-text h2 { font-size: 16pt; break-after: avoid; }
    .statutes-text p, .statutes-text li { orphans: 3; widows: 3; }
}
