:root{--canvas:#fdfcfb;--surface:#fff;--ink:#1a1a1a;--muted:#5e5e5e;--rule:#e3e2e1;--blue:#05c;--blue-dark:#003f99;--amber:#d97706;--red:#b42318;--green:#067647;--radius:6px;--font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-head:"Source Serif 4", Georgia, "Times New Roman", serif}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--canvas);color:var(--ink);font:16px/1.55 var(--font-body);margin:0}h1,h2,h3{font-family:var(--font-head);margin:0 0 .5rem;font-weight:600;line-height:1.2}h1{font-size:clamp(1.7rem,3.2vw,2.4rem)}h2{font-size:1.3rem}h3{font-size:1.05rem}p{margin:0 0 .75rem}a{color:var(--blue)}a:hover{color:var(--blue-dark)}:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.wrap{max-width:1180px;margin:0 auto;padding:0 1.25rem}.sr-only,.skip:not(:focus){clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip:focus{background:var(--surface);border:2px solid var(--blue);z-index:10;padding:.5rem .75rem;position:fixed;top:8px;left:8px}.muted{color:var(--muted)}.small{font-size:.85rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem}.lead{color:var(--muted);max-width:62ch;font-size:1.1rem}.num{text-align:right;font-variant-numeric:tabular-nums}.site-header{border-bottom:1px solid var(--rule);background:var(--surface);z-index:5;position:sticky;top:0}.header-row{justify-content:space-between;align-items:center;gap:1rem;min-height:56px;display:flex}.brand{font-family:var(--font-head);color:var(--ink);align-items:center;gap:.55rem;font-size:1.25rem;font-weight:700;text-decoration:none;display:inline-flex}.brand-mark{background:var(--blue);border-radius:5px;width:22px;height:22px;position:relative}.brand-mark:after{content:"";border-bottom:2px solid #fff;border-left:2px solid #fff;position:absolute;inset:5px 4px;transform:skewY(-25deg)scaleX(.9)}nav{gap:.25rem;display:flex}nav a{border-radius:var(--radius);color:var(--ink);padding:.45rem .8rem;font-weight:500;text-decoration:none}nav a:hover{background:#f3f2f1}nav a[aria-current=page]{color:var(--blue);background:#eaf1fb}main{min-height:70vh;padding-top:1.75rem;padding-bottom:3rem}.site-footer{border-top:1px solid var(--rule);color:var(--muted);padding:1.25rem 0;font-size:.85rem}.btn{font:inherit;background:var(--surface);color:var(--ink);border-radius:var(--radius);cursor:pointer;border:1px solid #c9c7c5;padding:.5rem .9rem;font-weight:500}.btn:hover:not(:disabled){border-color:var(--ink)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-primary:hover:not(:disabled){background:var(--blue-dark);border-color:var(--blue-dark)}.btn-quiet{border-style:dashed;margin-top:.75rem}.field{margin-bottom:.85rem;display:block}.field-label{margin-bottom:.25rem;font-size:.85rem;font-weight:600;display:block}input[type=search],input[type=text],input[type=password],select,textarea{width:100%;font:inherit;border-radius:var(--radius);background:var(--surface);color:var(--ink);border:1px solid #c9c7c5;padding:.55rem .7rem}textarea{resize:vertical}.hero{padding:1rem 0 2rem}.search{gap:.5rem;max-width:640px;margin-top:1.25rem;display:flex}.search input{flex:1}section[aria-labelledby]{margin-top:2.25rem}.cards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-top:.75rem;display:grid}.card{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);color:var(--ink);grid-template-columns:1fr auto;grid-template-areas:"topic topic""big spark""caption caption""detail detail""name name""period period";gap:.1rem .5rem;padding:1rem;text-decoration:none;display:grid}.card:hover{border-color:var(--blue)}.card-topic{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);grid-area:topic;font-size:.8rem;font-weight:600}.card-big{font-family:var(--font-head);grid-area:big;font-size:2rem;font-weight:600;line-height:1.2}.card-spark{color:var(--blue);grid-area:spark;align-self:center}.card-caption{color:var(--muted);grid-area:caption;font-size:.85rem}.card-detail{grid-area:detail;margin-top:.4rem;font-size:.9rem}.card-name{border-top:1px solid var(--rule);color:var(--muted);grid-area:name;margin-top:.5rem;padding-top:.5rem;font-size:.8rem}.card-period{color:var(--muted);grid-area:period;font-size:.8rem}.topics{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;display:grid}.topic ul{margin:0;padding:0;list-style:none}.topic li{border-bottom:1px solid var(--rule);flex-direction:column;padding:.5rem 0;display:flex}.trust{border-top:1px solid var(--rule);color:var(--muted);max-width:78ch;padding-top:1.25rem}.explore{grid-template-columns:minmax(280px,360px) 1fr;align-items:start;gap:1.5rem;display:grid}.explore-main{min-width:0}.explore-side{max-height:calc(100vh - 90px);padding-right:.25rem;position:sticky;top:72px;overflow:auto}.results{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.result{text-align:left;width:100%;font:inherit;background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);cursor:pointer;align-items:center;gap:.6rem;padding:.55rem .65rem;display:flex}.result:hover:not(:disabled){border-color:var(--blue)}.result.on{border-color:var(--blue);background:#eaf1fb}.result:disabled{opacity:.5;cursor:not-allowed}.dot{border:2px solid #c9c7c5;border-radius:50%;flex:none;width:12px;height:12px}.result-main{flex-direction:column;flex:1;min-width:0;display:flex}.result-title{font-weight:500;line-height:1.3}.result-meta{color:var(--muted);font-size:.78rem}.result-state{color:var(--blue);flex:none;font-size:.8rem;font-weight:600}.chips{flex-wrap:wrap;gap:.4rem;margin-bottom:.9rem;display:flex}.chip{border:1px solid var(--rule);background:var(--surface);font:inherit;border-radius:999px;align-items:center;gap:.4rem;padding:.25rem .6rem;font-size:.85rem;display:inline-flex}.chip button{cursor:pointer;color:var(--muted);background:0 0;border:0;font-size:1.1rem;line-height:1}.chip-button{cursor:pointer}.chip-button:hover{border-color:var(--blue)}.swatch{border-radius:2px;width:10px;height:10px;display:inline-block}.controls{flex-wrap:wrap;gap:.75rem;margin-bottom:.85rem;display:flex}.segmented{border-radius:var(--radius);background:var(--surface);border:1px solid #c9c7c5;display:inline-flex;overflow:hidden}.segmented button{font:inherit;border:0;border-right:1px solid var(--rule);cursor:pointer;background:0 0;padding:.4rem .75rem;font-size:.88rem}.segmented button:last-child{border-right:0}.segmented button[aria-pressed=true]{background:var(--blue);color:#fff}.panel{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);padding:.75rem}.legend{gap:.2rem;margin:.5rem 0 0;padding:0;font-size:.85rem;list-style:none;display:grid}.legend li{align-items:baseline;gap:.4rem;display:flex}.legend-official{color:var(--muted);font-size:.78rem;display:block}.actions{flex-wrap:wrap;gap:.5rem;margin:.9rem 0;display:flex}.empty{color:var(--muted);text-align:center;padding:2rem 1rem}.empty.big{border-radius:var(--radius);border:1px dashed #c9c7c5;padding:4rem 1rem}.notice{border-left:3px solid var(--amber);background:#fff6e8;padding:.6rem .8rem;font-size:.9rem}.error{border-left:3px solid var(--red);color:#7a1a12;background:#fdecea;padding:.6rem .8rem}.chart{width:100%;position:relative}.chart svg{touch-action:pan-y;display:block}.grid{stroke:var(--rule);stroke-width:1px}.tick{fill:var(--muted);font-size:11px}.cursor{stroke:#9a9896;stroke-dasharray:3 3}.tooltip{pointer-events:none;background:var(--surface);border-radius:var(--radius);border:1px solid #c9c7c5;padding:.45rem .6rem;font-size:.82rem;position:absolute;box-shadow:0 2px 8px #0000001a}.tip-row{align-items:center;gap:.4rem;display:flex}.tip-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.tip-val{font-variant-numeric:tabular-nums;font-weight:600}.table-wrap{border:1px solid var(--rule);border-radius:var(--radius);background:var(--surface);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--rule);vertical-align:top;padding:.5rem .75rem}thead th{white-space:nowrap;background:#f6f5f4;font-weight:600}tbody th{font-weight:500}th.num,td.num{text-align:right}tr:last-child>*{border-bottom:0}.badge{border-radius:999px;padding:.1rem .5rem;font-size:.8rem;font-weight:600;display:inline-block}.badge.ok{color:var(--green);background:#e3f4ea}.badge.bad{color:var(--red);background:#fdecea}.facts{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem 1.5rem;margin:0;display:grid}.facts dt{color:var(--muted);font-size:.8rem}.facts dd{margin:0;font-weight:600}.stack>*+*{margin-top:1.1rem}.narrow{max-width:760px}.settings{border:1px solid var(--rule);border-radius:var(--radius);background:var(--surface);padding:.6rem .85rem}.settings summary{cursor:pointer;font-weight:600}.answer-text{white-space:pre-wrap}@media (width<=860px){.explore{grid-template-columns:1fr}.explore-side{max-height:none;position:static}.explore-main{order:-1}.explore-side .results{border:1px solid var(--rule);border-radius:var(--radius);max-height:60vh;padding:.35rem;overflow-y:auto}.empty.big{padding:1.5rem 1rem}.header-row{flex-wrap:wrap;padding-top:.4rem;padding-bottom:.4rem}}@media print{.site-header,.site-footer,.explore-side,.actions,.controls,.skip{display:none!important}.explore{display:block}body{background:#fff}}
