/* ==============================================================
   REPAIR REFERENCE — DESIGN SYSTEM v2 "Clean Workshop"
   ==============================================================
   A light, trustworthy, mobile-first redesign.
   - Drop-in replacement for css/repairreference.css
     (same class names + CSS variable names — no PHP changes)
   - Now covers previously-unstyled areas: homepage sections
     (hero/search/cards), hub-page error-code tables, GP pages
   - Fonts: Outfit + JetBrains Mono (already enqueued by theme)
   ============================================================== */

/* ── Design Tokens ──
   NOTE: GeneratePress customizer CSS references --bg-primary,
   --text-primary and --accent directly. Keep these names. */
:root {
  /* Surfaces */
  --bg-primary: #F5F7F9;        /* page background */
  --bg-secondary: #EDF1F4;      /* alt section background */
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FBFC;

  /* Brand */
  --accent: #0E7569;            /* deep teal — AA on white */
  --accent-dim: #0B5D54;
  --accent-tint: #E7F6F3;
  --accent-glow: rgba(14, 117, 105, 0.10);
  --accent-glow-strong: rgba(14, 117, 105, 0.22);
  --accent-secondary: #E2590B;  /* workshop orange */
  --accent-secondary-tint: #FDEEE3;

  /* Semantic */
  --danger: #D93025;
  --danger-tint: #FDECEA;
  --warn: #B45309;
  --warn-tint: #FEF3E0;
  --ok: #178246;
  --ok-tint: #E9F7EE;

  /* Ink */
  --text-primary: #16283A;
  --text-secondary: #3E5566;
  --text-muted: #6E8296;

  /* Lines & depth */
  --border: #E1E8EE;
  --border-light: #CBD7E1;
  --shadow-sm: 0 1px 2px rgba(19, 36, 48, 0.06);
  --shadow-md: 0 6px 20px rgba(19, 36, 48, 0.08);
  --shadow-lift: 0 12px 32px rgba(19, 36, 48, 0.12);

  /* Footer (dark anchor) */
  --footer-bg: #10202B;
  --footer-text: #9FB3C3;
  --footer-heading: #FFFFFF;

  /* Type & shape */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ==============================================================
   GLOBAL BASE
   ============================================================== */
body.rr-theme {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.rr-theme h1, .rr-theme h2, .rr-theme h3,
.rr-theme h4, .rr-theme h5, .rr-theme h6 {
  color: var(--text-primary);
}

.rr-theme ::selection {
  background: var(--accent-glow-strong);
  color: var(--text-primary);
}

.rr-theme a {
  color: var(--accent);
  transition: var(--transition);
}

.rr-theme a:hover,
.rr-theme a:focus {
  color: var(--accent-dim);
}

.rr-theme :focus-visible {
  outline: 3px solid var(--accent-glow-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

.rr-theme .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* WordPress twemoji images: WP's default emoji-sizing CSS is not
   being printed on this site, so without this rule every emoji
   (e.g. the ⚠️ in hub-page safety notes) becomes a full-width SVG. */
img.wp-smiley,
img.emoji {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 0.07em !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  vertical-align: -0.1em !important;
}


/* ==============================================================
   GENERATEPRESS HEADER + NAVIGATION (light overrides)
   The GP customizer injects dark hex values inline; these rules
   load later in the cascade and take over.
   ============================================================== */
body.rr-theme .site-header {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

body.rr-theme .site-header a {
  color: var(--text-primary);
  text-decoration: none;
}

body.rr-theme .site-header .header-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

body.rr-theme .main-title,
body.rr-theme .main-title a,
body.rr-theme .main-title a:hover {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.rr-theme .site-description {
  display: none; /* tagline adds clutter next to logo + title */
}

body.rr-theme .main-navigation,
body.rr-theme .main-navigation ul ul {
  background-color: var(--bg-card);
}

body.rr-theme .main-navigation {
  border-bottom: 1px solid var(--border);
}

body.rr-theme .main-navigation .main-nav ul li a,
body.rr-theme .main-navigation .menu-toggle,
body.rr-theme .main-navigation .menu-bar-items {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
}

body.rr-theme .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
body.rr-theme .main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
body.rr-theme .main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a,
body.rr-theme .main-navigation .menu-bar-item:hover > a,
body.rr-theme .main-navigation .menu-bar-item.sfHover > a {
  color: var(--accent);
  background-color: var(--accent-tint);
}

body.rr-theme .main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--accent);
}

body.rr-theme button.menu-toggle:hover,
body.rr-theme button.menu-toggle:focus {
  color: var(--accent);
}

/* Dropdown menus */
body.rr-theme .main-navigation ul ul {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

body.rr-theme .main-navigation .main-nav ul ul li a {
  color: var(--text-secondary);
}

body.rr-theme .main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a,
body.rr-theme .main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a,
body.rr-theme .main-navigation .main-nav ul ul li.sfHover:not([class*="current-menu-"]) > a {
  color: var(--accent);
  background-color: var(--accent-tint);
}

/* Nav search field */
body.rr-theme .navigation-search input[type="search"],
body.rr-theme .navigation-search input[type="search"]:active,
body.rr-theme .navigation-search input[type="search"]:focus,
body.rr-theme .main-navigation .main-nav ul li.search-item.active > a,
body.rr-theme .main-navigation .menu-bar-items .search-item.active > a {
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
}

/* Constrain header/nav to content width */
body.rr-theme .site-header .inside-header,
body.rr-theme .main-navigation .inside-navigation {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

body.rr-theme .grid-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Back-to-top button */
body.rr-theme .generate-back-to-top {
  background-color: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

body.rr-theme .generate-back-to-top:hover,
body.rr-theme .generate-back-to-top:focus {
  background-color: var(--accent-dim);
  color: #fff;
}


/* ==============================================================
   LAYOUT RESETS (kill sidebars, duplicate blocks)
   ============================================================== */
body.rr-theme .site-content { display: block; }

body.rr-theme #primary {
  width: 100%;
  max-width: 100%;
  float: none;
}

body.rr-theme #right-sidebar,
body.rr-theme #left-sidebar,
body.rr-theme .widget-area { display: none; }

.rr-toc-sidebar { display: none; }

/* Hide duplicate title / legacy hero if present in post content */
.rr-article-content h1.rr-error-title { display: none; }
.rr-article-content .rr-hero.rr-card { display: none; }

.rr-article-content .rr-container {
  max-width: none;
  margin: 0;
  padding: 0;
}


/* ==============================================================
   SHARED SECTION ELEMENTS
   ============================================================== */
.rr-section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rr-section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.rr-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}


/* ==============================================================
   ARTICLE HERO
   ============================================================== */
.rr-article-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
}

.rr-article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rr-article-hero-bg::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
}

.rr-article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.rr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.rr-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.rr-breadcrumb a:hover { color: var(--accent); }
.rr-breadcrumb svg { opacity: 0.45; }

/* Meta chips */
.rr-article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rr-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  background: var(--accent-tint);
  padding: 5px 12px;
  border-radius: 6px;
}

.rr-difficulty {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 6px;
}

.rr-diff-beginner    { color: var(--ok);     background: var(--ok-tint); }
.rr-diff-intermediate{ color: var(--warn);   background: var(--warn-tint); }
.rr-diff-advanced    { color: var(--danger); background: var(--danger-tint); }

.rr-article-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.rr-article-excerpt {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 780px;
}

/* Info bar */
.rr-info-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.rr-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rr-info-item svg { flex-shrink: 0; }
.rr-info-item svg [stroke] { stroke: var(--text-muted); }
.rr-info-item strong { color: var(--text-primary); font-weight: 600; }


/* ==============================================================
   ARTICLE LAYOUT + CONTENT
   ============================================================== */
.rr-article-layout {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 88px;
}

.rr-article-content {
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

/* Headings */
.rr-article-content h2,
.rr-article-content h2.rr-section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 56px 0 18px;
  padding: 0;
  border: none;
}

/* Teal kicker bar under every section title */
.rr-article-content h2.rr-section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-top: 10px;
}

.rr-article-content h2:first-child,
.rr-article-content h2.rr-section-title:first-child {
  margin-top: 8px;
}

.rr-article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Body copy */
.rr-article-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.rr-article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.rr-article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-glow-strong);
  text-underline-offset: 3px;
}

