/* ============================================
   WiFi Speed Checker Pakistan — tool-first UI
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  /* Pakistan flag theme (requested) */
  --bg: #ffffff; /* pure white */
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #0b1220; /* near-black */
  --text-heading: #061014;
  --muted: #4b5563;

  /* Light header (forum-style accent) */
  --header-accent: #1dbf73;
  --header-ink: #222325;
  --header-border: rgba(0, 0, 0, 0.08);

  /* Flag green */
  --flag-green: #01411c; /* Pakistan flag green (flat) */
  --flag-green-2: #0a5a2b;
  --menu-soft: rgba(255, 255, 255, 0.75);
  --menu-bright: rgba(255, 255, 255, 0.96);

  --link: var(--flag-green);
  --link-hover: var(--flag-green-2);
  --accent: var(--flag-green);
  --accent-hot: var(--flag-green-2);
  --accent-2: var(--flag-green);
  --accent-dim: var(--flag-green-2);
  --accent-glow: rgba(1, 65, 28, 0.22);
  --success: var(--flag-green);
  --danger: #b42318;

  /* Green strip + light cards (cards pop vs section band) */
  --section-green: #063b1d;
  --section-green-2: #0a5230;
  /* Saturated “light green” so white type stays legible on cards */
  --card-light-green: #8fd9aa;
  --card-light-green-2: #6bc78e;
  --tip-box-green: #3d8f5c;
  --tip-box-green-2: #2a6b40;
  --on-green-card: #ffffff;

  --border: rgba(1, 65, 28, 0.22);
  --border-strong: var(--flag-green);
  /* Consistent dark green frame for headings + panels */
  --frame-border: 2px solid var(--flag-green);
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 18px 40px rgba(1, 65, 28, 0.08);
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 100%;
}

@media (min-width: 768px) {
  :root {
    font-size: 106.25%;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

h1,
h2,
h3 {
  color: var(--text-heading);
  font-family: Georgia, "Times New Roman", serif;
}

p,
ul,
ol,
dd,
dt {
  line-height: 1.75;
}

a:not(.btn):not(.site-brand):not(.isp-card):not(.marquee-card):not(.site-footer__social-link) {
  color: var(--link);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:not(.btn):not(.site-brand):not(.isp-card):not(.marquee-card):not(.site-footer__social-link):hover {
  color: var(--link-hover);
  text-shadow: 0 0 14px rgba(0, 255, 178, 0.28);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 1.25rem, 1280px);
  margin-inline: auto;
  padding-block: 1rem 2.5rem;
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 2rem, 1280px);
  }
}

/* --- Header --- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.site-brand:hover {
  color: #ffffff;
  text-shadow: none;
}

.site-brand__icon {
  /* Some generated pages include literal "\n" text inside this span; hide it without affecting the SVG. */
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
}
.site-brand__icon svg {
  display: block;
}

.site-brand__logo {
  display: block;
  /* Bigger logo as requested */
  height: clamp(40px, 9vw, 56px);
  width: auto;
  flex-shrink: 0;
  margin-left: -0.25rem;
}

.site-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: linear-gradient(145deg, var(--accent-2), var(--accent-dim));
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}

.site-brand__pk {
  color: var(--accent);
  font-weight: 800;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav__links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.15rem;
  border-bottom: 3px solid transparent;
}

.site-nav__links a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

/* Main header: primary links (light bar, centered — matches forum-style nav) */
.site-header .primary-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin: 0;
  padding: 0;
}

.site-header .primary-nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.45rem;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header .primary-nav a:hover {
  color: #c8ffe8 !important;
}

.site-header .primary-nav a[aria-current="page"] {
  color: #ffffff !important;
  border-bottom-color: #6ee7b7;
}

/* Disable animated underline from legacy dark-header styles */
.site-header .primary-nav a::after {
  display: none;
}
.site-header .primary-nav a.is-active {
  color: #ffffff;
}

.site-nav__dropdown {
  position: relative;
}

.site-header .site-nav__dropdown > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff !important;
  padding: 0.5rem 1.2rem 0.5rem 0;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__dropdown > summary::-webkit-details-marker {
  display: none;
}

.site-nav__dropdown > summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

.site-header .site-nav__dropdown[open] > summary {
  color: #c8ffe8;
  border-bottom-color: rgba(110, 231, 183, 0.85);
}

.site-header .site-nav__dropdown > summary:hover {
  color: #c8ffe8;
}

.site-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 12.5rem;
  padding: 0.4rem;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 80;
}

.site-nav__dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

.site-nav__dropdown-menu a:hover {
  background: rgba(0, 255, 178, 0.12);
  color: var(--link-hover);
  text-shadow: 0 0 12px rgba(0, 255, 178, 0.22);
}

.site-nav__dropdown-menu a[aria-current="page"] {
  font-weight: 700;
  color: var(--link-hover);
  background: rgba(0, 255, 178, 0.1);
}

@media (max-width: 520px) {
  .site-nav__dropdown-menu {
    right: auto;
    left: 0;
  }
}

.site-title {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

/* --- Tool hero (main speed test) --- */
.tool-hero {
  padding: 1.25rem 0 2.25rem;
}

.tool-hero__inner {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.tool-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

.tool-sub {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  color: var(--text);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.75;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Hero CTA: centered, dominant start button */
.tool-actions--cta {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 0 0.25rem;
}

.tool-actions--cta .btn--cta {
  width: min(100%, 22rem);
  max-width: 100%;
}

/* Speed test hero: solid dark-green CTA (not neon gradient) */
.tool-hero__inner .btn--cta {
  background: linear-gradient(180deg, var(--flag-green-2) 0%, var(--flag-green) 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.35);
}

.tool-hero__inner .btn--cta:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 12px 36px rgba(1, 65, 28, 0.45);
}

.tool-hero__inner .btn--cta .btn__icon {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #00ffb2 0%, #00c997 32%, #7c3aed 78%, #9333ea 100%);
  color: #ffffff;
  box-shadow:
    0 8px 28px rgba(0, 255, 178, 0.35),
    0 8px 32px rgba(124, 58, 237, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--outline {
  background: transparent;
  color: var(--link);
  border: 2px solid var(--link);
  box-shadow: 0 0 0 1px rgba(0, 255, 178, 0.18);
}

.btn--outline:hover:not(:disabled) {
  background: rgba(0, 255, 178, 0.12);
  color: var(--link-hover);
  text-shadow: 0 0 12px rgba(0, 255, 178, 0.22);
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn--xl {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn--cta {
  padding: clamp(1.15rem, 3.5vw, 1.5rem) clamp(2rem, 7vw, 3.25rem);
  font-size: clamp(1.12rem, 3.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #ffffff;
  background: linear-gradient(165deg, #5dffce 0%, #00ffb2 28%, #7c3aed 72%, #9333ea 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 178, 0.45),
    0 8px 32px rgba(0, 255, 178, 0.4),
    0 0 56px rgba(147, 51, 234, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    filter 0.2s ease;
}

.btn--cta:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 14px 40px rgba(0, 255, 178, 0.48),
    0 0 72px rgba(147, 51, 234, 0.42);
}

.btn--cta:active:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
}

.btn--cta .btn__icon {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.28);
}

.btn--cta:disabled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn__icon {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  font-size: 0.65rem;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text-heading);
  border-color: var(--link);
}

.btn--cancel {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

/* --- Speed panel --- */
.speed-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: var(--frame-border);
  text-align: left;
}

.speed-panel--tool {
  max-width: min(100%, 46rem);
  margin-left: auto;
  margin-right: auto;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  .phase-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

.phase-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
}

.phase-step__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.phase-step--active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(0, 255, 157, 0.14);
  box-shadow: 0 0 20px var(--accent-glow);
}

.phase-step--active .phase-step__dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.phase-step--done {
  color: var(--success);
}

.phase-step--done .phase-step__dot {
  background: var(--success);
}

.speed-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.speed-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.speed-status {
  min-height: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.progress {
  flex: 1;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(139, 156, 179, 0.15);
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress--lg {
  height: 14px;
}

.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--success));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  transition: width 0.18s ease-out;
}

.progress__bar--idle {
  animation: none;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.progress__pct {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  min-width: 2.75rem;
  text-align: right;
}

.speed-results {
  display: grid;
  gap: 0.75rem;
}

.speed-results--tool {
  margin-top: 0.25rem;
}

@media (min-width: 560px) {
  .speed-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

.speed-stat {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.speed-stat--highlight strong {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--accent);
}

.speed-stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.speed-stat strong {
  font-size: 1.15rem;
  color: var(--text);
}

/* --- Speed Analysis (post-test) --- */
.speed-analysis {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  opacity: 0;
  transform: translateY(10px);
  animation: speedAnalysisReveal 0.65s ease forwards;
  animation-delay: 0.06s;
}

@keyframes speedAnalysisReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speed-analysis__route,
.speed-analysis__context {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-line;
  color: var(--text-heading);
}

.speed-analysis__card {
  position: relative;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 16px;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-card)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.85), var(--accent), rgba(147, 51, 234, 0.75)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow), 0 0 40px rgba(0, 255, 178, 0.06);
}

.speed-analysis__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.speed-analysis__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.speed-analysis__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.speed-analysis__gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}

.speed-analysis__gauge-svg {
  width: min(100%, 280px);
  height: auto;
  display: block;
  color: var(--text);
}

.speed-analysis__gauge-hub {
  color: var(--text-heading);
}

.speed-analysis__gauge-legend {
  display: flex;
  justify-content: space-between;
  width: min(100%, 240px);
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.speed-analysis__legend--bad {
  color: #ff8a8a;
}
.speed-analysis__legend--mid {
  color: #f5d547;
}
.speed-analysis__legend--good {
  color: #3ecf8e;
}

.speed-analysis__headline {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.speed-analysis__headline--red {
  color: #ff8a8a;
  text-shadow: 0 0 24px rgba(255, 107, 107, 0.25);
}

.speed-analysis__headline--yellow {
  color: #f5d547;
  text-shadow: 0 0 20px rgba(245, 213, 71, 0.2);
}

.speed-analysis__headline--green {
  color: var(--success);
  text-shadow: 0 0 22px rgba(0, 255, 178, 0.18);
}

.speed-analysis__shout {
  text-transform: capitalize;
}

.speed-analysis__tier {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.speed-analysis__praise {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 255, 178, 0.08);
  border: 1px solid rgba(0, 255, 178, 0.22);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.speed-analysis__praise--excellent {
  background: linear-gradient(135deg, rgba(0, 255, 178, 0.12), rgba(147, 51, 234, 0.12));
  border-color: rgba(0, 255, 178, 0.35);
}

.speed-analysis__explain {
  margin-bottom: 1rem;
}

.speed-analysis__line {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.speed-analysis__line:last-child {
  margin-bottom: 0;
}

.speed-analysis__tips {
  margin-bottom: 1rem;
}

.speed-analysis__subhead {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.speed-analysis__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.speed-analysis__list li {
  margin-bottom: 0.35rem;
}

.speed-analysis__guide {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(139, 156, 179, 0.08);
  border: 1px solid var(--border);
}

.speed-analysis__guide-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.speed-analysis__guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text);
}

.speed-analysis__guide-list li {
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent-dim);
}

.speed-analysis__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.speed-analysis__again {
  font-weight: 700;
}

.speed-analysis__disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 36rem;
}

.speed-error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
  font-size: 0.88rem;
}

.disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.disclaimer--tool {
  text-align: left;
}

/* --- Content sections below tool --- */
.section-block {
  padding-top: 0.5rem;
}

.section-head {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.2rem, 2.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: Georgia, "Times New Roman", serif;
}

.section-note {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.section-note code {
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* ISP card grids: equal row heights; directory list uses 5×2 for 10 ISPs (no orphan row) */
.isp-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.isp-grid > .isp-card {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 560px) {
  .isp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Odd count in 2 columns: center the lone last card */
  .isp-grid > .isp-card:last-child:nth-child(2n + 1):not(:only-child) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 1.35rem) / 2);
  }

  .isp-grid > .isp-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc((100% - 1.35rem) / 2);
  }
}

@media (min-width: 900px) {
  /* Featured picks only: 3×2 — six cards, two full rows */
  .isp-grid.isp-grid--featured {
    grid-template-columns: repeat(3, 1fr);
  }

  .isp-grid.isp-grid--featured > .isp-card:last-child:nth-child(2n + 1):not(:only-child) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  /* Full provider directory: stay 2×5 until wide — avoids 3+3+3+1 */
  .isp-grid.isp-grid--directory {
    grid-template-columns: repeat(2, 1fr);
  }

  .isp-grid.isp-grid--directory > .isp-card:last-child:nth-child(2n + 1):not(:only-child) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
}

/* 10 ISPs → two equal rows of five */
@media (min-width: 1024px) {
  .isp-grid.isp-grid--directory {
    grid-template-columns: repeat(5, 1fr);
  }

  .isp-grid.isp-grid--directory > .isp-card:last-child:nth-child(2n + 1):not(:only-child) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }
}

.isp-grid > .isp-grid--message {
  grid-column: 1 / -1;
  text-align: center;
}

.isp-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  background: linear-gradient(165deg, var(--card-light-green) 0%, var(--card-light-green-2) 100%);
  border-radius: var(--radius);
  border: 3px solid #ffffff;
  text-decoration: none;
  color: var(--on-green-card);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.isp-card:hover {
  border-color: #ffffff;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(1, 65, 28, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.isp-card h3 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(1, 65, 28, 0.45);
}

