
/* ============================================================
   AutoMart Global Typography V28.1
   Production readability authority
   Rule: no user-facing text below 12px
   Loaded last so old component typography cannot shrink text.
   ============================================================ */

:root{
  --am-type-min:12px;
  --am-type-xs:12px;
  --am-type-sm:13px;
  --am-type-base:14px;
  --am-type-body:15px;
  --am-type-md:16px;
  --am-type-lg:18px;
  --am-type-xl:20px;
  --am-type-2xl:24px;
  --am-type-3xl:28px;
  --am-type-4xl:32px;
}

/* ------------------------------------------------------------
   GLOBAL BASE
   ------------------------------------------------------------ */
html body{
  font-size:var(--am-type-base);
}

button,
input,
select,
textarea{
  font-size:var(--am-type-base);
}

/* ------------------------------------------------------------
   HEADER + GLOBAL SEARCH
   ------------------------------------------------------------ */
.premium-topbar .premium-desktop-nav a,
.premium-topbar .premium-login,
.premium-topbar .premium-signup,
.am-global-search-v18 input,
.am-global-search-v18 select,
.am-global-search-v18 button{
  font-size:14px!important;
}

.am-global-search-v18 .am-global-more-v18{
  font-size:13px!important;
}

/* ------------------------------------------------------------
   PREMIUM VEHICLE CARDS
   Existing visual design preserved; only readability raised.
   ------------------------------------------------------------ */
.premium-badge,
.premium-photo-meta,
.premium-photo-meta > span,
.premium-photo-meta em,
.premium-condition,
.premium-monthly,
.premium-monthly span,
.premium-facts,
.premium-dealer-row strong,
.premium-dealer-row small,
.premium-rating strong,
.premium-rating small,
.premium-card-actions a,
.premium-benefit-strip strong,
.premium-benefit-strip small,
body:not(.home-page) .premium-search-grid-v15 .premium-title-copy p,
body:not(.home-page) .premium-search-grid-v15 .premium-monthly,
body:not(.home-page) .premium-search-grid-v15 .premium-facts,
body:not(.home-page) .premium-search-grid-v15 .premium-card-actions a{
  font-size:12px!important;
}

.premium-title-copy h3,
body:not(.home-page) .premium-search-grid-v15 .premium-title-copy h3{
  font-size:16px!important;
  line-height:1.3!important;
}

.premium-price,
body:not(.home-page) .premium-search-grid-v15 .premium-price{
  font-size:24px!important;
}

.premium-dealer-avatar{
  font-size:12px!important;
}

.dealer-tick{
  font-size:12px!important;
}

/* ------------------------------------------------------------
   VEHICLE FILTER V14.7
   ------------------------------------------------------------ */
.premium-filter-v14-1 .amf-title{
  font-size:22px!important;
}

.premium-filter-v14-1 .amf-subtitle{
  font-size:12px!important;
}

.premium-filter-v14-1 .amf-clear,
.premium-filter-v14-1 .amf-label-copy small,
.premium-filter-v14-1 .amf-price-summary-v14-1,
.premium-filter-v14-1 .amf-number-field-v14-1,
.premium-filter-v14-1 .amf-number-field-v14-1 > small,
.premium-filter-v14-1 .amf-number-field-v14-1 b,
.premium-filter-v14-1 .amf-chip,
.premium-filter-v14-1 .amf-foot{
  font-size:12px!important;
}

.premium-filter-v14-1 .amf-label-copy strong{
  font-size:14px!important;
}

.premium-filter-v14-1 select,
.premium-filter-v14-1 input[type="number"],
.premium-filter-v14-1 input[type="text"]{
  font-size:13px!important;
}

.premium-filter-v14-1 .amf-submit{
  font-size:15px!important;
}

/* ------------------------------------------------------------
   VEHICLE LIST VIEW
   ------------------------------------------------------------ */
.premium-list-view-v17-1,
.premium-list-view-v17-1 *,
.vehicle-list-view-v17-1,
.vehicle-list-view-v17-1 *{
  --am-v28-min:12px;
}

