/* v14: system typography, compact profiles, aligned entitlement indicators. */
:root{--v14-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body,.app-shell,.app-shell button,.app-shell input,.app-shell select,.territory-sheet,.premium-dialog,.v12-party-panel{font-family:var(--v14-font)!important}
.country-label text,.country-label tspan,.map-labels text,.territory-header h2,[data-slot="sheet-title"],.country-name,.v12-chamber h4{font-family:var(--v14-font)!important;font-style:normal!important;letter-spacing:-.015em;font-weight:600}
.territory-header h2{font-size:25px!important;line-height:1.15;margin:2px 0 4px!important;letter-spacing:-.035em;font-weight:700}
.territory-header{padding:20px 24px 15px!important;gap:5px!important}.territory-header .territory-topline{margin-bottom:5px}.territory-header .territory-meta{display:none!important}
.territory-header [data-slot="sheet-description"]{font-size:12px!important;line-height:1.4;margin:0 0 5px!important}
.territory-body{padding:16px 24px 26px!important}.administrative-scale{padding-top:13px!important;margin-top:8px!important}.administrative-scale>div:first-child{margin-bottom:10px!important}.scale-stops{margin-top:8px!important}.scale-stops button{min-height:38px;padding:5px 2px;font-size:11px!important}.scale-label{display:inline-flex;align-items:center;gap:4px;justify-content:center}.scale-crown{position:static!important;transform:none!important;inset:auto!important}
.global-system-overview,.global-local-live,.global-structure-browser,.global-explorer-coverage,.v13-search-note,.v13-premium-overview,.v13-regional-composition-lock{display:none!important}
html[data-v14-politics="true"] .territory-body>.country-metrics,html[data-v14-politics="true"] .territory-body>.metric-sources{display:none!important}
.territory-body>.inter-index-button{margin:0 0 14px!important;font-size:12px!important;min-height:40px}
.territory-tabs{margin:0 0 14px!important;min-height:42px}.territory-tabs button{min-height:40px}.government-section>h3,.government-profile>h3{display:none}
.person-card{padding:13px!important;margin-bottom:10px!important}.person-card h3{font-size:16px!important}.person-footer{padding-top:7px!important;gap:6px}.person-footer .photo-credit,.cabinet-card .photo-credit,.minister-card .photo-credit,.person-footer .source-link small{display:none!important}.fact-note{font-size:11px;line-height:1.45}
.v14-sources-button{display:block;border:0;background:transparent;font-size:11px;color:var(--panel-muted,#647983);padding:12px 0;cursor:pointer;text-decoration:underline;margin-top:12px;order:10}
.v14-ad-slot[hidden],.v14-ad-slot[data-ad-state="inactive"]{display:none!important}.v14-ad-slot[data-ad-state="active"]{display:block;min-height:74px;margin:0 0 14px;contain:layout}
.map-layer-tabs button{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important}
.map-layer-tabs button .premium-crown,.map-layer-tabs button .v13-crown,.map-layer-tabs button .v14-crown{position:static!important;inset:auto!important;transform:none!important;display:inline-block!important;flex:0 0 12px;width:12px!important;height:12px!important;margin:0!important;vertical-align:middle!important;align-self:center!important}
.quick-territories .v13-crown,[role="option"] .v13-crown{display:none!important}
.v14-crown{width:16px;height:16px;color:#b38939;flex-shrink:0}.v14-build{display:block;margin:9px 0;font-size:10px;letter-spacing:.04em;color:var(--panel-muted,#647983);text-decoration:none}
.v12-institutions{border:0!important;background:transparent!important;padding:0!important;margin:0 0 14px!important}.v12-institutions[hidden]{display:none!important}.v12-chamber{padding:14px 0!important;margin:0 0 12px!important;border:0!important;border-bottom:1px solid var(--border,#d7e3e5)!important;border-radius:0!important;background:transparent!important}
.v12-chamber-title{display:flex;align-items:center;justify-content:space-between;gap:9px}.v12-chamber-title h4{margin:0!important;font-size:15px!important}.v12-chamber-title>span{font-size:10px;color:var(--panel-muted,#6b7b85);text-transform:uppercase}.v14-unrecorded h4{margin:0 0 6px;font-size:14px}.v14-unrecorded{opacity:.8}.v14-diagram-wrap{position:relative;margin:8px auto 3px;max-width:470px}.v14-hemicycle{display:block;width:100%;height:auto;overflow:visible}.v14-seat-total{font:600 27px var(--v14-font);fill:var(--panel-text,#23404a)}.v14-seat-unit{font:11px var(--v14-font);fill:var(--panel-muted,#6d7f89)}
.v14-seat-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 9px}.v14-seat-legend .v12-seat-group{padding:6px 4px!important;min-height:33px;display:flex;align-items:center;gap:6px;font-size:10px!important;line-height:1.3;background:transparent;border:0!important}.v14-seat-legend .v12-seat-group i{width:9px;height:9px;flex-shrink:0;border-radius:3px}.v14-seat-legend .v12-seat-group span{flex:1;min-width:0}.v14-seat-legend .v12-seat-group b{font-size:12px}.v14-chamber-sources{font-size:10px;line-height:1.5;margin-top:10px;color:var(--panel-muted,#6b7f89)}.v14-chamber-sources summary{cursor:pointer}.v14-chamber-sources a{display:inline-block;margin-right:10px}.v14-chamber-sources p{font-size:11px}.v14-chamber-sources[open]{padding:9px;background:var(--panel-soft,#f5f8fa);border-radius:6px}
.v14-locked-assembly .v14-hemicycle{filter:blur(8px);opacity:.35;user-select:none;pointer-events:none}.v14-assembly-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}.v14-assembly-overlay strong{font-size:14px}.v14-assembly-overlay button{border:0;border-radius:7px;padding:10px 14px;background:#286f65;color:white;font-size:12px;cursor:pointer;min-height:42px}
.territory-body:has(>.local-map-profile){display:flex;flex-direction:column}.territory-body:has(>.local-map-profile)>.local-premium-section{order:0}.territory-body:has(>.local-map-profile)>.v12-institutions{order:1}.local-map-profile{display:none!important}.territory-body:has(.v14-assembly) .local-detail-assembly,.territory-body:has(.v14-assembly) .local-assembly{display:none!important}
html[data-v14-loading="true"] .region-path{pointer-events:none;opacity:.55}
.premium-dialog{max-width:620px!important}.premium-dialog [data-slot="dialog-title"]{font-family:var(--v14-font);font-size:25px}.premium-dialog [data-slot="dialog-description"]{display:none!important}.premium-dialog:has(.premium-account) .premium-tabs{display:none}.premium-account{padding-top:8px}.premium-account>.premium-benefits,.premium-account>.v13-premium-overview{display:none!important}.v14-premium-offer{margin:0 0 18px}.v14-premium-offer h3{font-size:21px;letter-spacing:-.02em;margin:0 0 16px}.v14-plan-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.v14-plan-option{padding:15px 12px;border:1px solid var(--border,#d5e0e5);border-radius:12px;background:var(--panel-soft,#f5f9f8);text-align:left;cursor:pointer;min-width:0;color:inherit}.v14-plan-option[aria-pressed="true"]{border:2px solid #287c70;padding:14px 11px;background:#287c7009}.v14-plan-option>small{display:block;font-size:11px;margin-bottom:9px}.v14-price{font-size:29px;font-weight:700;letter-spacing:-.035em;white-space:nowrap}.v14-price small{font-size:11px;font-weight:400;letter-spacing:0}.v14-benefits{list-style:none;margin:14px 0 18px;padding:0}.v14-benefits li{position:relative;padding:5px 0 5px 21px;font-size:12px;line-height:1.45}.v14-benefits li::before{content:'✓';position:absolute;left:0;color:#287c70;font-weight:700}.v14-subscribe{width:100%;justify-content:center;min-height:45px}.v14-subscribe .v14-crown{color:inherit}.v14-small{font-size:10px!important;line-height:1.5!important;color:var(--panel-muted,#637984);margin:10px 0}.v14-muted{font-size:12px;color:var(--panel-muted,#637984)}.premium-footer{font-size:11px}.premium-footer>span{max-width:65%}
.v14-source-dialog{position:fixed;inset:0;max-width:min(620px,calc(100vw - 28px));max-height:85dvh;background:var(--panel,#fff);color:var(--panel-text,#203a43);border:1px solid #b2c7cd;border-radius:14px;padding:26px;font-family:var(--v14-font)}.v14-source-dialog::backdrop{background:#102d4266}.v14-source-dialog h2{font-size:21px;margin:0 30px 20px 0}.v14-source-dialog p{font-size:12px;line-height:1.55}.v14-source-dialog a{color:#2f8176;overflow-wrap:anywhere}.v14-dialog-close{position:absolute;top:10px;right:10px;border:0;background:transparent;width:40px;height:40px;font-size:27px;color:inherit;cursor:pointer}
@media(max-width:620px){.territory-header{padding:14px 18px 12px!important}.territory-header h2{font-size:24px!important}.territory-body{padding:14px 18px 24px!important}.scale-stops button{font-size:10px!important}.map-layer-tabs button{gap:4px!important}.v14-price{font-size:25px}.v14-plan-option{padding:12px 10px}.v14-plan-option[aria-pressed="true"]{padding:11px 9px}.premium-dialog{padding:20px!important}.v14-benefits li{font-size:11px}.v12-party-panel{max-width:100%!important}.v14-seat-legend{gap:2px 7px}.v14-seat-legend .v12-seat-group{font-size:10px!important}.v14-hemicycle{max-height:250px}.v14-sources-button{min-height:42px}.v14-plan-options{gap:8px}.v13-scale-dock{max-width:calc(100% - 74px)}}
@media(prefers-reduced-motion:reduce){.v14-subscribe,.v14-plan-option{scroll-behavior:auto;transition:none}}
/* Final compactness rules override earlier extension styles. */
.territory-body [role="tabpanel"]>h2:first-of-type,.territory-body [role="tabpanel"]>.fact-note,.territory-body>.fact-note,.local-premium-section>h2,.local-record-evidence,.local-photo-credit{display:none!important}
.territory-body [role="tabpanel"]:has(.v14-assembly)>.parliament-layout{display:none!important}
.premium-dialog:has(.premium-account) .premium-tabs{display:none!important}.premium-dialog:has(.v14-premium-offer) [data-slot="dialog-title"]{display:none!important}
.territory-body .inter-index-button .v13-crown{position:static!important;inset:auto!important;transform:none!important;margin-left:6px;align-self:center}
.territory-body:has(>.local-map-profile)>.local-back-link{order:8}
.territory-body:has(>.local-map-profile)>.secondary-button{order:8}
.inter-index-button .premium-crown{position:static!important;inset:auto!important;transform:none!important;margin-left:6px!important;align-self:center!important}

/* v14.2 final typography and local data safeguards. */
:root{--font-sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--font-display:var(--font-sans)}
body,.map-country-label,.country-label,.country-labels text,.world-svg text{font-family:var(--font-sans)!important}
.world-svg text{font-weight:550!important;letter-spacing:.015em!important}
.territory-body .local-premium-section{margin-top:0!important}.territory-body .local-premium-section .local-profile-heading{margin-bottom:8px!important}
.territory-body .person-footer>.source-link,.territory-body .government-note,.territory-body .data-provenance{display:none!important}
.territory-body .v14-ad-slot{order:-1}.v12-party-panel{z-index:50}
.v14-build{font-size:10px!important}.premium-dialog .preview-caption{display:none}

.person-footer:has(>a[href*="wikipedia.org"]){padding:6px 0 0!important;border:0!important;background:transparent!important;min-height:0!important}
.territory-body .person-footer>a[href*="wikipedia.org"]{display:inline-flex!important;font-size:11px!important;margin:0!important}
.person-footer:has(>a[href*="wikipedia.org"]) svg{width:12px;height:12px}
.v14-partial-seats{display:block;text-align:center;font-size:11px;color:var(--muted-foreground,#667e88);margin:-8px 0 8px}
.v14-assembly .v12-chamber-title span:empty{display:none}.v14-ad-slot[hidden]{display:none!important}

/* Fold technical affiliation notes into the existing sources dialog. */
.territory-body .local-record-copy>.source-link,.territory-body .preview-caption {display:none!important}
