/* Site-wide polish (STAGING, LMC_POLISH=1). One set of design tokens, loaded LAST on every HTML page.
   Readable sans headings (Montserrat, already self-hosted); calligraphy only for the small header wordmark/footer flourish.
   Soft contrast: off-white headings, no glow / neon / offset shadow on text. Follows Pia's tokens (EMPTY-SPEC.md, prod-review.md #3/#8, fullbuild-review.md #7/#8). */
:root, body, body.ow {
  --lmv-font-head: "Montserrat", Mont, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lmv-font-body: "Montserrat", Mont, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lmv-font-accent: "Great Vibes", GV, cursive;
  --lmv-ink: #f2f2f4; --lmv-text: #e6e6ea; --lmv-muted: #c8c8cc; --lmv-placeholder: #8e8e96;
  --lmv-bg: #0e0e10; --lmv-card: #18181b; --lmv-card-2: #1d1d21; --lmv-line: #2a2a30;
  --lmv-acc: var(--accent, var(--lmv-accent, #e3122d));
  --lmv-acc-soft: color-mix(in srgb, var(--lmv-acc) 80%, #6b6b72);
  --lmv-acc-deep: color-mix(in srgb, var(--lmv-acc) 62%, #1a1a1e);
  --lmv-btn-grad: linear-gradient(160deg, var(--lmv-acc-soft), var(--lmv-acc-deep));
  --lmv-r-card: 16px; --lmv-r-ctl: 12px; --lmv-r-pill: 999px;
  --lmv-shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.22);
  --lmv-shadow-btn: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.2);
  --lmv-s1: 4px; --lmv-s2: 8px; --lmv-s3: 12px; --lmv-s4: 16px; --lmv-s5: 24px; --lmv-s6: 32px;
  --lmv-h1: clamp(1.7rem, 1.25rem + 1.6vw, 2.25rem); --lmv-h2: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); --lmv-h3: 1.1rem;
}
body { font-family: var(--lmv-font-body); }

/* ---- Headings: one family, one scale, soft contrast ---- */
:is(h1, h2, h3, .script, .cali, .lmc-cali, .lg-h, .lg-sh, .h3s-brand, .h3-brand, .pe-h, .lx-h1, .lx-h2, .es-head, .e2-title, .e2-h,
    .c2-title, .display-name, .cover-title, .about h3, .rides-card h3, .card-choice h3, .v2-spot-name, .th-preview .pv-h, .typepick .t-lover b) {
  font-family: var(--lmv-font-head) !important; font-weight: 700 !important; font-style: normal;
  color: var(--lmv-ink); text-shadow: none !important; -webkit-text-stroke: 0 !important; filter: none !important;
  letter-spacing: -.01em !important; line-height: 1.2 !important; text-wrap: balance;
}
:is(h1, h1.script, .lg-h, .lx-h1, .h3s-brand, .h3-brand, .display-name, .cover-title, .e2-title, .c2-title.script) { font-size: var(--lmv-h1) !important; margin-top: var(--lmv-s5); margin-bottom: var(--lmv-s2); }
:is(h2, h2.script, .lg-sh, .lx-h2, .es-head, .e2-h, .pe-h) { font-size: var(--lmv-h2) !important; margin-top: var(--lmv-s5); margin-bottom: var(--lmv-s3); }
:is(h3, .about h3, .rides-card h3, .card-choice h3) { font-size: var(--lmv-h3) !important; }
.cover-title small { font-family: var(--lmv-font-body) !important; font-size: 1rem !important; text-shadow: none !important; font-weight: 500; }
/* small cards/sheets keep their own, smaller heading sizes */
:is(.card, .h3s-card, .es-card, .cp-card, .c2-card, .lmv-card, .ow-tile, .e2-sheet, dialog) :is(h2, h3) { font-size: 1.15rem !important; margin-top: 0; }
.h3s-card h2 { font-size: 1.45rem !important; }
.e2-sheet .e2-h, dialog .e2-h { font-size: 1.3rem !important; margin-top: 0; }
.es-head { text-align: center; }
/* Section eyebrows stay small caps in muted, not red */
.es-title, .eyebrow, .sub-eyebrow { color: var(--lmv-muted); }

/* Calligraphy survives only as a small decorative accent: header wordmark + footer flourish. No glow. */
.lmv-vs-word { font-family: var(--lmv-font-accent) !important; font-weight: 400 !important; text-shadow: none !important; filter: none !important; color: var(--lmv-ink) !important; }
.lmv-vs, .lmv-vs img, .brand img, header.nav img { filter: none !important; }
.footer .free { font-family: var(--lmv-font-accent) !important; font-weight: 400; text-shadow: none !important; font-size: 1.5rem; }

/* Detailer-chosen profile fonts are the detailer's branding: keep the family they picked, just no glow. */
.profile[data-font="block"] :is(.cover-pro .tagline .script, .biz-name h1, h2.sec-title, .cover-title, .display-name, h2.script) { font-family: Anton, Impact, sans-serif !important; font-weight: 400 !important; }
.profile[data-font="script"] :is(.cover-pro .tagline .script, .biz-name h1, h2.sec-title, .cover-title, .display-name, h2.script) { font-family: var(--lmv-font-accent) !important; font-weight: 400 !important; }
.profile[data-font="marker"] :is(.cover-pro .tagline .script, .biz-name h1, h2.sec-title, .cover-title, .display-name, h2.script) { font-family: "Permanent Marker", cursive !important; font-weight: 400 !important; }

/* ---- Text contrast floor ---- */
body:not(.th-light) :is(.dim, .muted, .sub, .small.dim, .es-sub, .e2-sub, .h3-sub) { color: var(--lmv-muted); }
body:not(.th-light) ::placeholder { color: var(--lmv-placeholder); opacity: 1; }

/* ---- Buttons: one primary, one ghost, one size scale ---- */
:is(.btn, .h3-btn, .es-btn, .h3-ghost, body.ow .btn) { border-radius: var(--lmv-r-ctl) !important; font-family: var(--lmv-font-body); font-weight: 700; letter-spacing: 0; min-height: 44px; }
:is(.btn-blue, .h3-btn, .h3s .h3-btn, .es-btn, .e2-send-report, body.ow .btn:not(.ghost):not(.btn-ghost), .nav .btn-blue, a.signup-cta) {
  background: var(--lmv-btn-grad) !important; color: #f7f7f8 !important; border: 1px solid color-mix(in srgb, var(--lmv-acc) 40%, transparent) !important;
  box-shadow: var(--lmv-shadow-btn) !important; text-shadow: none !important; }
:is(.btn-blue, .h3-btn, .es-btn, body.ow .btn):hover { filter: brightness(1.07); }
:is(.btn-ghost, .h3-ghost, body.ow .btn.ghost) { background: color-mix(in srgb, #fff 4%, transparent) !important; border: 1px solid var(--lmv-line) !important; color: var(--lmv-text) !important; box-shadow: none !important; }
.btn-sm { min-height: 36px; padding: 6px 14px; border-radius: 10px !important; font-size: .9rem; }
.es-btn { font-size: 1.05rem !important; min-height: 52px !important; }
.h3-btn { font-size: 1rem !important; min-height: 52px; }
/* Active chips / tabs: tinted outline instead of a solid red block */
:is(.chip.on, .seg .on, .v3-tabs a.on, .v3-tabs .on, .tabs a.on, .tabs .on, .fb-chip.on, body.ow nav a.on, body.ow .ow-nav a.on) {
  background: color-mix(in srgb, var(--lmv-acc-soft) 18%, transparent) !important; border: 1px solid color-mix(in srgb, var(--lmv-acc-soft) 60%, transparent) !important; color: var(--lmv-ink) !important; box-shadow: none !important; }

/* ---- Cards: one radius, one border, one shadow ---- */
:is(.card, .h3s-card, .es-card, .cp-card, .c2-card, .c2-panel, .lmv-card, .fb-featcard, .ow-tile, .f-panel, .su-pick-card, body.ow .card, body.ow section.panel) {
  border-radius: var(--lmv-r-card) !important; border-color: var(--lmv-line); box-shadow: var(--lmv-shadow) !important; }
:is(.card, .es-card, .cp-card, .c2-card, .lmv-card, .ow-tile) { background-color: var(--lmv-card); }
.h3s-card { box-shadow: var(--lmv-shadow) !important; }
/* Inputs share the control radius */
:is(input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea):not(.e2-pin-box) { border-radius: var(--lmv-r-ctl); }
/* Pills */
:is(.pill, .new-pill, .fb-tag, .fb-samplepill, .fb-soonpill) { border-radius: var(--lmv-r-pill); }
/* Remaining script titles found by the computed-style audit */
.c2-gv { font-family: var(--lmv-font-head) !important; font-weight: 700 !important; text-shadow: none !important; color: var(--lmv-ink) !important; font-size: 1.15rem !important; letter-spacing: -.01em; }
@media (min-width: 900px) { .es-title { font-family: var(--lmv-font-head) !important; font-weight: 700 !important; font-size: var(--lmv-h1) !important; color: var(--lmv-ink) !important; text-shadow: none !important; letter-spacing: -.01em; } }
/* Uploaded banners usually carry their own name art: shrink the overlay name to a quiet label instead of a second big title (Pia #4; banner_has_text flag still to come) */
.cover-pro.c2 .tagline { top: 10px !important; bottom: auto !important; left: 10px !important; right: auto !important; }
.cover-pro.c2 .tagline .script { font-size: .95rem !important; font-weight: 600 !important; padding: 4px 10px; border-radius: var(--lmv-r-pill); background: rgba(14,14,16,.72); border: 1px solid var(--lmv-line); margin: 0 !important; }
/* Owner portal: narrow main column on phones */
body.ow h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem) !important; }
