/* Scoped country UI, aligned with Sources; no global card or table overrides. */
.main-content:has(#tab-countries.active) { min-width:0; }
.ctry-view, .ctry-view * { box-sizing:border-box; }
.ctry-view { min-width:0; color:var(--text); }
.ctry-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.ctry-stats > * { padding:16px 18px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card); color:var(--text); text-align:left; font:inherit; }
.ctry-stats span { display:block; font-size:11px; color:var(--text-secondary); }
.ctry-stats strong { display:block; font-size:25px; line-height:1.3; font-variant-numeric:tabular-nums; margin:8px 0 2px; }
.ctry-stats strong small { font-size:12px; font-weight:400; }
.ctry-stats small { display:block; font-size:10px; color:var(--text-secondary); }
.ctry-stats strong small { display:inline; }
.ctry-stats button { cursor:pointer; }
.ctry-stats button:hover { border-color:var(--accent); }
.ctry-panel { padding:20px; min-width:0; margin-bottom:18px; }
.ctry-comparison { padding:14px 20px; margin-bottom:18px; }
.ctry-comparison summary { cursor:pointer; font-size:12px; font-weight:600; }
.ctry-comparison summary small { font-size:11px; font-weight:400; color:var(--text-secondary); margin-left:8px; }
.ctry-chart-content { padding-top:16px; }
.ctry-chart { position:relative; height:440px; margin-bottom:12px; }
.ctry-chart-content [data-chart-status] { font-size:11px; color:var(--text-secondary); }
.ctry-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.ctry-switch { display:flex; flex-wrap:wrap; padding:3px; gap:3px; background:var(--bg-elevated); border-radius:8px; }
.ctry-switch button { border:0; padding:8px 11px; border-radius:6px; background:none; font:inherit; font-size:12px; color:var(--text-secondary); cursor:pointer; }
.ctry-switch [aria-pressed="true"] { background:var(--bg-card); color:var(--accent); box-shadow:0 1px 4px #0001; font-weight:600; }
.ctry-note { font-size:11px; line-height:1.6; color:var(--text-secondary); margin:0 0 8px; }
.ctry-table-wrap { overflow-x:auto; }
.ctry-view .ctry-table { width:100%; table-layout:auto; }
.ctry-view .ctry-table th, .ctry-view .ctry-table td { font-size:12px; padding:11px 9px; white-space:normal; text-transform:none; letter-spacing:0; border-bottom:1px solid var(--border); }
.ctry-table th { color:var(--text-secondary); font-weight:550; }
.ctry-table th:not(:first-child), .ctry-table td:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }
.ctry-name, .ctry-link { border:0; padding:0; font:inherit; background:none; cursor:pointer; line-height:1.5; }
.ctry-name { color:var(--text); font-weight:600; text-align:left; overflow-wrap:anywhere; }
.ctry-link { color:var(--accent); font-weight:600; }
.ctry-view button:focus-visible, .ctry-view input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.ctry-location { font-size:12px; margin:10px 0; }.ctry-location small { display:block; font-size:10px; color:var(--text-secondary); margin-top:3px; }
.ctry-address { font-size:11px; color:var(--text-secondary); margin-top:8px; }.ctry-address summary { cursor:pointer; padding:5px 0; }
.ctry-address > div { border-left:2px solid var(--border); padding:7px 12px; margin:8px 0; }.ctry-address small { display:block; margin-top:3px; }.ctry-address p { margin:5px 0 0; line-height:1.6; overflow-wrap:anywhere; }
@media(max-width:800px) { .ctry-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.ctry-panel { padding:14px; } }
@media(max-width:480px) { .ctry-table { min-width:520px; }.ctry-switch button { padding:8px; font-size:11px; }.ctry-stats > * { padding:13px; } }
