/* Active Fibre — Pulse
   Bold tech / dark-mode network-operations aesthetic. Deep near-black
   canvas, glass panels, glowing red accent (real brand red, not an
   invented hue), live network-topology hero. A fourth distinct visual
   direction on this account — unrelated to Industrial (v1), Poster (v2)
   or Folio (v3). */

:root {
  --bg: #0A0D10;
  --bg-raised: #0E1216;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #F2F5F7;
  --muted: #909BA8;

  --accent: #C62828;
  --accent-bright: #FF4B4B;
  --accent-deep: #8F1D1D;
  --accent-ink: #FFFFFF;
  --status: #1F9D63;

  --fno-openserve: #009A44;
  --fno-vumatel: #ED0390;
  --fno-metrofibre: #F7941D;
  --fno-zoomfibre: #ED5736;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(198, 40, 40, 0.08), transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(31, 157, 99, 0.05), transparent 35%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4, blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
  display: inline-block;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* Glass panel base — reused by cards throughout */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn-primary, .btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 rgba(255, 75, 75, 0);
}
.btn-primary:hover, .btn-accent:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 28px rgba(255, 75, 75, 0.45);
  transform: translateY(-1px);
}
.btn-ghost-dark, .btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost-dark:hover, .btn-outline-dark:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 13, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-bright) 50%, var(--accent) 80%, transparent);
  opacity: 0.6;
}
.site-header .wrap { max-width: 1360px; position: relative; }
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-logo { flex: none; line-height: 0; }
.site-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }

.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
/* The coverage check is the action customers look for most — accent it so it
   reads as the key nav item, not just an eighth link. */
.nav-links a.nav-check-coverage { color: var(--accent); font-weight: 600; }
.nav-links a.nav-check-coverage:hover { color: var(--accent-bright, var(--accent)); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.link-status, .link-portal {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.link-status:hover, .link-portal:hover { color: var(--ink); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 8px var(--status);
  display: inline-block;
  flex: none;
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex: none;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); display: block; }

@media (max-width: 1240px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header-inner.is-open .primary-nav,
  .site-header-inner.is-open .header-actions {
    display: flex;
  }
  .site-header-inner.is-open { flex-wrap: wrap; }
  .site-header-inner.is-open .primary-nav { order: 3; width: 100%; }
  .site-header-inner.is-open .nav-links { flex-direction: column; gap: 16px; padding: 20px 0 6px; }
  .site-header-inner.is-open .header-actions {
    order: 4; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 16px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  background-position: center top;
}
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(180deg, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 55%, transparent 100%);
}
.hero-inner { position: relative; max-width: 720px; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero em { font-style: normal; color: inherit; }
.hero-ftth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  mask-image: linear-gradient(180deg, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 55%, transparent 100%);
}
/* The FTTH hero keeps a warm accent word — the home hero is now all-white, so
   this is a small, deliberate differentiator between the two. */
.hero-home em { color: var(--accent-bright); }

/* Stats band */
.stats-band { border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stats-row > div {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-raised);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(255, 75, 75, 0.25);
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* Generic block/section rhythm */
.block { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--muted); }

/* Numbered service rows */
.service-list { border-top: 1px solid var(--border); }
.service-row, .standalone-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.service-row:hover { background: var(--surface); }
.standalone-row { grid-template-columns: 60px 1fr; }
.service-num {
  font-family: var(--font-mono);
  color: var(--accent-bright);
  font-size: 0.95rem;
  padding-top: 4px;
}
.service-row h3, .standalone-row h3 { margin-bottom: 6px; }
.service-row p, .standalone-row p { color: var(--muted); margin-bottom: 0; max-width: 60ch; }
.service-link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  white-space: nowrap;
  align-self: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.service-link:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.standalone-row .service-link { display: inline-block; margin-top: 14px; align-self: start; }

.standalone-band { background: var(--bg-raised); padding: 92px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.standalone-list { border-top: 1px solid var(--border); }

/* Home fibre band */
.home-fibre-band { padding: 92px 0; }
.hf-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hf-copy p { color: var(--muted); }
.fno-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fno-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px 8px 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  background: var(--surface);
}
.fno-tag::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.fno-tag.fno-openserve { color: var(--fno-openserve); border-color: color-mix(in srgb, var(--fno-openserve) 45%, var(--border)); }
.fno-tag.fno-vumatel { color: var(--fno-vumatel); border-color: color-mix(in srgb, var(--fno-vumatel) 45%, var(--border)); }
.fno-tag.fno-metrofibre { color: var(--fno-metrofibre); border-color: color-mix(in srgb, var(--fno-metrofibre) 45%, var(--border)); }
.fno-tag.fno-zoom-fibre { color: var(--fno-zoomfibre); border-color: color-mix(in srgb, var(--fno-zoomfibre) 45%, var(--border)); }
.hf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hf-list li { display: flex; gap: 12px; color: var(--ink); }
.hf-check { color: var(--accent-bright); font-family: var(--font-mono); }
@media (max-width: 800px) { .hf-inner { grid-template-columns: 1fr; } }

/* Why-us quote section */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  font-size: 1.6rem;
  margin: 0 0 18px;
  box-shadow: inset 3px 0 12px -6px var(--accent-bright);
}
.why-copy, .market-gap-quote { color: var(--muted); }
.market-gap-quote { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }

