/* ============================================================
   VEMAX — component classes (runtime implementation of DESIGN.md)
   No box-shadow anywhere. Logical properties only (RTL-safe).
   ============================================================ */

/* ---------- shared ---------- */
.divider {
  height: 1px;
  width: 100%;
  background: var(--color-border);
}
.divider--inverse {
  background: var(--color-border-inverse);
}
.card-surface {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.card-surface--muted-band {
  border-color: transparent;
}
.skeleton {
  background: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; opacity: 0.7; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 48px;
  min-width: 140px;
  padding-inline: var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-hero);
  font-size: var(--fs-button);
  line-height: var(--lh-button);
  font-weight: 500;
  transition: background-color var(--dur-color) var(--ease-ui),
    border-color var(--dur-color) var(--ease-ui), color var(--dur-color) var(--ease-ui);
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { background: var(--color-primary-active); }
.btn--secondary {
  background: var(--color-background);
  color: var(--color-text-primary);
  border-color: var(--color-border);
  font-weight: 400;
}
.btn--secondary:hover { border-color: var(--color-border-strong); }
.btn--secondary:active { background: var(--color-surface-muted); }
.btn--full { width: 100%; }
.btn--pill-sm { height: 44px; min-width: 0; padding-inline: var(--space-base); }
.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--color-primary-disabled);
  border-color: transparent;
  color: var(--color-text-secondary);
  cursor: not-allowed;
}
.btn--secondary[disabled] {
  background: var(--color-surface-muted);
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-pill);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  color: var(--color-primary);
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--dur-color) var(--ease-ui);
}
.link:hover { text-decoration: underline; }
.link:active { color: var(--color-primary-active); }
.link--arrow::after { content: "\2192"; margin-inline-start: var(--space-sm); }
html[dir="rtl"] .link--arrow::after { content: "\2190"; }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: var(--fw-label);
}
.badge--neutral { background: var(--color-surface-muted); color: var(--color-text-primary); }
.badge--sale { background: var(--color-accent-sale); color: var(--color-text-inverse); }
.stock-row { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; }
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-success-indicator);
  flex: none;
}
.stock-text { color: var(--color-accent-success); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }

/* ---------- header ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-lg);
  inset-block-start: var(--space-sm);
  z-index: var(--z-toast);
  background: var(--color-background);
  color: var(--color-text-primary);
  padding: 0 var(--space-base);
  height: 44px;
  display: none;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}
.skip-link:focus-visible { display: inline-flex; }
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--color-header-glass-fallback);
  border-block-end: 1px solid var(--color-border);
}
@supports (backdrop-filter: blur(4px)) {
  .header {
    background: var(--color-header-glass);
    backdrop-filter: blur(24px) saturate(180%);
  }
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-base);
}
.header__group { display: flex; align-items: center; gap: var(--space-xs); }
.header__group--end { margin-inline-start: auto; }
.wordmark {
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-strong);
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline-end: var(--space-md);
}
html[lang="zh"] .wordmark,
html[lang="ar"] .wordmark { letter-spacing: 0; }
.nav-link {
  display: none;
  align-items: center;
  height: 44px;
  padding-inline: var(--space-md);
  border-radius: var(--radius-xs);
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  color: var(--color-text-primary);
  transition: color var(--dur-color) var(--ease-ui);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:active { color: var(--color-primary-active); }
.nav-link[aria-current="page"] {
  font-weight: 600;
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-block-end: 6px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--color-text-primary);
}
html[dir="rtl"] .nav-link[aria-current="page"]::after { transform: translateX(50%); }
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-color) var(--ease-ui);
}
.icon-btn:hover { background: var(--color-surface-muted); }
.icon-btn:active { background: var(--color-pressed); }
.count-badge {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--fs-caption);
  line-height: 1;
  box-shadow: none;
  border: 2px solid var(--color-background);
  font-variant-numeric: tabular-nums;
}
.count-badge--pulse { min-width: 6px; width: 6px; height: 6px; padding: 0; }
.lang-select {
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--fs-body-sm);
  padding-inline: var(--space-md) 36px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
html[dir="rtl"] .lang-select {
  background-position: 20px 20px, 14px 20px;
}
.lang-select--compact { display: none; }
.search-field {
  height: 44px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--fs-body-sm);
  padding-inline: 44px var(--space-md);
}
.search-field::placeholder { color: var(--color-text-secondary-accessible); }
.search-field:hover { border-color: var(--color-border-strong); }
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-wrap__icon {
  position: absolute;
  inset-inline-start: var(--space-md);
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary-accessible);
  pointer-events: none;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav-sheet);
  background: var(--color-background);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  animation: sheet-in var(--dur-panel) var(--ease-ui);
  overflow-y: auto;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-block-end: 1px solid var(--color-border);
  font-size: var(--fs-heading-md);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-heading-md);
}
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

@media (min-width: 1024px) {
  .nav-link { display: inline-flex; }
  .lang-select--compact { display: block; }
  .header__menu-btn { display: none; }
  .search-wrap--header { width: 240px; align-self: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  background: var(--color-surface-inverse);
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-media) var(--ease-carousel);
}
.hero__slide[data-active="true"] { opacity: 1; }
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-scrim);
}
.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block-end: var(--space-section-sm);
  gap: var(--space-base);
}
.hero__eyebrow { color: var(--color-text-on-dark-muted); }
.hero__title { color: var(--color-text-inverse); }
.hero__line { color: var(--color-text-inverse); max-width: 46ch; }
.hero__cta { align-self: flex-start; }
.hero__controls {
  position: absolute;
  inset-block-end: var(--space-lg);
  inset-inline-end: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 2;
}
.hero__dots { display: flex; align-items: center; }
.hero-dot {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  transition: background-color var(--dur-color) var(--ease-ui);
}
.hero-dot[aria-current="true"]::before { background: var(--color-text-inverse); }
.hero-dot:hover::before { background: var(--color-text-inverse); }
.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { border-color: var(--color-text-inverse); }
.hero__skeleton {
  position: absolute;
  inset-inline-start: var(--space-lg);
  inset-block-end: var(--space-section-sm);
  width: min(520px, 70%);
  height: 120px;
  background: #1d1d1f;
  border-radius: var(--radius-lg);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-base);
  margin-block-end: var(--space-xxl);
}

/* ---------- grids ---------- */
.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--featured { grid-template-columns: repeat(2, 1fr); }
  .grid--listing { grid-template-columns: repeat(2, 1fr); }
  .grid--tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid--tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--featured { grid-template-columns: repeat(4, 1fr); }
  .grid--listing { grid-template-columns: repeat(3, 1fr); }
  .grid--tiles { grid-template-columns: repeat(4, 1fr); }
}
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-section-sm); }
  .split--product { grid-template-columns: 640px 480px; gap: 64px; align-items: start; }
}

