/*
Theme Name: Mouse Tester Online
Theme URI: https://mousetesteronline.com
Author: Mouse Tester Online
Author URI: https://mousetesteronline.com
Description: Ultra-lightweight custom theme for mousetesteronline.com matching the exact Google Stitch export design system (#0a0a0c background, #131316 card surfaces, #232326 borders, Geist typography, 16px radius, blueprint dashed-zones, multi-tonal badges). Features 13 live embedded widgets on the homepage, Redragon & Attack Shark diagnostic interpretive frameworks, and optimized Core Web Vitals performance.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mouse-tester-online
Tags: mouse-testing, seo-optimized, stitch-design, dark-mode, diagnostic-tools
*/

/* ==========================================================================
   CSS Custom Properties — Stitch Exact Design Tokens (DESIGN.md & code.html)
   ========================================================================== */

:root {
  /* Surfaces */
  --color-bg-primary: #0a0a0c;
  --color-surface: #131316;
  --color-surface-dim: #131316;
  --color-surface-bright: #39393c;
  --color-surface-lowest: #0e0e11;
  --color-surface-low: #1b1b1e;
  --color-surface-container: #1f1f22;
  --color-surface-high: #2a2a2d;
  --color-surface-highest: #353438;

  /* Borders & Outlines */
  --color-border: #232326;
  --color-outline: #8c909f;
  --color-outline-variant: #424754;
  --color-outline-variant-30: rgba(66, 71, 84, 0.3);
  --color-outline-variant-20: rgba(66, 71, 84, 0.2);

  /* Typography Colors */
  --color-text-primary: #ffffff;
  --color-on-surface: #e4e1e5;
  --color-on-surface-variant: #c2c6d6;
  --color-text-muted: #8c909f;

  /* Brand Accents */
  --color-primary: #adc6ff;
  --color-primary-container: #4d8eff;
  --color-secondary: #4edea3;
  --color-secondary-fixed: #6ffbbe;
  --color-tertiary: #ddb7ff;

  /* Multi-tonal Badge & Highlight Palette */
  --color-blue: #60a5fa;
  --color-blue-bg: rgba(59, 130, 246, 0.2);
  --color-green: #4ade80;
  --color-green-bg: rgba(34, 197, 94, 0.2);
  --color-orange: #fb923c;
  --color-orange-bg: rgba(249, 115, 22, 0.2);
  --color-purple: #c084fc;
  --color-purple-bg: rgba(168, 85, 247, 0.2);
  --color-yellow: #facc15;
  --color-yellow-bg: rgba(234, 179, 8, 0.2);
  --color-teal: #2dd4bf;
  --color-teal-bg: rgba(20, 184, 166, 0.2);
  --color-indigo: #818cf8;
  --color-indigo-bg: rgba(99, 102, 241, 0.2);
  --color-cyan: #22d3ee;
  --color-cyan-bg: rgba(6, 182, 212, 0.2);
  --color-pink: #f472b6;
  --color-pink-bg: rgba(236, 72, 153, 0.2);
  --color-violet: #a78bfa;
  --color-violet-bg: rgba(139, 92, 246, 0.2);
  --color-red: #f87171;
  --color-red-bg: rgba(239, 68, 68, 0.2);

  /* Typography Specs (Geist) */
  --font-geist: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist', 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max: 1200px;
  --gutter: 24px;
  --margin-x: 40px;
  --margin-x-mobile: 16px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;

  /* Border Radii */
  --radius-card: 16px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-geist);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-on-surface);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

/* Container */
.max-w-container-max {
  max-width: var(--container-max);
}

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex-grow: 1;
}

/* ==========================================================================
   Stitch Class Utilities (Matching code.html)
   ========================================================================== */

.diagnostic-card {
  background-color: #131316;
  border: 1px solid #232326;
  border-radius: 16px;
}

