/* ================================================================
   FixOrPro AI — Master Repair Library (guides.html)
   Extends the shared dark glassmorphism tokens defined in style.css
   ================================================================ */

body.guides-body {
  display: block;
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
}

.guides-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.guides-topbar-link:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  text-decoration: none;
}

/* ── MAIN CONTAINER ───────────────────────────────────────────── */
.guides-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 140px;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.guides-hero {
  text-align: center;
  margin-bottom: 36px;
}

.guides-hero-title {
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.guides-hero-title-ko {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.guides-hero-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ── SEARCH ───────────────────────────────────────────────────── */
.guides-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 18px;
}

.guides-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.6;
  pointer-events: none;
}

.guides-search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

.guides-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
}

.guides-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 50;
  max-height: 340px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--surface-hover); }

.suggestion-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
}

.suggestion-meta {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.suggestion-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── FILTER TABS ──────────────────────────────────────────────── */
.guides-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.guides-filter-tab {
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.guides-filter-tab:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.guides-filter-tab.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,140,255,0.35);
}

/* ── ZONE GRID ────────────────────────────────────────────────── */
.guides-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.guides-loading-text,
.guides-load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.guides-empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.guides-empty-icon { font-size: 36px; margin-bottom: 10px; }

/* ── ZONE CARD (accordion) ────────────────────────────────────── */
.zone-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-self: start;
}

.zone-card:hover {
  border-color: var(--border-bright);
}

.zone-card.expanded {
  border-color: rgba(91,140,255,0.4);
  box-shadow: 0 0 0 1px rgba(91,140,255,0.15), var(--shadow-card);
}

.zone-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.zone-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--r-md);
}

.zone-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.zone-name-en {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.zone-chevron {
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-card.expanded .zone-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.zone-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  padding: 0 18px;
}

.zone-card.expanded .zone-card-body {
  max-height: 2000px;
  opacity: 1;
  padding: 0 18px 18px;
}

.zone-fixtures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.fixture-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
}

.fixture-btn:hover {
  background: rgba(56,232,200,0.15);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  text-decoration: none;
  transform: translateX(1px);
}

.zone-no-guides {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 2px;
}

/* ── RISK DOT (traffic light) ─────────────────────────────────── */
.risk-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.risk-dot.green { background: #4ade80; color: #4ade80; }
.risk-dot.yellow { background: #fbbf24; color: #fbbf24; }
.risk-dot.red { background: #f87171; color: #f87171; }

/* ── FLOATING ACTION BUTTON ───────────────────────────────────── */
.guides-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 99px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(91,140,255,0.45);
  z-index: 300;
  transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s ease;
}

.guides-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(91,140,255,0.6);
  text-decoration: none;
}

/* ── FOOTER — Legal & Affiliate Disclosure ───────────────────────── */
.guides-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.guides-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.guides-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.guides-footer-links a:hover { color: var(--accent); text-decoration: underline; }
.guides-footer-sep { color: var(--text-muted); }

.guides-footer-disclosure {
  max-width: 720px;
  margin: 0 auto 10px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #94a3b8;
}
.guides-footer-disclosure strong { color: var(--text-secondary); }

.guides-footer-copyright {
  font-size: 11px;
  color: var(--text-muted);
}

.guides-fab-icon { font-size: 17px; }

/* ================================================================
   GUIDE DETAIL PAGE (guide_detail.html)
   ================================================================ */
.guide-detail-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 100px;
}

.guide-loading-text,
.guide-not-found {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.guide-not-found-icon { font-size: 40px; margin-bottom: 12px; }
.guide-not-found h1 { font-size: 22px; margin-bottom: 8px; color: var(--text-primary); }
.guide-not-found p { margin-bottom: 20px; }

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

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

.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* ── HEADER CARD ──────────────────────────────────────────────── */
.guide-header-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.guide-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.print-guide-btn {
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.print-guide-btn:hover { background: var(--surface-hover); color: var(--text-primary); }

.guide-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── RISK BADGE (🚦 traffic light) ────────────────────────────── */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid transparent;
  width: fit-content;
}

.risk-badge-green { background: rgba(74,222,128,0.15); border-color: rgba(74,222,128,0.4); color: #4ade80; }
.risk-badge-yellow { background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.4); color: #fbbf24; }
.risk-badge-red {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.45);
  color: #f87171;
  animation: urgencyPulse 1.5s infinite;
}

/* ── INSURANCE / LEGAL WARNING BANNER ─────────────────────────── */
.insurance-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.insurance-warning-icon { font-size: 20px; flex-shrink: 0; }

.insurance-warning-banner.risk-yellow {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.35);
  color: #fde68a;
}

