/* MyToolsBase — ToolHub visual system (navy + blue). Plain CSS, no build step.
   One set of tokens drives every page. Navy header, hero and footer frame
   light content areas. Green / amber / red only ever mean up / warning /
   down, and every measured number uses tabular figures so it doesn't jitter. */
:root {
  --navy-950: #061a38;
  --navy-900: #071f46;
  --navy-800: #0b2b5a;
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --line: #dce5f0;
  --line-strong: #c3d3e6;
  --ink: #071b3c;
  --ink-2: #33415a;
  --muted: #5b677d;
  --accent: #1478eb;          /* brand / primary action */
  --accent-2: #2091ff;
  --accent-ink: #ffffff;
  --accent-soft: #eaf4ff;
  --link: #1470d8;
  --up: #0f9d58;
  --up-soft: #e3f6ec;
  --down: #e5384f;
  --down-soft: #fdebee;
  --warn: #c27400;
  --warn-soft: #fff3df;
  --g-down: #2091ff;          /* speed graph: download */
  --g-up: #8b4ff0;            /* speed graph: upload */
  --shadow: 0 3px 10px rgba(14, 42, 78, .04), 0 15px 34px rgba(28, 73, 128, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--ink-2); font-size: .93rem; font-weight: 600; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: var(--surface-2); }
.lang-wrap { margin-inline-start: auto; flex: none; }
.lang-select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); font: 600 .85rem var(--font); padding: 7px 8px; cursor: pointer; max-width: 150px; }
@media (max-width: 720px) {
  .nav { height: auto; flex-wrap: wrap; gap: 0 12px; padding: 10px 0 0; }
  .nav-links { order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: 6px 0 0; padding: 0 0 8px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .lang-select { max-width: 132px; }
}

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font: 700 1rem var(--font); cursor: pointer; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); white-space: nowrap; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
input[type="text"], input[type="email"], textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: none; transition: border-color .15s, box-shadow .15s; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }

