body {
    font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #343741;
}

.indent {
    margin-left: 40px;
    margin-right: 40px;
}

.long-text {
    text-align: justify;
    line-height: 140%
}

#wrapper {
    width: 100%;
    min-width: 1000px;
    min-height: 1px;

    border-bottom: 14px solid #0075a8;
    background-color: #fff;
}

#bg {
    min-width: 1000px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 400px;
    background: rgb(3, 76, 116);
    background: linear-gradient(68deg, rgba(3, 76, 116, 1) 11%, rgba(22, 134, 182, 1) 55%, rgba(13, 173, 242, 1) 93%);
    border-bottom: 14px solid #daeff5;
}

#content {
    box-sizing: border-box;
    width: 75%;
    padding: 46px 60px 46px 60px;
    margin: 140px auto -70px;
    background-color: #fff;
    min-width: 1000px;
    min-height: 900px;
    z-index: 1;
    position: relative;
    -webkit-box-shadow: 0px 0px 46px -9px rgba(0, 0, 0, 0.32);
    -moz-box-shadow: 0px 0px 46px -9px rgba(0, 0, 0, 0.32);
    box-shadow: 0px 0px 46px -9px rgba(0, 0, 0, 0.32);
}

#logo {
    position: absolute;
    left: 14px;
    top: -94px;
    width: 209px;
    height: 70px;
    background-image: url("logo-en.png");
    background-repeat: no-repeat;

}

h1 {
    color: #0075a8;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.1875rem;
    letter-spacing: 1px;
    margin: 0;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

#footer {
    background-color: #343741;
    width: 75%;
    min-width: 1000px;
    min-height: 150px;
    margin: 0 auto;
    overflow: hidden;
    font-size: 0.95rem;
    color: #b6b7b8;
}

/* Menu inside content */
#menu {
    width: 100%;
    padding: 12px 0 20px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 30px;
    font-size: 1rem;
    margin-bottom: 25px;
}

#menu a {
    text-decoration: none;
    color: #005b86;
    font-weight: 600;
}

#menu a:hover {
    text-decoration: underline;
}

.example p:last-child {
    margin-bottom: 0;
}

/* Example boxes */
.example {
    border-left: 4px solid #0075a8;
    padding: 12px 16px;
    margin: 20px 0;
    background: #f7f9fa;
    border-radius: 4px;
}

.example a {
    font-family: monospace;
    font-size: 0.95rem;
    color: #003f64;
    word-break: break-all;
}

.example a:hover {
    text-decoration: underline;
}

.example pre {
    margin-top: 10px;
}

/* Info box */
.info-box {
    background: #eef7fc;
    border: 1px solid #bcd8e6;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 4px;
}

/* Code readability */
pre, code {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === Mobile layout for small screens (≤600px) === */
@media (max-width: 600px) {

    /* Use a white page background so the content card edge isn't visible */
    body {
        background-color: #fff;
    }

    /* Remove wide min-width constraints */
    #wrapper {
        min-width: 0;
        width: 100%;
        border-bottom: none;
        background-color: #fff;
    }

    /* Short gradient header strip for logo contrast */
    #bg {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        min-width: 0;                   /* ensure it can shrink on mobile */
        height: 110px;                  /* short strip */
        background: rgb(3, 76, 116);
        background: linear-gradient(68deg, rgba(3, 76, 116, 1) 11%, rgba(22, 134, 182, 1) 55%, rgba(13, 173, 242, 1) 93%);
        border-bottom: 8px solid #daeff5; /* thinner border for mobile */
        z-index: 0;
    }

    /* Full-width block below the strip */
    #content {
        min-width: 0;
        width: 100%;
        margin: 90px auto 0;            /* sit below the 110px strip (with overlap margin for spacing) */
        padding: 20px 15px;
        background-color: #fff;
        box-shadow: none;
        box-sizing: border-box;         /* keep padding inside the width */
        position: relative;
        z-index: 1;                     /* above #bg */
    }

    /* Logo floats over the gradient strip for visibility */
    #logo {
        position: absolute;
        left: 14px;
        top: -78px;                     /* position over the #bg strip */
        width: 140px;
        height: 50px;
        background-image: url("logo-en.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: left center;
    }

    /* Menu stacks vertically for narrow screens */
    #menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 0 15px 0;
        border-bottom: 1px solid #e0e0e0;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    #menu a {
        display: block;
    }

    /* Example boxes fit better on small screens */
    .example {
        padding: 10px 12px;
        margin: 15px 0;
        border-left-width: 3px;
    }

    /* Long URLs: allow horizontal scroll without breaking layout */
    .example a {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    pre, code {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 0.85rem;
        line-height: 1.35;
    }

    /* Footer matches full-width content */
    #footer {
        width: 100%;
        min-width: 0;
        padding: 20px 15px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    /* Headline a bit smaller for balance on mobile */
    h1 {
        font-size: 1.6rem;
        line-height: 1.9rem;
        margin-bottom: 1.6rem;
    }
}

/* === Tablet / Mid-width layout (601px–999px) === */
@media (min-width: 601px) and (max-width: 999px) {

    /* Let the page be fluid in this range */
    #wrapper {
        min-width: 0;
        width: 100%;
        border-bottom: 10px solid #0075a8; /* slightly thinner for scale */
    }

    /* Keep the gradient header but make it shorter */
    #bg {
        min-width: 0;
        height: 260px; /* down from 400px */
        border-bottom-width: 10px; /* scale with wrapper border */
    }

    /* Fluid content: narrower padding, centered, no forced min-width */
    #content {
        min-width: 0;
        width: 92%;                /* slightly narrower than desktop 75% to fit tablets */
        margin: 120px auto -50px;  /* tuned to the shorter #bg height */
        padding: 40px 30px 34px 30px;
        box-shadow: 0 0 30px -10px rgba(0,0,0,0.28);
    }

    /* Logo stays above the card but scales down a bit */
    #logo {
        left: 12px;
        top: -78px;         /* closer to the new #bg height */
        width: 170px;       /* down from 209px */
        height: 58px;       /* scaled to keep aspect nicely */
        background-size: contain;
        background-position: left top;
    }

    /* Menu: still row-based, but wrap tight */
    #menu {
        gap: 18px;
        font-size: 0.98rem;
        flex-wrap: wrap;
        padding: 10px 0 18px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #e6e6e6;
    }

    #menu a {
        line-height: 1.6;
    }

    /* Headline adjusts slightly for balance */
    h1 {
        font-size: 1.7rem;
        line-height: 2rem;
        margin-bottom: 2rem;
    }

    /* Example boxes: a bit tighter spacing */
    .example {
        padding: 10px 14px;
        margin: 16px 0;
        border-left-width: 3px;
    }

    .example a {
        font-size: 0.93rem;
        word-break: break-all;  /* allow wrapping in mid range as URLs can be long */
    }

    .example pre {
        margin-top: 8px;
    }

    /* Info box: tighter padding */
    .info-box {
        padding: 12px 16px;
        margin: 24px 0;
    }

    /* Code: slightly smaller for density, still readable */
    pre, code {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    /* Footer matches content width */
    #footer {
        width: 92%;
        min-width: 0;
        margin: 0 auto;
        padding: 20px 0;
        box-sizing: border-box;
    }
}
