/* FLR knowledge base - Knowledge Centre (.kh-*) + Blog (.blog-*) (split from styles.css) */
/* ═══ Knowledge Centre (Phase 1) ═══ */

/* ── Phase 7: Animation Strategy (motion tokens) ── */
body[data-page="faq"] {
  /* Blueprint §7 custom properties */
  --kh-glow-lime: 0 0 24px rgba(200, 255, 0, 0.25);
  --kh-glass: rgba(5, 5, 8, 0.72);
  --kh-glass-bright: rgba(255, 255, 255, 0.04);
  --kh-glass-edge: rgba(255, 255, 255, 0.07);
  --kh-blur: blur(12px);
  --kh-glow-cyan: 0 0 28px rgba(0, 240, 255, 0.12);
  --kh-zone-accent: var(--lime);
  --kh-ease-hero: cubic-bezier(0.16, 1, 0.3, 1);
  --kh-ease-out: ease-out;
  --kh-ease: ease;
  --kh-transition-spring: 0.4s var(--kh-ease-hero);
  --kh-duration-hero: 400ms;
  --kh-stagger-hero: 80ms;
  --kh-duration-reveal: 500ms;
  --kh-duration-faq: 350ms;
  --kh-duration-search: 200ms;
  --kh-duration-constellation: 600ms;
  --kh-duration-intent: 250ms;
  --kh-duration-focus: 400ms;
  --kh-duration-sc-row: 300ms;
}

.kh-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}

.kh-skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

.kh-hero .kh-updated {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.kh-hero .kh-updated time {
  color: var(--muted);
}

/* ── Phase 4: Hero entrance ── */
.kh-hero {
  position: relative;
  overflow: hidden;
}

.kh-hero-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 255, 0, 0.04) 48%,
    rgba(0, 240, 255, 0.06) 52%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(-120%);
}

body.kh-animated .kh-hero-scanline {
  animation: khHeroScan 0.9s calc(var(--kh-stagger-hero) * 3) var(--kh-ease-out) forwards;
}

/* LCP-safe: hero content is visible by default; the hidden entrance state only
   applies once JS adds body.kh-animated (same frame the animations start). */
body.kh-animated .kh-hero .section-label,
body.kh-animated .kh-hero h1,
body.kh-animated .kh-hero > .container > p,
body.kh-animated .kh-hero .kh-search-mount,
body.kh-animated .kh-hero .kh-intent-mount,
body.kh-animated .kh-hero .kh-updated {
  opacity: 0;
  transform: translateY(18px);
}

body.kh-animated .kh-hero .section-label { animation: khHeroIn var(--kh-duration-hero) calc(var(--kh-stagger-hero) * 1) var(--kh-ease-hero) forwards; }
body.kh-animated .kh-hero h1 { animation: khHeroIn var(--kh-duration-hero) calc(var(--kh-stagger-hero) * 2) var(--kh-ease-hero) forwards; }
body.kh-animated .kh-hero > .container > p { animation: khHeroIn var(--kh-duration-hero) calc(var(--kh-stagger-hero) * 3) var(--kh-ease-hero) forwards; }
body.kh-animated .kh-hero .kh-search-mount { animation: khHeroIn var(--kh-duration-hero) calc(var(--kh-stagger-hero) * 4) var(--kh-ease-hero) forwards; }
body.kh-animated .kh-hero .kh-intent-mount { animation: khHeroIn var(--kh-duration-hero) calc(var(--kh-stagger-hero) * 5) var(--kh-ease-hero) forwards; }
body.kh-animated .kh-hero .kh-updated { animation: khHeroIn var(--kh-duration-hero) calc(var(--kh-stagger-hero) * 6) var(--kh-ease-hero) forwards; }

@keyframes khHeroIn {
  to { opacity: 1; transform: none; }
}

@keyframes khHeroScan {
  0% { opacity: 0; transform: translateY(-120%); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(120%); }
}

/* ── Phase 2: Search ── */
.kh-search-mount {
  margin-top: 28px;
  max-width: 720px;
  margin-inline: auto;
}

.kh-search {
  padding: 20px 22px 16px;
  position: relative;
  z-index: 50;
  background: var(--kh-glass);
  backdrop-filter: var(--kh-blur);
  border-color: var(--kh-glass-edge);
  box-shadow: var(--kh-glow-lime);
}

.kh-search-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.kh-search-field {
  position: relative;
}

.kh-search-input {
  width: 100%;
  padding: 16px 48px 16px 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  clip-path: var(--clip-tag);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.kh-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.kh-search-input:focus {
  outline: none;
  border-color: rgba(200, 255, 0, 0.45);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.1);
}

.kh-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lime);
  font-size: 20px;
  pointer-events: none;
  opacity: 0.8;
}

.kh-search-status {
  min-height: 1.25em;
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.kh-search-results {
  margin-top: 8px;
  border: 1px solid var(--border-bright);
  background: rgba(5, 5, 8, 0.98);
  max-height: min(420px, 60vh);
  overflow-y: auto;
  animation: khSearchIn var(--kh-duration-search) var(--kh-ease-out);
}

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

.kh-search-result {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition);
}

.kh-search-result:last-child {
  border-bottom: none;
}

.kh-search-result:hover,
.kh-search-result.is-active {
  background: rgba(200, 255, 0, 0.06);
}

.kh-search-result:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.kh-search-result-q {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.kh-search-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kh-search-result-snippet {
  flex: 1 1 200px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.kh-search-zone-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 0, 0.25);
  clip-path: var(--clip-tag);
}

.kh-mark {
  background: rgba(200, 255, 0, 0.2);
  color: var(--white);
  padding: 0 2px;
}

.kh-search-empty {
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

.kh-search-empty-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.kh-search-empty-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kh-search-empty-btn:hover {
  color: var(--lime);
}

.kh-search-wa {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
}

/* ── Phase 2: Intent chips ── */
.kh-intent-mount {
  margin-top: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.kh-intent-lead {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.kh-intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.kh-intent-chip {
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  cursor: pointer;
  transition:
    transform var(--kh-duration-intent) var(--kh-ease-hero),
    border-color var(--kh-duration-intent) var(--kh-ease),
    box-shadow var(--kh-duration-intent) var(--kh-ease),
    color var(--kh-duration-intent) var(--kh-ease);
}

.kh-intent-chip:hover {
  border-color: rgba(200, 255, 0, 0.35);
  color: var(--lime);
}

.kh-intent-chip.is-active {
  transform: scale(1.02);
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.55);
  box-shadow: var(--kh-glow-lime);
}

.kh-intent-chip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.kh-intent-clear {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.kh-intent-clear:hover {
  color: var(--lime);
}

/* ── Phase 2: Focus mode (400ms ease per §7) ── */
body.kh-focus-mode .kh-zone {
  transition:
    opacity var(--kh-duration-focus) var(--kh-ease),
    filter var(--kh-duration-focus) var(--kh-ease);
}

/* Focus mode is a visual cue only — unfocused zones stay fully interactive
   (blur + pointer-events:none used to trap users who scrolled past). */
body.kh-focus-mode .kh-zone:not(.is-focused) {
  opacity: 0.55;
}

body.kh-focus-mode .kh-zone.is-focused {
  opacity: 1;
}

/* Phase 7: zone scroll reveal — 500ms ease-out on Knowledge Centre */
body[data-page="faq"] .reveal {
  transition: opacity var(--kh-duration-reveal) var(--kh-ease-out), transform var(--kh-duration-reveal) var(--kh-ease-out);
}

/* Phase 7: performance — layout containment (zones excluded — breaks programmatic scroll) */
body[data-page="faq"] .kh-featured,
body[data-page="faq"] .kh-comparator-section,
body[data-page="faq"] .kh-constellation {
  contain: layout style;
}

.kh-rail-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.kh-rail.is-stuck {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(200, 255, 0, 0.12);
}

.kh-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.kh-rail-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kh-rail-inner::-webkit-scrollbar { display: none; }

.kh-rail-link {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.kh-rail-link:hover,
.kh-rail-link.is-active {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.35);
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.08);
}

.kh-rail-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.kh-zones {
  padding: clamp(40px, 6vw, 72px) 0;
}

html.js.kh-ready #faq-static {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html:not(.js) #knowledge-hub {
  display: none;
}

html.js:not(.kh-ready) #knowledge-hub {
  display: none;
}

