main[role="main"]{max-width:76rem}
.history-app{color:#1f2937;max-width:1180px;margin:auto;line-height:1.65;overflow-wrap:anywhere}.history-app *{box-sizing:border-box}.history-app [hidden]{display:none!important}.history-app a{color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}.history-breadcrumb{font-size:.8rem;margin:8px 0 20px}.history-hero{background:#102b5c;color:white;border-radius:18px;padding:30px 22px;display:grid;gap:26px}.history-eyebrow{font-size:.7rem;letter-spacing:.13em;font-weight:750;color:#2563eb;margin:0 0 10px}.history-hero .history-eyebrow{color:#bae6fd}.history-hero h1{font-size:clamp(2rem,5vw,3.6rem);font-weight:800;line-height:1.12;margin:14px 0 22px;letter-spacing:-.035em}.history-hero p:not(.history-eyebrow){color:#dbeafe;max-width:650px}.history-hero-links{display:flex;flex-direction:column;gap:12px;margin-top:25px}.history-hero-links a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #6089bb;border-radius:8px;padding:10px 16px;color:white;font-weight:650;text-align:center}.history-hero-links a:first-child{background:#bae6fd;color:#102b5c;border-color:#bae6fd;text-decoration:none}.history-era{border-top:1px solid #46638d;padding-top:20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.history-era>span{font-size:1.5rem;font-weight:700;letter-spacing:-.04em}.history-era>div{height:1px;flex:1;background:#60a5fa}.history-era>p{width:100%;font-size:.8rem}.history-editorial{border:1px solid #bfdbfe;border-radius:12px;padding:16px;background:#eff6ff;font-size:.85rem;margin:22px 0}.history-editorial strong{display:block;margin-bottom:4px}.history-filters{display:grid;gap:14px;border:1px solid #dbe3ef;border-radius:12px;padding:18px;margin:24px 0 40px;background:#f8fafc}.history-app label{display:block;font-size:.8rem;font-weight:700;margin-bottom:7px}.history-app input,.history-app select{min-height:48px;max-width:100%;width:100%;min-width:0;font-size:16px;padding:11px;border:1px solid #94a3b8;border-radius:7px;background:white;color:#1f2937}.history-app button{font-size:.9rem;border:1px solid #bfdbfe;border-radius:7px;min-height:44px;padding:9px 14px;cursor:pointer;background:white;color:#1e40af;font-weight:650}.history-filters>button{background:#2563eb;color:white;border-color:#2563eb;min-height:48px}.history-filters>a{min-height:44px;display:flex;align-items:center;justify-content:center}.history-app h2{font-size:1.6rem;line-height:1.3;font-weight:750;margin:12px 0 18px;letter-spacing:-.025em}.history-app h3{font-size:1.1rem;font-weight:700;line-height:1.4}.history-section-heading{display:flex;flex-direction:column;gap:8px;margin:24px 0 20px}.history-section-heading>p,.history-section-heading>a{font-size:.8rem;color:#64748b}.history-graph-controls{display:grid;gap:12px;align-items:end}.history-graph-controls>div{min-width:0}.history-zoom{display:flex;gap:8px}.history-legend{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:.75rem;margin:18px 0}.history-legend>span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px}.legend-president:before{background:#2563eb}.legend-party:before{background:#7c3aed}.legend-event:before{background:#0f766e}.legend-crisis:before{background:#b45309}.history-help{font-size:.8rem;color:#64748b;line-height:1.7;margin:12px 0}.history-graph-canvas{border:1px solid #dbe3ef;border-radius:12px;background:#f7faff;overflow:hidden}#history-graph{display:block;width:100%;height:440px;touch-action:none}#history-graph-status{font-size:.8rem;margin:12px 0;min-height:24px}.history-edges line{stroke:#cbd5e1;stroke-width:1.4}.history-edges line.history-edge-active{stroke:#2563eb;stroke-width:2.8}.history-edges line.history-edge-muted{opacity:.12}.history-node{cursor:pointer}.history-node text{font-family:system-ui,sans-serif;font-size:11px;fill:#334155;paint-order:stroke;stroke:#f7faff;stroke-width:3px;stroke-linejoin:round;pointer-events:none}.history-node-dot{stroke:white;stroke-width:2}.history-hit-target{fill:transparent}.history-node-muted{opacity:.12}.history-node-active .history-node-dot,.history-node:focus .history-node-dot{stroke:#0f172a;stroke-width:3}.history-node-active text{font-weight:800;fill:#102b5c}.history-time-axis{color:#64748b;font-size:11px}.history-card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.history-card{border:1px solid #dbe3ef;border-radius:12px;padding:20px;display:flex;flex-direction:column;background:white;min-width:0}.history-card-top{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;align-items:start}.history-card-top h3{margin:8px 0}.history-card-top h3 a{color:#153b78;text-decoration:none}.history-card-top h3 a:hover{text-decoration:underline}.history-card-top p{font-size:.75rem;color:#64748b;line-height:1.5}.history-year{font-size:.75rem;letter-spacing:.02em;font-weight:700;color:#1d4ed8}.history-portrait{position:relative;width:76px;height:96px;background:#e0f2fe;border-radius:8px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center}.history-portrait span{font-size:2.4rem;font-family:Georgia,serif;color:#1e40af}.history-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}.history-card-party{font-size:.8rem;color:#475569;margin-top:18px}.history-card-link{margin-top:auto;padding-top:12px;font-size:.8rem;font-weight:650;min-height:44px}.history-empty{padding:20px;border:1px dashed #bfdbfe;border-radius:10px;background:#f8fafc}.history-method{background:#f0f7ff;border:1px solid #dbeafe;border-radius:14px;padding:22px;margin:36px 0}.history-method p{font-size:.9rem;margin:18px 0}.history-app section{scroll-margin-top:24px}.history-drawer{position:fixed;inset:0 0 0 auto;margin:0;max-height:none;height:100dvh;width:min(520px,100vw);max-width:100vw;border:0;border-left:1px solid #dbeafe;padding:24px;color:#1f2937;box-shadow:-10px 0 40px #102b5c33;overflow-y:auto}.history-drawer::backdrop{background:#102b5c66}.history-drawer>button{display:block;margin-left:auto}.history-drawer h2{font-size:1.8rem;margin:24px 0}.history-drawer h3{margin:26px 0 14px}.history-drawer p{margin:12px 0;font-size:.9rem}.history-drawer article{padding:16px;background:#f0f7ff;border-radius:8px;margin:12px 0}.history-drawer small{display:block;color:#64748b}.history-profile-hero{display:flex;gap:22px;align-items:center;background:#eff6ff;padding:24px;border-radius:16px;flex-wrap:wrap}.history-profile-hero h1{font-size:clamp(1.9rem,5vw,3rem);line-height:1.15;font-weight:800;color:#102b5c;margin:12px 0}.history-profile-hero p{margin:12px 0}.history-portrait-large{width:140px;height:175px}.history-profile-bio{font-size:1.1rem;line-height:1.8;margin:28px 0}.history-profile-nav{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.history-profile-nav a{min-height:44px;display:flex;align-items:center;padding:9px 14px;border:1px solid #bfdbfe;border-radius:8px;font-size:.85rem}.history-profile section{margin-top:36px}.history-periods{display:grid;gap:16px}.history-periods article{border-left:3px solid #60a5fa;padding:16px 20px;background:#f8fafc;border-radius:0 10px 10px 0}.history-periods p{font-size:.9rem;margin:10px 0}.history-periods a,.history-event a{font-size:.8rem}.history-event{border:1px solid #dbeafe;border-left:4px solid #0f766e;padding:20px;border-radius:10px;margin:18px 0}.history-event p{margin:12px 0}.history-event-crisis{border-left-color:#b45309}.history-sources{list-style:none;padding:0}.history-sources li{border-top:1px solid #dbeafe;padding:16px 0}.history-sources span{display:block;color:#64748b;font-size:.8rem;margin-top:6px}.history-back{margin:30px 0}.history-app :focus-visible{outline:3px solid #2563eb;outline-offset:4px}@media(min-width:700px){.history-hero{padding:40px}.history-hero-links{flex-direction:row}.history-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto auto;align-items:end}.history-section-heading{flex-direction:row;align-items:center;justify-content:space-between}.history-graph-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}#history-graph{height:590px}.history-profile-hero{flex-wrap:nowrap;padding:36px}.history-portrait-large{width:180px;height:225px}.history-periods{grid-template-columns:repeat(2,minmax(0,1fr))}.history-method{padding:32px}}@media(min-width:1050px){.history-hero{grid-template-columns:minmax(0,3fr) minmax(0,1fr);padding:50px;gap:60px}.history-era{border-top:0;border-left:1px solid #46638d;padding:20px 0 20px 30px;align-content:center}.history-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:699px){.history-node text{display:none}.history-node-active text,.history-node-neighbor text{display:block}}

@media(min-width:768px) and (max-width:1100px){
 body:has(.history-app) .site-header>.relative{flex-wrap:wrap;padding-left:24px;padding-right:24px;gap:8px}
 body:has(.history-app) .site-header-animal{display:none}
 body:has(.history-app) .site-header nav.md\:flex{width:100%;flex-wrap:wrap;justify-content:center}
}

.history-closing-period{margin:24px 0}.history-closing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.history-closing-card{background:#f0f7ff;border:1px solid #bfdbfe;border-radius:10px;padding:20px;min-width:0}.history-closing-card h4{font-size:1rem;color:#102b5c;margin:0 0 12px}.history-closing-card p,.history-closing-card a{font-size:.85rem}.history-closing-card .history-closing-value{font-size:1.5rem;font-weight:750;color:#1d4ed8}
.history-state-debt{margin-top:16px}.history-debt-breakdown{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;font-size:.85rem}.history-debt-breakdown dt{font-weight:700}.history-debt-breakdown dd{margin:0}
