/* ================================================================
   INNER PAGES — shared styles for support hub, setup guides
   ================================================================ */

/* ── Page hero / header ──────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 48px) 0 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(28,99,213,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.breadcrumb-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28,99,213,0.25);
  border: 1px solid rgba(28,99,213,0.4);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  line-height: 1.7;
}
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.page-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.page-meta-item svg { color: #60a5fa; }

/* ── Layout ─────────────────────────────────────────────────── */
.inner-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding: 52px 0 80px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.inner-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.sidebar-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-nav a:hover {
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
  border-left-color: rgba(28,99,213,0.3);
}
.sidebar-nav a.active {
  color: var(--blue);
  background: var(--blue-light);
  border-left-color: var(--blue);
  font-weight: 600;
}
.sidebar-nav a svg { color: var(--blue); flex-shrink: 0; }
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.sidebar-cta {
  margin-top: 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  line-height: 1.5;
}
.sidebar-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}
.sidebar-cta a:hover { background: #1d4ed8; text-decoration: none; }

/* ── Main content ─────────────────────────────────────────────── */
.inner-main h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  margin-top: 48px;
  letter-spacing: -0.01em;
}
.inner-main h2:first-child { margin-top: 0; }
.inner-main h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  margin-top: 32px;
}
.inner-main p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.inner-main ul, .inner-main ol {
  padding-left: 20px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ── Method cards (overview) ─────────────────────────────────── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.method-card:hover {
  border-color: rgba(28,99,213,0.3);
  box-shadow: 0 8px 30px rgba(28,99,213,0.1);
  transform: translateY(-2px);
}
.method-card--featured {
  border-color: rgba(28,99,213,0.25);
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}
.method-card--featured::before {
  content: 'Recommended';
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}
.method-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
}
.method-icon svg { width: 22px; height: 22px; }
.method-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.method-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}
.method-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(28,99,213,0.08);
  color: var(--blue);
  border: 1px solid rgba(28,99,213,0.15);
}
.method-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.method-link:hover { text-decoration: none; gap: 9px; }

/* ── Step cards (tutorials) ──────────────────────────────────── */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  position: relative;
  padding-bottom: 32px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  counter-increment: step;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(28,99,213,0.35);
}
.step-num::before { content: counter(step); }
.step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(28,99,213,0.25), rgba(28,99,213,0.05));
}
.step:last-child::before { display: none; }
.step-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 0;
}
.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.step-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.65;
}
.step-body p + p { margin-top: 8px; }
.step-note {
  margin-top: 12px;
  background: rgba(28,99,213,0.05);
  border-left: 3px solid var(--blue);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.83rem;
  color: var(--text-mid);
}
.step-note strong { color: var(--blue); }
.step-img {
  display: inline-block;
  margin: 10px 10px 10px 0;
  vertical-align: top;
  max-width: 200px;
}
.step-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: zoom-in;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-img img:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: scale(1.04);
}

/* ── Info / warning boxes ────────────────────────────────────── */
.info-box {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border: 1px solid;
}
.info-box--blue {
  background: rgba(28,99,213,0.05);
  border-color: rgba(28,99,213,0.2);
  color: var(--navy);
}
.info-box--green {
  background: rgba(16,185,129,0.05);
  border-color: rgba(16,185,129,0.2);
  color: #064e3b;
}
.info-box--amber {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.25);
  color: #78350f;
}
.info-box-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.info-box p { color: inherit; margin: 0; font-size: 0.88rem; line-height: 1.6; }

