/* I comandi del cruscotto nel modello del design system di MH (24/10): link, voci con quadratino, bottoni
   .p1-btn. Ritagliato da style.css. Colori solo dai token --brand-*, testo a 16 px. */
/* Link: color carta, sottolineatura di 1 px che diventa 3 px all'hover (mai testo verde). */
a,
.link {
  color: var(--brand-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.16s var(--ease-rivela);
}
a:hover,
.link:hover {
  text-decoration-thickness: 3px;
}
/* Voce con quadratino (mercati, periodo, tipi): quadratino verde di 12 px se è attiva, vuoto con il
   bordo di 1 px se è spenta. Bersaglio di tocco di 44 px. */
.chip {
  font: inherit;
  font-size: var(--s16);
  color: var(--brand-text);
  background: none;
  border: 0;
  border-radius: 0;
  min-height: 44px;
  padding: 0 10px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chip::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--brand-muted);
  background: transparent;
  transition:
    background 0.2s var(--ease-rivela),
    border-color 0.2s var(--ease-rivela);
}
.chip:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.chip:hover::before {
  border-color: var(--brand-text);
}
.chip[aria-pressed='true'] {
  font-weight: 600;
}
.chip[aria-pressed='true']::before {
  background: var(--brand-mark);
  border-color: var(--brand-mark);
}
/* Bottone come .p1-btn del sito: alto 56 px, Sofia Sans 700 maiuscolo, senza fondo, un quadratino verde
   di 14 px a destra che all'hover si allarga a riempire il bottone (nel colore del testo, mai un pieno
   verde) e il testo prende il colore del fondo. Il testo dice l'azione. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  min-width: 44px;
  padding: 8px 52px 8px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-text);
  font-family: var(--brand-font-body);
  font-weight: 700;
  font-size: var(--s16);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.26s var(--ease-volo);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-accent);
  clip-path: inset(calc(50% - 7px) 20px calc(50% - 7px) calc(100% - 34px));
  transition:
    clip-path 0.26s var(--ease-volo),
    background 0.26s var(--ease-volo);
}
.btn:hover {
  color: var(--brand-bg);
}
.btn:hover::before {
  clip-path: inset(0);
  background: var(--brand-text);
}
.link {
  font: inherit;
  font-size: var(--s16);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* «Come si legge» (S08): il bottone che apre le spiegazioni di un pannello, con il quadratino come le voci
   (vuoto se chiuse, verde se aperte), alto 44 px. */
.how-to-read {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-text);
  font: inherit;
  font-size: var(--s16);
  font-weight: 600;
  cursor: pointer;
}
.how-to-read::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--brand-muted);
}
.how-to-read:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.how-to-read[aria-expanded='true']::before {
  background: var(--brand-mark);
  border-color: var(--brand-mark);
}
.how-to-read-body {
  display: grid;
  gap: 12px;
}
