/*
 * Tech Embed Newsroom 2.0.1
 * Material newsroom upgrade. Loaded after the legacy stylesheet so the
 * package remains rollback-friendly and existing content stays untouched.
 */

:root {
    --te-shell: 1280px;
    --te-display: clamp(2.35rem, 4.5vw, 4.75rem);
    --te-section-space: clamp(58px, 7vw, 96px);
}

body {
    background: #fff;
}

.section {
    padding-block: var(--te-section-space);
}

.site-utility__inner {
    min-height: 34px;
}

.site-masthead__inner {
    min-height: 82px;
}

.site-branding__logo {
    width: 205px;
}

.home-lead {
    padding: 34px 0 44px;
    background:
        radial-gradient(circle at 85% 0%, rgba(25, 110, 235, .08), transparent 27%),
        linear-gradient(180deg, #f5f8fd, #fff 88%);
}

.home-lead__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr);
    grid-template-areas:
        "lead secondary"
        "updates updates";
    gap: 22px;
}

.lead-story {
    grid-area: lead;
    min-height: 520px;
    border-radius: 20px;
}

.lead-story__content {
    padding: clamp(28px, 4vw, 46px);
}

.lead-story__content h1 {
    max-width: 760px;
    margin-bottom: 15px;
    font-size: clamp(2.35rem, 4.25vw, 4.25rem);
    line-height: .98;
    text-wrap: balance;
}

.lead-story__content > p {
    max-width: 670px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.62;
}

.home-lead__secondary {
    grid-area: secondary;
    gap: 18px;
}

.story-card--overlay {
    min-height: 251px;
    border-radius: 18px;
}

.story-card--overlay .story-card__body {
    padding: 22px 24px;
}

.story-card--overlay .story-card__title {
    max-width: 420px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.headline-rail {
    grid-area: updates;
    display: grid;
    grid-template-columns: minmax(150px, .7fr) repeat(3, minmax(0, 1fr)) auto;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(7, 22, 46, .06);
}

.headline-rail .section-heading {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 22px;
    border-right: 1px solid var(--te-line);
    background: #f7faff;
}

.headline-rail .section-heading h2 {
    font-size: 1.28rem;
}

.headline-rail .story-list-item {
    display: block;
    min-width: 0;
    padding: 20px 22px;
    border-right: 1px solid var(--te-line);
    border-bottom: 0;
}

.headline-rail .story-list-item__number {
    display: none;
}

.headline-rail .story-list-item h3 {
    margin-top: 5px;
    font-size: .96rem;
    line-height: 1.35;
}

.headline-rail > .text-link {
    display: flex;
    align-items: center;
    padding: 20px;
    white-space: nowrap;
}

.story-image--placeholder {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%),
        radial-gradient(circle at 75% 20%, rgba(48, 133, 255, .75), transparent 24%),
        linear-gradient(140deg, #05142d 0%, #0a2c61 72%, #1557b8 100%);
}

.story-image--placeholder::before {
    position: absolute;
    right: -12%;
    bottom: -42%;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.story-image--placeholder img {
    width: 18%;
    min-width: 54px;
    opacity: .82;
}

.story-image__label {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    color: rgba(255, 255, 255, .88);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-heading {
    align-items: end;
    margin-bottom: clamp(28px, 4vw, 46px);
}

.section-heading h2 {
    max-width: 810px;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.03;
    text-wrap: balance;
}

.context-section {
    border-top: 1px solid #edf1f7;
}

.context-grid--editorial {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .72fr) minmax(250px, .72fr);
    gap: 28px;
}

.latest-section .story-grid--four {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}

.latest-section .story-card {
    grid-column: span 3;
}

.latest-section .story-card:first-child {
    grid-column: span 6;
    grid-row: span 2;
}

.latest-section .story-card:first-child .story-image {
    aspect-ratio: 16 / 8.7;
}

.latest-section .story-card:first-child .story-card__title {
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
}

.latest-section .story-grid--count-4 .story-card:last-child {
    grid-column: span 6;
}

.latest-section .story-grid--count-4 .story-card:last-child .story-image {
    aspect-ratio: 16 / 5.5;
}

.dark-feature {
    position: relative;
    padding-block: clamp(68px, 8vw, 110px);
}

.dark-feature::after {
    position: absolute;
    top: 0;
    right: 8%;
    width: 1px;
    height: 100%;
    background: linear-gradient(transparent, rgba(255, 255, 255, .2), transparent);
    content: "";
}

.desk-section {
    border-top: 1px solid #e6ecf4;
    padding-block: clamp(42px, 4.2vw, 68px);
}

.desk-section:nth-of-type(even) {
    background: #fff;
}

.desk-section--rhythm-1 {
    background: #f7f9fc !important;
}

.desk-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
}

.desk-editorial-grid.story-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: clamp(28px, 4vw, 54px);
    align-items: stretch;
}

.desk-editorial-grid.story-grid--count-2 > * {
    order: initial;
}

