/* Build 0156 — News Runtime Modernization & Read-Time Security. */
.tg-news-section,
.tg-news-article-page .tg-article-section {
    background: #f8f8f6;
}

/* Build 0156 Completion Fix 1 — keep News archive density aligned with the
 * compact Files-family section rhythm instead of the older global 4–6rem
 * .tg-section spacing. This also closes the oversized gaps around ad units. */
.tg-news-section {
    padding-block: clamp(1.85rem, 3vw, 2.35rem);
}

.tg-news-hero-actions {
    margin-top: .7rem;
}

.tg-news-hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 650px);
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid rgba(45, 76, 101, .2);
    border-radius: .7rem;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 22px rgba(26, 38, 48, .05);
}

.tg-news-hero-search input {
    min-width: 0;
    height: 42px;
    padding: 0 .9rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #24323d;
    font: inherit;
}

.tg-news-hero-search input:focus {
    box-shadow: inset 0 0 0 2px rgba(61, 126, 173, .24);
}

.tg-news-hero-search button {
    min-height: 42px;
    padding: 0 1rem;
    border: 0;
    background: #286d9c;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.tg-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.tg-news-main,
.tg-news-sidebar {
    min-width: 0;
}

.tg-news-heading {
    align-items: end;
    margin-bottom: 1rem;
}

.tg-news-heading-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem .8rem;
    color: #73818b;
    font-size: .74rem;
}

.tg-news-heading-meta a {
    color: #2d6289 !important;
    font-weight: 800;
    text-decoration: none;
}

.tg-news-feature-card,
.tg-news-card,
.tg-news-side-card,
.tg-news-empty {
    border: 1px solid var(--tg007-line, #dbe2e7);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 36, 44, .045);
}

.tg-news-feature-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 1rem;
}

.tg-news-feature-icon,
.tg-news-card-icon {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 22%, rgba(78, 139, 181, .16), transparent 42%),
        linear-gradient(145deg, #eef4f7, #e4ebef);
    text-decoration: none;
}

.tg-news-feature-icon {
    min-height: 220px;
    border-right: 1px solid #dce4e9;
}

.tg-news-feature-icon img {
    width: 92px;
    height: 92px;
    padding: .7rem;
    border: 1px solid rgba(61, 105, 134, .13);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .88);
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(35, 53, 66, .06);
}

.tg-news-feature-copy {
    padding: 1.25rem 1.35rem 1.15rem;
}

.tg-news-feature-label {
    display: inline-flex;
    margin: .38rem 0 .42rem;
    padding: .22rem .46rem;
    border-radius: 999px;
    color: #2d6289;
    background: #edf5fa;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.tg-news-feature-copy h3,
.tg-news-card-body h3 {
    margin: 0;
    color: #26323b;
    font-weight: 840;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.tg-news-feature-copy h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.tg-news-feature-copy h3 a,
.tg-news-card-body h3 a {
    color: inherit !important;
    text-decoration: none;
}

.tg-news-feature-copy h3 a:hover,
.tg-news-card-body h3 a:hover {
    color: #286d9c !important;
}

.tg-news-feature-copy > p,
.tg-news-card-body > p {
    color: #5f6e78;
    line-height: 1.55;
}

.tg-news-feature-copy > p {
    margin: .7rem 0 .9rem;
    font-size: .87rem;
}

.tg-news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .7rem;
    color: #74828c;
    font-size: .69rem;
    font-weight: 760;
}

.tg-news-card-meta span:first-child {
    color: #507996;
}

.tg-news-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .8rem;
    color: #7a8790;
    font-size: .7rem;
}

.tg-news-card-footer a {
    margin-left: auto;
    color: #286d9c !important;
    font-weight: 850;
    text-decoration: none;
}

.tg-news-list {
    display: grid;
    gap: .75rem;
}

.tg-news-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tg-news-card:hover {
    border-color: #c7d3dc;
    box-shadow: 0 12px 28px rgba(28, 39, 48, .07);
    transform: translateY(-1px);
}

.tg-news-card-icon {
    min-height: 124px;
    border-right: 1px solid #dce4e9;
}

