/* Layout and content structure */

/* Letterhead header and footer - HTML/CSS replacement for the old
   header.png/footer.png so the letterhead stays crisp at any width.
   The navy rules span the full viewport; the brand/contact/wave content
   aligns with .content-wrapper. */
.letterhead {
    background: #fff;
    border-top: 2px solid #1C355E;
    border-bottom: 6px solid #1C355E;
}

.letterhead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 80px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.letterhead-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #1C355E;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.brand-ocean {
    font-size: 40px;
    letter-spacing: 0.14em;
}

.brand-imr {
    font-size: 18px;
    letter-spacing: 0.22em;
    margin-top: 3px;
}

.letterhead-contact {
    font-style: normal;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    text-align: right;
}

.letterhead-contact a {
    text-decoration: underline;
}

.letterfoot {
    background: #fff;
    border-top: 6px solid #1C355E;
    margin-top: 40px;
}

/* Keep the footer at the viewport bottom on short pages (screen only -
   printing keeps the natural document flow) */
@media screen {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .content-wrapper {
        flex: 1;
        width: 100%;
    }
}

.letterfoot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 80px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.letterfoot-contact {
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    display: flex;
    flex-direction: column;
}

.letterfoot-contact a {
    text-decoration: underline;
}

.letterfoot-wave {
    width: 88px;
    height: auto;
    flex: 0 0 auto;
}

/* Content Container - Constrained Width */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 80px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Reduce content padding on mobile */
    .content-wrapper {
        padding: 20px 15px;
    }

    .letterhead-inner {
        padding: 14px 15px 12px;
    }

    .brand-ocean {
        font-size: 30px;
    }

    .brand-imr {
        font-size: 14px;
        margin-top: 2px;
    }

    .letterhead-contact {
        font-size: 12px;
    }

    .letterfoot {
        margin-top: 25px;
    }

    .letterfoot-inner {
        padding: 10px 15px 12px;
    }

    .letterfoot-contact {
        font-size: 12px;
    }

    .letterfoot-wave {
        width: 64px;
    }

    /* Reduce heading sizes slightly on mobile */
    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.5em;
        margin-top: 25px;
    }

    h3 {
        font-size: 1.25em;
        margin-top: 15px;
    }

    /* Adjust list indentation for mobile */
    ul, ol {
        margin-left: 20px;
    }
}

/* Extra small devices (phones in portrait) */
@media screen and (max-width: 480px) {
    .content-wrapper {
        padding: 15px 10px;
    }

    .letterhead-inner {
        padding: 12px 10px 10px;
    }

    .brand-ocean {
        font-size: 24px;
    }

    .brand-imr {
        font-size: 12px;
    }

    .letterhead-contact {
        font-size: 11px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }
}
