/* ==========================================================
   KORNET EXPRESS — SHARED NEWSROOM LAYOUT
   Used by:
   - company-update.html
   - social-activities.html
   - industry-update.html
========================================================== */

:root {
    --newsroom-navy: #071d49;
    --newsroom-navy-deep: #031127;
    --newsroom-red: #c1121f;
    --newsroom-red-dark: #96101a;
    --newsroom-ink: #111827;
    --newsroom-muted: #667085;
    --newsroom-line: #e3e7ee;
    --newsroom-soft: #f4f6f9;
    --newsroom-white: #ffffff;
    --newsroom-shadow: 0 28px 80px rgba(7, 29, 73, 0.13);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.newsroom-page {
    flex: 1;
    padding-top: 91px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 14%, rgba(193, 18, 31, 0.07), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f5f7fa 100%);
}

/* ==========================================================
   HERO
========================================================== */

.newsroom-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--newsroom-white);
    background:
        radial-gradient(circle at 82% 20%, rgba(193, 18, 31, 0.42), transparent 27%),
        linear-gradient(118deg, #04122c 0%, #082657 58%, #071d49 100%);
}

.newsroom-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -46% 38%;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    transform: rotate(-8deg);
    z-index: -1;
}

.newsroom-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to right, transparent, #000 35%, #000);
}

.newsroom-hero-inner {
    min-height: 390px;
    padding-top: 72px;
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    align-items: end;
    gap: 64px;
}

.newsroom-hero-copy {
    max-width: 820px;
}

.newsroom-eyebrow,
.newsroom-section-kicker {
    margin: 0 0 12px;
    color: #ffb6bc;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.newsroom-hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: "Codec Cold", Inter, sans-serif;
    font-size: clamp(3rem, 6.3vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.newsroom-hero-copy > p:last-child {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.8;
}

.newsroom-category-nav {
    display: grid;
    gap: 10px;
    align-self: end;
}

.newsroom-category-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(8px);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.newsroom-category-nav a::after {
    content: "↗";
    font-size: 1rem;
}

.newsroom-category-nav a:hover,
.newsroom-category-nav a.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(4px);
}

.newsroom-category-nav a.is-active {
    border-left: 4px solid #f33b48;
}

/* ==========================================================
   SHARED SECTION HEADINGS
========================================================== */

.newsroom-publication-section,
.newsroom-archive-section {
    position: relative;
    padding: 84px 0;
}

.newsroom-publication-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.96));
}

.newsroom-section-heading,
.newsroom-archive-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 30px;
}

.newsroom-section-heading > p,
.newsroom-archive-heading > div > p:last-child {
    max-width: 610px;
    margin: 0;
    color: var(--newsroom-muted);
    line-height: 1.75;
}

.newsroom-section-heading h2,
.newsroom-archive-heading h2 {
    margin: 0;
    color: var(--newsroom-navy);
    font-family: "Codec Cold", Inter, sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.newsroom-section-heading .newsroom-section-kicker,
.newsroom-archive-heading .newsroom-section-kicker {
    color: var(--newsroom-red);
}

/* ==========================================================
   MAIN PUBLICATION PANEL
========================================================== */

.newsroom-publication-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(7, 29, 73, 0.09);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--newsroom-shadow);
    outline: none;
}

.newsroom-publication-panel:focus-visible {
    box-shadow:
        0 0 0 4px rgba(193, 18, 31, 0.16),
        var(--newsroom-shadow);
}

.newsroom-publication-accent {
    height: 8px;
    background: linear-gradient(90deg, var(--newsroom-navy) 0 72%, var(--newsroom-red) 72% 100%);
}

.newsroom-publication-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 42px 0;
}

.newsroom-publication-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.newsroom-category-badge,
.newsroom-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.newsroom-category-badge {
    color: #fff;
    background: var(--newsroom-red);
    box-shadow: 0 10px 22px rgba(193, 18, 31, 0.2);
}

.newsroom-type-badge {
    color: var(--newsroom-navy);
    border: 1px solid #dbe1ea;
    background: #f5f7fa;
}

.newsroom-publication-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--newsroom-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.newsroom-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #21a366;
    box-shadow: 0 0 0 5px rgba(33, 163, 102, 0.12);
}

.newsroom-publication-panel.is-archive .newsroom-status-dot {
    background: #718096;
    box-shadow: 0 0 0 5px rgba(113, 128, 150, 0.13);
}

.newsroom-publication-copy {
    padding: 42px 42px 34px;
    text-align: left;
}