/* CTA band */
.cta-band {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-top: 1px solid var(--border);
  padding: 96px 0;
  text-align: center;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
}
.cta-band h2 { color: var(--ink); }
.cta-sub { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }

/* Page hero (interior pages) */
.page-hero { padding: 76px 0 60px; border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.page-hero .wrap { max-width: 780px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; }

/* Feature grid (3-up reasons, FTTH hub) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid > div { padding: 28px; }
.feature-num { font-family: var(--font-mono); color: var(--accent-bright); font-size: 0.85rem; margin-bottom: 10px; }
.feature-grid p { color: var(--muted); }
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }

/* FNO grid (FTTH hub) */
.fno-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fno-card { background: var(--bg-raised); padding: 34px; border-top: 3px solid var(--border); transition: background 0.2s ease; }
.fno-card:hover { background: var(--surface-hover); }
.fno-card.fno-openserve { border-top-color: var(--fno-openserve); }
.fno-card.fno-vumatel { border-top-color: var(--fno-vumatel); }
.fno-card.fno-metrofibre { border-top-color: var(--fno-metrofibre); }
.fno-card.fno-zoom-fibre { border-top-color: var(--fno-zoomfibre); }
.fno-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fno-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.fno-openserve .fno-dot { background: var(--fno-openserve); box-shadow: 0 0 10px var(--fno-openserve); }
.fno-vumatel .fno-dot { background: var(--fno-vumatel); box-shadow: 0 0 10px var(--fno-vumatel); }
.fno-metrofibre .fno-dot { background: var(--fno-metrofibre); box-shadow: 0 0 10px var(--fno-metrofibre); }
.fno-zoom-fibre .fno-dot { background: var(--fno-zoomfibre); box-shadow: 0 0 10px var(--fno-zoomfibre); }
.fno-name { font-family: var(--font-display); font-size: 1.15rem; }
.fno-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.fno-card.fno-openserve .fno-badge { color: var(--fno-openserve); border-color: color-mix(in srgb, var(--fno-openserve) 45%, var(--border)); }
.fno-card.fno-vumatel .fno-badge { color: var(--fno-vumatel); border-color: color-mix(in srgb, var(--fno-vumatel) 45%, var(--border)); }
.fno-card.fno-metrofibre .fno-badge { color: var(--fno-metrofibre); border-color: color-mix(in srgb, var(--fno-metrofibre) 45%, var(--border)); }
.fno-card.fno-zoom-fibre .fno-badge { color: var(--fno-zoomfibre); border-color: color-mix(in srgb, var(--fno-zoomfibre) 45%, var(--border)); }
.fno-card p { color: var(--muted); }
.fno-link { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.fno-link:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
@media (max-width: 700px) { .fno-grid { grid-template-columns: 1fr; } }

/* FNO single-network pages: a glow wash behind the hero + colored underline,
   each network's real brand color surfacing through the dark system as a
   glow rather than a light-mode tint. */
.fno-hero.fno-openserve .eyebrow, .fno-hero.fno-openserve .eyebrow::before { color: var(--fno-openserve); background: var(--fno-openserve); }
.fno-hero.fno-vumatel .eyebrow, .fno-hero.fno-vumatel .eyebrow::before { color: var(--fno-vumatel); background: var(--fno-vumatel); }
.fno-hero.fno-metrofibre .eyebrow, .fno-hero.fno-metrofibre .eyebrow::before { color: var(--fno-metrofibre); background: var(--fno-metrofibre); }
.fno-hero.fno-zoom-fibre .eyebrow, .fno-hero.fno-zoom-fibre .eyebrow::before { color: var(--fno-zoomfibre); background: var(--fno-zoomfibre); }
.fno-hero.fno-openserve h1 { box-shadow: inset 0 -4px 0 -1px var(--fno-openserve); }
.fno-hero.fno-vumatel h1 { box-shadow: inset 0 -4px 0 -1px var(--fno-vumatel); }
.fno-hero.fno-metrofibre h1 { box-shadow: inset 0 -4px 0 -1px var(--fno-metrofibre); }
.fno-hero.fno-zoom-fibre h1 { box-shadow: inset 0 -4px 0 -1px var(--fno-zoomfibre); }
.page-hero.fno-openserve { background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--fno-openserve) 16%, var(--bg-raised)), var(--bg-raised)); }
.page-hero.fno-vumatel { background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--fno-vumatel) 16%, var(--bg-raised)), var(--bg-raised)); }
.page-hero.fno-metrofibre { background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--fno-metrofibre) 16%, var(--bg-raised)), var(--bg-raised)); }
.page-hero.fno-zoom-fibre { background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--fno-zoomfibre) 16%, var(--bg-raised)), var(--bg-raised)); }

