:root { --ink:#111e36; --muted:#4c5a6d; --line:#c7d1db; --teal:#2355d6; --pale:#edf4fc; --amber:#fff5df; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:auto; }
body { margin:0; background:#fff; color:var(--ink); font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:#2355d6; text-underline-offset:3px; overflow-wrap:anywhere; }
header { padding:12px 3%; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.brand { font:bold 28px/1.2 Georgia,serif; text-decoration:none; color:var(--ink); }
nav { display:flex; gap:32px; }
nav a { display:flex; align-items:center; min-height:44px; font-weight:600; color:var(--ink); text-decoration:none; }
main { max-width:1240px; padding:24px 3% 32px; margin:auto; }
h1,h2,legend { font-family:Georgia,serif; font-weight:700; line-height:1.18; }
h1 { font-size:clamp(30px,3.4vw,40px); margin:0 0 6px; letter-spacing:-1.4px; }
h2 { font-size:28px; margin:0; }
h3 { font-size:19px; line-height:1.35; margin:18px 0 8px; }
p { margin:10px 0; }
.lead { font-size:18px; margin:0 0 24px; }
.principle { padding:12px 18px; border-radius:7px; background:var(--pale); margin:0 0 28px; }
.workspace { display:grid; grid-template-columns:minmax(280px,1fr) minmax(0,1.92fr); gap:48px; }
.workspace:has(#choices[hidden]) { display:block; }
fieldset { padding:0 0 22px; margin:0 0 22px; border:0; border-bottom:1px solid var(--line); min-width:0; }
legend { font-size:22px; padding:0; margin:0 0 12px; }
.choice { display:flex; gap:12px; align-items:flex-start; min-height:44px; padding:8px 5px; cursor:pointer; border-radius:4px; }
.choice:hover { background:#edf4fc; }
.choice:has(input:checked) { background:#edf4fc; }
input { width:21px; height:21px; flex-shrink:0; margin:3px 0 0; accent-color:var(--teal); }
.hint,.privacy,.boundary { color:var(--muted); font-size:15px; }
.hint { margin:8px 0 12px; }
.result-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.actions { display:flex; gap:10px; }
button { border:1px solid var(--teal); padding:10px 17px; min-height:44px; color:#fff; border-radius:6px; background:var(--teal); font:600 16px/1.4 system-ui,sans-serif; cursor:pointer; }
button:hover { background:#1946ba; }
button.secondary { color:var(--teal); background:#fff; }
button.secondary:hover { background:#edf4fc; }
.notice { padding:14px 18px; background:var(--amber); border:1px solid #c88a13; border-radius:7px; }
.notice h3 { margin:0 0 8px; }
.empty { padding:24px; border:1px dashed var(--line); border-radius:7px; }
.empty h3 { margin:0; }
.bucket h3.bucket-title { font:700 24px/1.3 Georgia,serif; margin:22px 0 12px; }
.route { border:1px solid #bfcbd3; border-radius:8px; padding:18px 20px; margin:14px 0; overflow-wrap:anywhere; }
.route h3 { margin:0 0 8px; }
.route[data-bucket="unresolvedRoutes"] { border-left:4px solid #bb7e12; background:#fffcf5; }
.route[data-bucket="outsideScopeRoutes"] { border-left:4px solid #687786; }
.route-status { color:var(--muted); font-size:14px; margin:0 0 8px; font-weight:600; }
.review { font-size:15px; margin:8px 0; }
details { border:1px solid #aebdca; border-radius:6px; margin:14px 0 0; background:#fbfcfd; }
summary { padding:11px 14px; font-weight:650; cursor:pointer; min-height:44px; }
.evidence { padding:0 16px 16px; font-size:15px; }
.claim + .claim { border-top:1px solid var(--line); margin-top:16px; padding-top:8px; }
.limit { color:var(--muted); }
#source-guide { margin-top:26px; }
#source-guide li { margin:10px 0; }
.privacy { margin:12px 0 0; }
footer { padding:18px 3%; border-top:1px solid var(--line); font-size:14px; }
.skip { position:absolute; top:-100px; left:10px; padding:12px; background:white; z-index:10; }
.skip:focus { top:8px; }
:focus-visible { outline:3px solid #094d9b; outline-offset:4px; }
#results:focus { outline:3px solid #094d9b; outline-offset:5px; }
.results-jump { display:inline-flex; min-height:44px; align-items:center; }
.print-summary:empty { display:none; }
@media(max-width:850px) {
 .workspace { grid-template-columns:1fr; gap:10px; }
 header { padding:14px 5%; gap:12px; flex-wrap:wrap; }
 .brand { font-size:28px; }
 nav { gap:20px; }
 main { padding:24px 5%; }
 .lead { font-size:17px; }
 h1 { letter-spacing:-.7px; }
 h2 { font-size:28px; }
 legend { font-size:22px; }
 .route { padding:16px; }
 .result-header { align-items:flex-start; }
}
@media print {
 #results:focus, :focus-visible { outline:none !important; }
 body { font-size:11pt; color:#000; }
 header,footer,#choices,.actions,.results-jump,.skip,.privacy,.review { display:none !important; }
 main { padding:0; max-width:none; }
 h1 { font-size:24pt; }
 h2 { font-size:18pt; }
 .lead { font-size:12pt; }
 .workspace { display:block; }
 .principle { border:1px solid #888; background:#fff; }
 .route { break-inside:auto; border-color:#777; padding:12px; }
 h3,summary { break-after:avoid; }
 details, details::details-content { display:block !important; content-visibility:visible !important; height:auto !important; }
 details > :not(summary) { display:block !important; }
 details { background:#fff; }
 .evidence { font-size:10pt; }
 a { color:#000; }
 .claim a::after,#source-guide a::after { content:" (" attr(href) ")"; overflow-wrap:anywhere; }
 .claim { break-inside:avoid; }
 #source-guide { break-before:page; }
 .hint,.privacy,.boundary,.route-status,.limit { color:#222; }
}
