/* Base body sizes, with separate adjustments for descriptions and core values. */
body.page-home,
body.page-business-detail {
    --finf-body-copy-size: 22px;
    --finf-body-copy-step: 0pt;
    --finf-body-word-break: normal;
}

body.lang-ko { --finf-body-word-break: keep-all; }

body.page-home :is(.core-service-card p, .business-service-card p, .safety-trust-card p, .company-history__lead, .product-card li, .product-card__footer),
body.page-business-detail :is(.origin-card p, .partner-card p) {
    --finf-body-copy-size: 20px;
}

body.page-home #section-4 .ceo-value-card__item {
    --finf-body-copy-step: 2pt;
}

body.page-home .site-main :is(
    .hero-copy,
    .trust-metrics-section__heading p,
    .company-overview__text,
    .core-service-card p,
    .ceo-message__body p:not(.ceo-message__signature-inline),
    .company-history__lead,
    .company-history__content p,
    .vision-copy__body p,
    .vision-quote p,
    .vision-quote > strong,
    .business-service-card > p,
    .business-safety__text,
    .business-safety__certification-note,
    .safety-trust-card p,
    .trade-process__lead,
    .trade-process-card__detail p,
    .trade-process__hint,
    .products-showcase__lead,
    .faq__lead,
    .faq-item p
),
body.page-business-detail .site-main :is(
    .business-detail__hero p,
    .business-detail__cta p,
    .origin-card p,
    .partner-card p,
    .spec-table__description
) {
    --finf-body-copy-step: 1pt;
}

html body.page-home main.site-main #section-5 .business-service-card__copy--nicotine > .business-service-card__closing {
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Keep the closing sentence intact in the existing narrow desktop range. */
@media (min-width: 861px) and (max-width: 1180px) {
    html body.page-home.lang-ko main.site-main #section-5 .business-services__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body.page-home.lang-ko main.site-main #section-5 .business-service-card {
        padding-inline: 24px !important;
    }

    html body.page-home.lang-ko main.site-main #section-5 .business-service-card:last-child {
        grid-column: 1 / -1;
    }
}

body.page-home .trust-metrics-section__heading p { --finf-body-copy-size: 21px; }
body.page-home .vision-trust-metric dt { --finf-body-copy-size: 15px; }
body.page-home .vision-trust-metric dd { --finf-body-copy-size: 23px; }
body.page-home .ceo-value-card__item { --finf-body-copy-size: 19px; }
body.page-home :is(.company-history__content p, .faq-item__question) { --finf-body-copy-size: 17px; }
body.page-home :is(.company-history__date, .business-service-card__footer > span, .business-safety__certification-note, .trade-process-card__detail p) { --finf-body-copy-size: 16px; }
body.page-home .trade-process__hint { --finf-body-copy-size: 12px; }
body.page-home .faq__lead { --finf-body-copy-size: 18px; }
body.page-home .faq-item p { --finf-body-copy-size: 15px; }
body.page-home .product-card:nth-child(n + 2) li { --finf-body-copy-size: 16px; }
body.page-home .product-card li strong { --finf-body-copy-size: 20px; }
body.page-business-detail .spec-table__description { --finf-body-copy-size: 18px; }

/* The section selectors keep this override above the existing mobile rules. */
html body:is(.page-home, .page-business-detail) main.site-main :is(
    #section-1 .hero-copy,
    #section-trust-metrics .trust-metrics-section__heading p,
    #section-trust-metrics .vision-trust-metric dt,
    #section-trust-metrics .vision-trust-metric dd,
    #section-2 .company-overview__text,
    #section-core-services .core-service-card p,
    #section-4 .ceo-message__body p:not(.ceo-message__signature-inline),
    #section-4 .ceo-value-card__item,
    #section-history .company-history__lead,
    #section-history .company-history__date,
    #section-history .company-history__content p,
    #section-3 .vision-copy__body p,
    #section-3 .vision-quote p,
    #section-3 .vision-quote strong,
    #section-5 .business-service-card p,
    #section-5 .business-service-card__footer > span,
    #section-6 .business-safety__text,
    #section-6 .business-safety__certification-note,
    #section-6 .safety-trust-card p,
    #section-trade-process .trade-process__lead,
    #section-trade-process .trade-process-card__detail p,
    #section-trade-process .trade-process__hint,
    #section-7 .products-showcase__lead,
    #section-7 .product-card li,
    #section-7 .product-card li strong,
    #section-7 .product-card__footer,
    #section-7 .product-card__footer span,
    #section-faq .faq__lead,
    #section-faq .faq-item__question,
    #section-faq .faq-item p,
    .business-detail__hero p,
    .business-detail__cta p,
    .origin-card p,
    .partner-card p,
    .spec-table__description
):not(.finf-description-size-exempt) {
    font-size: calc(var(--finf-body-copy-size) + var(--finf-body-copy-step)) !important;
    white-space: normal !important;
    word-break: var(--finf-body-word-break) !important;
    overflow-wrap: break-word !important;
    text-wrap: pretty !important;
}

html body.page-home main.site-main #section-1 .hero-copy {
    width: min(100%, 1240px) !important;
    max-width: 1240px !important;
    line-height: 1.55 !important;
}

html body.page-home main.site-main #section-1 .hero-copy--tagline {
    margin-bottom: 14px !important;
}