.tg-news-card-icon img {
    width: 56px;
    height: 56px;
    padding: .4rem;
    border-radius: .65rem;
    background: rgba(255, 255, 255, .86);
    object-fit: contain;
}

.tg-news-card-body {
    min-width: 0;
    padding: .85rem 1rem .8rem;
}

.tg-news-card-body h3 {
    margin-top: .24rem;
    font-size: 1rem;
}

.tg-news-card-body > p {
    margin: .46rem 0 .62rem;
    font-size: .78rem;
}

.tg-news-empty {
    padding: 1.35rem;
    color: #63717b;
}

.tg-news-empty h3 {
    margin: 0 0 .35rem;
    color: #28343d;
    font-size: 1.02rem;
}

.tg-news-empty p {
    margin: 0;
    font-size: .84rem;
}

.tg-news-empty.is-error {
    border-color: #e2c5c5;
    border-left: 3px solid #a24a4a;
    background: #fff7f7;
}

.tg-news-sidebar {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.tg-news-side-card {
    padding: 1rem;
}

.tg-news-side-heading {
    margin-bottom: .65rem;
}

.tg-news-side-heading h2,
.tg-news-side-card > h2 {
    margin: .2rem 0 0;
    color: #29343c;
    font-size: 1.02rem;
    font-weight: 830;
    letter-spacing: -.02em;
}

.tg-news-category-list {
    display: grid;
    gap: .35rem;
}

.tg-news-category-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    min-width: 0;
    padding: .55rem .6rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    color: #2e3941 !important;
    text-decoration: none;
}

.tg-news-category-link:hover {
    border-color: #d8e2e8;
    background: #f5f8fa;
}

.tg-news-category-link.is-active {
    border-color: #cadde9;
    background: #edf5fa;
}

.tg-news-category-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 38px;
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: .55rem;
    background: #fff;
}

