/* Genesis-Motor catalog: shared by Chinese, English and Japanese pages. */
.motor-page {
  --motor-surface: #fff;
  --motor-line: #e4e0dc;
  --motor-muted: #63666a;
  --motor-ink: #1a1c1e;
  --motor-label: var(--brand-text, #b83200);
  color: var(--motor-ink);
  background: var(--bg);
  font-family: 'Geist', var(--font-cjk), sans-serif;
}
:lang(ja) .motor-page { font-family: 'Geist', var(--font-jp), sans-serif; }
:root[data-theme="dark"] .motor-page {
  --motor-surface: #171a1e;
  --motor-line: #343940;
  --motor-muted: #b9bec6;
  --motor-ink: #f3f4f6;
}
.motor-wrap { width: min(100% - 64px, 1280px); margin-inline: auto; }
.motor-hero { padding-top: 28px; padding-bottom: 32px; }
.motor-back {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 16px;
  border: 1px solid var(--motor-line); border-radius: 999px;
  background: var(--motor-surface); color: var(--motor-label);
  font-size: 14px; font-weight: 600; transition: border-color 180ms ease;
}
.motor-back:hover { border-color: var(--motor-label); }
.motor-back svg { flex-shrink: 0; }
.motor-heading { margin-top: 30px; }
.motor-eyebrow {
  color: var(--motor-label); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.motor-page h1 {
  margin-top: 12px; color: var(--brand-orange, #fe4400);
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; font-weight: 650;
}
:lang(zh) .motor-page h1, :lang(ja) .motor-page h1 { line-height: 1.3; }
.motor-subtitle { margin-top: 16px; font-size: 19px; font-weight: 500; }
.motor-description {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--motor-line);
  color: var(--motor-muted); font-size: 16px; line-height: 1.85;
}
.motor-catalog { padding-bottom: 48px; }
.motor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.motor-card {
  min-width: 0; padding: 18px 18px 20px;
  border: 1px solid var(--motor-line); border-left: 4px solid var(--brand-orange, #fe4400);
  border-radius: 16px; background: var(--motor-surface);
}
/* Definite image frames prevent intrinsic PNG dimensions from expanding cards.
   The original photos remain uncropped, including in the dark theme. */
.motor-figure {
  margin: 0 0 20px; padding: 8px; height: 210px; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px;
}
.motor-figure img {
  display: block; flex: 0 1 auto; min-width: 0; min-height: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.motor-page .motor-card h2 { font-size: 23px; line-height: 1.35; font-weight: 600; }
.motor-feature {
  min-height: 3.1em; margin-top: 8px; color: var(--motor-muted);
  font-size: 14px; line-height: 1.55;
}
.motor-voltage {
  margin-top: 12px; color: var(--motor-label); font-size: 26px; font-weight: 600;
  line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.motor-voltage span { font-size: 12px; font-weight: 500; margin-left: 5px; }
.motor-footnote {
  margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--motor-line);
  color: var(--motor-muted); font-size: 14px; line-height: 1.8;
}
.motor-page .contact { border-top: 1px solid var(--motor-line); padding-top: 64px; padding-bottom: 64px; }
.motor-page .contact-grid h2 { font-size: clamp(26px, 3vw, 38px); }
.motor-page a:focus-visible { outline: 2px solid var(--motor-label); outline-offset: 5px; }
@media (max-width: 1100px) {
  .motor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motor-figure { height: 235px; }
}
@media (max-width: 600px) {
  .motor-wrap { width: calc(100% - 32px); }
  .motor-hero { padding-top: 18px; padding-bottom: 28px; }
  .motor-heading { margin-top: 24px; }
  .motor-subtitle { font-size: 17px; }
  .motor-description { font-size: 15px; margin-top: 20px; padding-top: 20px; }
  .motor-grid { grid-template-columns: 1fr; gap: 18px; }
  .motor-card { padding: 20px; }
  .motor-figure { height: 230px; }
  .motor-feature { min-height: 0; }
  .motor-page .contact { padding-top: 40px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .motor-back { transition: none; } }
