/*
Theme Name: ErrorFix UK
Theme URI: https://errorfix.co.uk
Author: ErrorFix UK
Description: Custom theme for ErrorFix UK — Appliance Error Code Lookup. Dark, fast, SEO-optimised.
Version: 6.47.0
License: GNU General Public License v2 or later
Text Domain: errorfix-uk
*/

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --bg:        #0d0f14;
  --surface:   #13161e;
  --surface2:  #1a1e2a;
  --border:    #252836;
  --accent:    #e8c547;
  --accent2:   #4ade80;
  --danger:    #f87171;
  --warn:      #fb923c;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --brand:     #7c6af7;
  --radius:    10px;
  --max-width: 960px;
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,106,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,106,247,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Anchor colour scoped to content — NOT site-wide amber */
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* Amber links only where explicitly wanted */
.breadcrumb a,
.entry-content a,
.footer-links a,
.cat-count-model,
.brand-group-link,
.manual-link,
.related-guide-card .rgc-code,
nav a,
.main-nav a { color: var(--accent); }
.main-nav a:hover { color: var(--text); opacity: 1; }

img { max-width: 100%; height: auto; display: block; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin: 2rem 0 0.75rem; color: var(--accent); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p  { margin-bottom: 1rem; color: var(--text); font-weight: 300; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.site-wrapper { position: relative; z-index: 1; }
.container    { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.content-area { padding: 2.5rem 0 4rem; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}


.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo span { color: var(--accent); }
.site-logo .badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  background: var(--brand);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.main-nav ul  { list-style: none; display: flex; gap: 1.8rem; }
.main-nav a   { color: var(--muted); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--text); opacity: 1; }


/* ── Burger / mobile nav ─────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--surface2); }
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav ul li a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--text); }

/* ── SEARCH BAR (homepage + header) ─────────────────────── */
.search-wrap {
  max-width: 640px;
  margin: 0 auto 1.25rem;
}
.search-row {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-row:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124,106,247,0.15);
}
.search-brand {
  background: var(--surface2);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text);
  padding: 0 1rem;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  min-width: 130px;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.9rem 1.1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  outline: none;
  letter-spacing: 0.04em;
}
.search-input::placeholder { color: var(--muted); font-family: 'DM Sans', sans-serif; letter-spacing: 0; }

/* ── Appliance dropdown ──────────────────────────────────── */

/* ── Placeholder cycling animation ──────────────────────── */
@keyframes ef-placeholder-fade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0; }
}
.search-input.ph-animate::placeholder {
  animation: ef-placeholder-fade 3s ease-in-out;
}
.search-btn {
  background: var(--accent);
  color: #0d0f14;
  border: none;
  padding: 0 1.4rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.search-btn:hover { background: #f0d060; }

/* ── HERO (homepage) ─────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--brand);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--brand);
  opacity: 0.5;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin-bottom: 0.9rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { color: var(--muted); font-size: 1rem; margin-bottom: 2.2rem; font-weight: 300; }

/* Hint pills removed */

/* ── BRAND GRID (homepage) ───────────────────────────────── */
.brand-grid-section { padding: 0 0 3rem; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 0.7rem;
}
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.brand-card:hover { border-color: var(--brand); background: var(--surface2); transform: translateY(-2px); opacity: 1; }
.brand-card .icon { font-size: 1.5rem; }
.brand-card .name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.brand-card .count { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--muted); }

/* ── ERROR CODE PAGE ────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════
   ERROR PAGE HEADER — two-column layout
   ══════════════════════════════════════════════════════════ */

/* ── Base (desktop) ────────────────────────────────────── */
.error-page-header {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.error-header-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--border);
}
.error-code-title {
  font-family: 'DM Mono', monospace;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
}
.error-brand-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text) !important;
  margin-top: 0.6rem;
}
.error-appliance-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(236,196,0,0.1);
  border: 1px solid rgba(236,196,0,0.3);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.error-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 38%;
  max-width: 300px;
  flex-shrink: 0;
  padding: 1.5rem 1.75rem;
}
.error-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.error-info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}
.error-info-value {
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.error-info-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}
.error-info-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.sev-low    { color: var(--accent2); }
.sev-medium { color: var(--warn); }
.sev-high   { color: var(--danger); }
.diy-anyone    { color: #86efac; background: transparent !important; border: none !important; }
.diy-competent { color: #fde047; background: transparent !important; border: none !important; }
.diy-pro       { color: #fca5a5; background: transparent !important; border: none !important; }

/* ── CONTENT CARD ────────────────────────────────────────── */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}
.content-card h2 { margin-top: 0; }

/* ── Results grouped by brand ───────────────────────────── */
.results-brand-group {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.results-brand-group:first-child {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}
.results-brand-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.01em;
}
.results-brand-heading span {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
}

/* ── Fix steps */
.fix-steps { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.fix-steps li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
}
.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  background: var(--brand);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── AFFILIATE PANEL ─────────────────────────────────────── */
.affiliate-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}
.affiliate-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.affiliate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.7rem; }
.affiliate-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}
.affiliate-link:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,197,71,0.1); opacity: 1; }
.aff-icon { font-size: 1.25rem; flex-shrink: 0; }
.aff-text { flex: 1; }
.aff-name { font-size: 0.82rem; font-weight: 600; color: var(--text); display: block; }
.aff-desc { font-size: 0.7rem; color: var(--muted); }
.aff-arrow { color: var(--muted); font-size: 0.85rem; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: #dde1e7;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb span { color: var(--border); }

/* Stats bar removed */

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
}
.site-footer a { color: var(--brand); }

/* ── CATEGORY / BRAND INDEX PAGE ────────────────────────── */
.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
/* Old card styles removed — see rebuilt cards below */


