/* Government Registry — flat UI (Wiki / InstaGix palette) */

.dn-site--gov-reg {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    background: #1e222d;
}

.dn-site--gov-reg .dn-chrome--gov-reg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    height: 32px;
    background: #252932;
    border-bottom: 1px solid #363a45;
    border-radius: 0;
}

.dn-site--gov-reg .dn-lock {
    width: 22px;
    height: 18px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    background: #ef5350;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
}

.dn-site--gov-reg .dn-site-title {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #d1d4dc;
}

.dn-site--gov-reg .dn-site-url {
    font-family: Consolas, monospace;
    font-size: 10px;
    color: #787b86;
}

.dn-site--gov-reg .dn-status-pulse--gov-reg {
    font-size: 9px;
    font-weight: 600;
    color: #26a69a;
    text-shadow: none;
    animation: none;
}

.dn-site--gov-reg .dn-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    background: #1e222d;
    border: none;
    overflow: hidden;
}

.dn-foot--gov-reg {
    padding: 5px 12px;
    background: #252932;
    border-top: 1px solid #363a45;
    font-size: 10px;
}

.gov-app {
    --gr-bg: #1e222d;
    --gr-bg2: #252932;
    --gr-bg3: #2a2e39;
    --gr-border: #363a45;
    --gr-text: #d1d4dc;
    --gr-muted: #787b86;
    --gr-link: #26a69a;
    --gr-accent: #2962ff;

    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    color: var(--gr-text);
    background: var(--gr-bg);
}

.gov-header {
    padding: 14px 16px 12px;
    background: var(--gr-bg2);
    border-bottom: 1px solid var(--gr-border);
}

.gov-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.gov-brand h1 { margin: 0; font-size: 24px; font-weight: 600; }

.gov-brand p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--gr-muted);
    max-width: 480px;
    line-height: 1.45;
}

.gov-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gov-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gr-border);
    background: var(--gr-bg3);
    color: var(--gr-muted);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
}

.gov-btn:hover { border-color: var(--gr-accent); color: var(--gr-text); }

.gov-btn-primary {
    background: var(--gr-accent);
    border-color: var(--gr-accent);
    color: #fff;
}

.gov-body {
    flex: 1;
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 0;
    overflow: hidden;
}

.gov-sidebar {
    background: var(--gr-bg2);
    border-right: 1px solid var(--gr-border);
    overflow-y: auto;
    padding: 8px 0;
}

.gov-nav-title {
    padding: 8px 14px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gr-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gov-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-left: 2px solid transparent;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: var(--gr-muted);
    cursor: pointer;
}

.gov-nav-item:hover { background: var(--gr-bg3); color: var(--gr-text); }

.gov-nav-item.active {
    background: var(--gr-bg3);
    border-left-color: var(--gr-accent);
    color: var(--gr-text);
    font-weight: 600;
}

.gov-nav-icon { font-size: 18px; width: 24px; text-align: center; }

.gov-main { overflow-y: auto; padding: 16px 18px 24px; }

.gov-intro {
    padding: 14px 16px;
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-left: 3px solid var(--gr-link);
    border-radius: 2px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--gr-muted);
    line-height: 1.55;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.gov-card {
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.gov-card:hover {
    border-color: #59606f;
    background: var(--gr-bg3);
    transform: translateY(-1px);
}

.gov-card.hidden { display: none; }

.gov-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.gov-card-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    border: 1px solid var(--gr-border);
    background: var(--gr-bg);
}

.gov-card-code {
    font-size: 11px;
    font-family: Consolas, monospace;
    color: var(--gr-muted);
    text-transform: uppercase;
}

.gov-card-name { font-size: 16px; font-weight: 600; }

.gov-card-type {
    margin-top: 2px;
    font-size: 11px;
    color: var(--gr-link);
}

