/* Country-page typography: Pretendard and tracking -10 (-10/1000 em). */
/* Preserve font-based menu/social glyphs; SVG and image logos remain intact. */
html body#doz_body:has(:is(#japan-hero, #panama-hero, .country-hero)),
html body#doz_body:has(:is(#japan-hero, #panama-hero, .country-hero)) :not(i):not(.icon_code):not(.fa):not(.fas):not(.far):not(.fab):not(.btl):not(.btm):not(.btb):not(.btr):not([class*="icon-"]):not([class*="psi-"]) {
  font-family:Pretendard,sans-serif !important;
  letter-spacing:-0.01em !important;
}

/* Scale the country content without shrinking the shared header or footer. */
@media (max-width: 767px) {
  :is(#doz_body > section[id^="japan-"], #japan-entry-consultation, #panama-country-page, .country-page) {
    --country-type-scale: .9;
  }
}

/* Content section titles follow the practice detail “업무 접근방식” scale. */
#doz_body :is(#japan-entry-types, #panama-key-points, #japan-prechecks, #panama-documents, #japan-establishment-roadmap, #panama-bank-preparation, #japan-ongoing-support, #panama-compliance, #japan-support-method, #panama-support-method, .country-key, .country-check, .country-process, .country-follow, .country-method, .country-issues) h2 {
  font-size:calc(38px * var(--country-type-scale, 1));
}
/* Keep the item/card title size consistent across all five content sections. */
#doz_body :is(#japan-entry-types, #panama-key-points, #japan-prechecks, #panama-documents, #japan-establishment-roadmap, #panama-bank-preparation, #japan-ongoing-support, #panama-compliance, #japan-support-method, #panama-support-method, .country-key, .country-check, .country-process, .country-follow, .country-method, .country-issues) h3 {
  font-size:calc(23px * var(--country-type-scale, 1));
}
#doz_body :is(#japan-establishment-roadmap, #panama-bank-preparation, .country-process) h3 {
  white-space:normal;
}
#doz_body :is(#japan-establishment-roadmap, #panama-bank-preparation) .jpp-card p,
#doz_body :is(#japan-prechecks, #panama-documents) .jp-check-row p,
#doz_body :is(#japan-ongoing-support, #panama-compliance) .jpr-content > p,
#doz_body :is(#japan-ongoing-support, #panama-compliance) .jpr-intro,
#doz_body :is(#japan-entry-types, #panama-key-points) .jp-entry-description,
#doz_body .country-page :is(.jp-entry-description,.jp-check-row p,.jpp-card p,.jpr-content>p,.jsg-item-body p,.country-issue-card p) {
  font-size:calc(15px * var(--country-type-scale, 1));
}
@media(max-width:767px) {
  #doz_body :is(#japan-entry-types, #panama-key-points, #japan-prechecks, #panama-documents, #japan-establishment-roadmap, #panama-bank-preparation, #japan-ongoing-support, #panama-compliance, #japan-support-method, #panama-support-method, .country-key, .country-check, .country-process, .country-follow, .country-method, .country-issues) h2 {
    font-size:calc(25px * var(--country-type-scale, 1));
  }
}

/* The hero's three key topics remain readable alongside the introduction. */
#doz_body :is(#japan-hero, #panama-hero, .country-hero) .jpc-focus h3 { font-size:calc(18px * var(--country-type-scale, 1)); }
#doz_body :is(#japan-hero, #panama-hero, .country-hero) .jpc-focus p { font-size:calc(15px * var(--country-type-scale, 1)); }

/* Procedure notes follow the same desktop and compact-screen scale. */
.country-process-note { font-size:calc(14px * var(--country-type-scale, 1)); }
@media(max-width:991px) { .country-process-note { font-size:calc(13px * var(--country-type-scale, 1)); } }