.isp-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: #ffffff;
  flex: 1 1 auto;
  text-shadow: 0 1px 2px rgba(1, 65, 28, 0.35);
}

.isp-card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(1, 65, 28, 0.35);
}

/* Homepage: single hub — large dark-green bubble cards */
.isp-hub-intro.wrap {
  padding-bottom: 0.25rem;
}

.isp-hub-wrap.wrap {
  width: min(100% - 1.25rem, 1220px);
  padding-top: 0.35rem;
  padding-bottom: 2.35rem;
}

/* Full-width thumbnail between sections (homepage) — full-bleed like marquee/ISP bands */
.section-block.speed-hero-thumb {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
  overflow-x: visible;
}

.speed-hero-thumb__wrap {
  width: min(100% - 2rem, 1280px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.speed-hero-thumb__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.speed-hero-thumb__link {
  display: block;
  border-radius: 18px;
  outline: none;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.speed-hero-thumb__link:focus-visible {
  outline: 3px solid rgba(110, 231, 183, 0.85);
  outline-offset: 6px;
}

.speed-hero-thumb__img {
  filter: contrast(1.06) saturate(1.05);
}

.speed-hero-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1rem, 3vw, 1.6rem);
  background:
    linear-gradient(90deg, rgba(2, 44, 20, 0.72) 0%, rgba(2, 44, 20, 0.22) 56%, rgba(2, 44, 20, 0.0) 78%);
}

.speed-hero-thumb__overlay-inner {
  max-width: min(560px, 86%);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.speed-hero-thumb__kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.28);
  margin-bottom: 0.65rem;
}

.speed-hero-thumb__title {
  display: block;
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.speed-hero-thumb__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.speed-hero-thumb__link:hover .speed-hero-thumb__cta {
  background: rgba(167, 243, 208, 0.18);
  border-color: rgba(167, 243, 208, 0.55);
}

@media (min-width: 768px) {
  .isp-hub-wrap.wrap {
    width: min(100% - 2rem, 1260px);
  }
}

.isp-grid.isp-grid--hub {
  gap: clamp(1.25rem, 2.6vw, 1.85rem);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .isp-grid.isp-grid--hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.isp-card.isp-card--bubble {
  border-radius: clamp(1.1rem, 2.6vw, 1.25rem);
  padding: clamp(1.35rem, 2.4vw, 1.85rem) clamp(1.2rem, 2.2vw, 1.6rem);
  min-height: clamp(11.25rem, 20vw, 14rem);
  background: linear-gradient(
    158deg,
    #0c4a28 0%,
    var(--flag-green) 42%,
    #022c14 100%
  );
  border: 1px solid rgba(200, 255, 215, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.isp-card.isp-card--bubble:hover {
  border-color: rgba(230, 255, 238, 0.78);
  color: #ffffff;
  transform: translateY(-5px) scale(1.03);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 28px rgba(110, 231, 183, 0.22);
}

.isp-card.isp-card--bubble h3 {
  font-size: clamp(1.22rem, 2.4vw, 1.45rem);
  margin-bottom: 0.65rem;
}

.isp-card.isp-card--bubble p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.58;
}

.isp-card.isp-card--bubble .isp-card__meta {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.isp-card.isp-card--bubble:hover .isp-card__meta {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(167, 243, 208, 0.7);
  background: rgba(167, 243, 208, 0.12);
}

.isp-card.isp-card--bubble .isp-card__meta {
  padding-top: 1rem;
  border-top-color: rgba(255, 255, 255, 0.35);
  font-size: clamp(0.78rem, 1.2vw, 0.86rem);
}

.isp-grid--message {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Green band behind ISP grids + marquee strip */
.section-block:has(.isp-grid) {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--section-green) 0%, var(--section-green-2) 100%);
}

.section-block:has(.isp-grid) .section-head,
.section-block:has(.isp-grid) .section-note {
  color: #ffffff;
}

.section-block:has(.isp-grid) .section-note a {
  color: #e0ffe8 !important;
}

.section-block:has(.isp-grid) .section-note a:hover {
  color: #ffffff !important;
}

.section-block:has(.isp-grid) .section-note code {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.section-block:has(.isp-grid) .isp-grid--message {
  color: rgba(255, 255, 255, 0.92);
}

/* City directory (cards): white background + bubble green cards */
.section-block:has(#cityBrowse) {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: #ffffff;
}

.section-block:has(#cityBrowse) .section-head,
.section-block:has(#cityBrowse) .section-note {
  color: var(--text-heading);
}

.section-block:has(#cityBrowse) .section-note a {
  color: var(--link);
}

.section-block:has(#cityBrowse) .isp-grid--message {
  color: var(--muted);
}

/* Marquee lives outside main; full-bleed green behind scrolling cards */
.marquee-section.wrap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--section-green) 0%, var(--section-green-2) 100%);
}

.marquee-section .marquee-section__title,
.marquee-section .marquee-section__hint {
  color: #ffffff;
}

.marquee-section.wrap > h2,
.marquee-section.wrap > p,
.marquee-section.wrap > .marquee-shell {
  width: min(100% - 1.25rem, 960px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.marquee-shell.card-heavy {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ISP hub (homepage): stronger heading + note above bubble cards */
.section-block:has(#ispHubGrid) .section-head {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-block:has(#ispHubGrid) .section-note {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  max-width: 46rem;
}

/* --- Subpages (ISP x city) --- */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tool-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(0, 255, 178, 0.1), rgba(124, 58, 237, 0.12));
  border: var(--frame-border);
  border-radius: var(--radius);
}

.tool-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.tool-banner a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tool-banner a:hover {
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(0, 255, 178, 0.25);
}

.page-hero {
  padding: 1rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: var(--frame-border);
}

.detail-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-heading);
}

.detail-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.detail-card p {
  margin: 0;
  color: var(--text);
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  background: var(--flag-green);
}

.content-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text);
  max-width: 42rem;
  line-height: 1.75;
}

