/* Hungarian GP newsroom refresh — 26 July 2026 */
.news-masthead {
    min-height: 390px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 44px;
    padding: 64px clamp(34px, 6vw, 96px) !important;
    text-align: left !important;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(6, 9, 16, 0.18) 0 58%, rgba(6, 9, 16, 0.66)),
        radial-gradient(circle at 74% 44%, rgba(0, 210, 190, 0.19), transparent 24rem),
        radial-gradient(circle at 18% 10%, rgba(255, 24, 59, 0.15), transparent 27rem),
        linear-gradient(125deg, #0a0e17 0%, #111827 48%, #071019 100%) !important;
}

.news-masthead::before {
    content: "R11" !important;
    inset: auto auto -0.26em 0.03em !important;
    top: auto !important;
    left: 0.03em !important;
    transform: none !important;
    font-size: clamp(10rem, 24vw, 24rem) !important;
    line-height: 0.8;
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
    opacity: 1 !important;
    z-index: -1;
}

.news-masthead::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.masthead-copy {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.masthead-kicker,
.section-overline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #acb8cc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.masthead-live-dot,
.status-pulse {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ff183b;
    box-shadow: 0 0 0 6px rgba(255, 24, 59, 0.13), 0 0 24px rgba(255, 24, 59, 0.7);
    animation: newsroom-pulse 2.2s ease-in-out infinite;
}

.news-masthead h1 {
    max-width: 800px;
    margin-top: 24px;
    font-size: clamp(2.8rem, 5.4vw, 5.8rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.07em !important;
    text-wrap: balance;
}

.news-masthead h1 em {
    display: block;
    margin-top: 0.12em;
    color: #ff3150;
    font-style: normal;
}

.news-masthead p {
    max-width: 700px !important;
    margin: 25px 0 0 !important;
    color: #b4c0d2;
    font-size: clamp(1rem, 1.45vw, 1.2rem) !important;
    line-height: 1.75;
    opacity: 1 !important;
}

.masthead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.masthead-tags > span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #dbe3f1;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
}

.masthead-signal {
    position: relative;
    width: min(28vw, 350px);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
}

.signal-orbit {
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.signal-orbit::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 49%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d2be;
    box-shadow: 0 0 18px #00d2be;
}

.orbit-one { animation: newsroom-spin 12s linear infinite; }
.orbit-two {
    inset: 22%;
    border-style: dashed;
    border-color: rgba(255, 49, 80, 0.38);
    animation: newsroom-spin 9s linear infinite reverse;
}
.orbit-two::before { background: #ff3150; box-shadow: 0 0 18px #ff3150; }

.signal-core {
    width: 47%;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(8, 13, 22, 0.68);
    box-shadow: inset 0 0 45px rgba(0, 210, 190, 0.08), 0 25px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
}

.signal-core span,
.signal-core small {
    color: #8190a7;
    font-size: clamp(0.48rem, 0.8vw, 0.7rem);
    font-weight: 800;
    letter-spacing: 0.18em;
}

.signal-core strong {
    color: #f8fbff;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.08em;
}

.signal-node {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px #fff;
}
.node-one { top: 18%; right: 18%; }
.node-two { bottom: 24%; left: 8%; }
.node-three { right: 4%; bottom: 34%; background: #ff3150; box-shadow: 0 0 14px #ff3150; }

.news-masthead + .container {
    max-width: 1400px !important;
    padding-top: clamp(42px, 5vw, 72px) !important;
}

.newsroom {
    margin-bottom: 20px;
}

.newsroom-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.newsroom-heading h2 {
    margin: 8px 0 5px;
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.08;
}

.newsroom-heading h2::before { display: none; }
.newsroom-heading p {
    max-width: 760px;
    color: #94a2b8;
    font-size: 0.98rem;
}

.newsroom-status {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    min-width: 210px;
    padding: 13px 16px;
    border: 1px solid rgba(0, 210, 190, 0.22);
    border-radius: 15px;
    background: rgba(0, 210, 190, 0.055);
}
.newsroom-status .status-pulse {
    background: #00d2be;
    box-shadow: 0 0 0 6px rgba(0, 210, 190, 0.1), 0 0 22px rgba(0, 210, 190, 0.55);
}
.newsroom-status strong {
    display: block;
    color: #e9fffc;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}
.newsroom-status small {
    display: block;
    margin-top: 2px;
    color: #74849b;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
}

.featured-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.65fr);
    gap: 18px;
}

.lead-story,
.race-focus-card,
.newsroom-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(22, 29, 42, 0.98), rgba(10, 14, 23, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.23);
}

.lead-story {
    min-height: 480px;
    display: grid;
    grid-template-columns: minmax(310px, 0.92fr) minmax(360px, 1.08fr);
    overflow: hidden;
    border-radius: 26px;
}

.lead-story::after,
.newsroom-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.05), transparent 27%);
}

