﻿/* =============================================================================
   ct-layout.css — Cover Test panel layout & container.
   Single responsibility: flex/grid structure of the panel only.
   Source: Cover-Test Clinical Reference — UI for §2.6 test modes
   ============================================================================= */

/* ── Main panel container ──────────────────────────────────────────────────── */
.ct-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  background: var(--surface-raised, #1c2233);
  border: 1px solid var(--border, rgba(255,255,255,0.10));
  border-radius: 12px;
  margin: 8px 0;
}

/* ── Section block inside the panel ───────────────────────────────────────── */
.ct-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── Section label above a group of controls ──────────────────────────────── */
.ct-section-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, rgba(255,255,255,0.38));
}

/* ── Panel title row ───────────────────────────────────────────────────────── */
.ct-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, rgba(255,255,255,0.42));
}

.ct-panel-title svg {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── Divider between major sections ───────────────────────────────────────── */
.ct-divider {
  height: 1px;
  background: var(--border, rgba(255,255,255,0.08));
  margin: 2px 0;
}

/* ── Two-column grid for toggles (distance + target) ─────────────────────── */
.ct-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

@media (max-width: 360px) {
  .ct-toggle-grid { grid-template-columns: 1fr; }
}

/* ── Hidden utility (JS-driven show/hide) ─────────────────────────────────── */
.ct-hidden {
  display: none !important;
}
