:root { color-scheme: light; font-family: "Segoe UI", Arial, sans-serif; color: #192b3c; background: #f3f6fa; font-size: 16px; }
mark { background: #ffe58a; color: #192b3c; border-radius: 2px; }
mark.current-match { background: #ffb347; outline: 2px solid #774900; }
#match-controls { flex-wrap: wrap; margin: 20px 0; }
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { background: #122c40; color: white; }
.topbar-inner { max-width: 1060px; margin: auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 50%; padding: 3px; }
.brand-dot { color: #56d9b4; }
.brand-tagline { margin: 5px 0 0; font-size: .875rem; color: #d6e2ed; line-height: 1.5; }
a.brand { color: inherit; text-decoration: none; }
#back-to-search { color: #145e84; font-weight: 600; text-underline-offset: 4px; }
#case-title { overflow-wrap: anywhere; }
.edition { font-size: .875rem; color: #d6e2ed; }
main { max-width: 1060px; margin: 48px auto 80px; padding: 0 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .09em; color: #536779; margin: 0 0 10px; }
h1 { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -.04em; margin: 0; font-weight: 650; }
button { font: inherit; font-weight: 600; background: white; color: #183d52; border: 1px solid #a7b9c8; border-radius: 6px; min-height: 44px; padding: 10px 18px; cursor: pointer; flex-shrink: 0; }
button:hover { background: #e6eff5; }
button:focus-visible { outline: 3px solid #247da3; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
#status { color: #536779; margin: 24px 0 16px; font-size: .9375rem; }
article { background: white; border: 1px solid #d5dfe7; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px #122c4008; }
.notice { background: #fff6df; border-bottom: 1px solid #ead7a6; padding: 18px 32px; color: #66470b; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .9375rem; line-height: 1.6; }
.case-body { padding: 36px 32px 44px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.3; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.metadata { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 30px 0; padding-bottom: 30px; border-bottom: 1px solid #e0e6ec; }
dt { color: #596b7b; font-size: .875rem; margin-bottom: 8px; }
dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
h3 { font-size: 1rem; margin: 0 0 16px; }
#case-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.125rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; max-width: 76ch; }
.error { background: white; border: 1px solid #c97d73; border-left-width: 4px; padding: 28px; border-radius: 6px; }
.error h2 { font-family: inherit; font-size: 1.25rem; font-weight: 600; }
.error p { line-height: 1.6; margin-bottom: 0; }
#source-row { margin: 0 0 30px; }
#source-link { color: #145e84; text-underline-offset: 4px; line-height: 1.6; }
#source-link:focus-visible { outline: 3px solid #247da3; outline-offset: 4px; }
[hidden] { display: none !important; }
.saved-cases { margin-top: 30px; padding: 24px; background: white; border: 1px solid #d5dfe7; border-radius: 10px; }
.saved-cases h2 { font-family: inherit; font-size: 1.125rem; font-weight: 650; }
.search-label { display: block; margin: 20px 0 8px; font-size: .9375rem; font-weight: 600; }
.search-note, #guided-status { color: #536779; font-size: .9375rem; line-height: 1.6; }
#guided-fields { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
#guided-fields label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .9375rem; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#guided-fields select, #situation { width: 100%; min-height: 44px; font: inherit; color: #192b3c; background: white; border: 1px solid #a7b9c8; border-radius: 6px; padding: 10px; }
#situation { resize: vertical; }
#date-from, #date-to { width: 100%; min-height: 44px; font: inherit; padding: 10px; border: 1px solid #a7b9c8; border-radius: 6px; }
#guided-fields select:focus-visible, #situation:focus-visible { outline: 3px solid #247da3; outline-offset: 3px; }
.guided-results { list-style: none; padding: 0; }
.guided-results li { border-top: 1px solid #d5dfe7; padding: 20px 0; }
.guided-results a { font-weight: 600; color: #145e84; line-height: 1.5; }
.guided-results p { color: #536779; line-height: 1.6; }
.guided-results blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 3px solid #a7b9c8; line-height: 1.7; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 750px) { .filter-grid { grid-template-columns: 1fr; } }
.search-controls { display: flex; gap: 10px; align-items: center; }
#case-search { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: #192b3c; background: white; border: 1px solid #a7b9c8; border-radius: 6px; }
#case-search:focus-visible { outline: 3px solid #247da3; outline-offset: 3px; }
#case-search::placeholder { color: #596b7b; }
#list-status { color: #536779; font-size: .9375rem; line-height: 1.5; margin: 10px 0 16px; }
#case-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
#case-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; color: #192b3c; text-decoration: none; border: 1px solid #c6d4df; border-radius: 6px; overflow-wrap: anywhere; }
#case-list a span { font-size: .875rem; color: #536779; line-height: 1.5; }
#case-list a:hover { background: #f0f6fa; }
#case-list a[aria-current="page"] { border: 2px solid #247da3; padding: 17px; background: #edf6fb; }
#case-list a:focus-visible { outline: 3px solid #247da3; outline-offset: 3px; }
.site-footer { max-width: 1100px; margin: 36px auto 24px; padding: 0 28px; color: #536779; font-size: .875rem; text-align: center; }
@media (max-width: 650px) { main { margin-top: 30px; padding: 0 18px; } .topbar-inner { padding: 18px; } .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; } .metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-body { padding: 26px 22px; } .notice { padding: 18px 22px; } }
