/* Selabaya v9.7 | Ad detail typographic system.
 * Scoped to the ad details and unavailable-ad views. Does not touch the shared
 * header/footer, admin pages, images, routing, data access or inline scripts.
 * Uses Manrope when available; system fallbacks preserve readability offline.
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

.sb-ad-page,
.sb-nf-page {
  --sb97-font: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --sb97-heading: #10263a;
  --sb97-body: #304254;
  --sb97-muted: #64748b;
  font-family: var(--sb97-font);
  color: var(--sb97-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -.009em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.sb-ad-page :is(button, input, select, textarea),
.sb-nf-page :is(button, input, select, textarea),
.sb-modal :is(button, input, select, textarea) { font-family: var(--sb97-font, 'Manrope', 'Segoe UI', sans-serif); }
.sb-ad-page :is(h1,h2,h3,h4),
.sb-nf-page :is(h1,h2,h3,h4) { font-family: inherit; color: var(--sb97-heading); }

/* Page hierarchy, deliberately using real, supported 400–800 font weights. */
.sb-ad-page .sb-bread { font-size: 12px; font-weight: 500; line-height: 1.55; }
.sb-ad-page .sb-bread a { font-weight: 700; }
.sb-ad-page .sb-title {
  font-size: clamp(25px, 2.25vw, 33px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.20;
  text-wrap: pretty;
}
.sb-ad-page .sb-subline { font-size: 12.5px; line-height: 1.65; font-weight: 500; }
.sb-ad-page .sb-subline strong { font-weight: 700; }
.sb-ad-page .sb-price {
  font-size: clamp(30px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 800;
}
.sb-ad-page .sb-section-title,
.sb-ad-page .sb-sec-head .ttl,
.sb-ad-page .sb-side-title {
  font-size: 17px;
  line-height: 1.34;
  letter-spacing: -.028em;
  font-weight: 800;
}

/* Metadata and chips: readable and restrained, not heavily bold. */
.sb-ad-page .sb-badge { font-size: 11.25px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.sb-ad-page .sb-chip { font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.sb-ad-page .sb-stat .k,
.sb-ad-page .sb-kv .k,
.sb-ad-page .sb-info-item .label {
  font-size: 11.25px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.4;
}
.sb-ad-page .sb-stat .v { font-size: 13.25px; font-weight: 650; line-height: 1.52; }
.sb-ad-page .sb-small { font-size: 12.5px; font-weight: 450; line-height: 1.68; }
.sb-ad-page .sb-kv .v { font-size: 13.25px; font-weight: 600; line-height: 1.58; }
.sb-ad-page .sb-info-item .value { font-size: 12.5px; font-weight: 550; line-height: 1.55; }
.sb-ad-page .sb-seller b { font-size: 13.75px; font-weight: 750; line-height: 1.45; }
.sb-ad-page .sb-seller .meta { font-size: 12.25px; font-weight: 450; line-height: 1.6; }

/* Interactive text and content sections. */
.sb-ad-page .sb-cta { font-size: 13px; font-weight: 700; line-height: 1.5; }
.sb-ad-page .sb-tab { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.sb-ad-page .sb-panel { font-size: 14.5px; font-weight: 400; line-height: 1.78; }
.sb-ad-page .sb-desc {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: -.006em;
}
.sb-ad-page .sb-desc :is(p,li,div,span) { line-height: inherit; }
.sb-ad-page .sb-desc :is(p,li) { font-weight: 400; }
.sb-ad-page .sb-desc :is(strong,b) { font-weight: 650; }
.sb-ad-page .sb-desc :is(h2,h3,h4) { font-weight: 750; line-height: 1.35; }
.sb-ad-page .sb-desc a { font-weight: 650; }
.sb-ad-page .sb-warning { font-size: 12.75px; font-weight: 450; line-height: 1.72; }
.sb-ad-page .sb-warning strong { font-weight: 700; }
.sb-ad-page .sb-safety-horizontal .head b { font-size: 15.5px; font-weight: 800; }
.sb-ad-page .sb-safety-horizontal .head span { font-size: 11.5px; font-weight: 650; }
.sb-ad-page .sb-safety-tip,
.sb-ad-page .sb-safe-list li { font-size: 12.75px; font-weight: 450; line-height: 1.68; }
.sb-ad-page .sb-safety-tip strong { font-size: 12.75px; font-weight: 750; line-height: 1.5; }
.sb-ad-page .sb92-share-title strong { font-size: 13.5px; font-weight: 750; }
.sb-ad-page .sb92-share-title span { font-size: 12px; font-weight: 450; }
.sb-ad-page .sb92-share-actions :is(a,button) {
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
}
.sb-ad-page .sb-rel-t { font-size: 13.25px; font-weight: 750; line-height: 1.45; }
.sb-ad-page .sb-rel-m { font-size: 12px; font-weight: 450; line-height: 1.55; }
.sb-ad-page .sb-rel-price { font-weight: 800; }

/* Styles for the optional unavailable-listing view within ad-page.php. */
.sb-nf-page .sb-nf-pill { font-size: 12px; font-weight: 700; }
.sb-nf-page .sb-nf-main h1 { font-weight: 800; line-height: 1.04; }
.sb-nf-page .sb-nf-main p { font-size: 15px; font-weight: 450; line-height: 1.72; }
.sb-nf-page .sb-nf-main p strong { font-weight: 700; }
.sb-nf-page .sb-nf-chip { font-size: 12px; font-weight: 600; }
.sb-nf-page .sb-nf-btn { font-size: 12.75px; font-weight: 700; }
.sb-nf-page .sb-nf-side h2,
.sb-nf-page .sb-nf-head h2 { font-weight: 800; }
.sb-nf-page .sb-nf-side p { font-size: 13.5px; font-weight: 450; }
.sb-nf-page .sb-nf-mini span { font-size: 11.5px; font-weight: 500; }
.sb-nf-page .sb-nf-head p { font-size: 12.75px; font-weight: 450; }
.sb-nf-page .sb-nf-title { font-size: 13.25px; font-weight: 750; line-height: 1.43; }
.sb-nf-page .sb-nf-meta { font-size: 12px; font-weight: 450; }
.sb-nf-page .sb-nf-price { font-weight: 800; }
.sb-nf-page .sb-nf-empty { font-size: 13px; font-weight: 500; }

/* Modals live outside .sb-ad-page, so scope them to the page's existing IDs. */
#sbImgModal, #sbReportModal, #sbToast {
  font-family: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
}
#sbImgModal .sb-modal-top b,
#sbReportModal .sb-modal-top b { font-weight: 750; }

@media (max-width: 720px) {
  .sb-ad-page { font-size: 13.75px; }
  .sb-ad-page .sb-title { font-size: clamp(23px, 6.3vw, 27px); line-height: 1.23; }
  .sb-ad-page .sb-panel { padding: 17px 15px; }
  .sb-ad-page .sb-desc { font-size: 14px; line-height: 1.80; }
  .sb-ad-page .sb-hero-summary .sb-stat .v { font-size: 13px; }
  .sb-ad-page .sb-section-title,
  .sb-ad-page .sb-sec-head .ttl { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-ad-page .sb-cta, .sb-ad-page .sb-rel-card { transition: none; }
}
