/* Full Moon A3: scoped so multiple nights and the calendar remain independent. */
.moon-night {
    background: #f5f4ef;
    color: #203244;
}

.moon-night__inner {
    /* Same content edge as .page-content on every band. */
    box-sizing: border-box;
    max-width: 1120px;
    margin: auto;
    padding: 35px 28px 40px;
}

.moon-night__eyebrow {
    font-size: 12px;
    letter-spacing: .06em;
    color: #65766d;
    margin: 0 0 12px;
}

.moon-night h3 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.moon-night__lead {
    font-size: 16px;
    line-height: 1.65;
    max-width: 770px;
    margin: 0 0 24px;
}

.moon-night__box {
    background: #16293c;
    color: #cbd5dc;
    border-radius: 17px;
    padding: 20px 24px;
}

.moon-night__axis-label {
    margin: 0 0 12px;
    font-size: 12px;
    color: #b9c8d1;
}

.moon-night__layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 245px;
    gap: 25px;
    align-items: center;
}

.moon-night__plot {
    width: 100%;
    display: block;
    overflow: visible;
    touch-action: pan-y;
}

.moon-night__plot--380 {
    display: none;
}

.moon-night__plot text {
    fill: #cbd5dc;
    font: 14px system-ui,sans-serif;
}

.moon-night__plot .moon-night__date {
    font-size: 12px;
    fill: #a3b5c1;
}

.moon-night__grid {
    stroke: #cbd5dc;
    stroke-opacity: .15;
}

.moon-night__sunline {
    stroke: #cbd5dc;
    stroke-dasharray: 2 5;
    stroke-opacity: .5;
}

.moon-night__cursor {
    stroke: #cbd5dc;
    stroke-dasharray: 3 5;
    stroke-opacity: .65;
}

.moon-night__moon [data-tint] {
    mix-blend-mode: screen;
}

.moon-night__reading {
    display: grid;
    grid-template-columns: minmax(0,1fr) 124px;
    gap: 16px 8px;
    align-items: center;
    padding: 12px 0;
    min-width: 0;
}

.moon-night__reading small {
    font-size: 11px;
    display: block;
    color: #aebcc5;
    margin-bottom: 4px;
}

.moon-night__reading strong {
    font-size: 18px;
    color: #f4eee1;
    font-weight: 550;
    line-height: 1.4;
}

.moon-night__reading .moon-night__height {
    font-size: 32px;
    white-space: nowrap;
}

.moon-night__time {
    grid-column: 1/-1;
    min-height: 48px;
}

.moon-night__compass {
    grid-column: 2;
    grid-row: 2/4;
    width: 124px;
    height: 124px;
    overflow: visible;
}

.moon-night__ring {
    fill: #ffffff03;
    stroke: #91a5b24a;
}

.moon-night__ring--inner {
    fill: none;
    stroke: #91a5b21c;
}

.moon-night__ticks {
    stroke: #93a8b05e;
    stroke-width: 1;
}

.moon-night__compass-label {
    font: 700 11px system-ui,sans-serif;
    fill: #b9c8d1;
}

.moon-night__compass-label--0 {
    fill: #df7770;
}

.moon-night__compass-label--2 {
    fill: #80b6df;
}

.moon-night__description {
    display: grid;
    align-items: start;
    grid-column: 1/-1;
    font-size: 14px;
    line-height: 1.65;
    color: #bdcbd2;
    margin: 0;
}

.moon-night__description > span {
    grid-area: 1/1;
}

.moon-night__reserve {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.moon-night__controls {
    padding: 5px 0 0;
}

.moon-night__controls label {
    font-size: 12px;
    color: #b0bdc5;
}

.moon-night input[type=range] {
    display: block;
    width: 100%;
    accent-color: #d9b87d;
    margin: 10px 0 2px;
    min-height: 32px;
    cursor: pointer;
}

.moon-night :focus-visible {
    outline: 3px solid #d9b87d;
    outline-offset: 3px;
}

.moon-night__summary {
    font-size: 14px;
    line-height: 1.7;
    margin: 20px 0 0;
    color: #546762;
}

.moon-night__legend {
    font-size: 12px;
    line-height: 1.65;
    color: #65766d;
    margin: 10px 0 0;
}

.moon-night [hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .moon-night__inner {
        padding-block: 28px;
    }

    .moon-night h3 {
        font-size: 22px;
    }

    .moon-night__lead {
        font-size: 15px;
    }

    .moon-night__box {
        padding: 18px 12px;
    }

    .moon-night__layout {
        display: block;
    }

    .moon-night__plot--920 {
        display: none;
    }

    .moon-night__plot--380 {
        display: block;
    }

    .moon-night__plot text {
        font-size: 12px;
    }

    .moon-night__reading {
        gap: 12px;
        border-top: 1px solid #ffffff20;
        margin-top: 10px;
        padding-top: 18px;
    }

    .moon-night__reading strong {
        font-size: 16px;
    }

    .moon-night__reading .moon-night__height {
        font-size: 25px;
    }

    .moon-night__description {
        font-size: 13px;
    }

    .moon-night__summary {
        font-size: 13px;
    }

    .moon-night__time {
        min-height: 44px;
    }
}

@media print {
    .moon-night__interactive {
        display: none !important;
    }

    .moon-night__box {
        break-inside: avoid;
    }
}

/* Horizontal padding follows .page-content breakpoints in moon-experience.css. */
@media (max-width: 760px) {
    .moon-night__inner {
        padding-inline: 24px;
    }
}

@media (max-width: 540px) {
    .moon-night__inner {
        padding-inline: 20px;
    }
}

@media (max-width: 350px) {
    .moon-night__inner {
        padding-inline: 16px;
    }
}