/* Known small list-view text selectors */
.premium-list-view-v17-1 .premium-list-meta,
.premium-list-view-v17-1 .premium-list-subtitle,
.premium-list-view-v17-1 .premium-list-facts,
.premium-list-view-v17-1 .premium-list-dealer,
.premium-list-view-v17-1 .premium-list-rating,
.vehicle-list-view-v17-1 .premium-list-meta,
.vehicle-list-view-v17-1 .premium-list-subtitle,
.vehicle-list-view-v17-1 .premium-list-facts,
.vehicle-list-view-v17-1 .premium-list-dealer,
.vehicle-list-view-v17-1 .premium-list-rating{
  font-size:12px!important;
}

/* ------------------------------------------------------------
   VEHICLE DETAIL
   ------------------------------------------------------------ */
.vehicle-detail-page .crumbs,
.vehicle-detail-page .v21-listing-ref,
.vehicle-detail-page .v21-subline,
.vehicle-detail-page .price-line span,
.vehicle-detail-page .summary-facts span,
.vehicle-detail-page .summary-location,
.vehicle-detail-page .summary-meta,
.vehicle-detail-page .v21-verified-banner strong,
.vehicle-detail-page .v21-verified-banner small,
.vehicle-detail-page .contact-row .btn,
.vehicle-detail-page .detail-tabs > *,
.vehicle-detail-page .key-info > div > span,
.vehicle-detail-page .feature-list > span{
  font-size:12px!important;
}

.vehicle-detail-page .key-info > div > b{
  font-size:13px!important;
}

.vehicle-detail-page .detail-copy > p{
  font-size:14px!important;
  line-height:1.7!important;
}

.vehicle-detail-page .detail-copy h3{
  font-size:16px!important;
}

.vehicle-detail-page .detail-copy h2{
  font-size:24px!important;
}

.vehicle-detail-page .title-actions h1{
  font-size:32px!important;
}

.vehicle-detail-page .price-line strong{
  font-size:30px!important;
}

/* Similar vehicles section */
.am-similar-v26__eyebrow{
  font-size:12px!important;
}

.am-similar-v26__subtitle,
.am-similar-v26__all{
  font-size:13px!important;
}

/* ------------------------------------------------------------
   HOMEPAGE CATEGORIES / MAKES / ACTIONS
   ------------------------------------------------------------ */
.premium-featured-kicker,
.premium-tabs button,
.premium-category-kicker,
.premium-makes-kicker-v10,
.premium-action-kicker-v11,
.premium-sell-signoff-v11,
.premium-finance-card-v11 .premium-action-kicker-v11,
.premium-finance-partner-v11{
  font-size:12px!important;
}

.category-row b,
.make-row b,
.premium-make-item-v10 strong,
.premium-category-card strong{
  font-size:12px!important;
}

.premium-view-all,
.premium-category-view-all,
.premium-makes-view-v10{
  font-size:13px!important;
}

/* ------------------------------------------------------------
   HERO / DEALER FINDER
   Keep large headings intact; raise only micro copy.
   ------------------------------------------------------------ */
.classic-hero-signoff-v9,
.classic-trust-row-v9 small,
.classic-hero-center-v9::before,
.premium-hero-kicker,
.premium-hero-trust small,
.glass-topline,
.glass-rating small,
.premium-scroll-cue,
.vehicle-finder-head-v12 a,
.vehicle-finder-electric-v12{
  font-size:12px!important;
}

.classic-search-tabs-v9 button,
.premium-search-tabs button{
  font-size:13px!important;
}

.classic-hero-search-v9 label,
.premium-hero-search label{
  font-size:12px!important;
}

.classic-hero-search-v9 select,
.premium-hero-search select{
  font-size:14px!important;
}