.link-column {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.link-column a {
  color: var(--link);
}

.city-mini {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.city-mini--card {
  padding: 1.25rem 1.35rem 1.2rem;
  background: linear-gradient(180deg, var(--flag-green-2) 0%, var(--flag-green) 100%);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow:
    0 18px 46px rgba(1, 65, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  transform: translateZ(0);
  cursor: grab;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  animation: cityBubbleFloat 8.5s ease-in-out infinite;
}

.city-mini h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.city-mini__seo {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 2.1vw, 0.98rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.city-links a:hover {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  text-shadow: none;
}

.city-mini--card:hover {
  transform: translateY(-6px) scale(1.01);
  filter: brightness(1.05);
  box-shadow:
    0 26px 60px rgba(1, 65, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.city-mini--card:active {
  cursor: grabbing;
  transform: translateY(-2px) scale(0.995);
}

@keyframes cityBubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

#cityBrowse {
  display: grid;
  gap: 0;
}

@media (min-width: 720px) {
  #cityBrowse {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
  }

  .city-mini--card {
    margin-bottom: 0;
    height: 100%;
  }
}

.inline-link {
  color: var(--link);
}

.build-note {
  margin-top: 0.5rem;
  font-size:0.85rem;
  color: var(--muted);
}

/* --- Site header: dark green bar — logo | centered nav | tools/legal (balanced layout) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(1, 65, 28, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow:
    0 10px 28px rgba(1, 65, 28, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  padding-bottom: 0;
}

.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(0.5rem, 2vw, 1.25rem);
  min-height: 64px;
  padding: 0.45rem 0;
  row-gap: 0.35rem;
}

.site-header__bar.wrap {
  width: min(100% - 0.75rem, 1180px);
  padding-inline: clamp(0.35rem, 1.5vw, 0.75rem);
}

.site-header .site-brand {
  justify-self: start;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #ffffff !important;
}

.site-header .site-brand:hover {
  color: #ffffff !important;
}

.site-brand__text {
  display: grid;
  line-height: 1.05;
}

.site-header .site-brand__name {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.03em;
}

/* Remove extra tagline under logo (requested) */
.site-brand__tag {
  display: none;
}

.site-header .site-brand__name .brand-gradient {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #7dd3fc;
  color: #7dd3fc;
}

.site-brand__name .brand-gradient {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header__nav-wrap {
  justify-self: center;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-header__nav-wrap::-webkit-scrollbar {
  height: 0;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .site-header__dropdown-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem 0.75rem;
}

.primary-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.primary-nav::-webkit-scrollbar {
  height: 0;
}

/* Global `a:not(...)` beats `.site-header .primary-nav a` — light text on green bar */
.site-header .primary-nav > a {
  color: #ffffff !important;
  border-bottom-color: transparent !important;
}
.site-header .primary-nav > a:hover {
  color: #c8ffe8 !important;
}
.site-header .primary-nav > a[aria-current="page"] {
  color: #ffffff !important;
  border-bottom-color: #6ee7b7 !important;
}

/* Search must be homepage-only (hero). Hide any header-embedded search forms. */
.site-header .site-search:not(.site-search--hero) {
  display: none !important;
}

/* Mobile menu toggle (hidden on desktop via media query below) */
.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header__menu-toggle:focus-visible {
  outline: 3px solid rgba(110, 231, 183, 0.9);
  outline-offset: 2px;
}

.site-header__menu-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  box-shadow: 0 -7px 0 #ffffff, 0 7px 0 #ffffff;
}

@media (min-width: 900px) {
  .site-header__collapsible {
    display: contents;
  }

  .site-header__collapsible.is-open {
    max-height: none;
  }

  .site-header__menu-toggle {
    display: none !important;
  }

  body.packages-page .site-header__bar {
    grid-template-columns: auto 1fr auto auto;
    column-gap: clamp(0.45rem, 1.4vw, 1rem);
  }
}

@media (max-width: 899px) {
  /* Single top row: logo + hamburger (nav lives in fixed overlay drawer) */
  .site-header__bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 56px;
    position: relative;
    z-index: 1002;
    overflow: visible;
  }

  .site-header .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    justify-self: unset;
    align-self: center;
    max-width: calc(100vw - 0.75rem - 48px - 0.75rem);
  }

  /* Prevent wrapping/breaking in ultra-small headers */
  .site-header .site-brand__text {
    min-width: 0;
  }
  .site-header .site-brand__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .site-header__menu-toggle {
    display: inline-flex !important;
    flex: 0 0 auto;
    position: relative;
    z-index: 1003;
    align-self: center;
  }

  /* Full-viewport overlay + right-aligned drawer panel */
  .site-header__collapsible {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    max-height: none !important;
    margin: 0;
    padding:
      calc(0.75rem + env(safe-area-inset-top, 0px))
      calc(0.65rem + env(safe-area-inset-right, 0px))
      calc(1rem + env(safe-area-inset-bottom, 0px))
      calc(0.65rem + env(safe-area-inset-left, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: 0;
    background: transparent;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease,
      background-color 0.22s ease;
  }

  .site-header__collapsible.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.48);
  }

  .site-header__collapsible.is-open .site-header__nav-wrap,
  .site-header__collapsible.is-open .site-header__actions {
    transform: translateX(0);
  }

  .site-header__nav-wrap {
    flex: 0 0 auto;
    width: min(20rem, 90vw);
    max-width: 100%;
    justify-self: unset;
    justify-content: flex-start;
    overflow-x: visible;
    overflow-y: visible;
    border-top: 0;
    padding: 0.65rem 0.85rem 0.5rem;
    margin: 0;
    border-radius: 14px 0 0 0;
    background: rgba(1, 65, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(110%);
    transition: transform 0.26s ease;
    will-change: transform;
  }

  .site-header .primary-nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    white-space: normal;
    overflow-x: visible;
    overflow-y: visible;
    gap: 0;
    padding: 0;
    scrollbar-width: none;
  }

  .site-header .primary-nav > a {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-header__actions {
    flex: 0 0 auto;
    width: min(20rem, 90vw);
    max-width: 100%;
    justify-self: unset;
    justify-content: flex-start;
    align-self: flex-end;
    border-top: 0;
    padding: 0.65rem 0.85rem 0.85rem;
    margin: 0;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0 0 0 14px;
    background: rgba(1, 65, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -8px 8px 28px rgba(0, 0, 0, 0.28);
    transform: translateX(110%);
    transition: transform 0.26s ease;
    will-change: transform;
  }

  .site-header .site-header__dropdown-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .site-header .site-nav__dropdown {
    width: 100%;
    flex-shrink: 0;
  }

  .site-header .site-nav__dropdown > summary {
    min-height: 48px;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
  }

  .site-header .site-nav__dropdown-menu {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    box-sizing: border-box;
  }

  /* Language picker: compact floating panel (not full-width like Tools/Legal lists) */
  .site-header .site-lang.site-nav__dropdown {
    overflow: visible;
    z-index: 1;
  }

  .site-header .site-lang.site-nav__dropdown[open] {
    z-index: 120;
  }

  .site-header .site-lang .site-nav__dropdown-menu.site-lang__menu {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: calc(100% + 0.35rem);
    width: max-content;
    min-width: 10rem;
    max-width: min(13.5rem, calc(100vw - 2rem));
    margin-top: 0;
  }

  .site-header .site-lang.site-nav__dropdown > summary.site-lang__summary {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    padding-block: 0.45rem;
    padding-inline: 0.65rem 1.45rem;
  }

  .site-header .site-lang__current {
    min-width: 0;
    flex: 0 1 auto;
  }
}

@media (max-width: 360px) {
  .site-header__bar {
    min-height: 54px;
  }
  .site-header .site-brand__name {
    font-size: 1.1rem;
  }
  .site-header__menu-toggle {
    width: 44px;
    height: 44px;
  }
  .site-header__menu-toggle-bars {
    width: 20px;
  }
}

.site-header__bar .site-nav__links {
  flex: 1 1 auto;
  justify-content: center;
}

.site-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .site-search {
    flex: 0 1 min(440px, 42vw);
  }
  .site-header__bar .site-nav__links {
    flex: 0 1 auto;
  }
}

.site-search input[type="search"] {
  flex: 1;
  min-width: min(620px, 92vw);
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(1, 65, 28, 0.22);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.btn--search {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: none;
  flex-shrink: 0;
}

/* Search placed in hero */
.site-search--hero {
  margin: 1.15rem auto 0;
  max-width: 44rem;
}

.site-search--hero input[type="search"] {
  box-shadow:
    0 10px 26px rgba(1, 65, 28, 0.12),
    0 0 0 1px rgba(1, 65, 28, 0.08);
}

.site-search--block {
  max-width: 36rem;
  margin-top: 1rem;
}

.site-search--block input {
  flex: 1;
}

/* --- Page hero below header --- */
.page-hero-main {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0 1.5rem;
  text-align: center;
}

/* --- Homepage landing hero (immersive + glass) --- */
.home-landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 1.25rem;
}

.home-landing-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 16% 24%, rgba(96, 165, 250, 0.22), transparent 60%),
    radial-gradient(780px 520px at 82% 28%, rgba(167, 139, 250, 0.18), transparent 62%),
    radial-gradient(720px 520px at 52% 80%, rgba(1, 65, 28, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(6, 59, 29, 0.06), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.home-landing-hero__grid {
  position: relative;
  z-index: 1;
}

.home-landing-hero__copy {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.home-landing-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.home-landing-hero__lead {
  margin: 0 auto 1.05rem;
  max-width: 46rem;
  font-size: clamp(1.02rem, 2.35vw, 1.15rem);
  line-height: 1.7;
  color: rgba(11, 18, 32, 0.88);
}

.home-landing-hero__actions {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.share-tools--tight {
  margin-top: 0.9rem;
  justify-content: center;
}

.home-detected-card {
  margin: 1rem auto 0.25rem;
  max-width: 46rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(2, 6, 23, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
}

.home-detected-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-detected-card__k {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(2, 6, 23, 0.62);
  font-weight: 800;
}

.home-detected-card__v {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-heading);
  text-align: right;
}

.home-detected-card__meta {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(2, 6, 23, 0.66);
}

/* Make the homepage tool feel “glass” without changing other pages */
.tool-hero__inner--glass.card-heavy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96));
  border-color: rgba(2, 6, 23, 0.08);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.08);
}

/* (homepage editorial grid removed; legacy tips section restored) */

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 auto;
  max-width: 44rem;
  color: var(--text);
  font-size: clamp(1.02rem, 2.5vw, 1.12rem);
  line-height: 1.75;
  text-align: left;
}

.wrap--article {
  max-width: min(100% - 2rem, 960px);
}

/* ISP network pages: wider main column (tool + guide) */
.network-page-main.wrap--article {
  max-width: min(100% - 2rem, 1200px);
}

/* Provider intelligence profiles: wider reading column + TOC */
.provider-profile-main.wrap--article {
  max-width: min(100% - 2rem, 1180px);
}

.wrap--legal {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.legal-article h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.legal-article h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text-heading);
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Table of contents (iSkills: lengthy page TOC) */
.toc {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: var(--frame-border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.toc__title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.toc__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--link);
}

.toc__list a {
  color: var(--link);
}

.section-head--first {
  margin-top: 0;
}

.tool-hero--network {
  padding-top: 0;
}

/* Skip link + network pages: promise hero, tool first */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.65rem 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--flag-green);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: max(0.5rem, env(safe-area-inset-left));
  top: max(0.5rem, env(safe-area-inset-top));
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.network-page-main .network-promise-hero.page-hero-main {
  padding-bottom: 0.75rem;
}

.network-page-main .tool-hero--network-priority {
  margin-top: 0;
  padding-top: 0;
}

.network-tool-context.tool-banner--inline {
  margin-bottom: 1rem;
}

/* City / area picker on network pages (context label only) */
.network-city-picker {
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: clamp(1rem, 2.5vw, 1.35rem);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.network-city-picker__inner {
  max-width: 36rem;
}

.network-city-picker__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.network-city-picker__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.network-city-picker__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.network-city-picker__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.network-city-picker__select {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.network-city-picker__summary {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--link);
  line-height: 1.45;
}

.toc.toc--after-tool {
  margin-top: 2rem;
}

.tool-actions--network {
  justify-content: center;
  margin: 1rem 0;
}

.tool-banner--inline {
  margin-bottom: 1.5rem;
}

.speed-panel--network {
  max-width: none;
}

/* Network page long-form SEO sections */
.network-seo-section {
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.network-seo-section__body p:last-child {
  margin-bottom: 0;
}

.network-package-list {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.network-package-list li {
  margin-bottom: 0.5rem;
}

.network-package-list strong {
  color: var(--text);
}

.subsection-head {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.network-pros-cons {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 560px) {
  .network-pros-cons {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.network-pros-cons__h {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
}

.network-pros-cons__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.75;
}

.network-pros-cons__list--pros li::marker {
  color: var(--success);
}

.network-pros-cons__list--cons li::marker {
  color: var(--danger);
}

.network-pros-cons__list li {
  margin-bottom: 0.45rem;
}

/* FAQ blocks */
.faq-block {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.faq-block--accordion .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.faq-accordion__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.faq-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  padding-right: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.55;
  position: relative;
  transition: background 0.15s ease;
}

.faq-accordion__summary::-webkit-details-marker {
  display: none;
}

.faq-accordion__summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.35rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-accordion__item[open] .faq-accordion__summary {
  background: rgba(0, 255, 178, 0.1);
}

.faq-accordion__item[open] .faq-accordion__summary::after {
  transform: rotate(-135deg);
  margin-top: -0.15rem;
}

.faq-accordion__summary:hover {
  background: rgba(0, 255, 178, 0.07);
}

.faq-accordion__panel {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--border);
}

.faq-accordion__panel p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .faq-accordion__summary::after {
    transition: none;
  }
}

/* Homepage FAQ: white section; dark green dropdowns; white Q&A text */
.faq-block--home {
  margin-top: 2rem;
  margin-left: 0;
  margin-right: 0;
  padding: 2rem 0 2.75rem;
  border-top: 1px solid rgba(1, 65, 28, 0.12);
  background: #ffffff;
}

.faq-block--home .section-head,
.faq-block--home__intro {
  width: min(100% - 1.25rem, 960px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text-heading);
}

.faq-block--home__intro {
  margin: 0 auto 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq-block--home .faq-accordion {
  width: min(100% - 1.25rem, 960px);
  margin-left: auto;
  margin-right: auto;
}

.faq-block--home .faq-accordion__item {
  border: 2px solid rgba(1, 65, 28, 0.35);
  background: linear-gradient(180deg, var(--flag-green-2) 0%, var(--flag-green) 100%);
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.18);
}

.faq-block--home .faq-accordion__summary {
  color: #ffffff;
  text-shadow: none;
}

.faq-block--home .faq-accordion__summary::after {
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.faq-block--home .faq-accordion__item[open] .faq-accordion__summary {
  background: rgba(0, 0, 0, 0.15);
}

.faq-block--home .faq-accordion__summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.faq-block--home .faq-accordion__panel {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.08);
}

.faq-block--home .faq-accordion__panel p {
  color: #ffffff;
  text-shadow: none;
}

.faq-block--home .faq-accordion__panel strong {
  color: #ffffff;
  font-weight: 800;
}

.faq-block--home .faq-accordion__panel a:not(.btn) {
  color: #e0ffe8 !important;
  text-underline-offset: 2px;
}

.faq-block--home .faq-accordion__panel a:not(.btn):hover {
  color: #ffffff !important;
}

.faq-item {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-heading);
}

.faq-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.75;
}

.faq-item--static {
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--link);
  box-shadow: 0 0 24px rgba(0, 255, 178, 0.08);
}

.faq-item--static:last-child {
  margin-bottom: 0;
}

.faq-item--static h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-heading);
}

.faq-static-list {
  margin-top: 1.25rem;
}

/* --- WiFi packages page: premium tables --- */
.packages-page .packages-intro {
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
  text-align: left;
}

.packages-page .packages-intro.hero-lead,
.packages-page .packages-intro.hero-lead p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.packages-page .packages-intro.hero-lead p:not(:first-child) {
  margin-top: 1rem;
}

/* Packages page: `.wrap--article` is normally max 720px for reading — override here or main stays boxed */
.packages-page main.wrap.wrap--article {
  max-width: min(100% - 1.5rem, 1320px);
  width: min(100% - 1.5rem, 1320px);
}

.packages-page.packages-page--market {
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(0, 255, 170, 0.09), transparent 55%),
    radial-gradient(900px 480px at 88% 0%, rgba(1, 65, 28, 0.12), transparent 50%),
    linear-gradient(180deg, #f6faf7 0%, #eef5f0 42%, #f0f4f1 100%);
}

.packages-seo-strip {
  max-width: min(100% - 1.5rem, 1320px);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(1, 65, 28, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(1, 65, 28, 0.06);
}

.packages-page .page-hero-main.wrap {
  max-width: min(100% - 1.5rem, 1320px);
  width: min(100% - 1.5rem, 1320px);
}

.packages-table-section {
  margin: 2.5rem 0;
  /* No outer boxes/cards: keep clean, page-like sections. */
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.packages-table-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(1, 65, 28, 0.18);
}

.packages-table-section__title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.packages-table-section__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--link);
}

.packages-table-section__link:hover {
  color: var(--link-hover);
}

.packages-table-section__desc {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Two-column row: aside (copy + buy links) | table */
.packages-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.35rem 1.75rem;
  align-items: start;
}

@media (max-width: 960px) {
  .packages-split {
    grid-template-columns: 1fr;
  }
}

.packages-split__aside {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(1, 65, 28, 0.06) 0%, rgba(1, 65, 28, 0.03) 100%);
  border: 1px solid rgba(1, 65, 28, 0.14);
  box-shadow: 0 8px 22px rgba(1, 65, 28, 0.06);
}

.packages-split__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.packages-split__text strong {
  color: var(--text-heading);
  font-weight: 700;
}

.packages-buy-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.packages-buy-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.packages-buy-links a:hover {
  color: var(--link-hover);
}

.packages-buy-heading {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flag-green);
}

.packages-split__table {
  min-width: 0;
}

.packages-table-wrap {
  overflow-x: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.packages-data {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid rgba(1, 65, 28, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(1, 65, 28, 0.08);
}

/* Packages page: “bubble” tables on dark green */
.packages-page .packages-data {
  min-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d4d2e 0%, #063b1d 55%, #052e18 100%);
  box-shadow:
    0 16px 40px rgba(1, 65, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.packages-data caption {
  caption-side: bottom;
  padding: 0.75rem 0.25rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
}

.packages-page .packages-data caption {
  color: rgba(255, 255, 255, 0.65);
  padding-left: 0.35rem;
}

.packages-data th,
.packages-data td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(1, 65, 28, 0.12);
  border-right: 1px solid rgba(1, 65, 28, 0.10);
}

.packages-page .packages-data th,
.packages-page .packages-data td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.packages-data th:last-child,
.packages-data td:last-child {
  border-right: none;
}
.packages-data tbody tr:last-child td {
  border-bottom: none;
}

.packages-data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 65, 28, 0.10), rgba(1, 65, 28, 0.06));
  color: #041014;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.packages-page .packages-data thead th {
  background: rgba(0, 0, 0, 0.28);
  color: #ecfdf5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.packages-data tbody tr:nth-child(even) {
  background: rgba(1, 65, 28, 0.03);
}

.packages-page .packages-data tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.packages-data tbody tr:hover {
  background: rgba(1, 65, 28, 0.06);
}

.packages-page .packages-data tbody tr:hover {
  background: rgba(255, 255, 255, 0.07);
}

.packages-data td strong {
  color: var(--flag-green);
  font-weight: 700;
}

.packages-page .packages-data td strong {
  color: #86efac;
  font-weight: 700;
}

