/* The pages around the speed test - whois, about, the results' statistics -
   in the same clothes: what they add to speedtest.css. */

/* Written in French and in English; only the reader's is shown (lang.js). */
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }

.page { max-width: 860px; }
.page-head { text-align: center; padding: 22px 0 6px; }
.page-head h1 { margin: 0; font-family: "Radix", "Chillax", sans-serif; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; }
.page-head p { margin-top: 10px; color: var(--soft); max-width: 36em; margin-left: auto; margin-right: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lang button { background: none; border: 0; }

/* --- A search --- */
.search { margin-top: 26px; }
.search-row { display: flex; gap: 10px; }
.search input[type="text"], .field {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--ink-2); color: var(--shell); font: inherit; font-size: 17px;
}
.search input[type="text"]::placeholder, .field::placeholder { color: var(--faint); }
.search input[type="text"]:focus, .field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(149, 191, 190, .25); }
.search .pill { padding: 12px 26px; font-size: 16px; }
.options { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; color: var(--soft); font-size: 14.5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg input:checked + label { background: var(--teal); color: var(--ink); font-weight: 500; }
.seg input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: #95bfbe; }
.examples { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--faint); font-size: 14px; align-items: center; }
.chip { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--soft); font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.busy { display: none; margin-top: 22px; text-align: center; color: var(--soft); }
.searching .busy { display: block; }
.searching .results { opacity: .35; }

/* --- What came back --- */
.results { margin-top: 28px; }
.results h2 { margin: 0 0 12px; font-family: "Chillax", sans-serif; font-size: 15px; font-weight: 500; color: var(--soft); }
.results h2 b { color: var(--shell); font-weight: 600; overflow-wrap: anywhere; }
.msg { padding: 11px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 15px; }
.msg.ok { background: rgba(149, 191, 190, .14); color: var(--teal); }
.msg.err { background: rgba(190, 164, 134, .18); color: var(--shell); }
.whois-output, .results pre {
  margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); color: rgba(253, 248, 239, .86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow-y: auto;
}
.whois-output .k { color: var(--teal); font-weight: 600; }
.whois-output .ip, .whois-output .date { color: var(--copper); }
.whois-output .mail { color: var(--teal); }
.parsed { margin-top: 14px; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); }
.parsed h3 { margin: 0 0 12px; font-family: "Chillax", sans-serif; font-size: 15px; font-weight: 600; }
.parsed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; }
.parsed h4 { margin: 0 0 6px; font-family: "Chillax", sans-serif; font-size: 13px; font-weight: 500; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.parsed ul { list-style: none; display: grid; gap: 3px; font-size: 14.5px; color: var(--soft); overflow-wrap: anywhere; }
.parsed li b { color: var(--shell); font-weight: 500; }

/* --- Prose: the about page --- */
.prose { margin-top: 26px; display: grid; gap: 10px; }
.prose section { padding: 20px 22px; border-radius: 14px; background: var(--ink-2); }
.prose h2 { margin: 0 0 8px; font-family: "Chillax", sans-serif; font-size: 1.12rem; font-weight: 600; }
.prose p, .prose li { color: var(--soft); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 8px; }
.prose ul { padding-left: 20px; display: grid; gap: 4px; }
.prose b, .prose strong { color: var(--shell); font-weight: 500; }
.prose code, .prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--ink); color: var(--teal); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 26px; }
.tool { display: block; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); border: 1px solid transparent; text-decoration: none; color: var(--shell); }
.tool:hover { border-color: var(--teal); color: var(--shell); }
.tool strong { display: block; font-weight: 600; }
.tool > span { display: block; margin-top: 4px; color: var(--soft); font-size: 14.5px; }
.tool em { display: block; margin-top: 10px; font-style: normal; color: var(--teal); font-size: 14px; }

/* --- The results' statistics (staff) --- */
.stats-form { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stats-form h2 { flex-basis: 100%; margin: 0; font-family: "Chillax", sans-serif; font-size: 15px; font-weight: 500; color: var(--soft); }
.stats-form .field { flex: 1 1 200px; }
.stats-form button, .stats-form input[type="submit"] { font: inherit; cursor: pointer; }
.stats table { width: 100%; margin-top: 14px; border-collapse: collapse; background: var(--ink-2); border-radius: 14px; overflow: hidden; font-size: 14px; }
.stats th { width: 11em; text-align: left; vertical-align: top; padding: 8px 14px; color: var(--soft); font-weight: 500; border-bottom: 1px solid var(--ink-3); }
.stats td { padding: 8px 14px; border-bottom: 1px solid var(--ink-3); overflow-wrap: anywhere; }
.stats tr:last-child th, .stats tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .search-row { flex-direction: column; }
  .search .pill { width: 100%; }
  .stats th { width: 7.5em; }
}
