/* Photo cards share their layout on the home page and archive pages. */
.a24-news-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.story.card {
    position: relative;
    display: grid;
    isolation: isolate;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: #102d4d;
    color: #fff;
    box-shadow: none;
}
.story.card .cover,
.story.card .body {
    grid-area: 1 / 1;
}
.story.card .cover {
    aspect-ratio: auto;
    min-height: 100%;
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: -1;
}
.story.card .cover img,
.story.card .cover svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story.card .body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 320px;
    padding: 100px 24px 24px;
    background: linear-gradient(180deg, rgba(9, 36, 65, 0) 22%, rgba(9, 36, 65, .12) 44%, rgba(9, 36, 65, .82) 100%);
}
.story.card .meta {
    color: #fff;
    margin-bottom: 7px;
}
.story.card .tag {
    padding: 3px 10px;
    background: rgba(14, 63, 103, .88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}
.story.card h3 {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 2.1vw, 27px);
    font-weight: 600;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.story.card:focus-visible {
    outline: 3px solid #f2b33d;
    outline-offset: 3px;
}
.site-brand {
    flex-shrink: 0;
}
.site-brand .custom-logo-link {
    display: flex;
    align-items: center;
}
.site-brand .custom-logo-link img {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 76px;
    object-fit: contain;
}
@media (max-width: 820px) {
    .a24-news-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    #latest .a24-news-cards {
        margin-inline: -14px;
    }
    .story.card .body {
        min-height: 270px;
        padding: 90px 18px 22px;
    }
    .story.card h3 {
        font-size: 22px;
    }
    .site-brand .custom-logo-link img {
        max-width: min(52vw, 210px);
        max-height: 68px;
    }
}

/* Related articles reuse the current blue photo cards, not plain navigation links. */
.article .a24-related {
    margin-block: 36px 28px;
    padding-block-start: 18px;
    border-block-start: 1px solid var(--line);
}
.a24-related h2 {
    margin: 0 0 14px;
    font-size: 23px;
    color: var(--ink);
}
.a24-related .a24-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.article .a24-related .story.card .cover {
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
}
.a24-related .story.card .body {
    min-height: 215px;
    padding: 72px 15px 15px;
}
.a24-related .story.card h3 {
    font-size: clamp(17px, 2.4vw, 21px);
    line-height: 1.5;
}
.a24-related .story.card .tag { font-size: 12px; padding: 2px 7px; }
@media (max-width: 520px) {
    .a24-related .a24-related-grid { grid-template-columns: minmax(0, 1fr); }
    .a24-related .story.card .body { min-height: 205px; }
}

/* Gutenberg Quote and classic blockquote. Color follows day/night mode. */
.article .entry-content blockquote {
    position: relative;
    margin: 26px 0;
    padding: 20px clamp(32px, 7vw, 54px);
    background: var(--paper);
    border: 0;
    border-inline-start: 3px solid var(--line);
    color: var(--muted);
    font-size: 1.06em;
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.article .entry-content blockquote::before,
.article .entry-content blockquote::after {
    position: absolute;
    color: var(--muted);
    opacity: .62;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 2.3em;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}
.article .entry-content blockquote::before {
    content: '«';
    inset-inline-start: 9px;
    inset-block-start: 6px;
}
.article .entry-content blockquote::after {
    content: '»';
    inset-inline-end: 9px;
    inset-block-end: 6px;
}
.article .entry-content blockquote p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.article .entry-content blockquote p:last-child { margin-block-end: 0; }
.article .entry-content blockquote cite {
    display: block;
    margin-block-start: 10px;
    color: var(--ink-2);
    font-size: .8em;
    font-style: normal;
}
