.theme-005 {
    --ink: #322227;
    --accent: #9e2943;
    --muted: #64545a;
    --surface: #f9eef0;
    --line: #e7d6dc;
    --display: var(--body);
}

.theme-007 {
    --ink: #183a30;
    --accent: #176443;
    --muted: #4c6359;
    --surface: #ebf4ee;
    --line: #cddfd4;
}

.theme-005 .site-masthead { border-color: #b9465d; background: #3c242c; color: #fff; }
.theme-007 .site-masthead { border-color: #3c8063; }
.theme-007 .navigation-bar { background: var(--surface); }
.theme-005 .site-masthead .site-brand:hover { color: #fff; text-decoration: underline; }
.theme-005 .site-brand img { padding: .3rem .5rem; border-radius: .2rem; background: #fff; }

.news-feature { padding-block: clamp(1.2rem, 3.3vw, 3.15rem); }
.news-feature-grid, .news-stream { display: grid; align-items: start; gap: clamp(1.25rem, 3.2vw, 2.85rem); }
.news-feature-grid > *, .news-stream > * { min-inline-size: 0; }
.news-lead h1, .news-lead .story-title {
    font-size: clamp(2rem, 4.15vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.042em;
}
.news-lead .story-copy { gap: .65rem; }
.news-lead .story-summary { font-size: clamp(1.1rem, 1.75vw, 1.32rem); line-height: 1.45; }

.theme-005 .news-feature-grid:has(.popular) { grid-template-columns: minmax(0, 1fr) minmax(14rem, 28%); }
.theme-005 .news-lead { background: var(--surface); border-block-end: 2px solid #bd7181; }
.theme-005 .news-lead .story-image img { aspect-ratio: 2.35 / 1; }
.theme-005 .news-lead .story-copy { padding: clamp(.95rem, 2.4vw, 1.75rem); }
.theme-005 .news-lead h1 { max-inline-size: 23ch; }
.theme-005 .news-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; margin-block-start: 1.25rem; }
.theme-005 .news-secondary .story { padding-block-end: .75rem; border-block-end: 1px solid var(--line); }
.theme-005 .news-secondary .story-image { margin-block-end: .55rem; }
.theme-005 .news-secondary .story-title { font-size: clamp(1.1rem, 1.8vw, 1.42rem); }
.theme-005 .popular {
    border-block-start-width: .27rem;
    background: var(--paper);
    padding: 1rem .9rem .2rem;
}
.theme-005 .popular li { padding-block: .78rem; }
.theme-005 .news-stream { border-block-start: 1px solid var(--line); }

.theme-007 .news-feature { background: #154735; color: #fff; }
.theme-007 .news-lead .has-cover { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; }
.theme-007 .news-lead .story-copy { grid-column: 1; grid-row: 1; padding-inline-end: clamp(1.35rem, 5vw, 4.25rem); }
.theme-007 .news-lead .story-image { grid-column: 2; grid-row: 1; border-radius: .5rem; overflow: hidden; background: #215a46; }
.theme-007 .news-lead img { aspect-ratio: 16 / 10; }
.theme-007 .news-lead .story-category { color: #b0e0be; }
.theme-007 .news-lead :is(.story-meta, .story-summary) { color: #d9eee0; }
.theme-007 .news-lead a:hover { color: #ddf9e5; }
.theme-007 .news-stream:has(> section + .news-sidebar) { grid-template-columns: minmax(0, 1fr) minmax(14rem, 25%); }
.theme-007 .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-007 .story-list .story-image { border-radius: .4rem; overflow: hidden; }
.news-sidebar { display: grid; gap: 1.5rem; }
.news-link-list { padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
.news-link-list h2 { margin-block-end: .45rem; font-size: 1.15rem; }
.news-link-list ul { margin: 0; padding: 0; list-style: none; }
.news-link-list li + li { border-block-start: 1px solid var(--line); }
.news-link-list a { display: block; padding-block: .5rem; }
.news-footer-menu { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; flex-basis: 100%; }

.news-stream { padding-block: var(--section-space); }
.news-stream:not(:has(> *)) { display: none; }
.news-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; margin-block: 1.65rem; }
.news-banner { background: var(--surface); }
.news-banner a { display: block; }
.news-banner img { display: block; inline-size: 100%; block-size: auto; max-block-size: 12.5rem; object-fit: contain; }

.news-article-cover { margin: 0 0 1.5rem; }
.news-article-cover img { display: block; max-inline-size: 100%; max-block-size: 38rem; block-size: auto; object-fit: contain; }
.news-adjacent {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1rem;
    margin-block-start: 1.7rem;
    padding-block: 1rem;
    border-block: 1px solid var(--line);
}
.news-adjacent a { display: grid; align-content: start; }
.news-adjacent a[rel="next"] { grid-column: 2; }
.news-adjacent span { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
    .theme-005 .news-stream .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .theme-005 .news-feature-grid:has(.popular),
    .theme-007 .news-lead .has-cover,
    .theme-007 .news-stream:has(> section + .news-sidebar) { grid-template-columns: minmax(0, 1fr); }
    .theme-005 .news-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-005 .news-lead .story-image img { aspect-ratio: 16 / 10; }
    .theme-007 .news-lead .story-copy { grid-row: 2; padding: 1rem 0 0; }
    .theme-007 .news-lead .story:not(.has-cover) .story-copy { padding: 0; }
    .theme-007 .news-lead .story-image { grid-column: 1; }
    .news-banner img { max-block-size: 8rem; }
}

@media (max-width: 355px) {
    .theme-005 .news-stream .story-list, .theme-007 .story-list { grid-template-columns: minmax(0, 1fr); }
}