/* ── Support hub grid ────────────────────────────────────────── */
.hub-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.hub-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hub-intro p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.hub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 24px auto 0;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.hub-search:focus-within { border-color: var(--blue); }
.hub-search svg { color: var(--text-muted); flex-shrink: 0; }
.hub-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.hub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}
.hub-card:hover {
  box-shadow: 0 10px 40px rgba(28,99,213,0.12);
  transform: translateY(-3px);
  border-color: rgba(28,99,213,0.25);
  text-decoration: none;
}
.hub-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
}
.hub-card-icon--blue   { background: rgba(28,99,213,0.1); color: var(--blue); }
.hub-card-icon--green  { background: rgba(16,185,129,0.1); color: #059669; }
.hub-card-icon--purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.hub-card-icon--amber  { background: rgba(245,158,11,0.1); color: #d97706; }
.hub-card-icon--navy   { background: rgba(10,25,80,0.08); color: var(--navy); }
.hub-card-icon--teal   { background: rgba(20,184,166,0.1); color: #0d9488; }
.hub-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.hub-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hub-card-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hub-card-links a {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hub-card-links a:hover { text-decoration: underline; }
.hub-card-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ── Contact strip on inner pages ────────────────────────────── */
.inner-contact {
  background: var(--navy);
  padding: 52px 0;
  text-align: center;
  margin-top: 0;
}
.inner-contact h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.inner-contact p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 28px;
}
.contact-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.contact-option--chat {
  background: var(--blue);
  color: #fff;
}
.contact-option--chat:hover { background: #1d4ed8; text-decoration: none; }
.contact-option--whatsapp {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.contact-option--whatsapp:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.contact-option--phone {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}
.contact-option--phone:hover { color: #fff; text-decoration: none; }

/* ── Footer chat link ────────────────────────────────────────── */
.footer-chat-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-chat-link svg { color: var(--green); }

/* ── Step Cards ──────────────────────────────────────────────── */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 32px;
}
.step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 5px;
}
.step-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
}
.step-body code {
  background: rgba(28,99,213,0.1);
  color: var(--blue);
  font-size: 0.82rem;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: monospace;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .inner-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 60px;
  }
  .inner-sidebar { position: static; }
  .method-grid { grid-template-columns: 1fr; }

  /* Override inline-styled guide page grids (Mac, Android, iOS, Router, Fire TV) */
  div[style*="grid-template-columns:260px"],
  div[style*="grid-template-columns: 260px"],
  div[style*="grid-template-columns:240px"],
  div[style*="grid-template-columns: 240px"] {
    display: block !important;
  }
  div[style*="grid-template-columns:260px"] > div[style*="position:sticky"],
  div[style*="grid-template-columns: 260px"] > div[style*="position:sticky"],
  div[style*="grid-template-columns:240px"] > div[style*="position:sticky"],
  div[style*="grid-template-columns: 240px"] > div[style*="position:sticky"] {
    position: static !important;
    margin-bottom: 24px;
  }
  /* Make content area full width on mobile */
  div[style*="grid-template-columns:260px"] > div[style*="max-width:720px"],
  div[style*="grid-template-columns: 260px"] > div[style*="max-width:720px"],
  div[style*="grid-template-columns:240px"] > div[style*="max-width:720px"],
  div[style*="grid-template-columns: 240px"] > div[style*="max-width:720px"] {
    max-width: 100% !important;
  }
}
@media (max-width: 620px) {
  .page-hero h1 { font-size: 1.75rem; }
  .step { grid-template-columns: 38px 1fr; }
  .step-num { width: 34px; height: 34px; font-size: 0.85rem; }
  .step::before { left: 16px; }
  .hub-grid { grid-template-columns: 1fr; }
  .contact-options { flex-direction: column; align-items: stretch; }

  /* Mobile sidebar card sizing */
  div[style*="grid-template-columns:260px"] > div[style*="position:sticky"] > div,
  div[style*="grid-template-columns: 260px"] > div[style*="position:sticky"] > div {
    width: 100% !important;
  }
}

/* ── Knowledge Base tabs & section headings ──────────────────── */
.kb-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.kb-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.kb-tab--active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.kb-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.kb-section-break {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}
.kb-section-break .kb-section-heading {
  margin-top: 0;
}
.kb-card[style*="display:none"],
.kb-card[style*="display: none"] {
  display: none !important;
}
.kb-grid { position: relative; }

/* ================================================================
   ROUTER PAGES — layout, sidebar, protocol cards
   ================================================================ */

/* ── Router layout: sidebar + content ───────────────────────── */
.router-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}
@media(max-width:900px){
  .router-layout { grid-template-columns: 1fr; }
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.router-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display:flex; flex-direction:column; gap:16px; }
@media(max-width:900px){ .router-sidebar { position:static; } }

.router-sidebar-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.router-sidebar-header {
  background: var(--navy);
  padding: 14px 18px;
}
.router-sidebar-header a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.router-sidebar-header a:hover { color: #fff; }
.router-sidebar-nav { padding: 8px; }
.rsnav-router { border-radius: 8px; overflow: hidden; margin-bottom: 2px; }
.rsnav-router-link {
  display: block;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.rsnav-router-link:hover { background: #f3f4f6; color: var(--navy); }
.rsnav-active > .rsnav-router-link { background: var(--navy); color: #fff; border-radius: 8px 8px 0 0; }
.rsnav-protocols {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rsnav-proto {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background 0.15s;
}
.rsnav-proto:hover { background: #fff; color: var(--navy); }
.rsnav-proto-active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.rsnav-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rsnav-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.rsnav-rec { background: #dbeafe; color: #1c63d5; }
.rsnav-ded { background: #fee2e2; color: #8b1a1a; }

.router-sidebar-help,
.router-sidebar-preconf { padding: 18px; }
.router-sidebar-help h4,
.router-sidebar-preconf h4 { color: var(--navy); font-size: 0.9rem; margin: 0 0 8px; }
.router-sidebar-help p,
.router-sidebar-preconf p { color: #6b7280; font-size: 0.82rem; line-height: 1.5; margin: 0 0 14px; }
.router-sidebar-cta {
  display: block;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.router-sidebar-cta:hover { opacity: 0.85; }
.router-sidebar-cta-amber { background: #d97706; }

/* ── WP guide content ────────────────────────────────────────── */
.router-content { min-width: 0; }
.router-wp-content { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px 32px; }
.router-wp-content h2 { color: var(--navy); font-size: 1.25rem; margin: 24px 0 10px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.router-wp-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.router-wp-content h3 { color: #1f2937; font-size: 1.05rem; margin: 20px 0 8px; font-weight: 700; }
.router-wp-content h4 { color: #374151; font-size: 0.95rem; margin: 16px 0 6px; font-weight: 700; }
.router-wp-content p { color: #374151; line-height: 1.75; margin: 0 0 14px; font-size: 0.95rem; }
.router-wp-content ul, .router-wp-content ol { color: #374151; line-height: 1.7; margin: 0 0 14px; padding-left: 24px; font-size: 0.95rem; }
.router-wp-content li { margin-bottom: 6px; }
.router-wp-content a { color: var(--blue); }
.router-wp-content a:hover { text-decoration: underline; }
.router-wp-content strong { color: #111827; }
.router-wp-content code,
.router-wp-content pre { background: #f3f4f6; border-radius: 5px; font-family: monospace; font-size: 0.88rem; }
.router-wp-content code { padding: 2px 6px; }
.router-wp-content pre { padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; }
.router-wp-content table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 0.9rem; }
.router-wp-content th { background: #f3f4f6; color: var(--navy); padding: 10px 12px; text-align: left; border: 1px solid #e5e7eb; }
.router-wp-content td { padding: 9px 12px; border: 1px solid #e5e7eb; color: #374151; }

/* ── WP structural divs ─────────────────────────────────────── */
.router-wp-wrap { /* the #mainwrapper equivalent */ }
.router-intro {
  background: #f0f9ff;
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}
.router-steps { display:flex; flex-direction:column; gap:0; }
.router-step { border-bottom: 1px solid #f3f4f6; padding-bottom: 16px; margin-bottom: 8px; }
.router-step:last-child { border-bottom: none; }

/* ── Protocol card grid (hub pages) ─────────────────────────── */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.proto-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.proto-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(28,99,213,0.12);
  transform: translateY(-2px);
}
.proto-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  align-self: flex-start;
  text-transform: uppercase;
}
.proto-card-title { color: var(--navy); font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.proto-card-desc { color: #6b7280; font-size: 0.87rem; line-height: 1.55; flex: 1; margin: 0 0 14px; }
.proto-card-rec { font-size: 0.75rem; font-weight: 700; color: #1c63d5; background: #dbeafe; padding: 3px 10px; border-radius: 20px; align-self: flex-start; margin-bottom: 8px; }
.proto-card-ded { font-size: 0.75rem; font-weight: 700; color: #8b1a1a; background: #fee2e2; padding: 3px 10px; border-radius: 20px; align-self: flex-start; margin-bottom: 8px; }
.proto-card-cta { color: var(--blue); font-weight: 700; font-size: 0.87rem; margin-top: auto; }

/* ── Router overview grid (master page) ──────────────────────── */
.router-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.router-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.router-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(28,99,213,0.1);
  transform: translateY(-2px);
}
.router-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.router-card-icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
}
.router-card-name { color: var(--navy); font-size: 1.1rem; font-weight: 800; margin: 0; }
.router-card-desc { color: #6b7280; font-size: 0.87rem; line-height: 1.6; flex: 1; margin: 0 0 18px; }
.router-card-cta {
  display: block;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.87rem;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.15s;
}
.router-card-cta:hover { background: var(--blue); }

/* ── Config widget ───────────────────────────────────────────── */
.cfg-widget { /* inherits background from parent dark box */ }

/* ── Info box (WireGuard notice etc.) ───────────────────────── */
.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid;
  margin-bottom: 20px;
}
.info-box > div > *:first-child { margin-top: 0; }
.info-box strong { font-size: 0.95rem; font-weight: 700; display: block; margin-bottom: 4px; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  max-width: 600px;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  opacity: 0.75;
}
.lightbox-close:hover { opacity: 1; }


/* ══════════════════════════════════════════════════════
   ALL GUIDES nav item
   ══════════════════════════════════════════════════════ */
.dd-item--allguides { border-top: 1px solid #f0f0f5; margin-top: 4px; padding-top: 4px; }

/* ══════════════════════════════════════════════════════
   /setup/ HUB PAGE — device card grid
   ══════════════════════════════════════════════════════ */
.setup-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.setup-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  position: relative;
}
.setup-card:hover {
  box-shadow: 0 6px 28px rgba(30,58,95,0.10);
  border-color: #c7d5ee;
  transform: translateY(-2px);
}
.setup-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.setup-card-body { flex: 1; min-width: 0; }
.setup-card-title { font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.setup-card-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.setup-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 2px 9px;
}
.setup-card-desc { font-size: 0.84rem; color: #6b7280; line-height: 1.55; margin: 0; }
.setup-card-arrow {
  font-size: 1.1rem;
  color: var(--blue);
  align-self: center;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}
.setup-card:hover .setup-card-arrow { opacity: 1; transform: translateX(3px); }

/* ══════════════════════════════════════════════════════
   LINUX / protocol sidebar
   ══════════════════════════════════════════════════════ */
.sidebar-back {
  display: block;
  font-size: 0.82rem;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 4px;
  font-weight: 600;
}
.sidebar-back:hover { text-decoration: underline; }
.sidebar-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 0; }
.sidebar-router-name {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0 16px 10px;
}
.proto-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}
.proto-link:hover { background: #f3f6fb; color: var(--blue); }
.proto-link.active { background: #eff4ff; color: var(--blue); border-left-color: var(--blue); }
.proto-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proto-badge {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: auto;
}
.proto-badge--best { background: #dbeafe; color: #1c4ed8; }
.proto-badge--ded  { background: #fee2e2; color: #b91c1c; }

/* Protocol card grid (Linux hub overview) */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
.proto-grid a.proto-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 14px;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.proto-grid a.proto-card:hover {
  box-shadow: 0 4px 18px rgba(30,58,95,0.09);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   WP content styling (generic alias)
   ══════════════════════════════════════════════════════ */
.wp-content { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px 32px; }
.wp-content h1 { color: var(--navy); font-size: 1.5rem; margin: 0 0 16px; }
.wp-content h2 { color: var(--navy); font-size: 1.2rem; margin: 24px 0 10px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.wp-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.wp-content h3 { color: #1f2937; font-size: 1.05rem; margin: 20px 0 8px; font-weight: 700; }
.wp-content h4 { color: #374151; font-size: 0.95rem; margin: 16px 0 6px; font-weight: 700; }
.wp-content p { color: #374151; line-height: 1.75; margin: 0 0 14px; font-size: 0.95rem; }
.wp-content ul, .wp-content ol { color: #374151; line-height: 1.7; margin: 0 0 14px; padding-left: 24px; font-size: 0.95rem; }
.wp-content li { margin-bottom: 6px; }
.wp-content a { color: var(--blue); }
.wp-content a:hover { text-decoration: underline; }
.wp-content strong { color: #111827; }
.wp-content code, .wp-content pre { background: #f3f4f6; border-radius: 5px; font-family: monospace; font-size: 0.88rem; }
.wp-content code { padding: 2px 6px; }
.wp-content pre { padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; }
.wp-content table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 0.9rem; }
.wp-content th { background: #f3f4f6; color: var(--navy); padding: 10px 12px; text-align: left; border: 1px solid #e5e7eb; }
.wp-content td { padding: 9px 12px; border: 1px solid #e5e7eb; color: #374151; }
.wp-content img { max-width: 100%; border-radius: 8px; height: auto; }
@media(max-width:640px){ .wp-content { padding: 18px 16px; } }

/* ══════════════════════════════════════════════════════
   WireGuard Dedicated IP notice
   ══════════════════════════════════════════════════════ */
.wg-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff8f8;
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.wg-notice-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }
.wg-notice strong { color: #b91c1c; display: block; margin-bottom: 4px; }
.wg-notice p { color: #374151; font-size: 0.9rem; line-height: 1.6; margin: 0; }
.wg-notice a { color: var(--blue); font-weight: 600; }

/* ══════════════════════════════════════════════════════
   Responsive tweaks for new pages
   ══════════════════════════════════════════════════════ */
@media(max-width:640px) {
  .setup-hub-grid { grid-template-columns: 1fr; }
  .proto-grid { grid-template-columns: 1fr 1fr; }
  .setup-card { flex-direction: column; }
  .setup-card-icon { width: 42px; height: 42px; }
}

/* KB hero search box — white placeholder on dark bg */
#kb-search::placeholder { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════════════
   /faq/ KNOWLEDGE BASE — hub, categories, articles
   ══════════════════════════════════════════════════════ */

/* Main hub: category card grid */
.faq-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.faq-cat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.16s, transform 0.16s, border-color 0.16s;
}
.faq-cat-card:hover { box-shadow: 0 5px 22px rgba(30,58,95,0.10); border-color: #c7d5ee; transform: translateY(-2px); }
.faq-cat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-cat-body { flex: 1; min-width: 0; }
.faq-cat-title { font-weight: 800; font-size: 0.97rem; color: var(--navy); margin-bottom: 2px; }
.faq-cat-count { font-size: 0.75rem; color: #9ca3af; font-weight: 500; margin-bottom: 6px; }
.faq-cat-desc { font-size: 0.82rem; color: #6b7280; line-height: 1.5; margin: 0; }
.faq-cat-arrow { font-size: 1rem; align-self: center; flex-shrink: 0; opacity: 0.4; transition: opacity 0.14s, transform 0.14s; }
.faq-cat-card:hover .faq-cat-arrow { opacity: 1; transform: translateX(3px); }

/* CTA bar at bottom of /faq/ hub */
.faq-hub-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1c63d5 100%);
  border-radius: 14px;
  padding: 22px 28px;
  color: #fff;
  flex-wrap: wrap;
}
.faq-hub-cta strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.faq-hub-cta span { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

/* Category hub: article list */
.faq-art-grid { display: flex; flex-direction: column; gap: 8px; }
.faq-art-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.13s, border-color 0.13s, transform 0.13s;
}
.faq-art-card:hover { background: #f5f8ff; border-color: #c7d5ee; transform: translateX(3px); }
.faq-art-card-title { flex: 1; }
.faq-art-card-arrow { color: var(--blue); opacity: 0.5; flex-shrink: 0; }
.faq-art-card:hover .faq-art-card-arrow { opacity: 1; }

/* Article page: two-column layout */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
@media(max-width:860px){ .faq-layout { grid-template-columns: 1fr; } }

/* Article sidebar */
.faq-sidebar { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--nav-h) + 16px); }
@media(max-width:860px){ .faq-sidebar { position: static; } }
.faq-sidebar-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 0; overflow: hidden; }
.faq-sidebar-heading {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9ca3af;
  padding: 10px 14px 8px;
}
.faq-sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px; font-size: 0.83rem; font-weight: 500;
  color: #374151; text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1.4;
}
.faq-sidebar-link:hover { background: #f3f6fb; color: var(--blue); }
.faq-sidebar-link.active { background: #eff4ff; color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.faq-sidebar-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Article content area */
.faq-article { min-width: 0; }
.faq-article-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #e5e7eb; flex-wrap: wrap;
}
.faq-back-link { color: var(--blue); font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.faq-back-link:hover { text-decoration: underline; }
.faq-still-help { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; flex-wrap: wrap; }
.faq-still-help strong { color: var(--navy); }
.faq-still-help a {
  color: var(--blue); font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--blue); border-radius: 8px; padding: 5px 12px;
}
.faq-still-help a:hover { background: var(--blue); color: #fff; }

/* ===== SUPPORT PAGE: HELP TOPICS GRID ===== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.topic-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.topic-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,.10);
  transform: translateY(-2px);
  color: var(--navy);
}
.topic-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topic-body {
  flex: 1;
  min-width: 0;
}
.topic-body strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.topic-body span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}
.topic-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.topic-card:hover .topic-arrow {
  color: var(--blue);
  transform: translateX(3px);
}