.tg-news-category-icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tg-news-category-icon.is-all {
    color: #3c6d8e;
    background: #f4f8fa;
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.tg-news-category-link strong,
.tg-news-category-link small {
    display: block;
}

.tg-news-category-link strong {
    overflow: hidden;
    color: #31404a;
    font-size: .78rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-news-category-link small {
    margin-top: .1rem;
    color: #7c8992;
    font-size: .66rem;
}

.tg-news-side-card-accent {
    border-color: rgba(255, 255, 255, .08);
    color: #dbe5eb;
    background:
        radial-gradient(circle at 100% 0%, rgba(61, 112, 149, .25), transparent 12rem),
        linear-gradient(145deg, #2d3238, #20252a);
}

.tg-news-side-card-accent .tg-kicker {
    color: #9eadb9;
}

.tg-news-side-card-accent h2 {
    color: #fff;
}

.tg-news-side-card-accent p {
    margin: .55rem 0 .85rem;
    color: #b8c2ca;
    font-size: .8rem;
    line-height: 1.55;
}

.tg-news-side-card-accent .tg-text-link {
    color: #fff !important;
}

.tg-news-side-muted {
    margin: 0;
    color: #78858e;
    font-size: .79rem;
}

/* Article detail: retain the existing article primitives but tighten them to the
 * compact Files / Snippets / Screenshots family introduced in later builds. */
.tg-news-article-page .tg-article-section {
    padding-top: 2rem;
    padding-bottom: 2.6rem;
}

.tg-news-article-page .tg-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
}

.tg-news-article-page .tg-article-card,
.tg-news-article-page .tg-article-side-card {
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(26, 36, 44, .045);
}

.tg-news-article-page .tg-article-card {
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

.tg-news-article-page .tg-article-content {
    color: #2d3740;
    font-size: .97rem;
    line-height: 1.72;
}

.tg-news-article-page .tg-article-sidebar {
    top: 1.25rem;
    gap: 1rem;
}

.tg-news-article-page .tg-article-side-card {
    padding: 1rem;
}

.tg-news-discussion-preview {
    margin-top: 1.65rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tg007-line, #dbe2e7);
}

.tg-news-discussion-preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: .45rem;
}

.tg-news-discussion-preview-heading h2 {
    margin: .15rem 0 0;
    color: #29343c;
    font-size: 1.05rem;
    font-weight: 840;
    letter-spacing: -.02em;
}

.tg-news-discussion-preview-heading .tg-text-link {
    flex: 0 0 auto;
    font-size: .72rem;
}

.tg-news-reply-list {
    display: grid;
}

.tg-news-reply-preview {
    padding: .8rem 0;
    border-top: 1px solid #e3e8ec;
}

.tg-news-reply-preview:first-child {
    border-top: 0;
}

.tg-news-reply-preview header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
    margin-bottom: .28rem;
    color: #849099;
    font-size: .68rem;
}

.tg-news-reply-preview header a,
.tg-news-reply-preview header strong {
    color: #315f7e !important;
    font-weight: 830;
    text-decoration: none;
}

.tg-news-reply-preview p {
    margin: 0;
    color: #5d6a73;
    font-size: .78rem;
    line-height: 1.5;
}

.tg-news-article-page .tg-related-news-item span {
    color: #5b7f99;
}

@media (max-width: 980px) {
    .tg-news-layout,
    .tg-news-article-page .tg-article-layout {
        grid-template-columns: 1fr;
    }

    .tg-news-sidebar,
    .tg-news-article-page .tg-article-sidebar {
        position: static;
    }

    .tg-news-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tg-news-hero-search {
        grid-template-columns: 1fr;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
        gap: .5rem;
    }

    .tg-news-hero-search input,
    .tg-news-hero-search button {
        width: 100%;
        border-radius: .62rem;
    }

    .tg-news-hero-search input {
        border: 1px solid rgba(45, 76, 101, .2);
        background: #fff;
    }

    .tg-news-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

    .tg-news-heading-meta {
        justify-content: flex-start;
    }

    .tg-news-feature-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .tg-news-feature-icon {
        min-height: 180px;
    }

    .tg-news-feature-icon img {
        width: 62px;
        height: 62px;
        padding: .45rem;
        border-radius: .7rem;
    }

    .tg-news-feature-copy {
        padding: 1rem;
    }

    .tg-news-card {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .tg-news-card-icon {
        min-height: 116px;
    }

    .tg-news-card-icon img {
        width: 46px;
        height: 46px;
    }

    .tg-news-card-footer a {
        width: 100%;
        margin-left: 0;
    }

    .tg-news-sidebar,
    .tg-news-article-page .tg-article-sidebar {
        grid-template-columns: 1fr;
    }

    .tg-news-discussion-preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .tg-news-feature-card,
    .tg-news-card {
        grid-template-columns: 1fr;
    }

    .tg-news-feature-icon,
    .tg-news-card-icon {
        min-height: 86px;
        border-right: 0;
        border-bottom: 1px solid #dce4e9;
    }

    .tg-news-feature-icon img,
    .tg-news-card-icon img {
        width: 52px;
        height: 52px;
    }

    .tg-news-card-body,
    .tg-news-feature-copy {
        padding: .9rem;
    }
}

/* Build 0194 — News Editorial Covers & Article Thumbnail System. */
.tg-news-feature-card {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.tg-news-feature-media,
.tg-news-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-right: 1px solid #dce4e9;
    background: #0d2a45;
    text-decoration: none;
}

.tg-news-feature-media {
    min-height: 220px;
}

.tg-news-card {
    grid-template-columns: 132px minmax(0, 1fr);
}

.tg-news-card-media {
    min-height: 124px;
}

.tg-news-feature-media img,
.tg-news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.tg-news-feature-media:hover img,
.tg-news-feature-media:focus-visible img,
.tg-news-card-media:hover img,
.tg-news-card-media:focus-visible img {
    transform: scale(1.025);
}

.tg-news-cover-placeholder {
    position: relative;
    display: grid;
    align-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 1rem;
    color: #eaf6ff;
    background:
        linear-gradient(rgba(100, 173, 220, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 173, 220, .055) 1px, transparent 1px),
        radial-gradient(circle at 82% 18%, rgba(72, 164, 224, .34), transparent 38%),
        linear-gradient(145deg, #17496f 0%, #0f3454 50%, #091f36 100%);
    background-size: 18px 18px, 18px 18px, auto, auto;
}

.tg-news-cover-placeholder::after {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(139, 207, 246, .16);
    border-radius: 50%;
    content: '';
    box-shadow: 0 0 0 16px rgba(139, 207, 246, .045), 0 0 0 34px rgba(139, 207, 246, .025);
}

.tg-news-cover-placeholder small,
.tg-news-cover-placeholder > span {
    position: relative;
    z-index: 1;
    color: #9fcbe6;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tg-news-cover-placeholder strong {
    position: relative;
    z-index: 1;
    margin: .25rem 0 .18rem;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: -.03em;
    line-height: 1;
}

.tg-news-card-media .tg-news-cover-placeholder {
    padding: .7rem;
}

.tg-news-card-media .tg-news-cover-placeholder small {
    font-size: .48rem;
}

.tg-news-card-media .tg-news-cover-placeholder strong {
    font-size: .92rem;
}

.tg-news-article-cover-wrap {
    padding-top: 1.15rem;
}

.tg-news-article-cover {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    border: 1px solid #c8d5dd;
    border-radius: .85rem;
    background: #0c2740;
    box-shadow: 0 12px 30px rgba(24, 43, 57, .1);
}

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

@media (max-width: 760px) {
    .tg-news-feature-card {
        grid-template-columns: 1fr;
    }

    .tg-news-feature-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #dce4e9;
    }

    .tg-news-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .tg-news-card {
        grid-template-columns: 1fr;
    }

    .tg-news-card-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #dce4e9;
    }
}

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

/* Build 0194 Completion Fix 4 — Article Cover Hero Integration.
 * Article-level artwork belongs in the canonical hero identity panel instead
 * of repeating as an oversized standalone image below the hero. The left side
 * remains the article's information/action surface; the right side becomes a
 * clean, edge-to-edge visual when cover artwork exists. */
.tg-news-article-page .tg-modern-hero--article-cover .tg-modern-hero-identity {
    min-height: 205px;
    padding: 0;
    background: #0b2239;
}

.tg-news-article-page .tg-modern-hero--article-cover .tg-modern-hero-identity::before {
    display: none;
}

.tg-news-article-page .tg-news-article-hero-cover {
    position: absolute !important;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    background: #0b2239;
}

.tg-news-article-page .tg-news-article-hero-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 980px) {
    .tg-news-article-page .tg-modern-hero--article-cover .tg-modern-hero-identity {
        min-height: clamp(210px, 56.25vw, 420px);
        border-top-color: rgba(220, 235, 248, .16);
    }
}