.rr-article-content a:hover {
  color: var(--accent-dim);
  text-decoration-color: var(--accent);
}

/* Default lists */
.rr-article-content ul,
.rr-article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.rr-article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Images */
.rr-article-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-sm);
}

/* Shared intro paragraphs */
.rr-precheck-intro,
.rr-safety-intro,
.rr-fix-basic-intro,
.rr-mistakes-intro,
.rr-stop-intro,
.rr-parts-intro,
.rr-community-summary {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Shared note paragraphs */
.rr-mistakes-note,
.rr-stop-note,
.rr-parts-note,
.rr-fix-advanced-stop {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* ==============================================================
   CONTENT SECTIONS — ERROR CODE PAGES
   ============================================================== */

/* ── Symptoms: clean rows with teal markers ── */
.rr-symptoms-list {
  list-style: none;
  padding: 4px 0 0 !important;
  display: flex;
  flex-direction: column;
}

.rr-symptoms-list li {
  padding: 12px 12px 12px 40px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  transition: var(--transition);
}

.rr-symptoms-list li:last-child { border-bottom: none; }

.rr-symptoms-list li:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.rr-symptoms-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* ── Before You Start: white check cards ── */
.rr-precheck-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rr-precheck-list li {
  padding: 13px 16px 13px 50px;
  position: relative;
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  transition: var(--transition);
}

.rr-precheck-list li:hover { border-color: var(--border-light); }

.rr-precheck-list li::before {
  content: '✓';
  position: absolute;
  left: 15px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Safety Warnings: red banner card ── */
.rr-safety-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--danger-tint);
  border: 1px solid rgba(217, 48, 37, 0.18);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 20px 20px 20px 20px !important;
}

.rr-safety-list li {
  padding: 7px 8px 7px 34px;
  position: relative;
  color: #6B2A24;
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.rr-safety-list li strong { color: #4A1D19; }

.rr-safety-list li::before {
  content: '⚠';
  position: absolute;
  left: 6px;
  top: 7px;
  font-size: 0.85rem;
  color: var(--danger);
}

/* ── Possible Causes: card grid with orange markers ── */
.rr-causes-list {
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.rr-causes-list li {
  padding: 14px 16px 14px 42px;
  position: relative;
  font-size: 0.93rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  transition: var(--transition);
}

.rr-causes-list li:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.rr-causes-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-secondary);
  opacity: 0.8;
}

/* ── Fix Steps (basic): numbered teal step cards ── */
.rr-fix-basic-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: basic-step;
}

.rr-fix-basic-list li {
  counter-increment: basic-step;
  padding: 16px 18px 16px 62px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  transition: var(--transition);
}

.rr-fix-basic-list li:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.rr-fix-basic-list li::before {
  content: counter(basic-step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Fix Steps (advanced): amber-numbered cards ── */
.rr-fix-advanced-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: adv-step;
}

.rr-fix-advanced-list li {
  counter-increment: adv-step;
  padding: 16px 18px 16px 62px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(180, 83, 9, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  transition: var(--transition);
}

.rr-fix-advanced-list li:hover {
  border-left-color: var(--warn);
  color: var(--text-primary);
}

.rr-fix-advanced-list li::before {
  content: counter(adv-step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--warn-tint);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Advanced warning callout */
.rr-fix-advanced-warning {
  padding: 16px 20px;
  background: var(--warn-tint);
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: var(--radius);
  color: #6B4A1B;
}

.rr-fix-advanced-warning strong { color: var(--warn); }

/* ── Common Mistakes: red ✕ cards ── */
.rr-mistakes-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rr-mistakes-list li {
  padding: 13px 16px 13px 48px;
  position: relative;
  font-size: 0.93rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.rr-mistakes-list li::before {
  content: '✕';
  position: absolute;
  left: 15px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--danger-tint);
  color: var(--danger);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── When to Stop / Call a Pro: amber banner card ── */
.rr-stop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--warn-tint);
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-lg);
  padding: 20px !important;
}

.rr-stop-list li {
  padding: 7px 8px 7px 34px;
  position: relative;
  color: #5F451D;
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.rr-stop-list li::before {
  content: '→';
  position: absolute;
  left: 6px;
  top: 7px;
  color: var(--warn);
  font-weight: 700;
}

/* ── Likely Bad Parts: pill card grid ── */
.rr-parts-list {
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.rr-parts-list li {
  padding: 14px 16px 14px 42px;
  position: relative;
  font-size: 0.93rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.rr-parts-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Community & Expert Fixes: quote cards + source pills ── */
.rr-community-raw-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rr-community-raw-list li {
  padding: 16px 20px;
  font-size: 0.93rem;
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.rr-community-sources {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rr-community-sources li {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  transition: var(--transition);
}

.rr-community-sources li:hover {
  border-color: var(--accent);
  color: var(--text-secondary);
}

/* ── Community: confidence badges on fix reports ── */
.rr-conf {
  display: inline-block;
  padding: 2px 10px;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  vertical-align: middle;
  white-space: nowrap;
}

.rr-conf-high { background: var(--ok-tint); color: var(--ok); }
.rr-conf-medium { background: var(--warn-tint); color: var(--warn); }
.rr-conf-low { background: var(--bg-secondary); color: var(--text-muted); }

/* ── Community: parts-mentioned callout ── */
.rr-community-parts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin: 16px 0;
}

.rr-community-parts-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.rr-part-chips {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.rr-part-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dim);
  background: var(--accent-tint);
  border: 1px solid var(--accent-glow-strong);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 0;
}

.rr-community-parts-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ── Community: source cards ── */
.rr-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.rr-source-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
}

.rr-source-card:hover,
.rr-source-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rr-source-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  overflow: hidden;
}

.rr-source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.rr-source-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}

.rr-source-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.rr-badge-official { background: var(--accent-tint); color: var(--accent-dim); }
.rr-badge-community { background: var(--accent-secondary-tint); color: var(--accent-secondary); }
.rr-badge-qa { background: var(--warn-tint); color: var(--warn); }
.rr-badge-parts { background: var(--ok-tint); color: var(--ok); }
.rr-badge-youtube { background: var(--danger-tint); color: var(--danger); }

.rr-source-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rr-source-site {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rr-source-site::after {
  content: ' \2197';  /* CSS-generated, so twemoji can't inflate it */
  font-size: 0.9em;
}

/* ── Component-location diagram (inline SVG) ── */
.rr-diagram-figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin: 16px 0 12px;
}

.rr-diagram {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

/* base cabinetry: quiet lines, no emphasis */
.rr-diag-base rect,
.rr-diag-base line,
.rr-diag-base circle {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 2;
}

.rr-diag-cabinet { fill: var(--bg-primary); }
.rr-diag-drum { stroke-dasharray: 6 6; }
.rr-diag-door { fill: var(--bg-card); }
.rr-diag-glass { fill: var(--bg-secondary); }

/* parts: visible but secondary until highlighted */
.rr-diag-part rect,
.rr-diag-part line,
.rr-diag-part circle,
.rr-diag-part path {
  fill: var(--bg-secondary);
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rr-diag-part [fill="none"],
.rr-diag-part path,
.rr-diag-part line { fill: none; }

.rr-diag-hot rect,
.rr-diag-hot line,
.rr-diag-hot circle,
.rr-diag-hot path {
  stroke: var(--accent-secondary);
  stroke-width: 3;
}

.rr-diag-hot rect,
.rr-diag-hot circle { fill: var(--accent-secondary-tint); }

.rr-diag-hot [fill="none"],
.rr-diag-hot path,
.rr-diag-hot line { fill: none; }

.rr-diag-hot .rr-diag-ring { stroke-width: 7; opacity: 0.85; }

.rr-diag-marker circle {
  fill: var(--accent-secondary);
  stroke: #FFFFFF;
  stroke-width: 2;
}

.rr-diag-marker text {
  fill: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.rr-diagram-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: 14px 0 0;
}

.rr-diagram-legend {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
}

.rr-diagram-legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.rr-diag-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-secondary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  align-self: center;
}

.rr-diagram-legend-name {
  font-weight: 600;
  color: var(--text-primary);
}

.rr-diagram-legend-detail {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Official documentation callout ── */
.rr-docs-callout {
  background: var(--accent-tint);
  border: 1px solid var(--accent-glow-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.rr-docs-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 12px;
}

.rr-docs-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.rr-docs-link:hover,
.rr-docs-link:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.rr-docs-link-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.93rem;
}

.rr-docs-link-site {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rr-docs-link-site::after {
  content: ' \2197';
  font-size: 0.9em;
}

.rr-docs-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 4px 0 0;
}

/* ── Hero appliance photo ── */
.rr-hero-figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 20px 14px;
  margin: 0 0 24px;
  text-align: center;
}

.rr-hero-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.rr-hero-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 12px 0 0;
}

.rr-hero-attrib {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 4px;
}

.rr-hero-attrib a {
  color: var(--text-muted);
  text-decoration: underline;
}


/* ==============================================================
   SHORTCODE BLOCKS (step-box, callouts, parts-grid)
   ============================================================== */
.step-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.step-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dim);
  flex-shrink: 0;
}