/* Featured pricing card on an FNO's own page picks up that network's glow */
.fno-openserve .price-card.featured { border-color: var(--fno-openserve); box-shadow: 0 0 40px -12px var(--fno-openserve); }
.fno-vumatel .price-card.featured { border-color: var(--fno-vumatel); box-shadow: 0 0 40px -12px var(--fno-vumatel); }
.fno-metrofibre .price-card.featured { border-color: var(--fno-metrofibre); box-shadow: 0 0 40px -12px var(--fno-metrofibre); }
.fno-zoom-fibre .price-card.featured { border-color: var(--fno-zoomfibre); box-shadow: 0 0 40px -12px var(--fno-zoomfibre); }
.fno-openserve .price-card.featured .price-name { color: var(--fno-openserve); }
.fno-vumatel .price-card.featured .price-name { color: var(--fno-vumatel); }
.fno-metrofibre .price-card.featured .price-name { color: var(--fno-metrofibre); }
.fno-zoom-fibre .price-card.featured .price-name { color: var(--fno-zoomfibre); }

/* Rich content (WYSIWYG page bodies) */
.rich-content { max-width: 760px; }
.rich-content h2 { margin-top: 1.6em; }
.rich-content h3 { margin-top: 1.3em; }
.rich-content a:not(.btn) { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.rich-content a.btn { text-decoration: none; }
.rich-content ul, .rich-content ol { padding-left: 1.2em; color: var(--ink); }
.rich-content li { margin-bottom: 0.4em; }
.rich-content blockquote { margin: 1.6em 0; }

/* Tables (Partner Programme comparison table) */
.table-scroll { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table-scroll th, .table-scroll td { border-bottom: 1px solid var(--border); padding: 12px 16px; text-align: left; }
.table-scroll tr:last-child td { border-bottom: none; }
.table-scroll th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--bg-raised); }
.table-scroll td { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
table th, table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
table th { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-raised); }

