/* Shared by the React home, exploration template and every public HTML page.
   System fonts avoid a blocking font download; Korean and English use one stack. */
:root {
  --ss-ink: #172b4d;
  --ss-muted: #52647b;
  --ss-brand: #1d4ed8;
  --ss-paper: #f5f8fc;
  --ss-font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --text-body: 1rem;
  --text-small: .875rem;
  --text-control: .9375rem;
  --text-title: 1.875rem;
  --text-section: 1.375rem;
  --text-card: 1.125rem;
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.ss-typography, body.ss-typography .home-page {
  color: var(--ss-ink);
  background-color: var(--ss-paper);
  font-family: var(--ss-font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -.015em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.ss-typography :is(button, input, select, textarea, option) { font-family: var(--ss-font-sans); }
body.ss-typography main :is(h1, h2, h3),
body.ss-typography :is(.intro, .detail-hero, .home-hero, .about-hero) h1 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
body.ss-typography main h1,
body.ss-typography :is(.intro, .detail-hero, .home-hero, .about-hero) h1 { font-size: var(--text-title); }
body.ss-typography main h2 { font-size: var(--text-section); }
body.ss-typography main h3,
body.ss-typography main :is(.catalog-card, .meal-card, .car-card, .wedding-card, .pledge-card, .outing-card, .purpose-card, .home-grid article) :is(h2, h3) {
  font-size: var(--text-card);
  line-height: 1.5;
}
body.ss-typography main p { font-size: var(--text-body); line-height: 1.7; }
body.ss-typography main .intro p:not(.eyebrow),
body.ss-typography :is(.intro, .detail-hero, .home-hero, .about-hero) > p:not(.eyebrow, .home-kicker) {
  font-size: var(--text-body);
  line-height: 1.7;
}
body.ss-typography main :is(.facts, .price-list, .benefit-text, .outing-long-text, .car-article, .policy-notice) {
  font-size: var(--text-body);
  line-height: 1.7;
}
body.ss-typography main :is(.faq, .car-faq, .about-scope) summary { font-size: var(--text-body); font-weight: 600; line-height: 1.6; }
body.ss-typography main :is(.faq, .car-faq, .about-scope) p { font-size: var(--text-body); }
body.ss-typography :is(.primary, .outline, .home-primary, .home-secondary, .chip, .page-share-button),
body.ss-typography :is(.segmented, .outing-categories, .car-section-nav, .car-brand-nav) > :is(a, button) {
  font-family: var(--ss-font-sans);
  font-size: var(--text-control);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
}
body.ss-typography main :is(input, select, textarea):not([type=checkbox], [type=radio], [type=range], [type=hidden]) {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}
body.ss-typography main label,
body.ss-typography main .control-field,
body.ss-typography main .field-title { font-size: var(--text-small); font-weight: 600; line-height: 1.5; }
body.ss-typography main :is(.eyebrow, .home-kicker, .home-caption, .field-note, .field-help,
  .address, .outing-address, .meal-address, .meal-source-label, .car-small, .car-count,
  .car-model-basis, .car-spec-short, .car-exclusions, .car-fuel-basis, .car-scope,
  .outing-collected, .outing-card-top, .condition, .spec, .report-help,
  .service-caution, .notice-caution, .benefit-period, .pledge-source-label,
  .wedding-estimate-label, .data-status, .page-share-status, .trend-scope, .trend-guide,
  .service-context, .housing-help, .footer-mission),
body.ss-typography main :is(.field-help, .car-fuel-basis, .service-context, .trend-guide) p {
  font-size: var(--text-small);
  line-height: 1.6;
  letter-spacing: normal;
}
body.ss-typography main small { font-size: var(--text-small); line-height: 1.6; }
body.ss-typography :is(.brand, .home-brand) { font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; }
body.ss-typography .brand small { font-size: .75rem; font-weight: 400; letter-spacing: normal; }
body.ss-typography :is(.site-header, .home-header) nav a { font-size: var(--text-control); font-weight: 600; line-height: 1.5; }
body.ss-typography :is(footer, .breadcrumbs, .car-breadcrumb) { font-size: var(--text-small); line-height: 1.6; }
/* Map annotations and chart ticks stay compact, independent of article text. */
body.ss-typography .map-popup p { font-size: var(--text-small); line-height: 1.6; }
body.ss-typography .trend-chart text { font-family: var(--ss-font-sans); }
@media (max-width: 700px) {
  :root { --text-title: 1.625rem; --text-section: 1.25rem; }
}

/* The home no longer carries its own weight, colour or spacing palette. */
body.ss-typography main :is(.home-kicker,.eyebrow){font-weight:700;color:var(--ss-brand)}
body.ss-typography .home-grid article>a{font-weight:600}
body.ss-typography .home-header nav a{color:var(--ss-muted)}
body.ss-typography .home-page footer nav{font-size:var(--text-small)}
body.ss-typography .home-search p{font-size:var(--text-small);line-height:1.6}
body.ss-typography :is(.home-primary,.home-secondary){min-height:48px}