.packages-page .packages-footnote {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.article-body p {
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.75;
}

/* Mega footer (legacy grid, still used on some pages) */
.site-footer--mega {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* PK Speed Test — site footer (matches header dark green, white type) */
.site-footer--pk {
  margin-top: auto;
  text-align: left;
  color: #ffffff;
  background: rgba(1, 65, 28, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    0 -8px 28px rgba(1, 65, 28, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer--pk a:focus-visible {
  outline: 2px solid #a7f3d0;
  outline-offset: 3px;
}

.site-footer__pk-wrap {
  padding: 0 0 1.75rem;
}

.site-footer__pk-grid {
  display: grid;
  gap: 1.75rem 1.5rem;
  padding: 2rem 0 1.5rem;
}

.site-footer__pk-grid--wide {
  gap: 1.75rem 1.35rem;
}

.site-footer__pk-brandcol,
.site-footer__pk-col {
  min-width: 0;
}

@media (min-width: 520px) {
  .site-footer__pk-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .site-footer__pk-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__pk-grid--wide {
    grid-template-columns: 1.2fr 1fr 1fr 0.9fr 1fr;
    align-items: start;
  }
}

.site-footer__pk-logo {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.site-footer__pk-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 30rem;
}

.site-footer__pk-heading {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(200, 255, 232, 0.95);
}

.site-footer__pk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__pk-list li {
  margin-bottom: 0.45rem;
}

.site-footer__pk-list a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  display: inline-block;
  padding: 0.15rem 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.site-footer__pk-list a:hover {
  color: #c8ffe8 !important;
  opacity: 0.95;
}

.site-footer__pk-list--compact a {
  font-size: 0.88rem;
}

.site-footer__pk-social-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(200, 255, 232, 0.95);
}

.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__social li {
  margin: 0;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.site-footer__social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.site-footer__social-link svg {
  display: block;
}

.site-footer__social-link--fb {
  background: #1877f2;
  border-color: rgba(255, 255, 255, 0.25);
}

.site-footer__social-link--ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer__social-link--tiktok {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.35);
}

.site-footer__social-link--yt {
  background: #ff0000;
  border-color: rgba(255, 255, 255, 0.25);
}

.site-footer__social-link--in {
  background: #0a66c2;
  border-color: rgba(255, 255, 255, 0.25);
}

.site-footer__social-link--x {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.35);
}

.site-footer__pk-bottom {
  padding-top: 1.35rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__pk-copyright {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.site-footer__pk-fineprint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__pk-meta {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

.site-footer__pk-meta a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__pk-meta a:hover {
  color: #c8ffe8 !important;
}

.site-footer__brand {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.site-footer__muted {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer__h {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.4rem;
}

.site-footer__links a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(0, 255, 178, 0.22);
}

.site-footer__disclaimer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.network-page--mobile .tool-sub-hint {
  display: block;
}

/* --- Card emphasis (professional, readable borders) --- */
.card-heavy {
  border: 2px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.card-heavy--inner {
  border-color: rgba(20, 83, 45, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-hero__inner.card-heavy {
  background: var(--bg-card);
  border: 3px solid var(--flag-green) !important;
  box-shadow: var(--shadow), 0 0 0 1px rgba(1, 65, 28, 0.06);
}

.speed-panel.card-heavy {
  background: var(--bg-elevated);
  border-color: rgba(0, 255, 178, 0.32) !important;
}

.speed-stat {
  border: 1px solid var(--border);
}

.speed-error {
  border-width: 3px;
  border-color: rgba(255, 77, 109, 0.85);
}

/* --- Network picker row --- */
.network-pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, var(--flag-green-2) 0%, var(--flag-green) 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.25);
}

.network-pick-info {
  text-align: left;
  flex: 1 1 12rem;
}

.network-pick-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-green-card);
  margin-bottom: 0.2rem;
}

.network-pick-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--on-green-card);
}

.network-pick-row .btn--outline {
  color: var(--on-green-card);
  border-color: #ffffff;
  box-shadow: none;
}

.network-pick-row .btn--outline:hover:not(:disabled) {
  color: var(--on-green-card);
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  text-shadow: none;
}

.network-pick-row--country,
.network-pick-row--city {
  margin-top: 0.75rem;
  align-items: flex-end;
}

.network-pick-info--country,
.network-pick-info--city {
  flex: 1 1 10rem;
}

.tool-hero__city-error {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fecaca;
}

.network-city-picker__error {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b91c1c;
}

.network-pick-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.isp-detect-status {
  margin: 0.35rem auto 0;
  max-width: 36rem;
  padding: 0 0.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.isp-detect-status--compact {
  margin: 0.4rem 0 0;
  padding: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-brand__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(220px, 58vw);
}

.tool-hero__location-select {
  flex: 1 1 14rem;
  min-width: 11rem;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-green-card);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-hero__location-select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.tool-hero__location-select option {
  color: #0b1220;
  background: #fff;
}

/* --- Home: Ookla-style GO + auto server (PK green) --- */
.tool-hero--pk-start .tool-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1rem 1.5rem;
  gap: 0.25rem;
}

.tool-hero--pk-start .tool-hero__microcopy {
  max-width: 34rem;
  margin: 0 auto 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.tool-hero-start-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0.35rem 0 0.15rem;
}

.tool-hero-meter-slot {
  width: 100%;
  max-width: 40rem;
  margin: 0.25rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.tool-hero--pk-start .tool-hero-meter-slot {
  max-width: min(52rem, 100%);
}

.tool-hero-idle {
  width: 100%;
}

.tool-hero-conn-line {
  text-align: center;
  margin: 0 0 0.55rem;
}

.tool-hero-go-toolbar__cell--isp .tool-hero-conn-line {
  margin: 0;
  text-align: start;
}

.tool-hero-conn-line__k {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.12rem;
}

.tool-hero-conn-line__v {
  display: block;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 800;
  color: #01411c;
  letter-spacing: 0.02em;
}

.tool-hero-go-toolbar {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

/* Ookla-style: ISP | GO | test server */
.tool-hero-go-toolbar--ookla-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.4rem, 2.2vw, 1.65rem);
  width: 100%;
  max-width: 48rem;
  margin: 0.35rem auto 0;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--go {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.2rem;
  min-width: 0;
  max-width: 11.5rem;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host .tool-hero-toolbar-select {
  min-width: 0;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-server-line {
  margin-top: 0;
  max-width: 100%;
  justify-content: flex-end;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-server-line__body {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-server-line__primary,
.tool-hero-go-toolbar--ookla-row .tool-hero-server-line__secondary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ISP label: avoid per-letter breaks in a narrow grid column */
.tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp .tool-hero-conn-line__v {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.tool-hero-go-toolbar__cell--side {
  flex: 1 1 0;
  min-width: 0;
  max-width: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--side {
  max-width: none;
}

.tool-hero-go-toolbar__cell--go {
  flex: 0 0 auto;
}

.tool-hero-toolbar-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  line-height: 1.2;
}

.tool-hero-toolbar-select {
  width: 100%;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(1, 65, 28, 0.35);
  background: #fff;
  color: #0b1220;
  cursor: pointer;
  text-overflow: ellipsis;
}

.tool-hero-toolbar-select:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.tool-hero-toolbar-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  text-align: center;
  max-width: 32rem;
}

.tool-hero-hotspot-tip {
  margin: 0.15rem auto 0;
  max-width: 38rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
  text-align: center;
}

.tool-hero-meter-slot:has(#speedPanel:not([hidden])) .tool-hero-server-line--meter {
  display: none;
}

/* While the test panel is open, the host cell is empty but still consumed a grid track — hide it so the ISP column can use full width */
.tool-hero-meter-slot:has(#speedPanel:not([hidden])) .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host {
  display: none !important;
}

@media (max-width: 720px) {
  .tool-hero-meter-slot:has(#speedPanel:not([hidden])) .tool-hero-go-toolbar--ookla-row {
    grid-template-columns: 1fr;
    max-width: min(26rem, 100%);
  }

  .tool-hero-meter-slot:has(#speedPanel:not([hidden])) .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp {
    grid-column: 1;
    justify-self: center;
    text-align: center;
  }

  .tool-hero-meter-slot:has(#speedPanel:not([hidden])) .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp .tool-hero-conn-line {
    text-align: center;
  }
}

.tool-hero-meter-slot--test-open {
  transition: min-height 0.35s ease;
  min-height: clamp(200px, 42vw, 260px);
}

.tool-hero-morph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: clamp(7.5rem, 22vw, 10.25rem);
  min-height: clamp(7.5rem, 22vw, 10.35rem);
}

.tool-hero-morph__gauge--clock {
  width: min(280px, 88vw);
  margin-inline: auto;
  padding: 0.65rem 0.5rem 0.4rem;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #14532d;
  box-shadow: 0 10px 32px rgba(1, 65, 28, 0.18);
  animation: pk-gauge-morph-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* HTML hidden must win over layout rules that set display:flex on the gauge */
#speedGaugeWrap[hidden],
.tool-hero-morph__gauge--clock[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tool-hero-morph__gauge .speed-gauge__phase--clock {
  margin-top: 0.25rem;
  color: #14532d;
  font-weight: 800;
}

.tool-hero-idle--speed-active .tool-start-go--ookla {
  display: none !important;
}

/* After test: keep GO hidden; gauge + results + compact retest only */
.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-start-go--ookla {
  display: none !important;
}

/* Phase 3: results only — no clock, no side ISP/server columns */
.tool-hero-meter-slot--results-only {
  min-height: 0;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-hero-go-toolbar--ookla-row {
  grid-template-columns: 1fr;
  max-width: min(34rem, 96vw);
  margin-inline: auto;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-hero-go-toolbar__cell--isp,
.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-hero-go-toolbar__cell--host {
  display: none !important;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished #speedGaugeWrap {
  display: none !important;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-hero-morph {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: min(34rem, 96vw);
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished #speedResults {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: start;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished #homeTestAgain {
  display: none !important;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-hero-go-toolbar__cell--go {
  min-width: 0;
  width: 100%;
}

.tool-hero-retest {
  margin: 0.45rem auto 0;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(22, 101, 52, 0.45);
  background: #fff;
  color: #15803d;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(1, 65, 28, 0.08);
}

.tool-hero-retest[hidden] {
  display: none !important;
}

.tool-hero-retest:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-hero-retest:hover {
  background: #f0fdf4;
  border-color: #15803d;
}

.tool-hero-retest:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.tool-hero-idle--speed-active .tool-hero-morph {
  min-height: 0;
}

/* During the live test, keep the design simple: only clock + results */
.tool-hero-idle--speed-active .tool-hero-go-toolbar__cell--host {
  display: none !important;
}

.tool-hero-idle--speed-active .tool-hero-server-line--meter {
  display: none !important;
}

/* Hide extra live status/progress so the UI stays “clock + boxes” only */
.tool-hero-idle--speed-active .tool-hero-morph__live {
  display: none !important;
}

.speed-results--under-clock {
  width: 100%;
  max-width: min(580px, 96vw);
  margin: 0.35rem auto 0;
  text-align: center;
}

.speed-results--under-clock:empty {
  display: none;
}

.speed-results--under-clock .premium-results__summary {
  color: #0f172a;
  margin-top: 0.55rem;
}

.speed-results--under-clock .premium-results__meta {
  color: #475569;
}

.speed-results--under-clock .premium-results {
  border-top-color: rgba(1, 65, 28, 0.12);
  margin-top: 0.45rem;
  padding-top: 0.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Single horizontal row; scroll horizontally on very narrow viewports instead of wrapping */
.speed-results--under-clock .pk-result-strip {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin: 0.25rem auto 0;
  gap: 0.32rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0.05rem 0.2rem 0.2rem;
  box-sizing: border-box;
}

.speed-results--under-clock .pk-result-box {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 4rem;
  min-height: 3.35rem;
  padding: 0.38rem 0.28rem 0.42rem;
}

.speed-results--under-clock .pk-result-box__k {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.speed-results--under-clock .pk-result-box__v {
  font-size: 0.92rem;
}

.speed-results--under-clock .pk-result-box__u {
  font-size: 0.62rem;
}

/* Home finished: gauge left, big metrics 2×2 right (no boxes) */
.speed-results--hero-split {
  max-width: none;
  margin: 0;
  text-align: start;
}

.speed-results--hero-split:empty {
  display: none;
}

.speed-results--hero-split .premium-results--hero-split {
  border: none;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: stretch;
}

.speed-results--hero-split .pk-result-heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.speed-results--hero-split .pk-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 8vw, 3.75rem);
  row-gap: 1.35rem;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
}

.speed-results--hero-split .pk-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.speed-results--hero-split .pk-metric__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #15803d;
  margin-bottom: 0.08rem;
}

.speed-results--hero-split .pk-metric__icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.speed-results--hero-split .pk-metric__k {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.speed-results--hero-split .pk-metric__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}

.speed-results--hero-split .pk-metric__val {
  font-size: clamp(1.75rem, 4.8vw, 2.65rem);
  font-weight: 900;
  line-height: 1;
  color: #0b1220;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.speed-results--hero-split .pk-metric__u {
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 700;
  color: #475569;
}

.speed-results--hero-split .pk-metric__note {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.speed-results--hero-split .premium-results__summary {
  margin: 0.85rem 0 0;
  text-align: start;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 22rem;
}

.speed-results--hero-split .premium-results__meta {
  text-align: start;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.speed-results--hero-split .pk-result-helpline {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.speed-results--hero-split .pk-result-helpline__isp {
  color: #15803d;
}

.speed-results--hero-split .pk-result-helpline__num {
  color: #15803d;
  font-weight: 900;
  text-decoration: none;
}

.speed-results--hero-split .pk-result-helpline__num:hover {
  text-decoration: underline;
}

.speed-results--hero-split .pk-result-helpline--muted {
  font-weight: 600;
  color: #475569;
}

.speed-results--hero-split .pk-speed-analysis {
  margin-top: 0.85rem;
  border: 1px solid rgba(1, 65, 28, 0.18);
  border-radius: 12px;
  background: rgba(240, 253, 244, 0.45);
}

.speed-results--hero-split .pk-speed-analysis__summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #14532d;
  list-style: none;
}

.speed-results--hero-split .pk-speed-analysis__summary::-webkit-details-marker {
  display: none;
}

.speed-results--hero-split .pk-speed-analysis__body {
  padding: 0 0.75rem 0.65rem;
  border-top: 1px solid rgba(1, 65, 28, 0.1);
}

.speed-results--hero-split .pk-speed-analysis__verdict {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.speed-results--hero-split .pk-speed-analysis__verdict--low {
  color: #b45309;
}

.speed-results--hero-split .pk-speed-analysis__verdict--good {
  color: #15803d;
}

.speed-results--hero-split .pk-speed-analysis__hint {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

.speed-results--hero-split .pk-speed-analysis__links {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.82rem;
}

.speed-results--hero-split .pk-speed-analysis__links a {
  color: #15803d;
  font-weight: 700;
}

.speed-results--hero-split .pk-result-actions {
  margin-top: 1rem;
  text-align: center;
}

.speed-results--hero-split .pk-result-actions__lead {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

.speed-results--hero-split .pk-result-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.speed-results--hero-split .pk-result-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(22, 101, 52, 0.45);
  background: #fff;
  color: #15803d;
  cursor: pointer;
  text-decoration: none;
}

.speed-results--hero-split .pk-result-actions__btn--call {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

.speed-results--hero-split .pk-result-actions__btn--ghost {
  background: transparent;
}

@media (max-width: 640px) {
  .speed-results--hero-split .pk-metric-grid {
    column-gap: 1.5rem;
    row-gap: 1rem;
    max-width: 100%;
  }
}

@keyframes pk-gauge-morph-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tool-start-go {
  position: relative;
  width: clamp(7.5rem, 22vw, 10.25rem);
  height: clamp(7.5rem, 22vw, 10.25rem);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #15803d;
  box-shadow: 0 10px 28px rgba(1, 65, 28, 0.12);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.tool-start-go--ookla .tool-start-go__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #15803d,
    0 0 0 7px #fff inset,
    0 0 0 9px #22c55e;
}

.tool-start-go:hover:not(:disabled) {
  filter: brightness(1.02);
  transform: scale(1.04);
}

.tool-start-go:active:not(:disabled) {
  transform: scale(0.97);
}

.tool-start-go:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.tool-start-go:focus-visible {
  outline: 3px solid #34d399;
  outline-offset: 4px;
}

.tool-start-go__txt {
  position: relative;
  z-index: 1;
  font-size: clamp(1.85rem, 5.5vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  line-height: 1;
  color: #15803d;
}

/* ~2× default GO on home Ookla row (scoped so layout can breathe) */
.tool-hero-go-toolbar--ookla-row .tool-start-go {
  width: clamp(15rem, min(44vw, 28vh), 20.5rem);
  height: clamp(15rem, min(44vw, 28vh), 20.5rem);
  box-shadow: 0 14px 36px rgba(1, 65, 28, 0.16);
}

.tool-hero-go-toolbar--ookla-row .tool-start-go--ookla .tool-start-go__rings {
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 5px #15803d,
    0 0 0 9px #fff inset,
    0 0 0 12px #22c55e;
}

.tool-hero-go-toolbar--ookla-row .tool-start-go__txt {
  font-size: clamp(2.2rem, min(7vw, 8vh), 3.5rem);
}

.tool-hero-go-toolbar--ookla-row .tool-hero-morph {
  min-width: clamp(15rem, min(44vw, 28vh), 20.5rem);
  min-height: clamp(15rem, min(44vw, 28vh), 20.5rem);
}

.tool-hero-go-toolbar--ookla-row .tool-hero-morph__gauge--clock {
  width: clamp(15rem, min(44vw, 28vh), 20.5rem);
  height: clamp(15rem, min(44vw, 28vh), 20.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.35rem 0.35rem;
  box-sizing: border-box;
}

.tool-hero-go-toolbar--ookla-row .speed-gauge--clock-face .speed-gauge__svg {
  height: clamp(6.75rem, 19vw, 9rem);
  width: auto;
  max-width: 94%;
}

.speed-gauge--clock-face .speed-gauge__trace--clock {
  stroke: #14532d;
}

.speed-gauge--clock-face .speed-gauge__tick-label {
  fill: #14532d;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans, system-ui, sans-serif);
}

.speed-gauge--clock-face .speed-gauge__needle,
.speed-gauge--clock-face .speed-gauge__hub {
  color: #14532d;
}

.speed-gauge--clock-face .speed-gauge__readout--clock {
  bottom: 18px;
}

.speed-gauge--clock-face .speed-gauge__readout--clock .speed-gauge__num {
  color: #14532d;
}

.speed-gauge--clock-face .speed-gauge__readout--clock .speed-gauge__unit {
  color: #166534;
  font-weight: 800;
}

.tool-hero-server-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  justify-content: center;
  max-width: min(100%, 28rem);
}

.tool-hero-server-line__icon {
  color: #64748b;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.tool-hero-server-line__body {
  text-align: left;
}

.tool-hero-server-line__k {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.12rem;
}

.tool-hero-server-line__v {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #01411c;
  line-height: 1.35;
}

.tool-hero-server-line__v--stack {
  font-weight: 700;
}

.tool-hero-server-line__primary {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #01411c;
  line-height: 1.25;
}

.tool-hero-server-line__secondary {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.12rem;
  line-height: 1.3;
}

.tool-hero-server-line--meter {
  margin-top: 0.15rem;
}

.tool-hero-host-change {
  margin-top: 0.45rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  background: transparent;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.tool-hero-host-change:hover {
  background: rgba(15, 118, 110, 0.08);
}

.speed-panel--embedded {
  margin-top: 0.45rem;
  padding: 0.75rem 0.2rem 0.85rem;
  width: 100%;
  max-width: 100%;
  border: none;
  background: transparent;
  box-shadow: none;
}

.speed-panel--embedded .speed-gauge-panel {
  background: rgba(15, 23, 42, 0.06);
}

.speed-panel--embedded .speed-gauge__track {
  stroke: rgba(15, 23, 42, 0.14);
}

/* After test: hide live chrome; boxed metrics stay in #speedResults under the gauge */
.speed-panel--results-only .phase-track,
.speed-panel--results-only .progress-wrap,
.speed-panel--results-only .speed-status,
.speed-panel--results-only .speed-selected-server {
  display: none !important;
}

.speed-panel--embedded.speed-panel--results-only .speed-tool-col--solo {
  display: none !important;
}

.tool-hero--pk-start .speed-panel--embedded .phase-step {
  background: #f0fdf4;
  border: 2px solid #15803d;
  color: #14532d;
  box-shadow: 0 2px 0 rgba(20, 83, 45, 0.22);
}

.tool-hero--pk-start .speed-panel--embedded .phase-step__dot {
  background: #166534;
}

.tool-hero--pk-start .speed-panel--embedded .phase-step--active {
  color: #052e16;
  border-color: #166534;
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.35),
    0 4px 12px rgba(22, 101, 52, 0.14);
}

.tool-hero--pk-start .speed-panel--embedded .phase-step--active .phase-step__dot {
  background: #16a34a;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}

.tool-hero--pk-start .speed-panel--embedded .phase-step--done {
  color: #166534;
}

.tool-hero--pk-start .speed-panel--embedded .phase-step--done .phase-step__dot {
  background: #22c55e;
}

.speed-analysis-details {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.65rem;
  opacity: 0;
  transform: translateY(10px);
  animation: speedAnalysisReveal 0.65s ease forwards;
  animation-delay: 0.06s;
  border-radius: 12px;
  border: 1px solid rgba(1, 65, 28, 0.14);
  background: rgba(255, 255, 255, 0.55);
}

.speed-analysis-details__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #01411c;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  user-select: none;
}

.speed-analysis-details__summary::-webkit-details-marker {
  display: none;
}

.speed-analysis-details__hint {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--muted, #64748b);
}

.speed-analysis-details__inner {
  padding: 0 0.55rem 0.85rem;
}

.speed-analysis-details .speed-analysis {
  animation: none;
  opacity: 1;
  transform: none;
  margin-top: 0;
}

.speed-analysis-details[open] > .speed-analysis-details__summary {
  border-bottom: 1px solid rgba(1, 65, 28, 0.1);
  margin-bottom: 0.35rem;
}

@media (max-width: 720px) {
  .tool-hero-go-toolbar--ookla-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.7rem 0.75rem;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
  }

  .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--go {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp {
    grid-column: 1;
    justify-self: stretch;
  }

  .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host {
    grid-column: 2;
    justify-self: stretch;
  }

  .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host {
    max-width: none;
  }

  .tool-hero-go-toolbar--ookla-row .tool-start-go {
    width: clamp(12.5rem, min(56vw, 36vh), 18.5rem);
    height: clamp(12.5rem, min(56vw, 36vh), 18.5rem);
  }

  .tool-hero-go-toolbar--ookla-row .tool-start-go__txt {
    font-size: clamp(1.95rem, 8vw, 2.85rem);
  }
}

@media (max-width: 380px) {
  .tool-hero-go-toolbar--ookla-row {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }

  .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp,
  .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .tool-hero-go-toolbar:not(.tool-hero-go-toolbar--ookla-row) {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tool-hero-go-toolbar:not(.tool-hero-go-toolbar--ookla-row) .tool-hero-go-toolbar__cell--side {
    flex: 1 1 44%;
    max-width: none;
  }

  .tool-hero-go-toolbar:not(.tool-hero-go-toolbar--ookla-row) .tool-hero-go-toolbar__cell--go {
    order: -1;
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
  }
}

.tool-hero--pk-start .isp-detect-status--compact {
  margin: 0.45rem auto 0;
  max-width: 36rem;
  font-size: 0.88rem;
}

.tool-hero--pk-start .network-pick-row {
  width: 100%;
  max-width: 36rem;
}

.tool-actions--pk-start {
  margin-top: 0.6rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.tool-hero-test-progress {
  width: min(22rem, 92%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
}

.tool-hero-test-progress[hidden] {
  display: none !important;
}

.tool-hero-test-progress__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(1, 65, 28, 0.14);
  overflow: hidden;
}

.tool-hero-test-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14532d, #22c55e);
  transition: width 0.22s ease;
}

.tool-hero-test-progress__pct {
  font-size: 0.8rem;
  font-weight: 800;
  color: #166534;
  text-align: center;
  letter-spacing: 0.02em;
}

.tool-hero-conn-line__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.35;
  max-width: 11rem;
}

.tool-hero-conn-line__sub[hidden] {
  display: none !important;
}

[dir="rtl"] .tool-hero-server-line__body {
  text-align: right;
}

[dir="rtl"] .tool-hero-server-line {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp {
  justify-content: flex-end;
}

[dir="rtl"] .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--isp .tool-hero-conn-line {
  text-align: end;
}

[dir="rtl"] .tool-hero-go-toolbar--ookla-row .tool-hero-go-toolbar__cell--host {
  justify-content: flex-start;
}

[dir="rtl"] .tool-hero-go-toolbar--ookla-row .tool-hero-server-line {
  justify-content: flex-start;
}

[dir="rtl"] .tool-hero-go-toolbar--ookla-row .tool-hero-server-line__body {
  text-align: start;
  align-items: flex-start;
}

[dir="rtl"] .tool-hero-go-toolbar--ookla-row .tool-hero-host-change {
  align-self: flex-start;
}

[dir="rtl"] .tool-hero-go-toolbar:not(.tool-hero-go-toolbar--ookla-row) {
  flex-direction: row-reverse;
}

/* --- Speed tool: gauge + columns --- */
.speed-tool-grid {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 640px) {
  .speed-tool-grid {
    grid-template-columns: minmax(200px, 240px) 1fr;
  }
}

.speed-gauge-panel {
  padding: 1rem 0.75rem 1.25rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.speed-gauge {
  position: relative;
  display: inline-block;
}

.speed-gauge__svg {
  display: block;
  margin: 0 auto;
}

.speed-gauge--hero .speed-gauge__svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.speed-gauge--hero.speed-gauge--clock-face .speed-gauge__svg {
  filter: none;
}

.speed-gauge__trace {
  stroke: rgba(244, 240, 255, 0.12);
}

.speed-gauge__zone {
  opacity: 0.98;
}

.speed-gauge__needle {
  color: #0f172a;
}

.speed-gauge__hub {
  fill: currentColor;
  color: #0f172a;
}

.speed-gauge__readout {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.1;
}

.speed-gauge__num {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.speed-gauge__unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.speed-gauge__phase {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.speed-tool-col {
  min-width: 0;
}

.speed-tool-col--solo {
  max-width: 40rem;
}

.premium-live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

@media (min-width: 520px) {
  .premium-live-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.premium-stat-card--inline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.premium-stat-card--inline.premium-stat-card--accent {
  border-color: rgba(34, 163, 106, 0.45);
  background: linear-gradient(165deg, rgba(34, 163, 106, 0.12), rgba(0, 0, 0, 0.12));
}

.premium-stat-card--inline .premium-stat-card__k {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
}

.premium-stat-card--inline .premium-stat-card__v {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text, #e8eef5);
  letter-spacing: -0.02em;
}

.premium-results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .premium-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.premium-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}

.premium-stat-card--accent {
  border-color: rgba(34, 163, 106, 0.5);
  background: linear-gradient(165deg, rgba(34, 163, 106, 0.14), rgba(0, 0, 0, 0.1));
}

.premium-stat-card__k {
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted, #94a3b8);
}

.premium-stat-card__v {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text, #f1f5f9);
}

.premium-stat-card__u {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted, #94a3b8);
  margin-left: 0.15rem;
}

.premium-results__summary {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text, #e2e8f0);
  font-weight: 600;
}

.premium-results__meta {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #94a3b8);
  line-height: 1.4;
}

.pk-result-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  margin: 0.5rem 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.pk-result-box {
  flex: 1 1 0;
  min-width: 4.75rem;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 4.25rem;
  padding: 0.55rem 0.4rem 0.55rem;
  border-radius: 0.5rem;
  border: 2px solid #14532d;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 2px 0 rgba(20, 83, 45, 0.45), 0 4px 14px rgba(20, 83, 45, 0.12);
}

.pk-result-box__k {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14532d;
  margin-bottom: 0.15rem;
}

.pk-result-box__v {
  font-size: 1rem;
  font-weight: 900;
  color: #052e16;
  letter-spacing: -0.02em;
}

.pk-result-box__u {
  font-size: 0.68rem;
  font-weight: 700;
  color: #166534;
}

.pk-result-category-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #14532d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pk-result-category-link:hover {
  color: #0f3d24;
}

.pk-result-box__note {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.25;
}

.wifi-category-page .wifi-category {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.wifi-category-page .wifi-category__intro {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text, #0f172a);
  margin: 0 0 1.25rem;
}

.wifi-category-page .wifi-category__table-wrap {
  overflow-x: auto;
  border-radius: 0.65rem;
  border: 2px solid #14532d;
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.12);
}

.wifi-category-page .wifi-category__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}

.wifi-category-page .wifi-category__table th,
.wifi-category-page .wifi-category__table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(20, 83, 45, 0.18);
  vertical-align: top;
}

.wifi-category-page .wifi-category__table th {
  background: #ecfdf5;
  color: #052e16;
  font-weight: 800;
}

.wifi-category-page .wifi-category__table tr:last-child td {
  border-bottom: none;
}

.wifi-category-page .wifi-category__table td:first-child {
  font-weight: 750;
  color: #14532d;
  white-space: nowrap;
}

.premium-results__actions {
  margin-top: 0.75rem;
}

.premium-results__again {
  min-width: 8.5rem;
}

.speed-results--tool .premium-results {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
}

/* --- Auto marquee --- */
.marquee-section {
  padding-bottom: 0.5rem;
}

.marquee-section__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  color: var(--text);
}

.marquee-section__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.marquee-shell {
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 11.5rem;
  padding: 0.95rem 1.15rem;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(165deg, var(--card-light-green) 0%, var(--card-light-green-2) 100%);
  border: 3px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.marquee-card:hover {
  transform: translateY(-3px);
  border-color: #ffffff;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(1, 65, 28, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.marquee-card__arrow {
  font-size: 0.65rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(1, 65, 28, 0.35);
}

.marquee-card__name {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(1, 65, 28, 0.45);
}

.marquee-card__sub {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(1, 65, 28, 0.35);
}

/* --- Network modal --- */
.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* --- Select host modal (Speedtest-style list) --- */
.host-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}

.host-search {
  flex: 1 1 auto;
  min-width: 12rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.98rem;
}

.host-status {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.host-list {
  max-height: min(52vh, 520px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  padding: 0.25rem;
}

.host-row {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.host-row:hover {
  background: rgba(110, 231, 183, 0.08);
  border-color: rgba(110, 231, 183, 0.35);
  transform: translateY(-1px);
}

.host-row--active {
  background: rgba(110, 231, 183, 0.14);
  border-color: rgba(110, 231, 183, 0.55);
}

.host-row__top {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.host-row__meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.host-empty {
  padding: 1rem;
  color: var(--muted);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 12, 0.82);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 1.5rem 1.35rem 1.75rem;
  background: var(--bg-card);
}

.modal__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--text);
}

.modal__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.modal__hint--muted {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.modal__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 1rem 0 1.25rem;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.modal-card {
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(165deg, var(--card-light-green) 0%, var(--card-light-green-2) 100%);
  border: 2px solid #ffffff;
  border-radius: 12px;
}

.modal-card__title {
  display: block;
  font-size: 1.05rem;
  color: var(--on-green-card);
}

.modal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.modal-card__link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--on-green-card);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.modal-card__link:hover {
  color: #ffffff;
}

/* SEO long-form: pillar guide + city/network expansions */
.seo-pillar-page main {
  padding-bottom: 3rem;
}

.seo-pillar {
  padding: 1.5rem 0 3rem;
}

.seo-pillar__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.seo-pillar__lead {
  margin: 0.75rem 0 0;
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* Lightweight share links (no third-party widgets; iSkills H social) */
.share-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.share-tools__label {
  font-weight: 600;
  color: var(--text-heading);
}

.share-tools a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-pillar__h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--text-heading);
  margin: 0 0 0.75rem;
  scroll-margin-top: 5rem;
}

.seo-pillar__h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin: 1rem 0 0.5rem;
}

.seo-pillar__chunk {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-pillar__chunk--final {
  border-bottom: none;
  margin-top: 1rem;
}

.seo-pillar__divider {
  margin: 0.5rem 0 1.25rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.seo-pillar__chunk p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--text);
}

.seo-pillar__chunk p:last-child {
  margin-bottom: 0;
}

.seo-pillar__table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.seo-pillar__table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.seo-pillar__table th,
.seo-pillar__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.seo-pillar__table th {
  background: rgba(1, 65, 28, 0.12);
  color: var(--text-heading);
  font-weight: 700;
}

.seo-pillar__table tr:last-child td {
  border-bottom: none;
}

.seo-pillar__diagram {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(1, 65, 28, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.seo-pillar__diagram-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.seo-pillar__meter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, 2fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .seo-pillar__meter-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .seo-pillar__meter-track {
    order: 2;
    grid-column: 1 / -1;
  }

  .seo-pillar__meter-val {
    order: 3;
  }
}

.seo-pillar__meter-label {
  color: var(--text);
  font-weight: 600;
}

.seo-pillar__meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.seo-pillar__meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d4d2e, #1a8f52);
  min-width: 4px;
}

.seo-pillar__meter-val {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.seo-pillar__diagram-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.seo-pillar__faq {
  margin-top: 0.5rem;
}

.seo-pillar__faq details {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.seo-pillar__faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seo-pillar__faq summary::-webkit-details-marker {
  display: none;
}

.seo-pillar__faq summary::after {
  content: "+";
  font-weight: 800;
  color: var(--accent, #0d4d2e);
  flex-shrink: 0;
}

.seo-pillar__faq details[open] summary::after {
  content: "\2212";
}

.seo-pillar__faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.seo-pillar__faq .seo-pillar__faq-body {
  padding: 0.85rem 1rem 1rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}

.seo-pillar a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-pillar a:hover {
  color: var(--link-hover);
}

.seo-pillar__list {
  margin: 0.5rem 0 1rem 1.1rem;
  color: var(--text);
  line-height: 1.75;
}

.seo-pillar__muted {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0;
}

.seo-longform {
  margin-top: 2.25rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, var(--section-green) 0%, var(--section-green-2) 100%);
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.15);
}

.seo-longform__body p {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.92);
}

.seo-longform h2,
.seo-longform h3,
.seo-longform .seo-pillar__h2,
.seo-longform .seo-pillar__h3 {
  color: #ffffff;
}

.seo-longform a {
  color: #e0ffe8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-longform a:hover {
  color: #ffffff;
}

.seo-longform__list {
  margin: 0.75rem 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.seo-longform__more {
  margin-top: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.home-seo-article {
  margin-top: 2.5rem;
  padding: 1.75rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, var(--section-green) 0%, var(--section-green-2) 100%);
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.12);
}

.home-seo-article h2 {
  margin-top: 0;
  color: #ffffff;
}

.home-seo-article p,
.home-seo-article li,
.home-seo-article .subsection-head {
  color: rgba(255, 255, 255, 0.92);
}

.home-seo-article .subsection-head {
  margin-top: 1.25rem;
}

/* Homepage long-form guide (2000+ words) */
.home-longform {
  margin-top: 2.5rem;
  padding: 1.75rem 1.35rem 2rem;
  border-radius: var(--radius);
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, var(--section-green) 0%, var(--section-green-2) 100%);
  box-shadow: 0 8px 28px rgba(1, 65, 28, 0.12);
}

/* Full-width green band (escapes narrow main.wrap — same idea as ISP sections) */
main.wrap .home-longform.home-longform--fullbleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: 2.25rem max(1rem, env(safe-area-inset-left)) 2.75rem max(1rem, env(safe-area-inset-right));
  box-shadow: none;
}

.home-longform__intro {
  max-width: min(100%, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.home-longform__intro .section-head {
  margin-top: 0;
}

.home-longform__display-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-longform--fullbleed .home-longform__h2,
.home-longform--fullbleed .wifi-tips-showcase__title,
.guide-tip-strip__title {
  font-family: Georgia, "Times New Roman", serif;
}

.home-longform__article {
  max-width: min(100%, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.home-longform:not(.home-longform--fullbleed) .home-longform__article {
  max-width: 48rem;
}

/* Quick tips row: list + large diagram per item */
.guide-tip-strip {
  max-width: min(100%, 1200px);
  margin: 2rem auto 2.5rem;
  padding: 0;
}

.guide-tip-strip__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-align: center;
}

.guide-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-tip-list__item {
  display: grid;
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(1, 65, 28, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

@media (min-width: 720px) {
  .guide-tip-list__item {
    grid-template-columns: minmax(200px, 320px) 1fr;
    padding: 1.5rem 1.75rem;
    gap: 1.75rem 2rem;
  }
}

.guide-tip-list__diagram {
  background: linear-gradient(155deg, #012814 0%, var(--flag-green) 60%, #0a5a2b 100%);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.guide-tip-list__svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.guide-tip-list__label {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.guide-tip-list__body p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.guide-tip-list__body strong {
  color: #ffffff;
}

/* Larger diagrams inside full-bleed WiFi showcase */
.home-longform--fullbleed .wifi-tip-illust {
  min-height: min(280px, 48vw);
}

.home-longform--fullbleed .wifi-tip-illust__svg {
  max-width: min(320px, 90vw);
}

.home-longform__h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: #ffffff;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  scroll-margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-longform__article > .home-longform__h2:first-of-type {
  border-top: none;
  margin-top: 0.5rem;
  padding-top: 0;
}

.home-longform__article p,
.home-longform__article li {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
}

.home-longform .section-head,
.home-longform .section-note,
.home-longform .section-note a {
  color: rgba(255, 255, 255, 0.95);
}

.home-longform .section-note a {
  color: #e0ffe8;
  text-decoration: underline;
}

.home-longform .section-note a:hover {
  color: #ffffff;
}

.home-longform__article a:not(.btn) {
  color: #e0ffe8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-longform__article a:not(.btn):hover {
  color: #ffffff;
}

/* WiFi tips: four alternating illustrated bands (inside longform) */
.wifi-tips-showcase {
  margin: 2rem 0 0;
  padding: 0;
}

.wifi-tips-showcase__title {
  text-align: center;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.wifi-tips-showcase__lead {
  text-align: center;
  margin: 0 auto 2.25rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.wifi-tip-row {
  display: grid;
  gap: 1.75rem 2rem;
  align-items: center;
  margin: 0 0 2.5rem;
}

@media (min-width: 768px) {
  .wifi-tip-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem 2.5rem;
    margin-bottom: 3rem;
  }

  .wifi-tip-row--reverse .wifi-tip-row__visual {
    order: 2;
  }

  .wifi-tip-row--reverse .wifi-tip-row__copy {
    order: 1;
  }
}

.wifi-tip-illust {
  background: linear-gradient(155deg, #012814 0%, var(--flag-green) 55%, #0a5a2b 100%);
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(240px, 42vw);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wifi-tip-illust__svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.wifi-tip-row__h {
  margin: 0 0 0.65rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.wifi-tip-row__copy p {
  margin: 0;
  font-size: clamp(0.98rem, 2.1vw, 1.06rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.wifi-tip-row__copy strong {
  color: #ffffff;
  font-weight: 700;
}

.wifi-tips-showcase__footer {
  margin: 2rem 0 0;
  font-size: clamp(0.98rem, 2.1vw, 1.04rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.wifi-tips-showcase__footer + .wifi-tips-showcase__footer {
  margin-top: 1rem;
}

.tip-box {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(165deg, var(--tip-box-green) 0%, var(--tip-box-green-2) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tip-box--quick {
  border-color: rgba(255, 255, 255, 0.9);
}

.tip-box p {
  margin: 0;
  font-size: 0.94rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tip-box__label {
  font-weight: 800;
  color: #ffffff;
  margin-right: 0.35rem;
}

.tip-box--quick .tip-box__label {
  color: #ffffff;
}

/* --- Header: Tools + Legal row --- */
.site-header__dropdown-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
  flex-shrink: 0;
}

/* --- Tool pages (compare, history, score, usage, guide) --- */
.tool-page-main {
  padding-bottom: 3rem;
}

.tool-page-hero {
  margin-bottom: 1.5rem;
}

.tool-page-hero__inner {
  max-width: 46rem;
}

.seo-article.compare-seo,
.seo-article.internet-score__explain {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.seo-article h2 {
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
}

.seo-article p,
.seo-article li {
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 0.85rem;
}

/* Speed history */
.speed-history-chart-wrap {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow-x: auto;
}

.speed-history-chart {
  display: block;
  min-width: 280px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.speed-history-chart__dot {
  fill: var(--accent);
  stroke: var(--bg-elevated);
  stroke-width: 2;
}

.speed-history-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.speed-history-card {
  padding: 1rem 1.1rem;
  text-align: left;
}

.speed-history-card__date {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.speed-history-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.speed-history-card__stats span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.speed-history-card__stats strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.speed-history-card__delta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.speed-history-card__delta--up {
  color: #3ecf8e;
}

.speed-history-card__delta--down {
  color: #ff8a8a;
}

.speed-history-card__delta--flat {
  color: var(--muted);
}

@media (max-width: 480px) {
  .speed-history-card__stats {
    grid-template-columns: 1fr;
  }
}

/* Compare networks */
.compare-tool {
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.5rem;
}

.compare-tool__toolbar {
  margin-bottom: 1rem;
}

.compare-tool__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.compare-tool__select {
  width: 100%;
  max-width: 22rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.compare-tool__best {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(0, 255, 178, 0.1);
  border: 1px solid rgba(0, 255, 178, 0.28);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.compare-table-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table__isp-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compare-table thead th {
  background: rgba(0, 255, 178, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compare-table__row--best th,
.compare-table__row--best td {
  background: rgba(62, 207, 142, 0.12);
  box-shadow: inset 3px 0 0 #3ecf8e;
}

.compare-tool__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Internet score */
.internet-score-layout {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 840px) {
  .internet-score-layout {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.internet-score__panel {
  padding: 1.35rem 1.4rem;
  text-align: center;
}

.internet-score__h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}

.internet-score__h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.internet-score__level {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.internet-score__level--poor {
  background: rgba(255, 107, 107, 0.18);
  color: #ff9a9a;
}

.internet-score__level--avg {
  background: rgba(245, 213, 71, 0.15);
  color: #f5d547;
}

.internet-score__level--good {
  background: rgba(0, 255, 178, 0.12);
  color: var(--accent);
}

.internet-score__level--excellent {
  background: rgba(0, 255, 178, 0.22);
  color: var(--text-heading);
}

.internet-score__rings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.internet-score__main-ring {
  position: relative;
  width: min(220px, 70vw);
  aspect-ratio: 1;
}

.internet-score__svg {
  width: 100%;
  height: auto;
  display: block;
}

.internet-score__svg--sm {
  width: 72px;
  height: auto;
  margin: 0 auto 0.35rem;
}

.internet-score__track {
  stroke: rgba(255, 255, 255, 0.1);
}

.internet-score__fill {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.45s ease, stroke 0.35s ease;
}

.internet-score__fill--sub {
  stroke: var(--accent-2);
}

.internet-score__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.internet-score__num {
  font-size: clamp(2.2rem, 8vw, 2.85rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.internet-score__sub {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.internet-score__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.internet-score__subcard {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.internet-score__sublabel {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.internet-score__subval {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-hot);
}

.internet-score__form-card {
  padding: 1.25rem 1.35rem;
}

.internet-score__fields {
  display: grid;
  gap: 0.85rem;
}

.internet-score__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.internet-score__field input {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.internet-score__actions {
  margin-top: 1rem;
}

/* Usage analysis */
.usage-inputs {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.usage-inputs__grid {
  margin-bottom: 1rem;
}

.usage-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .usage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usage-card {
  padding: 1.15rem 1.2rem;
  text-align: center;
}

.usage-card__icon {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  line-height: 1;
}

.usage-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.usage-card__label {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.usage-card__detail {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.usage-card--ok {
  border-color: rgba(62, 207, 142, 0.45);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15);
}

.usage-card--ok .usage-card__label {
  color: #3ecf8e;
}

.usage-card--mid {
  border-color: rgba(245, 213, 71, 0.35);
}

.usage-card--mid .usage-card__label {
  color: #f5d547;
}

.usage-card--bad {
  border-color: rgba(255, 107, 107, 0.4);
}

.usage-card--bad .usage-card__label {
  color: #ff8a8a;
}

/* Internet speed guide (article) */
.internet-speed-guide .guide-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}

.guide-faq dt {
  font-weight: 800;
  margin-top: 1rem;
  color: var(--text-heading);
}

.guide-faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-cta {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 255, 178, 0.08);
  border: 1px solid var(--border);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .internet-score__fill {
    transition: none;
  }
}

/* Dedicated minimal speed test page (menu “Speed test”) */
.speed-test-page-main {
  padding: 2rem 0 3rem;
  max-width: 44rem;
  margin: 0 auto;
}

.speed-test-simple {
  padding: 1.75rem 1.5rem 2rem;
}

.speed-test-simple__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--text-heading);
}

.speed-test-simple__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.speed-test-simple__grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .speed-test-simple__grid {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .speed-test-simple__field--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 559px) {
  .speed-test-simple__network-row {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .speed-test-simple__network-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .speed-test-simple__network-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.speed-test-simple__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.speed-test-simple__network-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.speed-test-simple__network-value {
  flex: 1 1 8rem;
  font-size: 1rem;
  color: var(--text-heading);
}

.speed-test-simple__network-value--stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.speed-test-simple__host-secondary {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.speed-test-simple__select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
}

.speed-test-simple__hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.speed-test-simple__error {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b91c1c;
}

.speed-selected-server {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.speed-selected-server--stack {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  align-items: flex-start;
}

.speed-selected-server__primary {
  display: block;
  font-weight: 700;
}

.speed-selected-server__secondary {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.speed-panel--compact {
  margin-top: 1.25rem;
}

.speed-analysis__method-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* --- i18n language switcher (header) — dark panel aligned to trigger --- */
.site-header .site-lang.site-nav__dropdown {
  position: relative;
  align-self: flex-start;
  flex: 0 0 auto;
}

.site-header .site-lang.site-nav__dropdown[open] {
  z-index: 90;
}

.site-header .site-lang .site-nav__dropdown-menu.site-lang__menu {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 9.75rem;
  max-width: 11.75rem;
  width: max-content;
  padding: 0.35rem;
  margin: 0.2rem 0 0;
  inset-inline-end: 0;
  inset-inline-start: auto;
  top: calc(100% + 0.25rem);
  box-sizing: border-box;
  background: linear-gradient(
    165deg,
    rgba(18, 100, 56, 0.98) 0%,
    rgba(1, 65, 28, 0.99) 52%,
    #042f18 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.18) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
}

.site-lang__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  line-height: 1.2;
}

.site-header .site-lang.site-nav__dropdown > summary.site-lang__summary {
  padding-block: 0.5rem;
  padding-inline: 0.5rem 1.45rem;
}

.site-lang__globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.site-lang__globe svg {
  display: block;
  opacity: 0.95;
}

.site-lang__current {
  font-weight: 700;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

.site-lang__opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.65rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 250, 0.95);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

.site-lang__opt:hover,
.site-lang__opt:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ecfdf5;
  outline: none;
}

.site-lang__opt:focus-visible:not(:hover) {
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.5);
}

.site-lang__opt--active {
  background: rgba(110, 231, 183, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.35);
}

.site-header .site-lang__opt {
  color: rgba(255, 253, 250, 0.95);
}

.site-header .site-lang__opt:hover,
.site-header .site-lang__opt:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #f0fdf4;
}

.site-header .site-lang__opt:focus-visible:not(:hover) {
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.5);
}

.site-header .site-lang__opt--active {
  background: rgba(110, 231, 183, 0.2);
  color: #ffffff;
}

html.pk-lang-rtl .site-header__bar.wrap {
  direction: rtl;
}

html.pk-lang-rtl .site-header__nav-wrap {
  direction: rtl;
}

html.pk-lang-rtl .primary-nav {
  direction: rtl;
}

html.pk-lang-rtl .site-header__dropdown-row {
  flex-direction: row-reverse;
}

@media (max-width: 899px) {
  .site-lang__current {
    max-width: 5.5rem;
  }
}

/* --- Providers directory (mobile-first) --- */
.providers-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.25rem 0 1rem;
}

.providers-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(1, 65, 28, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.providers-nav__link:hover {
  border-color: rgba(1, 65, 28, 0.28);
  color: var(--flag-green);
}

.providers-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.providers-toolbar__search .input {
  width: 100%;
}

.providers-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(1, 65, 28, 0.04);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.chip--ghost {
  background: transparent;
}

.chip--toggle.chip--active {
  background: rgba(1, 65, 28, 0.1);
  border-color: rgba(1, 65, 28, 0.26);
  color: var(--flag-green);
}

.providers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0.75rem 0 1.25rem;
}

.provider-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  padding: 0.9rem 0.95rem;
}

.provider-card__top {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.provider-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--flag-green), var(--flag-green-2));
  box-shadow: 0 10px 18px rgba(1, 65, 28, 0.22);
}

.provider-card__name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.provider-card__name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.provider-card__name a {
  color: var(--text-heading);
  text-decoration: none;
}

.provider-card__name a:hover {
  color: var(--flag-green);
}

.provider-card__badge {
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(1, 65, 28, 0.18);
  background: rgba(1, 65, 28, 0.06);
  color: var(--flag-green);
  flex-shrink: 0;
}

.provider-card__desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.provider-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.75rem 0 0.65rem;
  color: var(--muted);
}

.provider-card__meta-item strong {
  color: var(--text);
}

.provider-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn--sm {
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.providers-empty {
  border: 1px dashed rgba(1, 65, 28, 0.25);
  border-radius: 16px;
  padding: 1.1rem;
  background: rgba(1, 65, 28, 0.03);
}

.providers-internal-links__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.providers-internal-links__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
  font-weight: 800;
}

.providers-internal-links__pill:hover {
  border-color: rgba(1, 65, 28, 0.3);
  color: var(--flag-green);
}

@media (min-width: 820px) {
  .providers-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .providers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .providers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Pakistan packages marketplace (hero + engine) --- */
.pkg-mhero {
  position: relative;
  margin: 0 0 1.75rem;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
}

.pkg-mhero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 20% 20%, rgba(0, 255, 180, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(1, 120, 72, 0.2), transparent 45%),
    linear-gradient(165deg, #042818 0%, #063d22 38%, #0a3020 72%, #051f14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pkg-mhero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.pkg-mhero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .pkg-mhero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
}

.pkg-mhero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 255, 220, 0.85);
}

.pkg-mhero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f4fff9;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.25);
}

.pkg-mhero__lead {
  margin: 0 0 0.75rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  color: rgba(226, 245, 234, 0.92);
}

.pkg-mhero__lead a {
  color: #9ff5d4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pkg-mhero__compare-line {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(200, 255, 225, 0.88);
}

.pkg-mhero__panel {
  display: grid;
  gap: 1rem;
}

.pkg-mhero__search-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem 0.55rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 255, 170, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.pkg-mhero__search-inner:focus-within {
  border-color: rgba(0, 255, 180, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 255, 180, 0.2),
    0 0 32px rgba(0, 255, 170, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.35);
}

.pkg-mhero__search-icon {
  flex-shrink: 0;
  color: rgba(160, 255, 210, 0.75);
}

.pkg-mhero__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f0fff7;
  font-size: 1.05rem;
  font-weight: 650;
  outline: none;
}

.pkg-mhero__input::placeholder {
  color: rgba(200, 230, 215, 0.45);
}

.pkg-mhero__shortcuts-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 240, 220, 0.65);
}

.pkg-mhero__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pkg-mhero__chip {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e8fff2;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease;
}

.pkg-mhero__chip:hover {
  transform: translateY(-2px);
  background: rgba(0, 255, 170, 0.12);
  border-color: rgba(0, 255, 180, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pkg-engine.pkg-engine--market {
  position: relative;
  border: 1px solid rgba(1, 65, 28, 0.14);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 249, 0.98) 100%);
  box-shadow:
    0 20px 56px rgba(1, 65, 28, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  margin: 0 0 1.75rem;
}

.pkg-engine__head {
  margin-bottom: 1.15rem;
}

.pkg-engine__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.pkg-engine__lead {
  margin: 0;
  max-width: 46rem;
  line-height: 1.65;
}

.pkg-filters__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flag-green);
}

.pkg-filters__grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.pkg-filters__grid--primary {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pkg-filters__grid--primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pkg-filters__grid--secondary {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .pkg-filters__grid--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pkg-filters__grid--secondary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.pkg-filter-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(1, 65, 28, 0.12);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(1, 65, 28, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
}

.pkg-filter-card:hover {
  border-color: rgba(1, 120, 72, 0.28);
  box-shadow: 0 10px 28px rgba(1, 65, 28, 0.1);
  transform: translateY(-1px);
}

.pkg-filter-card--action {
  justify-content: flex-end;
}

.pkg-filter-card__label {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pkg-filter-card__label--ghost {
  opacity: 0;
}

.pkg-filter-card__control {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(1, 65, 28, 0.14);
  padding: 0.45rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 650;
  background: #fff;
  color: var(--text);
}

.pkg-filter-card__control:focus {
  outline: 2px solid rgba(0, 180, 110, 0.35);
  outline-offset: 1px;
}

.pkg-filter-card__btn {
  width: 100%;
  justify-content: center;
}

.pkg-status {
  margin: 1rem 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--muted);
}

.pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pkg-card.pkg-card--market {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(1, 65, 28, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f9fdfb 100%);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 32px rgba(1, 65, 28, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.pkg-card__shine {
  pointer-events: none;
  position: absolute;
  top: -40%;
  left: -30%;
  width: 55%;
  height: 120%;
  background: linear-gradient(125deg, rgba(0, 255, 170, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pkg-card.pkg-card--market:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 160, 100, 0.28);
  box-shadow:
    0 20px 48px rgba(1, 65, 28, 0.14),
    0 0 0 1px rgba(0, 255, 170, 0.12);
}

.pkg-card.pkg-card--market:hover .pkg-card__shine {
  opacity: 1;
}

.pkg-card__top {
  position: relative;
  z-index: 1;
}

.pkg-card__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pkg-card__logo {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #f0fff7;
  background: linear-gradient(145deg, #0a5c36 0%, #01411c 100%);
  border: 1px solid rgba(0, 255, 170, 0.2);
  box-shadow: 0 6px 18px rgba(1, 65, 28, 0.25);
}

.pkg-card__brand-text {
  min-width: 0;
}

.pkg-card__provider {
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flag-green);
}

.pkg-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.pkg-card__badge {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(1, 65, 28, 0.15);
  background: rgba(1, 65, 28, 0.05);
  color: var(--text-heading);
}

.pkg-card__badge--gaming {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
}

.pkg-card__badge--biz {
  border-color: rgba(2, 132, 199, 0.35);
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}

.pkg-card__badge--home {
  border-color: rgba(1, 120, 72, 0.3);
  background: rgba(0, 200, 120, 0.08);
  color: #065f46;
}

.pkg-card__badge--fiber {
  border-color: rgba(1, 65, 28, 0.25);
  background: rgba(0, 255, 140, 0.1);
  color: #01411c;
}

.pkg-card__techline {
  margin: 0.45rem 0 0;
}

.pkg-card__techpill {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(1, 65, 28, 0.14);
  background: rgba(1, 65, 28, 0.04);
  color: var(--text-heading);
}

.pkg-card__title {
  margin: 0.15rem 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 900;
  color: var(--text-heading);
}

.pkg-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.pkg-card__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  padding: 0;
}

@media (min-width: 520px) {
  .pkg-card__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pkg-card__stats .pkg-stat {
  margin: 0;
}

.pkg-stat {
  border: 1px solid rgba(1, 65, 28, 0.1);
  border-radius: 12px;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
}

.pkg-stat--wide {
  grid-column: 1 / -1;
}

@media (min-width: 520px) {
  .pkg-stat--wide {
    grid-column: span 2;
  }
}

.pkg-stat__k {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 850;
}

.pkg-stat__v {
  display: block;
  margin-top: 0.15rem;
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--text-heading);
}

.pkg-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.pkg-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(1, 65, 28, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-heading);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.pkg-card__btn:hover {
  border-color: rgba(0, 160, 100, 0.35);
  background: rgba(0, 255, 140, 0.08);
  transform: translateY(-1px);
}

.pkg-card__btn--primary {
  border-color: rgba(1, 90, 50, 0.35);
  background: linear-gradient(145deg, #067a47 0%, #01411c 100%);
  color: #f4fff9;
  box-shadow: 0 6px 18px rgba(1, 65, 28, 0.22);
}

.pkg-card__btn--primary:hover {
  color: #fff;
  border-color: rgba(0, 255, 170, 0.45);
  box-shadow: 0 8px 24px rgba(1, 65, 28, 0.28);
}

.pkg-card__compare-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(1, 65, 28, 0.12);
}

.pkg-compare-add {
  margin: 0;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}

.pkg-compare-add__cb {
  width: 18px;
  height: 18px;
  accent-color: #017a48;
  flex-shrink: 0;
}

.pkg-empty {
  border-radius: 20px;
  padding: 1.25rem 1.2rem;
}

.pkg-empty--market {
  text-align: center;
  border: 1px solid rgba(1, 65, 28, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #f3faf6 100%);
  box-shadow: 0 16px 44px rgba(1, 65, 28, 0.08);
}

.pkg-empty--dim {
  border: 1px dashed rgba(1, 65, 28, 0.2);
  background: rgba(1, 65, 28, 0.03);
}

.pkg-empty__visual {
  position: relative;
  height: 4rem;
  margin: 0 auto 0.75rem;
  max-width: 8rem;
}

.pkg-empty__orb {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, rgba(0, 255, 180, 0.35), rgba(1, 80, 48, 0.25) 45%, transparent 70%);
  box-shadow: 0 0 40px rgba(0, 255, 170, 0.15);
  animation: pkg-pulse 3.2s ease-in-out infinite;
}

.pkg-empty__orb--2 {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.55;
  animation-delay: 0.6s;
}

@keyframes pkg-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

.pkg-empty__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flag-green);
}

.pkg-empty--market h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 900;
  color: var(--text-heading);
}

.pkg-empty__lead {
  margin: 0 auto;
  max-width: 36rem;
  line-height: 1.65;
  color: var(--muted);
}

.pkg-empty__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.pkg-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(1, 65, 28, 0.18);
  background: #fff;
  color: var(--text-heading);
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.18s ease;
}

.pkg-empty__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 160, 100, 0.35);
  box-shadow: 0 10px 24px rgba(1, 65, 28, 0.1);
}

.pkg-empty__cta--primary {
  border-color: rgba(1, 90, 50, 0.4);
  background: linear-gradient(145deg, #067a47 0%, #01411c 100%);
  color: #f4fff9;
}

.pkg-empty__cta--primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(1, 65, 28, 0.25);
}

.pkg-compare {
  position: sticky;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  margin-top: 1.15rem;
  display: none;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.pkg-compare.pkg-compare--on {
  display: block;
}

.pkg-compare__glow {
  position: absolute;
  inset: -6px -4px auto -4px;
  height: 50%;
  border-radius: 20px;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(0, 255, 170, 0.22), transparent 65%);
  pointer-events: none;
  opacity: 0.9;
}

.pkg-compare__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(1, 65, 28, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #f0faf4 100%);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(0, 255, 170, 0.1),
    0 12px 32px rgba(1, 65, 28, 0.12);
}

.pkg-compare__left,
.pkg-compare__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pkg-compare__count {
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 750;
}

.pkg-dialog {
  width: min(960px, calc(100vw - 2rem));
  border-radius: 20px;
  border: 1px solid rgba(1, 65, 28, 0.15);
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, #fff 0%, #f7fdfa 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.pkg-dialog::backdrop {
  background: rgba(2, 24, 14, 0.55);
  backdrop-filter: blur(4px);
}

.pkg-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pkg-dialog__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.pkg-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.pkg-compare-table th,
.pkg-compare-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.pkg-compare-table th {
  background: rgba(1, 65, 28, 0.06);
  font-weight: 900;
}

.legacy-packages {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.01);
  scroll-margin-top: 6rem;
}

.legacy-packages__summary {
  cursor: pointer;
  font-weight: 900;
}

.legacy-packages__note {
  margin: 0.65rem 0 0;
}

/* Legacy / fallback package card (non-market markup) */
.pkg-engine:not(.pkg-engine--market) .pkg-toolbar {
  display: grid;
  gap: 0.7rem;
}

.pkg-engine:not(.pkg-engine--market) .pkg-toolbar__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.pkg-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(1, 65, 28, 0.2);
  background: rgba(1, 65, 28, 0.06);
  color: var(--flag-green);
  font-size: 0.78rem;
}

.pkg-card__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  color: var(--text-heading);
}

@media (min-width: 720px) {
  .pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1160px) {
  .pkg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pkg-engine:not(.pkg-engine--market) .pkg-toolbar__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Speed test: optional provider override (collapsed by default) --- */
.tool-optional-disclosure {
  margin: 0.35rem 0 0.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(1, 65, 28, 0.22);
  background: rgba(1, 65, 28, 0.03);
  padding: 0.35rem 0.55rem 0.45rem;
}

.tool-optional-disclosure > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  user-select: none;
}

.tool-optional-disclosure > summary::-webkit-details-marker {
  display: none;
}

.tool-optional-disclosure__body {
  margin-top: 0.45rem;
}

.tool-optional-disclosure--compact {
  margin-top: 0.25rem;
  padding: 0.3rem 0.45rem 0.35rem;
}

/* --- Provider profile pages (hub layout) --- */
.provider-toc {
  margin: 0.75rem 0 1.25rem;
  padding: 0.65rem 0.85rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.provider-toc__title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}

.provider-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.provider-toc__list a {
  font-weight: 700;
  font-size: 0.92rem;
}

.provider-coverage-list,
.provider-help-links,
.provider-related-list,
.provider-contact-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.provider-help-links a,
.provider-related-list a {
  font-weight: 700;
}

.provider-related__meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.provider-faq {
  margin: 0;
}

.provider-faq dt {
  margin: 0.75rem 0 0.2rem;
  font-weight: 800;
  color: var(--text-heading);
}

.provider-faq dt:first-child {
  margin-top: 0;
}

.provider-faq dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.provider-office-li {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.provider-office-list {
  padding-left: 0;
}

.provider-office {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.012);
}

.provider-office__title {
  font-weight: 800;
  color: var(--text-heading);
  font-size: 1.02rem;
}

.provider-office__sub {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.provider-office__row {
  margin: 0.2rem 0 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.provider-office__k {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

/* --- Trust tiers + marketplace smart assist (shared) --- */
.trust-strip {
  margin: 0 0 0.5rem;
}

.trust-strip--package {
  padding: 0.35rem 0 0;
  border-bottom: 1px dashed rgba(1, 65, 28, 0.12);
  margin-bottom: 0.55rem;
}

.trust-strip--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.trust-strip__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(1, 65, 28, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-heading);
  line-height: 1.2;
}

.trust-badge--verified-official {
  border-color: rgba(2, 132, 199, 0.35);
  background: rgba(2, 132, 199, 0.08);
  color: #075985;
}

.trust-badge--verified-source {
  border-color: rgba(22, 101, 52, 0.35);
  background: rgba(0, 255, 140, 0.1);
  color: #01411c;
}

.trust-badge--source-verified {
  border-color: rgba(15, 118, 110, 0.45);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(0, 255, 140, 0.12));
  color: #0f766e;
}

.trust-badge--community {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
}

.trust-badge--experimental {
  border-color: rgba(127, 29, 29, 0.35);
  background: rgba(254, 202, 202, 0.25);
  color: #7f1d1d;
}

.trust-badge--catalog {
  border-color: rgba(71, 85, 105, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
}

.trust-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.trust-meta__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.trust-meta__item--inline {
  font-size: 0.68rem;
}

.trust-meta__k {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-meta__v {
  font-weight: 700;
  color: var(--text-heading);
}

.trust-meta__link {
  font-weight: 800;
  color: var(--flag-green);
  text-decoration: none;
}

.trust-meta__link:hover {
  text-decoration: underline;
}

.pkg-smartassist {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(1, 65, 28, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.pkg-smartassist__label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flag-green);
}

.pkg-smartassist__hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.pkg-smartassist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pkg-smartassist__chip {
  appearance: none;
  border: 1px solid rgba(1, 65, 28, 0.16);
  background: #fff;
  color: var(--text-heading);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.pkg-smartassist__chip:hover,
.pkg-smartassist__chip:focus-visible {
  border-color: rgba(0, 160, 100, 0.4);
  background: rgba(0, 255, 140, 0.06);
  outline: none;
}

.provider-trust-banner {
  margin: 0.75rem 0 1rem;
}

.provider-trust-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-heading);
}

.provider-trust-banner__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.provider-intel__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .provider-intel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .provider-intel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.provider-intel-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card);
}

.provider-intel-card--best {
  border-color: rgba(1, 90, 50, 0.22);
  background: linear-gradient(180deg, rgba(0, 255, 140, 0.06) 0%, var(--bg-card) 55%);
}

.provider-intel-card__h {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-heading);
}

.provider-intel-card__p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.provider-intel-best {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.9rem;
}

.provider-intel__disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.provider-office__trust {
  margin: 0.35rem 0 0.45rem;
}

.provider-pkg-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-pkg-row {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.provider-pkg-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.provider-pkg-row .trust-strip--package {
  border-bottom: none;
  margin-bottom: 0.35rem;
  padding-top: 0;
}

.provider-pkg-row__name {
  font-weight: 800;
  color: var(--text-heading);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .pkg-dialog {
    width: min(960px, calc(100vw - 1rem));
    max-height: min(85vh, 720px);
    overflow: auto;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  }
}

[dir="rtl"] .trust-meta,
[dir="rtl"] .trust-strip--inline,
[dir="rtl"] .pkg-smartassist__row {
  flex-direction: row-reverse;
}

[dir="rtl"] .provider-intel-best {
  padding-right: 1.1rem;
  padding-left: 0;
}

/* Home: location prompt + nearest servers list (simple, small block) */
.tool-hero-location-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.4rem auto 0;
  padding: 0.45rem 0.7rem;
  max-width: 38rem;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.tool-hero-location-banner__btn {
  border-radius: 999px;
  border: 2px solid #15803d;
  background: #ffffff;
  color: #14532d;
  font-weight: 900;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.tool-hero-location-banner__btn:hover {
  background: #f0fdf4;
}

.tool-hero-nearest {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 240px;
}

.tool-hero-nearest__item {
  padding: 0.3rem 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(1, 65, 28, 0.12);
  background: rgba(240, 253, 244, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
  color: #14532d;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.tool-hero-nearest__item--active {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.tool-hero-nearest__city {
  font-weight: 750;
  color: #166534;
  opacity: 0.95;
}

.tool-hero-device-line {
  font-weight: 900;
  color: #14532d;
  font-size: 0.8rem;
  text-align: center;
  margin: 0.1rem 0 0.35rem;
}

.tool-hero-abroad-note {
  margin: 0.35rem auto 0;
  max-width: 40rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  color: #334155;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(1, 65, 28, 0.1);
}

.tool-hero-morph__status {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: #14532d;
  text-align: center;
}

.tool-hero-morph__progress {
  width: min(280px, 88vw);
  height: 8px;
  margin: 0.35rem auto 0;
  border-radius: 999px;
  background: rgba(1, 65, 28, 0.1);
  overflow: hidden;
}

.tool-hero-morph__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14532d, #22c55e);
  transition: width 0.2s ease;
}

.tool-hero-idle--speed-active.tool-hero-idle--finished .tool-hero-morph__live {
  display: none !important;
}
