/* =========================================
   NEWSROOM — institutional editorial styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
    --news-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --news-max: 1200px;
    --news-read: 45rem;
}

.newsroom {
    max-width: var(--news-max);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) 1.5rem 6rem;
    color: var(--color-text-main);
}

.newsroom a:focus-visible,
.newsroom button:focus-visible,
.newsroom input:focus-visible,
.newsroom select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Pages without a dark hero (e.g. article page): keep the header readable at
   the top of the page instead of the white-on-transparent style used over heroes. */
body.page-no-hero .site-header {
    background-color: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

body.page-no-hero .site-header:not(.scrolled) .navLink,
body.page-no-hero .site-header:not(.scrolled) .oyState,
body.page-no-hero .site-header:not(.scrolled) .housing {
    color: var(--color-text-main);
}

body.page-no-hero .site-header:not(.scrolled) .searchBtnDesktop,
body.page-no-hero .site-header:not(.scrolled) .themeToggleBtnDesktop,
body.page-no-hero .site-header:not(.scrolled) .themeToggleBtnMobile,
body.page-no-hero .site-header:not(.scrolled) .searchBtnMobile {
    color: var(--color-text-main);
    background: var(--glass);
    border-color: var(--color-border);
}

body.page-no-hero .site-header:not(.scrolled) .logoText .oyState {
    color: var(--color-secondary);
}

body.page-no-hero .site-header:not(.scrolled) .logoText .housing {
    color: var(--color-primary);
}

body.page-no-hero .site-header:not(.scrolled) .navLink::after {
    background: var(--color-primary);
}

body.page-no-hero .site-header:not(.scrolled) .navLink:hover,
body.page-no-hero .site-header:not(.scrolled) .navLink.active {
    color: var(--color-primary);
}

/* -----------------------------------------
   Filter bar
   ----------------------------------------- */
.news-filterbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.75rem;
}

.news-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text-mute);
    border-bottom: 1px solid var(--color-border);
    padding: 0.4rem 0.1rem;
    transition: border-color 0.2s ease;
}

.news-search:focus-within {
    border-color: var(--color-primary);
}

.news-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-main);
    font: inherit;
    font-size: 0.95rem;
    padding: 0.2rem 0;
}

.news-search input::placeholder {
    color: var(--color-text-mute);
    opacity: 0.7;
}

.news-cat-select select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
        no-repeat right 0 center;
    border: none;
    border-bottom: 1px solid var(--color-border);
    outline: none;
    color: var(--color-text-main);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1.5rem 0.4rem 0.1rem;
    cursor: pointer;
}

.news-filterbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-filterbtn:hover {
    background: var(--color-primary-dark);
}

.news-filterclear {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-mute);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.news-filterclear:hover {
    color: var(--color-primary);
}

.news-results-note {
    font-size: 0.85rem;
    color: var(--color-text-mute);
    margin: -1.5rem 0 2.75rem;
}

@media (max-width: 720px) {
    .news-filterbar {
        flex-wrap: wrap;
        gap: 1.1rem 1.25rem;
    }
    .news-search {
        flex-basis: 100%;
    }
}

/* -----------------------------------------
   Meta (category + date)
   ----------------------------------------- */
.news-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.news-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.news-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-mute);
    opacity: 0.6;
}

.news-date {
    font-size: 0.8rem;
    color: var(--color-text-mute);
}

/* -----------------------------------------
   Shared link style
   ----------------------------------------- */
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease, gap 0.2s ease;
}

.news-link:hover {
    border-bottom-color: var(--color-primary);
    gap: 0.8rem;
}

/* -----------------------------------------
   Featured story
   ----------------------------------------- */
.featured {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.25rem, 5vw, 4.5rem);
    align-items: center;
    padding: 0 0 clamp(3.25rem, 6vw, 5rem);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: clamp(3.25rem, 6vw, 5rem);
}

.featured__title {
    font-family: var(--news-serif);
    font-weight: 600;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.16;
    letter-spacing: -0.01em;
    margin: 0 0 1.1rem;
}

