/* CC 2026 — journal POP minimal. Native blog/search/layout are preserved.
   Filename retained for existing deployments; palette comes from design-system.css. */
body.cc-home-news.view-category {
    --cc-news-blue: var(--cc-primary);
    --cc-news-ink: var(--cc-text-heading);
    --cc-news-muted: var(--cc-text-muted);
    --cc-news-line: var(--cc-border);
    --cc-news-wash: var(--cc-background-alt);
}

/* Left-aligned heading and a full-width toolbar, flush with the article grid. */
body.cc-home-news.view-category .com-content-category-blog::before {
    display: none;
    background: none;
    content: none;
}
body.cc-home-news.view-category .cc-news-masthead {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    margin: 0 0 1.5rem;
    padding: 0;
    overflow: visible;
    color: var(--cc-text-heading);
    background: transparent;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
}
body.cc-home-news.view-category .cc-news-masthead__intro {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 4rem clamp(1.25rem, 3vw, 3rem) 3rem;
    text-align: left;
    background: var(--cc-white);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    box-shadow: 0 8px 24px rgba(22, 20, 18, .07);
}
body.cc-home-news.view-category .cc-news-masthead::before,
body.cc-home-news.view-category .cc-news-masthead::after {
    display: none;
    content: none;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .page-header {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .page-header h1 {
    margin: 0;
    color: #0D7995;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .page-header h1::before {
    content: none;
}
body.cc-home-news.view-category :is(.category-desc, .cc-news-teaser, .com-content-category-blog__counter) {
    color: var(--cc-text-muted);
    font-weight: var(--cc-weight-body);
}
body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc,
body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc p {
    color: #161412;
    font-weight: 400;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 1.25rem 0 0;
    font-size: 1rem;
    line-height: 1.65;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc p {
    max-width: none;
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 3.1rem);
    letter-spacing: -.015em;
    line-height: 1.2;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc .cc-news-headline {
    margin: 0;
    color: #161412;
    font-size: clamp(1.6rem, 3vw, 3.1rem);
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.2;
}
body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc .cc-news-description {
    margin: .85rem 0 0;
    color: #161412;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    font-weight: 400;
    line-height: 1.6;
}
body.cc-home-news.view-category .cc-news-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .8rem;
    width: 100%;
    min-width: 0;
}
body.cc-home-news.view-category .cc-news-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
    flex: none;
    width: 100%;
    min-width: 15.5rem;
    max-width: none;
    margin: 0;
}
@media (max-width: 767.98px) {
    body.cc-home-news.view-category .cc-news-masthead {
        gap: 1.25rem;
        margin: 0 0 1.5rem;
        padding: 0;
        border-radius: 0;
    }
    body.cc-home-news.view-category .cc-news-masthead__intro {
        padding-block: 2.5rem 2rem;
    }
    body.cc-home-news.view-category .cc-news-masthead__intro > .category-desc {
        padding: 1rem 0 0;
    }
    body.cc-home-news.view-category .cc-news-tools {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}

/* White cards; natural photographs and compact, contextual cartouches. */
body.cc-home-news.view-category .blog-item {
    color: var(--cc-text);
    background: var(--cc-white);
    border-color: var(--cc-border);
    border-radius: var(--cc-radius-md);
    box-shadow: 0 3px 8px rgba(22, 20, 18, .04), 0 12px 28px rgba(22, 20, 18, .08);
}
body.cc-home-news.view-category .blog-item:is(:hover, :focus-within) {
    border-color: var(--cc-button-secondary-border);
    box-shadow: 0 4px 10px rgba(22, 20, 18, .05), 0 16px 34px rgba(22, 20, 18, .12);
    transform: none;
}
body.cc-home-news.view-category .blog-item .item-image {
    background: var(--cc-background-alt);
}
body.cc-home-news.view-category .blog-item .item-image img {
    filter: none;
}
body.cc-home-news.view-category .blog-item .page-header :is(h1, h2, a) {
    color: var(--cc-text-heading);
    font-weight: var(--cc-weight-title);
    letter-spacing: -.015em;
    line-height: 1.2;
}
body.cc-home-news.view-category .blog-item .item-content > p:not(.readmore),
body.cc-home-news.view-category .blog-item .cc-news-teaser > * {
    color: var(--cc-text);
    font-weight: var(--cc-weight-body);
}
body.cc-home-news.view-category .blog-item .article-info {
    color: var(--cc-text-muted) !important;
    font-weight: var(--cc-weight-body);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:not(:first-child) .article-info,
body.cc-home-news.view-category .cc-news-page--archive .blog-item .article-info {
    color: var(--cc-text-muted) !important;
}
body.cc-home-news.view-category .blog-item .article-info :is(dd, time) {
    font-weight: var(--cc-weight-body);
}
body.cc-home-news.view-category .blog-item .article-info :is(.category-name, .category-name a) {
    color: #161412;
    font-weight: var(--cc-weight-nav);
}
body.cc-home-news.view-category .blog-item .article-info :is(.category-name, .parent-category-name) {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    min-height: 2rem;
    padding: .38rem .72rem;
    color: #161412;
    background: #fff;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-button);
    box-shadow: none;
    font-size: .72rem;
    font-weight: var(--cc-weight-nav);
    line-height: 1.2;
}
body.cc-home-news.view-category .blog-item .article-info :is(.category-name, .parent-category-name) :is(a, .icon-fw) { color: inherit; }
body.cc-home-news.view-category .blog-item .article-info :is(.category-name, .parent-category-name) a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
body.cc-home-news.view-category .blog-item .article-info dd + dd::before {
    color: var(--cc-text-muted);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:not(:first-child) .article-info dd + dd::before,
body.cc-home-news.view-category .cc-news-page--archive .blog-item .article-info dd + dd::before {
    color: var(--cc-text-muted);
}
body.cc-home-news.view-category .com-content-category-blog .tags .btn-info {
    color: var(--cc-news-text);
    background: var(--cc-news-soft);
    border-color: transparent;
    border-radius: var(--cc-radius-button);
    box-shadow: none;
    font-weight: var(--cc-weight-nav);
}
body.cc-home-news.view-category .com-content-category-blog .tags .btn-info::before {
    color: currentColor;
}
body.cc-home-news.view-category .com-content-category-blog .tags .btn-info:is(:hover, :focus-visible) {
    color: var(--cc-news-text);
    background: var(--cc-white);
    border-color: var(--cc-news-text);
    box-shadow: none;
    transform: none;
}

/* Search remains separate from the dossier: one functional control, no glow. */
body.cc-home-news.view-category .cc-news-search {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cc-white);
    border: 1px solid #adb1b1;
    padding: .2rem;
    border-radius: 12px;
    box-shadow: 0 .3rem .9rem rgba(22, 20, 18, .08);
    backdrop-filter: none;
}
/* The grid can stretch the search to the neighbouring dossier's height.
   Centre the complete form within that space, not just its own children. */
body.cc-home-news.view-category .cc-news-search__form {
    width: 100%;
    margin: 0;
    align-items: center;
    min-height: 2rem;
    gap: .35rem;
}
body.cc-home-news.view-category .cc-news-search__icon { margin-left: .45rem; font-size: .8rem; }
body.cc-home-news.view-category .cc-news-search__input {
    min-height: 2rem;
    margin: 0;
    padding-block: .3rem;
    font-size: .8rem;
    line-height: 1.4;
}
body.cc-home-news.view-category :is(.cc-news-search__icon, .cc-news-search__input, .cc-news-search__active a) {
    color: var(--cc-text-heading);
}
body.cc-home-news.view-category .cc-news-search__input::placeholder,
body.cc-home-news.view-category .cc-news-search__active {
    color: var(--cc-text-muted);
}
body.cc-home-news.view-category .cc-news-search__active {
    border-color: var(--cc-border);
}
body.cc-home-news.view-category .cc-news-search:focus-within {
    border-color: var(--cc-news-text);
    outline: 2px solid var(--cc-news-text);
    outline-offset: 3px;
    box-shadow: none;
}
body.cc-home-news.view-category .cc-news-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .35rem .6rem;
    font-size: .7rem;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    background: #161412;
    border-color: #161412;
    border-radius: 9px;
    font-weight: var(--cc-weight-title);
    letter-spacing: 0;
}
body.cc-home-news.view-category .cc-news-search__submit:is(:hover, :focus-visible) {
    color: #fff;
    background: #161412;
    border-color: #161412;
    transform: none;
}
body.cc-home-news.view-category .cc-news-search__active a {
    font-weight: var(--cc-weight-nav);
}

/* One discovery component: title search and native theme links share the same
   surface, alignment and keyboard-navigation order. */
body.cc-home-news.view-category .cc-news-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}
body.cc-home-news.view-category .cc-news-toolbar.cc-news-discovery {
    padding: 1.5rem 1.75rem;
    gap: 1.125rem;
    background: #FFFFFF;
    border: 1px solid #DEE2E3;
    border-radius: 1.25rem;
    box-shadow: 0 .375rem 1.25rem rgb(22 20 18 / 5%);
}
body.cc-home-news.view-category :is(.cc-news-topics,.cc-news-tools) {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
}
body.cc-home-news.view-category .cc-news-tools .cc-news-search {
    display: grid;
    grid-template-columns: minmax(14rem,.36fr) minmax(0,1fr);
    align-items: center;
    gap: .875rem 2rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
body.cc-home-news.view-category .cc-news-search__heading {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    min-width: 0;
}
body.cc-home-news.view-category .cc-news-search__heading h2 {
    margin: 0;
    color: #161412;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}
body.cc-home-news.view-category .cc-news-search__heading small {
    color: #625F5B;
    font-size: .75rem;
    line-height: 1.5;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__form {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    min-height: 4rem;
    padding: .375rem;
    border: 1px solid #AEB8BC;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: none;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__icon {
    flex: 0 0 auto;
    margin-left: .875rem;
    color: #0D7995;
    font-size: 1rem;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__input {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3rem;
    margin: 0;
    padding: .625rem .5rem;
    color: #161412;
    background: transparent;
    border: 0;
    font-size: .9375rem;
    box-shadow: none;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__submit {
    flex: 0 0 auto;
    min-height: 3rem;
    padding: .75rem 1.5rem;
    color: #FFFFFF;
    background: #161412;
    border: 1px solid #161412;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__submit:is(:hover,:focus-visible) {
    color: #161412;
    background: #27B9D7;
    border-color: #27B9D7;
}
body.cc-home-news.view-category .cc-news-tools .cc-news-search:focus-within {
    border: 0;
    outline: none;
    box-shadow: none;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__form:focus-within {
    border-color: #0D7995;
    outline: 2px solid #0D7995;
    outline-offset: 3px;
}
body.cc-home-news.view-category .cc-news-search .cc-news-search__input:focus { outline: none; box-shadow: none; }
body.cc-home-news.view-category .cc-news-search .cc-news-search__active {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    padding-top: .875rem;
    font-size: .8125rem;
    line-height: 1.5;
}
@media (max-width: 767.98px) {
    body.cc-home-news.view-category .cc-news-tools .cc-news-search {
        grid-template-columns: minmax(0,1fr);
        gap: .875rem;
        padding: 0;
    }
    body.cc-home-news.view-category .cc-news-toolbar.cc-news-discovery { padding: 1.25rem 1rem; }
    body.cc-home-news.view-category .cc-news-search__heading h2 { font-size: 1.125rem; }
    body.cc-home-news.view-category .cc-news-search .cc-news-search__form { min-height: 3.5rem; padding: .25rem; }
    body.cc-home-news.view-category .cc-news-search .cc-news-search__input { min-height: 2.75rem; font-size: 1rem; }
    body.cc-home-news.view-category .cc-news-search .cc-news-search__submit { min-height: 2.75rem; padding-inline: 1rem; font-size: .75rem; }
    body.cc-home-news.view-category .cc-news-search .cc-news-search__active { grid-column: 1; }
}
body.cc-home-news.view-category .cc-news-search-empty {
    color: var(--cc-text);
    background: var(--cc-background-alt);
    border-color: var(--cc-border);
    border-radius: var(--cc-radius-md);
}
body.cc-home-news.view-category .cc-news-search-empty > .icon-search {
    color: var(--cc-text-heading);
    background: var(--cc-yellow);
    border-radius: var(--cc-radius-sm);
}
body.cc-home-news.view-category .cc-news-search-empty :is(h2, a) {
    color: var(--cc-text-heading);
    font-weight: var(--cc-weight-title);
}
body.cc-home-news.view-category .cc-news-search-empty p {
    color: var(--cc-text-muted);
}

/* One metadata row; a separate, aligned reading/date row on every news card. */
body.cc-home-news.view-category .blog-item .cc-news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: .1rem 0 1rem;
}
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta :is(.article-info, ul.tags.list-inline) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    width: auto;
    margin: 0;
    padding: 0;
}
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta .article-info:has(> dt:only-child) { display: none; }
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta .article-info dd + dd::before { content: none; }
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta .article-info :is(.category-name, .parent-category-name),
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta .tags a.btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2rem;
    padding: .38rem .72rem;
    border: 1px solid transparent;
    border-radius: var(--cc-radius-button);
    font-size: .72rem;
    font-weight: var(--cc-weight-nav);
    line-height: 1.2;
}
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta .article-info :is(.category-name, .parent-category-name) {
    color: var(--cc-purple);
    background: var(--cc-purple-soft);
}
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta .article-info :is(.category-name, .parent-category-name) :is(a, span) {
    color: inherit;
    font-size: inherit;
}
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-meta ul.tags.list-inline > li { margin: 0; }
body.cc-home-news.view-category .blog-item .cc-news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .65rem;
}
body.cc-home-news.view-category .cc-news-page .blog-item .cc-news-card-footer .readmore { margin: 0; flex: 0 0 auto; }
body.cc-home-news.view-category .blog-item .cc-news-card-date {
    margin-left: auto;
    color: var(--cc-text-muted);
    font-size: .7rem;
    font-weight: var(--cc-weight-body);
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .cc-news-card-date { color: var(--cc-on-photo-muted); }
@media (max-width: 479.98px) {
    body.cc-home-news.view-category .blog-item .cc-news-card-footer { gap: .4rem; }
    body.cc-home-news.view-category .blog-item .cc-news-card-date { font-size: .65rem; }
    body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .cc-news-card-footer .readmore .btn { min-height: 2.2rem; padding: .45rem .65rem; font-size: .75rem; gap: .3rem; }
}

/* First page only: strong photography, a neutral panel and one news badge. */
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child {
    background: #161412;
    border-radius: var(--cc-radius-lg);
    box-shadow: 0 3px 8px rgba(22, 20, 18, .04), 0 12px 28px rgba(22, 20, 18, .08);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child::before {
    color: #fff;
    background: #E30613;
    border-radius: var(--cc-radius-sm);
    box-shadow: none;
    font-weight: var(--cc-weight-title);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .item-content {
    background: #161412;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .page-header :is(h1, h2, a) {
    color: var(--cc-on-photo);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .item-content > p:not(.readmore),
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .cc-news-teaser > *,
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .article-info {
    color: var(--cc-on-photo-muted) !important;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .article-info :is(.category-name, .category-name a) {
    color: #161412;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .article-info .category-name {
    color: #161412;
    background: #fff;
    border-color: #fff;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .item-image img { filter: none; }
body.cc-home-news.view-category .blog-item .readmore .btn {
    color: var(--cc-text-heading);
    font-weight: var(--cc-weight-title);
    border-radius: var(--cc-radius-button);
    letter-spacing: 0;
    box-shadow: none;
}
body.cc-home-news.view-category .blog-item .readmore .btn:is(:hover, :focus-visible) {
    color: var(--cc-news-text);
    text-decoration-color: currentColor;
    transform: none;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:not(:first-child) .readmore .btn,
body.cc-home-news.view-category .cc-news-page--archive .blog-item .readmore .btn {
    color: var(--cc-text-heading);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:not(:first-child) .readmore .btn:is(:hover, :focus-visible),
body.cc-home-news.view-category .cc-news-page--archive .blog-item .readmore .btn:is(:hover, :focus-visible) {
    color: var(--cc-news-text);
    text-decoration-color: currentColor;
    transform: none;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .readmore .btn {
    color: var(--cc-text-heading);
    background: var(--cc-white);
    border-color: var(--cc-white);
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child .readmore .btn:is(:hover, :focus-visible) {
    color: var(--cc-text-heading);
    background: var(--cc-background-muted);
    border-color: var(--cc-background-muted);
}

/* Secondary navigation inside the same component, not a competing header. */
body.cc-home-news.view-category .cc-news-explore {
    display: grid;
    grid-template-columns: minmax(14rem,.36fr) minmax(0,1fr);
    align-items: center;
    gap: 1rem 2rem;
    width: 100%;
    padding: 1.125rem 0 0;
    border-top: 1px solid #E7E7E5;
}
body.cc-home-news.view-category .cc-news-explore__label {
    color: #625F5B;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.5;
}
body.cc-home-news.view-category .cc-news-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
}
body.cc-home-news.view-category .cc-news-topics a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.625rem;
    padding: .625rem .875rem;
    border: 1px solid #CDD2D3;
    border-radius: 12px;
    color: var(--cc-black);
    background: #fff;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
body.cc-home-news.view-category .cc-news-topics a:is(:hover,:focus-visible) { color: #161412; background: #F7F7F6; border-color: #0D7995; }
body.cc-home-news.view-category .cc-news-topics .is-active,
body.cc-home-news.view-category .cc-news-topics .is-active:is(:hover,:focus-visible) { color: #fff; background: #161412; border-color: #161412; }
body.cc-home-news.view-category .cc-news-topics a.cc-news-topics__all { color: #161412; background: #fff; border-color: #CDD2D3; }
body.cc-home-news.view-category .cc-news-topics a.cc-news-topics__all.is-active { color: #fff; background: #161412; border-color: #161412; }
body.cc-home-news.view-category .cc-news-topics a.cc-news-topics__dossier { color: #161412; background: #fff; border-color: #CDD2D3; }
body.cc-home-news.view-category .cc-news-topics a.cc-news-topics__dossier:is(:hover,:focus-visible) { color: #161412; background: #F7F7F6; border-color: #0D7995; }
@media (max-width: 991.98px) {
    body.cc-home-news.view-category .cc-news-explore { grid-template-columns: minmax(0,1fr); gap: 1rem; }
    body.cc-home-news.view-category .cc-news-tools .cc-news-search { grid-template-columns: minmax(0,1fr); }
    body.cc-home-news.view-category .cc-news-search .cc-news-search__active { grid-column: 1; }
}
@media (max-width: 1199px) {
    body.cc-home-news.view-category .cc-news-toolbar { flex-direction: column; align-items: stretch; gap: .9rem; }
    body.cc-home-news.view-category .cc-news-tools { flex: none; width: 100%; max-width: none; }
    body.cc-home-news.view-category .cc-news-topics { flex: none; width: 100%; }
}
@media (max-width: 767.98px) {
    body.cc-home-news.view-category .cc-news-explore { padding: 1rem 0 0; gap: .75rem; }
    body.cc-home-news.view-category .cc-news-search__input { font-size: 1rem; }
    body.cc-home-news.view-category .cc-news-search__submit { padding: .35rem .75rem; font-size: .75rem; }
}

body.cc-home-news.view-category .pagination .page-link {
    color: var(--cc-text-heading);
    background: var(--cc-white);
    border-color: var(--cc-border);
    /* The legacy Joomla pagination rule also uses !important. */
    border-radius: var(--cc-radius-button) !important;
    font-weight: var(--cc-weight-nav);
}
body.cc-home-news.view-category .pagination :is(.active .page-link, .page-link:hover, .page-link:focus-visible) {
    color: var(--cc-white);
    background: var(--cc-news-text);
    border-color: var(--cc-news-text);
    box-shadow: none;
}
body.cc-home-news.view-category .pagination .disabled .page-link {
    color: var(--cc-text-muted);
    background: var(--cc-background-alt);
    border-color: var(--cc-border);
}
body.cc-home-news.view-category .cc-news-page :is(a, button):focus-visible {
    outline: 2px solid var(--cc-news-text);
    outline-offset: 3px;
    box-shadow: none;
}
body.cc-home-news.view-category .cc-news-page--first .blog-item:first-child a:focus-visible {
    outline-color: var(--cc-white);
}

/* The lead story keeps its dedicated full-width layout; secondary cards use a
   three-column grid on desktop and collapse at the requested breakpoints. */
body.cc-home-news.view-category .cc-news-page--first .blog-items:not(.items-leading),
body.cc-home-news.view-category .cc-news-page--archive .blog-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}

/* When Joomla has no separate lead wrapper, its first intro card is the
   existing featured article and must remain prominent. */
body.cc-home-news.view-category .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:first-child {
    grid-column: 1 / -1;
}

/* If Joomla does render a lead wrapper, the first intro card is secondary. */
body.cc-home-news.view-category .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item:first-child::before {
    display: none;
    content: none;
}

body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    color: #161412;
    background: #fff;
    border: 1px solid #E5E6E3;
    border-radius: var(--cc-radius-md);
    box-shadow: 0 4px 16px rgba(22, 20, 18, .05);
    transform: none;
}

body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
):is(:hover, :focus-within) {
    border-color: #D5D6D3;
    box-shadow: 0 4px 16px rgba(22, 20, 18, .06);
    transform: none;
}

body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .item-image {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    filter: none;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .item-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem 1.1rem 1.05rem;
    color: #161412;
    background: #fff;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .page-header h2 {
    margin: 0 0 .55rem;
    color: #161412;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .page-header a,
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .page-header a:is(:hover, :focus-visible) {
    color: #161412;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .cc-news-card-meta {
    gap: .35rem;
    margin: 0 0 .7rem;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .cc-news-card-meta .article-info :is(.category-name, .parent-category-name) {
    color: #161412;
    background: #F3F4F2;
    border-color: #E5E6E3;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .cc-news-card-meta .tags a.btn {
    color: #161412;
    background: #fff;
    border-color: #E5E6E3;
    font-weight: 500;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .cc-news-card-date {
    color: #625F5B;
}
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .cc-news-card-footer .readmore .btn,
body.cc-home-news.view-category :is(
    .cc-news-page--first:not(:has(.items-leading)) .blog-items:not(.items-leading) > .blog-item:not(:first-child),
    .cc-news-page--first:has(.items-leading) .blog-items:not(.items-leading) > .blog-item,
    .cc-news-page--archive .blog-items > .blog-item
) .cc-news-card-footer .readmore .btn:is(:hover, :focus-visible) {
    color: #161412;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    body.cc-home-news.view-category .cc-news-page--first .blog-items:not(.items-leading),
    body.cc-home-news.view-category .cc-news-page--archive .blog-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    body.cc-home-news.view-category .cc-news-page--first .blog-items:not(.items-leading),
    body.cc-home-news.view-category .cc-news-page--archive .blog-items {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}