html.js:not(.kh-ready) #faq-static {
  display: block;
}

.kh-static-zone {
  margin-bottom: 48px;
}

.kh-static-zone h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.kh-static-item {
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--charcoal-light);
}

.kh-static-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
  list-style: none;
}

.kh-static-item summary::-webkit-details-marker { display: none; }

.kh-static-body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.kh-static-body ul {
  margin-top: 12px;
  padding-left: 20px;
}

.kh-static-body a {
  color: var(--lime);
}

.kh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.kh-stat {
  flex: 1 1 120px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--charcoal-light);
  clip-path: var(--clip-tag);
}

.kh-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 6px;
}

.kh-stat span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.kh-zone {
  margin-bottom: clamp(48px, 8vw, 80px);
  scroll-margin-top: calc(var(--header-h) + 56px);
  --kh-zone-accent: var(--lime);
}

.kh-zone[data-zone="fundamentals"] { --kh-zone-accent: #c8ff00; }
.kh-zone[data-zone="safety"] { --kh-zone-accent: #00f0ff; }
.kh-zone[data-zone="stages"] { --kh-zone-accent: #f58220; }
.kh-zone[data-zone="dsg"] { --kh-zone-accent: #c084fc; }
.kh-zone[data-zone="booking"] { --kh-zone-accent: #ffffff; }
.kh-zone[data-zone="legal"] { --kh-zone-accent: #fdb813; }
.kh-zone[data-zone="compatibility"] { --kh-zone-accent: #34d399; }

.kh-zone-head .section-label {
  color: var(--kh-zone-accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--kh-zone-accent) 40%, transparent);
}

.kh-zone-list .faq-item {
  background: var(--kh-glass);
  backdrop-filter: var(--kh-blur);
  border-color: var(--kh-glass-edge);
  transition: border-color var(--transition), box-shadow var(--kh-transition-spring), transform var(--kh-transition-spring);
}

.kh-zone-list .faq-item:hover {
  border-color: color-mix(in srgb, var(--kh-zone-accent) 35%, var(--border));
}

.kh-zone-list .faq-item.is-open {
  border-color: color-mix(in srgb, var(--kh-zone-accent) 55%, var(--border));
  box-shadow: 0 0 32px color-mix(in srgb, var(--kh-zone-accent) 18%, transparent);
}

.kh-zone-list .faq-question::after {
  color: var(--kh-zone-accent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--kh-zone-accent) 50%, transparent);
}

.kh-zone-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.kh-zone-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin: 8px 0 12px;
}

.kh-zone-head p {
  color: var(--muted);
  line-height: 1.7;
}

.kh-zone-list {
  max-width: 900px;
  margin: 0;
}

.kh-faq-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lime);
  text-decoration: none;
  border: 1px solid rgba(200, 255, 0, 0.25);
  clip-path: var(--clip-tag);
  transition: background var(--transition), box-shadow var(--transition);
}

.kh-faq-link:hover {
  background: rgba(200, 255, 0, 0.08);
  box-shadow: 0 0 12px rgba(200, 255, 0, 0.12);
}

.kh-faq-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ── Phase 3: Featured + stage comparator (stacked sections) ── */
.kh-featured {
  padding: clamp(48px, 8vw, 80px) 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.03), transparent 40%);
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.kh-comparator-section {
  padding: clamp(48px, 8vw, 80px) 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.03), transparent 45%);
  scroll-margin-top: calc(var(--header-h) + 56px);
}

#kh-comparator {
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.kh-featured-truth {
  max-width: 960px;
  margin: 0 auto;
}

.kh-comparator-mount {
  min-width: 0;
}

.kh-truth-mount .truth-wrap {
  margin: 0;
}

/* Stage comparator */
.kh-sc {
  padding: 22px 22px 20px;
}

.kh-sc-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kh-sc-fieldset {
  border: 1px solid var(--border);
  padding: 14px 16px 12px;
  margin: 0;
}

.kh-sc-fieldset legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  padding: 0 6px;
}

.kh-sc-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.kh-sc-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white);
  cursor: pointer;
}

.kh-sc-choice input {
  accent-color: var(--lime);
}

.kh-sc-match {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-color: rgba(200, 255, 0, 0.25);
  background: rgba(200, 255, 0, 0.04);
}

.kh-sc-match-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 6px;
}

.kh-sc-match-name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.kh-sc-match-why {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.kh-sc-grid {
  display: grid;
  grid-template-columns: repeat(var(--kh-sc-cols, 2), 1fr);
  gap: 12px;
}

.kh-sc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.kh-sc-card.is-recommended {
  border-color: rgba(200, 255, 0, 0.45);
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.1);
}

.kh-sc-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.kh-sc-name a {
  color: inherit;
  text-decoration: none;
}

.kh-sc-name a:hover {
  color: var(--lime);
}

.kh-sc-price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--lime);
}

.kh-sc-price small {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font);
  margin-left: 6px;
}

.kh-sc-rows {
  margin: 12px 0;
  border-top: 1px solid var(--border);
  flex: 1;
}

.kh-sc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.kh-sc-row span {
  color: var(--muted);
}

.kh-sc-row strong {
  color: var(--white);
  text-align: right;
  font-weight: 600;
}

.kh-sc-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.kh-sc-book {
  margin-top: 6px;
}

/* Reg preview (Booking zone) */
.kh-reg-preview {
  margin-bottom: 24px;
  max-width: 900px;
}

.kh-reg {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 20px;
  align-items: end;
  padding: 20px 22px;
}

.kh-reg-copy {
  grid-column: 1 / -1;
}

.kh-reg-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 6px 0 8px;
}

.kh-reg-copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.kh-reg-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.kh-reg-form .vrn-plate {
  flex: 1 1 220px;
  min-width: 200px;
}

.kh-reg-form .reg-check {
  margin: 0;
  max-width: none;
  width: 100%;
}

