:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-soft: #0d1324;
  --panel: rgba(17, 26, 46, .88);
  --panel-strong: rgba(23, 33, 58, .96);
  --text: #edf4ff;
  --muted: #aab8d4;
  --soft: #dbeafe;
  --accent: #67e8f9;
  --accent-2: #a78bfa;
  --accent-3: #34d399;
  --danger: #fb7185;
  --border: rgba(255,255,255,.12);
  --border-strong: rgba(125,211,252,.30);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 22px;
  --space: clamp(1rem, 2vw, 1.5rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(103,232,249,.22), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(167,139,250,.20), transparent 30rem),
    linear-gradient(180deg, #090e1d 0%, var(--bg) 55%, #050812 100%);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: white; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; transform: translateY(-200%); background: var(--accent); color: #06111f; padding: .6rem .9rem; border-radius: 999px; z-index: 20; }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 20; }
.site-header, .site-footer { max-width: 1360px; margin: 0 auto; padding: var(--space); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 12; backdrop-filter: blur(18px); background: rgba(7,11,22,.72); border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { color: white; font-weight: 900; font-size: 1.22rem; text-decoration: none; letter-spacing: -.02em; }
.brand::before { content: "◈"; color: var(--accent); margin-right: .45rem; }
nav { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.site-header nav a { color: var(--soft); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: .48rem .82rem; background: rgba(255,255,255,.04); }
.site-header nav a:hover { border-color: var(--border-strong); background: rgba(103,232,249,.10); }
.app-shell { max-width: 1360px; margin: 0 auto; padding: 0 var(--space) 4rem; display: grid; grid-template-columns: minmax(220px, 285px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.content-main--solo { max-width: 1060px; margin: 0 auto; padding: 0 var(--space) 4rem; }
.site-sidebar { position: sticky; top: 5.4rem; }
.sidebar-card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(17,26,46,.94), rgba(9,14,29,.88)); padding: 1rem; box-shadow: var(--shadow); }
.sidebar-card h2 { margin: .15rem 0 1rem; font-size: 1.05rem; }
.category-nav { display: grid; gap: .45rem; }
.category-nav a { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .68rem .72rem; border-radius: 15px; border: 1px solid transparent; color: var(--soft); text-decoration: none; background: rgba(255,255,255,.035); }
.category-nav a:hover, .category-nav a.is-active { border-color: var(--border-strong); background: rgba(103,232,249,.11); color: white; }
.category-nav small { min-width: 1.7rem; text-align: center; border-radius: 999px; padding: .1rem .45rem; color: #06111f; background: var(--accent); font-weight: 800; }
.hero, .page-heading, .article-detail, .stats-panel, .category-article-list { background: linear-gradient(135deg, rgba(103,232,249,.14), rgba(167,139,250,.10)); border: 1px solid var(--border); border-radius: calc(var(--radius) + 10px); padding: clamp(1.4rem, 4vw, 3rem); margin: 1rem 0 1.25rem; box-shadow: var(--shadow); }
.hero h1, .page-heading h1, .article-detail h1 { font-size: clamp(2.1rem, 6vw, 4.7rem); line-height: 1.02; margin: .2rem 0 1rem; letter-spacing: -.05em; }
.section-head { margin: 2rem 0 .75rem; }
.section-head h2, .stats-panel h2, .category-article-list h2 { margin: .1rem 0 .75rem; font-size: clamp(1.35rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.lead, .hero p, .page-heading p { color: var(--muted); max-width: 780px; font-size: 1.12rem; }
.eyebrow, .meta { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .075em; }
.search { display: grid; grid-template-columns: 1fr auto; gap: .75rem; max-width: 760px; margin-top: 1.5rem; }
.search label { grid-column: 1 / -1; font-weight: 800; }
input, button, .button { border: 1px solid var(--border); border-radius: 999px; padding: .85rem 1rem; font: inherit; }
input { background: rgba(255,255,255,.08); color: var(--text); min-width: 0; }
button, .button { background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #04111d; font-weight: 900; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.button-secondary { background: rgba(255,255,255,.07); color: var(--soft); border-color: var(--border-strong); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.card { background: linear-gradient(180deg, rgba(17,26,46,.92), rgba(12,18,34,.92)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; min-height: 100%; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.card:hover { border-color: rgba(103,232,249,.32); transform: translateY(-1px); transition: transform .18s ease, border-color .18s ease; }
.card h3 { margin-top: 0; line-height: 1.2; }
.card h3 a { color: white; text-decoration: none; }
.card p { color: var(--muted); }
.card .meta, .article-detail .meta { display: flex; gap: .75rem; flex-wrap: wrap; text-transform: none; letter-spacing: normal; }
.stats-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 1rem; align-items: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.stat-card { border: 1px solid var(--border); border-radius: 18px; padding: 1rem; background: rgba(255,255,255,.055); }
.stat-card strong { display: block; color: white; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
.stat-card span { color: var(--accent); font-weight: 900; }
.stat-card p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.short-list { display: grid; gap: .65rem; }
.short-article { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.055); text-decoration: none; color: white; }
.short-article:hover { border-color: var(--border-strong); background: rgba(103,232,249,.11); }
.short-article span { font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.short-article small { color: var(--muted); }
.article-detail { max-width: 900px; }
.content-body { margin-top: 2rem; font-size: 1.08rem; }
.content-body h2 { margin-top: 2rem; color: white; letter-spacing: -.02em; }
.content-body p { color: #d9e4f7; }
.sources-toggle { margin: 2rem 0 0; border: 1px solid rgba(103,232,249,.28); border-radius: 18px; background: rgba(103,232,249,.08); overflow: hidden; }
.sources-toggle summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 900; color: white; }
.sources-toggle ul { margin: 0; padding: 0 1.2rem 1.1rem 2rem; color: var(--muted); }
.sources-toggle li + li { margin-top: .5rem; }
.empty { border: 1px dashed var(--border); padding: 1.5rem; border-radius: var(--radius); color: var(--muted); }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; width: 3rem; height: 3rem; display: none; align-items: center; justify-content: center; padding: 0; z-index: 15; }
.back-to-top.is-visible { display: inline-flex; }
.site-footer { color: var(--muted); border-top: 1px solid var(--border); }
.rating-mini { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1rem; padding: .65rem .8rem; border: 1px solid rgba(125,211,252,.25); border-radius: 999px; background: rgba(125,211,252,.08); color: var(--muted); font-size: .92rem; }
.rating-mini strong { color: var(--text); white-space: nowrap; }
.rating-panel { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid rgba(125,211,252,.24); border-radius: var(--radius); background: linear-gradient(135deg, rgba(125,211,252,.10), rgba(192,132,252,.08)); }
.rating-panel h2 { margin: .2rem 0 .7rem; }
.rating-breakdown { display: grid; gap: .55rem; margin: 1rem 0; }
.rating-breakdown div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.04); }
.rating-breakdown dt { color: var(--muted); }
.rating-breakdown dd { margin: 0; font-weight: 800; color: var(--text); }
.criteria-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
.criteria-table th, .criteria-table td { padding: .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.criteria-table thead th { color: white; background: rgba(255,255,255,.06); }
.criteria-table tbody th { color: var(--accent); }
.article-metadata-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 0; }
.article-metadata-list div { border: 1px solid var(--border); border-radius: 14px; padding: .8rem; background: rgba(255,255,255,.03); }
.article-metadata-list dt { color: var(--muted); font-size: .82rem; margin-bottom: .25rem; }
.article-metadata-list dd { margin: 0; font-weight: 800; }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .category-nav { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .stats-panel { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .search { grid-template-columns: 1fr; }
  .hero, .page-heading, .article-detail, .stats-panel, .category-article-list { padding: 1.15rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .short-article span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