.gov-card-desc {
    font-size: 13px;
    color: var(--gr-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}

.gov-mini-meter {
    height: 5px;
    background: var(--gr-bg);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gov-mini-meter span {
    display: block;
    height: 100%;
    border-radius: 99px;
    transition: width 0.25s ease;
}

.gov-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.gov-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.gov-card-actions button {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--gr-border);
    background: var(--gr-bg);
    color: var(--gr-muted);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.gov-card-actions button:hover,
.gov-card-actions button.gov-compare-btn-active {
    border-color: var(--gr-accent);
    color: #fff;
    background: rgba(41, 98, 255, 0.16);
}

.gov-threat {
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.gov-threat-critical { background: rgba(239, 83, 80, 0.15); color: #ef5350; }
.gov-threat-high { background: rgba(240, 185, 11, 0.12); color: #f0b90b; }
.gov-threat-medium { background: rgba(41, 98, 255, 0.12); color: #2962ff; }
.gov-threat-low { background: rgba(38, 166, 154, 0.12); color: #26a69a; }

.gov-detail-hero {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.gov-detail-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    border: 1px solid var(--gr-border);
    flex-shrink: 0;
}

.gov-detail-title h2 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }

.gov-detail-code {
    font-family: Consolas, monospace;
    font-size: 13px;
    color: var(--gr-muted);
}

.gov-detail-tagline { font-size: 14px; color: var(--gr-muted); margin-top: 8px; }

.gov-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.gov-panel {
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
    padding: 14px;
}

.gov-panel h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gr-border);
    padding-bottom: 6px;
}

.gov-panel p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gr-muted);
}

.gov-panel ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--gr-muted);
    line-height: 1.65;
}

.gov-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.gov-stat-box {
    text-align: center;
    padding: 10px 8px;
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
}

.gov-stat-val {
    font-size: 22px;
    font-weight: 600;
    font-family: Consolas, monospace;
}

.gov-stat-lbl { font-size: 12px; color: var(--gr-muted); margin-top: 4px; }

.gov-bar {
    height: 6px;
    background: var(--gr-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.gov-bar-fill { height: 100%; border-radius: 2px; }

.gov-notice {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(239, 83, 80, 0.08);
    border: 1px solid rgba(239, 83, 80, 0.25);
    border-left: 3px solid #ef5350;
    border-radius: 2px;
    font-size: 14px;
    color: var(--gr-muted);
    line-height: 1.55;
}

/* ——— Interactive indicators ——— */

.gov-indicators-panel,
.gov-agency-indicators {
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.gov-indicators-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.gov-indicators-head h3 {
    margin: 4px 0 0;
    font-size: 18px;
}

.gov-live-badge {
    font-size: 12px;
    font-weight: 600;
    color: #26a69a;
}

.gov-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gov-ind-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid var(--gr-border);
    background: var(--gr-bg);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    color: var(--gr-text);
    transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}

.gov-ind-tile:hover,
.gov-ind-tile.active {
    border-color: var(--ind-color, var(--gr-accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.gov-ind-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.gov-ind-icon { font-size: 20px; }

.gov-ind-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: uppercase;
}

.gov-ind-status--critical { background: rgba(239,83,80,0.18); color: #ef5350; }
.gov-ind-status--high { background: rgba(240,185,11,0.15); color: #f0b90b; }
.gov-ind-status--med { background: rgba(41,98,255,0.15); color: #2962ff; }
.gov-ind-status--low { background: rgba(38,166,154,0.15); color: #26a69a; }

.gov-ind-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.gov-ind-ring {
    --pct: 180;
    --ring-color: #2962ff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--ring-color) calc(var(--pct) * 1deg), var(--gr-bg3) 0);
    position: relative;
}

.gov-ind-ring::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--gr-bg2);
}

.gov-ind-ring span {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 700;
    font-family: Consolas, monospace;
}

.gov-ind-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 12px;
}

.gov-ind-foot strong { font-family: Consolas, monospace; }

.gov-ind-trend { font-weight: 700; font-size: 11px; }
.gov-ind-trend--up { color: #ef5350; }
.gov-ind-trend--down { color: #26a69a; }
.gov-ind-trend--flat { color: var(--gr-muted); }

.gov-indicator-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-left: 3px solid var(--gr-accent);
    border-radius: 2px;
    flex-wrap: wrap;
}

.gov-indicator-detail-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gr-muted);
    flex: 1;
    min-width: 200px;
}

.gov-indicator-detail-text b { color: var(--gr-text); }

.gov-agency-ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gov-ind-agency {
    padding: 12px;
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-left: 3px solid var(--ind-color, var(--gr-accent));
    border-radius: 2px;
}

.gov-ind-agency-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.gov-ind-agency-head strong {
    font-family: Consolas, monospace;
    color: var(--ind-color, var(--gr-text));
}

.gov-ind-track {
    height: 6px;
    background: var(--gr-bg3);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gov-ind-track span {
    display: block;
    height: 100%;
    background: var(--ind-color, var(--gr-accent));
    border-radius: 99px;
    transition: width 0.35s ease;
}

.gov-ind-hint {
    font-size: 12px;
    color: var(--gr-muted);
}

@media (max-width: 720px) {
    .gov-indicators-grid { grid-template-columns: repeat(2, 1fr); }
}

.gov-notice b { color: #ef5350; }

/* ——— Player guidance and controls ——— */

.gov-brief {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 16px;
    background:
        linear-gradient(90deg, rgba(41, 98, 255, 0.12), transparent 48%),
        var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-left: 4px solid var(--agency-color);
    border-radius: 2px;
}

.gov-brief-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-bg);
    border: 1px solid var(--agency-color);
    border-radius: 2px;
    font-size: 28px;
}

.gov-brief-kicker,
.gov-panel-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--gr-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gov-brief h2 {
    margin: 2px 0 4px;
    font-size: 22px;
}

.gov-brief p {
    margin: 0;
    color: var(--gr-muted);
    font-size: 14px;
    line-height: 1.45;
}

.gov-brief-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    text-align: right;
    font-size: 13px;
}

.gov-brief-meta span { color: var(--agency-color); font-weight: 700; }
.gov-brief-meta b { color: var(--gr-text); font-weight: 600; }

.gov-control-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
}

.gov-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
}

.gov-search-wrap span {
    color: var(--gr-muted);
    font-size: 18px;
}

.gov-search {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--gr-text);
    font: inherit;
}

