/* Rules uses the shared Timeline masthead, palette and bibliography. */
.rules-page .t-period p{font-size:3.4rem}
.rules-page .t-hero h1 em{font-size:.62em}
.rules-page :is(#authorities,#timeline,#case-studies,#enforcement,#sources,#chronology,.r-event,.r-case,.r-inspector){scroll-margin-top:6rem}
.r-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.r-small{font:.76rem/1.8 Arial,Helvetica,sans-serif;color:#59665b!important;margin:1rem 0}
.r-authorities{border:1px solid #cfc5b4;background:#fcf9f2}
.r-authorities table{width:100%;border-collapse:collapse;text-align:left}
.r-authorities th,.r-authorities td{padding:1.05rem 1.3rem;border-bottom:1px solid #d9d0c0;vertical-align:top;line-height:1.6}
.r-authorities thead th{background:#e8e2d4;font:.67rem/1.5 Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#56624f}
.r-authorities tbody th{font-weight:400;width:24%;font-size:1.1rem}
.r-authorities td{font-size:.91rem}
.r-authorities td:last-child{width:39%;color:#405c45}
.r-authorities tr:last-child>*{border-bottom:0}
.r-key{display:grid;grid-template-columns:1fr 1.5fr;gap:3rem;background:#e7e5d7;border-left:3px solid #6b7a58;padding:1.4rem 1.7rem;margin-top:1.6rem;align-items:center}
.r-key strong{font:400 1.4rem/1.35 Georgia,serif;letter-spacing:-.02em}
.r-key p{font-size:.94rem;line-height:1.8;margin:0}
.r-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem;font-family:Arial,Helvetica,sans-serif}
.r-toolbar button,.r-filters button{border:1px solid #9fa993;padding:.75rem 1rem;background:transparent;color:#34483a;font-size:.75rem;min-height:44px}
.r-view-switch{display:flex;gap:0}
.r-view-switch button+button{border-left:0}
.r-view-switch button[aria-pressed=true]{background:#2b4538;color:#fff9eb;border-color:#2b4538}
.r-toolbar button:hover,.r-filters button:hover{box-shadow:inset 0 0 0 1px #50654c}
.r-filters{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:1rem;background:#e9e3d6;border:1px solid #d2cabb;padding:1rem 1.2rem;font: .78rem Arial,Helvetica,sans-serif}
.r-filters>div{min-width:0}
.r-filters label{display:block;font-size:.68rem;color:#4e5d55;margin:0 0 .5rem}
.r-filters input,.r-filters select{width:100%;min-width:0;min-height:44px;padding:.7rem .65rem;background:#fffdf6;color:#293b34;border:1px solid #a8b0a3;border-radius:0;font-size:.8rem}
.r-legend{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;padding:1rem .1rem .2rem;font:.69rem/1.5 Arial,Helvetica,sans-serif;color:#586353}
.r-legend>span{display:flex;align-items:center;gap:.5rem}
.r-symbol{display:inline-block;width:9px;height:9px;flex:none;background:currentColor;vertical-align:middle;margin-right:.05rem;color:inherit}
.r-symbol-rule{background:transparent;border:1.5px solid currentColor}
.r-symbol-ruling{transform:rotate(45deg);width:8px;height:8px}
.r-symbol-consequence{border-radius:50%}
.r-symbol-proceeding{background:transparent;border:1.5px solid currentColor;border-radius:50%}
.r-symbol-response{height:3px;width:12px}
.r-matrix-scroll{overflow:auto;border:1px solid #c8c0af;background:#fcf9f2;overscroll-behavior-x:contain}
.r-matrix{width:100%;min-width:1240px;border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:left}
.r-matrix thead th{padding:.85rem .65rem;background:#e7e2d5;font:.69rem Arial,sans-serif;color:#5e6658;border-right:1px solid #cfc7b8;border-bottom:1px solid #bdb4a1}
.r-matrix tr>*:first-child{width:155px;position:sticky;left:0;z-index:1;background:#f1ebdf}
.r-matrix thead th:first-child{background:#e7e2d5}
.r-matrix tbody th{padding:1.3rem .9rem;vertical-align:top;border-right:1px solid #c6bca9;border-bottom:1px solid #cfc7b8;box-shadow:4px 0 5px #252b2410}
.r-matrix tbody th:before{content:'';display:block;width:24px;height:3px;background:var(--lane);margin-bottom:.8rem}
.r-matrix th strong{display:block;font:400 1.06rem/1.3 Georgia,serif}
.r-matrix th span{display:block;font:.64rem/1.7 Arial,sans-serif;margin-top:.5rem;color:#65705f}
.r-matrix td{padding:.45rem;vertical-align:top;border-right:1px solid #ddd5c7;border-bottom:1px solid #cfc7b8}
.r-matrix tbody tr:nth-child(even) td{background:#f5f0e6}
.r-map-event{display:block;padding:.6rem .45rem .7rem;text-decoration:none;border-left:2px solid var(--lane);background:#eae8dd;color:#293b34;min-height:62px;margin:.15rem 0 .5rem;font: .75rem/1.4 Georgia,serif;overflow-wrap:break-word}
.r-map-event:last-child{margin-bottom:.15rem}
.r-map-date{display:flex;align-items:center;gap:.45rem;font:.6rem/1.4 Arial,sans-serif;color:var(--lane);margin-bottom:.38rem}
.r-map-event:hover,.r-map-event[aria-current=true]{background:#dfe5d5;box-shadow:inset 0 0 0 1px var(--lane)}
.r-scroll-hint{font:.67rem Arial,sans-serif;color:#65705f;margin:.8rem 0}
.r-inspector{border:1px solid #b7b99e;background:#e7e9dc;padding:1.6rem 2rem;margin-top:1.2rem}
.r-inspector-top{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.r-inspector-top button{border:0;border-bottom:1px solid #8f9b7c;background:transparent;color:#405333;font:.7rem Arial,sans-serif;padding:.5rem;min-height:38px}
.r-inspector-top p{margin:0}
.r-inspector h3{font:400 1.8rem/1.3 Georgia,serif;margin:.5rem 0 1rem;letter-spacing:-.02em}
.r-inspector-copy{max-width:65rem;margin-top:1rem}
.r-inspector-copy>p{font-size:1rem;line-height:1.85}
.r-list-heading{font:400 1.6rem Georgia,serif;margin:1.8rem 0 1rem}
.r-event{border:0;border-top:1px solid #c9beab;background:transparent}
.r-event:last-child{border-bottom:1px solid #c9beab}
.r-event>summary{display:grid;grid-template-columns:145px minmax(0,1fr) 30px;gap:1.5rem;padding:1.5rem .5rem;cursor:pointer;list-style:none}
.r-event>summary::-webkit-details-marker,.r-case>summary::-webkit-details-marker{display:none}
.r-event>summary::marker,.r-case>summary::marker{content:''}
.r-event[open],.r-event:target{background:#eeeade}
.r-event>summary:hover{background:#e8e4d8}
.r-year{font:.8rem/1.6 Arial,sans-serif;color:var(--lane);border-left:3px solid var(--lane);padding-left:.7rem;align-self:start}
.r-event-heading{display:flex;flex-direction:column;gap:.5rem}
.r-lane-name{font:.62rem/1.5 Arial,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:var(--lane)}
.r-event-title{font:400 1.5rem/1.25 Georgia,serif;letter-spacing:-.02em}
.r-event-summary{font-size:.95rem;line-height:1.7;color:#536052}
.r-status{display:inline-flex;align-items:center;gap:.5rem;font:.65rem/1.6 Arial,sans-serif;color:#5d674f;letter-spacing:.02em}
.r-expand{font:1.8rem/1 Georgia,serif;color:#826947;align-self:center;transition:transform .15s}
.r-event[open] .r-expand{transform:rotate(45deg)}
.r-event-body{padding:0 3rem 1.6rem calc(145px + 2rem);font-size:1rem;line-height:1.85}
.r-event-body>p:first-child{margin-top:0}
.r-outcome{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;background:#e4e1d3;border-left:2px solid #8a987c;padding:1rem 1.2rem;margin:1rem 0}
.r-outcome dt{font:.62rem/1.5 Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#6e765e;margin-bottom:.5rem}
.r-outcome dd{margin:0;font:.91rem/1.65 Georgia,serif}
.r-permalink,.r-case-events,.r-questions>a{font:.73rem/1.7 Arial,sans-serif;color:#526341}
.r-record-note{font-size:.8rem!important;color:#68705e}
.r-empty{padding:1.5rem;border:1px solid #c9beab;font-size:1rem}
.r-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;align-items:start}
.r-case{background:#ece6d9;border:1px solid #cfc4af}
.r-case>summary{display:flex;flex-direction:column;list-style:none;padding:1.6rem 1.7rem;cursor:pointer;min-height:205px}
.r-case>summary:hover{background:#e5e3d4}
.r-case-title{font:400 1.6rem/1.2 Georgia,serif;letter-spacing:-.02em;margin:.35rem 0 .8rem}
.r-case-deck{font:.95rem/1.7 Georgia,serif;color:#586353}
.r-case-more{margin-top:auto;padding-top:1.1rem;font:.7rem Arial,sans-serif;color:#755d3d;display:flex;justify-content:space-between}
.r-case-more>span{font-size:1.2rem;line-height:.8}
.r-case[open] .r-case-more>span{transform:rotate(45deg)}
.r-case-body{padding:0 1.7rem 1.6rem;font:.96rem/1.8 Georgia,serif}
.r-case-body p:first-child{margin-top:0}
.r-case-events{display:flex;flex-direction:column;gap:.7rem;border-top:1px solid #cfc4af;padding-top:1rem}
.r-process{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;list-style:none;padding:0;margin:1rem 0 2rem;counter-reset:none}
.r-process li{border-top:2px solid #9b8b68;padding-top:1rem}
.r-process li>span{font:.68rem Arial,sans-serif;color:#8b7352;display:block;margin-bottom:.9rem}
.r-process strong{font:400 1.25rem Georgia,serif;display:block}
.r-process p{font:.9rem/1.75 Georgia,serif;color:#536052}
.r-questions details{border-top:1px solid #c9beab;padding:.6rem 0}
.r-questions details:last-child{border-bottom:1px solid #c9beab}
.r-questions summary{font:400 1.15rem/1.5 Georgia,serif;cursor:pointer;padding:.8rem 0;color:#6b5439}
.r-questions p{max-width:70ch;font:.98rem/1.85 Georgia,serif}
.r-questions a{font-size:.85rem}
.r-reading{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin:1.5rem 0 2.2rem}
.r-reading article{border-top:1px solid #bbaa8a;padding:1.5rem;background:#ece6d9}
.r-reading h3{font:400 1.4rem Georgia,serif;margin:.75rem 0}
.r-reading p{font:.95rem/1.8 Georgia,serif}
.r-reading a{font-size:.78rem;margin-right:1rem}
@media(max-width:1050px){.r-filters{grid-template-columns:1fr 1fr}.r-key{gap:1.5rem}.r-process{gap:1rem}}
@media(max-width:760px){
 .rules-page .t-period p{font-size:1.9rem}
 .rules-page :is(#authorities,#timeline,#case-studies,#enforcement,#sources,#chronology,.r-event,.r-case,.r-inspector){scroll-margin-top:12rem}
 .r-authorities th,.r-authorities td{padding:.8rem .6rem;line-height:1.55}
 .r-authorities tbody th{font-size:.9rem;width:27%}.r-authorities td{font-size:.8rem}.r-authorities td:last-child{width:36%}
 .r-authorities thead th{font-size:.58rem;letter-spacing:.03em}
 .r-key{grid-template-columns:1fr;gap:.65rem;padding:1.2rem}
 .r-key strong{font-size:1.25rem}.r-key p{font-size:.9rem}
 .r-toolbar{align-items:stretch;flex-wrap:wrap;gap:.65rem}.r-toolbar button{font-size:.7rem;padding:.7rem .8rem}
 .r-toolbar .r-print{margin-left:auto}.r-view-switch{flex:1}.r-view-switch button{flex:1}
 .r-filters{padding:.8rem;gap:.8rem}.r-filters>div:first-child{grid-column:1/-1}.r-filters button{justify-self:start;font-size:.7rem}
 .r-filters input,.r-filters select{font-size:.75rem}.r-legend{font-size:.61rem;gap:.7rem 1rem}
 .r-event>summary{grid-template-columns:1fr 24px;gap:.6rem;padding:1.3rem .4rem}.r-year{grid-column:1;font-size:.7rem}.r-event-heading{grid-column:1}.r-expand{grid-column:2;grid-row:1/3}
 .r-event-title{font-size:1.3rem}.r-event-summary{font-size:.9rem}.r-event-body{padding:0 1rem 1.3rem;font-size:.94rem}
 .r-outcome{grid-template-columns:1fr;gap:1rem}.r-inspector{padding:1.2rem}.r-inspector h3{font-size:1.4rem}
 .r-cases,.r-reading{grid-template-columns:1fr;gap:1rem}.r-case>summary{padding:1.3rem;min-height:0}.r-case-title{font-size:1.4rem}.r-case-body{padding:0 1.3rem 1.3rem}
 .r-process{grid-template-columns:1fr 1fr;gap:1.1rem}.r-process strong{font-size:1.1rem}
 .r-reading{margin-top:1rem}.r-questions summary{font-size:1.04rem}
}
@media(prefers-reduced-motion:reduce){.rules-page *{scroll-behavior:auto!important;transition:none!important}}
@media print{
 .rules-page .t-period,.r-toolbar,.r-filters,.r-legend,.r-map-help,.r-scroll-hint,#matrix-view,#event-count,.r-expand,.r-case-more,.r-permalink,.r-list-heading,.r-empty{display:none!important}
 .rules-page .t-hero h1 em{color:#222}.rules-page .t-hero{padding-bottom:0}.rules-page .t-shell{width:100%}
 #chronology[hidden],.r-event[hidden]{display:block!important}.r-event{break-inside:avoid}.r-event>summary{grid-template-columns:100px 1fr;padding:.7rem 0;gap:1rem}
 .r-event-body{padding:0 0 1rem 116px;font-size:10pt}.r-event-title{font-size:13pt}.r-event-summary{font-size:10pt}
 .r-cases,.r-reading{display:block}.r-case{margin:1rem 0;break-inside:avoid}.r-case>summary{min-height:0;padding:1rem}
 .r-status,.r-year,.r-lane-name{color:#333}.r-outcome{background:#eee}.r-process{break-inside:avoid}
 .r-authorities{break-inside:avoid}.hs-list>li[hidden]{display:grid!important}
}

/* Historical context beside the case studies. */
.r-context{margin:0 0 1.5rem;align-items:start}
.r-context h3{font:400 1.5rem/1.3 Georgia,serif;margin:.45rem 0 0}
.r-context p+p{margin-top:.8rem}