.step-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.step-box > p,
.step-box > div > p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  display: flex;
  gap: 14px;
}

.callout-tip {
  background: var(--accent-tint);
  border: 1px solid rgba(14, 117, 105, 0.18);
}

.callout-warning {
  background: var(--warn-tint);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.callout-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-tip .callout-icon { background: rgba(14, 117, 105, 0.14); }
.callout-warning .callout-icon { background: rgba(180, 83, 9, 0.14); }

.callout-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.callout-tip .callout-content h4 { color: var(--accent-dim); }
.callout-warning .callout-content h4 { color: var(--warn); }
.callout-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.part-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.part-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.part-item span { font-size: 0.9rem; color: var(--text-secondary); }


/* ==============================================================
   RELATED GUIDES
   ============================================================== */
.rr-related-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.rr-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.rr-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
}

.rr-related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.rr-related-card .rc-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.rr-related-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.rr-related-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.rr-related-card .rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.rc-time { font-size: 0.75rem; color: var(--text-muted); }
.rc-arrow { color: var(--text-muted); transition: var(--transition); }
.rr-related-card:hover .rc-arrow { color: var(--accent); transform: translateX(3px); }


/* ==============================================================
   HOMEPAGE
   ============================================================== */

/* The page template renders a generic article hero ("Home" +
   fake read-time bar) above the real homepage hero — remove it. */
