.research-post { --reading-width: var(--max-width); }
.snowball-theme {
  --bg: #f8fafc;
  --text: #202a35;
  --muted: #607084;
  --line: #dce5ee;
  --accent: #376d9f;
  --accent-strong: #285680;
}
.snowball-theme .research-header h1,
.snowball-theme .research-content h2,
.snowball-theme .research-content h3 { color: #263e56; }
.snowball-theme .research-toc,
.snowball-theme .research-content th { background: #edf3f9; }
.snowball-theme .research-content code,
.snowball-theme .research-content pre { background: #eaf0f6; }
.snowball-theme .research-content pre code { background: transparent; }
.snowball-theme .research-reports { border-left-color: #9bb8d3; }
.research-header { max-width: var(--reading-width); margin: 0 auto 40px; }
.research-header .back-link { margin-bottom: 30px; }
.research-header h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; text-wrap: balance; }
.research-deck { margin: 22px 0 20px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.research-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.research-meta time { font-size: inherit; font-weight: 400; }
.research-content { max-width: var(--reading-width); margin: auto; font-size: 17px; line-height: 1.85; }
.research-content p { margin: 0 0 22px; }
.research-content h2 { margin: 68px 0 26px; padding-top: 22px; border-top: 1px solid var(--line); font-family: "Source Serif 4", Georgia, serif; font-size: 32px; scroll-margin-top: 24px; }
.research-content h3 { margin: 42px 0 18px; font-size: 21px; line-height: 1.4; scroll-margin-top: 24px; }
.research-content a { overflow-wrap: anywhere; }
.research-content strong { font-weight: 650; }
.research-content ul { padding-left: 22px; }
.research-content li { padding-left: 3px; margin-bottom: 8px; }
.research-figure { width: 100%; margin: 30px 0 36px; }
.research-figure img { display: block; width: 100%; height: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
.research-figure > a { display: block; cursor: zoom-in; }
.research-figure figcaption { max-width: var(--reading-width); margin: 12px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.research-figure figcaption p { margin: 0; }
.research-hero { margin-top: 0; margin-bottom: 38px; }
.research-hero img { border: 0; border-radius: 12px; }
.research-toc { margin: 36px 0 44px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 10px; background: #f1f5f0; font-size: 14px; line-height: 1.65; }
.research-toc-title { margin-bottom: 16px; font-size: 12px; font-weight: 700; color: var(--accent-strong); letter-spacing: .08em; text-transform: uppercase; }
.research-toc ul { list-style: none; padding: 0; margin: 0; }
.research-toc li { padding: 0; margin: 0 0 14px; }
.research-toc li:last-child { margin-bottom: 0; }
.research-toc a { text-decoration: none; }
.research-toc .toc-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.research-toc .toc-sub a { color: var(--muted); }
.research-toc a:hover { text-decoration: underline; }
.research-content .table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 8px; background: white; }
.research-content table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.research-content th { background: #f1f5f0; font-weight: 650; }
.research-content td, .research-content th { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.research-content tr:last-child td { border-bottom: 0; }
.research-content table:first-child th:first-child { min-width: 150px; }
.research-content code { font-size: .85em; padding: 2px 5px; border-radius: 4px; background: #edf1ec; overflow-wrap: anywhere; }
.research-content pre { padding: 20px 22px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #edf1ec; font-size: 13px; line-height: 1.75; }
.research-content pre code { padding: 0; background: transparent; }
.research-reports { margin: 24px 0 36px; padding: 14px 18px; border-left: 3px solid #bdd0be; color: var(--muted); font-size: 13px; line-height: 1.75; }
.research-reports p { margin: 0; }
.research-reports a { color: var(--accent-strong); }
@media (max-width: 800px) {
  .research-header { margin-bottom: 28px; }
  .research-content { font-size: 16px; line-height: 1.8; }
  .research-content h2 { font-size: 28px; margin-top: 48px; }
  .research-content h3 { font-size: 20px; }
  .research-toc { padding: 20px; }
  .research-deck { font-size: 17px; }
  .research-content td, .research-content th { padding: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