/* ---------- Ad slots ---------- */
.ad-slot { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; padding: 16px 12px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin: 24px auto; max-width: var(--maxw); }
.ad-slot.leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-slot.incontent, .ad-slot.inarticle { max-width: 728px; }
.ad-label { display: block; font-size: .65rem; opacity: .75; margin-bottom: 4px; }
.ad-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 44px 8px 12px; text-align: center; }
.ad-anchor .ad-label { margin-bottom: 2px; }
.ad-anchor-body { max-width: 970px; margin: 0 auto; min-height: 50px; max-height: 110px; overflow: hidden; }
.ad-anchor-close { position: absolute; top: 2px; right: 6px; background: none; border: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
body.ad-anchor-on { padding-bottom: 120px; }
body.ads-live .ad-slot { border: none; padding: 0; margin: 18px auto; text-transform: none; letter-spacing: normal; font-size: 1rem; color: inherit; }

/* ---------- Hero: the question + the live board, side by side ---------- */
.hero { padding: 44px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 .grad { color: var(--down); }
.hero p.sub { color: var(--ink-2); margin-top: 12px; max-width: 540px; font-size: 1.05rem; }
.check-form { display: flex; margin-top: 24px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.check-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.check-form input[type="text"] { flex: 1; min-width: 0; border: none; box-shadow: none; background: transparent; padding: 11px 12px; font-size: 1.05rem; font-family: var(--mono); }
.check-form input[type="text"]:focus { box-shadow: none; }
.check-form .btn { padding: 11px 24px; }
.quick-label { margin-top: 18px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 999px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 .88rem var(--font); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chip .mono { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 800 .62rem var(--mono); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }

/* Live board in the hero: a compact list, like a status page */
.hero-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-status .stitle { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 14px 18px 0; display: flex; align-items: center; gap: 8px; }
.hero-status .stitle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: blink 1.6s infinite; }
.hero-status .ssub { color: var(--muted); font-size: .82rem; padding: 2px 18px 10px; }
.board { display: grid; }
.pcard { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); animation: fadeIn .4s ease backwards; }
.pcard .pname { font-weight: 700; font-size: .95rem; }
.pcard .pmeta { font: .8rem var(--mono); color: var(--muted); text-align: end; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dot.up { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.dot.down { background: var(--down); box-shadow: 0 0 0 3px var(--down-soft); }
.dot.error { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.checking { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 28px; } }

/* ---------- Results: answer first, details underneath ---------- */
.results { margin-top: 18px; display: none; }
.results.show { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 12px; text-align: start; }
.verdict .v-icon { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; line-height: 1; }
.verdict h2 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; }
.verdict .v-url { font: .85rem var(--mono); color: var(--muted); word-break: break-all; }
.verdict .v-lead { color: var(--ink); font-size: 1rem; margin-top: 6px; }
.verdict .v-steps { grid-column: 2; margin: 8px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: .93rem; }
.verdict .v-steps li { margin-bottom: 3px; }
.verdict p.v-note, .verdict p.v-err { grid-column: 2; font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
.verdict.up { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.verdict.up .v-icon { background: var(--up-soft); color: var(--up); }
.verdict.up h2 { color: var(--up); }
.verdict.down { border-color: color-mix(in srgb, var(--down) 40%, var(--line)); }
.verdict.down .v-icon { background: var(--down-soft); color: var(--down); }
.verdict.down h2 { color: var(--down); }
.verdict.error { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.verdict.error .v-icon { background: var(--warn-soft); color: var(--warn); }
.verdict.error h2 { color: var(--warn); }
.details-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.metric summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; user-select: none; }
.metric summary::-webkit-details-marker { display: none; }
.metric summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.metric[open] summary::after { transform: rotate(180deg); }
.metric summary:hover { background: var(--surface-2); }
.metric .m-val { margin-inline-start: auto; font: 700 .9rem var(--mono); color: var(--ink); text-align: end; }
.metric .m-body { padding: 2px 16px 16px; color: var(--ink-2); font-size: .92rem; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kv div { background: var(--surface-2); border-radius: 8px; padding: 9px 12px; min-width: 0; }
.kv span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv b { font: 600 .92rem var(--mono); color: var(--ink); word-break: break-all; }
.hop { padding: 7px 0; border-bottom: 1px dashed var(--line); font: .85rem var(--mono); word-break: break-all; }
.hop:last-child { border-bottom: none; }
.hop .code { display: inline-block; min-width: 42px; text-align: center; font-weight: 700; font-size: .76rem; border-radius: 6px; padding: 1px 6px; margin-inline-end: 8px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.spinner { display: flex; align-items: center; gap: 12px; padding: 18px 4px; color: var(--muted); }
.spinner::before { content: ""; width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { background: var(--down-soft); border: 1px solid color-mix(in srgb, var(--down) 35%, var(--line)); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; }

/* ---------- Sections ---------- */
.section { padding: 44px 0 8px; }
.section h2.stitle { font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: 6px; }
.section p.ssub { color: var(--ink-2); max-width: 620px; margin-bottom: 22px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tool-card p { color: var(--ink-2); font-size: .9rem; margin-bottom: 14px; }
.tool-card .mini-form { display: flex; gap: 8px; }
.tool-card input[type="text"] { flex: 1; min-width: 0; padding: 10px 12px; font-size: .9rem; font-family: var(--mono); }
.tool-card .btn { padding: 10px 16px; font-size: .9rem; }
.tool-card .mini-out { margin-top: 12px; font: .82rem var(--mono); color: var(--ink-2); word-break: break-all; }
.badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; margin-bottom: 10px; }
.badge.live { background: var(--up-soft); color: var(--up); }

/* ---------- Speed test: dial ---------- */
.speed-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.dial { position: relative; width: min(280px, 78vw); aspect-ratio: 1; margin: 0 auto 6px; }
.dial svg { width: 100%; height: 100%; display: block; }
.dial-track, .dial-arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.dial-track { stroke: var(--surface-2); }
.dial-arc { stroke: var(--accent); transition: stroke-dashoffset .35s ease, stroke .3s; }
.dial-arc.up { stroke: var(--g-up); }
.dial-ticks text { font: 600 9px var(--mono); fill: var(--muted); }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 8%; pointer-events: none; }
.speed-number { font: 800 3.1rem/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.speed-number small { display: block; font: 600 .85rem var(--font); color: var(--muted); letter-spacing: .04em; margin-top: 6px; }
.speed-phase { color: var(--muted); min-height: 1.5em; font-size: .88rem; margin: -18px 0 8px; }
/* Idle: the start button sits in the middle of the dial, like a big GO */
.speed-card.is-idle .speed-number, .speed-card.is-idle .speed-phase { visibility: hidden; }
.speed-card.is-idle #speed-btn { position: absolute; left: 50%; top: calc(26px + min(140px, 39vw)); transform: translate(-50%, -50%); width: min(108px, 30vw); height: min(108px, 30vw); border-radius: 50%; padding: 0; font-size: 1rem; white-space: normal; text-align: center; line-height: 1.2; box-shadow: 0 0 0 7px var(--accent-soft); }
.speed-card.is-idle #speed-btn:active { transform: translate(-50%, -50%) scale(.98); }
.speed-bar { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 12px 0 18px; }
.speed-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 99px; transition: width .25s; }
.speed-graph { display: block; width: 100%; height: 84px; margin: 0 0 16px; background: var(--surface-2); border-radius: var(--radius-sm); }
.speed-graph polyline { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.speed-graph .g-down { stroke: var(--g-down); }
.speed-graph .g-up { stroke: var(--g-up); }
.speed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.speed-grid > div, .speed-meta > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; text-align: start; min-width: 0; }
.speed-grid > div:nth-child(n+5) { grid-column: span 2; }
.speed-grid span, .speed-meta span { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.speed-grid b { font: 700 1.1rem var(--mono); font-variant-numeric: tabular-nums; }
.speed-grid .k-down::before, .speed-grid .k-up::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; vertical-align: 0; }
.speed-grid .k-down::before { background: var(--g-down); }
.speed-grid .k-up::before { background: var(--g-up); }
.speed-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.speed-meta b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.speed-meta small { display: block; color: var(--muted); font: .8rem var(--mono); overflow-wrap: anywhere; }
.speed-note { font-size: .8rem; color: var(--muted); margin-top: 14px; max-width: 560px; margin-inline: auto; }
@media (max-width: 640px) {
  .speed-card { padding: 22px 14px; }
  .speed-grid { grid-template-columns: repeat(2, 1fr); }
  .speed-grid > div:nth-child(n+5) { grid-column: span 1; }
  .speed-meta { grid-template-columns: 1fr; }
  .speed-number { font-size: 2.5rem; }
  .speed-card.is-idle #speed-btn { top: calc(22px + 39vw); }
}

/* ---------- Content pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 40px 20px 30px; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 16px; }
.page h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 28px 0 10px; }
.page h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.page p, .page li { color: var(--ink-2); margin-bottom: 12px; }
.page ul, .page ol { padding-inline-start: 22px; }
.page strong { color: var(--ink); }
.contact-form { display: grid; gap: 12px; margin-top: 18px; }
.contact-form input, .contact-form textarea { padding: 12px 14px; font-size: 1rem; width: 100%; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 30px 0 36px; background: var(--surface); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 30px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-size: .9rem; }
.copy { color: var(--muted); font-size: .8rem; margin-top: 18px; text-align: center; }

/* ---------- Reveal on scroll (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Smart language banner ---------- */
.lang-banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-bottom: 1px solid var(--line); color: var(--ink); font-size: .88rem; padding: 9px 48px 9px 16px; position: relative; text-align: center; }
.lang-banner[hidden] { display: none; }
.banner-btn { background: var(--accent); border: none; border-radius: 8px; color: var(--accent-ink); font: 700 .85rem var(--font); padding: 6px 13px; cursor: pointer; white-space: nowrap; }
.banner-x { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ---------- RTL ---------- */
[dir="rtl"] .metric summary::after { transform: scaleX(-1); }

@media (max-width: 560px) {
  .check-form { flex-direction: column; padding: 8px; }
  .check-form .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .verdict .v-icon { grid-row: auto; }
  .verdict .v-steps, .verdict p.v-note, .verdict p.v-err { grid-column: 1; }
}

/* ---------- SEO pages: service status, blog, article ----------
   (build_seo.py only appends its own CSS when this marker is missing,
   so these token-based rules are what the generated pages use.) */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--svc, var(--accent)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 20px 0 8px; }
.svc-card .btn { margin-top: 14px; }
.svc-checking { color: var(--muted); }
.live-verdict { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.live-verdict strong { display: block; font-size: 1.1rem; color: var(--ink); }
.live-verdict div span { color: var(--ink-2); font-size: .88rem; }
.lv-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; }
.live-verdict.up .lv-dot { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.live-verdict.down .lv-dot { background: var(--down); box-shadow: 0 0 0 3px var(--down-soft); }
.live-verdict.err .lv-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.live-note { margin-top: 10px; font-size: .9rem; }
.causes { display: grid; gap: 10px; margin: 6px 0 4px; }
.cause { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.cause h3 { font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.cause p { margin: 0; font-size: .93rem; }
.steps { padding-inline-start: 22px; }
.steps li { margin-bottom: 10px; }
.faq { display: grid; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 16px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--ink); }
.faq-item p { margin: 0 0 14px; font-size: .94rem; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 6px; }
.rel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: block; transition: border-color .15s; }
.rel-card:hover { border-color: var(--accent); text-decoration: none; }
.rel-card strong { display: block; color: var(--ink); margin-bottom: 2px; }
.rel-card span { font-size: .82rem; color: var(--link); }
.also-see { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 18px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; transition: border-color .15s; }
.blog-card:hover { border-color: var(--accent); text-decoration: none; }
.blog-card strong { display: block; font-size: 1.05rem; line-height: 1.3; color: var(--ink); margin: 4px 0 8px; }
.blog-card p { font-size: .92rem; color: var(--ink-2); margin: 0 0 12px; flex: 1; }
.blog-date { font: .75rem var(--mono); color: var(--muted); }
.blog-more { font-size: .88rem; font-weight: 700; color: var(--link); }
.byline { color: var(--muted); font-size: .88rem; margin-top: -8px; }
.lede { font-size: 1.08rem; color: var(--ink); }
.article h2 { margin-top: 32px; }
.article code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font: .88em var(--mono); }
.check-cta { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius); padding: 22px; margin: 34px 0 10px; text-align: center; }
.check-cta strong { font-size: 1.15rem; color: var(--ink); }
.check-cta p { margin: 8px 0 16px; }
.foot-svc { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .85rem; }
.foot-svc a { color: var(--muted); }
@media (max-width: 640px) { .related { grid-template-columns: 1fr 1fr; } .svc-card { padding: 16px; } }

/* =====================================================================
   ToolHub look — merged onto the DownCheck markup. Everything above stays
   as the base; these rules restyle header, hero, cards and footer.
   ===================================================================== */
body { background: var(--bg); }

/* Header: navy bar, white links, blue underline on the current page */
.site-header { background: var(--navy-950); backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav { height: 70px; }
.brand { color: #fff; font-size: 1.3rem; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.pulse-dot { width: 12px; height: 12px; background: #2fd47f; }
.nav-links { gap: 6px; }
.nav-links a { position: relative; color: rgba(255,255,255,.88); background: none; padding: 8px 10px; border-radius: 0; font-size: .9rem; }
.nav-links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent-2); transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: none; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.lang-select { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.lang-select option { color: var(--ink); background: #fff; }
@media (max-width: 720px) { .nav { height: auto; } }

/* Buttons: blue gradient, soft glow */
.btn { border: 0; color: #fff; background: linear-gradient(135deg, var(--accent-2), #1461db); box-shadow: 0 8px 18px rgba(25, 112, 224, .28); transition: transform .15s ease, box-shadow .15s ease, filter .15s; }
.btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 11px 23px rgba(25, 112, 224, .38); }

/* Hero: navy gradient with soft blue glow */
.hero { position: relative; color: #fff; padding: 52px 0 44px; isolation: isolate;
  background: radial-gradient(circle at 70% 25%, rgba(17,106,202,.28), transparent 34%),
              linear-gradient(113deg, #061a38 0%, #072b5d 70%, #07346d 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: 4%; top: 30px; border-radius: 50%; background: rgba(20,120,235,.10); filter: blur(4px); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3rem); letter-spacing: -.034em; line-height: 1.12; }
.hero h1 .grad { color: #ff6b7d; }
.hero p.sub { color: rgba(234,243,255,.88); }
.check-form { border: 2px solid rgba(255,255,255,.92); border-radius: 999px; padding: 4px 4px 4px 14px; box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.check-form:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgba(32,145,255,.28), 0 14px 32px rgba(0,0,0,.18); }
.check-form input[type="text"] { font-family: var(--font); font-size: 1rem; color: var(--ink); }
.check-form .btn { border-radius: 999px; padding: 12px 28px; }
.quick-label { color: rgba(234,243,255,.72); }
.chip { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.chip:hover { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(104,168,255,.7); }
.chip .mono { color: #fff; background: linear-gradient(145deg, #159cff, #1461db); border: 0; }
.hero-status { border: 0; box-shadow: 0 24px 60px rgba(0,0,0,.28); border-radius: 20px; color: var(--ink); }
.hero .results .details-title { color: rgba(234,243,255,.75); }
.hero .verdict, .hero .metric, .hero .err-box { box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.hero .spinner { color: rgba(234,243,255,.85); }
.hero .spinner::before { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@media (max-width: 560px) {
  .check-form { border-radius: 22px; padding: 8px; }
  .check-form .btn { border-radius: 16px; }
}

/* Section headings: left-aligned, bold, ToolHub scale */
.section h2.stitle { font-size: clamp(1.6rem, 2.4vw, 1.95rem); letter-spacing: -.027em; color: var(--ink); }
.section p.ssub { color: var(--muted); }

/* Cards: white, rounded, lift on hover */
.tool-card, .rel-card, .blog-card, .cause, .faq-item, .metric, .verdict, .speed-card, .svc-card {
  border-color: var(--line); background: #fff; }
.tool-card, .rel-card, .blog-card { border-radius: var(--radius); box-shadow: 0 3px 10px rgba(14,42,78,.03); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-card:hover, .rel-card:hover, .blog-card:hover { transform: translateY(-4px); border-color: #b8d6f6; box-shadow: 0 15px 34px rgba(28,73,128,.12); text-decoration: none; }
.speed-card, .svc-card { border-radius: 22px; box-shadow: var(--shadow); }

/* Coloured icon chips on the tool cards */
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; color: #fff; border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(24,69,121,.16); }
.tool-icon svg { width: 26px; height: 26px; }
.icon-blue { background: linear-gradient(145deg, #159cff, #1461db); }
.icon-purple { background: linear-gradient(145deg, #ad4df6, #7431dd); }
.icon-green { background: linear-gradient(145deg, #20d4ad, #06a45f); }
.icon-orange { background: linear-gradient(145deg, #ffb21c, #ff7800); }
.badge.live { position: absolute; top: 18px; inset-inline-end: 18px; margin: 0; }
.tool-card { position: relative; }

/* Speed dial in brand blue, start button as a glowing blue disc */
.dial-track { stroke: #e7eef8; }
.speed-card.is-idle #speed-btn { box-shadow: 0 0 0 8px var(--accent-soft), 0 12px 26px rgba(25,112,224,.35); }
.speed-fill { background: linear-gradient(90deg, var(--accent-2), #1461db); }

/* Footer: deep navy */
footer { background: #06172f; border-top: 0; color: #c2d1e3; padding: 40px 0 34px; }
footer .brand { color: #fff; }
.foot-links a { color: #91a6bf; }
.foot-links a:hover { color: #63b7ff; text-decoration: none; }
.foot-svc a { color: #70869f; }
.copy { color: #70869f; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; margin-top: 26px; }

/* Language banner on navy pages */
.lang-banner { background: #0b2b5a; color: #e6f0ff; border-bottom: 1px solid rgba(255,255,255,.12); }
.banner-x { color: rgba(255,255,255,.7); }

/* Never let anything (e.g. right-to-left menus) widen the page sideways. */
html, body { overflow-x: clip; }

/* ---------- ToolHub homepage layout: hero art, tool grid, benefits ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero { padding: 40px 0 34px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: linear-gradient(to right, transparent 10%, #000 45%); mask-image: linear-gradient(to right, transparent 10%, #000 45%); }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 36px; }
.eyebrow { color: #d5e9ff; font-size: .75rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; margin-bottom: 12px; }
.check-form { align-items: center; }
.check-ic { width: 20px; height: 20px; color: #718096; flex: none; margin-inline-start: 4px; }
.hero-art { position: relative; height: 330px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 16% 9%; border-radius: 50%; background: radial-gradient(circle, rgba(31,144,255,.21), transparent 66%); filter: blur(12px); }
.hero-art svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.needle { transform-origin: 334px 215px; animation: needle 4s ease-in-out infinite; }
.satellite { animation: float 4.5s ease-in-out infinite; }
.sat-2 { animation-delay: -.8s; } .sat-3 { animation-delay: -1.7s; } .sat-4 { animation-delay: -2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes needle { 0%, 20%, 100% { transform: rotate(-18deg); } 50%, 75% { transform: rotate(12deg); } }

.popular-section { background: linear-gradient(180deg, #fff 0%, #fbfdff 100%); padding: 34px 0 30px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.section-heading-row .ssub { margin-bottom: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; }
a.tool-card { position: relative; display: block; min-height: 160px; padding: 18px 46px 18px 20px; color: var(--ink); text-decoration: none; overflow: hidden; }
a.tool-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 0%, rgba(33,145,255,.07), transparent 36%); opacity: 0; transition: opacity .2s ease; }
a.tool-card:hover::before { opacity: 1; }
.tool-title, .tool-description { position: relative; z-index: 1; display: block; }
.tool-title { color: #0b1d3b; font-size: .98rem; font-weight: 780; letter-spacing: -.01em; }
.tool-description { margin-top: 6px; color: var(--muted); font-size: .83rem; line-height: 1.48; }
.card-arrow { position: absolute; right: 17px; bottom: 16px; z-index: 1; color: #51708f; transition: transform .18s ease, color .18s ease; }
.card-arrow svg { width: 18px; height: 18px; display: block; }
a.tool-card:hover .card-arrow { color: var(--accent); transform: translateX(4px); }
[dir="rtl"] .card-arrow { right: auto; left: 17px; transform: scaleX(-1); }
.icon-red { background: linear-gradient(145deg, #ff537a, #ec1651); }
.icon-teal { background: linear-gradient(145deg, #27d5c8, #05a9a8); }

.benefits { border-top: 1px solid #d7e6f6; border-bottom: 1px solid #d7e6f6; background: #eef6ff; }
.benefit-inner { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.benefit-item { display: flex; align-items: center; gap: 14px; }
.benefit-item > svg { flex: none; width: 32px; height: 32px; color: #0b75e8; }
.benefit-item h3 { margin: 0 0 3px; font-size: .86rem; color: var(--ink); }
.benefit-item p { margin: 0; color: #5c6b80; font-size: .76rem; }

/* Live status as its own section: a grid of status cards */
#status .board { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
#status .pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 3px 10px rgba(14,42,78,.03); }

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 260px; max-width: 520px; margin: 0 auto; width: 100%; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-art { display: none; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  a.tool-card { min-height: 0; }
  .benefit-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .check-ic { display: none; }
}

/* ---------- Layout fixes (2026-10-30 audit) ---------- */
/* Live status cards: name on top, status + response time underneath, so
   nothing is cut off however narrow the card gets. */
#status .board { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
#status .pcard { grid-template-columns: 12px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 10px; padding: 14px 16px; }
#status .pcard .dot { grid-row: 1; }
#status .pcard .pname { grid-row: 1; grid-column: 2; margin: 0; }
#status .pcard .pmeta { grid-row: 2; grid-column: 2; text-align: start; white-space: normal; overflow-wrap: anywhere; }

/* Popular status checks: proper cards with each platform's colour on top */
.related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.rel-card { min-width: 0; padding: 16px 18px; border-top: 3px solid var(--svc-c, var(--accent)); }
.rel-card strong { font-size: 1rem; overflow-wrap: anywhere; }
.rel-card span { display: inline-block; margin-top: 4px; font-weight: 700; }
.rel-card[href*="youtube"] { --svc-c: #ff0033; }
.rel-card[href*="facebook"] { --svc-c: #1877f2; }
.rel-card[href*="instagram"] { --svc-c: #e1306c; }
.rel-card[href*="tiktok"] { --svc-c: #111827; }
.rel-card[href*="is-x-down"] { --svc-c: #0f1419; }
.rel-card[href*="google"] { --svc-c: #34a853; }

/* Phone menu: wrap onto a second line instead of hiding items off-screen */
@media (max-width: 720px) {
  .nav-links { flex-wrap: wrap; overflow-x: visible; gap: 2px 0; padding-bottom: 6px; }
  .nav-links a { padding: 6px 9px; font-size: .86rem; }
  .nav-links a::after { left: 9px; right: 9px; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .related { grid-template-columns: 1fr; } }
#status .pcard .pms { display: block; color: var(--ink-2); font-weight: 600; }

/* ---------- Tool pages (what-is-my-ip, ip-lookup, whois, dns propagation, headers, port, ping) ---------- */
.toolpage { max-width: 860px; }
.tool-head { display: flex; gap: 18px; align-items: flex-start; }
.tool-head .tool-icon { flex: none; width: 58px; height: 58px; margin: 4px 0 0; }
.tool-head .tool-icon svg { width: 30px; height: 30px; }
.tool-head h1 { margin-bottom: 8px; }
.tool-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 24px 0 30px; }
.tool-form { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-form input, .tool-form select { flex: 1 1 220px; min-width: 0; font: 500 1rem var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 18px; }
.tool-form select, .tool-form .port-in { flex: 0 0 auto; width: 110px; }
.tool-form input:focus, .tool-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool-form .btn { border-radius: 999px; padding: 12px 26px; }
.port-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.port-chips button { font: 600 .82rem var(--font); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.port-chips button:hover { border-color: var(--accent); color: var(--accent); }
.port-chips small { color: var(--muted); font-weight: 500; }
.tool-out:not(:empty) { margin-top: 18px; }
.toolpage[data-tool="myip"] .tool-out { margin-top: 0; }
.tool-out h3 { font-size: 1rem; margin: 20px 0 8px; }
.t-wait { color: var(--muted); }
.t-muted { color: var(--muted); }
.t-muted.small { font-size: .84rem; margin-top: 10px; }
.t-verdict { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; background: var(--surface-2); }
.t-verdict strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.t-verdict span:not(.t-dot) { display: block; color: var(--ink-2); font-size: .92rem; }
.t-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.t-verdict.ok { background: var(--up-soft); } .t-verdict.ok .t-dot { background: var(--up); }
.t-verdict.bad { background: var(--down-soft); } .t-verdict.bad .t-dot { background: var(--down); }
.t-verdict.warn { background: var(--warn-soft); } .t-verdict.warn .t-dot { background: var(--warn); }
.ip-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 4px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ip-big span { flex-basis: 100%; color: var(--muted); font-size: .88rem; font-weight: 600; }
.ip-big strong { font: 800 clamp(1.4rem, 5vw, 2.2rem) var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; min-width: 0; }
.btn.ghost { background: var(--surface-2); color: var(--accent); box-shadow: none; border: 1px solid var(--line-strong); padding: 7px 16px; font-size: .88rem; border-radius: 999px; }
.kv-list > div { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { color: var(--muted); font-size: .9rem; }
.kv-list dd { font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.t-more { margin-top: 12px; font-weight: 600; }
.t-table-wrap { overflow-x: auto; }
.t-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t-table th { text-align: start; color: var(--muted); font-weight: 600; font-size: .82rem; padding: 6px 8px; border-bottom: 1px solid var(--line-strong); }
.t-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.t-table td small { display: block; color: var(--muted); font-size: .8rem; }
.t-table td.ans { font-family: var(--mono); font-size: .86rem; }
.t-table td.num { white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.t-table.hdr td:first-child { font-family: var(--mono); font-weight: 600; white-space: nowrap; width: 1%; }
.t-table.hdr td:last-child { font-family: var(--mono); font-size: .84rem; }
.m-ok { color: var(--up); font-weight: 800; } .m-bad { color: var(--down); font-weight: 800; }
.sec-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 6px; }
.sec-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.sec-list li.on { background: var(--up-soft); } .sec-list li.on span { color: var(--up); }
.sec-list li.off { background: var(--down-soft); } .sec-list li.off span { color: var(--down); }
.sec-list em { margin-inline-start: auto; font-style: normal; font-weight: 500; font-size: .8rem; color: var(--muted); }
.ping-lines { list-style: none; font-family: var(--mono); font-size: .88rem; background: var(--navy-950); color: #d7e6ff; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; overflow-wrap: anywhere; }
.ping-lines li.lost { color: #ff9aa8; }
.tool-related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.rel-card.tool-rel { display: flex; align-items: center; gap: 12px; border-top-width: 1px; }
.rel-card.tool-rel strong { margin: 0; font-size: .95rem; }
.tool-icon.sm { width: 36px; height: 36px; margin: 0; border-radius: 11px; flex: none; }
.tool-icon.sm svg { width: 19px; height: 19px; }
.foot-tools a { color: inherit; opacity: .8; }
@media (max-width: 560px) {
  .tool-head .tool-icon { display: none; }
  .tool-box { padding: 16px; }
  .tool-form .btn { flex: 1 1 100%; }
  .kv-list > div { grid-template-columns: 1fr; gap: 2px; }
  .t-table td, .t-table th { padding: 7px 5px; }
}