/* Pricing grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; background: var(--surface); backdrop-filter: blur(20px); }
.price-card.featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(198, 40, 40, 0.14), var(--surface)); box-shadow: 0 0 40px -14px var(--accent-bright); }
.price-name { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.price-card.featured .price-name { color: var(--accent-bright); }
.price-amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; margin: 12px 0 20px; }
.price-amount span { font-size: 1rem; font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.price-specs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.price-specs li { padding-left: 20px; position: relative; margin-bottom: 0; }
.price-specs li::before { content: '—'; position: absolute; left: 0; color: var(--accent-bright); }
.price-note { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Badge grid (About, Network Status, FTTH FNO "benefits") */
.badge-grid, .fno-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.badge-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.badge-card h4 { margin-bottom: 12px; }
.badge-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.badge-card li { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; padding-left: 18px; position: relative; }
.badge-card li::before { content: '›'; position: absolute; left: 0; color: var(--accent-bright); font-family: var(--font-mono); }

/* Model grid (Partner Programme) */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--surface); }
.model-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-bright); margin-bottom: 10px; }
.model-billing { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.model-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.model-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
@media (max-width: 800px) { .model-grid { grid-template-columns: 1fr; } }

/* Stat row (inline stats inside rich content) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.6em 0; }
.stat-row > div { background: var(--bg-raised); padding: 26px 20px; text-align: center; }
.stat-row .stat-num { font-size: 1.7rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

/* Process steps (Solutions, About — 3-step Assess/Deploy/Manage) */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 1.6em 0; }
.process-step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.process-step p { color: var(--muted); }
@media (max-width: 800px) { .process-steps { grid-template-columns: 1fr; } }

/* Steps list (Partner Programme onboarding — 5 numbered rows) */
.steps-list { border-top: 1px solid var(--border); margin: 1.6em 0; }
.steps-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-bright);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.steps-row h3 { margin-bottom: 6px; }
.steps-row p { color: var(--muted); margin-bottom: 0; }