body.home .rr-article-hero { display: none; }

/* wpautop leaves empty <p> tags all over the homepage markup */
.rr-homepage p:empty { display: none; }

/* ── Hero ── */
.rr-hero {
  text-align: center;
  padding: 56px 16px 48px;
  position: relative;
}

.rr-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.rr-hero-content { position: relative; }

.rr-hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.rr-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ── Search ── */
.rr-search-wrapper { max-width: 600px; margin: 0 auto; }

.rr-search-form {
  display: flex;
  gap: 10px;
}

.rr-search-form br { display: none; } /* wpautop inserts these */

.rr-search-input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.rr-search-input::placeholder { color: var(--text-muted); }

.rr-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.rr-search-button {
  height: 54px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.rr-search-button:hover,
.rr-search-button:focus {
  background: var(--accent-dim);
}

.rr-search-examples {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.rr-search-examples em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-dim);
  background: var(--accent-tint);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── Homepage section headings ── */
.rr-homepage section { margin-top: 56px; }

.rr-article-content .rr-homepage h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.rr-article-content .rr-homepage h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-top: 10px;
}

/* ── Latest guide cards ── */
.rr-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.rr-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: var(--transition);
}

.rr-guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.rr-guide-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.rr-guide-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.rr-guide-card h3 a:hover { color: var(--accent); }

