:root {
  color-scheme: dark;
  --research-bg: #090909;
  --research-surface: #111111;
  --research-foreground: #f4f4f4;
  --research-muted: #b4b4b4;
  --research-border: #303030;
  --research-red: #f0442e;
  --research-focus: #ff7664;
  font-family: "NB International Pro", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--research-bg); color: var(--research-foreground); }
body { margin: 0; min-width: 320px; background: var(--research-bg); color: var(--research-foreground); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--research-red); }
a:focus-visible { outline: 3px solid var(--research-focus); outline-offset: 4px; border-radius: 2px; }
.research-shell { width: min(100% - 40px, 920px); margin: 0 auto; padding: 32px 0 72px; }
.research-header { padding: 26px 0 38px; border-bottom: 1px solid var(--research-border); margin-bottom: 28px; }
.research-brand { display: inline-flex; align-items: center; color: var(--research-red); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-decoration: none; text-transform: uppercase; }
.research-header h1, .research-article h1 { max-width: 18ch; margin: 22px 0 10px; font-size: clamp(2.2rem, 7vw, 4.25rem); line-height: 1.05; letter-spacing: -0.035em; }
.research-header > p { max-width: 62ch; margin: 0; color: var(--research-muted); font-size: 1.05rem; }
.research-card { padding: 24px 0; border-bottom: 1px solid var(--research-border); }
.research-card h2 { margin: 0 0 12px; font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.25; }
.research-card h2 a { text-decoration: none; }
.research-card > p { max-width: 72ch; margin: 14px 0; color: var(--research-muted); white-space: pre-wrap; }
.research-read { color: var(--research-red); font-weight: 700; }
.research-byline-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.research-avatar { flex: none; width: 48px; height: 48px; border: 1px solid var(--research-border); border-radius: 50%; object-fit: cover; background: var(--research-surface); }
.research-byline { display: grid; gap: 1px; color: var(--research-muted); font-size: 0.9rem; }
.research-byline time { font-size: 0.8rem; }
.research-pagination { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0; }
.research-pagination a { display: inline-block; padding: 10px 14px; border: 1px solid var(--research-border); border-radius: 4px; text-decoration: none; }
.research-shell footer { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 1px solid var(--research-border); color: var(--research-muted); font-size: 0.9rem; }
.research-shell footer p { flex-basis: 100%; margin: 0 0 4px; }
.research-topnav { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0 26px; }
.research-kicker { margin: 0 0 8px; color: var(--research-red); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.research-article > header { padding-bottom: 24px; border-bottom: 1px solid var(--research-border); }
.research-source { margin: 16px 0 0; color: var(--research-muted); font-size: 0.9rem; }
.research-markdown { padding: 28px 0 36px; font-size: 1.04rem; overflow-wrap: anywhere; }
.research-markdown > :first-child { margin-top: 0; }
.research-markdown h1, .research-markdown h2, .research-markdown h3, .research-markdown h4 { margin: 1.7em 0 0.55em; line-height: 1.2; letter-spacing: -0.025em; }
.research-markdown h1 { font-size: 2rem; }
.research-markdown h2 { font-size: 1.65rem; }
.research-markdown h3 { font-size: 1.3rem; }
.research-markdown p, .research-markdown ul, .research-markdown ol, .research-markdown blockquote { margin: 0 0 1.2em; }
.research-markdown ul, .research-markdown ol { padding-left: 1.5em; }
.research-markdown li + li { margin-top: 0.35em; }
.research-markdown blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--research-red); color: var(--research-muted); }
.research-markdown img { display: block; max-width: 100%; height: auto; margin: 1.2em auto; border-radius: 4px; }
.research-markdown pre { max-width: 100%; overflow: auto; padding: 16px; border: 1px solid var(--research-border); border-radius: 4px; background: #030303; font-size: 0.9rem; }
.research-markdown code { font-family: "NB International Pro Mono", ui-monospace, monospace; }
.research-markdown :not(pre) > code { padding: 0.1em 0.35em; border: 1px solid var(--research-border); border-radius: 3px; background: var(--research-surface); }
.research-markdown table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.research-markdown th, .research-markdown td { min-width: 120px; padding: 8px 10px; border: 1px solid var(--research-border); text-align: left; vertical-align: top; }
.research-markdown th { background: var(--research-surface); }
.research-markdown input[type="checkbox"] { accent-color: var(--research-red); }
.research-advice { padding: 18px; border-left: 3px solid var(--research-red); background: var(--research-surface); color: var(--research-muted); }
.research-advice strong { color: var(--research-foreground); }
.research-advice p { margin: 5px 0 0; }
.research-empty { padding: 30px 0; color: var(--research-muted); }

@media (max-width: 600px) {
  .research-shell { width: min(100% - 28px, 920px); padding-top: 20px; }
  .research-header { padding-top: 18px; }
  .research-card { padding: 20px 0; }
  .research-markdown { font-size: 1rem; }
  .research-pagination { align-items: stretch; }
  .research-pagination a { flex: 1; text-align: center; }
}
