/* NASA Picture of the Day — Banner (topbar) Zone.
 * 90% wrap, 3 horizontal sections:
 *   1) NASA wordmark + "Picture of the Day"
 *   2) Photo (circle), 100% of wrap height
 *   3) Title + explanation
 */

.apod-banner-wrap {
    width: 90cqw;
    height: 80cqh;
    margin: auto;
    container-type: size;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5cqw;
    background: #ffffff;
    color: #0b1220;
    padding: 0 3cqmin;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Part 1: Brand ── */

.apod-banner-wrap .apod-banner-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    gap: 1.4cqmin;
    min-width: 0;
}

.apod-banner-wrap .apod-banner-wordmark {
    font-family: 'Nasalization', 'Montserrat', sans-serif;
    font-size: 22cqmin;
    text-transform: none;
    letter-spacing: 0.16em;
    color: #e4002b;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
}
.apod-banner-wrap .apod-banner-wordmark-logo {
    height: 2em;
    width: auto;
    display: block;
    margin: 0;
}
.apod-banner-wrap .apod-banner-wordmark-text {
    display: inline-block;
}

.apod-banner-wrap .apod-banner-header {
    font-size: 5.5cqmin;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #0ea5e9;
    line-height: 1;
}

/* ── Part 2: Photo ── */

.apod-banner-wrap .apod-banner-photo {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3cqmin;
}

.apod-banner-wrap .apod-banner-circle {
    /* Sized to fit alongside credit + gap and the outer blue ring,
     * without being clipped by the wrap's overflow:hidden. */
    height: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    border: 1.8cqmin solid #e4002b;
    box-shadow:
        inset 0 0 0 1.8cqmin #ffffff,
        0 0 0 1.8cqmin #0ea5e9,
        0 0.5cqmin 1.6cqmin rgba(11, 18, 32, 0.22);
    box-sizing: border-box;
}

.apod-banner-wrap .apod-banner-credit {
    font-size: 3cqmin;
    color: #9ca3af;
    font-style: italic;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Part 3: Text ── */

.apod-banner-wrap .apod-banner-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4cqmin;
    min-width: 0;
    height: 100%;
    padding: 2cqmin 0;
    box-sizing: border-box;
}

.apod-banner-wrap .apod-banner-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 12cqmin;
    font-weight: 700;
    line-height: 1.18;
    color: #ffffff;
    background-color: #0b3d91;
    padding: 0.6cqmin 1.2cqmin;
    margin: 0;
    text-align: start;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.apod-banner-wrap .apod-banner-body {
    font-family: 'Roboto', sans-serif;
    font-size: 2cqmin;
    font-weight: 400;
    line-height: 1.5;
    color: #0b3d91;
    margin: 0;
    text-align: start;
    align-self: stretch;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
