/* Sorami technical report layout (/research/<slug>/). Shared by every report.
   Reading page modelled on the OpenAI Alignment Research Blog: black sans text,
   plain sticky contents on the left, grey metadata box, colour-coded blocks. */
.rr { --rr-ink: #000000; --rr-sub: #666666; --rr-rule: #e5e7eb; max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; color: var(--rr-ink); }
.rr-crumb { font-size: 0.875rem; color: var(--rr-sub); margin: 0 0 32px; }
.rr-crumb a { color: var(--rr-sub); }
.rr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.rr-body { min-width: 0; max-width: 68ch; overflow-wrap: anywhere; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 1.0625rem; line-height: 1.7; color: var(--rr-ink); }
.rr-body h1, .rr-body h2, .rr-body h3, .rr-body h4 { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; color: var(--rr-ink); font-weight: 700; line-height: 1.3; scroll-margin-top: 96px; }
.rr-body h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); margin: 0 0 20px; letter-spacing: -0.01em; }
.rr-body h2 { font-size: 1.5rem; margin: 56px 0 16px; }
.rr-body h3 { font-size: 1.1875rem; margin: 36px 0 12px; }
.rr-body h4 { font-size: 1.0625rem; margin: 28px 0 8px; }
.rr-body p, .rr-body ul, .rr-body ol, .rr-body blockquote, .rr-body pre, .rr-body .table-wrap { margin: 0 0 20px; }
.rr-body ul, .rr-body ol { padding-left: 24px; }
.rr-body li { margin: 0 0 8px; }
.rr-body a { color: var(--rr-ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.rr-body a:hover { color: #2865a4; }
.rr-body blockquote { border-left: 3px solid #66788c; background: #f0f2f4; padding: 12px 16px; color: #2e3845; }
.rr-body blockquote p:last-child, .rr-body blockquote ul:last-child { margin-bottom: 0; }
.rr-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; background: #f2f4f6; padding: 1px 4px; border-radius: 3px; color: #20242a; overflow-wrap: anywhere; }
.rr-body pre { overflow-x: auto; font-size: 0.8125rem; line-height: 1.55; padding: 12px 16px; background: #f2f4f6; border-left: 3px solid #526477; color: #20242a; }
.rr-body pre code { background: none; padding: 0; border-radius: 0; overflow-wrap: normal; white-space: pre; }
.rr-body img { display: block; max-width: 100%; height: auto; margin: 8px 0; }
.rr-body .figure-caption { font-size: 0.9375rem; color: var(--rr-sub); }
/* Metadata box directly under the H1. */
.rr-body .rr-meta { background: #f0f2f4; border-left: 3px solid #66788c; padding: 14px 18px; margin: 0 0 28px; color: #2e3845; font-size: 0.9375rem; line-height: 1.6; }
.rr-body .rr-meta p { margin: 0; }
.rr-body .rr-meta p:first-child { font-weight: 700; margin-bottom: 4px; }
.rr-body .rr-meta a { color: #2e3845; }
/* Colour-coded blocks. Label line first, then text or a pre block. */
.rr-body .rr-block { padding: 12px 16px; margin: 0 0 20px; color: #20242a; font-size: 0.9375rem; }
.rr-body .rr-block > :last-child { margin-bottom: 0; }
.rr-body .rr-block .rr-label { font-weight: 700; margin: 0 0 6px; font-size: 0.875rem; }
.rr-body .rr-block pre { background: rgba(255, 255, 255, 0.55); border-left: 0; margin: 0 0 8px; }
.rr-body .rr-block code { background: rgba(255, 255, 255, 0.55); }
.rr-body .rr-block pre code { background: none; }
.rr-body .rr-command { background: #eaf2fd; border-left: 3px solid #2865a4; }
.rr-body .rr-command .rr-label { color: #2865a4; }
.rr-body .rr-output { background: #fff3d9; border-left: 3px solid #95630c; }
.rr-body .rr-output .rr-label { color: #95630c; }
.rr-body .rr-observation { background: #eaf5ee; border-left: 3px solid #28714b; }
.rr-body .rr-observation .rr-label { color: #28714b; }
.rr-body .rr-evidence { background: #f2f4f6; border-left: 3px solid #526477; }
.rr-body .rr-evidence .rr-label { color: #526477; }
/* Plain tables: rules, no fills, scroll inside their own box on small screens. */
.rr-body .table-wrap { overflow-x: auto; border: 0; border-radius: 0; box-shadow: none; background: none; }
.rr-body table { overflow-wrap: normal; border-collapse: collapse; width: 100%; font-size: 0.8125rem; line-height: 1.5; }
.rr-body .table-wrap th[scope="col"], .rr-body th { background: none; color: var(--rr-ink); font-size: 0.8125rem; font-weight: 700; text-align: left; vertical-align: bottom; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rr-ink); }
.rr-body .table-wrap tbody td, .rr-body td { padding: 8px 10px 8px 0; vertical-align: top; border-bottom: 1px solid var(--rr-rule); background: none; color: var(--rr-ink); font-size: 0.8125rem; }
.rr-body .table-wrap tbody tr:hover td { background: none; }
/* References appendix. */
.rr-body ol.rr-refs { padding-left: 28px; font-size: 0.9375rem; }
.rr-body ol.rr-refs li { margin: 0 0 10px; }
/* FAQ and contact form, plain. */
.rr-body .faq-list details { border-bottom: 1px solid var(--rr-rule); padding: 12px 0; }
.rr-body .faq-list summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
.rr-body .faq-list p { margin: 12px 0 0; }
.rr-form { font-size: 1rem; }
.rr-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.rr-form label span { font-weight: 400; color: var(--rr-sub); }
.rr-form input[type=text], .rr-form input[type=email], .rr-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid #A1A1AA; border-radius: 4px; background: #fff; }
.rr-form button { font: inherit; font-weight: 700; padding: 10px 20px; border: 1px solid #000; border-radius: 4px; background: #000; color: #fff; cursor: pointer; }
.rr-form .rr-fine { font-size: 0.875rem; color: var(--rr-sub); }
.rr-form .honeypot { display: none; }
/* Contents index: plain small grey links, current section in black. */
.rr-toc { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.8125rem; line-height: 1.45; border-bottom: 1px solid var(--rr-rule); padding-bottom: 12px; }
.rr-toc summary { cursor: pointer; font-weight: 700; color: var(--rr-ink); margin-bottom: 8px; }
.rr-toc ol { list-style: none; margin: 0; padding: 0; }
.rr-toc li { margin: 0; }
.rr-toc a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid transparent; color: var(--rr-sub); text-decoration: none; }
.rr-toc a:hover { color: var(--rr-ink); }
.rr-toc a[aria-current="true"] { color: var(--rr-ink); border-left-color: var(--rr-ink); font-weight: 700; }
.rr a:focus-visible, .rr summary:focus-visible, .rr-form input:focus-visible, .rr-form textarea:focus-visible, .rr-form button:focus-visible { outline: 3px solid #0875AC; outline-offset: 2px; }
@media (min-width: 1000px) {
  .rr-grid { grid-template-columns: 240px minmax(0, 68ch); gap: 64px; }
  .rr-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 480px) {
  .rr { padding: 20px 16px 64px; }
  .rr-body { font-size: 1rem; }
  .rr-body pre { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: no-preference) { html:has(.rr) { scroll-behavior: smooth; } }
/* Sorami framing blocks inside a report read as ordinary text: no boxes or icons. */
.rr-body .answer-first { background: none; border: 0; padding: 0; font-weight: 400; }
.rr-body .check-list { list-style: disc; padding-left: 24px; display: block; }
.rr-body .check-list li { display: list-item; padding: 0; background: none; }
.rr-body .check-list li::before { content: none; }
/* Companion guides reuse .rr-body inside the guide layout: black sans text, same code and log blocks. */
.guide-prose.rr-body { max-width: none; }
.guide-prose.rr-body, .guide-prose.rr-body p, .guide-prose.rr-body li, .guide-prose.rr-body strong,
.guide-prose.rr-body h2, .guide-prose.rr-body h3, .guide-prose.rr-body h4, .guide-prose.rr-body td { color: #000000; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.guide-prose.rr-body pre { background: #f2f4f6; border: 0; border-left: 3px solid #526477; border-radius: 0; color: #20242a; }
.guide-prose.rr-body pre code { color: #20242a; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.guide-prose.rr-body :not(pre) > code { background: #f2f4f6; color: #20242a; }
.guide-prose.rr-body a { color: #000000; text-decoration: underline; text-underline-offset: 2px; }

/* Site-wide p/li are muted grey; report and guide body text is pure black, like the OpenAI alignment blog. */
.rr-body p, .rr-body li, .rr-body ul, .rr-body ol, .rr-body dd, .rr-body dt, .rr-body blockquote p, .rr-body em, .rr-body strong, .rr-body span:not(.rr-label), .rr-body figcaption { color: #000000; }
.rr-body .rr-meta p, .rr-body .rr-meta strong { color: #2e3845; }
.rr-body .rr-block p:not(.rr-label), .rr-body .rr-block li { color: #20242a; }
.rr-body .figure-caption, .rr-body .rr-fine, .rr-form .rr-fine, .rr-form label span { color: #444444; }