.kh-reg-result {
  grid-column: 1 / -1;
  font-size: 14px;
}

.kh-reg-success strong {
  color: var(--lime);
  display: block;
  margin-bottom: 6px;
}

.kh-reg-success a,
.kh-reg-error a {
  color: var(--lime);
}

.kh-reg-loading,
.kh-reg-error {
  color: var(--muted);
}

.kh-reg-zone-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--white);
  border: 1px solid rgba(200, 255, 0, 0.25);
  background: rgba(200, 255, 0, 0.05);
}

#zone-compatibility .faq-item.is-reg-dimmed {
  opacity: 0.35;
}

#zone-compatibility .faq-item.is-reg-match {
  border-color: rgba(200, 255, 0, 0.2);
}

/* Related question chips */
.kh-related {
  padding: 0 24px 20px;
}

.kh-related-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.kh-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kh-related-chip {
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.kh-related-chip:hover {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.35);
}

.kh-related-chip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* Guides vault */
.kh-guides {
  padding: clamp(48px, 8vw, 80px) 0;
  background: var(--charcoal-light);
  border-top: 1px solid var(--border);
}

.kh-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.kh-guide-card {
  height: 100%;
}

/* ── Phase 4: Topic constellation (desktop) ── */
.kh-constellation-wrap {
  padding: clamp(24px, 4vw, 40px) 0 0;
}

.kh-constellation {
  padding: 22px 24px 28px;
  background: var(--kh-glass);
  backdrop-filter: var(--kh-blur);
  border-color: var(--kh-glass-edge);
  box-shadow: var(--kh-glow-lime), inset 0 1px 0 var(--kh-glass-bright);
}

.kh-constellation-head {
  margin-bottom: 16px;
}

.kh-const-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.kh-constellation-stage {
  position: relative;
  min-height: 320px;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition: transform 0.35s ease-out;
}

.kh-const-links {
  position: absolute;
  inset: 12% 8%;
  width: auto;
  height: auto;
  pointer-events: none;
}

.kh-const-orbit {
  fill: none;
  stroke: rgba(200, 255, 0, 0.12);
  stroke-width: 0.4;
  stroke-dasharray: 2 3;
}

.kh-const-node {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  width: var(--node-size, 44px);
  height: var(--node-size, 44px);
  transform: translate(-50%, -50%);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.kh-const-node-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--node-accent) 45%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--node-accent) 25%, transparent);
  opacity: 0.7;
  transition: transform var(--kh-transition-spring), opacity var(--transition);
}

.kh-const-node-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(5, 5, 8, 0.88);
  border: 1px solid color-mix(in srgb, var(--node-accent) 50%, transparent);
  backdrop-filter: blur(8px);
  transition: transform var(--kh-transition-spring), box-shadow var(--transition);
}

.kh-const-count {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--node-accent);
  line-height: 1;
}

.kh-const-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

.kh-const-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  background: rgba(5, 5, 8, 0.92);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.kh-const-node:hover .kh-const-node-ring,
.kh-const-node:focus-visible .kh-const-node-ring,
.kh-const-node.is-active .kh-const-node-ring {
  opacity: 1;
  transform: scale(1.12);
}

.kh-const-node:hover .kh-const-node-core,
.kh-const-node:focus-visible .kh-const-node-core,
.kh-const-node.is-active .kh-const-node-core {
  transform: scale(1.08);
  box-shadow: 0 0 24px color-mix(in srgb, var(--node-accent) 35%, transparent);
}

.kh-const-node:hover .kh-const-tooltip,
.kh-const-node:focus-visible .kh-const-tooltip {
  opacity: 1;
  transform: translateX(-50%);
}

.kh-const-node--pulse .kh-const-node-ring {
  animation: khNodePulse var(--kh-duration-constellation) ease-in-out infinite;
}

@keyframes khNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

/* Pause constellation pulse while drive field / scroll is active (§7 + §11 perf budget) */
body.kh-scrolling .kh-const-node--pulse .kh-const-node-ring,
body.kh-field-active .kh-const-node--pulse .kh-const-node-ring {
  animation-play-state: paused;
}

body.kh-field-active .kh-constellation-stage {
  transform: none !important;
  --parallax-x: 0px !important;
  --parallax-y: 0px !important;
}

body.kh-field-active .kh-const-node-ring {
  animation: none !important;
  opacity: 0.45;
}

/* ── Phase 4: Glossary strip ── */
.kh-glossary-section {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.03), transparent 55%);
}

.kh-glossary {
  padding: 24px 24px 20px;
  background: var(--kh-glass);
  backdrop-filter: var(--kh-blur);
  border-color: var(--kh-glass-edge);
}

.kh-glossary-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 0;
}

/* Horizontal glossary strip — tablet/mobile */
@media (max-width: 1023px) {
  .kh-glossary-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 6px;
  }

  .kh-glossary-strip::-webkit-scrollbar {
    display: none;
  }

  .kh-glossary-strip .kh-gloss-item {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
  }
}

.kh-gloss-item {
  margin: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  clip-path: var(--clip-tag);
  transition: border-color var(--transition), box-shadow var(--kh-transition-spring);
}

.kh-gloss-item.is-open {
  border-color: rgba(200, 255, 0, 0.35);
  box-shadow: var(--kh-glow-lime);
}