/* ── Brand grouped sections (appliance type pages) ───────── */
.brand-group {
  margin-bottom: 2.75rem;  /* generous gap between brand sections */
}
.brand-group-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}
.brand-group-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 400;
}
.brand-group-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.brand-group-link {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.brand-group-link:hover { opacity: 0.75; }


/* ── WPForms styling — white text for dark theme ─────────── */
.wpforms-form .wpforms-field-label,
.wpforms-form label {
  color: #e8eaf0 !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: #e8eaf0 !important;
  border-radius: 6px !important;
  padding: 0.6rem 0.8rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.88rem !important;
  width: 100% !important;
}
.wpforms-form input[type="text"]::placeholder,
.wpforms-form textarea::placeholder {
  color: #6b7280 !important;
}
.wpforms-form input[type="text"]:focus,
.wpforms-form textarea:focus {
  border-color: var(--brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(124,106,247,0.2) !important;
}
.wpforms-form .wpforms-submit-container {
  text-align: center;
}
.wpforms-form button[type="submit"],
.wpforms-form input[type="submit"],
.wpforms-form .wpforms-submit {
  background: var(--accent) !important;
  color: #0d0f14 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.7rem 2rem !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  letter-spacing: 0.04em !important;
  transition: opacity 0.2s !important;
}
.wpforms-form button[type="submit"]:hover,
.wpforms-form .wpforms-submit:hover {
  opacity: 0.85 !important;
}
.wpforms-form .wpforms-field-sublabel {
  color: #6b7280 !important;
  font-size: 0.75rem !important;
}
.wpforms-form .wpforms-required-label {
  color: var(--danger) !important;
}
/* Error messages */
.wpforms-form .wpforms-error {
  color: var(--danger) !important;
  font-size: 0.78rem !important;
}


/* ── Prevent iOS auto-zoom on input focus ────────────────
   iOS zooms in on any input with font-size < 16px.
   Setting font-size: 16px on focus prevents this entirely. */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  input[type="search"],
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Three breakpoints:
     768px  tablet  — minor adjustments
     480px  phone   — main layout changes
     360px  small   — fine-tuning for smallest screens
   ══════════════════════════════════════════════════════════ */

/* ── Tablet (up to 768px) ────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav — hide text links on mobile, show burger button */
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  /* Hero — reduce top padding */
  .hero { padding: 3.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 2rem; }

  /* Search — allow brand select to shrink */
  .search-brand { min-width: 100px; font-size: 0.82rem; }

  /* Brand grid — 4 columns on tablet */
  .brand-grid { grid-template-columns: repeat(4, 1fr); }

  /* Affiliate grid — 2 columns on tablet */
  .affiliate-grid { grid-template-columns: repeat(2, 1fr); }

  /* Error page header — shrink info panel width on tablet */
  .error-header-info { width: 42%; padding: 1.25rem 1.5rem; }

  /* Code grid — 2 columns */
  .code-grid { grid-template-columns: repeat(2, 1fr); }

  /* Suggestion description — shorter truncation */
  .sug-desc { max-width: 300px; }
}

/* ── Phone (up to 480px) ─────────────────────────────────── */
@media (max-width: 480px) {

  /* Global padding — keep content off screen edges */
  .container { padding: 0 1rem; }
  .content-area { padding: 1.5rem 0 3rem; }

  /* Hero */
  .hero { padding: 2.5rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.75rem; line-height: 1.15; }
  .hero p { font-size: 0.9rem; }
  .hero-eyebrow { font-size: 0.62rem; }

  /* Search bar — stack vertically on small screens */
  .search-row { flex-direction: column; border-radius: var(--radius); }
  .search-brand {
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .search-input {
    padding: 0.85rem 1rem;
    font-size: 16px; /* 16px minimum prevents iOS auto-zoom */
    border-radius: 0;
  }
  .search-btn {
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.85rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  /* Hint pills — allow wrapping, smaller text */
  /* hint pill mobile styles removed */

  /* Brand grid — 3 columns on phone */
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .brand-card { padding: 0.75rem 0.5rem; }
  .brand-card .name { font-size: 0.72rem; }
  .brand-card .count { font-size: 0.58rem; }

  /* Error page header — stack vertically on mobile */
  .error-page-header {
    flex-direction: column;
  }
  .error-header-identity {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .error-code-title { font-size: 2rem; }
  .error-brand-label { font-size: 0.88rem; margin-top: 0.4rem; }
  .model-header-badge { margin-top: 0.5rem; }
  .error-header-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    width: 100%;
    max-width: 100%;
    flex-shrink: unset;
    padding: 0;
    gap: 0;
  }
  .error-info-divider { display: none; }
  /* Divider is a grid child so needs contents to not occupy a cell */
  .error-header-info .error-info-divider { display: contents; }
  .error-info-item { padding: 0.85rem 1rem; }
  .error-info-item ~ .error-info-item {
    border-left: 1px solid var(--border);
    padding-left: 1rem;
  }
  .error-info-label { font-size: 0.62rem; }
  .error-info-value { font-size: 0.85rem; }
  .error-info-sub   { font-size: 0.7rem; }

  /* Content cards — reduce padding */
  .content-card    { padding: 1.1rem; }
  .affiliate-panel { padding: 1.1rem; }

  /* Fix steps — tighter spacing */
  .fix-steps li { font-size: 0.88rem; gap: 0.6rem; }
  .step-num     { width: 20px; height: 20px; font-size: 0.62rem; }

  /* Affiliate grid — single column on phone */
  .affiliate-grid { grid-template-columns: 1fr; }
  .affiliate-link { padding: 0.75rem; }
  .aff-name       { font-size: 0.8rem; }
  .aff-desc       { font-size: 0.67rem; }

  /* Breadcrumb — wrap and shrink */
  .breadcrumb { font-size: 0.7rem; gap: 0.3rem; padding: 1rem 0 0.4rem; }

  /* Code grid — single column, no overflow */
  .code-grid { grid-template-columns: 1fr; }
  .not-found-card .code-grid { width: 100%; overflow: hidden; }
  .not-found-card .code-card { min-width: 0; box-sizing: border-box; }

  /* Suggestions — full width, no overflow truncation */
  .search-suggestions { left: 0; right: 0; }
  .sug-desc           { max-width: 220px; font-size: 0.7rem; }
  .sug-code           { font-size: 0.82rem; }

  /* Not found page */
  .nf-title           { font-size: 1.4rem; }
  .nf-tip-grid        { grid-template-columns: 1fr; }
  .nf-form-row        { flex-direction: column; }
  .nf-input           { min-width: unset; width: 100%; }
  .not-found-card     { padding: 1.5rem 1.1rem; }
  .nf-submit-box      { padding: 1.25rem 1.1rem; }

  /* Footer */
  .site-footer        { padding: 1.5rem 1rem; font-size: 0.7rem; }
}

/* ── Small phones (up to 360px) ──────────────────────────── */
@media (max-width: 360px) {

  /* Brand grid — 2 columns on very small screens */
  .brand-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero title */
  .hero h1 { font-size: 1.5rem; }

  /* Error code display */
  .error-code-title { font-size: 1.6rem; }
}

/* ── PULSE DOT (live indicator) ─────────────────────────── */
.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}

/* ── WordPress default content inside .content-card ─────── */
.entry-content h2 { color: var(--accent); }
.entry-content ol { padding-left: 1.5rem; }
.entry-content ol li { margin-bottom: 0.5rem; font-weight: 300; font-size: 0.93rem; }
.entry-content p { font-weight: 300; }

/* ── SEARCH SUGGESTIONS DROPDOWN ────────────────────────── */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  overscroll-behavior: contain;      /* prevent scroll escaping to page */
}

/* Make search-wrap position:relative so dropdown is anchored to it */
.search-wrap {
  position: relative;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.suggestion-item:last-child  { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.active      { background: var(--surface2); }

/* Suggestions centred layout */
.sug-left   { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; flex: 1; text-align: center; }
.sug-code   { font-family: 'DM Mono', monospace; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.sug-desc   { font-size: 0.72rem; color: var(--muted); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.sug-arrow  { color: var(--muted); font-size: 0.85rem; margin-left: 0.75rem; flex-shrink: 0; }

/* ── SHAKE ANIMATION (empty search submit) ───────────────── */
@keyframes ef-shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px); }
  75%      { transform: translateX(-2px); }
  90%      { transform: translateX(2px); }
}
.ef-shake {
  animation: ef-shake 0.5s ease;
  border-color: var(--danger) !important;
}

/* ── NOT FOUND PAGE ──────────────────────────────────────── */
.not-found-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.nf-icon   { font-size: 3rem; margin-bottom: 1rem; display: block; }

.nf-title  {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.nf-code   {
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  font-style: normal;
}

.nf-sub    {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.nf-search { max-width: 600px; margin: 0 auto 2rem; }

.nf-tips   { text-align: left; max-width: 600px; margin: 0 auto; }
.nf-tips-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.nf-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.nf-tip {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}
.nf-tip-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Not-found submit box */
.nf-submit-box {
  background: var(--surface2);
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.nf-submit-box h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.nf-submit-box > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 300;
}
/* WPForms inside the request box — centred, full-width, themed */
.nf-submit-box .wpforms-container,
.nf-submit-box .wpforms-container-full {
  max-width: 560px !important;
  margin: 0 auto !important;
  text-align: left;
}
.nf-submit-box .wpforms-form .wpforms-field-container {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.nf-submit-box .wpforms-form .wpforms-field {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
.nf-submit-box .wpforms-form input[type="text"],
.nf-submit-box .wpforms-form input[type="email"],
.nf-submit-box .wpforms-form input[type="number"],
.nf-submit-box .wpforms-form input[type="tel"],
.nf-submit-box .wpforms-form textarea,
.nf-submit-box .wpforms-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  background: var(--surface2) !important;
  background-color: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 6px !important;
  padding: 0.65rem 0.9rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
}
.nf-submit-box .wpforms-form input::placeholder,
.nf-submit-box .wpforms-form textarea::placeholder {
  color: #6b7280 !important;
}
.nf-submit-box .wpforms-form input:focus,
.nf-submit-box .wpforms-form textarea:focus {
  border-color: var(--brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(124,106,247,0.2) !important;
  background: var(--surface2) !important;
}
/* Override browser autocomplete/autofill white background */
.nf-submit-box .wpforms-form input:-webkit-autofill,
.nf-submit-box .wpforms-form input:-webkit-autofill:hover,
.nf-submit-box .wpforms-form input:-webkit-autofill:focus,
.wpforms-form input:-webkit-autofill,
.wpforms-form input:-webkit-autofill:hover,
.wpforms-form input:-webkit-autofill:focus,
.submit-fix-card input:-webkit-autofill,
.submit-fix-card input:-webkit-autofill:hover,
.submit-fix-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #1a1d27 inset !important;
  -webkit-text-fill-color: #e8eaf0 !important;
  caret-color: #e8eaf0 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}
.nf-submit-box .wpforms-form .wpforms-field-label,
.nf-submit-box .wpforms-form label {
  color: var(--text) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
}
/* Kill WPForms default light field backgrounds */
.nf-submit-box .wpforms-form .wpforms-field-row,
.nf-submit-box .wpforms-form .wpforms-field-medium,
.nf-submit-box .wpforms-form .wpforms-field-large,
.nf-submit-box .wpforms-form .wpforms-field-small {
  max-width: 100% !important;
  width: 100% !important;
}
.nf-submit-box .wpforms-submit-container {
  text-align: center !important;
}
.nf-submit-box .wpforms-confirmation-container,
.nf-submit-box .wpforms-confirmation-container-full {
  background: rgba(124,106,247,0.15) !important;
  border: 1px solid rgba(124,106,247,0.4) !important;
  border-radius: 8px !important;
  color: #e8eaf0 !important;
  padding: 1.25rem 1.5rem !important;
  text-align: center;
}
.nf-submit-box .wpforms-confirmation-container p,
.nf-submit-box .wpforms-confirmation-container-full p {
  color: #e8eaf0 !important;
  margin: 0 !important;
}

.nf-brands {
  margin-bottom: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Request form fields */
.nf-submit-box-fields {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.nf-field-group {
  margin-bottom: 1rem;
}
.nf-field-group label {
  display: block;
  color: var(--text) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.nf-field-group input,
.nf-field-group select {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.nf-field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.9rem center !important;
  background-size: 12px !important;
  padding-right: 2.2rem;
  cursor: pointer;
}
.nf-field-group select option {
  background: var(--surface);
  color: var(--text);
}
.nf-field-group input:focus,
.nf-field-group select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px rgba(124,106,247,0.2);
}
.nf-field-group input::placeholder { color: #6b7280; }
/* Suppress browser autofill white background */
.nf-field-group input:-webkit-autofill,
.nf-field-group input:-webkit-autofill:hover,
.nf-field-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #13151f inset !important;
  -webkit-text-fill-color: #e8eaf0 !important;
  caret-color: #e8eaf0 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

@media (max-width: 600px) {
  .nf-tip-grid { grid-template-columns: 1fr; }
  .nf-form-row { flex-direction: column; align-items: stretch; }
  .nf-input    { min-width: unset; }
}

/* ── Probability of Failure Panel ───────────────────────── */
.prob-panel {
  background: var(--surface);
  border: 2px solid rgba(124,106,247,0.3);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.prob-panel-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.prob-rows { display: flex; flex-direction: column; gap: 0.75rem; }
.prob-row-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.prob-icon { font-size: 1.2rem; flex-shrink: 0; width: 1.5rem; text-align: center; }
.prob-bar-wrap { flex: 1; min-width: 0; }
.prob-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  gap: 0.5rem;
}
.prob-desc {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.prob-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}
.prob-bar-bg {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
/* Colour tiers */
.prob-high .prob-pct    { color: #fca5a5; }
.prob-high .prob-bar-fill { background: #ef4444; }
.prob-med  .prob-pct    { color: #fde047; }
.prob-med  .prob-bar-fill { background: #eab308; }
.prob-low  .prob-pct    { color: #86efac; }
.prob-low  .prob-bar-fill { background: #22c55e; }
.prob-disclaimer {
  margin: 0.85rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 480px) {
  .prob-panel { padding: 1.1rem; }
  .prob-desc  { font-size: 0.82rem; }
}

/* ── Parts Required Panel ───────────────────────────────── */
.parts-panel {
  background: var(--surface);
  border: 2px solid rgba(124,106,247,0.35);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.parts-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.parts-panel-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.parts-panel-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 0.15rem;
}
.parts-panel-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  font-weight: 300;
}
.parts-table-wrap {
  overflow-x: auto;
}
.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
}
.parts-table thead tr {
  border-bottom: 1px solid rgba(124,106,247,0.3);
}
.parts-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.parts-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.parts-table tbody tr:last-child { border-bottom: none; }
.parts-table tbody tr:hover { background: rgba(124,106,247,0.06); }
.parts-td-name {
  padding: 0.7rem 0.75rem;
  color: var(--text);
  font-weight: 500;
}
.parts-td-cost {
  padding: 0.7rem 0.75rem;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  white-space: nowrap;
}
.parts-td-link {
  padding: 0.7rem 0.75rem;
  white-space: nowrap;
}
.parts-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.38rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.parts-buy-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
}
.parts-btn-arrow {
  font-size: 0.85rem;
  transition: transform 0.15s;
}
.parts-buy-btn:hover .parts-btn-arrow { transform: translateX(3px); }
.parts-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}
.parts-disclaimer a { color: var(--brand); }
@media (max-width: 480px) {
  .parts-panel { padding: 1.1rem; }
  .parts-table th, .parts-td-name, .parts-td-cost, .parts-td-link { padding: 0.55rem 0.5rem; }
  .parts-buy-btn { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
}

/* ── Mobile parts table — stacked card layout ────────────────── */
@media (max-width: 600px) {
  .parts-table thead { display: none; }

  .parts-table tbody tr {
    display:       block;
    border:        1px solid var(--border);
    border-radius: 8px;
    padding:       0.75rem;
    margin-bottom: 0.6rem;
    background:    var(--surface2);
  }
  .parts-table tbody tr:last-child { margin-bottom: 0; }
  .parts-table tbody tr:hover { background: var(--surface2); }

  .parts-td-name,
  .parts-td-cost,
  .parts-td-link {
    display: block;
    padding: 0;
    border:  none;
    white-space: normal;
  }

  .parts-td-name {
    font-size:     0.88rem;
    margin-bottom: 0.3rem;
    line-height:   1.4;
  }

  /* Badge sits inline after the part name on mobile */
  .parts-model-badge {
    display:    inline-block !important;
    margin-top: 0.25rem;
    font-size:  0.6rem;
    padding:    0.1rem 0.4rem;
  }
  /* Hide badge when not active (JS already handles this,
     but ensure it's hidden by default on mobile too) */
  .parts-model-badge[style*="none"] { display: none !important; }

  .parts-td-cost {
    font-size:     0.82rem;
    margin-bottom: 0.5rem;
  }
  .parts-td-cost::before {
    content:        'Cost: ';
    font-family:    'DM Sans', sans-serif;
    font-size:      0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color:          var(--muted);
    margin-right:   0.3rem;
  }

  .parts-td-link { margin-top: 0.1rem; }

  /* Button stays same size but stretches full width */
  .parts-buy-btn {
    width:           100%;
    justify-content: center;
    font-size:       0.82rem;
    padding:         0.5rem 0.75rem;
  }
}

/* ── AFFILIATE DISCLAIMER (auto-injected on every post) ─── */
.affiliate-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  padding: 0.65rem 1rem;
  background: var(--surface2);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem !important;
}
.affiliate-disclaimer strong { color: var(--text); font-style: normal; font-weight: 600; }
.disclaimer-icon { flex-shrink: 0; font-style: normal; }

/* ── STATIC PAGE CONTENT (page.php) ─────────────────────── */
/* Styles for Privacy Policy, Affiliate Disclosure etc. */
.page-content p    { margin-bottom: 1rem; font-weight: 300; line-height: 1.8; }
.page-content h2   { font-family: 'DM Serif Display', serif; color: var(--accent); margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.page-content h3   { font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 0.5rem; font-weight: 600; }
.page-content ul,
.page-content ol   { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li   { margin-bottom: 0.4rem; font-weight: 300; line-height: 1.7; }
.page-content a    { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.page-content strong { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   CATEGORY PAGE — Improved cards with appliance + severity
   ══════════════════════════════════════════════════════════ */

/* ── Category header ─────────────────────────────────────── */
.cat-header { margin-bottom: 2rem; }

.cat-intro {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0.5rem 0 1rem;
  line-height: 1.6;
}

.cat-counts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;  /* space before brand groups */
}

.cat-count-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 20px;
}

.cat-count-model {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(124,106,247,0.06);
}

/* ══════════════════════════════════════════════════════════
   CODE CARDS — complete single definition
   ══════════════════════════════════════════════════════════ */

/* Outer card link */
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  min-height: 76px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.code-card:hover {
  border-color: var(--brand);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,106,247,0.1);
}
.code-card--model { border-left: 3px solid var(--brand); }
.code-card--model:hover { border-color: var(--brand); }

/* Left column — stacks content vertically */
.code-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  flex: 1;
  min-width: 0;
}

/* Right column — severity + arrow centred vertically */
.code-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 78px;
}

/* Error code — bold mono */
/* Override global a{} cascade — all card text uses explicit colours */
.code-card .cc-code {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8eaf0;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.code-card .cc-appliance {
  font-size: 0.78rem;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.3;
}

.code-card .cc-model-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: #7c6af7;
  background: rgba(124,106,247,0.1);
  border: 1px solid rgba(124,106,247,0.3);
  padding: 1px 7px;
  border-radius: 10px;
  line-height: 1.6;
}

.code-card .cc-desc {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 300;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* Keep arrow muted until hover */
.code-card .cc-arrow {
  color: #6b7280;
}
.code-card:hover .cc-arrow {
  color: #7c6af7;
  transform: translateX(3px);
}

/* Severity pill */
.cc-sev {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.cc-sev--high   { background: rgba(248,113,113,0.15); color: var(--danger); border: 1px solid rgba(248,113,113,0.35); }
.cc-sev--medium { background: rgba(251,146,60,0.15);  color: var(--warn);   border: 1px solid rgba(251,146,60,0.35); }
.cc-sev--low    { background: rgba(74,222,128,0.15);  color: var(--accent2);border: 1px solid rgba(74,222,128,0.35); }

/* Arrow */
.cc-arrow {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.code-card:hover .cc-arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* Brand tag (appliance type pages) */
.code-card-brand-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(124,106,247,0.08);
  border: 1px solid rgba(124,106,247,0.22);
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ── Remaining old class aliases (kept for safety) ─────── */
.code-card-code     { font-family:'DM Mono',monospace; font-size:1.1rem; font-weight:600; color:var(--text); }
.code-card-appliance { font-size:0.78rem; color:var(--muted); font-weight:400; }
.code-card-desc     { font-size:0.78rem; color:var(--muted); font-weight:300; }
.code-card-sev      { font-size:0.68rem; font-weight:700; padding:3px 9px; border-radius:20px; }
.code-card-sev.severity-high   { background:rgba(248,113,113,0.15); color:var(--danger); border:1px solid rgba(248,113,113,0.35); }
.code-card-sev.severity-medium { background:rgba(251,146,60,0.15);  color:var(--warn);   border:1px solid rgba(251,146,60,0.35); }
.code-card-sev.severity-low    { background:rgba(74,222,128,0.15);  color:var(--accent2);border:1px solid rgba(74,222,128,0.35); }
.code-card-arrow    { font-size:0.9rem; color:var(--muted); transition:color 0.2s,transform 0.2s; }
.code-card:hover .code-card-arrow { color:var(--brand); transform:translateX(3px); }
.code-card-model-badge { font-family:'DM Mono',monospace; font-size:0.68rem; color:var(--brand); background:rgba(124,106,247,0.1); border:1px solid rgba(124,106,247,0.3); padding:1px 7px; border-radius:10px; }

/* Empty state */
.code-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Model section ────────────────────────────────────────── */
.model-section { margin-top: 2.5rem; }

.model-section-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.model-section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.model-section-header p {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Mobile adjustments for new cards ───────────────────── */
@media (max-width: 480px) {
  .cc-desc     { max-width: 180px; font-size: 0.75rem; }
  .cc-code     { font-size: 1rem; }
  .cc-sev      { font-size: 0.6rem; padding: 2px 6px; }
  .code-card-right { gap: 0.3rem; }
  .cc-appliance { font-size: 0.72rem; }
}

/* ══════════════════════════════════════════════════════════
   MODEL-SPECIFIC PAGE STYLES
   ══════════════════════════════════════════════════════════ */

/* ── Model badge in page header ─────────────────────────── */
.model-header-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  background: rgba(124,106,247,0.1);
  border: 1px solid rgba(124,106,247,0.35);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  margin: 0.5rem 0 0;
}
.model-badge-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.model-badge-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
}

/* ── Model details card ─────────────────────────────────── */
.model-details-card { padding: 1.4rem 1.5rem; }

.model-details-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.model-details-icon { font-size: 1rem; }
.model-details-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}

.model-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.model-detail-item {}

.mdi-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.mdi-value {
  font-size: 0.9rem;
  color: #e8eaf0;
  font-weight: 400;
  line-height: 1.4;
}
.mdi-highlight {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.manual-link {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(124,106,247,0.3);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.manual-link:hover { opacity: 0.75; }

/* ── Terms of Use page ──────────────────────────────────── */
.ef-terms-warning {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}
.ef-terms-warning span { font-size: 1.3rem; flex-shrink: 0; }
.ef-terms-warning strong { color: #fca5a5; display: block; margin-bottom: 0.2rem; }
.ef-terms-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 1.75rem 0 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ef-terms-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.ef-terms-content p { color: var(--muted); font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.85rem; }
.ef-terms-content ul { color: var(--muted); font-size: 0.9rem; line-height: 1.75; padding-left: 1.25rem; margin-bottom: 0.85rem; }
.ef-terms-content ul li { margin-bottom: 0.4rem; }
.ef-terms-content a { color: var(--brand); }

/* ── How to Find Model Number page ──────────────────────── */
.mnp-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.mnp-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.mnp-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.mnp-sub {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}
.mnp-toptip {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(234,197,0,0.08);
  border: 1px solid rgba(234,197,0,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.mnp-toptip-icon { font-size: 1.5rem; flex-shrink: 0; }
.mnp-toptip strong { color: var(--accent); display: block; margin-bottom: 0.25rem; }
.mnp-card { margin-bottom: 1.25rem; }
.mnp-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.mnp-table-wrap { overflow-x: auto; }
.mnp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.mnp-table th {
  text-align: left;
  padding: 0.55rem 0.85rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mnp-table td {
  padding: 0.65rem 0.85rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.mnp-table tr:last-child td { border-bottom: none; }
.mnp-table tr:hover td { background: rgba(255,255,255,0.02); }
.mnp-mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent);
}
.mnp-brand-nav {
  margin-bottom: 1.5rem;
}
.mnp-brand-nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.mnp-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mnp-brand-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.mnp-brand-pill:hover {
  border-color: var(--brand);
  color: var(--text);
  background: var(--surface2);
}
.mnp-brand-section { margin-bottom: 1.25rem; scroll-margin-top: 80px; }
.mnp-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--brand-color, var(--border));
}
.mnp-brand-emoji { font-size: 1.5rem; }
.mnp-brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin: 0;
}
.mnp-appliance-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mnp-appliance-block:last-of-type { border-bottom: none; margin-bottom: 0.5rem; }
.mnp-appliance-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mnp-location-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.mnp-location-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.mnp-location-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}
.mnp-tip-box {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(124,106,247,0.07);
  border: 1px solid rgba(124,106,247,0.2);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
}
.mnp-tip-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.mnp-back-top {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  transition: color 0.2s;
}
.mnp-back-top:hover { color: var(--brand); }
@media (max-width: 480px) {
  .mnp-title { font-size: 1.5rem; }
  .mnp-hero { padding: 1.5rem 1rem; }
  .mnp-table td, .mnp-table th { padding: 0.5rem; }
}

/* ── Submit fix card ────────────────────────────────────── */
.submit-fix-card {
  text-align: center;
  border: 1px dashed var(--brand) !important;
}
.submit-fix-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.submit-fix-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  font-weight: 300;
}
/* Centred, constrained WPForms wrapper */
.submit-fix-card .wpforms-container,
.submit-fix-card .wpforms-container-full {
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.submit-fix-card .wpforms-form {
  text-align: left;
}
/* Force field list to block layout */
.submit-fix-card .wpforms-form .wpforms-field-container {
  display: block !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Each field full-width — DO NOT use [class*="wpforms-"] wildcard,
   it would make the spinner huge */
.submit-fix-card .wpforms-form .wpforms-field,
.submit-fix-card .wpforms-form .wpforms-one-half,
.submit-fix-card .wpforms-form .wpforms-one-third,
.submit-fix-card .wpforms-form .wpforms-two-thirds {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
/* Inputs fill their field */
.submit-fix-card .wpforms-form input[type="text"],
.submit-fix-card .wpforms-form input[type="email"],
.submit-fix-card .wpforms-form input[type="number"],
.submit-fix-card .wpforms-form input[type="tel"],
.submit-fix-card .wpforms-form textarea,
.submit-fix-card .wpforms-form select {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}
/* Remove browser up/down spin buttons on number inputs */
.submit-fix-card input[type="number"]::-webkit-outer-spin-button,
.submit-fix-card input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.submit-fix-card input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
/* GBP prefix wrapper */
.submit-fix-card .ef-cost-wrap {
  position: relative;
  display: block;
  width: 100% !important;
}
.submit-fix-card .ef-cost-wrap::before {
  content: '£';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}
.submit-fix-card .ef-cost-wrap input {
  padding-left: 2rem !important;
}
/* Submit button centred */
.submit-fix-card .wpforms-submit-container {
  text-align: center !important;
  padding-top: 0.5rem;
}
/* WPForms spinner: do not override — WPForms manages show/hide via inline style.
   Constraining the size only so it stays sensible if visible during submit. */
.wpforms-submit-spinner { max-width: 30px !important; max-height: 30px !important; overflow: hidden !important; }
.wpforms-submit-spinner svg { width: 30px !important; height: 30px !important; }
/* Confirmation message styling */
.submit-fix-card .wpforms-confirmation-container,
.submit-fix-card .wpforms-confirmation-container-full {
  background: rgba(124,106,247,0.15) !important;
  border: 1px solid rgba(124,106,247,0.4) !important;
  border-radius: 8px !important;
  color: #e8eaf0 !important;
  padding: 1.25rem 1.5rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.95rem !important;
}
/* Ensure any <p> inside confirmation is also bright */
.submit-fix-card .wpforms-confirmation-container p,
.submit-fix-card .wpforms-confirmation-container-full p {
  color: #e8eaf0 !important;
  margin: 0 !important;
}
/* ── Safety disclaimer banner ─────────────────────────── */

.ef-safety-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.35);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #fca5a5;
}
.ef-safety-disclaimer .ef-disc-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.ef-safety-disclaimer > div {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.ef-safety-disclaimer strong {
  color: #fecaca;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.ef-unplug {
  display: block;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(239,68,68,0.2);
  font-weight: 600;
  color: #fecaca;
}

/* ── Compact safety disclaimer variant ──────────────────── */
.ef-safety-compact {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  align-items: center;
}
.ef-safety-compact strong {
  display: inline;
  font-size: inherit;
  letter-spacing: 0;
}
.ef-unplug-inline {
  display: inline;
  margin-left: 0.35rem;
  color: #fecaca;
}

/* ── Quick fix card ─────────────────────────────────────── */
.ef-quick-fix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  margin-bottom: 1.25rem;
}
.ef-qf-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.ef-qf-info-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.ef-qf-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ef-qf-info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}
.ef-qf-info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.ef-qf-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.ef-qf-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 0.55rem;
}
.ef-qf-steps {
  padding-left: 1.3rem;
  margin: 0;
}
.ef-qf-steps li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0.3rem;
}
.ef-qf-toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.ef-qf-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid rgba(232,197,71,0.27);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 7px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.ef-qf-tool-link:hover {
  border-color: var(--accent);
  background: rgba(232,197,71,0.06);
}
.ef-qf-tool-supplier {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.68rem;
}
.ef-qf-affiliate-note {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}
@media (max-width: 600px) {
  .ef-quick-fix { padding: 1.1rem 1.25rem; }
  .ef-qf-info-row { gap: 1.5rem; }
}

/* ── Related guides grid ────────────────────────────────── */
.related-guides-card { margin-top: 1.25rem; }
.related-guides-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.related-guide-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s;
  position: relative;
}
.related-guide-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.rgc-code {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.rgc-desc {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}
.rgc-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}
.related-guide-card:hover .rgc-arrow {
  color: var(--brand);
  transform: translateY(-50%) translateX(3px);
}

/* ── Mobile — model page ────────────────────────────────── */
@media (max-width: 480px) {
  .model-details-grid  { grid-template-columns: 1fr; gap: 0.75rem; }
  .related-guides-grid { grid-template-columns: 1fr; }
  .model-details-card  { padding: 1.1rem; }
}

/* ── Card top row — code + optional brand tag ────────────── */
.code-card-top-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Brand tag (shown on appliance type pages) */
.code-card-brand-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(124,106,247,0.08);
  border: 1px solid rgba(124,106,247,0.25);
  padding: 1px 7px;
  border-radius: 10px;
}

/* card-left/right/arrow consolidated below */

/* Mobile — brand group header stacks */
@media (max-width: 480px) {
  .brand-group-header { flex-wrap: wrap; gap: 0.4rem; }
  .brand-group-link   { margin-left: 0; width: 100%; }
  .brand-group-name   { font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE — brand pills + appliance sub-groups
   ══════════════════════════════════════════════════════════ */

/* Page header */
.results-page-header {
  margin-bottom: 1.5rem;
}
.results-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
  margin: 0 0 0.3rem;
}
.results-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Brand jump pills — one per brand */
.results-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.results-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.results-brand-pill:hover {
  border-color: var(--brand);
  background: var(--surface2);
  color: var(--text);
}
.results-pill-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 6px;
  color: var(--muted);
}

/* Brand section */
.results-brand-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 80px;
}

/* Brand section header */
.results-brand-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.results-brand-icon { font-size: 1rem; }
.results-brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text);
}
.results-brand-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}
.results-brand-link {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.results-brand-link:hover { opacity: 0.75; }

/* Appliance sub-group within a brand */
.results-appliance-group {
  margin-bottom: 1.25rem;
}
.results-appliance-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding-left: 0.1rem;
}
.results-appliance-label span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 6px;
  color: var(--muted);
  font-weight: 400;
}

/* Mobile */
@media (max-width: 480px) {
  .results-brand-header { flex-wrap: wrap; gap: 0.4rem; }
  .results-brand-link   { margin-left: 0; width: 100%; }
  .results-brand-pills  { gap: 0.4rem; }
  .results-brand-pill   { font-size: 0.78rem; padding: 0.4rem 0.75rem; }
}

/* ══════════════════════════════════════════════════════════
   INLINE SEARCH RESULTS — shown below search bar, no redirect
   ══════════════════════════════════════════════════════════ */
#ef-inline-results-box {
  margin-top: 0.75rem;
}
.ef-inline-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ef-inline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.ef-inline-title {
  flex: 1;
  font-size: 0.85rem;
  color: var(--muted);
}
.ef-inline-title strong { color: var(--text); }
.ef-inline-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}
.ef-inline-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}
.ef-inline-close:hover { color: var(--text); }

