/* Studio: the emulator (emulator.css, .emu) and the Manager (manager.css, .mgr) on one page, as two tabs (studio.js sets
   html[data-tab]; without it both show, one under the other) */
.studio { max-width: calc(1040px + 2 * var(--gutter)); padding-top: clamp(32px, 6vh, 64px); }
.studio > section { padding: 28px 0 0; }
.studio > .mgr { max-width: 720px; }
.studio #pk { scroll-margin-top: 84px; }   /* #presets: the pack's card under the top bar */
main.studio > section[id]::before { content: none; animation: none; }   /* no stroke of paint under the tabs */

/* (v0.46.8) „Works in…” przy nagłówku (jak etykiety pól Managera); obok zakładek wybór wyjścia MIDI (tylko przy Managerze) */
.studio-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.studio-head h1 { margin-bottom: 0; }
.studio .works { margin: 0; font: 400 13px / 1.4 "Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.studio-top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 24px 0 0; }
.studio .card.midi { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 12px 16px; }
html[data-tab="emulator"] .studio .card.midi { display: none; }
.studio .tabs { display: flex; flex: none; gap: 10px; margin: 0; }
.studio .tabs a { display: grid; gap: 3px; min-width: 15rem; padding: 12px 20px 13px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--raised); color: var(--dim); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.studio .tabs b { font: 500 13px / 1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.studio .tabs small { font-size: 14px; line-height: 1.4; }
.studio .tabs a:hover { border-color: var(--paint); }
.studio .tabs a[aria-current] { border-color: var(--paint); background: rgba(255, 154, 31, .08); }
.studio .tabs a[aria-current] b { color: var(--paint); }
@media (max-width: 640px) { .studio .tabs { flex: 1 1 100%; } .studio .tabs a { flex: 1 1 0; min-width: 0; padding: 10px 14px 11px; }
  .studio .card.midi { flex: 1 1 100%; margin: 0; } }

/* the tab that isn't open: the Manager simply goes; the emulator stays laid out with no height (emulator.js measures its
   panel when it starts, and that needs it drawn, not display: none) */
html[data-tab="emulator"] .studio > #manager { display: none; }
/* an address with #manager opens the page at the top, with the tabs in view (the browser would scroll the panel under the bar) */
html[data-tab] .studio > section { scroll-margin-top: 100vh; }
html[data-tab="manager"] .studio > #emulator { height: 0; padding: 0; overflow: hidden; visibility: hidden; }
