/*
 * MFZ Studio Moto Tools — unified presentation layer, 20/11/2026.
 * UI ONLY: no motorcycle data, calculation logic, form IDs, JS, PHP or storage changes.
 * Remove this link from the seven index.php files to restore the original design.
 */
:root { color-scheme: dark; }
body.moto-ui {
  --ui-bg: #08111b;
  --ui-surface: #101d2a;
  --ui-surface-raised: #152434;
  --ui-surface-soft: #1b2b3b;
  --ui-line: rgba(165,190,215,.18);
  --ui-text: #f5f9fd;
  --ui-muted: #b6c4d2;
  --ui-dim: #91a6b8;
  --ui-accent: #4bddc9;
  --ui-accent-rgb: 75,221,201;
  --ui-shadow: 0 12px 36px rgba(0,0,0,.20);
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: radial-gradient(ellipse 1100px 560px at 6% -12%, rgba(var(--ui-accent-rgb),.10),transparent 69%),
              radial-gradient(ellipse 750px 480px at 100% 8%,rgba(73,112,165,.13),transparent 68%),
              linear-gradient(160deg,#08111b 0%,#0b1724 63%,#0a1420 100%);
  color: var(--ui-text);
  font: 400 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.moto-home { --ui-accent:#4bddc9; --ui-accent-rgb:75,221,201; }
body.moto-cfmoto { --ui-accent:#fb7d86; --ui-accent-rgb:251,125,134; }
body.moto-honda { --ui-accent:#fa7583; --ui-accent-rgb:250,117,131; }
body.moto-ktm { --ui-accent:#ff9b57; --ui-accent-rgb:255,155,87; }
body.moto-kove { --ui-accent:#53d7c0; --ui-accent-rgb:83,215,192; }
body.moto-suzuki { --ui-accent:#82b7ff; --ui-accent-rgb:130,183,255; }
body.moto-yamaha { --ui-accent:#73b4ff; --ui-accent-rgb:115,180,255; }
body.moto-ui *, body.moto-ui *::before, body.moto-ui *::after { box-sizing: border-box; }
body.moto-ui > * { min-width: 0; }
body.moto-ui .wrap, body.moto-ui .mfz-suspension-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
body.moto-ui main { min-width: 0; }
body.moto-ui a, body.moto-ui button { -webkit-tap-highlight-color: transparent; }
body.moto-ui button, body.moto-ui select, body.moto-ui input { font: inherit; }
body.moto-ui button, body.moto-ui [type="button"], body.moto-ui [type="submit"], body.moto-ui summary { cursor: pointer; }
body.moto-ui :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--ui-accent);
  outline-offset: 3px;
}
body.moto-ui h1,body.moto-ui h2,body.moto-ui h3,body.moto-ui h4 { text-wrap: balance; }
body.moto-ui h1 { font-weight: 850; letter-spacing: -.04em; line-height: 1.1; }
body.moto-ui h2,body.moto-ui h3 { letter-spacing: -.02em; }
body.moto-ui :is(section,details)[id] { scroll-margin-top: 90px; }
body.moto-ui ::selection { color:#08131c; background:#9cefe2; }

/* Keep all existing navigation links, but give every brand the same usable header. */
body.moto-ui :is(.topbar,.mfz-topbar) {
  gap: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(16,29,42,.88);
  box-shadow: 0 10px 34px rgba(0,0,0,.14);
  padding: 12px 14px;
  margin-bottom: 14px;
  backdrop-filter: blur(18px);
}
body.moto-ui .topbar .brand, body.moto-ui .mfz-brand-link, body.moto-ui .topbar > a { color: var(--ui-text); }
body.moto-ui .brand small, body.moto-ui .brand-title small,body.moto-ui .brand span:not(.logo) { color:var(--ui-muted); }
body.moto-ui :is(.logo,.mfz-brand-badge) {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 14px rgba(0,0,0,.16);
}
body.moto-ui :is(.topnav,.navlinks,.brandNav,.brand-nav,.mfz-nav-links,nav.nav) {
  display:flex;
  align-items:center;
  gap:6px;
  max-width:100%;
}
body.moto-ui :is(.topnav,.navlinks,.brandNav,.brand-nav,.mfz-nav-links,nav.nav) a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:36px;
  padding:7px 12px;
  border:1px solid var(--ui-line);
  border-radius:10px;
  background:rgba(255,255,255,.045);
  color:#c9d9e6;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  line-height:1.2;
  white-space:nowrap;
  box-shadow:none;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
body.moto-ui :is(.topnav,.navlinks,.brandNav,.brand-nav,.mfz-nav-links,nav.nav) a:is(:hover,:focus-visible) {
  border-color:rgba(var(--ui-accent-rgb),.55);
  background:rgba(var(--ui-accent-rgb),.12);
  color:#fff;
}
body.moto-ui :is(.topnav,.navlinks,.brandNav,.brand-nav,.mfz-nav-links,nav.nav) a:is(.active,.is-active,[aria-current="page"]) {
  color:#fff;
  background:rgba(var(--ui-accent-rgb),.19);
  border-color:rgba(var(--ui-accent-rgb),.48);
}
body.moto-ui .topbar a.brand { text-decoration:none; }
body.moto-yamaha .topbar { border-radius:0 0 16px 16px; background:rgba(10,22,35,.95); }
body.moto-ktm .hero .topbar { background:transparent; border:0; box-shadow:none; padding:0; }

/* Calm hero hierarchy across all calculators. */
body.moto-ui :is(.hero,.mfz-hero) {
  position:relative;
  border:1px solid var(--ui-line);
  border-radius:20px;
  background:radial-gradient(ellipse at 95% 0%,rgba(var(--ui-accent-rgb),.18),transparent 48%),
             linear-gradient(125deg,rgba(30,48,65,.96),rgba(12,24,37,.98));
  color:var(--ui-text);
  box-shadow:var(--ui-shadow);
  padding: clamp(18px,2.5vw,30px);
  overflow:hidden;
  isolation:isolate;
}
body.moto-ui :is(.hero,.mfz-hero)::before { opacity:.26; }
body.moto-ui :is(.hero,.mfz-hero)::after { opacity:.14; }
body.moto-ui :is(.hero,.mfz-hero) h1,
body.moto-ui .hero .gradient-text { color:var(--ui-text); }
body.moto-ui :is(.hero,.mfz-hero) h1 { font-size:clamp(26px,3.4vw,41px); line-height:1.12; max-width:970px; margin:12px 0 10px; }
body.moto-ui .hero .gradient-text {
  background:linear-gradient(110deg,#aff9e9 0%,#67d9d4 65%,#e8ede7 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
body.moto-ui :is(.hero,.mfz-hero) p,body.moto-ui .hero .lead { color:#c3d2df; font-weight:450; font-size:13.5px; line-height:1.65; max-width:820px; }
body.moto-ui :is(.kicker,.mfz-kicker) {
  border:1px solid rgba(var(--ui-accent-rgb),.28);
  border-radius:8px;
  background:rgba(var(--ui-accent-rgb),.10);
  color:#d9f7f3;
  box-shadow:none;
  font-size:11px;
  font-weight:800;
  letter-spacing:.035em;
}
body.moto-ui :is(.hero-actions,.actions,.mfz-hero-actions) { gap:9px; }
body.moto-ui :is(.btn,.mfz-btn,.mfz-donate) {
  min-height:42px;
  padding:10px 14px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:750;
  line-height:1.25;
  transition:background-color .15s ease,border-color .15s ease,transform .15s ease;
}
body.moto-ui :is(.btn,.mfz-btn):hover { transform:translateY(-1px); }
body.moto-ui :is(.btn-primary,.mfz-btn-primary) {
  color:#071b22;
  background:linear-gradient(120deg,#a1f4e5,#5fddcf);
  border:1px solid rgba(202,255,242,.6);
  box-shadow:0 6px 18px rgba(33,185,167,.12);
}
body.moto-ui .moto-ui-soft { background:rgba(255,255,255,.055); border:1px solid var(--ui-line); }

/* Compact, consistent tool surfaces without touching dynamic output markup. */
body.moto-ui :is(.panel,.mfz-panel,.support,.mfz-support,.mfz-count-clarity,details.details,details.mfz-details,.section.details) {
  background:linear-gradient(160deg,rgba(21,35,50,.96),rgba(13,25,38,.97));
  border:1px solid var(--ui-line);
  border-radius:17px;
  box-shadow:var(--ui-shadow);
  color:var(--ui-text);
  overflow:hidden;
}
body.moto-ui :is(.panel-head,.mfz-panel-head,.panel .head,.support-head,.mfz-support-head,.support .head) {
  border-bottom:1px solid var(--ui-line);
  background:rgba(255,255,255,.033);
  padding:13px 16px;
  color:var(--ui-text);
}
body.moto-ui :is(.panel-head,.mfz-panel-head,.panel .head,.support-head,.mfz-support-head,.support .head) :is(h2,h3) {
  margin:0;
  font-size:16px;
  font-weight:800;
  color:var(--ui-text);
}
body.moto-ui :is(.panel-body,.mfz-panel-body,.panel .body,.support-body,.mfz-support-body,.support .body) { padding:16px; }
body.moto-ui :is(.grid,.mfz-grid) { gap:14px; align-items:start; }
body.moto-ui :is(.field label,.mfz-field label) {
  display:block;
  color:#d2deea;
  font-size:12.5px;
  font-weight:750;
  letter-spacing:.005em;
  margin-bottom:6px;
}
body.moto-ui :is(.field input,.field select,.mfz-field input,.mfz-field select,.panel input,.panel select) {
  min-width:0;
  max-width:100%;
  min-height:44px;
  border:1px solid rgba(165,190,215,.27);
  border-radius:10px;
  background:#0d1928;
  color:#f5f9fd;
  padding:10px 12px;
  font-size:14px;
  line-height:1.35;
  box-shadow:none;
  accent-color:var(--ui-accent);
}
body.moto-ui :is(.field input,.field select,.mfz-field input,.mfz-field select,.panel input,.panel select):focus {
  border-color:rgba(var(--ui-accent-rgb),.7);
  box-shadow:0 0 0 3px rgba(var(--ui-accent-rgb),.12);
  outline:none;
}
body.moto-ui input[readonly] { opacity:.85; background:#192839; }
body.moto-ui select option { color:#fff; background:#122234; }
body.moto-ui :is(.scenario,.mfz-scenario) {
  min-width:0;
  min-height:65px;
  border:1px solid var(--ui-line);
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:#eef5fa;
  box-shadow:none;
  padding:11px;
  text-align:left;
  transition:background-color .15s ease,border-color .15s ease;
}
body.moto-ui :is(.scenario,.mfz-scenario) :is(span,small) { color:var(--ui-muted); }
body.moto-ui :is(.scenario.active,.scenario.is-active,.mfz-scenario.is-active) {
  border-color:rgba(var(--ui-accent-rgb),.75);
  background:rgba(var(--ui-accent-rgb),.12);
  box-shadow:inset 0 0 0 1px rgba(var(--ui-accent-rgb),.10);
}
body.moto-ui :is(.scenario,.mfz-scenario):hover { border-color:rgba(var(--ui-accent-rgb),.5); }
body.moto-ui :is(.result-card,.mfz-result-card,.panel .card,.panel .result-card,.mfz-total-card,.stat,.notice) {
  border:1px solid var(--ui-line);
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:var(--ui-text);
  box-shadow:none;
}
body.moto-ui :is(.result-card,.mfz-result-card,.panel .card) :is(h3,h4,strong) { color:#f5f9fd; }
body.moto-ui :is(.result-card,.mfz-result-card,.panel .card) :is(p,span) { color:#c2d0dd; }
body.moto-ui :is(.mfz-total-value,.total,.stat strong) { font-variant-numeric:tabular-nums; }
body.moto-ui :is(.chip,.mfz-chip) { border:1px solid var(--ui-line); color:#d8e4ee; background:rgba(255,255,255,.06); }
body.moto-ui :is(.small,.mini,.mfz-mini,.support-card p,.mfz-support-card p) { color:var(--ui-muted); }
body.moto-ui :is(.notice,.mfz-note,.disclaimer,.mfz-disclaimer) { line-height:1.6; }
body.moto-ui :is(.support-card,.mfz-support-card,.support .card) {
  background:rgba(255,255,255,.045);border:1px solid var(--ui-line);border-radius:13px;
}
body.moto-ui :is(.table-wrap,.mfz-table-wrap) { max-width:100%; overflow-x:auto; }
body.moto-ui table { max-width:100%; }
body.moto-ui :is(details.details,details.mfz-details) summary { padding:14px 16px; }
body.moto-ui :is(.footer,footer) { color:var(--ui-muted); }

/* Landing: workbench-style brand directory, deliberately separate from result cards. */
body.moto-home::before,body.moto-home::after { display:none; }
body.moto-home .wrap { padding-top:16px; }
body.moto-home .topbar { padding:12px 14px; }
body.moto-home .brand { color:var(--ui-text); }
body.moto-home .brand-title small { color:#a7bccb; }
body.moto-home .hero { padding:clamp(22px,3.5vw,42px); }
body.moto-home .hero h1 { max-width:890px; font-size:clamp(30px,4.2vw,51px); }
body.moto-home .hero p { font-size:14px; }
body.moto-home .stats { gap:10px; margin-top:14px; }
body.moto-home .stat { min-height:80px; padding:13px 15px; background:#142535; }
body.moto-home .stat strong { color:#eefcf9; font-size:23px; font-weight:850; }
body.moto-home .stat span { color:#a9bccc; font-size:12px; font-weight:550; }
body.moto-home .section-head { margin:25px 0 13px; align-items:end; }
body.moto-home .section-head h2 { color:#f5f9fd; font-size:25px; }
body.moto-home .section-head p { color:var(--ui-muted); font-size:13px; }
body.moto-home .brand-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
body.moto-home .brand-grid .card {
  min-width:0;
  min-height:280px;
  border:1px solid var(--ui-line);
  border-radius:17px;
  background:linear-gradient(155deg,rgba(28,45,61,.95),rgba(16,29,42,.97));
  box-shadow:var(--ui-shadow);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body.moto-home .brand-grid .card:hover { border-color:rgba(var(--ui-accent-rgb),.54);transform:translateY(-2px);box-shadow:0 18px 36px rgba(0,0,0,.23); }
body.moto-home .brand-grid .card::after { opacity:.25; }
body.moto-home .card-body { padding:18px; gap:11px; }
body.moto-home .brand-grid .card h3 { font-size:20px; color:#f5f9fd; letter-spacing:-.025em; }
body.moto-home .brand-grid .card p { font-size:12.7px; color:#b6c7d4; line-height:1.55; font-weight:450; }
body.moto-home .brand-grid .card p strong { color:#e2eef6; font-size:12.5px; }
body.moto-home .bike-icon { width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.07);border:1px solid var(--ui-line);box-shadow:none; }
body.moto-home .status { color:#b0f5e0;background:rgba(29,198,151,.1);border:1px solid rgba(87,220,182,.29);box-shadow:none; font-size:10.5px; }
body.moto-home .models { border:1px solid var(--ui-line);border-radius:11px;background:rgba(5,15,26,.35);color:#b0c2d0;font-size:11.7px;line-height:1.45;padding:11px; }
body.moto-home .models strong { color:#ecf7fa; }
body.moto-home .card-actions .btn { min-height:43px; font-size:13px; }
body.moto-home .note-grid { gap:13px; margin-top:15px; }
body.moto-home .note-grid .panel { border:1px solid var(--ui-line); background:linear-gradient(150deg,#152639,#101d2b); }
body.moto-home .note-grid .panel h3 { color:#edf7fd;background:rgba(255,255,255,.04);border-bottom:1px solid var(--ui-line);font-size:16px;padding:14px 16px; }
body.moto-home .note-grid .panel-body { padding:15px; }
body.moto-home .checks li { color:#c5d5e1;border:1px solid var(--ui-line);background:rgba(255,255,255,.04);font-size:12.4px;padding:10px;line-height:1.5; }
body.moto-home .checks strong { color:#f4f9fd; }
body.moto-home .step b { background:linear-gradient(135deg,#118c83,#43ccbc);color:#06231f; }
body.moto-home .step span { color:#c1d1de; font-size:12.6px;line-height:1.55; }
body.moto-home .disclaimer { background:#152434;color:#b8cbd8;border:1px solid var(--ui-line);box-shadow:none;font-size:12.2px;padding:14px 16px; }
body.moto-home .footer { color:#aebfcd;font-size:12px; }
body.moto-home .footer a { color:#8feada; }

/* Tablets and phones: no horizontal page scrolling and no tiny tap targets. */
@media (max-width:1050px) {
  body.moto-home .brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.moto-ui :is(.topbar,.mfz-topbar) { flex-wrap:wrap; }
  body.moto-ui :is(.topnav,.navlinks,.brandNav,.brand-nav,.mfz-nav-links,nav.nav) { justify-content:flex-start; flex-wrap:nowrap; width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; padding-bottom:4px; }
}
@media (max-width:700px) {
  body.moto-ui { font-size:13.5px; }
  body.moto-ui .wrap,body.moto-ui .mfz-suspension-wrap { width:calc(100% - 24px); }
  body.moto-ui :is(.topbar,.mfz-topbar) { padding:10px; margin-bottom:10px; gap:9px; }
  body.moto-ui :is(.topnav,.navlinks,.brandNav,.brand-nav,.mfz-nav-links,nav.nav) a { min-height:41px; padding:9px 12px; font-size:12px; }
  body.moto-ui :is(.hero,.mfz-hero) { padding:18px; border-radius:15px; }
  body.moto-ui :is(.hero,.mfz-hero) h1 { font-size:clamp(25px,7vw,33px); letter-spacing:-.03em; }
  body.moto-ui :is(.hero,.mfz-hero) p { font-size:13px; line-height:1.6; }
  body.moto-ui :is(.panel,.mfz-panel,.support,.mfz-support) { border-radius:14px; }
  body.moto-ui :is(.panel-head,.mfz-panel-head,.panel .head,.support-head,.mfz-support-head,.support .head) { padding:12px; }
  body.moto-ui :is(.panel-body,.mfz-panel-body,.panel .body,.support-body,.mfz-support-body,.support .body) { padding:12px; }
  body.moto-ui :is(.grid,.mfz-grid) { grid-template-columns:minmax(0,1fr); gap:12px; }
  body.moto-ui :is(.field input,.field select,.mfz-field input,.mfz-field select,.panel input,.panel select) { font-size:16px; min-height:47px; }
  body.moto-ui :is(.form-grid,.form-grid-3,.formgrid,.mfz-form-grid) { grid-template-columns:minmax(0,1fr); }
  body.moto-ui :is(.scenario,.mfz-scenario) { min-height:66px; }
  body.moto-ui :is(.actions,.hero-actions,.mfz-hero-actions) { gap:8px; }
  body.moto-ui :is(.btn,.mfz-btn,.mfz-donate) { min-height:44px; }
  body.moto-ui :is(.support-grid,.supportGrid,.mfz-support-grid) { grid-template-columns:minmax(0,1fr); }
  body.moto-home .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.moto-home .stat { min-height:71px;padding:11px 12px; }
  body.moto-home .stat strong { font-size:20px; }
  body.moto-home .brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  body.moto-home .section-head { margin-top:20px; }
  body.moto-home .section-head h2 { font-size:22px; }
}
@media (max-width:520px) {
  body.moto-ui .wrap,body.moto-ui .mfz-suspension-wrap { width:calc(100% - 20px); }
  body.moto-home .hero { padding:20px 16px; }
  body.moto-home .hero h1 { font-size:clamp(29px,8vw,36px); }
  body.moto-home .brand-grid { grid-template-columns:minmax(0,1fr); }
  body.moto-home .brand-grid .card { min-height:0; }
  body.moto-home .card-body { padding:15px; gap:9px; }
  body.moto-home .note-grid,body.moto-home .checks { grid-template-columns:1fr; }
  body.moto-home .hero-actions { display:flex; flex-wrap:wrap; }
  body.moto-home .hero-actions .btn { width:auto; flex:1 1 150px; }
  body.moto-ui :is(.scenario-grid,.scenarios,.mfz-scenarios) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.moto-ui :is(.actions,.submit-row) { grid-template-columns:minmax(0,1fr); }
  body.moto-ui :is(.result-grid,.result-cards,.mfz-result-cards) { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:345px) {
  body.moto-ui :is(.scenario-grid,.scenarios,.mfz-scenarios) { grid-template-columns:minmax(0,1fr); }
  body.moto-home .stats { grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  body.moto-ui *,body.moto-ui *::before,body.moto-ui *::after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}
@media print {
  :root { color-scheme:light; }
  body.moto-ui { background:#fff!important;color:#111!important; }
  body.moto-ui :is(.topbar,.mfz-topbar,.hero,.mfz-hero,.support,.mfz-support) { box-shadow:none; }
  body.moto-ui :is(.panel,.mfz-panel,.result-card,.mfz-result-card) { background:white;color:#111;border-color:#777;box-shadow:none; }
  body.moto-ui :is(.panel-head,.mfz-panel-head,.panel-body,.mfz-panel-body) { background:white;color:#111; }
}