.ef-inline-body { padding: 0.75rem; }

.ef-inline-brand {
  margin-bottom: 1rem;
}
.ef-inline-brand:last-child { margin-bottom: 0; }
.ef-inline-brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  padding-left: 0.1rem;
}

.ef-inline-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 0.3rem;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.ef-inline-item:hover { border-color: var(--brand); background: var(--surface); }
.ef-inline-code {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  min-width: 48px;
}
.ef-inline-appliance {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}
.ef-inline-desc {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ef-inline-arrow {
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.ef-inline-item:hover .ef-inline-arrow { color: var(--brand); }

.ef-inline-notfound .ef-inline-body { text-align: center; padding: 1.25rem; }
.ef-inline-nf-text {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.ef-inline-nf-text a { color: var(--brand); }


/* ══════════════════════════════════════════════════════════════
   VIDEO GUIDE PANEL
   ══════════════════════════════════════════════════════════════ */

.ef-video-panel {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  margin-bottom: 1.25rem;
}

/* Header row — YouTube icon + title/source */
.ef-video-panel-header {
  display:       flex;
  align-items:   center;
  gap:           0.75rem;
  padding:       0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ef-video-yt-icon {
  width:         32px;
  height:        32px;
  background:    #ff0000;
  border-radius: 7px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

.ef-video-yt-icon svg {
  width:  16px;
  height: 16px;
  fill:   #fff;
  display: block;
}

.ef-video-panel-title {
  font-family:  'DM Serif Display', serif;
  font-size:    1rem;
  color:        var(--text);
  line-height:  1.3;
}

.ef-video-panel-source {
  font-size:    0.72rem;
  color:        var(--muted);
  margin-top:   2px;
  font-family:  'DM Mono', monospace;
}

/* 16:9 responsive embed — works on every screen width */
.ef-video-embed-wrap {
  position:        relative;
  padding-bottom:  56.25%;  /* 16:9 ratio */
  background:      #000;
  width:           100%;
}

.ef-video-embed-wrap iframe {
  position: absolute;
  inset:    0;
  width:    100%;
  height:   100%;
  border:   none;
  display:  block;
}

/* Body — description + key points */
.ef-video-panel-body {
  padding: 1rem 1.25rem 1.25rem;
}

.ef-video-panel-desc {
  font-size:   0.85rem;
  color:       var(--muted);
  line-height: 1.65;
  margin:      0 0 1rem;
}

.ef-video-kp-label {
  font-family:    'DM Mono', monospace;
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  0.55rem;
}

.ef-video-keypoints {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            0.45rem;
}

.ef-video-keypoints li {
  display:     flex;
  gap:         0.6rem;
  align-items: flex-start;
  font-size:   0.84rem;
  color:       var(--text);
  font-weight: 300;
  line-height: 1.5;
}

.ef-video-keypoints li::before {
  content:      '';
  width:        6px;
  height:       6px;
  border-radius: 50%;
  background:   var(--accent);
  flex-shrink:  0;
  margin-top:   6px;
}

/* ── Mobile (480px and below) ──────────────────────────── */
@media (max-width: 480px) {
  .ef-video-panel-header { padding: 0.75rem 1rem; gap: 0.6rem; }
  .ef-video-yt-icon      { width: 28px; height: 28px; border-radius: 6px; }
  .ef-video-yt-icon svg  { width: 14px; height: 14px; }
  .ef-video-panel-title  { font-size: 0.92rem; }
  .ef-video-panel-body   { padding: 0.85rem 1rem 1rem; }
  .ef-video-panel-desc   { font-size: 0.82rem; }
  .ef-video-keypoints li { font-size: 0.8rem; }
}


/* ══════════════════════════════════════════════════════════════
   QUICK FIX CARD v2 — redesigned layout
   ══════════════════════════════════════════════════════════════ */

/* v2 wrapper — extends the existing .ef-quick-fix chrome */
.ef-quick-fix.ef-qf-v2 {
  padding: 0;
  overflow: hidden;
}

/* ── Top section: label + chips ─────────────────────────────── */
.ef-qf2-top {
  padding: 1rem 1.25rem 1rem;
}

.ef-qf2-chips {
  display:   flex;
  gap:       0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.ef-qf2-chip {
  display:       flex;
  align-items:   center;
  gap:           0.45rem;
  background:    var(--surface2);
  border:        1px solid var(--border);
  border-radius: 8px;
  padding:       0.4rem 0.7rem;
}

.ef-qf2-chip-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.ef-qf2-chip-label {
  font-size:      0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--muted);
  line-height:    1.2;
}

.ef-qf2-chip-val {
  font-size:   0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Interior sections ──────────────────────────────────────── */
.ef-qf2-section {
  padding: 0 1.25rem 0.25rem;
}

/* ── Toolkit checklist ──────────────────────────────────────── */
.ef-qf2-tools {
  display:        flex;
  flex-direction: column;
  gap:            0.45rem;
  margin-bottom:  0.5rem;
}

.ef-qf2-tool-row {
  display:       flex;
  align-items:   flex-start;
  gap:           0.6rem;
  background:    var(--surface2);
  border:        1px solid var(--border);
  border-radius: 8px;
  padding:       0.5rem 0.7rem;
}

.ef-qf2-tool-check {
  font-size:  1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  line-height: 1;
  color:      var(--muted);
}

.ef-qf2-tool-body {
  flex:      1;
  min-width: 0;
}

.ef-qf2-tool-top {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
  flex-wrap:   wrap;
}

.ef-qf2-tool-link {
  font-size:       0.83rem;
  font-weight:     700;
  color:           var(--accent);
  text-decoration: none;
  font-family:     'DM Mono', monospace;
  transition:      opacity 0.15s;
}

.ef-qf2-tool-link:hover { opacity: 0.75; }

.ef-qf2-tool-sup {
  font-size: 0.67rem;
  color:     var(--muted);
}

.ef-qf2-tool-note {
  font-size:   0.74rem;
  color:       var(--muted);
  margin-top:  0.15rem;
  line-height: 1.45;
  font-weight: 300;
}

/* ── Numbered steps ─────────────────────────────────────────── */
.ef-qf2-steps {
  display:        flex;
  flex-direction: column;
  gap:            0.55rem;
  margin-bottom:  0.25rem;
}

.ef-qf2-step-row {
  display:     flex;
  gap:         0.75rem;
  align-items: flex-start;
}

.ef-qf2-step-num {
  flex-shrink:     0;
  width:           25px;
  height:          25px;
  background:      rgba(232,197,71,0.12);
  border:          1px solid rgba(232,197,71,0.28);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       0.72rem;
  font-weight:     700;
  color:           var(--accent);
  margin-top:      0.05rem;
  font-family:     'DM Mono', monospace;
}

.ef-qf2-step-body {
  flex: 1;
}

.ef-qf2-step-title {
  font-size:   0.87rem;
  font-weight: 700;
  color:       var(--text);
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.ef-qf2-step-detail {
  font-size:   0.8rem;
  color:       #9ca3af;
  line-height: 1.6;
  font-weight: 300;
}

.ef-qf2-bundle-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0.55rem;
  background:      #e47911;
  color:           #0d0f14;
  font-weight:     700;
  font-size:       0.82rem;
  padding:         0.65rem 1.1rem;
  border-radius:   8px;
  text-decoration: none;
  margin-bottom:   0.5rem;
  letter-spacing:  0.02em;
  transition:      opacity 0.2s;
}
.ef-qf2-bundle-btn:hover { opacity: 0.88; color: #0d0f14; }

@media (max-width: 480px) {
  .ef-qf2-bundle-btn { font-size: 0.76rem; padding: 0.6rem 0.9rem; }
}

/* ── Footer nudge ───────────────────────────────────────────── */
.ef-qf2-footer {
  display:       flex;
  align-items:   flex-start;
  gap:           0.5rem;
  background:    rgba(124,106,247,0.07);
  border-top:    1px solid rgba(124,106,247,0.18);
  padding:       0.7rem 1.25rem;
  font-size:     0.8rem;
  color:         var(--muted);
  line-height:   1.55;
  margin-top:    0.75rem;
}

.ef-qf2-footer-icon {
  color:       var(--brand);
  font-size:   1rem;
  flex-shrink: 0;
  margin-top:  -1px;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ef-qf2-top        { padding: 0.85rem 1rem 0.85rem; }
  .ef-qf2-section    { padding: 0 1rem 0.25rem; }
  .ef-qf2-chip       { padding: 0.35rem 0.6rem; }
  .ef-qf2-chip-val   { font-size: 0.8rem; }
  .ef-qf2-tool-row   { padding: 0.45rem 0.6rem; }
  .ef-qf2-tool-link  { font-size: 0.8rem; }
  .ef-qf2-step-title { font-size: 0.84rem; }
  .ef-qf2-footer     { padding: 0.65rem 1rem; font-size: 0.76rem; }
}


/* ══════════════════════════════════════════════════════════════
   PARTS PANEL — model number search upgrade
   ══════════════════════════════════════════════════════════════ */

.parts-model-row {
  display:       flex;
  gap:           0.75rem;
  align-items:   flex-end;
  background:    var(--surface2);
  border:        1px solid var(--border);
  border-radius: 8px;
  padding:       0.75rem 1rem;
  margin-bottom: 1.1rem;
  flex-wrap:     wrap;
}

.parts-model-field {
  flex:      1;
  min-width: 180px;
}

.parts-model-label {
  display:        block;
  font-family:    'DM Mono', monospace;
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--muted);
  margin-bottom:  0.35rem;
}

.parts-model-input {
  width:       100%;
  background:  var(--bg);
  border:      1px solid var(--border);
  border-radius: 6px;
  color:       var(--text);
  font-family: 'DM Mono', monospace;
  font-size:   0.88rem;
  padding:     0.45rem 0.75rem;
  outline:     none;
  transition:  border-color 0.2s;
}

.parts-model-input:focus { border-color: var(--accent); }

.parts-model-hint {
  font-size:   0.7rem;
  color:       var(--muted);
  margin-top:  0.3rem;
  line-height: 1.45;
  font-weight: 300;
}

.parts-model-status {
  display:       flex;
  align-items:   center;
  gap:           0.4rem;
  font-size:     0.72rem;
  font-family:   'DM Mono', monospace;
  padding:       0.3rem 0.7rem;
  border-radius: 6px;
  background:    rgba(107,114,128,0.1);
  border:        1px solid var(--border);
  color:         var(--muted);
  flex-shrink:   0;
  transition:    all 0.2s;
  margin-bottom: 1px;
}

.parts-model-status--active {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.3);
  color:        var(--accent2);
}

.parts-model-dot { font-size: 0.6rem; }

/* Filtered button state */
.parts-buy-btn--filtered {
  background: #16a34a !important;
}

/* Model filtered badge on part name */
.parts-model-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           0.2rem;
  background:    rgba(74,222,128,0.08);
  border:        1px solid rgba(74,222,128,0.22);
  border-radius: 4px;
  padding:       0.1rem 0.45rem;
  font-size:     0.65rem;
  font-family:   'DM Mono', monospace;
  color:         var(--accent2);
  margin-left:   0.4rem;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .parts-model-row    { flex-direction: column; align-items: stretch; }
  .parts-model-status { align-self: flex-start; }
  .parts-model-input  { font-size: 16px; }
}


/* ══════════════════════════════════════════════════════════════
   STRUCTURED PANELS — shared chrome
   ══════════════════════════════════════════════════════════════ */

.ef-struct-panel {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  margin-bottom: 1.25rem;
}

.ef-struct-head {
  display:       flex;
  align-items:   center;
  gap:           0.75rem;
  padding:       0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ef-struct-head--danger { border-bottom-color: rgba(248,113,113,0.25); }

.ef-struct-icon {
  width:           30px;
  height:          30px;
  border-radius:   7px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.ef-struct-icon svg { width: 15px; height: 15px; display: block; }

.ef-struct-icon--sym  { background: rgba(232,197,71,0.12); color: var(--accent); }
.ef-struct-icon--eng  { background: rgba(248,113,113,0.1);  color: var(--danger); }
.ef-struct-icon--faq  { background: rgba(124,106,247,0.12); color: var(--brand);  }
.ef-struct-icon--guide{ background: rgba(232,197,71,0.12); color: var(--accent); }

.ef-struct-label {
  font-family:    'DM Mono', monospace;
  font-size:      0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--muted);
  margin-bottom:  2px;
}

.ef-struct-title {
  font-family: 'DM Serif Display', serif;
  font-size:   0.95rem;
  color:       var(--text);
  margin:      0;
}


/* ── SYMPTOMS ────────────────────────────────────────────── */

.ef-sym-list {
  list-style: none;
  padding:    0 1.25rem;
  margin:     0;
}

.ef-sym-item {
  display:       flex;
  align-items:   flex-start;
  gap:           0.75rem;
  padding:       0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  counter-increment: sym-counter;
}
.ef-sym-item:last-child { border-bottom: none; }

.ef-sym-item::before {
  content:        counter(sym-counter);
  font-family:    'DM Mono', monospace;
  font-size:      0.68rem;
  font-weight:    500;
  color:          var(--accent);
  background:     rgba(232,197,71,0.1);
  border:         1px solid rgba(232,197,71,0.22);
  border-radius:  4px;
  padding:        0.1rem 0.45rem;
  flex-shrink:    0;
  min-width:      26px;
  text-align:     center;
  margin-top:     2px;
  line-height:    1.6;
}

.ef-sym-list { counter-reset: sym-counter; }

.ef-sym-text {
  font-size:   0.87rem;
  color:       var(--text);
  font-weight: 300;
  line-height: 1.55;
}


/* ── ENGINEER ESCALATION ─────────────────────────────────── */

.ef-engineer-panel { border-color: rgba(248,113,113,0.3); }

.ef-eng-list {
  list-style: none;
  padding:    0 1.25rem;
  margin:     0.25rem 0 0;
}

.ef-eng-item {
  display:       flex;
  align-items:   flex-start;
  gap:           0.7rem;
  padding:       0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ef-eng-item:last-child { border-bottom: none; }

.ef-eng-dot {
  width:       6px;
  height:      6px;
  border-radius: 50%;
  background:  var(--danger);
  flex-shrink: 0;
  margin-top:  8px;
}

.ef-eng-text {
  font-size:   0.87rem;
  color:       var(--text);
  font-weight: 300;
  line-height: 1.55;
}

.ef-eng-footer {
  display:       flex;
  align-items:   flex-start;
  gap:           0.5rem;
  margin:        0.5rem 1.25rem 1rem;
  background:    rgba(248,113,113,0.07);
  border:        1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
  padding:       0.55rem 0.85rem;
  font-size:     0.78rem;
  color:         var(--danger);
  line-height:   1.5;
}
.ef-eng-footer svg { flex-shrink: 0; margin-top: 2px; }


/* ── FAQ ACCORDIONS ──────────────────────────────────────── */

.ef-faq-list { padding: 0.35rem 0; }

.ef-faq-item {
  border-bottom: 1px solid var(--border);
}
.ef-faq-item:last-child { border-bottom: none; }

.ef-faq-summary {
  list-style:      none;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             0.75rem;
  padding:         0.8rem 1.25rem;
  font-size:       0.88rem;
  font-weight:     500;
  color:           var(--text);
  cursor:          pointer;
  user-select:     none;
  transition:      color 0.15s;
}
.ef-faq-summary::-webkit-details-marker { display: none; }
.ef-faq-item[open] .ef-faq-summary { color: var(--accent); }

.ef-faq-chevron {
  width:      18px;
  height:     18px;
  flex-shrink: 0;
  color:      var(--muted);
  transition: transform 0.2s;
}
.ef-faq-item[open] .ef-faq-chevron { transform: rotate(180deg); }

.ef-faq-answer {
  padding:     0.1rem 1.25rem 0.9rem;
  font-size:   0.85rem;
  color:       var(--muted);
  line-height: 1.7;
  font-weight: 300;
}


/* ── FIX GUIDE ───────────────────────────────────────────── */

.ef-struct-head { flex-wrap: wrap; }

.ef-guide-head-text { flex: 1; min-width: 0; }

.ef-guide-meta-chips {
  display:  flex;
  gap:      0.45rem;
  flex-wrap: wrap;
}

.ef-guide-chip {
  display:       flex;
  flex-direction: column;
  background:    var(--surface2);
  border:        1px solid var(--border);
  border-radius: 7px;
  padding:       0.3rem 0.65rem;
  min-width:     70px;
}

.ef-guide-chip-label {
  font-family:    'DM Mono', monospace;
  font-size:      0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--muted);
  line-height:    1.3;
}

.ef-guide-chip-val {
  font-size:   0.82rem;
  font-weight: 700;
  color:       var(--text);
  line-height: 1.3;
}

/* Steps */
.ef-guide-steps { padding: 0.5rem 0 0.25rem; }

.ef-guide-step-row {
  display:     flex;
  gap:         0;
  align-items: stretch;
}

.ef-guide-step-row.ef-guide-step--expandable { cursor: pointer; }
.ef-guide-step-row.ef-guide-step--expandable:hover .ef-guide-step-body {
  background: rgba(255,255,255,0.02);
}

.ef-guide-step-left {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  padding:         0.85rem 0.85rem 0;
  width:           52px;
  flex-shrink:     0;
}

.ef-guide-step-num {
  width:           27px;
  height:          27px;
  border-radius:   50%;
  background:      rgba(232,197,71,0.12);
  border:          1px solid rgba(232,197,71,0.25);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     'DM Mono', monospace;
  font-size:       0.72rem;
  font-weight:     500;
  color:           var(--accent);
  flex-shrink:     0;
  cursor:          pointer;
  transition:      background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
  padding:         0;
}
.ef-guide-step-num:hover {
  background:  rgba(232,197,71,0.22);
  transform:   scale(1.1);
}
.ef-guide-step-num:active { transform: scale(0.95); }

.ef-guide-step-line {
  width:       2px;
  background:  rgba(232,197,71,0.12);
  flex:        1;
  margin-top:  6px;
}

.ef-guide-step-row.ef-guide-step--done .ef-guide-step-num {
  background:  rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.35);
  color:       var(--accent2);
}
.ef-guide-step-row.ef-guide-step--done .ef-guide-step-line {
  background: rgba(74,222,128,0.2);
}

.ef-guide-step-body {
  flex:          1;
  padding:       0.85rem 1.25rem 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition:    background 0.15s;
}
.ef-guide-step-row:last-child .ef-guide-step-body { border-bottom: none; }

.ef-guide-step-title-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             0.5rem;
}

.ef-guide-step-title {
  font-size:   0.9rem;
  font-weight: 500;
  color:       var(--text);
  line-height: 1.4;
  transition:  color 0.2s;
}

.ef-guide-step-row.ef-guide-step--done .ef-guide-step-title {
  color:           var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(107,114,128,0.4);
}

.ef-guide-chevron {
  width:      18px;
  height:     18px;
  flex-shrink: 0;
  color:      var(--muted);
  transition: transform 0.2s;
}

.ef-guide-detail {
  font-size:   0.83rem;
  color:       #9ca3af;
  line-height: 1.65;
  font-weight: 300;
  margin:      0.35rem 0 0;
}

.ef-guide-callout {
  display:       flex;
  align-items:   flex-start;
  gap:           0.5rem;
  border-radius: 6px;
  padding:       0.5rem 0.75rem;
  font-size:     0.79rem;
  line-height:   1.55;
  margin-top:    0.6rem;
  font-weight:   300;
}
.ef-guide-callout svg { flex-shrink: 0; margin-top: 1px; }

.ef-guide-callout--warn {
  background:  rgba(251,146,60,0.07);
  border:      1px solid rgba(251,146,60,0.22);
  color:       var(--warn);
}
.ef-guide-callout--tip {
  background:  rgba(74,222,128,0.07);
  border:      1px solid rgba(74,222,128,0.22);
  color:       var(--accent2);
}

/* Progress bar footer */
.ef-guide-footer {
  display:       flex;
  align-items:   center;
  gap:           0.75rem;
  padding:       0.75rem 1.25rem;
  border-top:    1px solid var(--border);
}

.ef-guide-progress-wrap {
  flex:        1;
  display:     flex;
  align-items: center;
  gap:         0.65rem;
  min-width:   0;
}

.ef-guide-progress-bar {
  flex:         1;
  height:       4px;
  background:   var(--surface2);
  border-radius: 2px;
  overflow:     hidden;
}

.ef-guide-progress-fill {
  height:        100%;
  background:    var(--accent2);
  border-radius: 2px;
  transition:    width 0.3s ease;
}

.ef-guide-progress-label {
  font-family: 'DM Mono', monospace;
  font-size:   0.65rem;
  color:       var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ef-guide-reset {
  font-family:  'DM Mono', monospace;
  font-size:    0.65rem;
  color:        var(--muted);
  background:   none;
  border:       1px solid var(--border);
  border-radius: 5px;
  padding:      0.22rem 0.55rem;
  cursor:       pointer;
  transition:   all 0.15s;
  flex-shrink:  0;
}
.ef-guide-reset:hover { border-color: var(--accent); color: var(--accent); }


/* ── Mobile adjustments ──────────────────────────────────── */

@media (max-width: 480px) {
  .ef-struct-head          { padding: 0.75rem 1rem; gap: 0.6rem; }
  .ef-struct-icon          { width: 26px; height: 26px; }
  .ef-struct-icon svg      { width: 13px; height: 13px; }
  .ef-sym-list,
  .ef-eng-list             { padding: 0 1rem; }
  .ef-eng-footer           { margin: 0.4rem 1rem 0.85rem; font-size: 0.74rem; }
  .ef-faq-summary          { padding: 0.7rem 1rem; font-size: 0.84rem; }
  .ef-faq-answer           { padding: 0.1rem 1rem 0.8rem; }
  .ef-guide-step-left      { width: 44px; padding-left: 0.65rem; }
  .ef-guide-step-body      { padding-right: 1rem; }
  .ef-guide-step-title     { font-size: 0.86rem; }
  .ef-guide-detail         { font-size: 0.8rem; }
  .ef-guide-footer         { padding: 0.65rem 1rem; }
  .ef-guide-meta-chips     { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   MEANING PANEL
   ══════════════════════════════════════════════════════════════ */

.ef-meaning-panel {
  border-left: 4px solid var(--brand);
}

.ef-struct-icon--meaning {
  background: rgba(124,106,247,0.12);
  color:      var(--brand);
}

.ef-meaning-body {
  padding: 1rem 1.25rem 1.1rem;
}

.ef-meaning-summary {
  font-family:  'DM Serif Display', serif;
  font-size:    1rem;
  color:        var(--text);
  line-height:  1.5;
  margin-bottom: 0.75rem;
}

.ef-meaning-detail {
  font-size:   0.87rem;
  color:       #9ca3af;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.ef-meaning-also {
  font-size:   0.78rem;
  color:       var(--muted);
  font-family: 'DM Mono', monospace;
  margin:      0;
}

.ef-meaning-also-label {
  color:       var(--brand);
  margin-right: 0.3rem;
}

@media (max-width: 480px) {
  .ef-meaning-body    { padding: 0.85rem 1rem 0.9rem; }
  .ef-meaning-summary { font-size: 0.95rem; }
}
