.noel-page {
    color: #26364a;
}

.noel-page h1 {
    margin-block: 1.25rem;
}

.noel-page h2,
.noel-page h3,
.noel-page [id] {
    scroll-margin-top: 1rem;
}

.noel-page article > h2 {
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.noel-page article > h3 {
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}

.noel-box {
    --box-padding-block: 1.25rem;
    padding: var(--box-padding-block) 1.25rem;
    border: 1px solid #cbd4e2;
    border-radius: .6rem;
}

.noel-box :is(h2, h3, h4, h5, h6) {
    margin-top: .9em;
    margin-bottom: .65rem;
}

.noel-box :not(script, style, template):not(:is(.noel-box, .noel-box *):not(.noel-answer-grid) > :not(script, style, template, [hidden], .visually-hidden) ~ *, :is(.noel-box, .noel-box *):not(.noel-answer-grid) > :not(script, style, template, [hidden], .visually-hidden) ~ * *) {
    margin-top: 0;
}

.noel-box :not(script, style, template):not(:is(.noel-box, .noel-box *):not(.noel-answer-grid) > :has(~ :not(script, style, template, [hidden], .visually-hidden)), :is(.noel-box, .noel-box *):not(.noel-answer-grid) > :has(~ :not(script, style, template, [hidden], .visually-hidden)) *) {
    margin-bottom: 0;
}

.noel-answer {
    margin-block: 1rem 1.5rem;
    background: #fff9e3;
    border-color: #e2cc78;
}

.noel-answer h2 {
    padding: 0;
    color: #26364a;
    font-size: 1.15rem;
    border: 0;
}

.noel-answer-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 1.25rem;
    margin-block: 1rem;
}

.noel-address {
    margin: 0;
    font-size: 1.4rem;
    font-style: normal;
    line-height: 1.6;
}

.noel-essentials {
    margin: 0;
    padding-left: 1.25rem;
}

.noel-essentials li + li {
    margin-top: .6rem;
}

.noel-answer > p {
    margin-bottom: 0;
    padding: 0;
}

.noel-page .noel-nav {
    margin-block: 1.5rem 2rem;
    padding: 0;
    justify-content: flex-start;
    border: 0;
}

.noel-page .noel-nav a {
    min-height: 44px;
}

.noel-envelope-grid,
.noel-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-block: 1.25rem;
}

.noel-envelope {
    margin: 0;
    padding: .75rem;
    background: white;
}

.noel-envelope img {
    display: block;
    width: 100%;
    height: auto;
}

.noel-envelope figcaption {
    margin-top: .75rem;
    color: #26364a;
    font-size: .9rem;
    line-height: 1.5;
}

.noel-resource {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
    background: #f5f7fb;
}

.noel-resource h3 {
    margin-block: 0;
    color: #20458f;
    font-size: 1.15rem;
    line-height: 1.4;
}

.noel-resource p {
    margin: 0;
    padding: 0;
}

.noel-page .noel-resource a {
    margin-top: auto;
    padding: .65rem .85rem;
    color: white;
    background: #20458f;
    border: 2px solid #20458f;
    border-radius: .35rem;
    text-decoration: none;
    line-height: 1.4;
}

.noel-page .noel-resource a:hover {
    color: white;
    background: #17346e;
    border-color: #17346e;
}

.noel-page a:focus-visible,
.noel-page summary:focus-visible {
    outline: 3px solid #20458f;
    outline-offset: 4px;
}

.noel-faq {
    display: grid;
    gap: .85rem;
}

.noel-faq details {
    background: #fff;
}

.noel-faq summary {
    cursor: pointer;
    color: #20458f;
    font-weight: 700;
    line-height: 1.5;
    min-height: 24px;
}

.noel-faq details[open] > p {
    margin: 1rem 0 0;
    padding: 0;
}

.noel-photo {
    margin-block: 1.5rem;
    text-align: center;
}

.noel-photo img {
    height: auto;
}

.noel-letter {
    margin-block: 1rem;
}

.noel-fantasy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.noel-fantasy-grid blockquote {
    margin: 0;
}

@media (max-width: 767px) {
    .noel-box {
        padding-inline: 1rem;
    }

    .noel-answer-grid,
    .noel-envelope-grid,
    .noel-resource-grid,
    .noel-fantasy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .noel-page h1 {
        font-size: 1.6rem;
    }

    .noel-address {
        font-size: 1.3rem;
    }

    .noel-envelope {
        padding: .6rem;
    }
}