.newsroom-publication-date {
    margin: 0 0 12px;
    color: var(--newsroom-red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.newsroom-publication-copy h2 {
    max-width: 980px;
    margin: 0;
    color: var(--newsroom-ink);
    font-family: "Codec Cold", Inter, sans-serif;
    font-size: clamp(2.25rem, 5vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.newsroom-publication-summary {
    max-width: 920px;
    margin: 24px 0 0;
    color: #596579;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.85;
}

.newsroom-publication-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.newsroom-return-button,
.newsroom-file-link {
    min-height: 45px;
    padding: 11px 16px;
    border-radius: 12px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.newsroom-return-button {
    color: var(--newsroom-navy);
    border: 1px solid #d8dee7;
    background: #fff;
}

.newsroom-file-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    border: 1px solid var(--newsroom-navy);
    background: var(--newsroom-navy);
}

.newsroom-return-button:hover,
.newsroom-file-link:hover {
    transform: translateY(-2px);
}

.newsroom-return-button:hover {
    border-color: var(--newsroom-navy);
}

.newsroom-file-link:hover {
    border-color: var(--newsroom-red);
    background: var(--newsroom-red);
}

/* ==========================================================
   DOCUMENT STAGE
========================================================== */

.newsroom-document-stage {
    position: relative;
    min-height: 440px;
    padding: 30px;
    border-top: 1px solid var(--newsroom-line);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.09), transparent 40%),
        linear-gradient(145deg, #20252d, #10151d);
}

.newsroom-document-loading,
.newsroom-document-error {
    min-height: 380px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}

.newsroom-loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.16);
    border-top-color: #fff;
    animation: newsroom-spin 0.85s linear infinite;
}

@keyframes newsroom-spin {
    to {
        transform: rotate(360deg);
    }
}

.newsroom-image-viewer {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 16px;
}

.newsroom-image-viewer img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.24),
        0 32px 70px rgba(0, 0, 0, 0.34);
}

.newsroom-image-viewer figcaption {
    max-width: 920px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.84rem;
    line-height: 1.65;
    text-align: center;
}

.newsroom-text-viewer {
    width: min(940px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px);
    border-radius: 18px;
    color: #293447;
    background: #fff;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
}

.newsroom-text-viewer p,
.newsroom-text-viewer li {
    color: #4d596c;
    line-height: 1.85;
}

.newsroom-text-viewer h3,
.newsroom-text-viewer h4 {
    margin: 1.5em 0 0.55em;
    color: var(--newsroom-navy);
}

.newsroom-text-viewer > :first-child {
    margin-top: 0;
}

/* ==========================================================
   PDF VIEWER
========================================================== */

.newsroom-pdf-viewer {
    width: 100%;
}

.newsroom-pdf-canvas-area {
    width: 100%;
    min-height: 520px;
    max-height: 76vh;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

#newsroomPDFCanvas {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 5px;
    background: #fff;
    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.22),
        0 24px 58px rgba(0, 0, 0, 0.34);
}

.newsroom-pdf-toolbar {
    width: min(650px, 100%);
    margin: 16px auto 0;
    padding: 11px;
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(120px, auto) minmax(110px, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 15px;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.newsroom-pdf-toolbar button {
    min-height: 43px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--newsroom-navy);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.22s ease, opacity 0.22s ease;
}

.newsroom-pdf-toolbar button:hover:not(:disabled) {
    background: var(--newsroom-red);
}

.newsroom-pdf-toolbar button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.newsroom-pdf-toolbar span {
    color: #4c586b;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

/* ==========================================================
   ARCHIVE
========================================================== */

.newsroom-archive-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(7, 29, 73, 0.045), transparent 33%),
        #f5f7fa;
}

.newsroom-archive-heading {
    align-items: flex-end;
}

.newsroom-archive-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.newsroom-search-field input,
.newsroom-year-field select {
    min-height: 48px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    color: var(--newsroom-ink);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsroom-search-field input {
    width: min(320px, 72vw);
    padding: 11px 16px;
}

.newsroom-year-field select {
    min-width: 140px;
    padding: 10px 38px 10px 14px;
}

.newsroom-search-field input:focus,
.newsroom-year-field select:focus {
    border-color: var(--newsroom-red);
    box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.1);
}

.newsroom-archive-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(7, 29, 73, 0.09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(7, 29, 73, 0.08);
}

.newsroom-archive-table {
    width: 100%;
    border-collapse: collapse;
}

.newsroom-archive-table th,
.newsroom-archive-table td {
    padding: 18px 22px;
    text-align: left;
    vertical-align: middle;
}

.newsroom-archive-table thead {
    color: #fff;
    background: var(--newsroom-navy);
}

