/* Repair pages (/repair, /repair/<brand>, /repair/<brand-model>) — premium app look.
   Scoped to the pages that load this file (body.rp); colours are self-contained tokens.
   Mobile first (360 px, works from 320 px); no external fonts, icons are inline SVG. */
body.rp {
  background: #f0f8ff;
  color: #243b53;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  overflow-x: hidden;
  --rp-accent: #0ea5e9;
  --rp-accent-d: #0284c7;
  --rp-accent-ink: #0369a1;
  --rp-accent-soft: #e0f2fe;
  --rp-navy: #0b2447;
  --rp-ink: #243b53;
  --rp-mut: #51637f;
  --rp-line: #d8ecfa;
  --rp-card: #ffffff;
  --rp-shadow: 0 6px 22px rgba(2, 132, 199, 0.10), 0 2px 6px rgba(2, 132, 199, 0.06);
}
body.rp img { max-width: 100%; height: auto; }
body.rp [hidden] { display: none !important; }
body.rp a:focus-visible, body.rp button:focus-visible, body.rp input:focus-visible {
  outline: 3px solid #0369a1; outline-offset: 2px; border-radius: 10px;
}
#rpMain { max-width: 1080px; margin: 0 auto; padding: 0 14px; }

/* ---------- header: one row, no wrapping, no horizontal scroll ---------- */
.rp-hd { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--rp-line); }
.rp-hdin { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; max-width: 1080px; margin: 0 auto; padding: 8px 12px; min-width: 0; }
.rp-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 800; letter-spacing: -0.01em; font-size: 0.98rem; color: var(--rp-navy); text-decoration: none; white-space: nowrap; }
.rp-brand img { width: 30px; height: 30px; }
.rp-hdn { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin-left: auto; white-space: nowrap; min-width: 0; }
.rp-hdn a { color: var(--rp-ink); text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 9px 7px; border-radius: 10px; }
.rp-hdn a:hover { color: var(--rp-accent-ink); background: var(--rp-accent-soft); }
.rp-call { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 999px; background: var(--rp-accent-soft); color: var(--rp-accent-ink); }
.rp-call:hover { background: #cae7fb; }
/* phones: hide the wordmark so logo + menu + call icon always fit on ONE row */
@media (max-width: 479px) {
  .rp-bname { display: none; }
  .rp-hdin { gap: 8px; padding: 8px 10px; }
  .rp-brand img { width: 26px; height: 26px; }
  .rp-hdn { gap: 0; }
  .rp-hdn a { font-size: 0.9rem; padding: 9px 6px; }
}

/* ---------- icons ---------- */
.rp-ic { width: 18px; height: 18px; flex: none; }
.rp-ic-star { color: var(--rp-accent); }
.rp-phout { width: 62px; height: 62px; color: #64b5ec; }

/* ---------- buttons (pill shaped) ---------- */
.rp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.rp-btn .rp-ic { width: 18px; height: 18px; }
.rp-btn-p { background: var(--rp-accent); color: var(--rp-navy); }
.rp-btn-p:hover { background: #2eb1ec; }
.rp-btn-s { background: var(--rp-card); color: var(--rp-navy); border-color: #b9def6; box-shadow: var(--rp-shadow); }
.rp-btn-s:hover { border-color: var(--rp-accent); color: var(--rp-accent-ink); }

/* ---------- cards & sections ---------- */
.rp-sec { margin: 22px 0 0; }
.rp-sec h2 { margin: 0 0 14px; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; color: var(--rp-navy); }
.rp-none { margin: 0; padding: 14px 16px; background: var(--rp-card); border: 1px dashed var(--rp-line); border-radius: 16px; color: var(--rp-mut); }
.rp-upd { margin: 14px 0 0; color: var(--rp-mut); font-size: 0.85rem; }
.rp-upd a { color: var(--rp-accent-ink); font-weight: 600; }

/* ---------- hero card ---------- */
.rp-hero { margin: 16px 0 0; padding: 22px 18px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 20px; box-shadow: var(--rp-shadow); }
.rp-hero h1 { margin: 0 0 8px; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--rp-navy); }
.rp-hero > p, .rp-hero .rp-hinfo > p { margin: 0 0 14px; color: var(--rp-mut); font-size: 0.95rem; line-height: 1.5; max-width: 62ch; }
.rp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--rp-line); }
.rp-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 600; color: var(--rp-mut); }
.rp-trust .rp-ic { width: 16px; height: 16px; color: var(--rp-accent-d); }

