/* Fonts */
@font-face {
    font-family: "QVTC News DM Sans";
    src: url("type-1.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "QVTC News DM Sans";
    src: url("type-2.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "QVTC News Roboto";
    src: url("type-4.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

/* Page layout and typography */
.qvtc-news {
    --ink: #f4f8fd;
    --muted: #c0ccd9;
    --cyan: #70dde4;
    --line: #294859;
    --body: "QVTC News DM Sans", Arial, sans-serif;
    --heading: "QVTC News Roboto", Arial, sans-serif;

    padding: var(--qvtc-news-top, clamp(105px, 10vw, 150px)) 0
        clamp(46px, 7vw, 100px);
    background: radial-gradient(ellipse at 81% 17%, #0b2233 0, transparent 40%),
        #061321;
    color: var(--ink);
    font: 400 14px/1.6 var(--body);
}

.qvtc-news,
.qvtc-news * {
    box-sizing: border-box;
}

.qvtc-news-wrap {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.qvtc-news :is(h1, h2, h3) {
    margin: 0;
    color: var(--ink);
    font: 500 26px/1.25 var(--heading);
}

.qvtc-news p {
    margin: 0;
    font-family: var(--body);
}

.qvtc-news a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

/* Hero */
.qvtc-news-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    min-height: clamp(280px, 26vw, 370px);
}

.qvtc-news-copy {
    position: relative;
    z-index: 1;
    padding-block: 32px;
}

.qvtc-news .qvtc-news-copy h1 {
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1.13;
    letter-spacing: .15px;
}

.qvtc-news-copy h1 span {
    color: var(--cyan);
}

.qvtc-news .qvtc-news-copy h1 + p {
    max-width: 610px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.qvtc-news .qvtc-news-eyebrow {
    margin-bottom: 15px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.qvtc-news-atom {
    display: block;
    width: min(100%, 430px);
    height: auto;
    justify-self: end;
}

.qvtc-news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 28px;
}

.qvtc-news .qvtc-news-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 22px;
    border: 1px solid #4c6478;
    border-radius: 999px;
    color: var(--ink);
    font: 700 13px/1.4 var(--body);
    text-decoration: none;
}

.qvtc-news .qvtc-news-actions .qvtc-news-primary {
    border-color: #3f5b74;
    background: linear-gradient(115deg, #061139, #0a2548 55%, #07434f);
}

.qvtc-news .qvtc-news-actions a:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px #69e6ed36;
}

.qvtc-news-actions a::after {
    content: "↗" / "";
    margin-inline-start: 9px;
}

/* Section navigation */
.qvtc-news .qvtc-news-nav {
    display: flex;
    border-bottom: 1px solid var(--line);
}

.qvtc-news .qvtc-news-nav a {
    padding: 13px clamp(14px, 3.1vw, 40px);
    border-bottom: 4px solid transparent;
    color: var(--muted);
    font: 700 clamp(15px, 2vw, 19px)/1.6 var(--body);
    text-decoration: none;
}

.qvtc-news .qvtc-news-nav a:first-child,
.qvtc-news .qvtc-news-nav a:is(:hover, :focus-visible),
.qvtc-news:has(.qvtc-news-resource:target) .qvtc-news-nav a:last-child {
    border-bottom-color: var(--cyan);
    color: var(--ink);
}

.qvtc-news:has(.qvtc-news-resource:target)
    .qvtc-news-nav a:first-child:not(:hover):not(:focus-visible) {
    border-bottom-color: transparent;
    color: var(--muted);
}

/* Sections and release listing */
.qvtc-news-section {
    margin-top: clamp(26px, 5vw, 54px);
    scroll-margin-top: 125px;
}

.qvtc-news .qvtc-news-section-title {
    margin-bottom: 22px;
    font-size: clamp(23px, 2.4vw, 28px);
}

.qvtc-news-press:has(.qvtc-news-release-layout) {
    padding: clamp(16px, 3vw, 36px);
    border-radius: 20px;
    background: #0c2030;
    position: relative;
    isolation: isolate;
}
.qvtc-news-press:has(.qvtc-news-release-layout)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: url("wave.svg") top right / min(42%, 420px) auto no-repeat;
    opacity: .18;
    pointer-events: none;
}

@media (max-width: 720px) {
    .qvtc-news-press:has(.qvtc-news-release-layout)::before {
        opacity: .10;
    }
}

.qvtc-news-press:has(.qvtc-news-release-layout) .qvtc-news-section-title {
    margin-bottom: clamp(24px, 4vw, 48px);
}

.qvtc-news-release-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 210px);
    grid-template-areas: "releases archive";
    align-items: start;
    gap: clamp(18px, 4vw, 48px);
}

.qvtc-news-release-list {
    grid-area: releases;
    display: grid;
    gap: 8px;
}

.qvtc-news-release-row {
    padding: clamp(16px, 2vw, 24px);
    border-radius: 12px;
    background: #102838;
}

.qvtc-news .qvtc-news-release-row time {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.qvtc-news .qvtc-news-release-row h4 {
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.4;
    letter-spacing:0.01px;
}

.qvtc-news .qvtc-news-release-row a {
    color: var(--ink);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.qvtc-news .qvtc-news-release-row a:hover {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Year archive */
.qvtc-news-year-archive {
    grid-area: archive;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.qvtc-news .qvtc-news-year-archive a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-family: var(--body);
    text-decoration: none;
}

.qvtc-news .qvtc-news-year-archive a:is(:hover, [aria-current="page"]) {
    background: rgba(112, 221, 228, .1);
    color: var(--cyan);
}

/* Press Releases and Resources empty states */
.qvtc-news-empty {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: clamp(120px, 19vw, 200px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 46px);
    min-height: 205px;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid #33586d;
    border-radius: 18px;
    background: linear-gradient(120deg, #0c2234, #081827 60%, #0b2b44);
}

.qvtc-news-empty::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("wave.svg") right bottom / min(55%, 510px) 100% no-repeat;
    pointer-events: none;
}

.qvtc-news-icon {
    display: grid;
    place-items: center;
    min-height: 116px;
    padding-inline-end: 18px;
    border-inline-end: 1px solid #476377;
    color: #9fd8f3;
}

.qvtc-news-icon svg {
    width: clamp(48px, 7vw, 84px);
    height: auto;
}

.qvtc-news .qvtc-news-empty-copy :is(h2, h3) {
    font-size: clamp(22px, 2.4vw, 28px);
}

.qvtc-news .qvtc-news-status {
    margin: 6px 0 12px;
    color: var(--cyan);
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
}

.qvtc-news .qvtc-news-message {
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.55;
}

/* Responsive layout */
@media (max-width: 720px) {
    .qvtc-news-wrap {
        width: calc(100% - 32px);
    }

    .qvtc-news-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 300px;
    }

    .qvtc-news-copy {
        padding-block: 42px;
    }

    .qvtc-news-atom {
        position: absolute;
        inset-inline-end: -8px;
        top: 50%;
        width: min(65%, 300px);
        opacity: .28;
        transform: translateY(-50%);
    }

    .qvtc-news .qvtc-news-copy h1 + p {
        font-size: 14px;
    }

    .qvtc-news .qvtc-news-eyebrow {
        font-size: 9px;
        letter-spacing: .2em;
    }

    .qvtc-news-release-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "archive"
            "releases";
    }

    .qvtc-news-year-archive {
        flex-flow: row wrap;
    }
}

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

    .qvtc-news-icon {
        place-items: start;
        min-height: 0;
        padding: 0;
        border: 0;
    }
}