/*
 * Supreme Collision Centre — programmatic page components
 * Only styles sc-* prefixed elements so nothing fights the live theme CSS.
 * Brand tokens mirror the live site: red #EE3027, navy #0D4979, Open Sans.
 * ponytail: chrome fidelity comes from the linked live stylesheet; if that
 * hashed URL ever rotates, localise the assets (see README) — these tokens
 * are the fallback baseline, not a full theme rebuild.
 */

:root {
  --sc-red: #EE3027;
  --sc-red-dark: #c8281f;
  --sc-navy: #0D4979;
  --sc-ink: #2b2b2b;
  --sc-muted: #6b7280;
  --sc-line: #e3e6ea;
  --sc-bg-soft: #f6f7f9;
  --sc-font: "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* Content wrapper spacing when the theme boxed section is present */
.sc-prose { font-family: var(--sc-font); color: var(--sc-ink); font-size: 17px; line-height: 1.7; }
.sc-prose p { margin: 0 0 1.15em; }
.sc-prose h2 { font-family: var(--sc-font); font-weight: 700; color: var(--sc-ink); font-size: 1.9rem; line-height: 1.25; margin: 1.8em 0 .6em; }
.sc-prose h3 { font-family: var(--sc-font); font-weight: 700; color: var(--sc-navy); font-size: 1.3rem; margin: 1.4em 0 .4em; }
.sc-prose a { color: var(--sc-red); text-decoration: underline; text-underline-offset: 2px; text-transform: none; }
.sc-prose ul { margin: 0 0 1.2em; padding-left: 1.25em; }
.sc-prose li { margin: 0 0 .5em; }
.sc-accent { color: var(--sc-red); }

/* Definition block — the 40-60 word AI-extractable lead */
.sc-definition {
  border-left: 5px solid var(--sc-red);
  background: var(--sc-bg-soft);
  padding: 22px 26px;
  margin: 0 0 30px;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--sc-ink);
  border-radius: 0 6px 6px 0;
}
.sc-definition strong { color: var(--sc-navy); }

/* Author byline + freshness (E-E-A-T) */
.sc-byline {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  font-family: var(--sc-font); font-size: .92rem; color: var(--sc-muted);
  border-bottom: 1px solid var(--sc-line); padding-bottom: 14px; margin: 0 0 26px;
}
.sc-byline b { color: var(--sc-ink); font-weight: 600; }

/* Stat cards — cited + dated numbers */
.sc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 26px 0; }
.sc-stat { background: #fff; border: 1px solid var(--sc-line); border-top: 4px solid var(--sc-navy); border-radius: 8px; padding: 22px; }
.sc-stat-num { font-family: var(--sc-font); font-weight: 800; font-size: 2.2rem; color: var(--sc-red); line-height: 1; }
.sc-stat-label { font-family: var(--sc-font); font-size: .98rem; color: var(--sc-ink); margin: 10px 0 8px; font-weight: 600; }
.sc-stat-src { font-size: .78rem; color: var(--sc-muted); }
.sc-stat-src a { color: var(--sc-muted); }

/* Comparison table */
.sc-compare { width: 100%; border-collapse: collapse; margin: 24px 0; font-family: var(--sc-font); font-size: .98rem; }
.sc-compare caption { text-align: left; font-weight: 700; color: var(--sc-ink); padding-bottom: 10px; }
.sc-compare th, .sc-compare td { border: 1px solid var(--sc-line); padding: 12px 14px; vertical-align: top; text-align: left; }
.sc-compare thead th { background: var(--sc-navy); color: #fff; font-weight: 600; }
.sc-compare tbody th { background: var(--sc-bg-soft); font-weight: 600; color: var(--sc-ink); width: 30%; }
.sc-compare .sc-yes { color: #157347; font-weight: 700; }
.sc-compare .sc-no { color: #b02a37; font-weight: 700; }
.sc-compare tbody tr:nth-child(even) td { background: #fbfcfd; }

/* FAQ accordion (native details/summary — no JS) */
.sc-faq { margin: 20px 0; }
.sc-faq details { border: 1px solid var(--sc-line); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.sc-faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--sc-font);
  font-weight: 600; color: var(--sc-navy); font-size: 1.05rem; position: relative; padding-right: 44px;
}
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--sc-red); font-weight: 400; line-height: 1;
}
.sc-faq details[open] summary::after { content: "\2212"; }
.sc-faq details[open] summary { border-bottom: 1px solid var(--sc-line); }
.sc-faq .sc-faq-a { padding: 16px 20px; font-family: var(--sc-font); color: var(--sc-ink); line-height: 1.65; }
.sc-faq .sc-faq-a p { margin: 0 0 .8em; }
.sc-faq .sc-faq-a p:last-child { margin-bottom: 0; }

/* Sources / references list */
.sc-sources { margin: 30px 0 0; padding: 20px 24px; background: var(--sc-bg-soft); border-radius: 8px; font-family: var(--sc-font); }
.sc-sources h3 { font-size: 1rem; color: var(--sc-ink); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.sc-sources ol { margin: 0; padding-left: 1.3em; font-size: .86rem; color: var(--sc-muted); }
.sc-sources li { margin-bottom: 6px; }
.sc-sources a { color: var(--sc-navy); }

/* Voice-of-customer pull quote */
.sc-quote {
  border-left: 4px solid var(--sc-navy); padding: 8px 0 8px 22px; margin: 24px 0;
  font-style: italic; color: var(--sc-ink); font-size: 1.2rem; font-family: var(--sc-font);
}

/* Inline callout / note */
.sc-note { background: #fff8e6; border: 1px solid #f2d98a; border-radius: 8px; padding: 16px 20px; margin: 22px 0; font-family: var(--sc-font); font-size: .95rem; color: #5c4a12; }

/* Trust strip (OEM / certs) */
.sc-trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.sc-trust span { background: #fff; border: 1px solid var(--sc-line); border-radius: 999px; padding: 8px 16px; font-family: var(--sc-font); font-size: .88rem; color: var(--sc-ink); font-weight: 600; }

@media (max-width: 640px) {
  .sc-prose { font-size: 16px; }
  .sc-prose h2 { font-size: 1.55rem; }
  .sc-compare { font-size: .9rem; }
  .sc-compare th, .sc-compare td { padding: 10px; }
  .sc-compare tbody th { width: 40%; }
}
