
:root {
  color-scheme: light;
  --text: #172026;
  --muted: #5c6873;
  --line: #d9e0e7;
  --soft: #f5f7f9;
  --accent: #0b6bcb;
  --accent-soft: #e8f2ff;
  --code-bg: #0f1720;
  --code-text: #eaf2f8;
  --max: 1120px;
}
* { 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: #fff;
  line-height: 1.62;
}
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffffee;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 4;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-weight: 760; letter-spacing: 0; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 16px; font-size: 14px; white-space: nowrap; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
h1 { font-size: 44px; line-height: 1.08; margin: 14px 0 18px; letter-spacing: 0; max-width: 980px; }
.subtitle { color: var(--muted); font-size: 18px; max-width: 900px; }
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 64px;
  display: block;
}
.article { min-width: 0; }
.article h1 { display: none; }
.article h2 { font-size: 28px; line-height: 1.22; margin: 48px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); letter-spacing: 0; }
.article h3 { font-size: 20px; line-height: 1.3; margin: 32px 0 10px; letter-spacing: 0; }
.article p, .article li { font-size: 16px; }
.article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 22px 0 34px;
  border: 1px solid var(--line);
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.article th { background: var(--soft); text-align: left; font-weight: 720; }
.article tr:nth-child(even) td { background: #fbfcfd; }
.article code { background: var(--accent-soft); padding: 0.13em 0.32em; border-radius: 4px; font-size: 0.92em; }
.article pre { background: var(--code-bg); color: var(--code-text); overflow: auto; padding: 16px 18px; border-radius: 8px; }
.article pre code { background: transparent; color: inherit; padding: 0; }
.toc-dock {
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}
.floating-toc {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: right;
  pointer-events: none;
}
.floating-toc summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.1);
  font-size: 14px;
  font-weight: 720;
  padding: 9px 14px;
  user-select: none;
  pointer-events: auto;
}
.floating-toc summary::-webkit-details-marker { display: none; }
.floating-toc summary::after {
  content: "v";
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  transform: translateY(-1px);
}
.floating-toc[open] summary {
  border-color: #9bc4ef;
  background: #fbfdff;
}
.floating-toc[open] summary::after { content: "x"; transform: none; }
.toc-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 24px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 140px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 38, 0.16);
  padding: 18px;
  font-size: 14px;
  text-align: left;
  pointer-events: auto;
}
.toc-title { font-weight: 760; margin-bottom: 10px; }
.toc-list ul { list-style: none; padding-left: 0; margin: 0; }
.toc-list li { margin: 7px 0; }
.toc-list ul ul { padding-left: 14px; }
.toc-list a { color: var(--muted); text-decoration: none; }
.toc-list a:hover { color: var(--accent); }
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 28px 24px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.index-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.report-link {
  display: block;
  border: 1px solid var(--line);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  background: #fff;
}
.report-link:hover { border-color: #9bc4ef; background: #fbfdff; }
.report-link h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: 0; }
.report-link p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  h1 { font-size: 34px; }
  .toc-dock {
    top: auto;
    bottom: 18px;
  }
  .floating-toc { padding: 0 16px; }
  .toc-panel {
    top: auto;
    right: 16px;
    bottom: calc(100% + 10px);
    max-height: min(520px, calc(100vh - 120px));
  }
  .article { margin-top: 28px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}
