/* Design of the screens this app serves on our WordPress sites: free report, checkout, paid report, samples (owner, 18 Nov 2026).
   Scoped to body.wp-site (templates/sites/_wordpress/base2.html). The WordPress theme (wordpress/themes/ccu-site) sets the same --wp- tokens
   from its Customizer, so each site keeps its own colours and a report page looks like the rest of the site. Different from carcheckup: ink and teal instead of
   navy and blue, rounded panels on a warm grey page, Inter-like system type. */
:root {  /* defaults; the site's own tokens (WordPress Customizer, printed after this file) win */
  --wp-ink: #111827;
  --wp-muted: #4b5563;
  --wp-line: #e5e7eb;
  --wp-page: #f6f5f2;
  --wp-panel: #ffffff;
  --wp-accent: #0f766e;
  --wp-accent-hover: #115e59;
  --wp-accent-soft: #ccfbf1;
  --wp-warn: #b45309;
  --wp-radius: 14px;
}
body.wp-site {
  --ccu-blue: var(--wp-accent);
  --ccu-navy: var(--wp-ink);
  --r-blue: var(--wp-accent);
  --r-ink: var(--wp-ink);
  background: var(--wp-page);
  color: var(--wp-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Tokens of the report and checkout screens (owner, 20 Nov 2026; report.css, checkout.css): data sits on light panels on
   every family, so text stays readable with any accent (some accents are near black) and on the dark family's page.
   --wp-sticky-top is the height of the site's sticky header, measured in base2.html: things that stay in view sit under it. */
body.wp-site {
  --v-panel: #fff;
  --v-ink: var(--wp-ink);
  --v-muted: color-mix(in srgb, var(--wp-ink) 78%, #fff);  /* 4.5:1 or more on the soft panels too (20 Nov 2026 QA: 72% gave 4.4 on tinted rows) */
  --v-line: color-mix(in srgb, var(--wp-ink) 13%, #fff);
  --v-soft: color-mix(in srgb, var(--wp-ink) 4%, #fff);
  --v-tint: color-mix(in srgb, var(--wp-accent) 8%, #fff);
  --v-link: var(--wp-accent);
  --v-warn: #b45309;
  --v-head: var(--wp-head, inherit);
  --v-r: var(--wp-radius, 14px);
  --v-r-sm: calc(var(--wp-radius, 14px) * .75);
  --pay-up-top: var(--wp-sticky-top, 66px);
  --v-on-page: var(--wp-ink);  /* text straight on the page, outside a panel */
  --v-on-page-muted: color-mix(in srgb, var(--wp-ink) 78%, #fff);
  --v-on-page-link: var(--wp-accent);
}
body.wp-site h1, body.wp-site h2, body.wp-site h3, body.wp-site .h1, body.wp-site .h2, body.wp-site .h3 {
  font-family: inherit; letter-spacing: -0.01em; color: var(--wp-ink);
}
/* links and buttons of the report screens only: the WordPress header and footer keep their own colours (20 Nov 2026 QA) */
body.wp-site main a { color: var(--wp-accent); }
body.wp-site main a:hover { color: var(--wp-accent-hover); }
body.wp-site .btn-primary, body.wp-site main .wp-btn {
  background: var(--wp-accent); border-color: var(--wp-accent); color: #fff; border-radius: 999px; font-weight: 700;
}
body.wp-site .btn-primary:hover, body.wp-site main .wp-btn:hover { background: var(--wp-accent-hover); border-color: var(--wp-accent-hover); color: #fff; }
body.wp-site .card, body.wp-site .report-card, body.wp-site .r-card {
  border-radius: var(--wp-radius); border: 1px solid var(--wp-line); box-shadow: none; background: var(--wp-panel);
}
body.wp-site main#main { padding-bottom: 3rem; }

/* header and footer fallback (the WordPress ones bring their own styles) */
:where(.wp-wrap) { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:where(.wp-section) { padding: 2.5rem 16px; }
:where(.wp-header) { background: var(--wp-panel, #fff); border-bottom: 1px solid var(--wp-line, #e5e7eb); }
:where(.wp-header-row) { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
:where(.wp-logo) { font-weight: 800; font-size: 1.1rem; color: var(--wp-ink, #111827); text-decoration: none; }
:where(.wp-nav) { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
:where(.wp-nav a) { color: var(--wp-ink, #111827); text-decoration: none; font-weight: 600; }
:where(.wp-footer) { background: var(--wp-ink, #111827); color: #d1d5db; padding: 2rem 0; margin-top: 2rem; font-size: .9rem; }
:where(.wp-footer a) { color: #fff; }
:where(.wp-btn) { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.4rem; text-decoration: none; border: 0; cursor: pointer; }
:where(.wp-btn-small) { padding: .45rem 1rem; font-size: .9rem; }

/* the search form on the error page */
.wp-label { display: block; font-weight: 700; margin-bottom: .4rem; }
.wp-check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wp-plate-input {
  flex: 1 1 220px; min-height: 52px; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: #ffd21f; border: 2px solid var(--wp-ink, #111827); border-radius: 10px; padding: 0 14px; text-align: center;
}
.wp-alert { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; border-radius: 10px; padding: .8rem 1rem; }

@media (max-width: 575.98px) {
  .wp-nav { gap: 12px; font-size: .92rem; }
  .wp-check-row .wp-btn { width: 100%; }
}

/* carcheckup's page CSS (custom.purged.css, inlined by base2.html) styles bare elements for its own home hero: `header`
   gets 40px of top padding, `header form` becomes a centred column and `header form input` a 350px x 60px box, `section`
   gets 9rem of padding. On these screens <header> is the WordPress site's header, so those rules squashed its plate search
   into a black line and pushed the menu down (owner, 20 Nov 2026: "the menus don't show"). These resets are element-only
   selectors: more specific than carcheckup's (0,0,3) and less than any class rule, so the theme's own header styles win. */
html body header { padding-top: 0; padding-bottom: 0; }
html body header form { height: auto; padding: 0; display: block; flex-direction: row; align-items: normal; justify-content: normal; }
html body header form input { height: auto; width: auto; padding: 0; border-radius: 0; font-size: inherit; font-weight: inherit; text-transform: none; border: 0; margin: 0; outline: 0; }
html body header form input:focus { outline: 0; }
html body header form button { height: auto; width: auto; margin: 0; }
html body header form label { margin: 0; }
html body footer section, html body header section { padding-top: 0; padding-bottom: 0; }

/* the header's call-to-action stays on one line, and the menu tightens up to 1360px wide (at 1280px "Free check" wrapped
   or ran off the right edge on the twotier, island and centred headers; 20 Nov 2026 QA). Same rule proposed for the theme. */
body.wp-site .wp-header .wp-nav-cta { white-space: nowrap; flex: none; min-height: 40px; }
@media (min-width: 761px) and (max-width: 1360px) {
  body.wp-site .wp-header .wp-nav, body.wp-site .wp-header .wp-nav ul { gap: 14px !important; }
  body.wp-site .wp-header .wp-nav ul a { font-size: .9rem; }
}
