/* Scout: i pochi pezzi che il kit di Workspace v4 non ha.
   Solo token del kit, nessun colore scritto a mano. */

.flash {
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--tint-ok);
  border-radius: var(--r);
  background: var(--wash-ok);
  color: var(--text);
}
.flash.error { border-color: var(--tint-bad); background: var(--wash-bad); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.6rem; }
.field label, .label { color: var(--muted); font-size: 1.2rem; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; }
.field textarea { min-height: 9rem; }
.hint { color: var(--faint); font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.actions form { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.inline-form select, .inline-form input[type="file"] { flex: 1; min-width: 20rem; }
a.button, .button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel-2); color: var(--text); text-decoration: none; font-weight: 500;
}
a.button:hover { border-color: var(--line-hover); background: var(--elevated); }
a.button .nv-icon, button .nv-icon { width: 1.6rem; height: 1.6rem; }

.check-row {
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.check-row input { width: 1.8rem; height: 1.8rem; accent-color: var(--accent-strong); }
.result-won { color: var(--green); font-weight: 700; }
.result-lost { color: var(--red); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

/* La password provvisoria: si mostra una volta sola, va copiata. */
.secret {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.4rem; border: 1px solid var(--accent-line); border-radius: var(--r);
  background: var(--accent-soft);
}
.secret code { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.05em; user-select: all; }

.login .nv-logo-big { justify-self: center; }
.login .field { width: 100%; }
.login .error { color: var(--red); }

@media (max-width: 820px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Bottoni con icona: icona e testo sulla stessa riga, senza andare a capo. */
button:has(.nv-icon) { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.nv-footer a.nv-footer-button { text-decoration: none; }
.nv-capture-row select { min-width: 0; }

/* Righe dell'elenco partite: i nomi delle squadre sono lunghi. La riga e' un
   elemento di griglia, e senza min-width allarga il pannello invece di tagliare. */
.nv-timeline li { min-width: 0; }
.nv-timeline time { flex-shrink: 0; }

.panel-stack { display: grid; gap: 1.6rem; align-content: start; min-width: 0; }

.other-matches { margin-top: 1.4rem; }
.other-matches summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; }
.other-row { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.check-row .badge { margin-left: 0.6rem; }

/* La guida: testo da leggere, righe non troppo lunghe. */
.guide { display: grid; gap: 1.6rem; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.guide-toc a {
  padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: var(--pill);
  color: var(--muted); font-size: 1.25rem; text-decoration: none;
}
.guide-toc a:hover { border-color: var(--accent-line); color: var(--text); }
.guide .nv-panel { scroll-margin-top: 1.6rem; }
.guide p, .guide li { max-width: 78rem; line-height: 1.6; }
.guide ol, .guide ul { margin: 0.4rem 0 1rem; padding-left: 2.2rem; }
.guide li + li { margin-top: 0.4rem; }
.guide h3 { margin: 1.8rem 0 0.4rem; }
.guide dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.6rem; margin: 0.6rem 0; }
.guide dt { font-weight: 700; }
.guide dd { margin: 0; color: var(--muted); }
.guide-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin-top: 1rem; }
.guide-figure { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.guide-figure svg { width: 100%; max-width: 26rem; height: auto; display: block; margin: 0 auto 0.8rem; }
.guide-figure p { margin: 0; font-size: 1.25rem; color: var(--muted); }
.guide-figure b { color: var(--text); }
.guide-tip { padding: 1.1rem 1.4rem; border: 1px solid var(--tint-info); border-radius: var(--r); background: var(--wash-info); }
@media (max-width: 1100px) { .guide-figures { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .guide dl { grid-template-columns: minmax(0, 1fr); } .guide dd { margin-bottom: 0.6rem; } }
/* I campetti sono un pezzo del PDF, che e' sempre su carta bianca: restano
   bianchi anche nel tema scuro, o i pallini scuri sparirebbero sul fondo. */
.guide-figure svg { padding: 0.6rem; border-radius: var(--r-sm); background: #fff; }
.guide-figure .swatch { display: inline-block; width: 1rem; height: 1rem; margin-right: 0.4rem; border-radius: 50%; background: var(--c); vertical-align: -0.1rem; }
