/* Vérificateur de codes HTTP et de redirections, Nemo Ciment
   Se charge après outils.css (réutilise .verdicts, .r-table, .source-ligne). */

.outil .champ textarea.adresses { min-height: 130px; font: 14.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.outil .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.outil .actions .btn { min-height: 46px; }
.outil .actions .btn:disabled { opacity: .6; cursor: progress; }
.outil .verdicts:empty { display: none; }

.redir { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.redir:first-child { border-top: 0; padding-top: 8px; }
.redir-adresse { font: 600 16px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.lp-body p.redir-resume { margin: 0; font-size: 15px; color: #d0d0d4; }
.redir .verdicts li { overflow-wrap: anywhere; }
.lp-body p.redir-finale { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; overflow-wrap: anywhere; }

.code-http { display: inline-block; min-width: 3.2em; text-align: center; font: 600 13.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.code-http.c-ok { background: rgba(34,197,94,.16); color: #4ade80; }
.code-http.c-redir { background: rgba(96,165,250,.16); color: #93c5fd; }
.code-http.c-erreur { background: rgba(245,165,36,.16); color: #f5c264; }

.redir-table td { font-size: 14px; }
.redir-url, .redir-dest { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; }
.redir-n, .redir-code, .redir-duree { white-space: nowrap; width: 1%; }
.redir-n { color: var(--muted-2); }

@media (max-width: 900px) {
  .outil .champ textarea.adresses { font-size: 16px; }
}
@media (max-width: 640px) {
  .redir-table tr { grid-template-columns: auto 1fr auto; align-items: center; }
  .redir-table .redir-url, .redir-table .redir-dest { grid-column: 1 / -1; }
  .redir-table .redir-n { grid-row: 1; grid-column: 1; }
  .redir-table .redir-code { grid-row: 1; grid-column: 2; width: auto; }
  .redir-table .redir-duree { grid-row: 1; grid-column: 3; width: auto; color: var(--muted); }
  .redir-table .redir-dest:not(:empty)::before { content: "→ "; color: var(--muted-2); }
  .redir-table .redir-dest:empty { display: none; }
}