.insurance-warning-banner.risk-red {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fecaca;
}

.insurance-warning-banner strong { color: var(--text-primary); }

/* ── VIDEO EMBED (responsive 16:9) ────────────────────────────── */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 4px;
  background: #000;
  border: 1px solid var(--border);
}

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

/* 유튜브 이탈 방지 — 로고/제목 클릭 영역을 물리적으로 가리는 투명 가드 레이어 */
.yt-click-guard {
  position: absolute;
  z-index: 5;
  background: transparent;
  cursor: default;
}

.yt-guard-bottom-right {
  bottom: 0;
  right: 0;
  width: 110px;
  height: 50px;
}

.yt-guard-top {
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
}

.print-only-video-link { display: none; }

/* ── SAVINGS BOX ──────────────────────────────────────────────── */
.savings-box {
  background: linear-gradient(150deg, rgba(74,222,128,0.1) 0%, rgba(56,232,200,0.06) 100%);
  border: 1.5px solid rgba(74,222,128,0.3);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 18px 0;
}

.savings-box-headline {
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.savings-box-headline strong { color: #4ade80; }

.savings-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.savings-stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
}

.savings-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.savings-stat-value { font-size: 19px; font-weight: 800; }
.savings-stat-value.diy { color: #4ade80; }
.savings-stat-value.pro { color: #fb923c; }
.savings-stat-value.saved { color: #38e8c8; }

.savings-stat.highlight {
  background: rgba(56,232,200,0.12);
  border: 1px solid rgba(56,232,200,0.35);
}

.savings-local-pricing {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(91,140,255,0.12);
  border: 1px solid rgba(91,140,255,0.3);
  border-radius: 10px;
  font-size: 13px;
  color: #cfe0ff;
  line-height: 1.6;
}
.savings-local-pricing strong { color: #ffffff; }

.savings-disclaimer {
  margin-top: 14px;
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── SECTION HEADINGS ─────────────────────────────────────────── */
.guide-section { margin: 28px 0; }

.guide-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── PARTS PURCHASE GRID ──────────────────────────────────────── */
.parts-purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.parts-affiliate-disclosure {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #94a3b8;
}

.part-purchase-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  page-break-inside: avoid;
}

.part-purchase-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.part-purchase-spec {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.part-purchase-price {
  font-size: 14px;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 10px;
}

.part-purchase-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.part-buy-btn {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.part-buy-btn.amazon {
  background: rgba(255,153,0,0.14);
  border: 1px solid rgba(255,153,0,0.35);
  color: #ffb84d;
}

.part-buy-btn.homedepot {
  background: rgba(244,124,32,0.14);
  border: 1px solid rgba(244,124,32,0.35);
  color: #ff8a3d;
}

.part-buy-btn:hover { transform: translateY(-1px); filter: brightness(1.15); text-decoration: none; }

.tools-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 16px 0 10px;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-buy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.tool-buy-item:hover { background: var(--surface-hover); text-decoration: none; }
.tool-name { flex: 1; font-size: 13px; font-weight: 600; }
.tool-buy-label { font-size: 12px; color: var(--accent); font-weight: 700; }

/* ── STEP-BY-STEP MANUAL ──────────────────────────────────────── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  page-break-inside: avoid;
  transition: opacity 0.2s ease;
}

.step-item.done { opacity: 0.55; }
.step-item.done .step-title { text-decoration: line-through; }

.step-checkbox-label {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-top: 2px;
}

/* Expands the tappable area to the ~44px mobile touch-target minimum
   without changing the visible 24px checkbox box. */
.step-checkbox-label::after {
  content: '';
  position: absolute;
  inset: -10px;
}

.step-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.step-checkbox-box {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--border-bright);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  background: var(--surface);
  transition: all 0.15s ease;
}

.step-checkbox:checked + .step-checkbox-box {
  background: var(--gradient-teal);
  border-color: transparent;
  color: #06281f;
}

.step-content { flex: 1; min-width: 0; }

.step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-callout {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.step-callout.tip {
  background: rgba(91,140,255,0.1);
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
}

.step-callout.caution {
  background: rgba(239,68,68,0.1);
  border-left: 3px solid #f87171;
  color: #fecaca;
}

/* ── FAQ Section (Schema.org FAQPage) ────────────────────────────
   Native <details>/<summary> — no JS needed for the expand/collapse
   itself, keeps the accordion keyboard- and screen-reader-accessible. */
.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.guide-faq-item[open] {
  border-color: var(--border-bright);
  background: var(--surface);
}
.guide-faq-question {
  cursor: pointer;
  list-style: none;
  padding: 15px 30px 15px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}
.guide-faq-question::-webkit-details-marker { display: none; }
.guide-faq-question::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
}
.guide-faq-item[open] .guide-faq-question::after { content: '−'; }
.guide-faq-answer {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 0 0 16px;
  margin: 0;
}

/* ── AI PHOTO DIAGNOSIS BRIDGE CTA ────────────────────────────── */
.ai-bridge-cta-card {
  position: relative;
  margin-top: 32px;
  padding: 32px 28px;
  border-radius: var(--r-xl);
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(91,140,255,0.14), transparent 65%),
    var(--surface);
  border: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
}
.ai-bridge-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--r-xl);
  background: var(--gradient-brand);
  opacity: 0.5;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ai-bridge-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.ai-bridge-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  box-shadow: 0 8px 28px rgba(91,140,255,0.4);
}
.ai-bridge-camera-icon { font-size: 28px; }

.ai-bridge-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ai-bridge-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 22px;
}
.ai-bridge-desc strong { color: var(--text-primary); }

.ai-bridge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-lg);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(91,140,255,0.4);
  transition: all 0.2s ease;
}
.ai-bridge-btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 32px rgba(91,140,255,0.5); }
.ai-bridge-btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 16px rgba(91,140,255,0.4); }
.ai-bridge-arrow { transition: transform 0.2s ease; }
.ai-bridge-btn:hover .ai-bridge-arrow { transform: translateX(3px); }

