.state-selector{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.state-selector label{font-size:11px;color:var(--muted);font-weight:700}.state-selector select{font:inherit;font-size:13px;min-height:43px;max-width:390px;width:100%;min-width:0;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:8px 12px}.scope-toolbar .segmented{flex:none}.scope-toolbar{flex-wrap:wrap}.scope-toolbar .offline-note{margin-left:auto}.state-directory{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:18px}.state-directory-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.state-directory h2{font-size:22px;margin:0 0 6px}.state-directory p{font-size:13px;color:var(--muted)}.state-directory input{max-width:600px;margin:12px 0}.state-directory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.state-directory-grid button{text-align:left;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:13px;min-height:95px}.state-directory-grid b,.state-directory-grid span,.state-directory-grid small{display:block}.state-directory-grid b{font-size:14px}.state-directory-grid span{font-size:12px;color:var(--muted);margin:4px 0}.state-directory-grid small{font-size:11px;line-height:1.6}.state-directory-grid button[aria-pressed=true]{border-color:var(--teal);box-shadow:inset 3px 0 var(--teal)}.state-directory-status{font-size:12px;color:var(--muted)}.state-study{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:24px;margin:0 0 22px;scroll-margin-top:20px}.state-study-heading{display:flex;justify-content:space-between;align-items:start;gap:24px}.state-study-heading h2{font-size:32px;margin:5px 0 7px}.state-study-heading h2>span{font-size:20px;color:var(--muted);margin-left:9px;display:inline-block}.state-study-heading p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.state-study-badges{display:flex;flex-wrap:wrap;gap:8px;max-width:550px;justify-content:flex-end}.state-study-badges>span{font-size:11px;border:1px solid var(--line);padding:9px 13px;border-radius:7px;line-height:1.7;color:var(--muted)}.state-study-badges b{display:block;font-size:14px;color:var(--ink)}.state-capital-hi{font-size:13px;margin:8px 0 20px;color:var(--muted)}.state-mindmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.state-mindmap button,.state-mindmap a{display:flex;gap:12px;align-items:center;text-align:left;padding:16px 12px;border:1px solid var(--line);border-left:3px solid var(--note-accent);background:var(--bg);color:var(--ink);border-radius:7px;min-width:0;text-decoration:none}.state-mindmap b,.state-mindmap small{display:block}.state-mindmap b{font-size:13px;line-height:1.5}.state-mindmap small{font-size:11px;margin-top:4px;color:var(--muted)}.state-topic-symbol{font-size:24px;color:var(--note-accent);flex:none}.state-mindmap em{font-style:normal;margin-left:auto;color:var(--muted);font-size:12px}.state-reading-tools{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:15px;padding:14px 0 20px}.state-reading-tools>div{display:flex;gap:7px;flex-wrap:wrap}.state-notes-search{display:grid;gap:7px;flex:1;max-width:580px;min-width:190px;font-size:11px;font-weight:700;color:var(--muted)}.state-notes-search input{font:inherit;font-size:13px;font-weight:400;min-height:40px;padding:10px 12px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:7px}.state-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.state-note-section{border:1px solid var(--line);border-top:3px solid var(--note-accent);border-radius:8px;background:var(--bg);overflow:hidden;scroll-margin-top:20px}.state-note-section>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:16px;font-weight:700;min-height:76px;list-style:none;color:var(--ink)}.state-note-section>summary::-webkit-details-marker{display:none}.state-note-section>summary>span:first-child{font-size:25px;color:var(--note-accent)}.state-note-section>summary>span:nth-child(2){flex:1;min-width:0;font-size:15px}.state-note-section>summary small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:var(--muted)}.state-note-section>summary em{font-size:11px;font-weight:400;color:var(--muted);font-style:normal}.state-note-section>summary:after{content:'+';font-size:20px;min-width:18px;text-align:center;color:var(--muted)}.state-note-section[open]>summary:after{content:'−'}.state-note-content{border-top:1px solid var(--line);padding:0 16px 14px}.state-note-row{padding:15px 0;border-bottom:1px solid var(--line)}.state-note-row:last-of-type{border-bottom:0}.state-note-row h4{font-size:14px;margin:0 0 8px;color:var(--ink);line-height:1.6}.state-note-row h4>span{display:block;font-size:12px;font-weight:500;color:var(--muted)}.state-note-row p{font-size:13px;line-height:1.85;margin:6px 0;color:var(--ink)}.state-note-row .state-note-hi{font-size:13px;color:var(--muted);line-height:1.9}.note-map-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.note-map-links button{font:inherit;font-size:11px;min-height:32px;text-align:left;line-height:1.5;padding:6px 10px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--teal)}.state-note-date{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0}.state-section-source{font-size:10px;line-height:1.8;overflow-wrap:anywhere;margin:14px 0 0}.state-section-source a,.state-study-footer a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}.state-study-footer{font-size:11px;color:var(--muted);line-height:1.8;margin:18px 0 0}.state-study button:focus-visible,.state-directory button:focus-visible,.state-study summary:focus-visible,.state-study a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.state-directory button[hidden],.state-note-row[hidden],.state-note-section[hidden]{display:none!important}.state-study [hidden],.state-study[hidden],.state-directory[hidden],.state-selector[hidden]{display:none!important}.state-static-nav{display:flex;flex-wrap:wrap;gap:12px 22px;margin:16px 0 22px;font-size:13px}.state-static-main{max-width:1300px;margin:0 auto}.state-static-main .state-study{margin-top:16px}.state-static-cta{display:inline-flex;margin:14px 0 0;padding:11px 16px;border:1px solid var(--teal);border-radius:7px;color:var(--teal);font-size:13px}.state-static-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.state-static-index a{padding:15px;border:1px solid var(--line);border-radius:7px;font-size:14px}.state-static-index a span{display:block;font-size:12px;color:var(--muted);margin-top:6px}
@media(max-width:1100px){.state-study-heading{display:block}.state-study-badges{justify-content:flex-start;max-width:none;margin-top:14px}.state-mindmap{grid-template-columns:repeat(2,minmax(0,1fr))}.state-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.scope-toolbar .segmented{width:100%}.state-selector{width:100%;flex-basis:100%;gap:8px}.state-selector select{max-width:none;font-size:12px;min-height:44px}.state-selector label{white-space:nowrap;font-size:10px}.state-directory{padding:15px 10px}.state-directory h2{font-size:20px}.state-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.state-directory-grid button{padding:11px 9px}.state-directory-grid b{font-size:12px}.state-directory-grid span{font-size:11px}.state-directory-grid small{font-size:10px}.state-study{padding:16px 11px;border-radius:8px}.state-study-heading h2{font-size:26px}.state-study-heading h2>span{font-size:17px;display:block;margin:6px 0 0}.state-study-heading p{font-size:12px}.state-study-badges{gap:6px}.state-study-badges>span{font-size:10px;padding:7px 9px}.state-study-badges b{font-size:12px}.state-mindmap{gap:7px}.state-mindmap button,.state-mindmap a{padding:11px 8px;gap:7px}.state-mindmap b{font-size:11px}.state-mindmap small{font-size:10px}.state-topic-symbol{font-size:20px}.state-mindmap em{font-size:10px}.state-notes-grid{grid-template-columns:1fr;gap:12px}.state-reading-tools{display:block}.state-notes-search{max-width:none}.state-reading-tools>div{margin-top:12px}.state-reading-tools button{font-size:11px;min-height:37px}.state-note-section>summary{padding:14px 12px;min-height:72px}.state-note-section>summary>span:nth-child(2){font-size:14px}.state-note-content{padding:0 12px 12px}.state-note-row h4{font-size:14px}.state-note-row p,.state-note-row .state-note-hi{font-size:13px}.state-static-index{grid-template-columns:1fr}.state-static-nav{font-size:12px;gap:10px 16px}}
@media print{.state-reading-tools,.state-mindmap,.note-map-links,.top-actions{display:none!important}.state-notes-grid{display:block}.state-note-section{break-inside:avoid;margin-bottom:14px}.state-note-content{display:block!important}.state-study{border:0;padding:0}.state-section-source{font-size:9px}}

body[data-mode=learn] .state-boundary{pointer-events:visiblePainted;cursor:pointer}body[data-mode=learn] .state-boundary:hover{stroke:var(--selected);stroke-width:2}
