/* styles/leadin.css -- THE LEAD-IN TO A COMPETITION (2026-10-14,
   screens/leadin.js): the hours tinted on the grid, the day headers, the
   advice on a tapped hour's sheet, the question when a competition is
   added, the "Save as my lead-in" bar and Settings' editor.

   ⚠ ONE STYLESHEET IS ONE NAMESPACE: every class here is `lin-` (and the
   header's `.caldh.lin`), and the surface's tokens are read, never
   restated. The lead-in leads to a competition, so it wears the
   competition's colour (`--comp`), fainter than a competition day's wash. */

/* ---------------------------------------------------- the grid's mark */
/* The hours from the lead-in's exact start (ruled "Headers + the exact
   48 h"): under the tiles, never a tap target -- the hour slots under it
   still open the add sheet. The first day's edge is drawn where it starts. */
.lin-tint { position: absolute; left: 0; right: 0; z-index: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--comp) 8%, transparent); }
.lin-tint.first { border-top: 1.5px dashed
  color-mix(in srgb, var(--comp) 70%, transparent); }
/* An own lead-in carries the same mark (a CALL): `.own` names it, and
   only its headers' word differs. */
.caldh.lin .dsub { color: var(--comp); }

/* ------------------------------------- the advice on a tapped hour's sheet */
/* Board 56 (Schedule 1c, 2026-11-07): flat words on the sheet's card
   colour -- just words, nothing to tap -- the eyebrow in gold. WAS a box
   washed in the competition's colour. */
.lin-adv { margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px;
  background: var(--c1-card); border: 1px solid var(--c1-card-line); }
.lin-eye { margin: 0; color: var(--c1-gold); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; }
.lin-say { margin: 4px 0 0; color: #dbe6f4; font-size: 14px;
  line-height: 1.45; }

/* ------------------------------------------------------- the question */
/* Boards 54-55 (Schedule 1c, 2026-11-07): the sheet in the 1c colours;
   the eyebrow blue, the title beside the × (top right, `cSheet`'s `x`),
   each answer a raised tile (`.c1-tile`) with the round chevron
   (`.c1-go`). WAS gold words, a Back arrow top left, flat outlined cards
   and a ›. Values from the boards' reference sheets. */
.lin-layer .sheet.c-sheet { position: relative; max-height: 88vh;
  overflow-y: auto; background: var(--c1-sheet);
  border-top: 1px solid var(--c1-sheet-line);
  border-radius: 28px 28px 0 0; }
.lin-layer .c-grab i { background: #3d5170; }
.lin-layer .c-sheet > .c-sheethead { position: absolute; top: 26px;
  right: 12px; z-index: 1; min-height: 0; margin: 0; }
.lin-layer button.c-back.c-close { padding: 12px; background: #17233a;
  border: 1px solid #2f4262; color: #c3cddb; }
.lin-layer .lin-eye { padding-right: 52px; color: var(--c1-icon);
  font-size: 12.5px; }
.lin-title { margin: -8px 0 0; padding-right: 52px; font-size: 24px;
  font-weight: 800; line-height: 1.2; }
.lin-sub { margin: -2px 0 4px; color: var(--c1-sub); font-size: 15px;
  line-height: 1.5; }
.lin-layer .lin-card { flex: none; width: calc(100% + 8px);
  margin: -4px -4px 0; }
.lin-layer .lin-sub + .lin-card { margin-top: 0; }
.lin-cbody { flex: 1; min-width: 0; display: flex; flex-direction: column;
  gap: 2px; }
.lin-cbody b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.lin-cbody .s { color: var(--c1-sub); font-size: 13.5px; font-weight: 400;
  line-height: 1.35; }
.lin-card .c1-go svg { width: 14px; height: 14px; fill: none;
  stroke: currentColor; stroke-width: 2.6; stroke-linecap: round;
  stroke-linejoin: round; }
.lin-err { margin: 10px 0 0; color: var(--bad-ink); font-size: 14px; }

/* ---------------------------------------- "Save as my lead-in", the bar */
.lin-bar { display: flex; align-items: center; gap: 10px; margin: 0 1rem 12px;
  padding: 8px 10px 8px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--comp) 9%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--comp) 35%, transparent); }
.lin-bt { flex: 1; min-width: 0; font-size: 13px; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lin-bt b { color: var(--comp); margin-right: 4px; }
.lin-barbtn { flex: none; width: auto; margin: 0; min-height: 40px;
  padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--accent); background: none; color: var(--accent);
  font-weight: 700; font-size: 14px; }

/* ------------------------------------------- Settings › My lead-in */
.lin-days { display: flex; gap: 8px; }
.lin-days button { flex: 1; }
/* The length picker: a phone opens it as a wheel; drawn as the add form's
   pickers are, never the browser's white box. */
.lin-sel { font: inherit; color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 12px; min-height: var(--tap);
  width: 100%; padding: 0 .75rem; margin: 0 0 .6rem; }
