/* Indonesian copy keeps its current type size; words and short terms stay intact. */
html body.lang-id main.site-main :is(h1, h2, h3, h4, p, li, dt, dd, label, small, .spec-table__row > div, .faq__tab, .business-detail__cta a) {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

html body.page-home.lang-id main.site-main #section-3 .vision-copy__title > span:first-child {
    display: block;
    text-wrap: balance !important;
}

html body.page-home.lang-id main.site-main #section-4 .ceo-message__body p,
html body.page-business-detail.lang-id main.site-main :is(.business-detail__hero p, .origin-card p, .partner-card p, .business-detail__cta p) {
    text-wrap: pretty !important;
}

html body.page-home.lang-id main.site-main #section-trade-process .trade-process-card__detail p {
    text-wrap: balance !important;
}

@media (max-width: 860px) {
    html body.page-home.lang-id #section-core-services .home-copy-desktop-only {
        display: none !important;
    }

    html body.page-home.lang-id #section-core-services .home-copy-mobile-only {
        display: inline !important;
    }

    html body.page-home.lang-id #section-core-services .core-service-card__id-mobile-line {
        display: block;
    }

    html body.page-home.lang-id #section-6 :is(.safety-trust-card__id-phrase, .business-safety__id-phrase) {
        white-space: nowrap;
    }

    html body.page-home.lang-id #section-6 .business-safety__id-desktop-break {
        display: none;
    }

    html body.page-home.lang-id main.site-main #section-6 .business-safety__badges .business-safety__certification-note {
        text-wrap: balance !important;
    }
}

/* Give the longest mobile phrase room without shrinking the text. */
@media (max-width: 360px) {
    html body.page-home.lang-id main.site-main #section-core-services .core-services__cards .core-service-card {
        padding-inline: 5px !important;
    }
}

@media (max-width: 480px) {
    /* Full-width contact fields keep labels aligned and email examples visible. */
    html body.page-home.lang-id #section-8 .quote-form__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Two columns leave enough room for the complete category names on phones. */
    html body.page-home.lang-id main.site-main #section-faq .faq__tab {
        flex-basis: calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
    }

    /* Let descriptions use the full card width beneath the country and badge. */
    html body.page-business-detail.lang-id .business-detail .origin-card > div {
        display: contents;
        container-type: normal;
    }

    html body.page-business-detail.lang-id .business-detail .origin-card h3 {
        grid-column: 2;
    }

    html body.page-business-detail.lang-id .business-detail .origin-card p {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

/* Keep all seven step headers still while giving the expanded copy room. */
@media (min-width: 861px) {
    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process-card {
        overflow: visible;
    }

    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process-card:is(:hover, :focus-visible) {
        z-index: 4;
    }

    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process-card__detail {
        position: absolute;
        top: 100%;
        left: calc(50% - 170px);
        width: 340px !important;
        max-width: none !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 18px;
        border-radius: 0 0 16px 16px;
        background: #fbfcfe;
        box-shadow: 0 12px 20px rgba(20, 33, 61, .16);
        transform: translateY(-6px);
    }

    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process-card:is(:hover, :focus-visible) .trade-process-card__detail,
    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process__steps.is-measuring .trade-process-card__detail {
        margin-top: 0 !important;
        padding: 14px 18px 16px !important;
        transform: translateY(0);
    }

    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process-card:first-child .trade-process-card__detail {
        left: 0;
    }

    html.page-home body.page-home.lang-id main.site-main #section-trade-process .trade-process-card:last-child .trade-process-card__detail {
        left: auto;
        right: 0;
    }
}
