
:root {
  --bg: #08090d;
  --bg-alt: #0f1218;
  --panel: rgba(18, 22, 30, 0.88);
  --panel-strong: rgba(16, 20, 28, 0.96);
  --panel-soft: rgba(27, 33, 45, 0.8);
  --ink: #edf0f7;
  --muted: #9aa3b6;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #72f1b8;
  --accent-soft: rgba(114, 241, 184, 0.14);
  --accent-2: #7f8cff;
  --accent-3: #ff8f6b;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(127, 140, 255, 0.24), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(255, 143, 107, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(114, 241, 184, 0.12), transparent 24%),
    linear-gradient(180deg, #05060a 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  opacity: 0.45;
}
a { color: inherit; text-decoration: none; }

.shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.94), rgba(10, 13, 20, 0.86));
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(127, 140, 255, 0.12), rgba(114, 241, 184, 0.06)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand-kicker,
.eyebrow,
.card-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.brand strong {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.nav {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.nav section h2 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(90deg, var(--accent-soft), rgba(127, 140, 255, 0.12));
  color: var(--ink);
}

.subject-group ul {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.content {
  padding: 36px;
}

.hero,
.section,
.article {
  background: linear-gradient(180deg, rgba(19, 23, 32, 0.96), rgba(12, 15, 22, 0.94));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 241, 184, 0.14), transparent 70%);
  filter: blur(8px);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.96;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 600;
  max-width: 12ch;
}

.hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-band {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-band div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.hero-band span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.hero-band strong {
  font-size: 1.5rem;
}

.section {
  margin-top: 22px;
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.report-row {
  display: block;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--panel-soft);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.card:hover,
.report-row:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(114, 241, 184, 0.24);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card h3,
.report-row h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 600;
}

.card p,
.report-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stats {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats-wide {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.stats dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.stats dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.micro-stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.micro-stats span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(255,255,255,0.02);
}

.bloom-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bloom-grid.full {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.bloom-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.bloom-chip {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.bloom-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.bloom-chip strong {
  color: var(--ink);
}

.report-list {
  display: grid;
  gap: 14px;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-row span {
  color: var(--accent);
  font-weight: 700;
}

.article {
  padding: 32px;
}

.article .breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-content {
  line-height: 1.72;
  font-size: 1.06rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  line-height: 1.12;
  margin-top: 1.7em;
}

.article-content h1 { font-size: 2.4rem; margin-top: 0; }
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.22rem; }
.article-content p,
.article-content li { color: #d8deeb; }

.article-content pre {
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: #05070b;
  color: #f6f7fb;
  border: 1px solid rgba(255,255,255,0.07);
}

.article-content code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.article-content :not(pre) > code {
  background: rgba(127, 140, 255, 0.15);
  padding: 0.14em 0.35em;
  border-radius: 8px;
}

.subsection {
  margin-top: 22px;
}

.subsection h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty { color: var(--muted); }

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 18px;
  }

  .stats-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .article {
    border-radius: 22px;
  }

  .section-head,
  .report-row {
    display: grid;
  }

  .stats,
  .stats-wide {
    grid-template-columns: 1fr;
  }
}
