/* Informatics navigation; the mathematical shell keeps its own layout. */
.sidebar { overflow-y:auto; }
.sidebar .brand { padding-bottom:24px; }
.sidebar .secondary-label { margin-top:22px; }
.sidebar nav { flex-shrink:0; }
.sidebar nav>a { padding:10px 13px; }
.sidebar [data-exam-nav].active { box-shadow:inset 3px 0 var(--blue); }
.mobile-exam-switch { display:none; }
.topbar .top-right .top-link { display:inline-flex; align-items:center; min-height:38px; max-width:100%; overflow-wrap:anywhere; }
.builder-layout .section-head { flex-wrap:wrap; margin-top:0; }
.builder-layout .section-head h2 { font-size:16px; }
@media(max-width:800px) {
  .topbar .mobile-brand { display:flex; align-items:center; gap:8px; }
  .mobile-exam-switch { display:flex; align-items:center; gap:8px; padding:10px 16px; border-bottom:1px solid var(--line); background:var(--panel,var(--white)); }
  .mobile-exam-switch>span { margin-right:auto; font-size:12px; color:var(--muted); }
  .mobile-exam-switch>a { padding:8px 16px; border-radius:9px; color:var(--muted); font-size:13px; font-weight:600; }
  .mobile-exam-switch>a.active { color:var(--blue); background:var(--light); }
  .top-right { justify-content:flex-start; }
  .mobile-nav { display:flex; }
  .mobile-nav a { min-width:0; flex:1; }
}
@media(min-width:641px) and (max-width:800px) {
  .mobile-nav { position:fixed; bottom:0; left:0; right:0; z-index:15; justify-content:space-around; padding:9px; border-top:1px solid var(--line); background:var(--panel,var(--white)); }
  .mobile-nav a { display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--muted); font-size:22px; }
  .mobile-nav a small { font-size:10px; }
  .mobile-nav a.active { color:var(--blue); }
}

.sidebar a[hidden], .mobile-nav a[hidden] { display:none; }