.kh-gloss-term {
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kh-gloss-term::after {
  content: '+';
  color: var(--lime);
  font-size: 16px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.kh-gloss-item.is-open .kh-gloss-term::after {
  transform: rotate(45deg);
}

.kh-gloss-def {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Phase 4: Mobile conversion dock (VRN reg check) ── */
.kh-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 5, 8, 0.94);
  border-top: 1px solid rgba(200, 255, 0, 0.22);
  backdrop-filter: var(--kh-blur);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}

.kh-dock.is-visible {
  transform: translateY(0);
}

.kh-dock-reg {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.kh-dock .kh-dock-reg__inner.reg-check {
  --reg-field-h: 50px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.kh-dock .reg-check .vrn-plate,
.kh-dock .kh-dock-reg__inner .vrn-plate {
  flex: 3 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
  height: var(--reg-field-h);
  min-height: 0;
}

.kh-dock .reg-check .vrn-input,
.kh-dock .vrn-input {
  font-size: clamp(18px, 4.5vw, 22px);
  line-height: 1;
  padding-block: 0;
  padding-inline: 4px;
}

.kh-dock .vrn-plate-badge {
  width: 34px;
  flex-shrink: 0;
}

.kh-dock .vrn-gb {
  font-size: 11px;
}

.kh-dock .vrn-footer {
  font-size: 6px;
  letter-spacing: 0.06em;
}

.kh-dock .kh-dock-reg__btn.reg-check-btn {
  flex: 1 0 0;
  min-width: 0;
  align-self: stretch;
  height: auto;
  padding-block: 0;
  padding-inline: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Phase 5: Conversion layer ── */
.kh-zone-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.kh-faq-micro-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 20px;
}

.kh-faq-micro-ctas .btn {
  min-height: 44px;
}

.kh-quick-quote-section {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.04), transparent 50%);
}

.kh-qq-compact {
  padding: 22px 24px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.kh-qq-head {
  margin-bottom: 18px;
}

.kh-qq-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin: 8px 0;
}

.kh-qq-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

.kh-qq-form {
  display: grid;
  gap: 14px;
}

.kh-qq-field label,
.kh-qq-field > label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.kh-qq-input,
.kh-qq-select {
  width: 100%;
}

.kh-qq-select {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  clip-path: var(--clip-tag);
}

/* Compact field sizing — FAQ quick quote (mobile section + desktop conversion rail) */
.kh-qq-compact .kh-qq-form,
.kh-qq-compact .kh-qq-field,
.kh-qq-compact .qq-field {
  min-width: 0;
}

.kh-qq-compact .qq-input.kh-qq-input {
  font-size: 16px;
  min-height: 48px;
  padding: 10px 12px;
  letter-spacing: 0.04em;
}

.kh-qq-compact .kh-qq-select {
  font-size: 13px;
  padding: 10px 12px;
  min-height: 48px;
}

.kh-qq-compact .vrn-plate {
  transform: none;
  max-width: 100%;
  width: 100%;
  min-height: 54px;
}

.kh-qq-compact .qq-field .vrn-input {
  font-size: 22px;
  padding: 4px 6px;
}

.kh-qq-compact .vrn-plate-badge {
  width: 34px;
}

.kh-qq-compact .vrn-gb {
  font-size: 11px;
}

.kh-qq-compact .vrn-footer {
  font-size: 6px;
  letter-spacing: 0.08em;
}

.kh-conversion-rail {
  position: fixed;
  right: 16px;
  top: calc(var(--header-h) + 20px);
  width: min(300px, calc(100vw - 32px));
  z-index: 55;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.45s ease;
  pointer-events: none;
}

.kh-conversion-rail.is-visible {
  transform: none;
  pointer-events: auto;
}

.kh-conversion-rail-inner .kh-qq-compact {
  max-width: none;
  margin: 0;
  padding: 16px 16px 14px;
}

.kh-conversion-rail-inner .kh-qq-lead {
  display: none;
}

.kh-conversion-rail-inner .kh-qq-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.kh-unsure-wrap {
  padding: clamp(48px, 8vw, 88px) 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(200, 255, 0, 0.06), transparent),
    var(--charcoal-light);
  border-top: 1px solid var(--border);
}

.kh-unsure {
  padding: 28px 28px 24px;
}

.kh-unsure-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
}

.kh-unsure-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin: 8px 0 10px;
}

.kh-unsure-copy p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.kh-unsure-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(100%, 240px);
}

.kh-unsure-btn {
  justify-content: center;
  min-height: 44px;
}

.kh-ready-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(120%);
  z-index: 64;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 560px);
  padding: 12px 14px 12px 16px;
  background: rgba(5, 5, 8, 0.94);
  border: 1px solid rgba(200, 255, 0, 0.28);
  backdrop-filter: var(--kh-blur);
  clip-path: var(--clip-tag);
  transition: transform 0.4s ease;
}

.kh-ready-prompt.is-visible {
  transform: translateX(-50%) translateY(0);
}

.kh-ready-prompt p {
  margin: 0;
  font-size: 13px;
  color: var(--white);
  flex: 1;
}

.kh-ready-prompt-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.kh-ready-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.kh-hub-crosslink-wrap {
  margin-top: 24px;
}

.kh-hub-crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.kh-hub-crosslink p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}

.kh-home-faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 24px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
}

.kh-home-faq-more:hover {
  text-decoration: underline;
}

body.has-kh-rail .kh-conversion-rail {
  display: block;
}

@media (min-width: 768px) {
  .kh-quick-quote-section {
    display: none;
  }

  .kh-ready-prompt {
    bottom: 24px;
  }
}

@media (max-width: 900px) {
  .kh-unsure-inner {
    grid-template-columns: 1fr;
  }

  .kh-unsure-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .kh-unsure-actions .btn {
    flex: 1 1 calc(50% - 5px);
  }
}

body.nav-open .kh-dock {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .kh-dock {
    display: block;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }

  .kh-constellation-wrap { display: none; }
  body[data-page="faq"] .drive-hud { display: none !important; }
  .kh-conversion-rail { display: none !important; }

  .kh-quick-quote-section .kh-qq-compact {
    padding: 18px 16px;
  }
}

@media (max-width: 380px) {
  .kh-dock .kh-dock-reg__inner.reg-check {
    gap: 8px;
  }

  .kh-dock .reg-check .vrn-input,
  .kh-dock .vrn-input {
    font-size: 17px;
  }

  .kh-dock .vrn-plate-badge {
    width: 30px;
  }

  .kh-dock .vrn-footer {
    display: none;
  }

  .kh-dock .kh-dock-reg__btn.reg-check-btn {
    padding-inline: 4px;
    font-size: 11px;
  }
}

@media (max-width: 1024px) {
  .kh-glossary-list:not(.kh-glossary-strip) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .kh-sc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kh-sc-picker {
    grid-template-columns: 1fr;
  }

  .kh-guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kh-reg {
    grid-template-columns: 1fr;
  }

  .kh-sc-grid {
    grid-template-columns: 1fr;
  }

  .kh-sc-choices {
    flex-direction: column;
    align-items: flex-start;
  }

  .kh-glossary-list:not(.kh-glossary-strip) {
    grid-template-columns: 1fr;
  }
}

/* ── Section 6: Interactive experiences polish ── */
.kh-search-result--glossary .kh-search-zone-badge {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.35);
}

.kh-const-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 72%);
  padding: 16px 18px;
  text-align: center;
  background: rgba(5, 5, 8, 0.92);
  border: 1px solid var(--border-bright);
  clip-path: var(--clip-tag);
  pointer-events: none;
  z-index: 3;
}

.kh-const-preview-title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kh-const-preview-blurb {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 8px;
}

.kh-const-preview-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.kh-ecu-mount {
  margin-bottom: 28px;
}

.kh-ecu {
  padding: 22px 24px 20px;
}

.kh-ecu-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin: 8px 0 10px;
}

.kh-ecu-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.kh-ecu-stage {
  margin: 20px 0 16px;
  overflow-x: auto;
}

.kh-ecu-svg {
  width: 100%;
  min-width: 520px;
  height: auto;
  display: block;
}

.kh-ecu-box {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--border);
  stroke-width: 1;
  transition: stroke var(--transition), fill var(--transition), filter var(--transition);
}

.kh-ecu-box--core {
  fill: rgba(200, 255, 0, 0.06);
}

.kh-ecu-node.is-lit .kh-ecu-box {
  stroke: rgba(200, 255, 0, 0.65);
  fill: rgba(200, 255, 0, 0.1);
  filter: drop-shadow(0 0 8px rgba(200, 255, 0, 0.35));
}

.kh-ecu-label {
  fill: var(--white);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
}

.kh-ecu-pipe {
  opacity: 0.85;
}

.kh-ecu-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kh-ecu-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  clip-path: var(--clip-tag);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.kh-ecu-step.is-active {
  border-color: rgba(200, 255, 0, 0.45);
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.12);
}

