/* Scoped native-view repairs; the shared Site shell keeps its existing theme. */
.hub-government{--card:var(--surface);--line:var(--rule);--navy:var(--link)}
.hub-government .nav button,.hub-government .lenses button,.hub-government .map-scope button,.hub-government .entity-tree-controls button,.hub-government .entity-tree-toggle,.hub-government [data-back]{background:var(--surface-2);color:var(--ink);border:1px solid var(--rule)}
.hub-government .nav button.active,.hub-government .lenses button.active,.hub-government .map-scope button.active{background:var(--link);color:var(--bg)}
.hub-government .map-frame,.hub-government .panel,.hub-government .detail{background:var(--surface);color:var(--ink)}
.hub-government .map-legend,.hub-government .node-type,.hub-government .path{color:var(--muted)}
.hub-government .map-node,.hub-government .map-node.has-research,.hub-government .map-node.has-movement{background:var(--surface-2);color:var(--ink);border-color:var(--rule)}
.hub-government .map-node.has-research{border-left:3px solid #79b8a1}.hub-government .map-node.has-movement{border-right:3px solid #c9a45f}.hub-government .map-node.selected{outline:2px solid var(--link);outline-offset:2px}
.hub-government .chip,.hub-government .chip.note,.hub-government .chip.move,.hub-government .chip.relationship,.hub-government .chip.current,.hub-government .chip.history{background:var(--surface);color:var(--ink);border:1px solid var(--rule)}
.entity-tree-frame .map-toolbar{align-items:start;flex-wrap:wrap}.entity-tree-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0;font-size:15px}.entity-tree-controls button{font:inherit;padding:5px 9px;cursor:pointer}.entity-tree-controls>span:last-child{color:var(--muted)}
.entity-tree-frame .map-scroll{max-height:70vh;min-height:350px;padding:0;border:1px solid var(--rule);background:var(--bg)}
.entity-tree-frame .entity-map-canvas{position:relative;min-width:0}.entity-tree-frame #entity-tree-stage{position:relative;transform-origin:top left}.entity-tree-frame .entity-tree-node{position:absolute;width:228px;z-index:1}.entity-tree-frame .map-node{display:block;width:100%;padding:12px;text-align:left;min-height:86px}.entity-tree-frame .map-node strong{font-size:16px;line-height:1.25}.entity-tree-frame .entity-tree-toggle{width:100%;padding:5px;font:14px Georgia,serif;cursor:pointer}.entity-tree-frame .map-lines{color:var(--rule)}
.hub-eo .emap-head{display:block;min-width:0}.hub-eo .emap-head>div{min-width:0;width:100%}.hub-eo .emap-head h4{max-width:100%;font-size:19px}.hub-eo .emap-head p{max-width:90ch}.hub-eo .emap-state{display:inline-block;white-space:normal;overflow-wrap:anywhere;max-width:100%;margin-top:10px;line-height:1.4}.hub-eo .entitymap{min-width:0}.hub-eo .emap-flow{max-width:100%}
.native-featured{margin:20px 0 28px}.native-featured h2{margin:0 0 10px}.native-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.native-map-card{display:block;padding:18px;border:1px solid var(--rule);background:var(--surface);text-decoration:none!important}.native-map-card strong{display:block;font-size:23px;line-height:1.15;margin-bottom:10px}.native-map-card span{display:block;font-size:17px;color:var(--ink-2);line-height:1.4}.native-subject-tools{margin:20px 0;padding:16px;border:1px solid var(--rule);background:var(--surface)}.native-subject-tools h2{margin-top:0}.native-tool-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;padding:0;list-style:none}.native-tool-list li{margin:0;min-width:0}.native-tool-list a{display:block;padding:6px 0;font-size:18px}.native-tool-list small{display:block;color:var(--muted);font-size:14px}.native-tool-group{margin:26px 0}.native-tool-group h2{margin:0 0 10px}.native-tool-links{display:flex;flex-wrap:wrap;gap:10px 22px}.fed-research-door{margin:12px 0;padding:10px 16px;border-left:3px solid var(--link);background:var(--surface)}
@media(max-width:700px){.native-map-grid{grid-template-columns:1fr}.native-tool-list{grid-template-columns:1fr}.hub-government .shell{padding:14px}.hub-government .map-frame{padding:12px}.hub-government .section-head{flex-wrap:wrap}.hub-eo .wrap{padding:16px!important}.entity-tree-frame .map-scroll{max-height:65vh}}
