/* ==========================================================================
   Market news (views/news). Page-specific bits only: type, cards, tables,
   chips and link grids come from lcd.css, seo.css and search.css.
   ========================================================================== */

.news-container {
    max-width: 1120px;
}

/* Article header ------------------------------------------------------------ */

.news-head {
    padding-block: clamp(20px, 2vw + 10px, 36px) clamp(20px, 2vw + 8px, 32px);
}

.news-head .seo-breadcrumbs {
    margin-bottom: clamp(16px, 1.5vw + 8px, 28px);
}

/* A long headline as the last crumb stays on one line */
.news-head .breadcrumbs li:last-child {
    min-width: 0;
    max-width: 32ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-head__label {
    margin-bottom: 14px;
}

.news-head__title {
    max-width: 22ch;
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
    line-height: 1.04;
    text-wrap: balance;
}

.news-head__dek {
    max-width: 60ch;
    margin-top: 18px;
    color: var(--text-2);
    text-wrap: pretty;
}

.news-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 22px;
    font-size: 0.875rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.news-byline a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.news-byline a:hover {
    text-decoration: underline;
}

/* Hero photo ---------------------------------------------------------------- */

.news-hero {
    margin-bottom: clamp(24px, 3vw, 40px);
}

.news-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.news-hero__caption {
    margin-top: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-3);
}

/* Body and sidebar ---------------------------------------------------------- */

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    padding-bottom: clamp(40px, 4vw, 72px);
}

.news-body {
    max-width: 70ch;
    font-size: 1.125rem;
    line-height: 1.75;
}

.news-body .news-section:first-child h2 {
    margin-top: 0;
}

.news-body .news-section > p + p {
    margin-top: 1.1em;
}

.news-body .news-section h2 {
    font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

/* Cards inside the article column: two across, never the page's four */
.news-body .news-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
    margin-block: 1.6em;
    font-size: 1rem;
    line-height: 1.5;
}

.news-body .news-cards a {
    text-decoration: none;
}

/* A reported story's sources, under the body */
.news-sources {
    margin-top: 2.4em;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.news-sources h2 {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
}

.news-sources__list {
    margin: 0;
    padding-left: 1.3em;
    display: grid;
    gap: 6px;
}

.news-sources__list a {
    color: var(--text);
}

.news-sources__by {
    color: var(--text-3);
}

.news-sources__by::before {
    content: "· ";
}

.news-method {
    margin-top: 2.4em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
    color: var(--text-3);
}

.news-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 18px;
    font-size: 0.9375rem;
}

.news-aside__block {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.news-aside__title {
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.news-aside ol,
.news-aside ul {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.news-toc a {
    color: var(--text-2);
    text-decoration: none;
}

.news-toc a:hover {
    color: var(--text);
    text-decoration: underline;
}

.news-cta p:not(.news-aside__title) {
    margin-bottom: 12px;
    color: var(--text-2);
}

/* Charts and tables --------------------------------------------------------- */

.news-figure {
    margin-block: 1.8em;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.news-figure__title {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text);
}

.news-figure__note {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-3);
}

.news-figure__data {
    margin-top: 12px;
}

.news-figure__data summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-2);
}

.news-figure__data .table-wrap {
    margin-top: 10px;
}

.news-figure .data-table {
    width: 100%;
    font-size: 0.875rem;
}

.news-figure .data-table a {
    text-decoration: none;
}

/* The article column is narrow: column headings wrap rather than push the last column out of view. */
.news-figure .data-table thead th {
    white-space: normal;
    vertical-align: bottom;
}

.news-figure .data-table th,
.news-figure .data-table td {
    padding: 10px 12px;
}

.news-chart__svg {
    display: block;
    width: 100%;
    height: auto;
}

.news-chart__grid {
    stroke: var(--line);
    stroke-width: 1;
}

.news-chart__axis {
    fill: var(--text-3);
    font-size: 12px;
    font-family: var(--font-sans);
}

/* The chart scales to the column (640 units wide), so on phones its labels need bigger units. */
@media (max-width: 600px) {
    .news-chart__axis {
        font-size: 20px;
    }

    .news-chart__line {
        stroke-width: 4;
    }
}

.news-chart__line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.news-chart__area {
    fill: rgba(var(--brand-rgb), 0.08);
    stroke: none;
}

.news-chart__dot {
    fill: var(--brand);
    stroke: var(--surface);
    stroke-width: 2;
}

/* More news ----------------------------------------------------------------- */

.news-more__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 20px;
}

.news-more__hubs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-strong);
    font-variant-numeric: tabular-nums;
}

.news-card__label time {
    color: var(--text-3);
    font-weight: 600;
}

/* Hubs ---------------------------------------------------------------------- */

.news-hubhero__lede {
    max-width: 62ch;
}

.news-hubhero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 18px;
}

.news-hubgrid__lead,
.news-hubgrid__list {
    list-style: none;
    padding: 0;
}

.news-hubgrid__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 20px;
    margin-top: 24px;
}

.news-hubcard__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

.news-hubcard__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-2);
}

.news-hubcard__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 22px;
}

.news-hubcard__title {
    color: var(--text);
    text-wrap: balance;
}

.news-hubcard__dek {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.news-hubcard--lead .news-hubcard__link {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
}

.news-hubcard--lead .news-hubcard__media img {
    aspect-ratio: 4 / 3;
    height: 100%;
}

.news-hubcard--lead .news-hubcard__copy {
    padding: clamp(20px, 3vw, 40px);
}

.news-hubcard--lead .news-hubcard__dek {
    font-size: 1.0625rem;
}

.news-pages {
    margin-top: 32px;
}

.news-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
    padding: 0;
}

.news-empty {
    max-width: 62ch;
}

.news-empty p {
    margin-top: 8px;
}

.news-about {
    max-width: 70ch;
}

@media (max-width: 960px) {
    .news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-aside {
        position: static;
    }

    .news-toc {
        display: none;
    }

    .news-hubcard--lead .news-hubcard__link {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-hubcard--lead .news-hubcard__media img {
        aspect-ratio: 16 / 9;
    }
}

/* The hub hero already ends in generous padding: start the stories right under it. */
.section.news-hubgrid {
    padding-top: 0;
}