.kh-ecu-step-num {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: var(--lime);
}

.kh-ecu-readout {
  padding: 16px 18px;
}

.kh-ecu-readout-param {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}

.kh-ecu-readout-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.kh-sc-row.is-highlight {
  background: rgba(200, 255, 0, 0.06);
  animation: khScRowSweep var(--kh-duration-sc-row) var(--kh-ease) forwards;
  animation-delay: calc(var(--row-i, 0) * 40ms);
}

@keyframes khScRowSweep {
  from { background-position: -100% 0; opacity: 0.6; }
  to { background-position: 0 0; opacity: 1; }
}

.kh-faq-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 12px;
}

.kh-share-copy.is-copied {
  border-color: rgba(200, 255, 0, 0.55);
  color: var(--lime);
}

.kh-reg-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.kh-reg-success .btn {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .kh-zone-list .faq-item .faq-answer {
    transition: none;
  }

  .kh-rail-link {
    transition: none;
  }

  .kh-intent-chip {
    transition: none;
  }

  .kh-search-results {
    animation: none;
  }

  body.kh-focus-mode .kh-zone {
    transition: none;
  }

  body.kh-focus-mode .kh-zone:not(.is-focused) {
    filter: none;
    opacity: 0.55;
  }

  .kh-sc-card {
    transition: none;
  }

  .kh-hero .section-label,
  .kh-hero h1,
  .kh-hero > .container > p,
  .kh-hero .kh-search-mount,
  .kh-hero .kh-intent-mount,
  .kh-hero .kh-updated,
  body.kh-animated .kh-hero .section-label,
  body.kh-animated .kh-hero h1,
  body.kh-animated .kh-hero > .container > p,
  body.kh-animated .kh-hero .kh-search-mount,
  body.kh-animated .kh-hero .kh-intent-mount,
  body.kh-animated .kh-hero .kh-updated {
    opacity: 1;
    transform: none;
    animation: none;
  }

  body.kh-animated .kh-hero-scanline {
    animation: none;
    opacity: 0;
  }

  .kh-constellation-stage {
    transition: none;
    transform: none;
  }

  .kh-const-node--pulse .kh-const-node-ring {
    animation: none;
  }

  .kh-dock {
    transition: none;
  }

  .kh-zone-list .faq-item {
    transition: none;
  }

  .kh-intent-chip.is-active {
    transform: none;
  }

  .kh-ecu-step,
  .kh-ecu-node .kh-ecu-box {
    transition: none;
  }

  .kh-sc-row.is-highlight {
    animation: none;
  }

  body.kh-scrolling .kh-const-node--pulse .kh-const-node-ring,
  body.kh-field-active .kh-const-node--pulse .kh-const-node-ring {
    animation: none;
  }

  body[data-page="faq"] .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   BLOG / GUIDES (.blog-*)
   Index at /blog, posts at /blog/<slug>
   ═══════════════════════════════════════════════════════════════════════ */

.blog-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.blog-eyebrow a {
  color: var(--lime);
  text-decoration: none;
}

.blog-eyebrow a:hover { text-decoration: underline; }

.blog-eyebrow-sep { opacity: 0.45; }

.blog-hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 64px;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(200, 255, 0, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(225, 6, 0, 0.05), transparent 55%);
  pointer-events: none;
}

.blog-hero-inner { position: relative; max-width: 780px; }

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.blog-hero h1 .accent {
  color: var(--lime);
  text-shadow: 0 0 40px var(--lime-glow);
}

.blog-hero-lead {
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.blog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-hero-stat {
  flex: 1 1 120px;
  min-width: 110px;
  max-width: 180px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  clip-path: var(--clip-tag);
  padding: 14px 16px 12px;
}

.blog-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--lime);
  margin-bottom: 2px;
}

.blog-hero-stat span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.blog-index-section { padding: 20px 0 80px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(200, 255, 0, 0.04);
}

.blog-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 5px 10px;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.blog-card-dot {
  width: 4px;
  height: 4px;
  background: var(--muted-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 10px;
}

.blog-card-title a {
  color: var(--white);
  text-decoration: none;
}

.blog-card-title a:hover { color: var(--lime); }

.blog-card-excerpt {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.blog-card-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
}

.blog-card-link:hover span { transform: translateX(4px); display: inline-block; }

.blog-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.blog-empty a { color: var(--lime); }

/* ── Single post ── */
.blog-post-hero {
  padding: calc(var(--header-h) + 40px) 0 48px;
  border-bottom: 1px solid var(--border);
}

.blog-post-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

/* Hero is above-the-fold SEO copy — never hide behind .reveal (iOS Safari observer miss) */
.blog-post-hero-grid,
.blog-post-hero-grid.reveal {
  opacity: 1;
  transform: none;
}

.blog-post-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.08;
  margin-bottom: 18px;
}

.blog-post-lead {
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.blog-post-hero-media {
  position: relative;
  overflow: hidden;
}

.blog-post-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 72px;
}

/* Article body must always be visible — never hide SEO copy behind .reveal */
.blog-post-body,
.blog-post-body.reveal {
  opacity: 1;
  transform: none;
}

.blog-prose {
  max-width: 720px;
}

.blog-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  font-style: italic;
  margin: 40px 0 16px;
  color: var(--white);
}

.blog-prose h2:first-child { margin-top: 0; }

.blog-prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  margin: 28px 0 12px;
  color: var(--lime);
}

.blog-prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}

.blog-prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose a:hover { color: var(--white); }

.blog-prose strong { color: var(--white); font-weight: 700; }

.blog-list {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
}

.blog-list li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.blog-list li strong { color: var(--white); }

.blog-list--ordered { list-style: decimal; }

.blog-faq-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* Grid expand — reliable on blog posts (max-height often fails with dynamic content) */
.blog-faq .faq-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}

.blog-faq .faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.blog-faq .faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.blog-faq .faq-item.is-open .faq-answer-inner {
  overflow: visible;
}

.blog-faq .faq-answer p {
  margin: 0;
  padding: 0 24px 0;
}

.blog-faq .faq-item.is-open .faq-answer p {
  padding-bottom: 22px;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar-panel {
  position: relative;
  padding: 24px 22px;
}

.blog-sidebar-label {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.blog-sidebar-panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 10px;
}

.blog-sidebar-panel > p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}

.blog-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.blog-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.blog-sidebar-links li { margin-bottom: 8px; }

.blog-sidebar-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.blog-sidebar-links a:hover { color: var(--lime); }

.blog-sidebar-related {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar-related li {
  border-bottom: 1px solid var(--border);
}

.blog-sidebar-related li:last-child { border-bottom: none; }

.blog-sidebar-related a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
}

.blog-sidebar-related strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.35;
}

.blog-sidebar-related span {
  font-size: 11px;
  color: var(--muted-2);
}

.blog-sidebar-related a:hover strong { color: var(--lime); }

.blog-post-cta { padding: 0 0 80px; }

.blog-post-cta-panel {
  position: relative;
  text-align: center;
  padding: 48px 32px;
}

.blog-post-cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  margin: 8px 0 12px;
}