.canvas-bg {
  background-image: radial-gradient(#1c1c20 1px, transparent 1px);
  background-size: 24px 24px;
}

.dashed-zone {
  border: 1px dashed #424754;
  border-radius: 8px;
  background-color: #0a0a0c;
}

/* Typography Utility Classes */
.font-headline-xl {
  font-family: var(--font-geist);
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-headline-lg {
  font-family: var(--font-geist);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.font-headline-md {
  font-family: var(--font-geist);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.font-body-lg {
  font-family: var(--font-geist);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.font-body-sm {
  font-family: var(--font-geist);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.font-label-caps {
  font-family: var(--font-geist);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-mono-metrics {
  font-family: var(--font-geist);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: rgba(19, 19, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(66, 71, 84, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .header-container {
    padding: 16px 40px;
  }
}

.dropdown-menu {
  display: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================================================================
   Hero & Buttons Tracker Vector Hotspot Overlays (Mousetester.io exact style)
   ========================================================================== */

.tracker-btn-left { border-bottom: 2px solid #3b82f6 !important; }
.tracker-btn-middle { border-bottom: 2px solid #22c55e !important; }
.tracker-btn-right { border-bottom: 2px solid #f97316 !important; }
.tracker-btn-back { border-bottom: 2px solid #a855f7 !important; }
.tracker-btn-forward { border-bottom: 2px solid #ec4899 !important; }

.tracker-counter-box--active {
  transform: scale(1.04);
  transition: transform 100ms ease;
}

/* Vector Mouse SVG Path Button Highlights */
.mouse-btn-path {
  transition: fill 150ms ease, stroke 150ms ease, filter 150ms ease;
}

#hotspot-left.hotspot--active {
  fill: rgba(59, 130, 246, 0.55) !important;
  stroke: #60a5fa !important;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.9));
}

#hotspot-right.hotspot--active {
  fill: rgba(249, 115, 22, 0.55) !important;
  stroke: #fb923c !important;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.9));
}

#hotspot-middle.hotspot--active {
  fill: rgba(34, 197, 94, 0.7) !important;
  stroke: #4ade80 !important;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.9));
}

#hotspot-back.hotspot--active {
  fill: rgba(168, 85, 247, 0.6) !important;
  stroke: #c084fc !important;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.9));
}

#hotspot-forward.hotspot--active {
  fill: rgba(236, 72, 153, 0.6) !important;
  stroke: #f472b6 !important;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.9));
}

/* ==========================================================================
   13-Tool Grid System (4 Columns Desktop, 2 Tablet, 1 Mobile)
   ========================================================================== */

.tool-grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .tool-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .tool-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tool Card Styling */
.tool-card {
  display: flex;
  flex-direction: column;
  background-color: #131316;
  border: 1px solid #232326;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: rgba(173, 198, 255, 0.35);
  background-color: #17171b;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #1b1b1e;
  border: 1px solid #2d2d30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-card__icon {
  transform: scale(1.08);
}

.tool-card__name {
  font-family: var(--font-geist);
  font-size: 18px;
  font-weight: 700;
  color: #e4e1e5;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tool-card__desc {
  font-family: var(--font-geist);
  font-size: 13px;
  color: #8c909f;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tool-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #adc6ff;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-top: auto;
}

.tool-card:hover .tool-card__arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* General Utility Grids for sections below tools */
.mto-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

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

.mto-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .mto-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .mto-grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.h-64 {
  height: 256px;
}

/* Card Badge Pill Utilities */
.badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.badge-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-yellow { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.badge-teal { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.badge-indigo { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.badge-pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.badge-violet { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}

.status-pill--green {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pill--yellow {
  background: rgba(234, 179, 8, 0.1);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-pill--red {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Form Inputs inside Cards */
.stitch-input {
  width: 100%;
  background-color: #0a0a0c;
  border: 1px solid #232326;
  border-radius: 8px;
  padding: 8px 12px;
  color: #e4e1e5;
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms ease;
}

.stitch-input:focus {
  border-color: #3b82f6;
}

/* Hero section: desktop = horizontal row, mobile = vertical stack */
/* Hero section: 4 side-by-side panels on desktop */
#hero-tracker {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: visible;
  position: relative;
  padding: 20px !important;
}

/* Mobile & Tablet: stack vertically */
@media (max-width: 1024px) {
  #hero-tracker {
    flex-direction: column !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  /* Vertical dividers: hide on mobile */
  #hero-tracker > div[style*="width:1px"] {
    display: none !important;
  }

  /* All 4 panels: full width on mobile */
  #hero-tracker > div:not([style*="width:1px"]) {
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
  }

  /* Center-align the hero section title on mobile */
  #hero-section-title {
    text-align: center !important;
  }
}


/* Style scrollbar for Event Log */
#hero-log-list {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
#hero-log-list::-webkit-scrollbar {
  width: 4px; /* Slim clickable vertical bar */
}
#hero-log-list::-webkit-scrollbar-track {
  background: transparent;
}
#hero-log-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
#hero-log-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #0e0e11;
  border-top: 1px solid rgba(66, 71, 84, 0.2);
  margin-top: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .footer-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}


/* ==========================================================================
   Section 10 — Mouse Performance Hub (Topical Authority Grid)
   ========================================================================== */

#mouse-performance-hub {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(66, 71, 84, 0.15);
}

.perf-hub__header {
  text-align: center;
  margin-bottom: 32px;
}

.perf-hub__title {
  font-size: 28px;
  font-weight: 900;
  color: #e4e1e5;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.perf-hub__intro {
  font-size: 15px;
  color: #8c909f;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 12px;
}

.perf-hub__byline {
  font-size: 11px;
  color: #5a5e6e;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 3×3 cluster category grid */
.perf-hub__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

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

@media (min-width: 1024px) {
  .perf-hub__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual cluster card */
.cluster-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #131316;
  border: 1px solid rgba(66, 71, 84, 0.25);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.cluster-card:hover {
  border-color: rgba(173, 198, 255, 0.35);
  background: #17171b;
  transform: translateY(-2px);
}

.cluster-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cluster-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cluster-card__tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cluster-card__name {
  font-size: 15px;
  font-weight: 800;
  color: #e4e1e5;
  line-height: 1.3;
  margin: 0;
}

.cluster-card__desc {
  font-size: 12px;
  color: #8c909f;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.cluster-card__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.cluster-card:hover .cluster-card__cta {
  opacity: 1;
}

/* Cluster accent colours */
.cluster-a { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.cluster-b { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.cluster-c { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.cluster-d { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.cluster-e { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; }
.cluster-f { background: rgba(249, 115, 22, 0.12); color: #fb923c; }
.cluster-g { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.cluster-h { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
.cluster-i { background: rgba(236, 72, 153, 0.12); color: #f472b6; }

/* "View all guides" CTA */
.perf-hub__footer {
  text-align: center;
  margin-top: 8px;
}

.perf-hub__all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(173, 198, 255, 0.08);
  border: 1px solid rgba(173, 198, 255, 0.2);
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  color: #adc6ff;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.perf-hub__all-btn:hover {
  background: rgba(173, 198, 255, 0.14);
  border-color: rgba(173, 198, 255, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   EEAT Byline — reusable freshness/authority strip
   Used on: homepage hub (Section 10) + every blog post (single.php)
   ========================================================================== */

.eeat-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #5a5e6e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

.eeat-byline__icon {
  font-size: 13px;
  text-transform: none; /* prevent emoji uppercasing side-effects */
}

.eeat-byline__sep {
  color: #3a3e4e;
}

.eeat-byline time {
  font-style: normal;
  color: inherit;
}

/* ==========================================================================
   Responsive Blog & Category Grid
   Used on: home.php + archive.php + category.php
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

/* ==========================================================================
   Standard Page container & content styling (About Us, Contact, etc.)
   ========================================================================== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.breadcrumbs .container {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Blog Archive & Single Post Containers */
.site-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

@media (min-width: 1024px) {
  .site-archive-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.single-post-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

@media (min-width: 1024px) {
  .single-post-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.content-section {
  color: #c1c8d9;
}

.content-section h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  color: #e4e1e5;
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #e4e1e5;
  margin: 2em 0 0.8em;
  line-height: 1.3;
}

.content-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #adc6ff;
  margin: 1.6em 0 0.6em;
  line-height: 1.4;
}

.content-section p {
  margin: 0 0 1.5em;
  line-height: 1.8;
  font-size: 16px;
}

.content-section a {
  color: #adc6ff;
  text-decoration: underline;
}

.content-section a:hover {
  color: #ffffff;
}

.content-section ul, .content-section ol {
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}

.content-section li {
  margin-bottom: 0.6em;
  line-height: 1.8;
  font-size: 16px;
}

.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14px;
}

.content-section th, .content-section td {
  padding: 12px 16px;
  border: 1px solid rgba(66, 71, 84, 0.3);
  text-align: left;
}

.content-section th {
  background: rgba(173, 198, 255, 0.05);
  font-weight: 700;
  color: #e4e1e5;
}

.content-section td {
  color: #c1c8d9;
}

.content-section blockquote {
  border-left: 4px solid #adc6ff;
  margin: 2em 0;
  padding: 16px 24px;
  background: rgba(173, 198, 255, 0.03);
  border-radius: 0 8px 8px 0;
}

/* Bottom Breadcrumbs Alignment */
.bottom-breadcrumbs .breadcrumbs {
  background: transparent;
  padding: 0;
  border-top: none;
}

.bottom-breadcrumbs .breadcrumbs .container {
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

/* Footer Centered Links Row */
.footer-links-flex {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-links-flex {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
  }
}

/* ==========================================================================
   MOBILE & RESPONSIVE SYSTEM
   Breakpoints: sm=480px  md=768px  lg=1024px
   ========================================================================== */

/* ── Desktop Nav ── */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1350px) {
  .desktop-nav {
    gap: 12px;
  }
  .desktop-nav a {
    font-size: 14px !important;
  }
}


/* ── Hamburger Button ── */
#mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.ham-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #c2c6d6;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 200ms ease, background-color 200ms ease;
}

/* ── Mobile Drawer ── */
#mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100dvh;
  background: #0e0e11;
  border-left: 1px solid #232326;
  box-shadow: -12px 0 40px rgba(0,0,0,0.7);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#mobile-menu-drawer.is-open {
  transform: translateX(0);
}

#mobile-menu-drawer-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 20px;
  border-bottom: 1px solid #232326;
  margin-bottom: 8px;
}

.mobile-nav-header button#mobile-menu-close {
  margin-left: auto;
  background: #1b1b1e;
  border: 1px solid #424754;
  border-radius: 8px;
  color: #8c909f;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1.5;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  color: #c2c6d6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(173,198,255,0.07);
  color: #ffffff;
}

.mobile-nav-link.active {
  background: rgba(111,251,190,0.08);
  color: #6ffbbe;
  font-weight: 700;
}

.mobile-nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Backdrop ── */
#mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

#mobile-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Switch desktop ↔ mobile nav at 1200px ── */
@media (max-width: 1200px) {
  .desktop-nav {
    display: none !important;
  }
  #mobile-menu-toggle {
    display: flex !important;
  }
}

/* ==========================================================================
   Homepage Hero — Stack panels vertically on mobile
   ========================================================================== */
@media (max-width: 767px) {
  #hero-tracker {
    flex-direction: column !important;
    gap: 16px !important;
    overflow-x: hidden !important;
  }

  /* Vertical dividers: hide on mobile */
  #hero-tracker > div[style*="width:1px;background"] {
    display: none !important;
  }

  /* Mouse SVG container: reduce height */
  #hero-tracker div[style*="height:260px"] {
    height: 180px !important;
    max-height: 180px !important;
  }

  /* Movement tracker canvas */
  #widget-move-area {
    height: 160px !important;
    max-height: 160px !important;
  }

  /* Make all flex panels full width */
  #hero-tracker > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }

  /* Instruction step strip — column on mobile */
  section[style*="flex-direction:row;justify-content:space-around"] {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
  }

  /* Divider lines in instruction strip: hide */
  section[style*="flex-direction:row;justify-content:space-around"] > div[style*="width:1px"] {
    display: none !important;
  }
}

/* ==========================================================================
   General Layout — Prevent overflow & improve padding
   ========================================================================== */
@media (max-width: 767px) {
  /* H1 font scaling */
  .font-headline-xl {
    font-size: clamp(22px, 6.5vw, 36px) !important;
    line-height: 1.2 !important;
  }

  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Footer bottom bar — stack */
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
  }

}

/* ==========================================================================
   Diagnostic Cards — auto height on very small screens
   ========================================================================== */
@media (max-width: 480px) {
  .diagnostic-card {
    height: auto !important;
    min-height: 200px;
  }

  .tool-grid-container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   Single Tool Page — Table overflow & rule-out grid
   ========================================================================== */
@media (max-width: 640px) {
  .tp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tp-table {
    min-width: 460px;
  }

  .tp-rule-out {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Global Safety — prevent horizontal scroll on all pages
   ========================================================================== */
@media (max-width: 1023px) {
  html, body, .site-container {
    overflow-x: hidden;
    max-width: 100%;
  }

  img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
  }

  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}



/* ==========================================================================
   Polylang Language Switcher Dropdown Styles
   ========================================================================== */
.mto-lang-dropdown {
  position: relative;
  display: inline-block;
}

.mto-lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #424754;
  font-size: 13px;
  font-weight: 600;
  color: #c2c6d6;
  background: #131316;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 150ms ease;
  line-height: 1;
}

.mto-lang-dropdown-trigger:hover {
  color: #ffffff;
  border-color: #6b7280;
  background: #1b1b1e;
}

.mto-lang-flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

.mto-lang-chevron {
  width: 8px;
  height: 8px;
  color: #8c909f;
  transition: transform 150ms ease;
}

/* Hover effects for trigger */
.mto-lang-dropdown:hover .mto-lang-chevron,
.mto-lang-dropdown.active .mto-lang-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Dropdown Menu container */
.mto-lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #131316;
  border: 1px solid #32353f;
  border-radius: 12px;
  padding: 6px;
  min-width: 120px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: mtoDropdownFadeIn 150ms ease forwards;
}

/* Display menu on hover on desktop */
.mto-lang-dropdown:hover .mto-lang-dropdown-menu,
.mto-lang-dropdown.active .mto-lang-dropdown-menu {
  display: block;
}

.mto-lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #a0aec0;
  text-decoration: none;
  transition: all 150ms ease;
  white-space: nowrap;
}

.mto-lang-dropdown-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mto-lang-dropdown-item.active {
  color: #adc6ff;
  background: rgba(173, 198, 255, 0.08);
}

@keyframes mtoDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