.classic-search-button-v9,
.premium-search-button{
  font-size:15px!important;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer h4{
  font-size:14px!important;
}

.footer a,
.footer p{
  font-size:12px!important;
  line-height:1.6!important;
}

.footer-bottom,
.footer-trust{
  font-size:12px!important;
}

/* ------------------------------------------------------------
   ADMIN
   ------------------------------------------------------------ */
.admin-brand small,
.admin-side > small,
.admin-side > a em,
.notification,
.kpi small,
.kpi span,
.legend,
.table-wrap th,
.status{
  font-size:12px!important;
}

.admin-side > a,
.admin-search input,
.admin-toolbar-actions,
.date-btn,
.admin-page button,
.admin-page input,
.admin-page select,
.admin-page textarea,
.admin-page .btn,
.admin-page .btn-sm{
  font-size:13px!important;
}

.table-wrap table,
.recent-users > div{
  font-size:12.5px!important;
}

/* ------------------------------------------------------------
   MOBILE MINIMUMS
   Explicitly prevent old mobile rules from reintroducing 7–11px.
   ------------------------------------------------------------ */
@media(max-width:767px){
  .premium-badge,
  .premium-photo-meta,
  .premium-title-copy p,
  .premium-condition,
  .premium-monthly,
  .premium-monthly span,
  .premium-facts,
  .premium-dealer-row strong,
  .premium-dealer-row small,
  .premium-card-actions a,
  .premium-benefit-strip strong,
  .premium-benefit-strip small,
  .premium-featured-kicker,
  .premium-tabs button,
  .premium-category-kicker,
  .premium-makes-kicker-v10,
  .premium-action-kicker-v11,
  .premium-sell-signoff-v11,
  .premium-finance-partner-v11,
  .classic-hero-signoff-v9,
  .classic-trust-row-v9 small,
  .premium-hero-kicker,
  .premium-hero-trust small,
  .glass-topline,
  .glass-rating small,
  .premium-scroll-cue,
  .vehicle-finder-head-v12 a,
  .vehicle-finder-electric-v12,
  .footer a,
  .footer p,
  .footer-bottom,
  .footer-trust,
  .mobile-bottom small{
    font-size:12px!important;
  }

  .premium-title-copy h3{
    font-size:16px!important;
  }

  .premium-price{
    font-size:22px!important;
  }

  .premium-filter-v14-1 .amf-title{
    font-size:21px!important;
  }

  .premium-filter-v14-1 .amf-subtitle,
  .premium-filter-v14-1 .amf-clear{
    font-size:12px!important;
  }

  .vehicle-detail-page .title-actions h1{
    font-size:28px!important;
  }

  .vehicle-detail-page .price-line strong{
    font-size:28px!important;
  }
}


/* ============================================================
   V28.1 — missed active widget selectors
   ============================================================ */

/* Vehicles heading / result count / view controls */
.market-title-row p,
.view-tools label,
.view-tools select,
.view-btn,
.filter-toggle{
  font-size:12px!important;
}

/* Filter micro-elements missed by earlier selector map */
.premium-filter-v14-1 .amf-chip input:checked:after,
.premium-filter-v14-1 .amf-submit .amf-arrow{
  font-size:12px!important;
}

/* Homepage category/makes/footer micro text */
.premium-category-footer-mark,
.trust-card b,
.trust-card small,
.premium-sell-benefits-v11 small,
.premium-sell-benefits-v11 strong,
.premium-finance-partner-v11,
.make-badge i{
  font-size:12px!important;
}

/* Hero / trust micro text */
.classic-hero-center-v9::before,
.classic-trust-row-v9 small,
.premium-hero-trust small,
.glass-rating small,
.premium-scroll-cue{
  font-size:12px!important;
}

/* Vehicle card utility text and ticks */
.premium-photo-meta i,
.premium-photo-meta i b,
.dealer-tick,
.premium-rating small{
  font-size:12px!important;
}

/* Detail page micro text */
.vehicle-detail-page .photo-count,
.vehicle-detail-page .v21-year-badge,
.vehicle-detail-page .v21-listing-ref,
.vehicle-detail-page .v21-verified-banner small,
.vehicle-detail-page .summary-meta{
  font-size:12px!important;
}

/* Mobile bottom nav labels */
.mobile-bottom small{
  font-size:12px!important;
}
