/*
 * Do Progetto — Japanese application/inquiry guide (page ID 127)
 * Responsive preview styles only; enqueued via MU plugin when authorized.
 * Preserve the original content, order, and destination URLs.
 */
@media screen and (max-width: 600px) {
    /* Make the legacy guide fill the available content area. */
    #info {
        width: 100%;
        max-width: 100%;
        margin: 12px 0 20px;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    /* Guide section headings and their explanatory blocks. */
    #info .info1 {
        margin: 18px 0 8px;
        font-size: 15px;
        line-height: 1.6;
        font-weight: bold;
    }

    #info .info2 {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px;
        box-sizing: border-box;
        line-height: 1.75;
    }

    /* The source page uses 20/50/70px indents intended for desktop. */
    #info .left_margin,
    #info .left_margin2,
    #info .left_margin3 {
        margin-left: 0 !important;
    }

    #info p,
    #info p.pw {
        margin-top: 6px;
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    /* Keep the existing list numbering and wording. */
    #info ul,
    #info .info_ul {
        max-width: 100%;
        margin: 8px 0 14px;
        padding-left: 18px;
        box-sizing: border-box;
    }

    #info li,
    #info .info_li {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    #info li > p {
        margin: 5px 0 8px;
    }

    /* Replace the 250px desktop offset with two full-width tap targets. */
    #form_link {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin: 24px 0 28px;
        box-sizing: border-box;
        font-size: 15px;
        line-height: 1.5;
    }

    #form_link > br {
        display: none;
    }

    #form_link a {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        box-sizing: border-box;
        border: 1px solid #cdbec3;
        background: #fbf8f9;
        color: #903 !important;
        text-decoration: none !important;
        text-align: center;
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    #form_link a:focus-visible {
        outline: 2px solid #903;
        outline-offset: 3px;
    }
}