.blog-post-cta-panel p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* — Blog TL;DR callout — */
.blog-tldr {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 28px;
  background: linear-gradient(120deg, rgba(0, 240, 255, 0.05), rgba(200, 255, 0, 0.04));
  border: 1px solid rgba(0, 240, 255, 0.22);
  clip-path: var(--clip-tag);
}

.blog-tldr-tag {
  flex-shrink: 0;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  padding: 4px 9px;
  white-space: nowrap;
}

.blog-tldr p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  margin: 0 !important;
}

/* — Blog inline CTA (mid-article conversion) — */
.blog-inline-cta {
  position: relative;
  margin: 36px 0;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.04), rgba(0, 240, 255, 0.03));
  border: 1px solid rgba(200, 255, 0, 0.18);
  clip-path: var(--clip-panel);
}

.blog-inline-cta .section-label {
  display: block;
  margin-bottom: 6px;
}

.blog-inline-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-style: italic;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.25;
}

.blog-inline-cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 18px;
}

.blog-inline-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-inline-cta .cta-actions .btn {
  min-width: 140px;
}

/* — Blog coverage table — */
.blog-coverage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}

.blog-coverage-table th,
.blog-coverage-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-coverage-table th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.blog-coverage-table td a {
  color: var(--lime);
  text-decoration: none;
}

.blog-coverage-table td a:hover {
  text-decoration: underline;
}

.blog-coverage-table tr:last-child td {
  border-bottom: none;
}

/* ── Blog responsive ── */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-post-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
}

@media (max-width: 960px) {
  .blog-post-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-post-hero-media { max-width: 560px; }
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 56px;
  }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .blog-hero { padding: calc(var(--header-h) + 36px) 0 48px; }
  .blog-hero-stat { max-width: none; flex: 1 1 calc(50% - 6px); }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card-body { padding: 18px 18px 20px; }
  .blog-post-hero { padding: calc(var(--header-h) + 28px) 0 36px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar-actions { flex-direction: row; flex-wrap: wrap; }
  .blog-sidebar-actions .btn { flex: 1 1 auto; min-width: 140px; }
  .blog-post-cta-panel { padding: 36px 20px; }
  .blog-prose h2 { margin-top: 32px; }
}

@media (max-width: 480px) {
  .blog-hero-stat { flex: 1 1 100%; }
  .blog-post-meta { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover { transform: none; }
  .blog-card:hover .blog-card-media img { transform: none; }
}

/* — Blog interactive widgets (progressive enhancement) — */
#blog-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  pointer-events: none;
}

.blog-widget {
  margin: 28px 0 36px;
}

.blog-widget-label {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.blog-widget--jump {
  padding: 16px 18px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
  clip-path: var(--clip-tag);
}

.blog-widget-jump-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.blog-widget-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.blog-widget-jump-link:hover,
.blog-widget-jump-link.is-active {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.35);
  background: rgba(200, 255, 0, 0.05);
}

.blog-widget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-widget-chip {
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  z-index: 2;
}

.blog-widget-chip:hover,
.blog-widget-chip.is-active {
  color: var(--white);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.06);
}

.blog-widget-chip.is-active {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.blog-widget-panel {
  padding: 18px 20px;
  margin-top: 4px;
}

.blog-widget-panel[hidden] {
  display: none;
}

.blog-widget-panel p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
}

.blog-widget-panel p:last-child { margin-bottom: 0; }

.blog-widget-panel strong { color: var(--white); }

.blog-myth-grid {
  display: grid;
  gap: 10px;
}

/* Native <details> — works without JS (button + class toggle was unreliable) */
details.blog-myth-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

details.blog-myth-card[open] {
  border-color: var(--border-bright);
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.06);
}

summary.blog-myth-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  padding-right: 44px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  list-style: none;
  position: relative;
}

summary.blog-myth-trigger::-webkit-details-marker {
  display: none;
}

summary.blog-myth-trigger::marker {
  content: '';
}

summary.blog-myth-trigger::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--lime);
  text-shadow: 0 0 10px var(--lime-glow);
  transition: transform var(--transition);
}

details.blog-myth-card[open] > summary.blog-myth-trigger::after {
  transform: translateY(-50%) rotate(45deg);
}

.blog-myth-badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.blog-myth-badge--fact {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.45);
}

.blog-myth-reveal {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 16px 16px;
}

.blog-myth-reveal p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.blog-myth-reveal a {
  color: var(--lime);
}

.blog-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.blog-checklist-item:hover {
  border-color: rgba(200, 255, 0, 0.25);
}

.blog-checklist-item.is-checked {
  border-color: rgba(200, 255, 0, 0.35);
  background: rgba(200, 255, 0, 0.04);
}

.blog-checklist-item input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--lime);
  cursor: pointer;
}

.blog-checklist-item label {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.blog-checklist-item.is-checked label {
  color: rgba(255, 255, 255, 0.85);
}

.blog-widget--dsg-path .blog-widget-panel {
  margin-top: 14px;
}

[data-dsg-path-result] strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
}

[data-dsg-path-result] p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

[data-dsg-path-result] p a {
  color: var(--lime);
}

.blog-widget-maths {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.blog-widget-maths-line {
  font-size: 13px;
  color: var(--muted);
}

.blog-widget-maths-line--save {
  color: var(--lime);
}

/* Blog comparison table (tuning box vs remap) */
.blog-compare-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  -webkit-overflow-scrolling: touch;
}

.blog-compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.blog-compare-table th,
.blog-compare-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.blog-compare-table thead th {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--white);
  background: rgba(0, 240, 255, 0.06);
}

.blog-compare-table tbody th {
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  width: 28%;
}

.blog-compare-table td {
  color: var(--muted);
  width: 36%;
}

.blog-compare-table .blog-compare-win {
  color: var(--lime);
  font-weight: 600;
}

/* Blog process timeline (appointment / duration guides) */
.blog-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin: 20px 0 28px;
  padding: 8px 0;
}

.blog-process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  z-index: 0;
}

.blog-process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px 16px;
}

.blog-process-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: var(--bg);
  border: 1px solid rgba(200, 255, 0, 0.35);
  clip-path: var(--clip-tag);
}

.blog-process-step strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.blog-process-step span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 760px) {
  .blog-process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-process-steps::before { display: none; }

  .blog-process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.12);
    clip-path: var(--clip-tag);
  }

  .blog-process-step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .blog-widget-chips { flex-direction: column; }
  .blog-widget-chip { width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  #blog-read-progress { transition: none; }
}

/* ═══ Knowledge Centre — Phase 8 accessibility (WCAG 2.2 AA) ═══ */
body[data-page="faq"] {
  --kh-a11y-muted: #b4b8c4;
}

body[data-page="faq"] .kh-zone-head p,
body[data-page="faq"] .kh-zone-list .faq-answer p,
body[data-page="faq"] .kh-search-result-snippet,
body[data-page="faq"] .kh-gloss-def,
body[data-page="faq"] .kh-search-empty,
body[data-page="faq"] .kh-reg-copy p {
  color: var(--kh-a11y-muted);
}

body[data-page="faq"] .kh-intent-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