/* FAQ list (Support, Partner Programme) */
.faq-list { border-top: 1px solid var(--border); margin: 1.6em 0; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.faq-item p { color: var(--muted); margin-bottom: 0; }

/* Blog grid + card (Insights index) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); transition: border-color 0.2s ease, transform 0.2s ease; }
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.blog-card .eyebrow { margin-bottom: 10px; }
.blog-card h3 { margin-bottom: 8px; }
.blog-card h3 a { text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent-bright); }
.blog-card p { color: var(--muted); }
@media (max-width: 800px) { .blog-grid { grid-template-columns: 1fr; } }

/* Contact page */
.content-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 64px; }
.form-heading { margin-bottom: 6px; }
.form-sub { color: var(--muted); margin-bottom: 30px; }
.quote-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; align-self: start; }
.quote-sidebar h3 { margin-bottom: 20px; }
.quote-sidebar dl { margin: 0; }
.quote-sidebar dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 18px; }
.quote-sidebar dt:first-child { margin-top: 0; }
.quote-sidebar dd { margin: 4px 0 0; }
.quote-sidebar a { text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.quote-sidebar a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
@media (max-width: 800px) { .content-layout { grid-template-columns: 1fr; } }

/* Contact Form 7 styling */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 7px; }
.wpcf7-form input:not([type=submit]), .wpcf7-form select, .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}
.wpcf7-form select option { background: var(--bg-raised); color: var(--ink); }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.15);
}
.wpcf7-form input[type=submit] {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.wpcf7-form input[type=submit]:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 28px rgba(255, 75, 75, 0.4); }
.wpcf7-spinner { margin-left: 10px; }
.wpcf7-not-valid-tip { color: var(--accent-bright); font-size: 0.82rem; margin-top: 4px; }
.wpcf7-response-output { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 20px; font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }
.footer-contact { margin-top: 14px; }
.footer-heading { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-legal { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-legal a { text-decoration: none; color: var(--muted); }
.footer-legal a:hover { color: var(--accent-bright); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
}

/* ── Business Fibre page (page-templates/template-business.php) ──────────────
   Reuses the Pulse vocabulary — glass panels, mono eyebrows, accent hairlines.
   No new colours: every value below is an existing token. */

.biz-hero h1 { max-width: 16ch; }

.infra-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.infra-pillar { padding: 24px 22px; border-radius: var(--radius); }
.infra-pillar-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.infra-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 10px 0 8px;
  color: var(--ink);
}
.infra-pillar p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* Numbered redundancy points — the number is the motif, so it carries the
   accent and the mono face rather than sitting in a box. */
.infra-step-grid {
  display: grid;
  /* Explicit 2-up rather than auto-fit: there are exactly four points, and
     auto-fit lands them 3+1 at desktop widths, orphaning the last one. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
}
@media (max-width: 640px) { .infra-step-grid { grid-template-columns: 1fr; } }
.infra-step-item { border-top: 1px solid var(--border-strong); padding-top: 16px; }
.infra-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: .1em;
  color: var(--accent-bright);
  margin-bottom: 8px;
}
.infra-step-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.infra-step-item p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.infra-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.infra-why-list li {
  border-left: 2px solid var(--border-strong);
  padding: 14px 0 14px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: border-color .18s ease;
}
.infra-why-list li:hover { border-left-color: var(--accent); }
.infra-why-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }

.biz-audit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 30px 32px;
  border-radius: var(--radius);
  /* The one place the accent glow is used on this page — it is the free offer. */
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.35), 0 18px 50px -30px var(--accent-bright);
}
.biz-audit h2 { font-family: var(--font-display); margin: 8px 0 10px; color: var(--ink); }
.biz-audit p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; max-width: 62ch; }
.biz-audit .btn { flex: none; }

@media (max-width: 700px) {
  .biz-audit { padding: 24px 20px; }
  .biz-audit .btn { width: 100%; text-align: center; }
}

/* ── Business dropdown ───────────────────────────────────────────────────────
   CSS-only: :hover for pointers, :focus-within for keyboards. No JS, so
   assets/js/main.js does not need to know this menu exists.

   Below 1240px the header collapses to the hamburger menu and this becomes an
   always-visible indented sub-list instead — see the override further down. */

.nav-has-sub { position: relative; }

.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .6;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-has-sub:hover > a .nav-caret,
.nav-has-sub:focus-within > a .nav-caret { transform: rotate(180deg); opacity: 1; }

