.government-section { padding: clamp(2rem, 5vw, 5rem) clamp(1.2rem, 4vw, 4.5rem); border-bottom: 1px solid var(--line); background: #101316; scroll-margin-top: 1rem; }
.ga-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.5rem; }
.ga-heading h2 { font: 500 clamp(2rem, 4vw, 3.6rem)/1.12 var(--serif); margin: .4rem 0 1rem; }
.ga-heading p { max-width: 48rem; margin: .5rem 0; }
.ga-world-control { min-width: min(15rem, 100%); }
.government-section label { display: block; font-size: .875rem; margin-bottom: .4rem; }
.government-section select, .government-section input { width: 100%; padding: .75rem; border: 1px solid #555f76; border-radius: .3rem; background: #171b21; color: var(--paper); font: inherit; }
.government-section button { cursor: pointer; font: inherit; }
.government-section button:focus-visible, .government-section a:focus-visible, .government-section summary:focus-visible, .government-section select:focus-visible { outline: 2px solid #f7cf7d; outline-offset: 4px; }
.ga-context { border-left: 3px solid #d4b16b; padding: .7rem 1rem; margin-bottom: 1.25rem; background: #162036; font-size: .875rem; }
.ga-context p { margin: .25rem 0; }
.ga-context.ga-fiction { border-color: #9bd5ff; background: #1d2830; }
.ga-meta { display: flex; gap: .5rem 1.3rem; flex-wrap: wrap; font-size: .875rem; color: #dee4f0; margin: .9rem 0; }
.ga-layout { display: grid; grid-template-columns: minmax(20rem, 1fr) minmax(0, 1.3fr); gap: 1.25rem; align-items: start; }
.ga-chart { min-width: 0; padding: 1.3rem; border: 1px solid #434b5d; border-top: 3px solid #d4b16b; border-radius: .35rem; background: #161b20; max-height: 48rem; overflow: auto; scrollbar-gutter: stable; position: sticky; top: 1rem; }
.ga-chart > h3 { font: 500 1.35rem var(--serif); margin: 0 0 1rem; }
.ga-node { width: 100%; text-align: left; background: #212830; border: 1px solid #576077; border-radius: .35rem; padding: .85rem 1rem; display: grid; gap: .25rem; color: var(--paper); }
.ga-node:hover, .ga-node[aria-current="true"] { background: #19233a; border-color: #efcb83; }
.ga-node small { font-size: .875rem; line-height: 1.4; color: #e1e6f2; }
.ga-node strong { font-size: 1rem; line-height: 1.4; }
.ga-node.ga-president { border-color: #d4b16b; background: #1a253d; }
.ga-branch { border-left: 1px solid #5e6881; margin: 0 0 0 1.1rem; padding: 1.2rem 0 0 1.2rem; }
.ga-branch > p { font-size: .875rem; color: #dee4f0; margin: 0 0 .75rem; }
.ga-chart details { margin-top: 1rem; }
.ga-chart summary { padding: .6rem 0; font-weight: 600; cursor: pointer; }
.ga-departments { display: grid; gap: .5rem; }
.ga-departments .ga-node { padding: .65rem .8rem; }
.ga-chart-note { font-size: .875rem; color: #dee4f0; }
.ga-empty, .ga-flyout { min-width: 0; padding: clamp(1rem, 2.4vw, 1.8rem); border: 1px solid #454d60; background: #1b2027; border-radius: .4rem; }
.ga-empty { padding: 2.3rem; }
.ga-empty h3 { font: 500 1.8rem/1.2 var(--serif); }
.ga-empty ol { padding-left: 1.3rem; }
.ga-empty li { margin: .8rem 0; }
.ga-flyout { position: sticky; top: 1rem; max-height: 48rem; overflow: auto; scrollbar-gutter: stable; box-shadow: -7px 0 0 #101316, -8px 0 0 #d4b16b; animation: ga-enter .18s ease-out; }
.ga-flyout[hidden], .ga-empty[hidden], .government-section [hidden] { display: none; }
.ga-tools { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.ga-tools button, .ga-filter-reset, .ga-source-button { background: transparent; color: var(--paper); border: 1px solid #5e6982; border-radius: .25rem; padding: .45rem .7rem; }
.ga-breadcrumbs { display: flex; flex-wrap: wrap; gap: .3rem .6rem; font-size: .875rem; margin-bottom: 1.1rem; }
.ga-breadcrumbs button { padding: 0; background: none; color: #ead19e; border: 0; text-decoration: underline; text-underline-offset: .25em; font-size: .875rem; }
.ga-flyout h3 { margin: .6rem 0 1rem; font: 500 clamp(1.65rem, 2.7vw, 2.4rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.ga-flyout h4 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.ga-flyout p { margin: .65rem 0; }
.ga-flyout a, .ga-method a { color: #f0d49d; text-underline-offset: .22em; overflow-wrap: anywhere; }
.ga-label { font: .875rem/1.5 var(--mono); color: #e6cea0; }
.ga-flyout dl { display: grid; grid-template-columns: minmax(5.5rem, .6fr) minmax(0, 1.6fr); gap: .65rem 1rem; }
.ga-flyout dt { color: #dee4f0; font-size: .875rem; }
.ga-flyout dd { margin: 0; }
.ga-list { display: grid; gap: .65rem; }
.ga-card { width: 100%; text-align: left; background: #252c35; color: var(--paper); border: 1px solid #50596f; border-radius: .3rem; padding: 1rem; display: grid; gap: .4rem; }
.ga-card:hover { border-color: #e1c386; background: #1b2641; }
.ga-card strong { font-size: 1rem; }
.ga-card span, .ga-card small { font-size: .875rem; line-height: 1.5; }
.ga-card .ga-card-cta { color: #f0d49d; }
.ga-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .9rem 0; }
.ga-chip { padding: .22rem .5rem; border: 1px solid #6a7693; border-radius: .2rem; font-size: .875rem; }
.ga-evidence { border-left: 3px solid #dabc81; padding: .6rem 1rem; background: #1b2641; margin: 1rem 0; }
.ga-evidence p { font-size: .875rem; }
.ga-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.2rem 0; }
.ga-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 3.8rem), 1fr)); gap: .3rem; margin: 1rem 0; }
.ga-years span { display: grid; gap: .15rem; padding: .35rem .15rem; border-bottom: 2px solid #565f76; text-align: center; font-size: .875rem; }
.ga-years span.has-events { border-color: #ddbf82; background: #19243e; }
.ga-years small { color: #dee4f0; font-size: .75rem; }
.ga-source-list { padding-left: 1.2rem; }
.ga-source-list li { margin: .65rem 0; }
.ga-source-list span { font-size: .875rem; color: #dee4f0; }
.ga-scope { font-size: .875rem; color: #dee4f0; }
.ga-method { margin-top: 1.5rem; padding: 1rem; border: 1px solid #454d60; font-size: .875rem; }
.ga-method summary { cursor: pointer; font-size: 1rem; font-weight: 600; }
.ga-loading { padding: 2rem; border: 1px solid #454d60; }
.ga-live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
@keyframes ga-enter { from { opacity: .6; transform: translateX(.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ga-flyout { animation: none; } }
@media (max-width: 900px) {
  .ga-heading { display: block; }
  .ga-world-control { max-width: 30rem; margin-top: 1.3rem; }
  .ga-layout { grid-template-columns: minmax(0, 1fr); }
  .ga-chart { position: static; max-height: 28rem; }
  .ga-layout.is-open .ga-chart { max-height: 29svh; min-height: 8rem; }
  .ga-flyout { position: static; max-height: 57svh; min-height: 12rem; box-shadow: none; border-top: 3px solid #d4b16b; }
  .ga-filter-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .ga-chart { padding: .9rem; } .ga-branch { margin-left: .5rem; padding-left: .7rem; } .ga-flyout dl { display: block; } .ga-flyout dd { margin-bottom: .65rem; } }