/* ---------- product card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: transparent;
  transition: border-color var(--dur-color) var(--ease-ui);
}
.product-card--muted-band { border-color: transparent; }
.product-card:hover { border-color: var(--color-border-strong); }
.product-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-media) var(--ease-ui);
}
.product-card:hover .product-card__img { transform: scale(1.02); }
.product-card__body { display: flex; flex-direction: column; gap: var(--space-xs); }
.product-card__title { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.product-card__tagline { color: var(--color-text-secondary-accessible); font-size: var(--fs-body-xs); line-height: var(--lh-body-xs); }
.product-card__prices { display: flex; align-items: baseline; gap: var(--space-sm); }
.price-original {
  color: var(--color-text-secondary);
  font-size: var(--fs-body-sm);
  text-decoration: line-through;
}
.product-card__action { margin-block-start: auto; }
.card-add {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  border-radius: var(--radius-pill);
}
.card-add:hover { text-decoration: underline; }
.empty-block {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-base);
}

/* ---------- category tile ---------- */
.tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-muted);
  aspect-ratio: 3 / 2;
}
.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-media) var(--ease-ui);
}
.tile:hover .tile__img { transform: scale(1.02); }
.tile__label {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  width: 100%;
}
.tile__title { color: var(--color-text-inverse); }
.tile__count { color: var(--color-text-inverse); }

/* ---------- product detail ---------- */
.gallery__main {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 640px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs {
  display: flex;
  gap: var(--space-md);
  margin-block-start: var(--space-base);
  overflow-x: auto;
  padding-block-end: var(--space-xs);
}
.thumb {
  width: 88px;
  height: 88px;
  flex: none;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--color-border-strong); }
.thumb[aria-current="true"] { border: 2px solid var(--color-border-strong); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.chip {
  height: 44px;
  padding-inline: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--fs-body-sm);
  transition: border-color var(--dur-color) var(--ease-ui);
}
.chip:hover { border-color: var(--color-border-strong); }
.chip[aria-pressed="true"] { border: 2px solid var(--color-border-strong); font-weight: 600; }
.chip[disabled] {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}
.detail-group { display: flex; flex-direction: column; gap: var(--space-md); }
.detail-label { color: var(--color-text-primary); }
.detail-static {
  color: var(--color-text-secondary-accessible);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}