.newsroom-archive-table th {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.newsroom-archive-table tbody tr {
    border-top: 1px solid #e7ebf1;
    transition: background 0.2s ease;
}

.newsroom-archive-table tbody tr:first-child {
    border-top: 0;
}

.newsroom-archive-table tbody tr:hover {
    background: #f8fafc;
}

.newsroom-archive-date {
    min-width: 145px;
    color: #526075;
    font-weight: 700;
}

.newsroom-archive-type {
    min-width: 170px;
}

.newsroom-archive-type span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--newsroom-navy);
    background: #edf2f8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.newsroom-archive-title {
    color: var(--newsroom-ink);
    font-weight: 800;
}

.newsroom-archive-view {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--newsroom-navy);
    border-radius: 10px;
    color: var(--newsroom-navy);
    background: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.newsroom-archive-view:hover {
    color: #fff;
    background: var(--newsroom-navy);
    transform: translateY(-1px);
}

.newsroom-archive-empty {
    min-height: 220px;
    padding: 34px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}

.newsroom-archive-empty strong {
    color: var(--newsroom-navy);
    font-size: 1.15rem;
}

.newsroom-archive-empty p {
    max-width: 560px;
    margin: 0;
    color: var(--newsroom-muted);
}

/* ==========================================================
   EMPTY CATEGORY STATE
========================================================== */

.newsroom-publication-panel.is-empty .newsroom-publication-header,
.newsroom-publication-panel.is-empty .newsroom-publication-copy {
    display: none;
}

.newsroom-publication-panel.is-empty .newsroom-document-stage {
    min-height: 480px;
    border-top: 0;
}

.newsroom-category-empty {
    width: min(680px, 100%);
    min-height: 360px;
    margin: 0 auto;
    padding: 46px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
    background: rgba(255, 255, 255, 0.045);
}

.newsroom-category-empty strong {
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.newsroom-category-empty p {
    max-width: 520px;
    margin: 0;
    line-height: 1.75;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 980px) {

    .newsroom-hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
    }

    .newsroom-category-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .newsroom-category-nav a {
        align-items: flex-start;
        min-height: 74px;
    }

    .newsroom-section-heading,
    .newsroom-archive-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .newsroom-archive-filters {
        justify-content: flex-start;
        width: 100%;
    }

}

@media (max-width: 760px) {

    .newsroom-page {
        padding-top: 82px;
    }

    .newsroom-hero-inner {
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 46px;
    }

    .newsroom-category-nav {
        grid-template-columns: 1fr;
    }

    .newsroom-category-nav a {
        min-height: 50px;
    }

    .newsroom-publication-section,
    .newsroom-archive-section {
        padding: 58px 0;
    }

    .newsroom-publication-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 22px 0;
    }

    .newsroom-publication-copy {
        padding: 32px 22px 26px;
    }

    .newsroom-publication-panel {
        border-radius: 22px;
    }

    .newsroom-document-stage {
        min-height: 300px;
        padding: 16px;
    }

    .newsroom-pdf-canvas-area {
        min-height: 410px;
        padding: 14px;
    }

    .newsroom-pdf-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .newsroom-pdf-toolbar span {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .newsroom-archive-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .newsroom-search-field input,
    .newsroom-year-field select {
        width: 100%;
    }

    .newsroom-archive-table,
    .newsroom-archive-table tbody,
    .newsroom-archive-table tr,
    .newsroom-archive-table td {
        display: block;
        width: 100%;
    }

    .newsroom-archive-table thead {
        display: none;
    }

    .newsroom-archive-table tbody {
        padding: 10px;
    }

    .newsroom-archive-table tbody tr {
        margin: 10px 0;
        padding: 14px;
        border: 1px solid #e3e8ef;
        border-radius: 15px;
        background: #fff;
    }

    .newsroom-archive-table th,
    .newsroom-archive-table td {
        padding: 8px 4px;
    }

    .newsroom-archive-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #8791a1;
        font-size: 0.66rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .newsroom-archive-view {
        width: 100%;
        margin-top: 4px;
    }

}

@media (max-width: 480px) {

    .newsroom-hero h1 {
        font-size: clamp(2.7rem, 16vw, 4.2rem);
    }

    .newsroom-publication-copy h2 {
        font-size: clamp(2.1rem, 12vw, 3.25rem);
    }

    .newsroom-publication-header,
    .newsroom-publication-copy {
        padding-left: 18px;
        padding-right: 18px;
    }

    .newsroom-document-stage {
        padding: 10px;
    }

    .newsroom-image-viewer img {
        border-radius: 8px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .newsroom-category-nav a,
    .newsroom-return-button,
    .newsroom-file-link,
    .newsroom-archive-view {
        transition: none;
    }

    .newsroom-loading-spinner {
        animation-duration: 1.8s;
    }

}

/* Homepage deep links load the requested publication below the fixed header. */
.newsroom-publication-panel {
    scroll-margin-top: 118px;
}
