/* Free tools (/tools/dns-checker/, /tools/google-dns-checker/) in the dark Launch style.
   Loads after tokens.css, home.css and content.css (back link, title gradient, floating button). */

:root { --ok: #4ADE80; }

.tl-wrap { max-width: 840px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Hero + form ─────────────────────────────────────────────────────── */
.tl-hero { padding: 140px 0 32px; }
.tl-hero .lx-badge { margin-bottom: 20px; }
.tl-title { font-size: 48px; line-height: 1.08; margin-bottom: 20px; }
.tl-lede { max-width: 620px; margin: 0; font-size: 18px; line-height: 28px; color: var(--muted); text-wrap: pretty; }

.tl-form-section { padding: 8px 0 24px; }
.tl-form { padding: 24px; overflow: visible; }
.tl-form-row { display: flex; gap: 12px; align-items: center; }
.tl-input, .tl-select {
  flex: 1; min-width: 0; width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-btn);
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--fg);
  font-family: var(--font); font-size: 16px; color-scheme: dark;
}
.tl-input::placeholder { color: var(--muted); }
.tl-input:focus, .tl-select:focus { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-color: transparent; }
.tl-select { flex: 0 0 200px; font-size: 15px; }
.tl-submit { height: 48px; padding: 0 24px; flex-shrink: 0; }
.tl-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.tl-error { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--danger); }

/* ── Results (built by the page script) ──────────────────────────────── */
.tl-results-section { padding: 8px 0 56px; }
.tl-banner { padding: 24px 28px; margin-bottom: 12px; border-radius: var(--r-tile); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-2); }
.tl-banner.is-pass { background: rgba(74,222,128,0.06); box-shadow: inset 0 0 0 1px rgba(74,222,128,0.3); }
.tl-banner.is-fail { background: rgba(248,113,113,0.06); box-shadow: inset 0 0 0 1px rgba(248,113,113,0.3); }
.tl-banner-title { font-size: 19px; font-weight: 600; line-height: 26px; letter-spacing: -0.01em; color: var(--fg); }
.tl-banner-text { max-width: 520px; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tl-rows { padding: 8px 28px; }
.tl-row { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border-1); }
.tl-row:last-child { border-bottom: none; }
.tl-icon { width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tl-icon.pass { background: rgba(74,222,128,0.14); }
.tl-icon.fail { background: rgba(248,113,113,0.14); }
.tl-row-title { margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--fg); }
.tl-row-detail { font-size: 14px; line-height: 1.55; color: var(--muted); }
.tl-note { margin-top: -14px; padding: 0 0 18px 46px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tl-cta { margin-top: 20px; padding: 28px; text-align: center; }
.tl-cta-title { margin-bottom: 8px; font-size: 18px; font-weight: 600; color: var(--fg); }
.tl-cta-text { margin-bottom: 18px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── Explainer ───────────────────────────────────────────────────────── */
.tl-explainer { padding: 72px 0 96px; border-top: 1px solid var(--border-1); }
.tl-prose .lx-badge { margin-bottom: 20px; }
.tl-prose h2 { margin: 0 0 24px; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--fg); text-wrap: balance; }
.tl-prose h3 { margin: 32px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg); }
.tl-prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: var(--line-strong); text-wrap: pretty; }
.tl-prose a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(253,186,116,0.5); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-prose a:hover { text-decoration-color: var(--accent-soft); }
.tl-prose .mono, .tl-row-detail .mono, .tl-note .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em;
  background: rgba(250,250,250,0.08); padding: 2px 6px; border-radius: 6px; color: var(--fg); overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .tl-hero { padding-top: 104px; }
  .tl-title { font-size: clamp(30px, 8.5vw, 40px); overflow-wrap: break-word; }
  .tl-form-row { flex-direction: column; align-items: stretch; }
  .tl-select { flex: 0 0 auto; }
  .tl-submit { width: 100%; }
  .tl-rows { padding: 4px 20px; }
  .tl-explainer { padding: 56px 0 72px; }
}
