/* Public marketplace typography */
:root {
  --kb-public-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --kb-public-secondary: 0.875rem;
  --kb-public-body: 1rem;
  --kb-public-card-title: 1rem;
  --kb-public-section-title: clamp(1.375rem, 2.3vw, 1.75rem);
  --kb-public-page-title: clamp(1.75rem, 3.5vw, 2.5rem);
}

html[lang="ne"] {
  --kb-public-font: "Noto Sans Devanagari", "Nirmala UI", Mangal, system-ui, sans-serif;
}

body {
  font-family: var(--kb-public-font);
  font-size: var(--kb-public-body);
  line-height: 1.55;
}

h1, h2, h3 { font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
h1, .detail-body h1, .form-card h1, .profile h1 { font-size: var(--kb-public-page-title); }
h2, .section-heading h2, .category-section .section-heading h2 { font-size: var(--kb-public-section-title); }
h3, .listing h3, .review h3, .kb-blog-card h3 { font-size: var(--kb-public-card-title); }
html[lang="ne"] :is(h1, h2, h3, .eyebrow, .category-tile) { letter-spacing: normal; }

p, .detail-body .description, .kb-blog-article, .form-card label { font-size: var(--kb-public-body); }
small, .muted, .eyebrow, .listing .muted, .category-tag, .note,
.review time, .profile .eyebrow, .kb-footer-bottom, .listing-pagination,
.mobile-promo-copy p, .category-section .browse-all {
  font-size: var(--kb-public-secondary);
  line-height: 1.45;
}

button, input, select, textarea { font-family: inherit; }
input:not([type="hidden"]), select, textarea, .hero-search input,
.hero-search .location-field input, #kb-language {
  font-size: var(--kb-public-body);
  line-height: 1.4;
}
.button, button, .filter-button { font-size: var(--kb-public-body); line-height: 1.35; }
.filter-button, .active-filters .button, .listing-pagination .button {
  font-size: var(--kb-public-secondary);
}
.filter-panel .price-range input { min-width: 0; }

.hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.18; font-weight: 800; }
.hero .eyebrow { font-size: var(--kb-public-secondary); }
.hero-search > .button { font-size: var(--kb-public-body); }
.listing h3 {
  font-weight: 750;
  line-height: 1.3;
  min-height: 2.6em;
  max-height: 2.6em;
  overflow: hidden;
}
.listing .price, [data-seller-listing-price] {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}
.detail-body .price.large { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; }
.listing :is(.price, .muted), .active-filters a { overflow-wrap: anywhere; }
.kb-footer-grid strong { font-size: 1rem; font-weight: 750; }
.kb-footer :is(a, button) { min-width: 0; }

#analytics-consent p { font-size: var(--kb-public-secondary); line-height: 1.5; }
#analytics-consent button { font-size: var(--kb-public-secondary); line-height: 1.3; }

@media (max-width: 760px) {
  .site-header .mobile-primary-nav a {
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .hero .mobile-hero-copy h1 { font-size: clamp(1.875rem, 7.2vw, 2.5rem); line-height: 1.2; }
  .mobile-trust-row { flex-wrap: wrap; white-space: normal; font-size: var(--kb-public-secondary); }
  .category-section .category-tile {
    font-size: var(--kb-public-secondary);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .mobile-benefits b { font-size: 0.8125rem; line-height: 1.4; overflow-wrap: anywhere; }
  .mobile-promo-copy h2 { font-size: 1.125rem; line-height: 1.3; }
  .mobile-promo .button { font-size: var(--kb-public-secondary); }
}

/* Keep legacy component styles on the same readable scale. */
.hero .hero-copy p, .filter-panel label, .detail-body .description p {
  font-size: var(--kb-public-body);
  line-height: 1.5;
}
main .text-link, .seller-card .seller-rating-link, .seller-card .seller-rating-empty,
.seller-card .seller-contact-note, .seller-card .seller-location,
.seller-card .seller-location span, .kb-footer-grid nav a, .beta-strip-mobile {
  font-size: var(--kb-public-secondary);
  line-height: 1.45;
}
.listing .sample-badge { font-size: 0.75rem; line-height: 1.35; }

.sort-form select { font-size: var(--kb-public-body); }
.listing-tools { flex-wrap: wrap; }
.hero .hero-copy .desktop-hero-copy p { font-size: var(--kb-public-body); }
@media (min-width: 761px) {
  .site-header nav a, .category-section .category-tile { font-size: var(--kb-public-secondary); }
  .beta-strip { font-size: 0.8125rem; }
}