.nav-sub {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 200;
  min-width: 290px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
  /* Hidden but still laid out, so the panel does not reflow on first hover. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* A gap between the trigger and the panel would close the menu as the pointer
   crosses it. This pseudo-element bridges it without shifting the layout. */
.nav-sub::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav-has-sub:hover > .nav-sub,
.nav-has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background .14s ease;
}
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--surface-hover); }
.nav-sub-name { display: block; font-size: 0.92rem; font-weight: 600; }
.nav-sub-desc { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.nav-sub-all { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.nav-sub-all a { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .04em; color: var(--accent-bright); }

/* Hamburger menu: hover is meaningless on touch, so the sub-list is simply
   always open and indented under Business. */
@media (max-width: 1240px) {
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 8px 0 4px 12px;
    padding: 0 0 0 12px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 8px 0; }
  .nav-sub-desc { display: none; } /* the label is enough on a narrow screen */
  .nav-caret { display: none; }
}

/* Group label inside the Business dropdown. Precinct Fibre and the Partner
   Programme sit under it: they are standalone offerings, deliberately not part
   of the "one provider, one bill" bundle, so the menu keeps the same split the
   homepage does. */
.nav-sub-head {
  margin: 8px 0 2px;
  padding: 8px 12px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 1240px) {
  .nav-sub-head { padding-left: 0; margin-top: 12px; }
}

/* ── Home fibre package cards (per-FNO, from the curated catalogue snapshot) ──
   Pulse palette via existing tokens; glass surfaces like the rest of the theme.
   Each FNO section already carries its .fno-<slug> class, so the featured card
   picks up that network's own brand color for its accent. */
.af-pkg-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
  /* keeps a wide value (long price) from forcing a track past the viewport */
}
.af-pkg-card, .af-pkg-price, .af-pkg-speed { min-width: 0;
}
.af-pkg-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.af-pkg-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -30px var(--accent-bright);
}
.af-pkg-badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 3px 8px; border-radius: 999px;
}
.af-pkg-badge-promo { background: var(--status); }
/* Product family label (WebConnect / Fibre Home / OFC …) — distinguishes
   products at the same speed on one FNO. Rendered as a clear chip: the old
   small red uppercase mono was hard to read on the dark panel and mangled the
   curator's casing ("WebConnect" -> "WEBCONNECT"). Now off-white ink on a
   subtle surface, normal case, hugging its content so short ("OFC") and long
   ("Webconnect Home Fibre") both sit well. */
.af-pkg-label {
  align-self: flex-start;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--ink);
  background: var(--surface-hover, rgba(255,255,255,0.08));
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.af-pkg-speed { display: flex; flex-direction: column; gap: 2px; }
.af-pkg-down {
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--ink); font-weight: 700;
}
.af-pkg-down span { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.af-pkg-up { font-size: 0.82rem; color: var(--muted); }
.af-pkg-price {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); font-weight: 600;
  margin-top: 4px;
}
.af-pkg-rand { font-size: 1rem; color: var(--muted); margin-right: 1px; }
.af-pkg-per { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.af-pkg-install { font-size: 0.78rem; color: var(--muted); }
.af-pkg-install-free { color: var(--status); }
.af-pkg-cta { margin-top: auto; text-align: center; font-size: 0.85rem; padding: 10px 12px; white-space: normal; }
.af-pkg-foot { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* Featured card wears this network's own brand accent (the section carries the
   .fno-<slug> class). */
.af-pkg-block.fno-openserve  .af-pkg-card.is-featured { border-color: var(--fno-openserve);  box-shadow: 0 0 0 1px var(--fno-openserve); }
.af-pkg-block.fno-vumatel    .af-pkg-card.is-featured { border-color: var(--fno-vumatel);    box-shadow: 0 0 0 1px var(--fno-vumatel); }
.af-pkg-block.fno-metrofibre .af-pkg-card.is-featured { border-color: var(--fno-metrofibre); box-shadow: 0 0 0 1px var(--fno-metrofibre); }
.af-pkg-block.fno-zoom-fibre .af-pkg-card.is-featured { border-color: var(--fno-zoomfibre);  box-shadow: 0 0 0 1px var(--fno-zoomfibre); }

@media (max-width: 560px) { .af-pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* One column on phones: two columns make each card too narrow for the
   CTA label, and a full-width button is the better tap target anyway. */
@media (max-width: 440px) { .af-pkg-grid { grid-template-columns: minmax(0, 1fr); } }

/* Reusable two-up side-by-side comparison for page DB content
   (VoIP cloud-vs-on-site, Cybersecurity firewall tiers, etc.).
   Rules come after .rich-content so they win at equal specificity. */
.af-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.8em 0; }
.af-plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--surface); backdrop-filter: blur(20px); display: flex; flex-direction: column; }
.af-plan .af-plan-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-bright); margin-bottom: 10px; }
.af-plan h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; }
.af-plan .af-plan-sum { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.af-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af-plan li { color: var(--ink); font-size: 0.92rem; padding-left: 20px; position: relative; margin: 0; }
.af-plan li::before { content: '\203a'; position: absolute; left: 0; color: var(--accent-bright); font-family: var(--font-mono); }
.af-plan li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .af-compare { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Cookie consent (WebToffee "GDPR Cookie Consent", .cli-* / #cookie-law-info-bar)
   Carried over from the previous site's plugin; restyled from Pulse tokens so it
   reads as part of this theme instead of a default white bar. !important is used
   because the plugin ships its own stylesheet + inline styles.
   --------------------------------------------------------------------------- */
#cookie-law-info-bar {
  background: rgba(14, 18, 22, 0.92) !important;   /* --bg-raised, glassy */
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink) !important;
  border-top: 1px solid var(--accent) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45) !important;
  font-family: var(--font-body) !important;
}
#cookie-law-info-bar .cli-bar-message,
#cookie-law-info-bar .cli_messagebar_head {
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem; line-height: 1.5;
}
#cookie-law-info-bar a:not(.cli-plugin-button) { color: var(--accent-bright) !important; }

