/* statelinecalc.com - page nationale /paycheck-calculator/ (27/10/2026)
   Fichier a part pour ne pas toucher assets/style.css. Classes utilitaires uniquement :
   aucun attribut style="" (CSP). Couleurs = jetons de style.css, contrastes inchanges. */

/* Calculateur : une colonne sur mobile (formulaire, puis resultat), deux colonnes sur ordinateur. */
.nat-h { margin: var(--s-4) 0 var(--s-3); font-size: 22px; }
.nat-grid { display: grid; gap: var(--s-4); }
.nat .calc { padding: var(--s-4); }
.nat .calc .field { margin-bottom: var(--s-3); }
.nat .calc .field label { margin-bottom: var(--s-1); font-size: 16px; }
.nat .calc .field input, .nat .calc .field select { min-height: 44px; }
.nat .row-pay { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-3); }
.nat .row-pay .error { margin-top: var(--s-1); }
.nat .btn-primary { width: 100%; }
.nat .result { margin-top: 0; min-height: 220px; }
.nat-link { margin: var(--s-3) 0 0; font-weight: 600; }
.nat-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* Options avancees repliees : le 1er ecran ne montre que l'Etat, le salaire et la periode. */
.nat-more { margin: 0 0 var(--s-3); border-top: 1px solid var(--border-subtle); padding-top: var(--s-2); }
.nat-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.nat-more[open] > summary { margin-bottom: var(--s-3); }

@media (min-width: 900px) {
  .nat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--s-6); }
  .nat .calc { padding: var(--s-6); }
  .nat .btn-primary { width: auto; }
  .nat .result { min-height: 320px; }
}

/* Tableau des 50 Etats : defile DANS son cadre (jamais la page), en-tete fige. */
.table-box { overflow: auto; max-height: 560px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.table-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tbl-etats { min-width: 520px; }
.tbl-etats thead th { position: sticky; top: 0; z-index: 1; }
.tbl-etats tbody th { text-align: left; font-weight: 600; background: var(--surface); }
.tbl-etats tbody tr:nth-child(even) th, .tbl-etats tbody tr:nth-child(even) td { background: var(--surface-sunken); }
.tbl-etats td { white-space: nowrap; }
.tbl-etats a { display: inline-block; padding-block: var(--s-1); }

/* Les 50 Etats en pastilles : cibles tactiles >= 44 px. */
.chips { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-3);
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 999px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.chips a:hover, .chips a:focus-visible { border-color: var(--accent); background: var(--surface-sunken); }

/* Pas de colonne laterale sur cette page : les 50 Etats sont en pastilles en bas. Le contenu
   prend toute la largeur de l'enveloppe (style.css reserve 260 px a droite des 1100 px). */
@media (min-width: 1100px) {
  main.wrap.nat { grid-template-columns: minmax(0, 1fr); }
}

/* Enveloppes nommees (audit-silencieux exige une regle par classe) ; min-width: 0 empeche un
   enfant de grille de forcer la largeur de la page. */
.nat-calc { min-width: 0; margin-top: var(--s-4); }
.nat-out { min-width: 0; }

/* Petits telephones (320-400 px) : le montant du resultat doit tenir dans le 1er ecran (640 px de haut a 320). */
@media (max-width: 400px) {
  .nat h1 { font-size: 26px; line-height: 1.2; margin-bottom: var(--s-2); }
  .nat .crumbs { margin-bottom: var(--s-1); }
  .nat .nat-h { display: none; }
  .nat .calc { padding: var(--s-3); }
  .nat .calc .field { margin-bottom: var(--s-2); }
  .nat .nat-more { margin-bottom: var(--s-2); padding-top: 0; }
  .nat .result { padding: var(--s-3); }
}
