/* =========================================================
   NEURODIVERGENT NEWS
   Page-specific styles; the main site styles load first.
   ========================================================= */

.nav-links a[aria-current="page"] {
    color: var(--orange);
}

.nav-links a[aria-current="page"]::after {
    width: 100%;
}

.news-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(84px, 11vw, 142px) 0 clamp(78px, 10vw, 126px);
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 91, 31, 0.3) 0 9%, transparent 9.3%),
        radial-gradient(circle at 91% 26%, rgba(76, 145, 198, 0.2) 0 15%, transparent 15.3%),
        linear-gradient(135deg, #061c31 0%, var(--navy) 58%, #0c3556 100%);
    color: #ffffff;
}

.news-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -90px;
    bottom: -160px;
    width: 390px;
    height: 390px;
    border: 58px solid var(--orange);
    border-radius: 50%;
    opacity: 0.92;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
}

.news-hero .eyebrow {
    margin-bottom: 22px;
    color: var(--orange-light);
}

.news-hero h1 {
    max-width: 980px;
    margin: 0 0 30px;
    color: #ffffff;
    font-size: clamp(54px, 8.2vw, 112px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.065em;
}

.news-hero h1 span {
    display: block;
    color: var(--orange);
}

.news-intro {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
}

.news-disclaimer {
    background: #fff3ed;
    border-top: 1px solid #ffd1bf;
    border-bottom: 1px solid #ffd1bf;
}

.news-disclaimer-inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 34px;
    padding-top: 28px;
    padding-bottom: 30px;
}

.disclaimer-label {
    margin: 4px 0 0;
    color: #a7350d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-disclaimer h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 20px;
}

.news-disclaimer div > p {
    max-width: 960px;
    margin: 0;
    color: #4d4b48;
    font-size: 15px;
    line-height: 1.65;
}

.news-feed {
    padding: clamp(76px, 9vw, 120px) 0 120px;
    background:
        linear-gradient(rgba(255, 253, 249, 0.92), rgba(255, 253, 249, 0.92)),
        repeating-linear-gradient(135deg, transparent 0 22px, rgba(6, 28, 49, 0.025) 22px 23px);
}

.news-layout {
    max-width: 1180px;
}

.news-feed-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 46px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--navy);
}

.section-label {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.news-feed-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.feed-order-note {
    flex: 0 0 auto;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(28px, 4vw, 42px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 6px solid var(--orange);
    border-radius: 0 0 var(--radius-medium) var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.news-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.news-date {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.news-type,
.evidence-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1;
    text-transform: uppercase;
}

.news-type {
    background: var(--navy);
    color: #ffffff;
}

.evidence-label {
    background: #fff0e9;
    color: #a7350d;
    border: 1px solid #ffd1bf;
}

.news-card h3 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.news-card p,
.discussion-list {
    color: #27394a;
    font-size: 17px;
    line-height: 1.7;
}

.news-card > p {
    margin: 0 0 24px;
}

.news-card .why-it-matters {
    padding: 18px 20px;
    background: #fff3ed;
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
    color: var(--navy);
}

.news-card .survey-context {
    color: var(--muted);
    font-size: 15px;
}

.discussion-list {
    display: grid;
    gap: 13px;
    margin: 0 0 24px;
    padding-left: 23px;
}

.discussion-list li::marker {
    color: var(--orange);
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.source-heading {
    width: 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.source-list a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #edf4fa;
    border: 1px solid #d5e3ef;
    border-radius: 10px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.publication-note {
    margin-top: 42px;
    padding: 28px 30px;
    background: #edf4fa;
    border-left: 5px solid var(--blue);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.publication-note h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 19px;
}

.publication-note p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 820px) {
    .news-disclaimer-inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-feed-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .news-hero {
        padding: 72px 0 76px;
    }

    .news-hero::before {
        right: -175px;
        bottom: -205px;
    }

    .news-hero h1 {
        font-size: clamp(48px, 15vw, 66px);
    }

    .news-card {
        padding: 26px 23px 28px;
        border-radius: 0 0 18px 18px;
    }

    .news-card p,
    .discussion-list {
        font-size: 16px;
    }

    .news-date {
        width: 100%;
        margin-left: 0;
    }

    .source-list {
        align-items: stretch;
        flex-direction: column;
    }

    .publication-note {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card {
        transition: none;
    }
}
