/* MotorClash theme layer: fonts, site background, header/footer, Elementor dark mode.
   Color tokens (--tbd-*) come from MotorClash Core; fallbacks keep the theme usable alone. */
:root { --tbd-font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; --tbd-display: "Saira", "Readex Pro", system-ui, sans-serif; }
/* Elementor widgets use the kit's global fonts (Roboto by default): match the site font. */
body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: "Saira";
	--e-global-typography-secondary-font-family: "Saira";
	--e-global-typography-text-font-family: "Readex Pro";
	--e-global-typography-accent-font-family: "Readex Pro";
}

body {
	font-family: var(--tbd-font);
	background: var(--tbd-bg, #f7f8f2);
	color: var(--tbd-text, #0f1115);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--tbd-display); color: var(--tbd-text, #0f1115); letter-spacing: -0.01em; }

/* Elementor global colors follow light/dark automatically.
   Set them in Elementor → Site Settings → Global Colors to:
   Primary #0F1115 · Secondary #42464E · Text #42464E · Accent #D1FF42 (light values);
   dark values are swapped in here. */
html[data-theme="dark"] body[class*="elementor-kit-"] {
	--e-global-color-primary: #f1f0ec;
	--e-global-color-secondary: #b9bec5;
	--e-global-color-text: #b9bec5;
	--e-global-color-accent: #d1ff42;
}
/* Optional helper classes for Elementor sections/containers (Advanced → CSS Classes). */
.tbd-bg { background: var(--tbd-bg) !important; }
.tbd-surface { background: var(--tbd-surface) !important; border: 1px solid var(--tbd-border); border-radius: 14px; }
.tbd-surface-2 { background: var(--tbd-surface-2) !important; }
.tbd-hero-band { background: radial-gradient(1200px 500px at 80% -10%, var(--tbd-accent-soft), transparent 60%), var(--tbd-bg) !important; }

/* Header */
.tbd-site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--tbd-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--tbd-border); }
.tbd-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }
.tbd-wordmark { display: inline-flex; align-items: center; gap: 9px; font: italic 800 21px/1 var(--tbd-display); text-transform: uppercase; text-decoration: none; color: var(--tbd-text); direction: ltr; }
.tbd-wordmark-mark { display: inline-flex; width: 34px; height: 34px; }
.tbd-wordmark-mark svg { width: 100%; height: 100%; display: block; }
/* New MOTOR | CLASH logo: ink on light, paper + lime on dark */
.tbd-logo { color: var(--tbd-text, #111317); line-height: 0; }
.tbd-logo .tbd-logo-svg { height: 30px; width: auto; display: block; }
.tbd-logo .mc-c { fill: currentColor; }
.tbd-logo .mc-o { fill: #ff693d; }
html[data-theme="dark"] .tbd-logo { color: #f7f8f2; }
html[data-theme="dark"] .tbd-logo .mc-c { fill: #d1ff42; }
.tbd-site-footer .tbd-logo { color: #f7f8f2 !important; }
.tbd-site-footer .tbd-logo .mc-c { fill: #d1ff42; }
.tbd-nav { flex: 1; overflow-x: auto; }
.tbd-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tbd-nav a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--tbd-text-2); text-decoration: none; white-space: nowrap; }
.tbd-nav a:hover, .tbd-nav .current-menu-item > a { background: var(--tbd-surface); color: var(--tbd-text); }
.tbd-header-tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.tbd-header-account, .tbd-lang-switch { font-weight: 650; font-size: 14px; color: var(--tbd-text-2); text-decoration: none; }
.tbd-header-account { display: inline-flex; align-items: center; gap: 7px; }
.tbd-header-account svg { display: none; }
.tbd-header-account:hover, .tbd-lang-switch:hover { color: var(--tbd-text); }
@media (max-width: 860px) {
	.tbd-header-inner { gap: 8px; padding: 10px 16px; }
	.tbd-brand { flex: 1; min-width: 0; }
	.tbd-logo .tbd-logo-svg { height: 24px; }
	.tbd-wordmark { font-size: 18px; gap: 7px; }
	.tbd-wordmark-mark { width: 30px; height: 30px; }
	.tbd-nav { display: none; }
	.tbd-header-tools { gap: 8px; }
	.tbd-header-tools .tbd-lang-switch { font-size: 13px; height: 38px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--tbd-border-strong, var(--tbd-border)); border-radius: 12px; background: var(--tbd-surface); color: var(--tbd-text); }
	.tbd-header-tools .tbd-theme-toggle { border-radius: 12px; }
	.tbd-header-account { width: 38px; height: 38px; justify-content: center; border-radius: 12px; border: 1px solid var(--tbd-border-strong, var(--tbd-border)); background: var(--tbd-surface); color: var(--tbd-text); }
	.tbd-header-account.is-in { background: var(--tbd-ink, #111317); border-color: var(--tbd-ink, #111317); color: #d1ff42; }
	html[data-theme="dark"] .tbd-header-account.is-in { background: #d1ff42; border-color: #d1ff42; color: #111317; }
	.tbd-header-account svg { display: block; }
	.tbd-header-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
	.tbd-logo .tbd-logo-svg { height: 20px; }
}

/* Footer: always on the dark "ink" band, like the hero */
.tbd-site-footer { margin-top: 60px; background: var(--tbd-ink, #111317); color: #c9ccd1; border-top: 3px solid var(--tbd-accent, #d1ff42); }
.tbd-site-footer .tbd-wordmark, .tbd-site-footer .tbd-wm-a { color: #fff !important; }
.tbd-footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 16px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.tbd-footer-tag { color: #9aa0a8; margin: 8px 0 0; }
.tbd-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tbd-site-footer a { text-decoration: none; color: #d6d8dc; }
.tbd-site-footer a:hover { color: #fff; }
.tbd-site-footer .tbd.tbd-menu li a { color: #d6d8dc; }
.tbd-footer-legal { flex-basis: 100%; color: #8a9098; font-size: 13px; margin: 0; line-height: 1.7; border-top: 1px solid #2a2f36; padding-top: 14px; }
.tbd-site-footer .tbd-owner a { color: var(--tbd-accent, #d1ff42); text-decoration: underline; text-underline-offset: 2px; }

/* Hello's default page wrapper: give our hub pages room. */
.page-content > .tbd, .page-content > .alignwide { max-width: 1200px; margin-inline: auto; }
.page-content > .tbd-home { max-width: none; }
main.site-main { max-width: 1200px; padding-inline: 16px; margin-inline: auto; }
body.tbd-hub-page main.site-main { max-width: none; padding-inline: 0; }
body.tbd-hub-page .page-content > .tbd:not(.tbd-home) { max-width: 1200px; margin-inline: auto; padding: 24px 16px 48px; }
.page-header .entry-title { color: var(--tbd-text); }
@media (max-width: 760px) {
	.tbd-site-footer { margin-top: 36px; }
	.tbd-footer-inner { padding: 24px 16px; gap: 16px; }
}

/* Signed in: the WordPress admin bar sits above the sticky header */
.admin-bar .tbd-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tbd-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tbd-site-header { top: 0; } }
