:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--font-display:"Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;--font-body:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--bg:#f4f1ea;--surface:#fffdf8;--surface-2:#ece7dd;--text:#1e1c19;--muted:#6d675e;--border:#ddd6ca;--shadow:0 1px 2px #1e1c190f, 0 8px 24px -12px #1e1c192e;--water:#c9dae4;--land:#ede7da;--land-stroke:#b9ae9c;--context:#e0d9cb;--accent:#c64217;--accent-ink:#fff;--accent-soft:#fae3d8;--success:#2f7a4b;--success-soft:#dcefe2;--warn:#b7791f;--warn-soft:#f7ebd2;--danger:#b3261e;--danger-soft:#f6dcda;--fog:#7d8b95;--gold:#c7952b;--bay:#2a6f8e;--redwood:#8b3a2a;--poppy:#e07f22;--sunset:#c9557a;--lupine:#6657b2;--sand:#a8906a;--radius:14px;--radius-sm:9px;--gutter:16px;--maxw:1040px}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#141618;--surface:#1d2023;--surface-2:#262a2e;--text:#ecebe6;--muted:#9b968d;--border:#30353a;--shadow:0 1px 2px #0000004d, 0 10px 30px -14px #0009;--water:#16222b;--land:#343a40;--land-stroke:#5a626b;--context:#272c31;--accent:#ff6a3c;--accent-ink:#1a0d08;--accent-soft:#3a2219;--success:#5cc287;--success-soft:#1d3327;--warn:#e0a84a;--warn-soft:#3a2e17;--danger:#ff7b73;--danger-soft:#3d1f1d;--fog:#94a3ad;--gold:#e0b04b;--bay:#5aa3c4;--redwood:#c96a55;--poppy:#f0984a;--sunset:#e07aa0;--lupine:#9a8de0;--sand:#c8b08a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#141618;--surface:#1d2023;--surface-2:#262a2e;--text:#ecebe6;--muted:#9b968d;--border:#30353a;--shadow:0 1px 2px #0000004d, 0 10px 30px -14px #0009;--water:#1a2730;--land:#2a2e32;--land-stroke:#4a5058;--context:#222628;--accent:#ff6a3c;--accent-ink:#1a0d08;--accent-soft:#3a2219;--success:#5cc287;--success-soft:#1d3327;--warn:#e0a84a;--warn-soft:#3a2e17;--danger:#ff7b73;--danger-soft:#3d1f1d;--fog:#94a3ad;--gold:#e0b04b;--bay:#5aa3c4;--redwood:#c96a55;--poppy:#f0984a;--sunset:#e07aa0;--lupine:#9a8de0;--sand:#c8b08a}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font-family:var(--font-body);-webkit-font-smoothing:antialiased;margin:0;font-size:16px;line-height:1.5;overflow-x:hidden}h1,h2,h3,h4{font-family:var(--font-display);letter-spacing:-.01em;margin:0;font-weight:500;line-height:1.15}h1{font-size:clamp(1.7rem,2.4vw + 1rem,2.5rem)}h2{font-size:clamp(1.3rem,1.2vw + 1rem,1.7rem)}h3{font-size:1.15rem}p{margin:0 0 .75em}a{color:var(--bay);text-underline-offset:2px;text-decoration-thickness:1px}button{font:inherit;color:inherit}small,.muted{color:var(--muted)}.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:20;background:color-mix(in srgb, var(--bg) 86%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);position:sticky;top:0}.topbar-inner{max-width:var(--maxw);padding:10px var(--gutter);align-items:center;gap:14px;margin:0 auto;display:flex}.brand{font-family:var(--font-display);color:var(--text);white-space:nowrap;flex:none;align-items:center;gap:10px;font-size:1.25rem;text-decoration:none;display:flex}.brand-mark{background:var(--accent);border-radius:50%;width:26px;height:26px;display:inline-block;position:relative;overflow:hidden}.brand-mark:after{content:"";background:var(--bay);height:42%;position:absolute;bottom:0;left:0;right:0}.nav{gap:4px;margin-left:auto;display:flex}.nav a{color:var(--muted);border-radius:999px;padding:6px 10px;font-size:.92rem;text-decoration:none}.nav a[aria-current=page]{color:var(--text);background:var(--surface-2)}.nav a:hover{color:var(--text)}.main{width:100%;max-width:var(--maxw);padding:22px var(--gutter) 60px;flex:1;margin:0 auto}.footer{border-top:1px solid var(--border);color:var(--muted);font-size:.85rem}.footer-inner{max-width:var(--maxw);padding:16px var(--gutter);flex-wrap:wrap;gap:8px 18px;margin:0 auto;display:flex}.footer a{color:var(--muted)}@media (max-width:640px){.topbar-inner{gap:8px;padding:8px 10px}.nav{gap:0;margin-left:auto}.nav a{padding:6px 7px;font-size:.82rem}}@media (max-width:400px){.brand-text{display:none}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-size:.97rem;font-weight:500;text-decoration:none;transition:transform 60ms,background .15s,border-color .15s;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);color:var(--accent-ink);border-color:#0000}.btn-primary:hover{background:color-mix(in srgb, var(--accent) 88%, black)}.btn-quiet{color:var(--muted);background:0 0;border-color:#0000}.btn-quiet:hover{color:var(--text);background:var(--surface-2)}.btn-lg{padding:14px 24px;font-size:1.05rem}.btn-block{width:100%}.chip{background:var(--surface-2);color:var(--muted);border-radius:999px;align-items:center;gap:6px;padding:3px 9px;font-size:.8rem;display:inline-flex}.chip-accent{background:var(--accent-soft);color:var(--accent)}.chip-outline{color:var(--accent);border:1px solid var(--accent);background:0 0}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;display:grid}.stack{flex-direction:column;gap:12px;display:flex}.section{margin-top:34px}.section-title{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:.72rem;font-weight:600}.hr{border:0;border-top:1px solid var(--border);margin:20px 0}.kbd{font-family:var(--font-mono);border:1px solid var(--border);color:var(--muted);border-bottom-width:2px;border-radius:5px;padding:0 5px;font-size:.75rem}.ring{flex:none;width:52px;height:52px;position:relative}.ring svg{transform:rotate(-90deg)}.ring-label{font-variant-numeric:tabular-nums;place-items:center;font-size:.78rem;font-weight:600;display:grid;position:absolute;inset:0}.deck-card{color:inherit;align-items:flex-start;gap:14px;text-decoration:none;display:flex;position:relative;overflow:hidden}.deck-card:before{content:"";background:var(--deck-accent,var(--accent));width:5px;position:absolute;top:0;bottom:0;left:0}.deck-card h3{margin-bottom:2px}.deck-meta{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.tierbar{gap:3px;margin-top:10px;display:flex}.tierbar span{background:var(--surface-2);border-radius:3px;flex:1;height:5px;position:relative;overflow:hidden}.tierbar span i{background:var(--deck-accent,var(--accent));position:absolute;top:0;bottom:0;left:0}.tierbar span.locked{opacity:.45}.hero{grid-template-columns:1.2fr 1fr;align-items:stretch;gap:20px;display:grid}@media (max-width:760px){.hero{grid-template-columns:1fr}}.hero-cta{flex-direction:column;justify-content:space-between;gap:18px;display:flex}.stat{flex-direction:column;gap:2px;display:flex}.stat b{font-family:var(--font-display);font-size:1.6rem;font-weight:500;line-height:1}.stats{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.session-head{align-items:center;gap:12px;margin-bottom:14px;display:flex}.progressbar{background:var(--surface-2);border-radius:3px;flex:1;height:6px;overflow:hidden}.progressbar i{background:var(--accent);height:100%;transition:width .25s;display:block}.question{gap:16px;display:grid}.prompt{font-family:var(--font-display);font-size:clamp(1.25rem,1vw + 1rem,1.6rem);line-height:1.25}.prompt .target{color:var(--accent)}.options{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;display:grid}.option{text-align:left;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;align-items:center;gap:12px;min-height:54px;padding:14px 16px;transition:border-color .12s,background .12s;display:flex}.option:hover{border-color:var(--text)}.option:disabled{cursor:default}.option .key{background:var(--surface-2);width:24px;height:24px;color:var(--muted);font-size:.78rem;font-family:var(--font-mono);border-radius:6px;flex:none;place-items:center;display:grid}.option.correct{border-color:var(--success);background:var(--success-soft)}.option.wrong{border-color:var(--danger);background:var(--danger-soft)}.option.dim{opacity:.55}.answer-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.feedback{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);gap:10px;padding:16px 18px;display:grid}.feedback.ok{border-color:color-mix(in srgb, var(--success) 50%, var(--border));background:color-mix(in srgb, var(--success-soft) 60%, var(--surface))}.feedback.bad{border-color:color-mix(in srgb, var(--danger) 50%, var(--border));background:color-mix(in srgb, var(--danger-soft) 60%, var(--surface))}.feedback.close{border-color:color-mix(in srgb, var(--warn) 50%, var(--border));background:color-mix(in srgb, var(--warn-soft) 60%, var(--surface))}.feedback-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.feedback-head b{font-family:var(--font-display);font-size:1.2rem;font-weight:500}.verdict{font-weight:600}.feedback.ok .verdict{color:var(--success)}.feedback.bad .verdict{color:var(--danger)}.feedback.close .verdict{color:var(--warn)}.feedback .explanation{font-size:1rem}.feedback .sources{color:var(--muted);font-size:.85rem}.feedback .sources a{color:var(--muted)}.nextdue{color:var(--muted);font-size:.85rem}.map-wrap{border-radius:var(--radius);border:1px solid var(--border);background:var(--water);touch-action:none;-webkit-user-select:none;user-select:none;position:relative;overflow:hidden}.map-wrap svg{width:100%;height:auto;max-height:min(62vh,640px);display:block}.map-wrap.tappable svg{cursor:crosshair}.map-hud{z-index:2;gap:6px;display:flex;position:absolute;bottom:10px;left:10px}.map-hud button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;place-items:center;width:40px;height:40px;font-size:1.1rem;display:grid}.map-caption{text-overflow:ellipsis;white-space:nowrap;max-width:60%;color:var(--muted);background:color-mix(in srgb, var(--surface) 80%, transparent);border-radius:999px;padding:2px 8px;font-size:.72rem;position:absolute;bottom:10px;right:10px;overflow:hidden}.map-legend{max-width:70%;color:var(--text);background:color-mix(in srgb, var(--surface) 85%, transparent);pointer-events:none;border-radius:999px;flex-wrap:wrap;justify-content:flex-end;gap:4px 10px;padding:3px 9px;font-size:.72rem;display:flex;position:absolute;top:10px;right:10px}.map-legend span{align-items:center;gap:5px;display:inline-flex}.swatch{border-radius:2px;flex:none;width:14px;height:10px;display:inline-block}.swatch-creek,.swatch-river{border-top:2px solid var(--bay);border-radius:0;height:0}.swatch-river{border-top-width:1.5px}.swatch-historic-water{background:repeating-linear-gradient(45deg, color-mix(in srgb, var(--bay) 50%, transparent) 0 1.5px, color-mix(in srgb, var(--water) 55%, var(--land)) 1.5px 5px);border:1px dashed var(--bay)}.swatch-marsh{background:repeating-linear-gradient(-45deg, color-mix(in srgb, var(--success) 50%, transparent) 0 1px, color-mix(in srgb, var(--success) 18%, var(--land)) 1px 5px)}.swatch-contour{border-top:1px dotted var(--land-stroke);border-radius:0;height:0}.swatch-relief{background:color-mix(in srgb, var(--land-stroke) 55%, var(--land))}.swatch-lake{background:var(--water);border:1px solid var(--bay)}.layer{pointer-events:none;vector-effect:non-scaling-stroke}.layer-creek{fill:none;stroke:var(--bay);stroke-width:1.6px;stroke-opacity:.9;stroke-linecap:round;stroke-linejoin:round}.layer-river{fill:none;stroke:var(--bay);stroke-width:1.1px;stroke-opacity:.85;stroke-linecap:round;stroke-linejoin:round}.layer-historic-water{stroke:var(--bay);stroke-width:.8px;stroke-dasharray:3 2;stroke-opacity:.8}.layer-historic-water.line{fill:none;stroke-width:1.2px;stroke-dasharray:4 3}.layer-marsh{stroke:var(--success);stroke-width:.5px;stroke-opacity:.6}.layer-contour{fill:none;stroke:var(--land-stroke);stroke-width:.6px;stroke-opacity:.7}.layer-contour.index{stroke-width:.9px}.layer-relief{fill:color-mix(in srgb, var(--land-stroke) 55%, var(--land));fill-opacity:.85;stroke:none}.layer-lake{fill:var(--water);stroke:var(--bay);stroke-width:.6px;stroke-opacity:.7}.map-hud .layers-btn{align-items:center;gap:6px;width:auto;padding:0 10px;font-size:.95rem;display:inline-flex}.map-hud .layers-btn[aria-expanded=true]{border-color:var(--text)}.layers-text{font-size:.85rem}@media (max-width:480px){.layers-text{display:none}.map-hud .layers-btn{width:40px;padding:0}}.layer-menu{border:1px solid var(--border);background:var(--surface);z-index:3;border-radius:10px;gap:4px;min-width:210px;padding:6px;display:grid;position:absolute;bottom:46px;left:0;box-shadow:0 6px 24px #0000001f}.layer-menu button{white-space:nowrap;width:auto;height:36px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:8px;padding:0 10px;font-size:.9rem;display:flex}.layer-menu button[aria-pressed=true]{background:var(--surface-2);border-color:var(--border)}.layer-menu button[aria-pressed=true]:after{content:"✓";color:var(--success);margin-left:auto}.map-label{fill:var(--muted);pointer-events:none;font-size:10px;font-family:var(--font-body)}.feature{fill:var(--land);stroke:var(--land-stroke);stroke-width:.6px;vector-effect:non-scaling-stroke;transition:fill .2s}.feature.context{fill:var(--context);stroke:var(--land-stroke)}.feature.outline{fill:none;stroke:var(--land-stroke);stroke-width:1.1px}.feature.target{fill:var(--accent);fill-opacity:.85;stroke:var(--accent)}.feature.chosen-wrong{fill:var(--danger);fill-opacity:.55}.feature.learned{fill:var(--success)}.marker{pointer-events:none}.tolerance{fill:var(--accent);fill-opacity:.12;stroke:var(--accent);stroke-dasharray:4 3;vector-effect:non-scaling-stroke}.tap-line{stroke:var(--danger);stroke-width:1.5px;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}.pulse{transform-origin:50%;transform-box:fill-box;animation:1.6s ease-out infinite pulse}@keyframes pulse{0%{opacity:.9;transform:scale(.6)}to{opacity:0;transform:scale(2.2)}}.timeline{gap:6px;display:grid}.tl-anchor{border-radius:var(--radius-sm);background:var(--surface-2);align-items:center;gap:12px;padding:10px 14px;display:flex}.tl-anchor .year{font-family:var(--font-mono);color:var(--muted);min-width:48px}.tl-slot{border:1.5px dashed var(--border);border-radius:var(--radius-sm);height:40px;color:var(--muted);cursor:pointer;background:0 0;place-items:center;width:100%;font-size:.85rem;display:grid}.tl-slot:hover{border-color:var(--accent);color:var(--accent)}.tl-slot.correct{border-style:solid;border-color:var(--success);color:var(--success);background:var(--success-soft)}.tl-slot.wrong{border-style:solid;border-color:var(--danger);color:var(--danger);background:var(--danger-soft)}.recall-answer{font-family:var(--font-display);padding:10px 0;font-size:1.5rem}.rate{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.rate button{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;gap:2px;padding:12px 8px;display:grid}.rate button small{font-size:.72rem}.rate .r1:hover{border-color:var(--danger)}.rate .r2:hover{border-color:var(--warn)}.rate .r3:hover{border-color:var(--success)}.rate .r4:hover{border-color:var(--bay)}.typein{gap:8px;display:flex}.typein input{font:inherit;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);flex:1;min-width:0;padding:12px 14px}.list{gap:8px;display:grid}.item-row{border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:10px 12px;display:grid}.item-row.locked{opacity:.6}.dot{background:var(--surface-2);border:1px solid var(--border);border-radius:50%;width:10px;height:10px}.dot.learning{background:var(--warn);border-color:#0000}.dot.learned{background:var(--success);border-color:#0000}.dot.mastered{background:var(--bay);border-color:#0000}.tier-tag{color:var(--muted);font-size:.72rem;font-family:var(--font-mono)}details.fact{border-bottom:1px solid var(--border);content-visibility:auto;contain-intrinsic-size:0 48px;padding:10px 0}details.fact summary{cursor:pointer;align-items:baseline;gap:10px;list-style:none;display:flex}details.fact summary::-webkit-details-marker{display:none}details.fact summary:before{content:"+";color:var(--muted);font-family:var(--font-mono);flex:none;width:14px}details[open].fact summary:before{content:"−"}details.fact .body{color:var(--text);padding:8px 0 4px 24px}details.fact .body ul{margin:6px 0 0;padding-left:18px}.search{width:100%;font:inherit;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);padding:12px 14px}select,input[type=number]{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:8px 10px}.field{gap:4px;display:grid}.field label{font-weight:500}.field small{color:var(--muted)}.toggle{gap:4px;display:flex}.toggle button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;padding:6px 12px}.toggle button[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.fade-in{animation:.25s fade}@keyframes fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.prose{max-width:68ch}.prose h2{margin-top:28px;margin-bottom:8px}.prose li{margin-bottom:6px}.notice{border-radius:var(--radius-sm);background:var(--warn-soft);color:var(--text);border:1px solid color-mix(in srgb, var(--warn) 40%, var(--border));padding:10px 14px;font-size:.9rem}.legend{color:var(--muted);flex-wrap:wrap;gap:14px;font-size:.82rem;display:flex}.legend i{vertical-align:-1px;border-radius:50%;width:10px;height:10px;margin-right:5px;display:inline-block}@media (prefers-reduced-motion:reduce){.pulse,.fade-in,.progressbar i,.btn{transition:none!important;animation:none!important}}.map-wrap svg:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.crosshair{pointer-events:none}.crosshair line{stroke:var(--text);stroke-width:1px;vector-effect:non-scaling-stroke}.map-help{color:var(--muted);background:color-mix(in srgb, var(--surface) 85%, transparent);border-radius:999px;padding:2px 8px;font-size:.72rem;position:absolute;top:10px;left:10px}@media (min-width:900px){.place-question{grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);align-items:start}.place-head{grid-column:1/-1}.place-map{grid-column:1}.place-side{grid-column:2;gap:14px;display:grid}.place-side .options{grid-template-columns:1fr}.place-question .map-wrap svg{max-height:min(70vh,720px)}}.place-side{gap:14px;display:grid}.kbd-on-accent{color:inherit;border-color:color-mix(in srgb, var(--accent-ink) 45%, transparent);background:color-mix(in srgb, var(--accent-ink) 12%, transparent)}@media (max-width:640px){.feedback-actions{background:inherit;border-top:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);margin:0 -18px -16px;padding:10px 18px 12px;position:sticky;bottom:0}}details.deck-group{margin-top:24px}details.deck-group>summary{cursor:pointer;list-style:none}details.deck-group>summary::-webkit-details-marker{display:none}details.deck-group>summary h2:before{content:"▸ ";color:var(--muted);font-size:.8em}details.deck-group[open]>summary h2:before{content:"▾ "}.prompt:focus{outline:none}
