/* Cedilla Studio — panel tabs for the web apps (Overprint and BLEEDR, since
   22 Nov 2026), set up by assets/js/lab-rail.js, which adds body.lab-tabs.
   Loaded after the app's own stylesheets. Off Grid has the same look under
   its own names (.og-rail, in off-grid-poster.css).
   Computers: a rail of icons down the panel's left edge, one section showing
   at a time. Colours come from the page's own variables, so the light theme
   follows by itself. */
.lab-rail { display: none; }
/* The rail is the panel's last child, so the last SECTION is its second-last child */
.lab-tabs .lab-panel > .lab-section:nth-last-child(2) { border-bottom: 0; }
@media (min-width: 861px) {
  .lab-tabs .lab { grid-template-columns: 404px minmax(0, 1fr); }
  .lab-tabs .lab.is-panel-off { grid-template-columns: minmax(0, 1fr); }
  .lab-tabs .lab .lab-panel {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; align-content: start;
    padding-left: 0; padding-top: 0;
    background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-position: 64px 0; background-repeat: no-repeat;
  }
  .lab-tabs .lab.is-panel-off .lab-panel { display: none; }
  .lab-tabs .lab .lab-panel > .lab-section { grid-column: 2; grid-row: 1; min-width: 0; border-bottom: 0; padding-top: 22px; }
  .lab-tabs .lab .lab-panel > .lab-section:not(.is-tab) { display: none; }
  .lab-rail {
    grid-column: 1; grid-row: 1; position: sticky; top: 0; align-self: start; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 0;
  }
  .lab-rail-tab {
    appearance: none; position: relative; width: 54px; padding: 9px 0 7px; border: 0; border-radius: 12px; background: none; cursor: pointer;
    display: grid; justify-items: center; gap: 5px; color: var(--muted); font: inherit; font-size: 10px; line-height: 1; letter-spacing: .01em;
    transition: color .2s var(--ease), background-color .2s var(--ease);
  }
  .lab-rail-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .lab-rail-tab:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 6%, transparent); }
  .lab-rail-tab.is-on { color: var(--paper); background: color-mix(in srgb, var(--paper) 11%, transparent); font-weight: 600; }
  .lab-rail-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
  /* A Pro section says so on its tab, before the click */
  .lab-rail-tab.is-pro::after { content: ""; position: absolute; top: 6px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--blue)); }
  /* Before lab-rail.js has built the tabs (the page adds body.lab-tabs-early in
     its first script): the panel already at its tabbed width, on its first
     section, so nothing jumps when the tabs arrive */
  .lab-tabs-early:not(.lab-tabs) .lab { grid-template-columns: 404px minmax(0, 1fr); }
  .lab-tabs-early:not(.lab-tabs) .lab .lab-panel { padding-left: 84px; padding-top: 0; }
  .lab-tabs-early:not(.lab-tabs) .lab .lab-panel > .lab-section { padding-top: 22px; }
  .lab-tabs-early:not(.lab-tabs) .lab .lab-panel > .lab-section ~ .lab-section { display: none; }
}