.rr-guide-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.rr-guide-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── Brand / appliance cards ── */
.rr-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.rr-brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: var(--transition);
}

.rr-brand-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.rr-brand-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.rr-brand-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.rr-brand-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
}

.rr-brand-link:hover { color: var(--accent-dim) !important; }

/* ── Why RepairReference features ── */
.rr-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.rr-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
}

.rr-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-dim);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.rr-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.rr-feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ==============================================================
   HUB PAGES + GENERIC WP PAGES (error-code tables)
   ============================================================== */
body.rr-theme .entry-header .entry-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

body.rr-theme .entry-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

body.rr-theme .entry-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}

body.rr-theme .entry-content h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-top: 10px;
}

body.rr-theme .entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.hub-page .intro,
body.rr-theme .entry-content p.intro {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Error-code reference tables */
.error-code-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.error-codes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
}

.error-codes-table thead th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.error-codes-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.5;
  vertical-align: top;
}

.error-codes-table tbody tr:last-child td { border-bottom: none; }

.error-codes-table tbody tr:hover { background: var(--bg-card-hover); }

.error-codes-table td strong {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dim);
  background: var(--accent-tint);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.error-codes-table a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.error-codes-table a:hover {
  color: var(--accent-dim);
  text-decoration: underline;
}

/* "Most common problems" block on hub pages */
.common-problems {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin: 16px 0 28px;
}