/* model page hero: photo/outline + info */
.rp-hero-m { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rp-mimg { flex: none; }
.rp-heroimg { display: block; width: 104px; height: 104px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); }
.rp-heroimg-no { display: flex; align-items: center; justify-content: center; background: #eaf6fe; }
.rp-hero-m .rp-hinfo, .rp-hero-b .rp-hinfo { flex: 1 1 220px; min-width: 0; }
.rp-hero-m h1 { font-size: 1.4rem; margin-bottom: 6px; }
.rp-chiprow { margin: 0 0 8px; }
.rp-chip { display: inline-flex; align-items: center; background: var(--rp-accent-soft); color: var(--rp-accent-ink); border-radius: 999px; padding: 5px 13px; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.rp-chip:hover { background: #cae7fb; }
.rp-hero-m .rp-hinfo > p { margin-bottom: 0; }
.rp-hero-m .rp-trust { margin-top: 12px; }
.rp-hero-m .rp-ctas { margin-top: 14px; }
.rp-from { margin: 14px 0 0 !important; color: var(--rp-ink); font-size: 0.95rem; }
.rp-from b { color: var(--rp-accent-ink); font-size: 1.05rem; }
.rp-hero-b { display: flex; align-items: center; gap: 14px; }
.rp-hl { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: #eaf6fe; color: var(--rp-accent-ink); font-weight: 800; font-size: 1.45rem; }
.rp-hero-b h1 { margin-bottom: 4px; font-size: 1.4rem; }
.rp-hero-b p { margin-bottom: 0 !important; }

/* ---------- search (filters the cards live; works without JS too) ---------- */
.rp-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.rp-search label { flex: 1 1 100%; font-size: 0.85rem; font-weight: 700; color: var(--rp-mut); }
.rp-qwrap { position: relative; display: flex; align-items: center; flex: 1 1 auto; max-width: 420px; min-width: 0; }
.rp-qwrap .rp-ic { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--rp-mut); pointer-events: none; }
.rp-qwrap input { width: 100%; min-height: 44px; padding: 9px 14px 9px 38px; font: inherit; font-size: 0.95rem; color: var(--rp-ink); background: #fff; border: 1.5px solid var(--rp-line); border-radius: 999px; }
.rp-qwrap input:focus { outline: none; border-color: var(--rp-accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25); }
.rp-qgo { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 999px; background: var(--rp-accent-soft); color: var(--rp-accent-ink); cursor: pointer; }
.rp-qgo:hover { background: #cae7fb; }
.rp-qclear { color: var(--rp-accent-ink); font-size: 0.88rem; font-weight: 600; }

/* ---------- brand cards (hub) ---------- */
.rp-brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-bcard a { display: flex; align-items: center; gap: 10px; height: 100%; min-width: 0; padding: 13px 12px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); text-decoration: none; color: var(--rp-ink); }
.rp-bcard a:hover { border-color: var(--rp-accent); }
.rp-blogo { width: 46px; height: 46px; object-fit: contain; flex: none; }
.rp-blogo-lg { width: 56px; height: 56px; }
.rp-bno { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--rp-accent-soft); color: var(--rp-accent-ink); font-weight: 800; font-size: 1.15rem; }
.rp-binfo { min-width: 0; flex: 1; }
.rp-binfo b { display: block; font-size: 0.95rem; color: var(--rp-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-binfo span { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 600; color: var(--rp-mut); white-space: nowrap; }
.rp-bgo { display: inline-flex; color: var(--rp-accent-d); flex: none; }
.rp-bgo .rp-ic { width: 16px; height: 16px; }

/* ---------- model cards (brand page) ---------- */
.rp-models { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-mcard a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-width: 0; padding: 16px 10px 14px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); text-decoration: none; text-align: center; }
.rp-mcard a:hover { border-color: var(--rp-accent); }
.rp-mph { width: 72px; height: 72px; object-fit: contain; }
.rp-mph-no { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 14px; background: #eaf6fe; }
.rp-mph-no .rp-phout { width: 44px; height: 44px; }
.rp-mname { font-size: 0.92rem; font-weight: 700; line-height: 1.25; color: var(--rp-navy); overflow-wrap: anywhere; }
.rp-mprice { font-size: 0.86rem; font-weight: 800; color: var(--rp-accent-ink); }

/* ---------- "What's the problem?" rate cards ---------- */
.rp-probs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.rp-prob a { display: flex; align-items: center; gap: 10px; height: 100%; min-width: 0; padding: 12px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); text-decoration: none; }
.rp-prob a:hover { border-color: var(--rp-accent); }
.rp-pico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--rp-accent-soft); color: var(--rp-accent-ink); }
.rp-pico .rp-ic { width: 22px; height: 22px; }
.rp-pname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-pname b { font-size: 0.9rem; font-weight: 700; line-height: 1.25; color: var(--rp-navy); overflow-wrap: break-word; }
.rp-pprice { font-size: 0.88rem; font-weight: 800; color: var(--rp-accent-ink); }
.rp-ptime { font-size: 0.78rem; color: var(--rp-mut); }

/* ---------- info note ---------- */
.rp-info { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 13px 15px; background: var(--rp-accent-soft); border: 1px solid #bfe3fa; border-radius: 16px; color: #0c4a6e; font-size: 0.9rem; line-height: 1.45; }
.rp-info .rp-ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.rp-info p { margin: 0; }

/* ---------- specs (At a glance) ---------- */
.rp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 14px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); }
.rp-specs > div { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 2px 10px; align-items: start; min-width: 0; padding: 10px 12px; background: #f4faff; border-radius: 12px; }
.rp-specs .rp-ic { grid-row: 1 / span 2; width: 17px; height: 17px; margin-top: 2px; color: var(--rp-accent-d); }
.rp-specs dt { grid-column: 2; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rp-mut); }
.rp-specs dd { grid-column: 2; margin: 0; font-size: 0.9rem; font-weight: 700; line-height: 1.35; color: var(--rp-navy); overflow-wrap: break-word; }

/* ---------- accessories ---------- */
.rp-acc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-acc a { display: flex; align-items: center; gap: 10px; height: 100%; min-width: 0; padding: 10px 12px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 16px; box-shadow: var(--rp-shadow); text-decoration: none; color: var(--rp-ink); }
.rp-acc a:hover { border-color: var(--rp-accent); }
.rp-acc img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--rp-line); flex: none; }
.rp-acc b { font-size: 0.86rem; font-weight: 700; line-height: 1.3; min-width: 0; color: var(--rp-navy); overflow-wrap: break-word; }
.rp-acc span { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 800; color: var(--rp-accent-ink); white-space: nowrap; }