.desk-editorial-grid.story-grid--count-2 .story-card--standard {
    grid-template-columns: minmax(180px, .82fr) minmax(0, 1.18fr);
    height: 100%;
    gap: 22px;
    align-items: start;
}

.desk-editorial-grid.story-grid--count-2 .story-card__media,
.desk-editorial-grid.story-grid--count-2 .story-image {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
}

.desk-editorial-grid.story-grid--count-2 .story-card__title {
    font-size: clamp(1.22rem, 1.75vw, 1.72rem);
}

.feature-split--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(28px, 4vw, 52px);
}

.feature-split--balanced > div,
.feature-split--balanced .story-card {
    height: 100%;
}

.feature-split--balanced .story-card--feature-dark .story-image {
    aspect-ratio: 16 / 8.5;
}

.feature-split--balanced .story-card--feature-dark .story-card__title {
    font-size: clamp(1.55rem, 2.65vw, 2.7rem);
}

.context-grid--editorial .story-card--large {
    align-self: stretch;
    height: 100%;
}

.context-grid--editorial .story-card--large .story-card__media,
.context-grid--editorial .story-card--large .story-image {
    min-height: 330px;
}

.desk-section--rhythm-1 .desk-editorial-grid > :first-child {
    order: 2;
}

.desk-section--rhythm-1 .desk-editorial-grid > :last-child {
    order: 1;
}

.desk-editorial-grid .story-card--standard {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(250px, 1fr);
    gap: 28px;
    align-items: center;
}

.desk-editorial-grid .story-card--standard .story-card__body {
    padding: 0;
}

.desk-editorial-grid .story-card--standard .story-card__title {
    font-size: clamp(1.4rem, 2.5vw, 2.25rem);
}

.desk-editorial-grid .story-card--horizontal {
    padding: 22px 0;
    border-top: 3px solid var(--te-blue);
    border-bottom: 1px solid var(--te-line);
}

.topic-hubs-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(244, 248, 254, .96)),
        radial-gradient(circle at 90% 10%, rgba(25, 110, 235, .18), transparent 30%);
}

