/* R14: improve reading clarity while keeping the established Protraction display style. */

/* Editorial display type stays on the home hero, navigation ring and racing title.
   Dialogs and commerce forms use the calmer body face for long Greek headings. */
.quote-dialog h2,
.detail-dialog h2 {
  font-family: var(--body) !important;
  font-size: clamp(27px, 3.2vw, 34px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.025em !important;
  margin: 10px 0 22px !important;
  text-wrap: balance;
}

.checkout-dialog h2 {
  max-width: calc(100% - 42px);
}

.checkout-section h3 {
  font-family: var(--body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  margin: 0 0 15px;
}

.payment-instructions h4 {
  font: 600 17px/1.4 var(--body);
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.commerce-dialog .field label,
.detail-dialog .field label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.checkout-choices label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.checkout-help {
  font-size: 12px !important;
  line-height: 1.65;
}

.commerce-total strong,
.checkout-final-total {
  font-family: var(--body) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Product discovery: soften condensed all-caps labels that carry real information. */
.brand-wall-heading h3,
.parts-index-heading h3 {
  font-family: var(--body) !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 600 !important;
  line-height: 1.24 !important;
  letter-spacing: -.02em !important;
}

.parts-category-panel .catalog-index > summary {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.brand-tile > span {
  font-weight: 500;
  font-size: 9px;
  line-height: 1.2;
}

.brand-tile .brand-wordmark {
  font: 600 12px/1.2 var(--body);
  letter-spacing: 0;
}

.catalog-stats strong {
  font: 600 22px/1.2 var(--body);
  font-variant-numeric: tabular-nums;
}

.category-directory-subs .category-all-link {
  font-weight: 600;
}

.product-card button.product-title {
  font-weight: 600;
  line-height: 1.45;
}

.product-price,
.listing-price {
  font-weight: 600;
}

.used-bike-copy h3 {
  font: 600 clamp(23px, 2.4vw, 29px)/1.25 var(--body);
  letter-spacing: -.02em;
}

/* Owner panel: keep headings readable at the same scale as the storefront UI. */
.panel-login h1,
.panel-pagehead h2,
.panel-section h3,
.admin-login h3,
.panel-order > header h3,
.panel-order-grid h4 {
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.panel-card strong {
  font: 600 32px/1.2 var(--body);
  font-variant-numeric: tabular-nums;
}

.panel-order-total {
  font: 600 23px/1.25 var(--body);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .quote-dialog h2,
  .detail-dialog h2 {
    font-size: 27px !important;
    line-height: 1.28 !important;
    margin: 8px 0 19px !important;
  }

  .checkout-section h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .parts-category-panel .catalog-index > summary {
    font-size: 15px;
  }

  .used-bike-copy h3 {
    font-size: 24px;
  }

  .panel-login h1 {
    font-size: clamp(37px, 10vw, 50px);
    line-height: 1.16;
    letter-spacing: -.025em;
  }

  .panel-pagehead h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .panel-section h3,
  .admin-login h3,
  .panel-order > header h3 {
    line-height: 1.3;
  }

  .panel-card strong {
    font-size: 26px;
  }
}