.lead-story-visual {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background:
        radial-gradient(circle at 48% 48%, rgba(0, 210, 190, 0.35), transparent 15rem),
        linear-gradient(145deg, #0a706d 0%, #083335 55%, #081117 100%);
}

.lead-story-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 52%, rgba(4, 8, 13, 0.68)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 44px);
}

.story-number {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.story-watermark {
    position: absolute;
    top: 14%;
    left: -0.06em;
    color: rgba(255, 255, 255, 0.075);
    font-size: clamp(3.7rem, 6vw, 6.8rem);
    font-weight: 950;
    letter-spacing: -0.08em;
    transform: rotate(-90deg) translateX(-45%);
    transform-origin: left top;
}

.lead-driver {
    position: absolute;
    z-index: 2;
    right: -2%;
    bottom: 0;
    width: 95%;
    height: 94%;
    object-fit: cover;
    object-position: 50% 18%;
    filter: saturate(1.03) contrast(1.03);
}

.lead-team-logo {
    position: absolute;
    z-index: 4;
    right: 20px;
    top: 22px;
    width: 74px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.32));
}

.lead-stat {
    position: absolute;
    z-index: 4;
    left: 22px;
    bottom: 22px;
    display: flex;
    align-items: end;
    gap: 10px;
}
.lead-stat span {
    max-width: 75px;
    color: #9cc9c4;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.lead-stat strong {
    color: #fff;
    font-size: 2.7rem;
    line-height: 0.85;
}

.lead-story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 4vw, 58px);
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #75839a;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.story-category,
.news-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 210, 190, 0.11);
    color: #66eee2;
}
.news-badge {
    background: rgba(255, 24, 59, 0.14);
    color: #ff657d;
}

.lead-story-content h3 {
    margin: 22px 0 16px;
    color: #f9fbff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.09;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.lead-story-content p {
    color: #9facbf;
    font-size: 0.94rem;
    line-height: 1.78;
}

.story-link,
.race-focus-card > a,
.news-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    color: #eafefa;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.story-link {
    width: fit-content;
    min-width: 250px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 210, 190, 0.25);
    border-radius: 12px;
    background: rgba(0, 210, 190, 0.07);
}
.story-link b,
.race-focus-card > a b,
.news-source b {
    color: #00d2be;
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}
.story-link:hover b,
.race-focus-card > a:hover b,
.news-source:hover b { transform: translateX(4px); }

.race-focus-card {
    display: flex;
    flex-direction: column;
    min-height: 480px;
    padding: 23px;
    overflow: hidden;
    border-radius: 26px;
}
.race-focus-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 75% 15%, rgba(255, 204, 74, 0.1), transparent 14rem);
}
.race-focus-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8190a6;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}
.race-focus-top img { width: 28px; border-radius: 4px; }

.race-track-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: 145px;
    margin-top: 12px;
}
.race-track-stage img {
    width: 78%;
    height: 120px;
    object-fit: contain;
    filter: brightness(2.5) grayscale(1) drop-shadow(0 0 14px rgba(255, 255, 255, 0.17));
}
.race-track-stage span {
    position: absolute;
    right: 0;
    bottom: 4px;
    color: #66768e;
    font-size: 0.59rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}
.race-focus-card h3 {
    margin: 10px 0 13px;
    color: #f7f9fc;
    font-size: 1.25rem;
}

.race-podium-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}
.race-podium-mini > div {
    position: relative;
    min-width: 0;
    height: 76px;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}
.race-podium-mini img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    object-position: top;
}
.race-podium-mini b {
    position: absolute;
    top: 4px;
    left: 7px;
    z-index: 2;
    color: #ffcc4a;
    font-size: 0.78rem;
}
.race-podium-mini span {
    position: absolute;
    right: 5px;
    bottom: 3px;
    z-index: 2;
    padding: 1px 4px;
    border-radius: 5px;
    background: rgba(3, 6, 10, 0.7);
    color: #fff;
    font-size: 0.56rem;
    font-weight: 900;
}

.race-focus-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.race-focus-metrics > div {
    padding: 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
}
.race-focus-metrics span {
    display: block;
    color: #67758b;
    font-size: 0.52rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}
