:root{color-scheme:dark;--bg:#181916;--surface:#21221d;--text:#e9e6dc;--muted:#b8b6aa;--accent:#d0bb7e;--line:#3d3e33;--control:#8c815e;--heading:system-ui,-apple-system,"Segoe UI",sans-serif}
:root[data-theme=workshop]{--heading:system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:1.0625rem/1.65 system-ui,sans-serif}a{color:var(--accent);text-underline-offset:.22em}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{border:1px solid var(--control);background:transparent;color:var(--text);padding:.58rem .9rem;cursor:pointer;min-height:44px}button:hover{background:var(--surface)}button:disabled{color:var(--muted);cursor:default;opacity:.7}button.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:650}button.primary:hover{filter:brightness(1.08)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input,select{width:100%;min-height:46px;border:1px solid var(--control);border-radius:0;background:var(--surface);color:var(--text);padding:.56rem .72rem;min-width:0}input::placeholder{color:var(--muted);opacity:1}select{appearance:none;padding-right:2.2rem;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 1.2rem,calc(100% - 13px) 1.2rem;background-size:5px 5px;background-repeat:no-repeat}label{display:block;font-size:.875rem;font-weight:550;margin-bottom:.38rem}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.25;text-wrap:balance}h1{font:400 clamp(1.8rem,3vw,2.8rem)/1.2 var(--heading);letter-spacing:-.025em;margin-bottom:.7rem}h2{font:400 1.6rem/1.3 var(--heading)}h3{font-size:1.1rem}p{overflow-wrap:anywhere}.hint,.meta,.corpus-meta{font-size:.875rem;color:var(--muted)}.hint{margin:.65rem 0 1.1rem;max-width:80ch}.masthead,main,footer{width:min(calc(100% - 4rem),var(--max));margin:auto}.masthead{padding:1.65rem 0 1.2rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;border-bottom:1px solid var(--line)}.wordmark{text-decoration:none;font:500 1.5rem/1.1 var(--heading);color:var(--text);letter-spacing:-.03em}.wordmark span{display:block;font:400 .875rem/1.5 system-ui,sans-serif;color:var(--muted);letter-spacing:0;margin-top:.35rem}.corpus-meta{max-width:45ch;margin:0;text-align:right}.search-area{padding:2.4rem 0 1.5rem;border-bottom:1px solid var(--line)}.search-heading{display:flex;justify-content:space-between;gap:2rem;align-items:baseline}.search-heading p{max-width:45ch;color:var(--muted);font-size:1rem}.query-line{display:flex;gap:.8rem;align-items:end}.query-field{flex:1}.query-line button{min-width:8.5rem;height:48px}details>summary{display:inline-block;cursor:pointer;color:var(--accent);text-decoration:underline;text-underline-offset:.25em;padding:.4rem 0;min-height:44px}details[open]>summary{margin-bottom:.8rem}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.filter-actions{margin-top:1rem}.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;padding:1.7rem 0 4rem}.workspace.has-reader{grid-template-columns:minmax(21rem,.85fr) minmax(0,1.4fr)}.results-pane,.reader{min-width:0}.workspace.has-reader .results-pane{position:sticky;top:1rem;max-height:calc(100dvh - 2rem);overflow:auto;scrollbar-gutter:stable;padding-right:.6rem}.results-heading{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;border-bottom:1px solid var(--line);padding-bottom:.75rem}.results-heading h2{margin:0}.results-heading span{font-size:.875rem;color:var(--muted);text-align:right}.state-panel{padding:1.3rem 0;max-width:65ch;min-height:8rem}.state-panel p{margin-bottom:.8rem}.examples{display:flex;gap:.6rem;flex-wrap:wrap}.results-list{list-style:none;margin:0;padding:0}.result{border-bottom:1px solid var(--line);padding:1.3rem 0 1.5rem}.result[aria-current=true]{border-left:3px solid var(--accent);padding-left:.85rem}.result a.result-title{color:var(--text);font:400 1.28rem/1.35 var(--heading);text-decoration:none;display:inline-block;margin:.35rem 0 .6rem;overflow-wrap:anywhere}.result a.result-title:hover{text-decoration:underline}.result p{margin-bottom:.5rem}.result .excerpt{font-size:1rem;color:var(--muted);line-height:1.65;max-width:85ch}.norms{font-size:.875rem;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding-top:1.2rem}.pagination span{font-size:.875rem;color:var(--muted)}.reader{border-left:1px solid var(--line);padding-left:2rem}.reader-toolbar{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin-bottom:1.5rem}.reader-toolbar a{font-size:.875rem}.reader h2{font-size:clamp(1.6rem,2.1vw,2rem);margin:.6rem 0 1rem;overflow-wrap:anywhere}.reader .source-line{color:var(--muted);font-size:.875rem}.reader .notice{color:var(--muted);border-top:1px solid var(--line);padding-top:1rem;font-size:.875rem}.reader-section{padding:1.5rem 0;border-top:1px solid var(--line)}.reader-section>h3{font-size:1.2rem;margin-bottom:1rem}.claim{padding:0 0 1rem;margin:0 0 1rem;border-bottom:1px solid var(--line)}.claim h4{font-size:.875rem;color:var(--muted);font-weight:550;margin:0 0 .4rem}.claim p{margin-bottom:.5rem}.text-button{border:0;border-bottom:1px solid var(--accent);padding:.2rem 0;min-height:36px;color:var(--accent);font-size:.875rem;background:none}.text-button:hover{background:none;filter:brightness(1.2)}.quote{border-left:2px solid var(--control);padding:.2rem 0 .2rem .8rem;margin:.8rem 0;color:var(--muted);font-size:1rem}.act-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;max-width:75ch;font-size:1.0625rem;tab-size:4}.act-body mark{background:#cfc29b;color:#181b16;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:.12em 0}.act-body:focus{outline-offset:8px}.warnings{padding-left:1.15rem;font-size:.94rem;color:var(--muted)}.preview-note{border-bottom:1px solid var(--line);padding:.5rem 1.5rem;text-align:center;font-size:.875rem;color:var(--muted);background:var(--surface)}:root[data-preview=false] [data-preview-only]{display:none}.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;left:1rem;top:-10rem;background:var(--surface);padding:.7rem;z-index:10}.skip-link:focus{top:.5rem}footer{padding:1.5rem 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.875rem}[hidden]{display:none!important}
.reader-toolbar a{display:inline-flex;align-items:center;min-height:44px;padding:.3rem .1rem}
@media(min-width:1500px){.search-heading p{max-width:54ch}.workspace.has-reader{grid-template-columns:minmax(23rem,.8fr) minmax(0,1.45fr)}}
@media(max-width:1000px){.search-heading{display:block}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace.has-reader{grid-template-columns:1fr}.workspace.has-reader .results-pane{display:none}.reader{border:0;padding:0}.act-body{max-width:none}.workspace.has-reader{padding-top:1.4rem}}
@media(max-width:600px){.masthead,main,footer{width:calc(100% - 2rem)}.masthead{align-items:start;gap:1rem;flex-direction:column}.corpus-meta{text-align:left}.search-area{padding-top:1.5rem}.query-line{align-items:stretch;flex-direction:column}.query-line button{min-width:0}.filter-grid{grid-template-columns:1fr}.workspace{gap:1.5rem}.reader-toolbar{gap:1rem}.results-heading{align-items:start}.pagination{flex-wrap:wrap}.pagination span{order:3;width:100%;text-align:center}.act-body{font-size:1rem;line-height:1.8}footer{flex-direction:column;gap:.4rem}.preview-note{text-align:left;padding:.6rem 1rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.result-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}.tag-filter{font:inherit;cursor:pointer;min-height:44px;padding:.25rem .55rem;background:transparent;color:var(--accent);border:1px solid var(--line)}.tag-filter:hover{border-color:var(--accent)}

/* Contained search and reading cards, adapted from the original CourtSearch workbench. */
:root{--max:1120px}
.search-area{margin-top:32px;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.search-heading{gap:24px;margin-bottom:24px}.search-heading h1{max-width:23ch}.search-heading p{max-width:40ch;line-height:1.65}
.search-area input,.search-area select{background:var(--bg);border-radius:6px}
.search-area button{border-radius:6px}.hint{margin-bottom:16px}
.workspace{padding-top:28px;gap:24px}.results-pane{min-width:0}.results-heading{padding:0 4px 16px}
.results-list{display:grid;gap:16px;margin-top:20px}
.result{padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.result[aria-current=true]{border:1px solid var(--control);border-left:3px solid var(--accent);padding:22px 22px 22px 20px}
.result a.result-title{font-family:Arial,"Segoe UI",sans-serif;font-size:19px;line-height:1.5;font-weight:500;letter-spacing:normal}
.reader{padding:26px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.reader h2{font-size:25px;line-height:1.4}.reader-section{padding-block:24px}.act-body{line-height:1.85}
.state-panel{padding:20px 4px}.result-tags{gap:8px}.tag-filter{border-radius:6px}
@media(max-width:1000px){.reader{padding:24px;border:1px solid var(--line)}.workspace.has-reader{padding-top:24px}}
@media(max-width:600px){.search-area{margin-top:24px;padding:20px}.search-heading{margin-bottom:20px}.search-heading h1{font-size:29px}.result,.result[aria-current=true]{padding:18px}.reader{padding:20px}.reader h2{font-size:23px}.results-heading{padding-inline:0}.workspace{padding-bottom:24px}}

body[data-site-shell]{font-family:Arial,"Segoe UI",sans-serif;letter-spacing:normal;word-spacing:normal}
body[data-site-shell] .shell{width:min(1120px,calc(100% - 64px));margin-inline:auto}
body[data-site-shell] .site-header{width:100%;margin:0;min-height:94px;padding:20px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
body[data-site-shell] .site-header .brand{display:inline-flex;flex-direction:row;align-items:baseline;gap:12px;color:var(--text);font:400 17px/1.5 Arial,"Segoe UI",sans-serif;text-decoration:none;white-space:nowrap}
body[data-site-shell] .site-header .brand b{color:var(--accent);font:700 23px/1.2 Arial,"Segoe UI",sans-serif;letter-spacing:normal}
body[data-site-shell] .site-header .brand span{display:inline;color:var(--text);font:400 15px/1.5 Arial,"Segoe UI",sans-serif;letter-spacing:normal}
body[data-site-shell] .desktop-nav{display:flex;align-items:center;gap:28px}
body[data-site-shell] .desktop-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);font:400 16px/1.5 Arial,"Segoe UI",sans-serif;text-decoration:none}
body[data-site-shell] .desktop-nav a:hover,body[data-site-shell] .desktop-nav a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:6px}
body[data-site-shell] main{width:100%;margin:0;min-width:0}
body[data-site-shell] .site-footer{display:block;width:100%;margin:32px 0 0;padding:24px 0 32px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
body[data-site-shell] .site-footer .signature{max-width:100%}
:root[data-theme] body[data-site-shell] h1{font-family:Arial,"Segoe UI",sans-serif;font-size:clamp(30px,3.2vw,42px);font-weight:500;line-height:1.25;letter-spacing:normal;word-spacing:normal}
:root[data-theme] body[data-site-shell] h2,:root[data-theme] body[data-site-shell] h3{font-family:Arial,"Segoe UI",sans-serif;letter-spacing:normal;word-spacing:normal}
@media(max-width:760px){body[data-site-shell] .shell{width:calc(100% - 32px)}body[data-site-shell] .site-header{display:flex;flex-wrap:wrap;min-height:0;padding:16px 0 8px;gap:8px}body[data-site-shell] .site-header .brand{width:100%;gap:12px}body[data-site-shell] .desktop-nav{width:100%;justify-content:space-between;gap:16px;margin:0}body[data-site-shell] .desktop-nav a{font-size:15px}body[data-site-shell] .site-footer{margin-top:24px;padding-top:20px}}