html body.page-home main.site-main #section-1 .hero-copy--lead {
    margin-bottom: 28px !important;
}

html body.page-home main.site-main #section-1 .hero-copy > span,
html body.page-home main.site-main #section-2 .company-overview__nowrap,
html body.page-home main.site-main #section-faq .faq-item__keep-phrase {
    white-space: normal !important;
}

html body.page-home main.site-main #section-6 .business-safety__certification-note {
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.6;
}

html body.page-home main.site-main #section-6 .business-safety__certification-keep {
    display: inline !important;
    white-space: normal !important;
}

html body.page-home main.site-main #section-history .company-history__timeline {
    grid-auto-rows: minmax(92px, auto);
}

html body.page-home main.site-main #section-history .company-history__content p,
html body.page-home main.site-main #section-faq .faq-item p {
    line-height: 1.6 !important;
}

@media (min-width: 861px) {
    body.page-home:is(.lang-en, .lang-id) .core-service-card p { --finf-body-copy-size: 19px; }
    body.page-home:is(.lang-en, .lang-zh) .safety-trust-card p { --finf-body-copy-size: 18px; }

    html body.page-home main.site-main #section-1 .hero-copy--lead > span {
        display: block;
    }

    html body.page-home main.site-main #section-core-services .core-service-card {
        height: auto !important;
    }
}

@media (max-width: 860px) {
    body.page-home,
    body.page-business-detail {
        --finf-body-copy-size: 16px;
    }

    body.page-home .site-main :is(.business-service-card p, .safety-trust-card p, .product-card li, .product-card li strong, .product-card__footer),
    body.page-home .site-main .product-card:nth-child(n + 2) li,
    body.page-business-detail .site-main :is(.origin-card p, .partner-card p, .spec-table__description) {
        --finf-body-copy-size: 16px;
    }

    body.page-home .site-main .trust-metrics-section__heading p { --finf-body-copy-size: clamp(13px, 3.55vw, 15px); }
    body.page-home .site-main .vision-trust-metric dt { --finf-body-copy-size: 11px; }
    body.page-home .site-main .vision-trust-metric dd { --finf-body-copy-size: 15px; }
    body.page-home .site-main :is(.core-service-card p, .business-service-card__footer > span) { --finf-body-copy-size: 15px; }
    body.page-home .site-main .ceo-value-card__item { --finf-body-copy-size: clamp(12px, 3.45vw, 14px); }
    body.page-home .site-main :is(.company-history__lead, .company-history__content p) { --finf-body-copy-size: clamp(11px, 1.8dvh, 14px); }
    body.page-home .site-main .company-history__date { --finf-body-copy-size: clamp(11px, 1.7dvh, 13px); }
    body.page-home .site-main :is(.business-safety__certification-note, .faq-item p) { --finf-body-copy-size: 13px; }
    body.page-home .site-main .faq__lead,
    body.page-home .site-main .faq-item .faq-item__question { --finf-body-copy-size: 14px; }
    body.page-home.lang-ko .site-main :is(.ceo-message__body p:not(.ceo-message__signature-inline), .vision-copy__body p, .vision-quote p, .vision-quote strong) { --finf-body-copy-size: 15.9px; }

    html body.page-home main.site-main #section-1 .hero-copy {
        width: 100% !important;
        max-width: 390px !important;
        line-height: 1.6 !important;
    }

    html body.page-home main.site-main #section-core-services .core-services__cards .core-service-card p:not(.finf-description-size-exempt) {
        text-wrap: balance !important;
    }

    html body.page-home main.site-main #section-history,
    html body.page-home main.site-main #section-history > .home-panel__inner {
        height: auto !important;
        max-height: none !important;
    }

    html body.page-home main.site-main #section-history > .home-panel__inner {
        padding-block: 76px 48px !important;
    }

    html body.page-home main.site-main #section-history .company-history__timeline {
        grid-auto-rows: auto !important;
        gap: 14px !important;
    }

    html body.page-home main.site-main #section-history .company-history__date {
        margin-bottom: 4px !important;
    }
}

/* Keep the supporting headings and challenge items readable beside the body copy. */
html body.page-home main.site-main #section-3 .vision-challenges:not(.vision-challenges--text) .vision-challenges__title,
html body.page-home main.site-main #section-4 .ceo-value-card__eyebrow {
    font-size: 26px !important;
    line-height: 1.3 !important;
}

html body.page-home main.site-main #section-3 .vision-challenges .vision-challenge-card {
    gap: 10px !important;
}

html body.page-home main.site-main #section-3 .vision-challenges .vision-challenge-card h4 {
    font-size: 22px !important;
    line-height: 1.45 !important;
    text-wrap: balance;
}

@media (max-width: 860px) {
    html body.page-home main.site-main #section-3 .vision-challenges:not(.vision-challenges--text) .vision-challenges__title,
    html body.page-home main.site-main #section-4 .ceo-value-card__eyebrow,
    html body.page-home main.site-main #section-3 .vision-challenges .vision-challenge-card h4 {
        font-size: 18px !important;
    }

    html body.page-home main.site-main #section-3 .vision-challenges .vision-challenge-card {
        grid-template-columns: 24px minmax(0, 1fr) 34px !important;
        min-height: 60px !important;
        padding: 8px 2px !important;
    }
}
