/* Local reading-layout proposal. Existing brand tokens and controls stay intact. */
.markdown-section { color:#342f2d; line-height:1.68; }
.markdown-section h1, .markdown-section h2, .markdown-section h3 { color:#342f2d; }
.markdown-section h1 { letter-spacing:-.015em; }
.markdown-section > p { margin-bottom:16px; }
.markdown-section .oksi-revision-date { margin-bottom:16px; }
.markdown-section .oksi-article-tools { margin-bottom:22px; }
.markdown-section .oksi-more-tools-body { width:300px; max-width:calc(100vw - 92px); max-height:65vh; overflow:auto; }
.markdown-section .oksi-more-tools-body > a { padding:8px 10px; font-size:14px; }
.markdown-section .oksi-more-tools-body .oksi-article-terms { margin:4px 0 0; border:0; }
.markdown-section .oksi-more-tools-body .oksi-article-terms > summary { border:0; padding-left:10px; font-weight:600; }
.markdown-section .oksi-more-tools-body .oksi-article-terms > div { padding:0 10px 10px; }
.markdown-section .oksi-article-terms dl { grid-template-columns:1fr; gap:3px; }
.markdown-section .oksi-article-terms dd { margin-bottom:8px; }
.markdown-section .oksi-personal-reading { margin:24px 0; }
.markdown-section .oksi-finder { border-top-width:1px; background:#fff; padding:20px; }
.markdown-section .oksi-finder-form label { font-size:20px; line-height:1.35; color:#342f2d; }
.markdown-section .oksi-finder input { min-height:48px; }
.markdown-section .oksi-task-grid a { border-top-width:1px; min-height:104px; }
.markdown-section .oksi-task-grid strong { font-size:17px; }
body[data-oksi-route="/"] .markdown-section h1 { font-size:36px; }
body[data-oksi-route="/"] .markdown-section .oksi-home-columns { padding-top:24px; border-top:1px solid var(--oksi-border); }
.markdown-section .oksi-table td, .markdown-section .oksi-table th { vertical-align:top; }

@media screen and (min-width:1280px) {
  .sidebar { width:260px; }
  .content { left:260px; }
  .content.oksi-has-toc { padding-right:220px; }
  .markdown-section { max-width:880px; }
  .markdown-section .oksi-inline-toc { display:none; }
  .oksi-page-toc { display:block; position:fixed; top:100px; right:20px; z-index:2; width:184px; max-height:calc(100vh - 128px); overflow:auto; padding-left:15px; border-left:1px solid var(--oksi-border); background:#fff; }
  .oksi-page-toc__title { margin-bottom:14px; color:#4e4947; font-size:13px; font-weight:600; }
  .oksi-page-toc ul { list-style:none; padding:0; margin:0; }
  .oksi-page-toc li { margin:0 0 10px; line-height:1.45; }
  .oksi-page-toc a { color:var(--oksi-muted); font-size:13px; text-decoration:none; }
  .oksi-page-toc a:hover, .oksi-page-toc a[aria-current="location"] { color:var(--oksi-burgundy); }
  .oksi-page-toc ul ul { margin:8px 0 0 8px; padding-left:10px; border-left:1px solid var(--oksi-border); }
  body.close .content, body.oksi-reading-mode .content { left:0; padding-right:0; }
  body.oksi-reading-mode .markdown-section .oksi-inline-toc { display:block; }
}
@media screen and (max-width:768px) {
  body[data-oksi-route="/"] .markdown-section h1 { font-size:28px; }
  .markdown-section .oksi-finder { padding:14px; }
  .markdown-section .oksi-finder-form label { font-size:18px; }
  .markdown-section .oksi-task-grid a { min-height:0; }
  .markdown-section .oksi-more-tools-body { width:260px; left:-100px; }
}
@media print {
  .markdown-section { color:#222; }
  .markdown-section h1, .markdown-section h2, .markdown-section h3 { color:#222; }
}