.ai-bridge-footnote {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .ai-bridge-cta-card { padding: 26px 18px; }
  .ai-bridge-title { font-size: 1.1rem; }
  .ai-bridge-btn { width: 100%; justify-content: center; }
  .part-purchase-buttons { gap: 10px; }
}

@media (max-width: 380px) {
  .part-purchase-buttons { flex-direction: column; width: 100%; }
  .part-buy-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── BOTTOM ACTIONS ───────────────────────────────────────────── */
.guide-bottom-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.guide-pro-disclosure {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #94a3b8;
  text-align: center;
}

.guide-action-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.guide-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border-radius: var(--r-lg);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.guide-action-btn.primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 6px 22px rgba(91,140,255,0.35);
}

.guide-action-btn.secondary {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
}

.guide-action-btn:hover { transform: translateY(-2px); text-decoration: none; }

/* ================================================================
   CITY REPAIR LANDING PAGES — /repair, /repair/{city}, /repair/{city}/{guide}
   ================================================================ */
.repair-city-intro {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 18px 0;
}

/* .local-home-note-card / -header / -text are defined once, further down
   next to .local-pro-quote-box (the "Rule 14" compact card styling). */

/* ── Local Labor Benchmark & Savings ─────────────────────────── */
.local-benchmark-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 24px 0;
}
.local-benchmark-card .guide-section-title { margin-bottom: 16px; }
.local-benchmark-rates {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.local-benchmark-rates strong { color: var(--text-primary); }

/* ── Local Housing & Water Quality Insights ──────────────────── */
.local-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.local-insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.local-insight-icon { font-size: 26px; margin-bottom: 10px; }
.local-insight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.local-insight-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Municipal Permit & Code Guidance ─────────────────────────── */
.permit-guidance-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 24px 0;
}
.permit-guidance-icon { font-size: 26px; flex-shrink: 0; }
.permit-guidance-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.permit-guidance-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.permit-guidance-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  text-decoration: none;
  margin-bottom: 10px;
}
.permit-guidance-link:hover { text-decoration: underline; }
.permit-guidance-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Local Home Note Card (Rule 14 준수) ───────────────────────── */
.local-home-note-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0 20px;
}
.local-home-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
}
.local-home-note-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Local Pro Contractor Quote (High-Visibility & Direct Angi) ── */
.local-pro-quote-box {
  text-align: center;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  margin: 32px 0 24px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
  position: relative;
}
.local-pro-quote-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.local-pro-quote-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.local-pro-quote-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 20px;
}
.local-pro-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
  cursor: pointer;
}
.pro-btn-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.pro-btn-text {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #0f172a;
}
.pro-btn-arrow {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  color: #0f172a;
  transition: transform 0.2s ease;
}
.local-pro-direct-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.65);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.local-pro-direct-btn:hover .pro-btn-arrow {
  transform: translateX(4px);
}
.local-pro-quote-box .guide-pro-disclosure { margin-top: 14px; }



