
:root {
  --bg: #09101b;
  --bg-soft: #0f1725;
  --panel: rgba(14, 22, 36, 0.78);
  --panel-strong: rgba(11, 18, 30, 0.92);
  --text: #ebf2ff;
  --muted: #a7b7d4;
  --line: rgba(154, 181, 228, 0.18);
  --cyan: #7fe3ff;
  --cyan-2: #3fc7f0;
  --gold: #f1cf7a;
  --violet: #b7a4ff;
  --emerald: #71efc3;
  --rose: #ff9db7;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --content: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(63,199,240,0.18), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(241,207,122,0.12), transparent 28%),
    linear-gradient(180deg, #08101a 0%, #0a1422 55%, #08101a 100%);
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #bff5ff; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--mono); }
.site-shell { min-height: 100vh; }
.site-header, .site-footer, .main-wrap { width: min(calc(100% - 24px), var(--content)); margin: 0 auto; }
.site-header {
  position: sticky; top: 10px; z-index: 20; margin-top: 12px; padding: 14px 16px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
}
.glass {
  background: linear-gradient(180deg, rgba(13,21,35,0.82), rgba(9,16,27,0.9));
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.brand small { display: block; color: var(--muted); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(127,227,255,.25), rgba(183,164,255,.25));
  border: 1px solid rgba(127,227,255,.25); font-weight: 800;
}
.top-nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a { color: var(--muted); font-size: 14px; }
.top-nav a:hover { color: var(--text); }
.main-wrap { padding: 18px 0 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumbs a::after { content: '›'; margin-left: 10px; color: rgba(255,255,255,.25); }
.breadcrumbs a:last-child::after { display: none; }
.hero, .page-hero { padding: 28px; margin-bottom: 22px; }
.hero-index { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; overflow: hidden; }
.hero-copy h1, .page-hero h1 { font-size: clamp(32px, 6vw, 62px); line-height: 1.02; margin: 10px 0 14px; letter-spacing: -0.03em; }
.hero-subtitle { color: var(--muted); font-size: clamp(17px, 2.5vw, 22px); line-height: 1.75; margin: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-badges span, .eyebrow, .stat, .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #d9ecff; background: rgba(127,227,255,.09); border: 1px solid rgba(127,227,255,.14);
}
.hero-visual img {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.11);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.content-grid { display: block; }
.content-grid.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.article-body { padding: 28px; overflow: hidden; }
.toc-card { position: sticky; top: 92px; padding: 18px; }
.toc-card ul { list-style: none; padding-left: 0; margin: 12px 0 0; }
.toc-card li { margin: 10px 0; }
.toc-card a { color: var(--muted); }
.toc-card a:hover { color: var(--text); }
.section { margin: 28px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-head h2, .article-body h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; letter-spacing: -0.02em; }
.article-body h3 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 30px; }
.article-body p, .article-body li { color: #d8e5fb; line-height: 1.82; font-size: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body blockquote {
  margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--cyan);
  background: rgba(127,227,255,.06); border-radius: 0 18px 18px 0;
}
.article-body pre {
  overflow: auto; padding: 18px; border-radius: 18px; background: rgba(4, 9, 18, 0.92);
  border: 1px solid rgba(255,255,255,.08);
}
.article-body code { background: rgba(127,227,255,.08); padding: 2px 6px; border-radius: 8px; }
.article-body pre code { background: transparent; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.article-body strong { color: #fff; }
.cards, .mini-grid, .path-grid, .stats-grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .mini-card, .path-card, .stat-card {
  display: block; padding: 18px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: var(--text);
}
.card:hover, .mini-card:hover, .path-card:hover { transform: translateY(-2px); border-color: rgba(127,227,255,.28); }
.card small, .mini-card span, .path-card span, .muted { display: block; color: var(--muted); line-height: 1.75; }
.card .meta, .source-box, .quote-panel, .callout {
  margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.card-list { display: grid; gap: 14px; }
.stat-card strong { display: block; font-size: 28px; margin-bottom: 8px; }
.kbd { font-family: var(--mono); color: #fff; }
.footer-list { list-style: none; padding-left: 0; }
.footer-list li { margin: 8px 0; }
.site-footer { padding: 0 0 42px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.page-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notice-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); }
.raw-path { word-break: break-all; }
@media (max-width: 980px) {
  .site-header { position: static; }
  .hero-index, .content-grid.with-toc, .stats-grid, .mini-grid { grid-template-columns: 1fr; }
  .cards, .path-grid, .page-grid, .notice-grid { grid-template-columns: 1fr; }
  .toc-card { position: static; }
}
@media (max-width: 640px) {
  .site-header, .site-footer, .main-wrap { width: min(calc(100% - 16px), var(--content)); }
  .site-header { padding: 12px; }
  .hero, .page-hero, .article-body, .toc-card { padding: 18px; border-radius: 20px; }
  .top-nav { gap: 10px; }
  .top-nav a { font-size: 13px; }
  .hero-copy h1, .page-hero h1 { font-size: clamp(28px, 11vw, 44px); }
  .article-body p, .article-body li { font-size: 15px; }
}