/* ---------- FAQ ---------- */
.rp-faq { margin: 0; padding: 4px 16px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); }
.rp-faq > div { padding: 13px 0; border-bottom: 1px solid var(--rp-line); }
.rp-faq > div:last-child { border-bottom: 0; }
.rp-faq dt { font-weight: 700; color: var(--rp-navy); font-size: 0.93rem; }
.rp-faq dd { margin: 6px 0 0; color: var(--rp-mut); font-size: 0.9rem; line-height: 1.5; }

/* ---------- other models (chips) ---------- */
.rp-others { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-others a { display: inline-block; padding: 8px 15px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--rp-ink); text-decoration: none; }
.rp-others a:hover { border-color: var(--rp-accent); color: var(--rp-accent-ink); }

/* ---------- shop block ---------- */
.rp-shopblock { padding: 16px 18px; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); }
.rp-shopblock h2 { margin-bottom: 10px; }
.rp-shopblock p { margin: 8px 0; color: var(--rp-ink); line-height: 1.5; }
.rp-shopblock .rp-btn { min-height: 42px; padding: 8px 18px; font-size: 0.9rem; }

/* ---------- breadcrumb ---------- */
.rp-crumb { padding: 14px 0 0; }
.rp-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 0.82rem; color: var(--rp-mut); }
.rp-crumb li { display: inline-flex; align-items: center; }
.rp-crumb li + li::before { content: "›"; margin: 0 7px; color: var(--rp-accent-d); }
.rp-crumb a { color: var(--rp-mut); text-decoration: none; }
.rp-crumb a:hover { text-decoration: underline; }
.rp-crumb [aria-current] { color: var(--rp-navy); font-weight: 700; }

/* ---------- footer ---------- */
.rp-ft { margin: 30px 0 0; padding: 18px 0 26px; color: var(--rp-mut); font-size: 0.88rem; line-height: 1.55; }
.rp-ft p { margin: 6px 0; }
.rp-ft a { color: var(--rp-accent-ink); text-decoration: none; }
.rp-ft a:hover { text-decoration: underline; }
.rp-ftr { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.rp-ftr .rp-ic { width: 15px; height: 15px; }

/* ---------- sticky bottom bar (mobile only) ---------- */
.rp-bar { display: none; }
@media (max-width: 719px) {
  .rp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--rp-line); box-shadow: 0 -6px 22px rgba(2, 132, 199, 0.12); }
  .rp-bar .rp-btn { flex: 1 1 0; min-height: 48px; }
  #rpMain { padding-bottom: 92px; }
}

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  #rpMain { padding: 0 20px; }
  .rp-hero { padding: 26px 26px; margin-top: 20px; }
  .rp-hero h1 { font-size: 1.85rem; }
  .rp-hero-m h1, .rp-hero-b h1 { font-size: 1.65rem; }
  .rp-heroimg { width: 140px; height: 140px; }
  .rp-sec h2 { font-size: 1.28rem; }
  .rp-brands, .rp-models, .rp-probs, .rp-acc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1020px) {
  .rp-brands, .rp-models { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rp-probs, .rp-acc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rp-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 480px) {
  .rp-probs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .rp-brands, .rp-models { grid-template-columns: 1fr; }
  .rp-hero h1 { font-size: 1.35rem; }
}