/* ── Internal link network (other guides in this city) ────────── */
.city-internal-links { margin-top: 28px; text-align: center; }
.city-internal-links-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.city-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.city-link-card {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  transition: var(--transition, all 0.2s ease);
}
.city-link-card:hover { border-color: var(--border-bright); color: var(--text-primary); background: var(--surface-hover); }
.city-link-hub {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.city-link-hub:hover { text-decoration: underline; }

/* ── City hub / directory guide list cards ───────────────────── */
.city-hub-guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.city-hub-guide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: var(--transition, all 0.2s ease);
}
.city-hub-guide-card:hover { border-color: var(--border-bright); background: var(--surface-hover); transform: translateY(-2px); }
.city-hub-guide-icon { font-size: 28px; flex-shrink: 0; }
.city-hub-guide-body { flex: 1; min-width: 0; }
.city-hub-guide-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.city-hub-guide-meta { font-size: 12.5px; color: var(--text-muted); }
.city-hub-guide-arrow { font-size: 18px; color: var(--text-muted); flex-shrink: 0; }

@media (max-width: 680px) {
  .local-insight-grid { grid-template-columns: 1fr; }
  .permit-guidance-box { flex-direction: column; }
  .city-hub-guide-card { padding: 14px 16px; gap: 12px; }
  .city-hub-guide-icon { font-size: 22px; }
}

/* ================================================================
   PRINT STYLES — guide_detail.html only
   ================================================================ */
