/* Shared left navigation for the standalone Ortho pages (trauma course, articles, article reader).
   Mirrors the sidebar rules the older pages get from ortho-readable.css + ortho-shell.js, without loading either. */
body.ro-sn { padding-left: 112px; }
.ro-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10030; width: 112px; display: flex; flex-direction: column; align-items: stretch; padding: 14px 10px 16px; background: #09233f; color: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.ro-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 2px 3px 20px; color: #fff !important; text-decoration: none; }
.ro-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }
.ro-brand span { display: grid; gap: 1px; text-align: center; }
.ro-brand strong { color: #fff; font-size: 12px; letter-spacing: .04em; line-height: 1; }
.ro-brand small { color: #55b9ee; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.ro-side-nav { display: grid; gap: 8px; }
.ro-side-link, .ro-side-settings { display: grid; justify-items: center; gap: 5px; min-height: 68px; padding: 10px 4px; border-radius: 9px; color: #d4e5f5 !important; text-decoration: none; transition: background .15s ease, color .15s ease; }
.ro-side-link:hover, .ro-side-link.is-active { background: #0b5f94; color: #fff !important; }
.ro-side-link strong, .ro-side-settings strong { color: inherit; font-size: 11px; line-height: 1.1; }
.ro-side-icon { display: grid; place-items: center; width: 24px; height: 24px; font-size: 20px; line-height: 1; }
.ro-side-settings { margin-top: auto; }
.ro-sidebar a:focus-visible { outline: 2px solid #5dd6c6; outline-offset: 2px; }
@media (max-width: 980px) { body.ro-sn { padding-left: 82px; } .ro-sidebar { width: 82px; } }
@media (max-width: 700px) {
  body.ro-sn { padding-left: 0; padding-bottom: 62px; }
  .ro-sidebar { inset: auto 0 0; width: 100%; height: 62px; flex-direction: row; align-items: stretch; padding: 4px 6px; }
  .ro-brand, .ro-side-settings { display: none; }
  .ro-side-nav { width: 100%; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .ro-side-link { min-height: 52px; padding: 4px 2px; }
  .ro-side-link strong { font-size: 9px; }
  .ro-side-icon { height: 20px; font-size: 17px; }
}
@media print { .ro-sidebar { display: none; } body.ro-sn { padding: 0; } }

/* Collapsible rail and resizable workspace panel (ortho-sidebar-controls.js). Widths come from custom properties so the
   page padding, the rail and the article grid always agree. */
body.ro-sn { padding-left: var(--ro-sn-w, 112px); }
.ro-sidebar { width: var(--ro-sn-w, 112px); }
@media (max-width: 980px) { body.ro-sn { padding-left: var(--ro-sn-w, 82px); } .ro-sidebar { width: var(--ro-sn-w, 82px); } }
.ro-sn-toggle { display: grid; place-items: center; width: 100%; min-height: 34px; margin-top: 8px; border: 0; border-radius: 9px; background: transparent; color: #9fc3df; font: 700 15px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.ro-sn-toggle:hover { background: #0b5f94; color: #fff; }
.ro-sn-toggle:focus-visible { outline: 2px solid #5dd6c6; outline-offset: 2px; }
@media (min-width: 701px) {
  body.ro-sn-min { --ro-sn-w: 60px; }
  body.ro-sn-min .ro-sidebar { padding-left: 6px; padding-right: 6px; }
  body.ro-sn-min .ro-brand span, body.ro-sn-min .ro-side-link strong, body.ro-sn-min .ro-side-settings strong { display: none; }
  body.ro-sn-min .ro-brand { padding-bottom: 14px; }
  body.ro-sn-min .ro-side-link, body.ro-sn-min .ro-side-settings { min-height: 46px; padding: 8px 2px; }
}
@media (max-width: 700px) { body.ro-sn { padding-left: 0; } .ro-sidebar { width: 100%; } .ro-sn-toggle { display: none; } }
@media print { .ro-sn-toggle { display: none; } }