/* Build 0194 Completion Fix 5 — News Article Hero Proportion & Artwork Containment.
 * Keep article artwork inside the established blue identity panel without
 * cropping it, and bring long article headlines back into the compact TG007
 * editorial hierarchy. */
.tg-news-article-page .tg-modern-hero--article .tg-modern-hero-copy h1 {
    max-width: 790px;
    font-size: clamp(2.1rem, 3.05vw, 3.15rem);
    letter-spacing: -.045em;
    line-height: 1.01;
}

.tg-news-article-page .tg-modern-hero--article-cover .tg-modern-hero-identity {
    background: linear-gradient(135deg, #2b68a0 0%, #1d528b 48%, #103767 100%);
}

.tg-news-article-page .tg-news-article-hero-cover {
    display: grid;
    place-items: center;
    padding: .72rem clamp(.72rem, 1.25vw, 1.1rem);
    background: transparent;
}

.tg-news-article-page .tg-news-article-hero-cover img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 620px) {
    .tg-news-article-page .tg-modern-hero--article .tg-modern-hero-copy h1 {
        font-size: clamp(1.85rem, 8.4vw, 2.45rem);
        line-height: 1.04;
    }

    .tg-news-article-page .tg-news-article-hero-cover {
        padding: .65rem;
    }
}