/* Buttons: shared base, then primary (Accept) vs ghost (Settings / Terms) */
.cli-plugin-button,
.cli-bar-btn_container a.cli-plugin-button {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  padding: 9px 18px !important;
  font-size: 0.86rem !important;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease !important;
  text-shadow: none !important;
}
#wt-cli-accept-all-btn,
.wt-cli-accept-all-btn,
.cli_action_button,
.wt-cli-privacy-accept-btn {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 1px solid var(--accent) !important;
}
#wt-cli-accept-all-btn:hover,
.wt-cli-accept-all-btn:hover,
.wt-cli-privacy-accept-btn:hover {
  background: var(--accent-bright) !important;
  border-color: var(--accent-bright) !important;
  box-shadow: 0 0 0 1px var(--accent-bright), 0 6px 20px rgba(255, 75, 75, 0.28) !important;
}
.cli_settings_button,
#CONSTANT_OPEN_URL,
.wt-cli-privacy-btn {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-strong) !important;
}
.cli_settings_button:hover,
#CONSTANT_OPEN_URL:hover,
.wt-cli-privacy-btn:hover {
  background: var(--surface-hover) !important;
  border-color: var(--ink) !important;
}

/* Settings modal — dark panel instead of a white sheet */
.cli-modal, .cli-modal-content { color: var(--ink) !important; font-family: var(--font-body) !important; }
.cli-modal-backdrop, .cli-settings-overlay { background: rgba(0, 0, 0, 0.6) !important; }
.cli-modal .cli-modal-content,
.cli-modal-dialog .cli-modal-content {
  background: var(--bg-raised) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}
.cli-modal .cli-modal-header,
.cli-modal .cli-modal-footer,
.cli-tab-header, .cli-nav-link, .cli-tab-section { border-color: var(--border) !important; }
.cli-modal h1, .cli-modal h2, .cli-modal h3, .cli-modal h4,
.cli-nav-link, .cli-tab-header, .wt-cli-cookie-description,
.cli-modal p, .cli-modal span, .cli-modal label { color: var(--ink) !important; }
.wt-cli-cookie-description, .cli-tab-content .cli-tab-pane p { color: var(--muted) !important; }
.cli-nav-link.cli-active, .cli-tab-header.cli-active { color: var(--accent-bright) !important; }
.cli-modal .cli-modal-close { color: var(--muted) !important; }
/* Toggle switches: on = brand red */
.cli-switch input:checked + .cli-slider,
.cli-switch .cli-slider.cli-enabled { background: var(--accent) !important; }
.cli-switch .cli-slider { background: var(--border-strong) !important; }
