/* =============================================================================
   BLACK SIGNAL — css/components/rail.css
   RAILS — the vertical strips beside a working screen.

   Right rail (DOCS / INTEL / READY / PRACTICE / EXAM / PBQ / TESTS): a column
   of ruled black cells with vertical labels. Each cell is a sweep whose fill
   grows along the label (bottom → top); the current mode is held filled.
   Left rail (score / streak / timer / objective): ruled black cells with an
   eyebrow and a numeral — no orange block, no brand.

   Legacy names mapped: .linux-right-utility, .linux-docs-btn (+ .is-active,
   .is-locked, --locked), .linux-right-ticks; the quiz's .left-rail / .rail-meta
   / .meta-block / .meta-label / .meta-value / .rail-controls / .ctrl-btn, and
   the lab's .linux-left-rail / .linux-progress-count / .linux-objective-btn.
   ============================================================================= */
@layer components {

/* ── Right rail ────────────────────────────────────────────────────────── */
.linux-right-utility,
.right-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 56px;
  padding: 0;
  gap: 0;
  background: var(--sig-black);
  border-left: 1px solid var(--sig-rule);
}
#quiz-area .right-rail.secplus-linux-rail-host .secplus-linux-right-utility { width: 100%; height: 100%; min-height: 100%; border: 0; }
/* BS_R697_DOCS_HEADER_SEAM: the accent band and the first DOCS cell form
   one uninterrupted colored surface. Do not draw the otherwise-dark rail
   separator between them. No hardcoded color: both use var(--orange).
   Borders between rail cells remain intact. Applies only to quiz courses. */
#quiz-area .right-rail.secplus-linux-rail-host { border-left: 0; }


.linux-docs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 112px;
  padding: 18px 0;
  flex: 0 0 auto;
  border-width: 0 0 1px 0;
  border-style: solid;
  border-color: var(--sig-rule);
  clip-path: none;
  color: var(--orange);
  font: inherit;
  /* the fill grows along the label: bottom → top */
  background-position: 0 100%;
  background-size: 100% 0%;
}
.linux-docs-btn span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: var(--orange);
}
/* Current mode: the fill, held */
.linux-docs-btn.is-active {
  background-size: 100% 100%;
  color: var(--accent-on-accent);
  border-color: var(--orange);
}
.linux-docs-btn.is-active span { color: var(--accent-on-accent); }
/* Locked cells: hatched, no sweep (the primitive paints the hatch) */
.linux-docs-btn.is-locked span, .linux-docs-btn--locked span { color: var(--white-faint); }
.linux-right-ticks { flex: 1 1 auto; min-height: 24px; }
.linux-right-tick { display: none; }

/* The quiz's own right-rail furniture */
.right-counter {
  padding: 18px 0;
  text-align: center;
  font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: -0.01em;
  color: var(--orange);
  border-bottom: 1px solid var(--sig-rule);
}
.right-dividers { display: none; }
.right-rail .theme-picker { display: none; }

/* ── Left rail (quiz) ──────────────────────────────────────────────────── */
.secplus-quiz-shell .left-rail {
  display: flex;
  flex-direction: column;
  background: var(--sig-black);
  border-right: 1px solid var(--sig-rule);
  padding: 0;
}
.secplus-quiz-shell .rail-brand, .secplus-quiz-shell .rail-glyphs { display: none; }   /* no second orange band */
.secplus-quiz-shell .rail-meta { display: flex; flex-direction: column; }
.secplus-quiz-shell .rail-meta .meta-block {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--sig-rule);
  background: transparent;
}
.secplus-quiz-shell .rail-meta .meta-label,
.complete-stats .meta-label {
  margin: 0; opacity: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: var(--sig-eyebrow-track); text-transform: uppercase;
  color: var(--sig-ink-dim);
}
.secplus-quiz-shell .rail-meta .meta-value,
.complete-stats .meta-value {
  font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 0.9; letter-spacing: -0.01em;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
.secplus-quiz-shell .rail-meta .meta-value.small { font-family: var(--sig-mono); font-weight: 500; font-size: 16px; }
.secplus-quiz-shell .rail-controls { padding: 16px 18px; }
.secplus-quiz-shell .ctrl-btn {
  width: 100%; min-width: 0; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
  clip-path: polygon(var(--sig-notch) 0, 100% 0, 100% calc(100% - var(--sig-notch)), calc(100% - var(--sig-notch)) 100%, 0 100%, 0 var(--sig-notch));
}

/* ── Left rail (labs) ──────────────────────────────────────────────────── */
.linux-lab-screen .linux-left-rail {
  display: flex;
  flex-direction: column;
  background: var(--sig-black);
  border-right: 1px solid var(--sig-rule);
  padding: 0;
}
.linux-lab-screen .linux-left-rail .rail-brand,
.linux-lab-screen .linux-left-rail .rail-brand::before,
.linux-lab-screen .linux-left-rail .brand-vertical { display: none; }
.linux-lab-screen .linux-left-rail .rail-meta { display: flex; flex-direction: column; padding: 0; }
.linux-lab-screen .linux-left-rail .meta-block,
.linux-lab-screen .linux-left-rail .linux-objective-wrap,
.linux-lab-screen .linux-left-rail .linux-countdown-wrap {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--sig-rule);
  background: transparent;
}
.linux-lab-screen .linux-left-rail .meta-label {
  margin: 0; opacity: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: var(--sig-eyebrow-track); text-transform: uppercase;
  color: var(--sig-ink-dim);
}
.linux-lab-screen .linux-left-rail .linux-progress-count,
.linux-lab-screen .linux-left-rail .linux-countdown-value {
  font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 0.9; letter-spacing: -0.01em;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
.linux-lab-screen .linux-left-rail .linux-objective-btn {
  width: 100%; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
  clip-path: polygon(var(--sig-notch) 0, 100% 0, 100% calc(100% - var(--sig-notch)), calc(100% - var(--sig-notch)) 100%, 0 100%, 0 var(--sig-notch));
}

}
