
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #f0f5fb;
  --text: #102033;
  --muted: #64748b;
  --primary: #0b1f3a;
  --primary-2: #123c69;
  --accent: #16a085;
  --accent-2: #e5f7f2;
  --warning: #f59e0b;
  --danger: #dc2626;
  --line: #dbe4ef;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, canvas { max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 850px; }
.skip-link { position:absolute; left:-999px; top:8px; background:var(--primary); color:white; padding:10px 14px; border-radius:8px; z-index:100; }
.skip-link:focus { left:8px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hidden { display:none !important; }
.muted { color: var(--muted); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,228,239,0.9);
}
.nav-wrap { display:flex; align-items:center; justify-content:space-between; min-height:74px; gap:20px; }
.brand { display:flex; align-items:center; gap:11px; font-weight:800; letter-spacing:-0.02em; }
.brand-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:13px; background:linear-gradient(135deg, var(--primary), var(--accent)); color:#fff; font-size:13px; box-shadow: 0 12px 24px rgba(11,31,58,.18); }
.brand-text { font-size: 1.05rem; }
.site-nav { display:flex; gap:4px; align-items:center; }
.site-nav a { padding:10px 12px; border-radius:999px; color:#334155; font-weight:650; font-size:.94rem; }
.site-nav a.active, .site-nav a:hover { background:var(--surface-strong); color:var(--primary); }
.nav-toggle { display:none; width:44px; height:44px; border:1px solid var(--line); background:#fff; border-radius:12px; }
.nav-toggle span:not(.sr-only) { display:block; width:18px; height:2px; margin:4px auto; background:var(--primary); border-radius:999px; }
.hero { position:relative; overflow:hidden; padding:82px 0 70px; background: radial-gradient(circle at 20% 15%, rgba(22,160,133,.16), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%); }
.hero::after { content:""; position:absolute; right:-120px; top:80px; width:320px; height:320px; border-radius:50%; background:rgba(18,60,105,.08); }
.hero-grid { display:grid; grid-template-columns: minmax(0, 1.25fr) 400px; gap:52px; align-items:center; position:relative; z-index:1; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:.74rem; }
.eyebrow::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; }
h1, h2, h3 { line-height:1.12; margin:0 0 14px; letter-spacing:-0.035em; }
h1 { font-size: clamp(2.35rem, 6vw, 5rem); max-width: 900px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 16px; }
.hero-copy p { font-size:1.18rem; color:var(--muted); max-width:720px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:28px 0; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:999px; font-weight:750; border:1px solid transparent; transition:.18s ease; }
.btn.primary { background:var(--primary); color:white; box-shadow:0 10px 25px rgba(11,31,58,.18); }
.btn.primary:hover { background:var(--primary-2); color:white; transform:translateY(-1px); }
.btn.ghost { background:white; color:var(--primary); border-color:var(--line); }
.btn.ghost:hover { border-color:var(--accent); color:var(--accent); }
.search-panel { margin-top:30px; padding:18px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); max-width:720px; }
.search-panel label, .input-label { display:flex; flex-direction:column; gap:8px; font-weight:760; color:var(--primary); }
.search-row { display:flex; gap:10px; }
input, select { width:100%; border:1px solid var(--line); background:#fff; border-radius:12px; padding:12px 14px; color:var(--text); outline:none; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline:3px solid rgba(22,160,133,.22); outline-offset:2px; border-color:var(--accent); }
.search-results { margin-top:12px; display:grid; gap:8px; }
.search-results a { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-strong); }
.hero-card, .panel, .card, .article-card, .category-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.hero-card { padding:28px; }
.map-orb { width:92px; height:92px; border-radius:32px; display:grid; place-items:center; background:linear-gradient(135deg, rgba(22,160,133,.18), rgba(18,60,105,.12)); color:var(--primary); font-size:2rem; font-weight:900; margin-bottom:20px; }
.stat-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin:18px 0; }
.stat-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat { padding:14px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(180deg, #fff, #f8fbff); }
.stat span { display:block; color:var(--muted); font-size:.82rem; }
.stat strong { display:block; font-size:1.55rem; line-height:1.1; color:var(--primary); margin-top:4px; }
.section { padding:70px 0; }
.section.alt { background:#fff; border-block:1px solid var(--line); }
.section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:24px; }
.section-head.inline { margin-bottom:18px; }
.link-arrow { font-weight:800; color:var(--primary); }
.link-arrow::after { content:" →"; color:var(--accent); }
.card-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }
.category-grid { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:14px; }
.category-grid.large { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card, .article-card, .category-card { padding:20px; position:relative; overflow:hidden; transition:.18s ease; }
.card:hover, .article-card:hover, .category-card:hover { transform: translateY(-3px); border-color: rgba(22,160,133,.45); }
.card .category, .pill { display:inline-flex; padding:6px 10px; border-radius:999px; background:var(--accent-2); color:#08735d; font-weight:800; font-size:.78rem; }
.card h3 { margin-top:16px; }
.card p, .article-card p, .category-card p { color:var(--muted); }
.card-meta, .meta-row { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; color:var(--muted); font-size:.91rem; }
.card-kpis { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:8px; margin:16px 0; }
.card-kpis div { background:var(--surface-strong); border-radius:12px; padding:10px; }
.card-kpis span { display:block; color:var(--muted); font-size:.76rem; }
.card-kpis strong { display:block; color:var(--primary); }
.two-col { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:28px; }
.stack { display:grid; gap:14px; }
.category-card { min-height:154px; display:flex; flex-direction:column; justify-content:space-between; }
.category-icon { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:var(--surface-strong); font-size:1.25rem; margin-bottom:12px; }
.page-hero { padding:54px 0 46px; background:linear-gradient(180deg, #fff 0%, #f6f8fb 100%); border-bottom:1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 4rem); }
.page-hero p { color:var(--muted); font-size:1.08rem; }
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:18px; color:var(--muted); font-size:.92rem; }
.breadcrumbs a { color:var(--primary); font-weight:750; }
.breadcrumbs span::before, .breadcrumbs a + a::before { content:"/"; margin-right:8px; color:#94a3b8; }
.toolbar { display:flex; align-items:end; gap:14px; margin-bottom:20px; }
.toolbar .grow, .input-label.grow { flex:1; }
.empty-state { padding:26px; border:1px dashed var(--line); border-radius:var(--radius); color:var(--muted); text-align:center; background:#fff; }
.ranking-header { display:grid; grid-template-columns: minmax(0,1fr) 280px; gap:28px; align-items:stretch; }
.summary-mini { padding:22px; border-radius:var(--radius); background:var(--primary); color:#fff; box-shadow:var(--shadow); }
.summary-mini span, .summary-mini small { display:block; color:rgba(255,255,255,.72); }
.summary-mini strong { display:block; font-size:3.2rem; line-height:1; margin:14px 0 8px; }
.ranking-layout { display:grid; grid-template-columns: minmax(0,1fr) 380px; gap:22px; align-items:start; }
.main-panel, .side-panel { display:grid; gap:18px; }
.panel { padding:22px; }
.controls-panel { display:flex; gap:14px; align-items:end; }
.panel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.table-wrap { width:100%; overflow:auto; border:1px solid var(--line); border-radius:16px; }
table { width:100%; border-collapse:collapse; min-width:720px; background:#fff; }
th, td { padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
th { background:#f8fbff; color:var(--primary); font-size:.86rem; text-transform:uppercase; letter-spacing:.05em; }
th button { border:0; background:transparent; padding:0; display:inline-flex; align-items:center; gap:6px; font-weight:850; color:inherit; }
th button span::after { content:"↕"; color:#94a3b8; font-size:.78rem; }
th button.active.asc span::after { content:"↑"; color:var(--accent); }
th button.active.desc span::after { content:"↓"; color:var(--accent); }
tbody tr:hover { background:#fbfdff; }
tbody tr.uz-row { background:linear-gradient(90deg, rgba(22,160,133,.13), rgba(22,160,133,.04)); box-shadow: inset 4px 0 0 var(--accent); font-weight:750; }
tbody tr:last-child td { border-bottom:0; }
.country-cell { display:flex; align-items:center; gap:10px; }
.flag-dot { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--surface-strong); color:var(--primary); font-size:.72rem; font-weight:850; }
.change { display:inline-flex; align-items:center; justify-content:center; min-width:56px; padding:4px 8px; border-radius:999px; font-weight:850; font-size:.86rem; background:#f1f5f9; }
.change.up { color:#047857; background:#dcfce7; }
.change.down { color:#b91c1c; background:#fee2e2; }
.change.same { color:#475569; background:#f1f5f9; }
.uz-card { border-color:rgba(22,160,133,.35); }
.interpretation { padding:14px; border-radius:16px; background:var(--accent-2); color:#075c4b; font-weight:700; }
.chart-card { min-height:360px; }
.chart-note, .sample-note { color:var(--muted); font-size:.9rem; }
.article-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.article-card { min-height:230px; display:flex; flex-direction:column; }
.article-card .read-more { margin-top:auto; font-weight:850; color:var(--primary); }
.article-page { padding:56px 0 76px; }
.article-page h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); }
.lead { font-size:1.22rem; color:var(--muted); margin:22px 0 28px; }
.article-body { display:grid; gap:16px; font-size:1.04rem; }
.article-body h2 { margin-top:18px; }
.callout { margin-top:32px; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-strong); }
.content-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; }
.content-grid .panel:first-child { grid-column: span 2; }
.check-list { padding-left:0; list-style:none; margin:0; display:grid; gap:10px; }
.check-list li { position:relative; padding-left:28px; }
.check-list li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:900; }
.site-footer { background:var(--primary); color:#e5edf7; padding:46px 0 22px; }
.site-footer a { display:block; color:#d8e5f3; margin:8px 0; }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap:28px; }
.footer-brand { margin-bottom:14px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:28px; padding-top:18px; display:flex; align-items:center; justify-content:space-between; color:#b8c7d9; }
.footer-bottom a { margin:0; }
@media (max-width: 980px) {
  .hero-grid, .ranking-header, .ranking-layout, .two-col, .content-grid, .footer-grid { grid-template-columns:1fr; }
  .content-grid .panel:first-child { grid-column:auto; }
  .card-grid, .article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-grid, .category-grid.large { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .side-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width:min(100% - 28px, var(--container)); }
  .nav-toggle { display:block; }
  .site-nav { position:absolute; left:14px; right:14px; top:74px; display:none; flex-direction:column; align-items:stretch; padding:12px; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
  .site-nav.open { display:flex; }
  .site-nav a { border-radius:12px; }
  .hero { padding:54px 0; }
  .search-row, .toolbar, .controls-panel, .section-head, .footer-bottom { flex-direction:column; align-items:stretch; }
  .card-grid, .article-grid, .category-grid, .category-grid.large, .side-panel { grid-template-columns:1fr; }
  .stat-grid { grid-template-columns:1fr; }
  h1 { font-size: clamp(2.2rem, 13vw, 3.6rem); }
  .page-hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .summary-mini strong { font-size:2.6rem; }
  .panel { padding:18px; }
  th, td { padding:12px; }
}

/* Theme and compact chart update */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0f1b2d;
  --surface-strong: #14243a;
  --text: #edf5ff;
  --muted: #a7b5c9;
  --accent: #28d7b0;
  --accent-2: rgba(40, 215, 176, 0.14);
  --line: #26364f;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.nav-wrap { position: relative; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-icon { font-size: 1rem; line-height: 1; }

.chart-card { min-height: auto; }
.chart-box {
  position: relative;
  width: 100%;
  height: 230px;
  max-height: 230px;
}
.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 230px !important;
}

html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .site-header {
  background: rgba(7, 17, 31, 0.9);
  border-bottom-color: rgba(38, 54, 79, 0.9);
}
html[data-theme="dark"] .site-nav a { color: #d8e6f7; }
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .site-nav a:hover { background: var(--surface-strong); color: #ffffff; }
html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(40, 215, 176, 0.14), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(82, 137, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1628 0%, #07111f 100%);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .section.alt { background: #0a1424; border-block-color: var(--line); }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .search-panel {
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.98), rgba(12, 23, 39, 0.98));
  border-color: var(--line);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select {
  background: #0b1628;
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="dark"] input::placeholder { color: #7f8fa5; }
html[data-theme="dark"] .btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line); }
html[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #22c7a7, #2878ff); color: #03101d; }
html[data-theme="dark"] .brand-mark { box-shadow: 0 12px 28px rgba(40, 215, 176, 0.16); }
html[data-theme="dark"] .map-orb,
html[data-theme="dark"] .category-icon,
html[data-theme="dark"] .flag-dot,
html[data-theme="dark"] .card-kpis div,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .callout {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="dark"] .stat { background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)); }
html[data-theme="dark"] .stat strong,
html[data-theme="dark"] .card-kpis strong,
html[data-theme="dark"] .link-arrow,
html[data-theme="dark"] .input-label,
html[data-theme="dark"] .search-panel label,
html[data-theme="dark"] th,
html[data-theme="dark"] th button,
html[data-theme="dark"] .brand { color: var(--text); }
html[data-theme="dark"] .search-results a { background: var(--surface-strong); border-color: var(--line); }
html[data-theme="dark"] .table-wrap { border-color: var(--line); }
html[data-theme="dark"] table { background: var(--surface); }
html[data-theme="dark"] th { background: #111f35; }
html[data-theme="dark"] td { border-bottom-color: var(--line); }
html[data-theme="dark"] tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
html[data-theme="dark"] tbody tr.uz-row { background: linear-gradient(90deg, rgba(40, 215, 176, 0.18), rgba(40, 215, 176, 0.055)); }
html[data-theme="dark"] .interpretation { background: rgba(40, 215, 176, 0.13); color: #8df4da; }
html[data-theme="dark"] .summary-mini { background: linear-gradient(135deg, #0d263f, #123b60); }
html[data-theme="dark"] .site-footer { background: #050c17; border-top: 1px solid var(--line); }
html[data-theme="dark"] .empty-state { background: var(--surface); border-color: var(--line); }

@media (max-width: 760px) {
  .nav-right { gap: 8px; }
  .theme-toggle-text { display: none; }
  .theme-toggle { width: 44px; padding: 0; justify-content: center; border-radius: 12px; }
  .chart-box { height: 210px; max-height: 210px; }
  .chart-box canvas { max-height: 210px !important; }
}

/* Databricks-inspired color refresh and readability fixes */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f9f7f4;
  --surface: #fffdfa;
  --surface-strong: #eeede9;
  --text: #1b3139;
  --muted: #5f6f76;
  --primary: #1b3139;
  --primary-2: #294953;
  --accent: #ff3621;
  --accent-2: rgba(255, 54, 33, 0.09);
  --line: #dfdbd3;
  --shadow: 0 18px 45px rgba(27, 49, 57, 0.08);
}

html[data-theme="dark"] {
  --bg: #0a1118;
  --surface: #111b24;
  --surface-strong: #1b2a34;
  --text: #f6f3ee;
  --muted: #c8d2d8;
  --primary: #f6f3ee;
  --primary-2: #ffffff;
  --accent: #ff5a45;
  --accent-2: rgba(255, 90, 69, 0.16);
  --line: #33434d;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

body { background: var(--bg); color: var(--text); }
.hero,
.page-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 54, 33, 0.11), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(27, 49, 57, 0.08), transparent 25%),
    linear-gradient(180deg, #fffdfa 0%, #f9f7f4 100%);
}
.brand-mark { background: linear-gradient(135deg, #ff3621, #1b3139); }
.btn.primary { background: var(--accent); color: #ffffff; box-shadow: 0 12px 26px rgba(255, 54, 33, 0.20); }
.btn.primary:hover { background: #df2b19; color: #ffffff; }
.link-arrow::after { color: var(--accent); }
.card .category,
.pill {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  background: var(--accent-2);
  color: #c72919;
}
.article-card .pill { display: inline-flex; }
.eyebrow { color: var(--accent); }
.eyebrow::before { background: currentColor; }
.search-panel,
.hero-card,
.panel,
.card,
.article-card,
.category-card {
  border-color: var(--line);
}
.card:hover,
.article-card:hover,
.category-card:hover { border-color: rgba(255, 54, 33, 0.45); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.stat strong,
.card-kpis strong,
.link-arrow,
.article-card .read-more { color: var(--text); }
.article-card .read-more:hover { color: var(--accent); }
.search-results a:hover { border-color: rgba(255, 54, 33, 0.45); }
.interpretation { background: var(--accent-2); color: #9f2418; }
tbody tr.uz-row {
  background: linear-gradient(90deg, rgba(255, 54, 33, 0.13), rgba(255, 54, 33, 0.04));
  box-shadow: inset 4px 0 0 var(--accent);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 90, 69, 0.15), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #111b24 0%, #0a1118 100%);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .site-header { background: rgba(10, 17, 24, 0.9); }
html[data-theme="dark"] .brand-text,
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .breadcrumbs,
html[data-theme="dark"] .breadcrumbs span,
html[data-theme="dark"] .breadcrumbs a,
html[data-theme="dark"] .meta-row,
html[data-theme="dark"] .card-meta,
html[data-theme="dark"] .chart-note,
html[data-theme="dark"] .sample-note { color: var(--muted); }
html[data-theme="dark"] .breadcrumbs a:hover,
html[data-theme="dark"] .article-card .read-more,
html[data-theme="dark"] .link-arrow,
html[data-theme="dark"] .site-footer a:hover { color: #ffd2ca; }
html[data-theme="dark"] .article-card .read-more:hover,
html[data-theme="dark"] .link-arrow:hover { color: var(--accent); }
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .site-nav a:hover { background: rgba(255, 90, 69, 0.12); color: #ffffff; }
html[data-theme="dark"] .card .category,
html[data-theme="dark"] .pill { background: rgba(255, 90, 69, 0.16); color: #ffd2ca; }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .search-panel {
  background: linear-gradient(180deg, rgba(17, 27, 36, 0.98), rgba(13, 22, 30, 0.98));
  border-color: var(--line);
}
html[data-theme="dark"] .card p,
html[data-theme="dark"] .article-card p,
html[data-theme="dark"] .category-card p,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .muted { color: var(--muted); }
html[data-theme="dark"] .stat strong,
html[data-theme="dark"] .card-kpis strong,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 { color: var(--text); }
html[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #ff5a45, #ff8a3d); color: #160806; }
html[data-theme="dark"] .btn.primary:hover { background: #ff6c59; color: #160806; }
html[data-theme="dark"] .btn.ghost:hover { color: #ffd2ca; border-color: var(--accent); }
html[data-theme="dark"] input,
html[data-theme="dark"] select { background: #0b141c; color: var(--text); border-color: var(--line); }
html[data-theme="dark"] input::placeholder { color: #aab8c0; }
html[data-theme="dark"] th { color: #eef3f5; background: #172630; }
html[data-theme="dark"] td { color: #e9eef1; }
html[data-theme="dark"] tbody tr.uz-row { background: linear-gradient(90deg, rgba(255, 90, 69, 0.20), rgba(255, 90, 69, 0.06)); }
html[data-theme="dark"] .interpretation { background: rgba(255, 90, 69, 0.16); color: #ffd2ca; }
html[data-theme="dark"] .change.same { color: #d9e2e7; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 760px) {
  .site-nav { background: var(--surface); }
  html[data-theme="dark"] .site-nav { background: #111b24; border-color: var(--line); }
}

/* High-quality inline SVG icons */
.brand-mark svg,
.category-icon svg,
.theme-toggle-icon svg,
.meta-icon-label svg,
.map-orb svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark svg { width: 25px; height: 25px; color: #ffffff; }
.brand-mark svg path:first-child { fill: rgba(255,255,255,0.08); }
.category-icon {
  color: var(--accent);
  background: var(--accent-2);
}
.category-icon svg { width: 25px; height: 25px; }
.theme-toggle-icon { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle-icon svg { width: 17px; height: 17px; color: currentColor; }
.meta-icon-label { display: inline-flex; align-items: center; gap: 6px; }
.meta-icon-label svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; }
.map-orb { color: var(--accent); }
.map-orb svg { width: 54px; height: 54px; }
html[data-theme="dark"] .category-icon { background: rgba(255, 90, 69, 0.14); color: #ff8a78; }
html[data-theme="dark"] .map-orb { color: #ff8a78; }

/* Final chart clamp + exact Databricks Lava accent */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --accent: #FF3621;
}
html[data-theme="light"] {
  --accent-2: rgba(255, 54, 33, 0.09);
}
html[data-theme="dark"] {
  --accent-2: rgba(255, 54, 33, 0.17);
}
.btn.primary,
html[data-theme="dark"] .btn.primary {
  background: #FF3621;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 54, 33, 0.22);
}
.btn.primary:hover,
html[data-theme="dark"] .btn.primary:hover {
  background: #E32F1D;
  color: #ffffff;
}
.brand-mark { background: linear-gradient(135deg, #FF3621, #1B3139); }
.card .category,
.pill { color: #B92517; }
.category-icon,
.map-orb,
.meta-icon-label svg { color: #FF3621; }
html[data-theme="dark"] .category-icon,
html[data-theme="dark"] .map-orb,
html[data-theme="dark"] .meta-icon-label svg { color: #FF3621; }

.ranking-layout .chart-card {
  min-height: 0 !important;
  align-self: start;
}
.ranking-layout .chart-box {
  position: relative;
  width: 100%;
  height: 180px !important;
  min-height: 0 !important;
  max-height: 180px !important;
  overflow: hidden;
}
.ranking-layout .chart-box canvas,
#uz-trend-chart {
  display: block !important;
  width: 100% !important;
  height: 180px !important;
  min-height: 0 !important;
  max-height: 180px !important;
}
@media (max-width: 760px) {
  .ranking-layout .chart-box,
  .ranking-layout .chart-box canvas,
  #uz-trend-chart {
    height: 165px !important;
    max-height: 165px !important;
  }
}


/* Keep news/blog list spacing identical to rankings list page */
#news-page.section,
#blog-page.section,
#rankings-page.section {
  padding-top: 70px;
  padding-bottom: 70px;
}
#news-page .toolbar,
#blog-page .toolbar,
#rankings-page .toolbar {
  margin-bottom: 20px;
}
@media (max-width: 760px) {
  #news-page.section,
  #blog-page.section,
  #rankings-page.section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}


/* Exact Rankings-page margins for News and Blog list pages */
#news-page,
#blog-page,
#rankings-page {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}
#news-page > .container,
#blog-page > .container,
#rankings-page > .container {
  width: min(var(--container), calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#news-page .toolbar,
#blog-page .toolbar,
#rankings-page .toolbar {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
}
#news-page .article-grid,
#blog-page .article-grid,
#rankings-page .card-grid {
  gap: 18px !important;
  margin-top: 0 !important;
}
@media (max-width: 980px) {
  #news-page .article-grid,
  #blog-page .article-grid,
  #rankings-page .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  #news-page,
  #blog-page,
  #rankings-page {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }
  #news-page > .container,
  #blog-page > .container,
  #rankings-page > .container {
    width: min(100% - 28px, var(--container)) !important;
  }
  #news-page .article-grid,
  #blog-page .article-grid,
  #rankings-page .card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Normalize card title margins across all pages */
.card h3,
.article-card h3,
.category-card h3,
.panel h3,
.hero-card h3 {
  margin: 16px 0 14px !important;
}

/* Match ranking card title spacing on news and blog article cards */
.article-card h3 {
  margin-top: 16px !important;
}

/* SVG ranking trend chart and flag country markers */
.svg-chart {
  width: 100%;
  height: 180px;
  max-height: 180px;
}
.svg-chart svg {
  display: block;
  width: 100%;
  height: 180px;
  max-height: 180px;
}
.svg-grid-line {
  stroke: var(--line);
  stroke-width: 1;
}
.svg-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-chart-point {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
}
.svg-axis-text,
.svg-axis-title {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.flag-dot {
  font-size: 1.15rem;
  background: transparent;
}
@media (max-width: 760px) {
  .svg-chart,
  .svg-chart svg {
    height: 165px;
    max-height: 165px;
  }
}

/* Inline SVG country flags and support CTA */
.flag-dot {
  width: 34px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}
.flag-svg {
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
}
.flag-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 20px;
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
}
.support-section {
  padding-top: 24px;
}
.support-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
  margin-top: 34px;
}
.support-card h2 {
  margin-top: 12px;
}
.support-card p {
  max-width: 850px;
  color: var(--muted);
}
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.article-page .support-card {
  margin-top: 36px;
}
html[data-theme="dark"] .flag-svg {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] .support-card {
  background: linear-gradient(135deg, rgba(17, 27, 36, 0.98), rgba(27, 42, 52, 0.92));
}