body[data-page="faq"] .kh-search-result,
body[data-page="faq"] .kh-search-empty-btn,
body[data-page="faq"] .kh-related-chip,
body[data-page="faq"] .kh-rail-link {
  min-height: 44px;
}

body[data-page="faq"] .kh-search-empty-btn {
  display: flex;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

body[data-page="faq"] .kh-related-chip {
  display: inline-flex;
  align-items: center;
}

body[data-page="faq"] .kh-rail-link {
  display: inline-flex;
  align-items: center;
}

body[data-page="faq"] .kh-search-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page="faq"] .kh-search-result-q {
  overflow-wrap: anywhere;
}

body[data-page="faq"] .kh-zone-ctas,
body[data-page="faq"] .kh-faq-micro-ctas {
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  body[data-page="faq"] .kh-rail-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* ═══ Knowledge Centre — Phase 9 conversion & trust ═══ */
.kh-hero-trust-mount {
  margin: 20px auto 8px;
  max-width: 720px;
}

.kh-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}

.kh-hero-trust-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 12px 18px;
  text-align: center;
}

.kh-hero-trust-stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--lime);
  line-height: 1;
}

.kh-hero-trust-stat span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.kh-hero-cred-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 0, 0.35);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.kh-hero-cred-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.kh-featured-truth .truth-wrap {
  border-color: color-mix(in srgb, var(--lime) 35%, var(--border));
  box-shadow: 0 0 40px rgba(200, 255, 0, 0.08);
}

.kh-zone-trust-mount {
  margin-bottom: 24px;
}

.kh-zone-trust {
  position: relative;
  padding: 16px 18px 14px;
  max-width: 720px;
}

.kh-zone-trust-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kh-zone-accent, var(--lime));
}

.kh-zone-trust-viewport {
  position: relative;
  min-height: 88px;
}

.kh-zone-trust-slide {
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.kh-zone-trust-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.kh-zone-trust-slide p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
  font-style: italic;
}

.kh-zone-trust-slide footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.kh-zone-trust-slide cite {
  font-style: normal;
  font-weight: 700;
  color: var(--white);
}

.kh-rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  pointer-events: auto;
}

.kh-rail-actions .btn {
  min-height: 44px;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .kh-zone-trust-slide {
    transition: none;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   KB REBUILD PHASE 3 — learning paths, topic explorer, search upgrades,
   guides vault filter. Namespaced .kb-* (new) alongside legacy .kh-*.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Search: Ctrl+K hint + recents ── */
.kh-search-kbd {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

@media (max-width: 767px) {
  .kh-search-kbd { display: none; }
}

.kh-search-recents { padding: 14px 16px; }

.kh-search-recents-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.kh-search-recents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kh-search-recent-btn {
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 7px 14px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.kh-search-recent-btn:hover,
.kh-search-recent-btn:focus-visible {
  color: var(--lime);
  border-color: var(--border-bright);
}

/* ── Learning paths ── */
.kb-paths-wrap { padding: 56px 0 8px; }

.kb-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.kb-path {
  position: relative;
  padding: 26px 24px 20px;
  border-top: 2px solid var(--kb-path-accent, var(--lime));
}

.kb-path-head { margin-bottom: 16px; }

.kb-path-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kb-path-accent, var(--lime));
  margin-bottom: 8px;
}

.kb-path-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.kb-path-meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.kb-path-steps {
  display: grid;
  gap: 2px;
}

.kb-path-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas: "num label" "num type";
  align-items: center;
  column-gap: 12px;
  padding: 9px 10px;
  border-left: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.kb-path-link:hover,
.kb-path-link:focus-visible {
  border-left-color: var(--kb-path-accent, var(--lime));
  background: rgba(255, 255, 255, 0.03);
}

.kb-path-num {
  grid-area: num;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--kb-path-accent, var(--lime));
  opacity: 0.85;
}

.kb-path-label {
  grid-area: label;
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.35;
}

.kb-path-type {
  grid-area: type;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}

/* ── Topic explorer ── */
.kb-explorer-wrap { padding: 48px 0 8px; }

.kb-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.kb-topic {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-top: 2px solid var(--kb-topic-accent, var(--lime));
}

.kb-topic-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.kb-topic-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--kb-topic-accent, var(--lime));
  opacity: 0.8;
}

.kb-topic-title {
  font-size: 1.05rem;
  margin: 0;
  flex: 1;
}

.kb-topic-link { color: var(--white); transition: color var(--transition); }
.kb-topic-link:hover, .kb-topic-link:focus-visible { color: var(--kb-topic-accent, var(--lime)); }

.kb-topic-count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
}