.race-focus-metrics strong {
    display: block;
    margin-top: 4px;
    color: #f4f7fb;
    font-size: 0.72rem;
}
.race-focus-card > a {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.news-stream-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 56px 0 18px;
}
.news-stream-heading > div > span {
    color: #ff3150;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}
.news-stream-heading h3 {
    margin-top: 4px;
    color: #f7f9fc;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}
.news-stream-heading p {
    color: #68778e;
    font-size: 0.75rem;
}

.newsroom-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.newsroom-card {
    min-width: 0;
    min-height: 455px;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px !important;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease !important;
}
.newsroom-card:hover {
    transform: translateY(-5px) !important;
    border-color: color-mix(in srgb, var(--story-accent) 40%, transparent) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), 0 0 0 1px color-mix(in srgb, var(--story-accent) 12%, transparent) !important;
}

.news-card-media {
    position: relative;
    height: 188px;
    flex: 0 0 auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 42%, color-mix(in srgb, var(--story-accent) 42%, transparent), transparent 45%),
        linear-gradient(140deg, color-mix(in srgb, var(--story-accent) 18%, #0c111b), #0a0e16 76%);
}
.news-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 50%, rgba(6, 9, 15, 0.65)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 34px);
}
.news-index {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}
.media-driver {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: -2px;
    width: 68%;
    height: 96%;
    object-fit: cover;
    object-position: center 17%;
}
.media-logo-stage {
    display: grid;
    place-items: center;
}
.media-team-logo {
    position: relative;
    z-index: 2;
    width: 48%;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}
.media-category {
    position: absolute;
    z-index: 4;
    left: 15px;
    bottom: 15px;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--story-accent) 35%, transparent);
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.7);
    color: color-mix(in srgb, var(--story-accent) 80%, white);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    backdrop-filter: blur(9px);
}

.news-card-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px 23px 20px;
}
.news-card-copy h4 {
    margin: 12px 0 10px;
    color: #f7f9fd;
    font-size: 1.08rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.news-card-copy p {
    color: #8f9db2;
    font-size: 0.84rem;
    line-height: 1.72;
}
.news-source {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #aeb9ca;
    font-size: 0.7rem;
}
.news-source b { color: var(--story-accent); }

@keyframes newsroom-spin { to { transform: rotate(360deg); } }
@keyframes newsroom-pulse {
    0%, 100% { opacity: 0.72; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1180px) {
    .news-masthead { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr); }
    .featured-news-layout { grid-template-columns: 1fr; }
    .race-focus-card {
        min-height: auto;
        display: grid;
        grid-template-columns: 0.8fr 1fr;
        column-gap: 24px;
    }
    .race-focus-top,
    .race-focus-card h3,
    .race-podium-mini,
    .race-focus-metrics,
    .race-focus-card > a { grid-column: 2; }
    .race-track-stage { grid-column: 1; grid-row: 1 / span 5; height: 100%; }
    .newsroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
    .news-masthead {
        min-height: 360px !important;
        padding: 74px 34px 54px !important;
    }
    .masthead-signal { width: min(33vw, 260px); }
}

@media (max-width: 720px) {
    .news-masthead {
        min-height: 390px !important;
        grid-template-columns: 1fr;
        padding: 82px 18px 44px !important;
    }
    .news-masthead h1 { font-size: clamp(2.5rem, 13vw, 4.2rem) !important; }
    .masthead-signal { display: none; }
    .masthead-tags { gap: 6px; }
    .masthead-tags > span { padding: 5px 8px; font-size: 0.58rem; }
    .news-masthead + .container { padding-top: 36px !important; }
    .newsroom-heading,
    .news-stream-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .newsroom-status { width: 100%; }
    .lead-story { grid-template-columns: 1fr; min-height: 0; }
    .lead-story-visual { min-height: 320px; }
    .lead-driver { width: min(92%, 380px); }
    .lead-story-content { padding: 27px 22px 30px; }
    .lead-story-content h3 { font-size: 1.9rem; }
    .story-link { width: 100%; min-width: 0; }
    .race-focus-card { display: flex; padding: 20px; }
    .race-track-stage { height: 145px; }
    .newsroom-grid { grid-template-columns: 1fr !important; }
    .newsroom-card { min-height: 430px; }
    .news-stream-heading { margin-top: 42px; }
}

@media (max-width: 420px) {
    .news-masthead h1 { font-size: 2.65rem !important; }
    .news-masthead p { font-size: 0.93rem !important; }
    .masthead-kicker { font-size: 0.61rem; }
    .newsroom-heading h2 { font-size: 2rem; }
    .lead-story-visual { min-height: 285px; }
    .lead-stat strong { font-size: 2.25rem; }
    .race-focus-metrics { grid-template-columns: 1fr; }
    .news-card-media { height: 175px; }
}

@media (prefers-reduced-motion: reduce) {
    .masthead-live-dot,
    .status-pulse,
    .signal-orbit { animation: none; }
    .newsroom-card,
    .story-link b,
    .race-focus-card > a b,
    .news-source b { transition: none !important; }
}