.gov-filter-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gov-filter-chip {
    padding: 8px 10px;
    border: 1px solid var(--gr-border);
    background: var(--gr-bg);
    color: var(--gr-muted);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}

.gov-filter-chip.active,
.gov-filter-chip:hover {
    background: rgba(41, 98, 255, 0.18);
    border-color: var(--gr-accent);
    color: #fff;
}

.gov-map-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) 1.3fr;
    gap: 14px;
    margin-bottom: 16px;
}

.gov-map-copy,
.gov-city-map,
.gov-compare,
.gov-empty {
    background: var(--gr-bg2);
    border: 1px solid var(--gr-border);
    border-radius: 2px;
}

.gov-map-copy {
    padding: 16px;
}

.gov-map-copy h3 {
    margin: 4px 0 8px;
    font-size: 20px;
}

.gov-map-copy p {
    margin: 0 0 12px;
    color: var(--gr-muted);
    font-size: 14px;
    line-height: 1.55;
}

.gov-city-map {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(41, 98, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #20242d, #171b24);
}

.gov-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.gov-map-district {
    position: absolute;
    padding: 4px 7px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    color: #8f96a6;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.gov-map-district--north { left: 8%; top: 10%; }
.gov-map-district--core { left: 40%; top: 44%; }
.gov-map-district--south { left: 9%; bottom: 10%; }

.gov-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--pin-color);
    background: rgba(20, 24, 32, 0.94);
    color: var(--pin-color);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
}

.gov-map-pin span { font-size: 18px; }

.gov-map-pin:hover,
.gov-map-pin.active {
    transform: translate(-50%, -50%) scale(1.14);
    background: #202634;
    box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.22);
}

.gov-compare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.gov-compare strong {
    font-size: 15px;
}

.gov-compare span,
.gov-compare small {
    color: var(--gr-muted);
}

.gov-compare-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gov-compare-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    align-items: center;
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid var(--agency-color);
    background: var(--gr-bg);
    color: var(--gr-text);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.gov-compare-item small {
    grid-column: 2 / 4;
    font-size: 11px;
}

.gov-compare-item i {
    color: var(--gr-muted);
    font-style: normal;
    font-size: 18px;
    line-height: 1;
}

.gov-empty {
    padding: 18px;
    color: var(--gr-muted);
    text-align: center;
    margin-top: 12px;
}

@media (max-width: 640px) {
    .gov-body { grid-template-columns: 1fr; }
    .gov-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
        border-right: none;
        border-bottom: 1px solid var(--gr-border);
    }
    .gov-nav-title { display: none; }
    .gov-detail-grid { grid-template-columns: 1fr; }
    .gov-brief,
    .gov-control-panel,
    .gov-map-panel,
    .gov-compare {
        grid-template-columns: 1fr;
    }
    .gov-brief-meta,
    .gov-filter-row,
    .gov-compare-list {
        justify-content: flex-start;
        text-align: left;
    }
}

.dn-foot--gov-reg .dn-foot-meta { color: #5d606b; }
.dn-foot--gov-reg .dn-foot-link { color: #787b86; text-decoration: none; cursor: pointer; }
.dn-foot--gov-reg .dn-foot-link:hover { color: #d1d4dc; }

#win-browser.gov-browser-mode .browser-body.gov-browser-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}
