.articles-hero { padding-top: 64px; padding-bottom: 64px; }
.articles-hero h1 { font-size: 3.83rem; }
.articles-hero-visual { position: relative; min-width: 0; }
.articles-hero-visual > img { width: 100%; height: 370px; object-fit: cover; }
.articles-hero-visual > img, .topic-image, .article-cover, .article-prose img { border-radius: var(--photo-radius); }
.articles-hero-visual .visual-caption { max-width: calc(100% - 40px); }
.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topic-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 0; border-radius: var(--photo-radius); background: var(--surface); }
.topic-image { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.topic-copy { display: flex; flex: 1; flex-direction: column; gap: 0; padding: 28px; }
.topic-copy .eyebrow { font-size: 10px; margin-bottom: 16px; }
.topic-copy h3 { font-size: 1.33rem; line-height: 1.18; }
.topic-copy h3 a { color: var(--heading); text-decoration: none; }
.topic-copy h3 a:hover { text-decoration: underline; }
.topic-copy > p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.topic-copy > .quiet-link { margin-top: auto; padding-top: 16px; font-size: 14px; }
.topic-copy > .text-button { margin-top: 16px; }
.newsletter-section { background: var(--surface-accent); }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.subscription-form { margin: 0; }
.subscription-privacy { margin-top: 18px; }
.subscription-status { margin: 16px 0 0; font-size: 14px; }
.subscription-status:empty { display: none; }
.article-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.content-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.topic-actions { padding: 0 28px 24px; margin-bottom: 0; font-size: 13px; }
.article-reading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.article-body { min-width: 0; }
.article-body h1 { font-size: 3.15rem; overflow-wrap: anywhere; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; margin: 32px 0; }
.article-prose { overflow-wrap: anywhere; font-size: 1.0625rem; line-height: 1.85; }
.article-prose h2 { font-size: 1.7rem; margin: 40px 0 20px; }
.article-prose h3 { margin-top: 32px; }
.article-prose img { height: auto !important; max-width: 100% !important; }
.article-prose iframe, .article-prose video, .article-prose object { max-width: 100%; }
.article-prose iframe { aspect-ratio: 16 / 9; height: auto; }
.article-prose table { display: block; overflow-x: auto; }
.article-prose blockquote { margin: 28px 0; padding: 12px 24px; border-left: 3px solid var(--blue); color: var(--muted); background: var(--surface-soft); }
.article-related { display: grid; gap: 24px; min-width: 0; }
.article-related > h2 { font-size: 1.36rem; margin-bottom: 0; }
.article-related .topic-copy h3 { font-size: 1.12rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Preserve the existing category editor on the new Articles layout. */
#modal { display: none; position: fixed; inset: 0; z-index: 1000; overflow: auto; padding: 24px; background: #001521b3; }
#modal .modal { position: relative; max-width: 560px; margin: 48px auto; padding: 30px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); }
#modal .close { float: right; cursor: pointer; font-size: 26px; line-height: 1; }
#modal .editor img { max-height: 180px; cursor: pointer; }

@media (max-width: 950px) {
    .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-reading { grid-template-columns: minmax(0, 1fr); }
    .article-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-related > h2 { grid-column: 1 / -1; }
    .newsletter-grid { gap: 32px; }
}
@media (width > 650px) {
    .topic-card:not(:has(.topic-image)) > .topic-copy { padding-top: 30px; padding-left: 30px; }
}
@media (max-width: 650px) {
    .articles-hero { padding-top: 40px; padding-bottom: 40px; }
    .articles-hero h1 { font-size: 2.55rem; }
    .article-body h1 { font-size: 2.1rem; }
    .articles-hero-visual > img { height: 260px; }
    .articles-grid, .newsletter-grid, .article-related { grid-template-columns: minmax(0, 1fr); }
    .topic-copy { padding: 24px; }
    .article-pagination { gap: 14px; }
    .article-prose { font-size: .9375rem; }
}
@media print {
    .article-related, .newsletter-section, .content-actions { display: none; }
    .article-reading { display: block; }
    .article-prose { font-size: 12pt; }
}