.featured__title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.featured__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.featured__excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-mute);
    margin: 0 0 1.75rem;
}

.featured__media {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}

.featured.featured--noimage {
    grid-template-columns: 1fr;
    max-width: 65ch;
}

.featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .featured {
        grid-template-columns: 1fr;
    }
    .featured__media {
        aspect-ratio: 16 / 10;
    }
}

/* -----------------------------------------
   Latest / related section header
   ----------------------------------------- */
.latest {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.latest__head {
    display: flex;
    align-items: center;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.latest__title {
    font-family: var(--news-serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    color: var(--color-text-main);
    white-space: nowrap;
}

.latest__head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
    margin-left: 1.5rem;
}

/* -----------------------------------------
   News grid + cards
   ----------------------------------------- */
.latest__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 3.5vw, 3rem);
}

.news-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    margin-bottom: 1.5rem;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-card__media:hover img {
    transform: scale(1.03);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__title {
    font-family: var(--news-serif);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 0.85rem;
}

.news-card__title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.news-card__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-mute);
    margin: 0 0 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-link {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .latest__grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------
   Empty state
   ----------------------------------------- */
.news-empty {
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    margin-bottom: 3rem;
}

.news-empty h2 {
    font-family: var(--news-serif);
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.news-empty p {
    color: var(--color-text-mute);
    margin-bottom: 1.5rem;
}

/* -----------------------------------------
   Pagination
   ----------------------------------------- */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.news-pagination__nums {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.35rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-mute);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.news-pagination__num:hover {
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.news-pagination__num.is-current {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.news-pagination__prev,
.news-pagination__next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-main);
    text-decoration: none;
}

.news-pagination__prev:hover,
.news-pagination__next:hover {
    color: var(--color-primary);
}

@media (max-width: 560px) {
    .news-pagination__prev span,
    .news-pagination__next span {
        display: none;
    }
    .news-pagination__prev,
    .news-pagination__next {
        width: 38px;
        height: 38px;
        justify-content: center;
        border: 1px solid var(--color-border);
        border-radius: 4px;
    }
}

/* =========================================
   ARTICLE PAGE
   ========================================= */

.newsroom--article {
    padding-top: clamp(3rem, 7vw, 5.5rem);
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-mute);
    max-width: var(--news-read);
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.article-breadcrumb a {
    color: var(--color-text-mute);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--color-primary);
}

.article-breadcrumb__sep {
    opacity: 0.5;
    font-size: 0.9rem;
}

.article-breadcrumb__current {
    color: var(--color-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 38ch;
}

/* Header */
.article-header {
    max-width: var(--news-read);
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.article-header .news-meta {
    margin-bottom: 1.25rem;
}

.article-title {
    font-family: var(--news-serif);
    font-weight: 600;
    font-size: clamp(2.25rem, 5vw, 3.55rem);
    line-height: 1.12;
    letter-spacing: -0.012em;
    color: var(--color-text-main);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

.article-standfirst {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-mute);
    margin: 0;
}

/* Hero */
.article-hero {
    max-width: var(--news-max);
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
    aspect-ratio: 21 / 9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 760px) {
    .article-hero {
        aspect-ratio: 16 / 10;
    }
}

/* Body */
.article-body {
    margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.article-content {
    max-width: var(--news-read);
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--color-text-main);
    white-space: pre-wrap;
}

.article-content > br {
    display: none;
}

.article-content p:empty {
    height: 1.2rem;
}

/* Press note */
.article-note {
    border-top: 1px solid var(--color-border);
    padding-top: 1.75rem;
    margin-top: 3.5rem;
}

.article-note__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.article-note__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-mute);
    margin: 0;
}

/* Related */
.related {
    max-width: var(--news-max);
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

/* Share */
.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: var(--news-max);
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.article-share__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-mute);
}

.article-share__links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.article-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-mute);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-share__link:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.article-share__link.is-copied {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Back */
.article-back {
    max-width: var(--news-max);
    margin: 0 auto;
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--color-border);
}

/* Typographic refinement for article body content */
.article-content {
    overflow-wrap: break-word;
}
