/* ============================================================
   INTERNETSPEEDTESTERS.ONLINE — MAIN STYLESHEET v2.0
   Mobile-first · Light tool UI · AdSense-ready
============================================================ */

/* ---- TOKENS ---- */
:root {
  --blue:      #2563eb;
  --blue-d:    #1d4ed8;
  --blue-l:    #eff6ff;
  --cyan:      #0891b2;
  --navy:      #0f172a;
  --navy2:     #1e293b;
  --green:     #16a34a;
  --green-l:   #f0fdf4;
  --yellow:    #d97706;
  --yellow-l:  #fffbeb;
  --red:       #dc2626;
  --red-l:     #fef2f2;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;
  --text:      #1e293b;
  --text-2:    #475569;
  --text-3:    #64748b;
  --border:    #e2e8f0;
  --border-d:  #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --radius:    12px;
  --radius-lg: 20px;
  --font-h:    'Space Grotesk', system-ui, sans-serif;
  --font-b:    'Inter', system-ui, sans-serif;

  /* Tool theme (light by default) */
  --tool-bg:      #ffffff;
  --tool-border:  #e2e8f0;
  --tool-text:    #1e293b;
  --tool-sub:     #64748b;
  --tool-metric:  #1e293b;
  --tool-tab-bg:  #f1f5f9;
  --tool-tab-act: #ffffff;
  --tool-tab-txt: #64748b;
  --tool-tab-atx: #1e293b;
  --tool-log-bg:  #f8fafc;
  --tool-log-col: #334155;
  --gauge-track:  rgba(0,0,0,.08);
  --gauge-needle: #1e293b;
  --gauge-center: #ffffff;
  --hero-bg:      linear-gradient(160deg,#0f172a 0%,#1e3a5f 100%);
  --hero-text:    #ffffff;
  --hero-sub:     #cbd5e1;
}

/* Dark tool variant */
.dark-tool {
  --tool-bg:      #0f172a;
  --tool-border:  #1e293b;
  --tool-text:    #f1f5f9;
  --tool-sub:     #94a3b8;
  --tool-metric:  #ffffff;
  --tool-tab-bg:  rgba(255,255,255,.05);
  --tool-tab-act: rgba(255,255,255,.12);
  --tool-tab-txt: rgba(255,255,255,.5);
  --tool-tab-atx: #ffffff;
  --tool-log-bg:  rgba(0,0,0,.3);
  --tool-log-col: #94a3b8;
  --gauge-track:  rgba(255,255,255,.08);
  --gauge-needle: #ffffff;
  --gauge-center: rgba(255,255,255,.9);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  background: #fff;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.4rem; }

/* ---- LAYOUT ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-light { background: var(--gray-50); }
.section-white { background: #fff; }

/* Grid */
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* ---- TYPOGRAPHY ---- */
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.section-title { font-family: var(--font-h); font-size: clamp(22px, 4vw, 36px); font-weight: 800; color: var(--text); line-height: 1.2; }
.section-sub { font-size: 15px; color: var(--text-2); margin-top: 10px; line-height: 1.6; max-width: 560px; }
.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700;
  font-size: 15px; border: none; cursor: pointer;
  transition: all .18s; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.35); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f4ff; color: var(--blue-d); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: transform .25s;
}
.site-header.hide { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px; gap: 16px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.logo-name { font-family: var(--font-h); font-weight: 800; font-size: 17px; color: #fff; line-height: 1; }
.logo-name span { color: #38bdf8; }
.logo-tld { font-size: 11px; color: #64748b; font-weight: 500; display: block; margin-top: 1px; }

/* Desktop nav */
.desktop-nav { display: none; }
@media (min-width: 768px) { .desktop-nav { display: flex; align-items: center; gap: 2px; } }
.desktop-nav a {
  color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 7px;
  transition: all .15s; text-decoration: none; white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a.active { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.desktop-nav .nav-cta { background: var(--blue); color: #fff !important; margin-left: 8px; padding: 7px 16px; }
.desktop-nav .nav-cta:hover { background: var(--blue-d) !important; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; background: none; border: none;
  padding: 6px; border-radius: 7px; cursor: pointer;
  justify-content: center; align-items: center;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 60px 0 0;
  background: rgba(15,23,42,.98); z-index: 199;
  overflow-y: auto; padding: 12px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,.8);
  padding: 14px 24px; font-size: 16px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none; transition: background .15s;
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.mobile-nav .nav-cta-mob { background: var(--blue); color: #fff !important; margin: 16px; border-radius: 10px; text-align: center; border: none; }

/* ============================================================
   HERO (Homepage)
============================================================ */
.hero {
  background: var(--hero-bg);
  padding: 48px 0 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 400px at 50% 0%, rgba(37,99,235,.2), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-block; background: rgba(56,189,248,.15);
  border: 1px solid rgba(56,189,248,.3); color: #38bdf8;
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-h); font-size: clamp(28px, 6vw, 54px);
  font-weight: 800; color: var(--hero-text); line-height: 1.1;
  margin-bottom: 14px;
}
.hero-title .accent { color: #38bdf8; }
.hero-sub { font-size: clamp(14px, 2.5vw, 17px); color: var(--hero-sub); max-width: 520px; margin: 0 auto 36px; line-height: 1.6; }

/* ============================================================
   THEME TOGGLE
============================================================ */
.theme-toggle-wrap { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; padding: 5px 14px 5px 8px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8);
  cursor: pointer; transition: all .2s;
}
.theme-toggle:hover { background: rgba(255,255,255,.15); }
.toggle-icon { font-size: 15px; }
/* In light section */
.light-section .theme-toggle { background: var(--gray-100); border-color: var(--border); color: var(--text-2); }

/* ============================================================
   TOOL CARD (Light by default)
============================================================ */
.tool-wrap { max-width: 680px; margin: 0 auto; }

.tool-card {
  background: var(--tool-bg);
  border: 1px solid var(--tool-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-lg);
  transition: background .3s, border-color .3s;
}
@media (min-width: 640px) { .tool-card { padding: 36px 36px 28px; } }

/* Tabs */
.tool-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  background: var(--tool-tab-bg); padding: 4px; border-radius: 10px;
}
.tool-tab {
  flex: 1; padding: 9px 6px; border: none; border-radius: 7px;
  background: transparent; color: var(--tool-tab-txt);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
@media (min-width: 400px) { .tool-tab { font-size: 13px; padding: 9px 10px; } }
.tool-tab.active { background: var(--tool-tab-act); color: var(--tool-tab-atx); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ---- GAUGE ---- */
.gauge-wrap { position: relative; width: 240px; height: 130px; margin: 0 auto 24px; }
@media (min-width: 400px) { .gauge-wrap { width: 260px; height: 140px; } }
.gauge-svg { width: 100%; height: 100%; }
#gaugeNeedle { transform-origin: 130px 130px; transform: rotate(-90deg); transition: transform 1.2s cubic-bezier(.4,0,.2,1); }
.speed-display { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.speed-num { font-family: var(--font-h); font-size: 44px; font-weight: 800; color: var(--tool-metric); line-height: 1; display: block; }
@media (min-width: 400px) { .speed-num { font-size: 52px; } }
.speed-unit { font-size: 11px; color: var(--tool-sub); font-weight: 700; letter-spacing: .08em; }

/* ---- METRICS ROW ---- */
.metrics-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }
.metric { text-align: center; }
.metric-val { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--tool-metric); }
@media (min-width: 400px) { .metric-val { font-size: 21px; } }
.metric-lbl { font-size: 10px; color: var(--tool-sub); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.metric-bar { height: 4px; background: var(--gray-200); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.metric-fill { height: 100%; border-radius: 2px; width: 0; transition: width 1s ease; }

/* ---- TEST BUTTON ---- */
.test-btn {
  width: 100%; padding: 16px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--blue) 0%, #0891b2 100%);
  color: #fff; font-family: var(--font-h); font-size: 17px; font-weight: 700;
  cursor: pointer; transition: all .2s; margin-top: 8px;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.test-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.45); }
.test-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---- PROGRESS ---- */
.test-progress { display: none; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; font-size: 13px; color: var(--tool-sub); }
.test-progress.show { display: flex; }
.spin { width: 15px; height: 15px; border: 2px solid var(--gray-300); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
.dark-tool .spin { border-color: rgba(255,255,255,.2); border-top-color: #38bdf8; }
@keyframes spin { to { transform: rotate(360deg); } }

.test-status { font-size: 12px; color: var(--tool-sub); text-align: center; margin-top: 10px; min-height: 16px; line-height: 1.4; }
@media (min-width: 400px) { .test-status { font-size: 13px; } }

/* ---- RESULT BADGE ---- */
.result-badge { display: none; padding: 11px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-top: 14px; text-align: center; line-height: 1.4; }
.badge-excellent { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-good      { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-fair      { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-poor      { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- PING PANEL ---- */
.ping-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 400px) { .ping-grid { grid-template-columns: repeat(4,1fr); } }
.ping-stat { text-align: center; padding: 14px 8px; background: var(--tool-tab-bg); border-radius: 10px; }
.ping-stat-val { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--tool-metric); }
.ping-stat-lbl { font-size: 10px; color: var(--tool-sub); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.ping-log {
  background: var(--tool-log-bg); border: 1px solid var(--tool-border);
  border-radius: 10px; padding: 14px; max-height: 180px; overflow-y: auto;
  font-family: 'Courier New', monospace; font-size: 12px;
  color: var(--tool-log-col); margin: 12px 0; line-height: 1.7;
}

/* ---- JITTER CHART ---- */
.jitter-chart { background: var(--tool-log-bg); border: 1px solid var(--tool-border); border-radius: 10px; height: 100px; position: relative; overflow: hidden; margin: 12px 0; }

/* ============================================================
   RESULTS GUIDE TABLE (homepage)
============================================================ */
.results-guide {
  max-width: 680px; margin: 20px auto 0;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  box-shadow: var(--shadow-sm);
}
.results-guide h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.speed-table { width: 100%; border-collapse: collapse; font-size: 13px; }
@media (min-width: 640px) { .speed-table { font-size: 14px; } }
.speed-table th { background: var(--gray-100); padding: 9px 12px; text-align: left; font-weight: 700; color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.speed-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.speed-table tr:last-child td { border-bottom: none; }
.speed-table tr:nth-child(even) td { background: var(--gray-50); }
.cell-green { color: #15803d; font-weight: 700; }
.cell-yellow { color: #b45309; font-weight: 700; }
.cell-red { color: #dc2626; font-weight: 700; }

/* ============================================================
   TRUST BAR
============================================================ */
.trust-bar { background: var(--navy2); padding: 24px 0; }
.trust-items { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; text-align: center; }
@media (min-width: 640px) { .trust-items { grid-template-columns: repeat(4,1fr); } }
.trust-item .icon { font-size: 24px; margin-bottom: 6px; }
.trust-item .label { font-size: 12px; color: #94a3b8; font-weight: 600; line-height: 1.4; }

/* ============================================================
   BLOG CARDS — FULLY VISIBLE TEXT
============================================================ */
.blog-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-card a:hover { text-decoration: none; }

.card-thumb {
  height: 180px; overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-icon { font-size: 48px; }

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; background: #ffffff; }
.card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin-bottom: 8px; display: block; }
.card-title { font-family: var(--font-h); font-size: 16px; font-weight: 700; color: #1e293b !important; line-height: 1.35; margin-bottom: 10px; }
.card-excerpt { font-size: 14px; color: #475569 !important; line-height: 1.6; margin-bottom: 14px; flex: 1; }
.card-meta { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card-meta .dot { color: #cbd5e1; }
.card-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 12px; }

/* ============================================================
   PAGE HERO (inner pages)
============================================================ */
.page-hero { background: linear-gradient(135deg, var(--navy), #1e3a5f); padding: 48px 0 40px; }
.page-hero h1 { font-family: var(--font-h); font-size: clamp(26px, 5vw, 44px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.page-hero p { font-size: 15px; color: #94a3b8; max-width: 520px; line-height: 1.6; }

/* ============================================================
   BLOG LIST PAGE
============================================================ */
.blog-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .blog-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.blog-main { min-width: 0; }
.blog-sidebar { display: none; }
@media (min-width: 1024px) { .blog-sidebar { display: block; position: sticky; top: 76px; } }

.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-btn {
  padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: all .15s; text-decoration: none;
}
.cat-btn:hover, .cat-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }

.pagination { margin-top: 40px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s; }
.page-numbers:hover, .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   SINGLE POST
============================================================ */
.post-wrap { padding: 40px 0 72px; }
.post-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: 1fr 280px; align-items: start; } }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--text-3); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.bc-sep { color: var(--border-d); }

.post-header { margin-bottom: 28px; }
.post-cats { margin-bottom: 10px; }
.post-cats a { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); text-decoration: none; background: var(--blue-l); padding: 3px 10px; border-radius: 99px; }
.post-title { font-family: var(--font-h); font-size: clamp(24px, 4vw, 40px); font-weight: 800; color: var(--text); line-height: 1.18; margin: 12px 0 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.author-chip { display: flex; align-items: center; gap: 8px; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0891b2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name strong { color: var(--text); }
.post-feat { border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.post-feat img { width: 100%; height: auto; }

/* Content */
.post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
@media (min-width: 640px) { .post-content { font-size: 17px; } }
.post-content h2 { font-family: var(--font-h); font-size: 24px; font-weight: 800; margin: 40px 0 14px; color: var(--text); }
@media (min-width: 640px) { .post-content h2 { font-size: 27px; } }
.post-content h3 { font-family: var(--font-h); font-size: 19px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.post-content h4 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--blue); text-decoration: underline; }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content blockquote { border-left: 4px solid var(--blue); padding: 14px 18px; background: var(--blue-l); border-radius: 0 10px 10px 0; margin: 24px 0; color: var(--text-2); font-style: italic; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.post-content th { background: var(--gray-100); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 12px; color: var(--text-2); }
.post-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-content tr:last-child td { border-bottom: none; }
.post-content img { border-radius: 10px; margin: 20px 0; }
.post-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: .88em; font-family: 'Courier New', monospace; color: #c7254e; }
.post-content pre { background: var(--navy); color: #e2e8f0; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; margin: 24px 0; }

.post-callout { background: #eff6ff; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 24px; font-size: 15px; color: var(--text-2); }
.post-callout strong { color: var(--blue); }
.post-tool-cta { background: linear-gradient(135deg, var(--navy), #1e3a5f); border-radius: 16px; padding: 28px; text-align: center; margin: 40px 0; color: #fff; }
.post-tool-cta h3 { font-family: var(--font-h); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.post-tool-cta p { color: #94a3b8; margin-bottom: 16px; font-size: 14px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; align-items: center; }
.post-tags span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.post-tags a { background: var(--gray-100); border: 1px solid var(--border); padding: 4px 12px; border-radius: 99px; font-size: 12px; color: var(--text-2); text-decoration: none; transition: all .15s; }
.post-tags a:hover { background: var(--blue-l); border-color: var(--blue); color: var(--blue); }

/* Author bio */
.author-bio { background: var(--gray-50); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; gap: 18px; margin: 36px 0; }
.bio-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.bio-avatar .bio-av-fallback { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0891b2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; }
.bio-name { font-weight: 800; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.bio-role { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.bio-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 520px) { .author-bio { flex-direction: column; } }

/* Related posts */
.related-posts { border-top: 2px solid var(--border); padding-top: 32px; margin-top: 40px; }
.related-posts h3 { font-family: var(--font-h); font-weight: 800; font-size: 19px; margin-bottom: 18px; }
.related-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3,1fr); } }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: all .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.related-thumb { height: 100px; background: linear-gradient(135deg, #1e3a5f, #0f172a); display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 12px 14px; }
.related-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.related-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.related-date { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* Post sidebar */
.post-sidebar { display: none; }
@media (min-width: 1024px) { .post-sidebar { display: block; position: sticky; top: 76px; } }
.sidebar-toc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.sidebar-toc h4 { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 12px; }
#tocList { list-style: none; padding: 0; }
#tocList li { border-bottom: 1px solid var(--border); padding: 7px 0; font-size: 13px; }
#tocList li:last-child { border-bottom: none; }
#tocList li a { color: var(--text-2); text-decoration: none; line-height: 1.4; display: block; }
#tocList li a:hover { color: var(--blue); }
#tocList li.toc-h3 { padding-left: 14px; font-size: 12px; }

.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.sidebar-box h4 { font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text); }
.sidebar-cta { background: linear-gradient(135deg, var(--navy), #1e3a5f); border-radius: 12px; padding: 20px; text-align: center; color: #fff; margin-bottom: 20px; }
.sidebar-cta h4 { font-family: var(--font-h); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.sidebar-cta p { font-size: 12px; color: #94a3b8; margin-bottom: 14px; }

/* ============================================================
   TOOL PAGES (individual — Ping, Jitter, Speed)
============================================================ */
.tool-page-hero { background: linear-gradient(135deg, #0f172a, #1e3a5f); padding: 48px 0 40px; }
.tool-page-hero h1 { font-family: var(--font-h); font-size: clamp(26px, 5vw, 44px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.tool-page-hero p { font-size: 15px; color: #94a3b8; max-width: 540px; line-height: 1.6; }
.tool-page-hero .hero-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.tool-page-hero .hero-meta span { font-size: 12px; color: #64748b; background: rgba(255,255,255,.07); padding: 4px 12px; border-radius: 99px; }

.tool-page-layout { display: grid; gap: 40px; padding: 40px 0 72px; }
@media (min-width: 1024px) { .tool-page-layout { grid-template-columns: 1fr 320px; align-items: start; } }

.tool-page-main { min-width: 0; }
.tool-page-sidebar { display: none; }
@media (min-width: 1024px) { .tool-page-sidebar { display: block; position: sticky; top: 76px; } }

/* ============================================================
   AD ZONES
============================================================ */
.ad-zone { border-radius: 8px; background: var(--gray-100); border: 1px dashed var(--border-d); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); text-align: center; }
.ad-banner { height: 90px; margin: 20px 0; }
.ad-rect { height: 280px; }
.ad-inline { min-height: 250px; margin: 32px 0; }

/* ============================================================
   FEATURE / INFO SECTIONS
============================================================ */
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.feat-check { color: var(--green); font-size: 17px; flex-shrink: 0; margin-top: 1px; }

.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-card h3 { font-family: var(--font-h); font-weight: 700; font-size: 17px; margin-bottom: 12px; color: var(--text); }
.info-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }

.step-card { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step-card:last-child { border-bottom: none; }
.step-num { width: 36px; height: 36px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-text strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.step-text p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* Ping reference table */
.ping-ref-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .ping-ref-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .ping-ref-grid { grid-template-columns: repeat(3,1fr); } }
.ping-ref-card { border-radius: 12px; padding: 20px; text-align: center; }
.ping-ref-range { font-family: var(--font-h); font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.ping-ref-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ping-ref-desc { font-size: 13px; line-height: 1.5; }
.ref-excellent { background: var(--green-l); border: 1px solid #bbf7d0; }
.ref-excellent .ping-ref-range, .ref-excellent .ping-ref-label { color: #15803d; }
.ref-excellent .ping-ref-desc { color: #166534; }
.ref-good { background: var(--blue-l); border: 1px solid #bfdbfe; }
.ref-good .ping-ref-range, .ref-good .ping-ref-label { color: #1d4ed8; }
.ref-good .ping-ref-desc { color: #1e40af; }
.ref-fair { background: var(--yellow-l); border: 1px solid #fde68a; }
.ref-fair .ping-ref-range, .ref-fair .ping-ref-label { color: #d97706; }
.ref-fair .ping-ref-desc { color: #92400e; }
.ref-poor { background: #fff7ed; border: 1px solid #fed7aa; }
.ref-poor .ping-ref-range, .ref-poor .ping-ref-label { color: #ea580c; }
.ref-poor .ping-ref-desc { color: #9a3412; }
.ref-bad { background: var(--red-l); border: 1px solid #fecaca; }
.ref-bad .ping-ref-range, .ref-bad .ping-ref-label { color: #dc2626; }
.ref-bad .ping-ref-desc { color: #991b1b; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q { width: 100%; padding: 16px 18px; font-weight: 700; font-size: 15px; text-align: left; background: #fff; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); transition: background .15s; }
.faq-q:hover { background: var(--gray-50); }
.faq-arrow { color: var(--text-3); font-size: 12px; flex-shrink: 0; transition: transform .2s; }
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; font-size: 14px; color: var(--text-2); line-height: 1.65; display: none; }
.faq-a.open { display: block; }

/* ============================================================
   ISP TABLE
============================================================ */
.isp-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .isp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .isp-grid { grid-template-columns: repeat(3,1fr); } }
.isp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: all .2s; }
.isp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.isp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.isp-icon { font-size: 26px; }
.isp-name { font-weight: 700; font-size: 15px; color: var(--text); }
.isp-country { font-size: 12px; color: var(--text-3); }
.isp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.isp-stat { background: var(--gray-50); border-radius: 8px; padding: 8px 10px; text-align: center; }
.isp-stat-val { font-size: 12px; font-weight: 700; color: var(--text); }
.isp-stat-lbl { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.isp-note { font-size: 13px; color: var(--text-2); line-height: 1.55; border-top: 1px solid var(--border); padding-top: 12px; }

/* ============================================================
   FOOTER — MOBILE FIRST
============================================================ */
.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.07); padding: 48px 0 20px; }
.footer-top { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .f-logo-name { font-family: var(--font-h); font-weight: 800; font-size: 17px; color: #fff; }
.footer-brand .f-logo-name span { color: #38bdf8; }
.footer-brand p { font-size: 13px; color: #64748b; line-height: 1.6; max-width: 260px; }
.footer-brand .f-domain { font-size: 11px; color: #475569; margin-top: 8px; font-family: 'Courier New', monospace; }

.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #475569; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; line-height: 1.4; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-copy { font-size: 12px; color: #475569; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: #475569; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   UTILITY / MISC
============================================================ */
.ad-label { font-size: 10px; color: var(--text-3); text-align: center; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* No posts */
.no-posts { text-align: center; padding: 60px 0; }
.no-posts h2 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.no-posts p { color: var(--text-2); }

/* Search form */
.wp-block-search__input, .search-field { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--font-b); color: var(--text); }
.wp-block-search__input:focus, .search-field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* Comments */
.comments-area { margin-top: 48px; border-top: 2px solid var(--border); padding-top: 32px; }
.comments-area h2 { font-family: var(--font-h); font-weight: 800; font-size: 20px; margin-bottom: 24px; }

/* Print */
@media print {
  .site-header, .site-footer, .ad-zone, .tool-card, .post-tool-cta, .related-posts, .post-sidebar { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .post-content { font-size: 11pt; }
}