.cta-slot { margin-block-start: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; }
.field__label {
  color: var(--color-text-primary);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: var(--fw-label);
  padding-block-end: var(--space-sm);
}
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  transition: border-color var(--dur-color) var(--ease-ui);
}
.input, .select { height: 44px; padding-inline: var(--space-md); }
.input { padding-block: 0; }
.textarea { min-height: 132px; padding: var(--space-md); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--color-text-secondary-accessible); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-border-strong); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border: 2px solid var(--color-accent-sale); }
.field__error {
  color: var(--color-accent-sale);
  font-size: var(--fs-body-xs);
  line-height: var(--lh-body-xs);
  padding-block-start: var(--space-xs);
}
.input[disabled], .select[disabled], .textarea[disabled] {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}
.select-sm { width: 200px; max-width: 100%; }
.choice-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: 48px;
  padding-inline: var(--space-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  font-size: var(--fs-body-sm);
}
.choice-row[data-selected="true"] {
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface-muted);
}
.choice-row input { accent-color: var(--color-primary); width: 18px; height: 18px; }

/* ---------- inquiry ---------- */
.panel-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: var(--color-scrim);
}
.panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: var(--z-panel);
  width: 400px;
  max-width: 100%;
  background: var(--color-background);
  border-inline-start: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  animation: panel-in var(--dur-panel) var(--ease-ui);
}
@keyframes panel-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
html[dir="rtl"] .panel { animation-name: panel-in-rtl; }
@keyframes panel-in-rtl {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-base);
  padding: var(--space-lg);
  border-block-end: 1px solid var(--color-border);
}
.panel__items { flex: 1; overflow-y: auto; padding-inline: var(--space-lg); }
.panel-item {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding-block: var(--space-md);
  border-block-end: 1px solid var(--color-border);
}
.panel-item:hover { background: var(--color-surface-muted); }
.panel-item__thumb {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  overflow: hidden;
}
.panel-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.panel__foot {
  padding: var(--space-lg);
  border-block-start: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-base);
}
.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-base);
  min-height: 40px;
}
.kv-row + .kv-row { border-block-start: 1px solid var(--color-border); }
.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-base);
  padding: var(--space-xxl) var(--space-lg);
}
.inquiry-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 480px;
  max-width: 100%;
}

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-block-start: var(--space-xxl);
}
.page-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--fs-body-sm);
  font-variant-numeric: tabular-nums;
}
.page-btn:hover { background: var(--color-surface-muted); }
.page-btn[aria-current="page"] {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-text-primary);
}
.page-btn[disabled] {
  border-color: var(--color-border);
  color: var(--color-text-secondary);
  pointer-events: none;
}
html[dir="rtl"] .page-btn--arrow svg { transform: scaleX(-1); }

/* ---------- listing header ---------- */
.listing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-base);
  margin-block-end: var(--space-xl);
}
.listing-actions { display: flex; align-items: center; gap: var(--space-md); }

/* ---------- footer ---------- */
.footer {
  background: var(--color-surface-footer);
  color: var(--color-text-on-dark-muted);
  padding-block: 64px var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__wordmark {
  color: var(--color-text-inverse);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  font-weight: 600;
}
html[lang="zh"] .footer__wordmark,
html[lang="ar"] .footer__wordmark { letter-spacing: 0; }
.footer__heading { color: var(--color-text-inverse); margin-block-end: var(--space-md); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-body-sm);
  transition: color var(--dur-color) var(--ease-ui);
}
.footer-link:hover { color: var(--color-text-inverse); text-decoration: underline; }
.footer-link:active { font-weight: 600; }
.footer__bottom {
  margin-block-start: var(--space-xxl);
  padding-block-start: var(--space-lg);
  border-block-start: 1px solid var(--color-border-inverse);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-base);
  justify-content: space-between;
  color: var(--color-text-on-dark-muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-base); }

/* ---------- page bits ---------- */
.centered-band {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-section-sm);
}
.prose p + p { margin-block-start: var(--space-base); }
.prose p { font-size: var(--fs-body); line-height: var(--lh-body); }
.driver-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .driver-grid { grid-template-columns: repeat(3, 1fr); }
}
.media-frame {
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.rail {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: var(--space-base);
}
.rail > * { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 768px) {
  .rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .rail > * { flex: initial; }
}
@media (max-width: 639px) {
  .panel {
    inset-block: auto 0;
    inset-inline: 0;
    width: 100%;
    height: 100dvh;
    border-inline-start: 0;
    border-start-start-radius: var(--radius-lg);
    border-start-end-radius: var(--radius-lg);
  }
}
