/* A section page (sections.js): a bar of tabs over the tab's own page. The OUTER level of the menu: icons, a heavy accent underline, on a band that stays in view.
   The studios and settings pages have their own INNER tabs (.pg-tabs: small text, thin underline, inside the page); the two are meant to be told apart at a glance. */
.sec { min-height: 100%; display: flex; flex-direction: column; }
.sec-head { position: sticky; top: 0; z-index: 6; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0 max(28px, calc((100% - 1500px) / 2 + 28px)); }
.sec-tabs { display: flex; flex-wrap: wrap; gap: 0 2px; overflow: visible; margin: 0; padding: 0; } /* every tab stays visible: a long set wraps onto a second row instead of hiding the last ones behind a scroll nobody sees */
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 14px 15px 11px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; text-decoration: none; position: relative; border-radius: 6px 6px 0 0; }
.sec-tab .ic { width: 17px; height: 17px; opacity: .8; }
.sec-tab:hover { color: var(--text); background: rgba(255, 255, 255, .035); text-decoration: none; }
.sec-tab.on { color: var(--text); border-bottom-color: var(--accent); } .sec-tab.on .ic { color: var(--accent-2); opacity: 1; }
.sec-tab.locked { opacity: .6; }
.sec-tab:focus-visible, .sec-mode:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.sec-lock { display: inline-grid; color: var(--faint); } .sec-lock .ic { width: 12px; height: 12px; opacity: 1; }
.sec-sub { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 0 12px; }
.sec-sub:empty { display: none; }
.sec-modes { flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sec-modes::-webkit-scrollbar { display: none; }
.sec-mode { padding: 5px 14px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.sec-mode:hover { color: var(--text); text-decoration: none; }
.sec-mode.on { background: var(--accent-d); color: #fff; }
.sec-mode.locked:not(.on) { opacity: .65; }
.sec-mode.on .sec-lock { color: #fff; opacity: .85; }
.sec-blurb { font-size: 13px; margin: 0; flex: 1 1 260px; min-width: 0; }
.sec-body { flex: 1 1 auto; min-width: 0; outline: none; }
.sec-body > .page { padding-top: 20px; }
/* a tab's own header repeats the tab name the bar already shows: keep it, quieter */
.sec-body > .page > .pg-head h1, .sec-body > .page.pg > .pg-head h1 { font-size: 20px; }
.sec-body > .page > .pg-head p { font-size: 13px; }

@media (max-width: 860px) {
  .sec-head { padding: 0 12px; }
  .sec-tab { padding: 12px 11px 9px; font-size: 13.5px; }
  .sec-sub { padding: 8px 0 10px; }
  .sec-body > .page { padding: 14px 12px 50px; }
}
@media (max-width: 480px) {
  .sec-tab .ic { display: none; }
  .sec-tab { padding: 12px 10px 9px; }
}

/* 24 Oct 2026: most of the screen belongs to the module's own work. The tab bars were pinned and tall (two rows of tabs plus a mode row = about 170px that never scrolled away). */
.sec-head { padding-top: 0; }
.sec-tab { padding: 8px 12px 6px; font-size: 13px; gap: 6px; border-bottom-width: 2px; }
.sec-tab .ic { width: 15px; height: 15px; }
.sec-sub { padding: 4px 0 6px; gap: 6px 12px; }
.sec-sub .muted, .sec-sub .small { font-size: 12px; }
@media (max-height: 900px) { .sec-head { position: static; } }
@media (max-width: 1100px) { .sec-tab .ic { display: none; } .sec-tab { padding: 8px 10px 6px; } }