.common-problems ul {
  margin: 0;
  padding-left: 20px;
}

.common-problems li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.common-problems li strong { color: var(--text-primary); }


/* ==============================================================
   FOOTERS (dark anchor across all pages)
   ============================================================== */

/* Homepage template footer */
.rr-footer {
  padding: 56px 0 28px;
  background: var(--footer-bg);
  margin-top: 72px;
}

.rr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.rr-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.rr-nav-logo .logo-repair { color: var(--footer-heading); }
.rr-nav-logo .logo-ref { color: #5EDCCB; }

.rr-footer-brand p {
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.rr-footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--footer-heading);
  margin-bottom: 18px;
}

.rr-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.rr-footer-col ul a {
  font-size: 0.9rem;
  color: var(--footer-text);
  text-decoration: none;
}

.rr-footer-col ul a:hover { color: #fff; }

.rr-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rr-footer-bottom p {
  font-size: 0.8rem;
  color: var(--footer-text);
  margin: 0;
}

/* GeneratePress copyright bar (all pages) */
body.rr-theme .site-info {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.82rem;
}

body.rr-theme .site-info a {
  color: var(--footer-text);
}

body.rr-theme .site-info a:hover { color: #fff; }

/* On article pages the copyright bar is the only footer —
   give it breathing room */
body.rr-theme.single .site-footer { margin-top: 0; }
body.rr-theme .inside-site-info { padding: 22px 24px; }


/* ==============================================================
   ANIMATIONS
   ============================================================== */
.rr-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rr-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .rr-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rr-theme *,
  .rr-theme *::before,
  .rr-theme *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 1024px) {
  .rr-related-grid { grid-template-columns: repeat(2, 1fr); }
  .rr-causes-list { grid-template-columns: 1fr; }
  .rr-parts-list { grid-template-columns: 1fr; }
  .rr-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  body.rr-theme { font-size: 16px; }

  .rr-related-grid { grid-template-columns: 1fr; }
  .rr-info-bar { gap: 14px; }
  .rr-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .rr-footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .parts-grid { grid-template-columns: 1fr; }
  .rr-community-sources { flex-direction: column; }

  .rr-article-hero { padding-top: 24px; }

  .rr-article-hero-content { padding: 0 16px; }
  .rr-article-layout { padding-left: 16px; padding-right: 16px; }

  .rr-hero { padding: 36px 8px 36px; }

  .rr-search-form { flex-direction: column; }
  .rr-search-button { width: 100%; }

  .rr-fix-basic-list li,
  .rr-fix-advanced-list li { padding: 14px 14px 14px 56px; }
}