@media print {
  .no-print { display: none !important; }

  body.guide-detail-body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .guide-detail-main { max-width: 100%; padding: 0; }

  .video-embed-wrap { display: none !important; }
  .print-only-video-link {
    display: block !important;
    font-size: 12px;
    color: #111 !important;
    margin: 8px 0 16px;
  }

  .guide-header-card,
  .insurance-warning-banner,
  .savings-box,
  .part-purchase-card,
  .step-item,
  .tool-buy-item,
  .local-benchmark-card,
  .local-insight-card,
  .local-home-note-card {
    background: #ffffff !important;
    border: 1px solid #999999 !important;
    box-shadow: none !important;
    color: #111111 !important;
  }

  .guide-title,
  .step-title,
  .guide-section-title,
  .savings-stat-value,
  .savings-stat-label,
  .part-purchase-name,
  .tools-subtitle,
  .tool-name,
  .breadcrumb-current,
  .breadcrumb a,
  .savings-box-headline,
  .savings-box-headline strong,
  .local-insight-title,
  .local-home-note-header {
    color: #111111 !important;
  }

  .step-description,
  .part-purchase-spec,
  .guide-meta-item,
  .savings-disclaimer,
  .parts-affiliate-disclosure,
  .guide-pro-disclosure,
  .insurance-warning-banner div,
  .repair-city-intro,
  .local-insight-text,
  .local-home-note-text,
  .local-benchmark-rates {
    color: #333333 !important;
  }

  .local-benchmark-rates { background: #f5f5f5 !important; border-color: #999 !important; }

  .guide-pro-disclosure { text-align: left; margin-top: 8px; }

  .step-callout.tip {
    background: #eef2ff !important;
    border-left: 3px solid #4338ca !important;
    color: #1e1b4b !important;
  }

  .step-callout.caution {
    background: #fef2f2 !important;
    border-left: 3px solid #b91c1c !important;
    color: #7f1d1d !important;
  }

  .step-callout strong { color: inherit !important; }

  .risk-badge { color: #111111 !important; background: none !important; border: 1px solid #999 !important; }

  .part-buy-btn, .tool-buy-label { display: none !important; }

  .step-checkbox-box {
    color: transparent !important;
    background: #ffffff !important;
    border: 1.5px solid #111111 !important;
  }

  a { color: #111111 !important; text-decoration: underline; }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 680px) {
  .guides-main { padding: 28px 14px 120px; }
  .guides-zone-grid { grid-template-columns: 1fr; }
  .zone-card-header { padding: 14px; }
  .guides-fab {
    right: 14px;
    bottom: 14px;
    padding: 13px 16px;
  }

  .guide-detail-main { padding: 20px 14px 80px; }
  .guide-header-card { padding: 18px; }
  .savings-stats { grid-template-columns: 1fr; }
  .guide-bottom-actions { grid-template-columns: 1fr; }

  .print-guide-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }
  .print-guide-btn-text { display: none; }
}

@media (max-width: 420px) {
  .guides-fab-text { display: none; }
  .guides-fab { padding: 15px; border-radius: 50%; }
  .guides-filter-tab { padding: 7px 13px; font-size: 12px; }
}

/* ── Server-rendered SEO content on guide pages ──
   Same text the page renders after JS runs, kept visually hidden (standard
   screen-reader-only pattern) so there is no flash of unstyled text. */
.guide-static-content {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.guides-seo-index { max-width: 960px; margin: 40px auto 0; padding: 0 16px 24px; color: var(--text-secondary); }
.guides-seo-index h2 { color: var(--text-primary); font-size: 20px; margin-bottom: 12px; }
.guides-seo-index h3 { color: var(--text-primary); font-size: 15px; margin: 16px 0 6px; }
.guides-seo-index ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 20px; }
.guides-seo-index a { color: var(--text-secondary); font-size: 13.5px; text-decoration: none; }
.guides-seo-index a:hover { color: var(--text-primary); text-decoration: underline; }

/* ── Electrical safety box (red, high-visibility) ── */
.electrical-safety-box {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 14px; padding: 14px 16px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-left: 5px solid #ef4444;
  border-radius: 12px;
  color: #fecaca; font-size: 14px; line-height: 1.55;
}
.electrical-safety-box strong { color: #fff; }
.electrical-safety-icon { font-size: 22px; line-height: 1.2; }

/* ── City guide: local tips list ── */
.local-tips-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* ── Usability: easier-to-tap breadcrumb and footer links ── */
.breadcrumb a, .guides-footer-links a { display: inline-block; padding: 6px 2px; }
.electrical-safety-extra { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(239, 68, 68, 0.3); }

/* ── Step checkboxes: high-contrast square (22×22, 4px radius) so they stand out on dark cards ── */
.step-checkbox-label { width: 22px; height: 22px; }
.step-checkbox-box {
  border: 2px solid rgba(165, 190, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.12);
}
.step-checkbox-label:hover .step-checkbox-box { border-color: #c7d6ff; background: rgba(255, 255, 255, 0.12); }
.step-checkbox:focus-visible + .step-checkbox-box { outline: 3px solid #93c5fd; outline-offset: 2px; }
.step-checkbox:checked + .step-checkbox-box {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* ── Bottom "Get a Free Local Pro Quote" button: high-visibility amber (Pro Quote standard) ── */
.guide-action-btn.pro-quote {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1px solid rgba(253, 230, 138, 0.75);
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}
.guide-action-btn.pro-quote:hover { box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65); filter: brightness(1.05); }

/* Footer separators line up with the (padded) links */
.guides-footer-links { align-items: center; }
.guides-footer-sep { display: inline-block; vertical-align: middle; line-height: 1; }