.kb-topic-blurb {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.kb-topic-questions {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.kb-topic-q {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.kb-topic-q:hover,
.kb-topic-q:focus-visible {
  color: var(--kb-topic-accent, var(--lime));
  border-left-color: var(--kb-topic-accent, var(--lime));
}

.kb-topic-all {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-topic-accent, var(--lime));
}

.kb-topic-all:hover { filter: brightness(1.15); }

/* ── Guides vault: filter chips + show-all ── */
.kh-guides-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  max-width: 900px;
}

.kh-guides-chip {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 8px 16px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px;
}

.kh-guides-chip:hover,
.kh-guides-chip:focus-visible {
  color: var(--lime);
  border-color: var(--border-bright);
}

.kh-guides-chip.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.kh-guides-more {
  text-align: center;
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .kb-path-link,
  .kb-topic-q,
  .kh-guides-chip,
  .kh-search-recent-btn {
    transition: none;
  }
}

/* ═══ PHASE 4 — ARTICLE EXPERIENCE V2 ═══ */

/* ── Post footer extras stack ── */
.blog-post-extras {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

/* ── Share bar ── */
.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-share .is-copied {
  color: var(--lime);
  border-color: var(--lime);
}

/* ── Author / E-E-A-T box ── */
.blog-author {
  padding: 22px 24px;
}

.blog-author-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.blog-author-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  background: var(--lime);
  clip-path: var(--clip-tag);
}

.blog-author-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.blog-author-role {
  display: block;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.blog-author-bio {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.blog-author-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.blog-author-updated { color: var(--lime); }

.blog-meta-updated { color: var(--lime); }

/* ── Feedback ── */
.blog-feedback {
  padding: 20px 24px;
}

.blog-feedback p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-feedback-thanks {
  margin: 0 !important;
  color: var(--muted);
}

/* ── Prev / next ── */
.blog-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.blog-pn-link {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  clip-path: var(--clip-tag);
  transition: border-color var(--transition);
}

.blog-pn-link:hover,
.blog-pn-link:focus-visible {
  border-color: var(--border-bright);
}

.blog-pn-next { text-align: right; }

.blog-pn-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.blog-pn-link strong {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  transition: color var(--transition);
}

.blog-pn-link:hover strong,
.blog-pn-link:focus-visible strong {
  color: var(--lime);
}

@media (max-width: 640px) {
  .blog-prevnext { grid-template-columns: 1fr; }
  .blog-pn-next { text-align: left; }
}

/* ── Blog index filter bar ── */
.blog-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
}

.blog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-filter-chip {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 8px 16px;
  cursor: pointer;
  min-height: 40px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.blog-filter-chip:hover,
.blog-filter-chip:focus-visible {
  color: var(--lime);
  border-color: var(--border-bright);
}

.blog-filter-chip.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.blog-filter-search input {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 10px 16px;
  min-width: 220px;
  min-height: 40px;
}

.blog-filter-search input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.blog-filter-empty {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Glossary term tooltips ── */
.blog-gloss {
  position: relative;
  color: inherit;
  text-decoration: underline dotted var(--lime);
  text-underline-offset: 3px;
  cursor: help;
}

.blog-gloss::after {
  content: attr(data-gloss-def);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(280px, 70vw);
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--white);
  background: var(--black, #0a0a0a);
  border: 1px solid var(--border-bright);
  clip-path: var(--clip-tag);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 30;
}

.blog-gloss:hover::after,
.blog-gloss:focus-visible::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .blog-filter-chip,
  .blog-pn-link,
  .blog-pn-link strong,
  .blog-gloss::after {
    transition: none;
  }
}

/* ═══ PHASE 5 — INTERACTIVE EXPLAINERS (.kbx-*) ═══ */

.kb-lab {
  padding: clamp(40px, 6vw, 72px) 0;
}

.kb-lab [data-kbx-mount] {
  max-width: 860px;
  margin: 0 auto;
}

.kbx {
  padding: clamp(22px, 4vw, 34px);
  margin: 28px 0;
}

.kbx-head { margin-bottom: 20px; }

.kbx-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--white);
  margin: 8px 0 6px;
}

.kbx-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.kbx-foot {
  font-size: 0.85rem;
  color: var(--muted-2);
  margin: 18px 0 0;
}

/* ── Step chips (DPF + DSG) ── */
.kbx-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.kbx-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.kbx-step:hover,
.kbx-step:focus-visible {
  color: var(--lime);
  border-color: var(--border-bright);
}

.kbx-step.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.kbx-step-n {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.kbx-panel {
  border-left: 2px solid var(--lime);
  padding: 4px 0 4px 16px;
  min-height: 84px;
}

.kbx-panel p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 6px 0 0;
}

.kbx-meta strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ── DPF soot bar ── */
.kbx-dpf-visual { margin: 0 0 20px; }

.kbx-dpf-filter {
  height: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  clip-path: var(--clip-tag);
  overflow: hidden;
}

.kbx-dpf-soot {
  height: 100%;
  background: var(--lime);
  transition: width 0.6s ease, background 0.6s ease;
}

.kbx-dpf-soot.is-danger { background: #ff5c5c; }

.kbx-dpf-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
}

/* ── DSG shafts ── */
.kbx-dsg-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.kbx-dsg-shaft {
  border: 1px solid var(--border);
  background: var(--surface);
  clip-path: var(--clip-tag);
  padding: 14px;
}

.kbx-dsg-shaft-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.kbx-dsg-gears {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.kbx-dsg-gear {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.kbx-dsg-gear.is-driving {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(200, 255, 0, 0.4);
}

.kbx-dsg-gear.is-preselected {
  color: var(--lime);
  border-color: var(--lime);
  border-style: dashed;
}

.kbx-dsg-clutch {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  transition: color var(--transition);
}

.kbx-dsg-clutch.is-engaged { color: var(--lime); }

.kbx-dsg-clutch.is-engaged::after { content: ' — engaged'; }

@media (max-width: 560px) {
  .kbx-dsg-visual { grid-template-columns: 1fr; }
}

/* ── Decision tree ── */
.kbx-tree-q {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 16px;
}

.kbx-tree-options {
  display: grid;
  gap: 10px;
}

.kbx-tree-opt {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 14px 18px;
  min-height: 48px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.kbx-tree-opt:hover,
.kbx-tree-opt:focus-visible {
  color: var(--lime);
  border-color: var(--border-bright);
}

.kbx-tree-back,
.kbx-tree-restart {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}

.kbx-tree-back:hover,
.kbx-tree-restart:hover,
.kbx-tree-back:focus-visible,
.kbx-tree-restart:focus-visible {
  color: var(--lime);
}

.kbx-tree-result-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--lime);
  margin-bottom: 10px;
}

.kbx-tree-result p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.kbx-tree-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Fault codes ── */
.kbx-codes-search { margin-bottom: 16px; }

.kbx-codes-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 12px 16px;
  min-height: 44px;
}

.kbx-codes-search input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.kbx-codes-list {
  display: grid;
  gap: 8px;
}

.kbx-code {
  border: 1px solid var(--border);
  background: var(--surface);
  clip-path: var(--clip-tag);
}

.kbx-code summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.kbx-code summary::-webkit-details-marker { display: none; }

.kbx-code summary:hover,
.kbx-code summary:focus-visible {
  color: var(--lime);
}

.kbx-code[open] summary { color: var(--white); }

.kbx-code-id {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lime);
  flex: 0 0 auto;
}

.kbx-code-body {
  padding: 0 16px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.kbx-code-body p { margin: 0 0 10px; }

.kbx-code-warn {
  border-left: 2px solid var(--lime);
  padding-left: 12px;
}

.kbx-codes-empty {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 12px 0 0;
}

/* ── Read next ── */
.kbx-readnext { margin-top: 20px; }

.kbx-readnext-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.kbx-readnext-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  clip-path: var(--clip-tag);
  transition: border-color var(--transition);
}

.kbx-readnext-list a:hover,
.kbx-readnext-list a:focus-visible {
  border-color: var(--border-bright);
}

.kbx-readnext-list strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition);
}

.kbx-readnext-list a:hover strong,
.kbx-readnext-list a:focus-visible strong {
  color: var(--lime);
}

.kbx-readnext-list span {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--muted-2);
}

@media (prefers-reduced-motion: reduce) {
  .kbx-step,
  .kbx-dpf-soot,
  .kbx-dsg-gear,
  .kbx-dsg-clutch,
  .kbx-tree-opt,
  .kbx-readnext-list a,
  .kbx-readnext-list strong {
    transition: none;
  }
}

/* ═══ PHASE 8 — ENGAGEMENT + TRUST ═══ */

/* ── Continue reading strip ── */
.kb-continue-wrap .kb-continue {
  padding: 20px 24px;
  margin-top: 24px;
}

.kb-continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kb-continue-item {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  clip-path: var(--clip-tag);
  transition: border-color var(--transition);
}

.kb-continue-item:hover,
.kb-continue-item:focus-visible {
  border-color: var(--border-bright);
}

.kb-continue-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.kb-continue-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.kb-continue-item:hover strong,
.kb-continue-item:focus-visible strong {
  color: var(--white);
}

.kb-continue-min {
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* ── Editorial / accuracy commitment ── */
.kb-editorial {
  padding: clamp(40px, 6vw, 72px) 0;
}

.kb-editorial-panel {
  padding: clamp(24px, 4vw, 40px);
}

.kb-editorial-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--white);
  margin: 10px 0 20px;
}

.kb-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.kb-editorial-grid h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--lime);
  margin: 0 0 8px;
}

.kb-editorial-grid p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .kb-continue-item { transition: none; }
}