.topic-hub-card {
    border-radius: 14px;
    box-shadow: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topic-hub-card:hover {
    transform: translateY(-3px);
    border-color: #a9c4ee;
    box-shadow: 0 18px 40px rgba(7, 22, 46, .08);
}

.newsletter-panel {
    min-height: 290px;
    border-radius: 20px;
    background:
        linear-gradient(100deg, rgba(1, 10, 25, .52), rgba(1, 10, 25, .05)),
        radial-gradient(circle at 83% 12%, rgba(255, 255, 255, .2), transparent 22%),
        linear-gradient(135deg, #0756c5, #1675f4);
}

.newsletter-panel h2 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
}

.newsletter-panel p {
    max-width: 760px;
}

.te-newsletter-form-wrap { min-width: min(100%, 390px); }
.te-newsletter-form { display: flex; gap: 8px; }
.te-newsletter-form input[type="email"] { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.38); border-radius: 7px; padding: 12px 14px; background: #fff; color: #07162d; }
.te-newsletter-form button { border: 0; border-radius: 7px; padding: 12px 15px; background: #fff; color: #07387d; font-weight: 800; cursor: pointer; }
.te-newsletter-form-wrap small { display: block; margin-top: 8px; color: rgba(255,255,255,.78); }
.te-newsletter-notice { margin: 0 0 8px; color: #fff; font-weight: 700; }
.te-newsletter-notice--error { color: #ffe4e4; }
.te-newsletter-form .te-honeypot { position: absolute !important; left: -9999px !important; }
.most-read-section { background: #fff; }
.most-read-grid .story-card { height: 100%; }

@media (max-width: 700px) {
    .te-newsletter-form { flex-direction: column; }
    .te-newsletter-form button { width: 100%; }
}

.article-header {
    padding: clamp(38px, 5vw, 68px) 0 30px;
    background:
        radial-gradient(circle at 88% 5%, rgba(25, 110, 235, .09), transparent 24%),
        linear-gradient(180deg, #f5f8fd, #fff);
}

.article-header__inner {
    max-width: 1040px;
}

.article-header h1 {
    max-width: 980px;
    margin: 14px 0 20px;
    font-size: clamp(2.65rem, 5.15vw, 4.8rem);
    line-height: .99;
    text-wrap: balance;
}

.article-dek {
    max-width: 830px;
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.article-byline {
    margin-top: 24px;
}

.ten-author-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    width: var(--avatar-size, 52px);
    height: var(--avatar-size, 52px);
    place-items: center;
    overflow: hidden;
    border: 2px solid #d7e3f5;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.ten-author-avatar--initials {
    color: #fff;
    border-color: rgba(25, 110, 235, .18);
    background: linear-gradient(145deg, #061731, #1767d8);
    font-size: calc(var(--avatar-size, 52px) * .31);
    font-weight: 900;
    letter-spacing: .04em;
}

.article-trust-bar {
    gap: 9px 18px;
    margin-top: 20px;
    padding: 13px 15px;
    border-color: #dce6f4;
    color: #46566d;
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 22, 46, .05);
}

.article-trust-bar strong {
    color: #14233a;
}

.article-trust-bar a {
    color: var(--te-blue-dark);
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.article-share > span {
    margin-right: 3px;
    color: #53647a;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-share a,
.article-share button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #d5e0ef;
    border-radius: 999px;
    color: #19324f;
    background: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 780;
    line-height: 1;
    cursor: pointer;
}

.article-share a:hover,
.article-share button:hover,
.article-share a:focus-visible,
.article-share button:focus-visible {
    border-color: var(--te-blue);
    color: var(--te-blue-dark);
}

.article-freshness-notice {
    max-width: 1040px;
    margin: 24px auto 0;
    padding: 18px 20px;
    border: 1px solid #f1cf82;
    border-left: 5px solid #d58a00;
    border-radius: 12px;
    color: #5d410d;
    background: #fff9e8;
}

.article-freshness-notice p {
    margin: 5px 0 0;
    font-size: .9rem;
    line-height: 1.55;
}

.article-hero {
    margin-top: 8px;
}

.article-hero img {
    max-height: 690px;
    border-radius: 18px;
}

.article-layout {
    grid-template-columns: minmax(0, 740px) minmax(250px, 290px);
    gap: clamp(44px, 7vw, 88px);
    padding-top: 48px;
}

.article-content {
    color: #1e2b3b;
    font-size: 1.12rem;
    line-height: 1.86;
}

.article-content > p:first-of-type {
    color: #26384e;
    font-size: 1.2rem;
    line-height: 1.75;
}

.article-content h2 {
    margin-top: 2.35em;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.rail-card {
    border-top: 4px solid var(--te-blue);
    box-shadow: 0 16px 42px rgba(7, 22, 46, .07);
}

.author-box {
    border-radius: 16px;
    background: #f6f9fd;
}

.site-footer__main {
    padding-top: 54px;
}

@media (max-width: 1080px) {
    .headline-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .headline-rail .section-heading,
    .headline-rail > .text-link {
        grid-column: 1 / -1;
    }

    .headline-rail .section-heading {
        border-right: 0;
        border-bottom: 1px solid var(--te-line);
    }

    .headline-rail > .text-link {
        border-top: 1px solid var(--te-line);
    }

    .latest-section .story-card,
    .latest-section .story-card:first-child {
        grid-column: span 6;
        grid-row: auto;
    }

    .desk-editorial-grid .story-card--standard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 920px) {
    .home-lead__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "lead"
            "secondary"
            "updates";
    }

    .lead-story {
        min-height: 520px;
    }

    .home-lead__secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

.desk-editorial-grid {
        grid-template-columns: 1fr;
    }

    .desk-section--rhythm-1 .desk-editorial-grid > * {
        order: initial;
    }

    .article-layout {
        grid-template-columns: minmax(0, 740px);
    }
}

.desk-editorial-grid.story-grid--count-1 {
    grid-template-columns: 1fr;
}

.desk-editorial-grid.story-grid--count-1 .story-card--standard {
    max-width: 980px;
}

@media (max-width: 680px) {
    :root {
        --te-section-space: 52px;
    }

    .feature-split--balanced,
    .desk-editorial-grid.story-grid--count-2 {
        grid-template-columns: 1fr;
    }

    .desk-editorial-grid.story-grid--count-2 .story-card--standard {
        grid-template-columns: 108px 1fr;
        gap: 14px;
    }

    .desk-editorial-grid.story-grid--count-2 .story-card__media,
    .desk-editorial-grid.story-grid--count-2 .story-image {
        min-height: 120px;
    }

    .site-masthead__inner {
        min-height: 70px;
    }

    .site-branding__logo {
        width: 150px;
    }

    .home-lead {
        padding: 18px 0 30px;
    }

    .lead-story {
        min-height: 470px;
        border-radius: 16px;
    }

    .lead-story__content h1 {
        font-size: clamp(2.15rem, 10.8vw, 3.35rem);
    }

    .lead-story__content > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .home-lead__secondary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .story-card--overlay {
        min-height: 235px;
    }

    .headline-rail {
        display: block;
    }

    .headline-rail .story-list-item {
        border-right: 0;
        border-bottom: 1px solid var(--te-line);
    }

    .latest-section .story-grid--four {
        display: grid;
        grid-template-columns: 1fr;
    }

    .latest-section .story-card,
    .latest-section .story-card:first-child {
        grid-column: auto;
    }

    .context-grid--editorial {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .desk-editorial-grid .story-card--horizontal {
        grid-template-columns: 108px 1fr;
        gap: 14px;
    }

    .newsletter-panel {
        min-height: 0;
        padding: 30px 24px;
    }

    .article-header {
        padding-top: 30px;
    }

    .article-header h1 {
        font-size: clamp(2.35rem, 11vw, 3.65rem);
        line-height: 1.01;
    }

    .article-trust-bar {
        gap: 10px;
    }

    .article-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

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