/* ==========================================================================
   DELHI NEWS LIVE - COMPLETE MULTI-PAGE BROADSHEET SYSTEM
   Full newspaper print layouts for Front Page & inside continuation pages
   Strict Newsprint Hairline Rules - No Card Containers / No Drop Shadows
   ========================================================================== */

:root {
    --color-newsprint: #e8e5dd;
    --color-paper: #fcfbf8;
    --color-ink: #1a1b1d;
    --color-rule: #8a8d93;
    --color-stone: #666970;
    --color-strip: #c4cbd5;
    --color-tint: #f2eee8;
    --color-brandred: #c41820;
    --font-poster: "Times New Roman", Times, serif;
    --font-condensed: "Times New Roman", Times, serif;
    --font-serifhead: "Times New Roman", Times, serif;
    --font-sans: "Times New Roman", Times, serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    background-color: var(--color-newsprint);
    color: var(--color-ink);
    font-family: var(--font-serifhead);
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--color-newsprint);
    color: var(--color-ink);
    padding: 0.75rem 0.35rem;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

@media (min-width: 640px) {
    body {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 1024px) {
    body {
        padding: 1.5rem 1.5rem;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* ── Defensive Typography & Text Wrap ── */
h1, h2, h3, h4, h5, h6,
p, a, span, blockquote, figcaption, td, th, li {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Defensive Media & Embed Constraints ── */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
}

iframe, embed, object {
    max-width: 100%;
    border: 0;
}

/* ── Wide Tables & Formatted Code Safety ── */
table {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    max-width: 100%;
}

/* ==========================================================================
   PAPER CONTAINER & BROADSHEET PAGE
   ========================================================================== */
.paper-page-wrapper {
    min-height: 100vh;
    background-color: var(--color-newsprint);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.paper {
    width: 100%;
    max-width: 1200px;
    background-color: var(--color-paper);
    padding: 0.75rem 0.75rem 1.5rem 0.75rem;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
    margin: 0 auto;
    position: relative;
    border-radius: 0 !important;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .paper {
        padding: 1rem 1.5rem 2rem 1.5rem;
    }
}

/* ==========================================================================
   PAGE FOLIO & RUNNING HEADER (FOR INSIDE PAGES)
   ========================================================================== */
.newspaper-running-folio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 3px double var(--color-ink);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.folio-page-num {
    color: var(--color-brandred);
    font-size: 15px;
}

.folio-section-title {
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--color-ink);
}

/* ==========================================================================
   NEWSPAPER PAGE-TURNING CONTROLS (EDITION NAVIGATOR)
   ========================================================================== */
.edition-page-bar {
    margin: 0.6rem 0;
    padding: 0.4rem 0.5rem;
    background-color: var(--color-tint);
    border: 1px solid var(--color-rule);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 0;
}

.page-pills-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.page-pill {
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--color-ink);
    background-color: var(--color-paper);
    color: var(--color-ink);
    cursor: pointer;
    border-radius: 0;
    transition: all 0.15s ease;
}

.page-pill:hover, .page-pill.active {
    background-color: var(--color-ink);
    color: var(--color-paper);
}

.page-pill.active {
    border-color: var(--color-brandred);
}

@media (max-width: 640px) {
    .edition-page-bar {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .edition-page-bar::-webkit-scrollbar {
        display: none;
    }
    .page-pills-list {
        flex-wrap: nowrap;
    }
}

/* ==========================================================================
   TOP METADATA STRIP (NEW DELHI DATE | TAGLINE | RNI)
   ========================================================================== */
.top-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    border-bottom: 3px solid var(--color-ink);
    padding-bottom: 0.5rem;
    font-family: var(--font-serifhead);
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .top-meta-strip {
        font-size: 15px;
    }
}

.meta-divider {
    color: var(--color-rule);
    display: none;
}

@media (min-width: 640px) {
    .meta-divider {
        display: inline;
    }
}

.font-condensed {
    font-family: var(--font-condensed);
}

.font-poster {
    font-family: var(--font-poster);
}

.font-serifhead {
    font-family: var(--font-serifhead);
}

/* ==========================================================================
   MASTHEAD & MARQUEE GLIDE
   ========================================================================== */
.masthead-track {
    display: block;
    margin-top: 0.75rem;
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
    cursor: pointer;
}

.masthead-marquee {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    padding-right: 2.5rem;
    animation: masthead-scroll 22s linear infinite;
}

.masthead-track:hover .masthead-marquee {
    animation-play-state: paused;
}

@keyframes masthead-scroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.masthead-item {
    flex: none;
    height: 62px;
    width: auto;
    object-fit: contain;
    border-radius: 0 !important;
}

.dnl-logo-lockup {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 62px;
    aspect-ratio: 1024 / 161;
    flex: none;
    user-select: none;
}

.dnl-logo-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.dnl-circle-spin-wrap {
    position: absolute;
    left: 4.98%;
    top: 52.8%;
    transform: translate(-50%, -50%);
    height: 110%;
    aspect-ratio: 1 / 1;
    perspective: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dnl-globe-disc {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: dnlGlobeSpin 7s linear infinite;
    will-change: transform;
}

.dnl-globe-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.dnl-globe-front {
    transform: rotateY(0deg);
}

.dnl-globe-back {
    transform: rotateY(180deg);
}

@keyframes dnlGlobeSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@media (min-width: 640px) {
    .masthead-item,
    .dnl-logo-lockup {
        height: 110px;
    }
    .masthead-marquee {
        gap: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .masthead-item,
    .dnl-logo-lockup {
        height: 150px;
    }
}

/* ==========================================================================
   SUB-MASTHEAD STRIP (METRO CITY | WWW.DELHINEWSLIVE.CO.IN)
   ========================================================================== */
.sub-masthead-strip {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sub-strip-bar {
    height: 6px;
    flex: 1;
    background-color: var(--color-strip);
    background-image: repeating-linear-gradient(
        45deg,
        var(--color-strip),
        var(--color-strip) 4px,
        rgba(0,0,0,0.06) 4px,
        rgba(0,0,0,0.06) 8px
    );
}

.edition-title {
    font-family: var(--font-condensed);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-stone);
    white-space: nowrap;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .edition-title {
        font-size: 34px;
    }
}

.website-label {
    white-space: nowrap;
    font-family: var(--font-serifhead);
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
}

@media (min-width: 640px) {
    .website-label {
        font-size: 14px;
    }
}

/* ==========================================================================
   NAVIGATION BAR (FRONT PAGE | SECTIONS | SEARCH)
   ========================================================================== */
.nav-bar {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1rem;
    border-top: 1px solid var(--color-ink);
    border-bottom: 1px solid var(--color-ink);
    padding: 0.375rem 0.5rem;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

@media (min-width: 640px) {
    .nav-bar {
        font-size: 13px;
        gap: 0.25rem 1.25rem;
    }
}

.nav-link {
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    border-radius: 0;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-brandred);
}

@media (max-width: 640px) {
    .nav-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.4rem 0.5rem;
        gap: 0.2rem 0.65rem;
    }
    .nav-bar::-webkit-scrollbar {
        display: none;
    }
    .nav-link {
        flex-shrink: 0;
        padding: 0.3rem 0.45rem;
    }
}

/* ==========================================================================
   LEAD STORY & MAIN ARTICLE LAYOUT
   ========================================================================== */
.lead-article {
    margin-top: 0.75rem;
    min-width: 0;
    max-width: 100%;
}

.figure-wrapper {
    margin-bottom: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.lead-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 0 !important;
}

.lead-caption {
    margin-top: 0.25rem;
    font-family: var(--font-serifhead);
    font-size: 11px;
    font-style: italic;
    color: var(--color-stone);
    overflow-wrap: break-word;
    word-break: break-word;
}

.lead-headline {
    margin-top: 0.75rem;
    text-align: center;
    font-family: var(--font-poster);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.lead-headline a:hover {
    color: var(--color-brandred);
}

@media (min-width: 640px) {
    .lead-headline {
        font-size: 62px;
    }
}

@media (min-width: 1024px) {
    .lead-headline {
        font-size: 86px;
    }
}

.lead-standfirst {
    margin: 0.75rem auto 0 auto;
    max-width: 1050px;
    text-align: center;
    font-family: var(--font-serifhead);
    font-size: 15px;
    line-height: 1.25;
    font-style: italic;
    color: var(--color-ink);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

@media (min-width: 640px) {
    .lead-standfirst {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .lead-standfirst {
        font-size: 30px;
    }
}


/* Two-column split: Main Lead Body + Side Rail */
.story-grid-split {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .story-grid-split {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 1.75rem;
    }
}

.byline-bar {
    margin-bottom: 0.75rem;
    border-top: 1px solid var(--color-ink);
    border-bottom: 1px solid var(--color-ink);
    padding: 0.25rem 0;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Multi-column broadsheet reading */
.newscols {
    font-family: var(--font-serifhead);
    columns: 1;
    font-size: 13.5px;
    line-height: 1.42;
    column-rule: 1px solid var(--color-rule);
    column-gap: 20px;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .newscols {
        columns: 2;
    }
}

@media (min-width: 1025px) {
    .newscols {
        columns: 3;
        font-size: 13.5px;
        line-height: 1.42;
    }
}

.newscols p {
    text-align: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    margin-bottom: 0.45rem;
}

@media (min-width: 640px) {
    .newscols p {
        text-align: justify;
    }
}

.dropcap:first-letter {
    float: left;
    font-family: var(--font-serifhead);
    padding-right: 6px;
    font-size: 48px;
    font-weight: 700;
    line-height: 0.82;
}

.col-head {
    font-family: var(--font-condensed);
    margin-top: 0.7rem;
    margin-bottom: 0.25rem;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.read-full-report-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-brandred);
}

.read-full-report-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FRONT PAGE SECONDARY STORIES (SIDE RAIL)
   ========================================================================== */
.side-rail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.boxed-story {
    border-top: 1px solid var(--color-ink);
    border-bottom: 1px solid var(--color-ink);
    background-color: transparent !important;
    padding: 0.75rem 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.boxed-story:first-child {
    border-top: none;
    padding-top: 0;
}

.boxed-story img {
    margin-bottom: 0.5rem;
    width: 100%;
    height: auto;
    max-height: 185px;
    object-fit: cover;
    border-radius: 0 !important;
}

.boxed-headline {
    font-family: var(--font-condensed);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.012em;
    text-transform: uppercase;
}

.boxed-headline a:hover {
    color: var(--color-brandred);
}

@media (min-width: 640px) {
    .boxed-headline {
        font-size: 20px;
    }
}

.boxed-body {
    margin-top: 0.4rem;
    text-align: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    font-family: var(--font-serifhead);
    font-size: 13px;
    line-height: 1.42;
    color: var(--color-ink);
}

@media (min-width: 640px) {
    .boxed-body {
        text-align: justify;
    }
}

/* ==========================================================================
   AUTHENTIC NEWSPAPER BROADSHEET SECTION GRID & HAIRLINE RULES
   Strict Newsprint Styling: No Card Containers, No Shadows, Square Corners
   ========================================================================== */
.section-index-broadsheet-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--color-rule);
    margin-top: 0.75rem;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    gap: 0 !important;
}

@media (min-width: 768px) {
    .section-index-broadsheet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .section-index-broadsheet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-index-grid-cell {
    padding: 1.15rem 1.15rem;
    border-bottom: 1px solid var(--color-rule);
    border-right: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .section-index-grid-cell {
        border-right: 1px solid var(--color-rule);
    }
    .section-index-grid-cell:nth-child(2n) {
        border-right: none;
    }
    .section-index-grid-cell:nth-last-child(-n+2):nth-child(2n+1),
    .section-index-grid-cell:nth-last-child(-n+2):nth-child(2n+1) ~ .section-index-grid-cell {
        border-bottom: none;
    }
}

@media (min-width: 1024px) {
    .section-index-grid-cell {
        border-right: 1px solid var(--color-rule);
    }
    .section-index-grid-cell:nth-child(2n) {
        border-right: 1px solid var(--color-rule);
    }
    .section-index-grid-cell:nth-child(3n) {
        border-right: none;
    }
    .section-index-grid-cell:nth-last-child(-n+3):nth-child(3n+1),
    .section-index-grid-cell:nth-last-child(-n+3):nth-child(3n+1) ~ .section-index-grid-cell {
        border-bottom: none;
    }
}

.section-index-grid-cell img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    margin-bottom: 0.6rem;
    border-radius: 0 !important;
    border: 1px solid var(--color-rule);
}

.broadsheet-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 2px solid var(--color-ink);
    border-bottom: 2px solid var(--color-ink);
    margin-top: 0.75rem;
    background: transparent;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .broadsheet-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .broadsheet-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.broadsheet-grid-item {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--color-rule);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

@media (min-width: 768px) {
    .broadsheet-grid-item {
        border-right: 1px solid var(--color-rule);
    }
    .broadsheet-grid-item:nth-child(2n) {
        border-right: none;
    }
}

@media (min-width: 1024px) {
    .broadsheet-grid-item {
        border-right: 1px solid var(--color-rule);
    }
    .broadsheet-grid-item:nth-child(2n) {
        border-right: 1px solid var(--color-rule);
    }
    .broadsheet-grid-item:nth-child(3n) {
        border-right: none;
    }
}

.broadsheet-grid-item img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    margin-bottom: 0.6rem;
    border-radius: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.broadsheet-headline {
    font-family: var(--font-condensed);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.012em;
}

.broadsheet-headline a:hover {
    color: var(--color-brandred);
}

.broadsheet-body-text {
    margin-top: 0.45rem;
    text-align: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    font-family: var(--font-serifhead);
    font-size: 13px;
    line-height: 1.42;
    color: var(--color-ink);
}

@media (min-width: 640px) {
    .broadsheet-body-text {
        text-align: justify;
    }
}

.broadsheet-item-footer {
    margin-top: 0.85rem;
    border-top: 1px dashed var(--color-rule);
    padding-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.turn-page-link {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-brandred);
    cursor: pointer;
}

.turn-page-link:hover {
    text-decoration: underline;
}

.section-tag {
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-brandred);
}

/* ==========================================================================
   INSIDE BROADSHEET NEWSPAPER PAGE (PAGE 2, PAGE 3, ETC.)
   ========================================================================== */
.inside-newspaper-page {
    margin-top: 0.5rem;
}

.inside-lead-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    border-bottom: 2px solid var(--color-ink);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
    .inside-lead-block {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.inside-lead-title {
    font-family: var(--font-poster);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

@media (min-width: 640px) {
    .inside-lead-title {
        font-size: 42px;
    }
}

.inside-lead-standfirst {
    margin-top: 0.4rem;
    font-family: var(--font-serifhead);
    font-size: 15px;
    font-style: italic;
    color: var(--color-stone);
    line-height: 1.35;
}

/* ==========================================================================
   ARTICLE FULL DETAIL PAGE VIEW
   ========================================================================== */
.article-detail-container {
    margin-top: 1rem;
    min-width: 0;
    max-width: 100%;
}

.article-detail-tag {
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-brandred);
}

.article-detail-title {
    margin-top: 0.35rem;
    font-family: var(--font-poster);
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.10;
    letter-spacing: 0.012em;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 640px) {
    .article-detail-title {
        font-size: 58px;
    }
}

.article-detail-standfirst {
    margin-top: 0.5rem;
    font-family: var(--font-serifhead);
    font-size: 16px;
    font-style: italic;
    color: var(--color-stone);
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.article-detail-byline {
    margin-top: 0.6rem;
    border-top: 1px solid var(--color-rule);
    border-bottom: 1px solid var(--color-rule);
    padding: 0.35rem 0;
    font-family: var(--font-condensed);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.article-detail-figure {
    margin-top: 0.75rem;
    min-width: 0;
    max-width: 100%;
}

.article-detail-body {
    margin-top: 1rem;
    font-family: var(--font-serifhead);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.article-detail-body p {
    margin-bottom: 0.75rem;
    text-align: left;
}

@media (min-width: 640px) {
    .article-detail-body p {
        text-align: justify;
    }
}

/* ==========================================================================
   INTERVIEW & Q&A TYPOGRAPHY
   ========================================================================== */
.article-qa-question-wrap {
    margin-top: 1.4rem;
    margin-bottom: 0.35rem;
}

.article-qa-question {
    font-family: var(--font-serifhead);
    font-size: 18px;
    font-weight: 700 !important;
    line-height: 1.45;
    color: var(--color-ink);
    margin: 0 0 0.35rem 0;
    text-align: left !important;
}

.article-qa-question strong {
    font-weight: 700 !important;
    color: var(--color-ink);
}

.article-qa-answer {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-family: var(--font-serifhead);
    line-height: 1.65;
}

.col-qa-question {
    font-family: var(--font-serifhead);
    font-size: 14.5px;
    font-weight: 700 !important;
    line-height: 1.4;
    color: var(--color-ink);
    margin-top: 0.85rem;
    margin-bottom: 0.25rem;
    text-align: left !important;
}

.col-qa-question strong {
    font-weight: 700 !important;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: underline;
    cursor: pointer;
}

.back-link:hover {
    color: var(--color-brandred);
}

/* ==========================================================================
   ARCHIVE SEARCH VIEW
   ========================================================================== */
.page-header-title {
    margin-top: 1rem;
    border-bottom: 3px solid var(--color-ink);
    padding-bottom: 0.35rem;
    font-family: var(--font-poster);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.12;
    letter-spacing: 0.015em;
}

@media (min-width: 640px) {
    .page-header-title {
        font-size: 48px;
    }
}

.search-input-field {
    margin-top: 0.75rem;
    width: 100%;
    border: 2px solid var(--color-ink);
    background-color: var(--color-paper);
    padding: 0.6rem 0.85rem;
    font-family: var(--font-serifhead);
    font-size: 16px;
    outline: none;
    border-radius: 0;
}

.search-input-field:focus {
    box-shadow: 0 0 0 2px var(--color-ink);
}

.search-results-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-item {
    border-bottom: 1px solid var(--color-rule);
    padding-bottom: 0.75rem;
}

.search-item h2 {
    font-family: var(--font-poster);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.015em;
}

.search-item h2 a:hover {
    color: var(--color-brandred);
}

.search-item p {
    margin-top: 0.25rem;
    font-family: var(--font-serifhead);
    font-size: 14px;
    color: var(--color-stone);
}

/* ==========================================================================
   NEWSROOM LOGIN & AUTH VIEW
   ========================================================================== */
.auth-box {
    margin: 2rem auto 0 auto;
    max-width: 440px;
    border: 2px solid var(--color-ink);
    background-color: var(--color-paper);
    padding: 1.5rem;
    border-radius: 0;
}

.auth-title {
    font-family: var(--font-poster);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.015em;
}

.auth-subtitle {
    margin-top: 0.25rem;
    font-family: var(--font-serifhead);
    font-size: 13px;
    font-style: italic;
    color: var(--color-stone);
}

.auth-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-standard {
    width: 100%;
    border: 1px solid var(--color-ink);
    background-color: var(--color-paper);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-serifhead);
    font-size: 15px;
    outline: none;
    border-radius: 0;
}

.input-standard:focus {
    box-shadow: 0 0 0 1px var(--color-ink);
}

.btn-primary {
    width: 100%;
    background-color: var(--color-ink);
    color: var(--color-paper);
    border: 1px solid var(--color-ink);
    padding: 0.55rem 0.75rem;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    border-radius: 0;
    transition: opacity 0.15s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-ink);
    border: 1px solid var(--color-ink);
    padding: 0.45rem 0.75rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    border-radius: 0;
}

.btn-secondary:hover {
    background-color: rgba(0,0,0,0.05);
}

.btn-danger {
    background-color: transparent;
    color: var(--color-brandred);
    border: 1px solid var(--color-brandred);
    padding: 0.35rem 0.6rem;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 0;
}

.btn-danger:hover {
    background-color: var(--color-brandred);
    color: white;
}

.auth-error {
    margin-top: 0.75rem;
    font-family: var(--font-serifhead);
    font-size: 13px;
    color: var(--color-brandred);
}

/* ==========================================================================
   NEWSROOM DESK (CMS) VIEW
   ========================================================================== */
.newsroom-header {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 2px solid var(--color-ink);
    border-bottom: 2px solid var(--color-ink);
    padding: 0.5rem 0;
}

.newsroom-title {
    font-family: var(--font-poster);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.015em;
}

@media (min-width: 640px) {
    .newsroom-title {
        font-size: 34px;
    }
}

.field-label {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-stone);
    display: block;
    margin-bottom: 0.2rem;
}

.cms-card {
    margin-top: 1rem;
    border: 1px solid var(--color-rule);
    padding: 0.85rem;
    background-color: var(--color-paper);
    border-radius: 0;
}

.cms-card-primary {
    border: 2px solid var(--color-ink);
}

.cms-grid-2 {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cms-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cms-grid-3 {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cms-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cms-grid-4 {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cms-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cms-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.story-table-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-rule);
}

/* ==========================================================================
   REGISTRATION CALIBRATION MARKS & FOOTER
   ========================================================================== */
.calibration-dots-strip {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--color-rule);
    padding-top: 0.75rem;
}

.dot-cluster {
    display: flex;
    gap: 0.35rem;
}

.reg-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

@media (min-width: 640px) {
    .reg-dot {
        width: 14px;
        height: 14px;
    }
}

.footer-credits {
    margin-top: 1rem;
    border-top: 2px solid var(--color-ink);
    padding-top: 0.75rem;
    text-align: center;
    font-family: var(--font-serifhead);
    font-size: 12px;
    color: var(--color-stone);
}

.footer-credits a {
    text-decoration: underline;
}

.footer-credits a:hover {
    color: var(--color-brandred);
}

/* ==========================================================================
   CONTINUATION NEWSPAPER SCROLL
   All stories below the front-page lead render as a continuous broadsheet page
   No card containers · No shadows · No rounded corners
   Hairline 1px column rules only
   ========================================================================== */

/* Wrapper for the continuation section */
.continuation-scroll {
    margin-top: 0;
    min-width: 0;
    max-width: 100%;
}

/* Top rule that separates front page from continuation (thick double rule) */
.continuation-rule-top {
    margin-top: 1.25rem;
    border-top: 3px double var(--color-ink);
    padding-top: 0.1rem;
    border-bottom: 1px solid var(--color-ink);
    margin-bottom: 0;
}

/* Each horizontal row of stories */
.cont-row {
    display: grid;
    border-bottom: 1px solid var(--color-rule);
    min-width: 0;
    max-width: 100%;
}

/* 3-column row */
.cont-row-3col {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .cont-row-3col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .cont-row-3col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 2-column row: wide feature + narrow brief */
.cont-row-2col {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .cont-row-2col {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

/* Briefs row: two small columns */
.cont-row-briefs {
    grid-template-columns: minmax(0, 1fr);
    background-color: var(--color-tint);
}

@media (min-width: 640px) {
    .cont-row-briefs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Each column cell */
.cont-cell {
    padding: 1rem 1rem;
    border-left: 1px solid var(--color-rule);
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cont-cell > * {
    min-width: 0;
    max-width: 100%;
}

/* No left border on the first cell in each row */
.cont-cell-first {
    border-left: none;
}

.cont-cell-wide {
    /* no extra styling needed, width comes from grid */
    min-width: 0;
}

.cont-cell-narrow {
    border-left: 1px solid var(--color-rule);
    min-width: 0;
}

.cont-brief {
    padding: 0.65rem 1rem;
}

/* Section tag inside continuation cell */
.cont-section-tag {
    font-family: var(--font-condensed);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-brandred);
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-brandred);
    padding-bottom: 0.15rem;
    display: inline-block;
}

/* Continuation headlines */
.cont-headline {
    font-family: var(--font-poster);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.14;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    margin-top: 0.25rem;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.cont-headline a:hover {
    color: var(--color-brandred);
}

@media (min-width: 640px) {
    .cont-headline {
        font-size: 24px;
    }
}

/* Brief headline (smaller) */
.cont-brief-headline {
    font-family: var(--font-condensed);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.012em;
    margin-top: 0.25rem;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.cont-brief-headline a:hover {
    color: var(--color-brandred);
}

/* Continuation standfirst */
.cont-standfirst {
    margin-top: 0.3rem;
    font-family: var(--font-serifhead);
    font-size: 13px;
    font-style: italic;
    color: var(--color-stone);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

/* Continuation figure */
.cont-figure {
    margin: 0.5rem 0;
    min-width: 0;
    max-width: 100%;
}

.cont-figure img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

@media (min-width: 640px) {
    .cont-figure img {
        max-height: 220px;
    }
}


/* Continuation body text */
.cont-body {
    margin-top: 0.4rem;
    font-family: var(--font-serifhead);
    font-size: 13px;
    line-height: 1.42;
    text-align: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 640px) {
    .cont-body {
        text-align: justify;
    }
}

.cont-body p {
    margin-bottom: 0.4rem;
    text-indent: 0;
}

.cont-body p.dropcap:first-letter {
    float: left;
    font-family: var(--font-serifhead);
    padding-right: 5px;
    font-size: 38px;
    font-weight: 700;
    line-height: 0.82;
}

/* Mobile: stack all cells vertically and add top border instead of left */
@media (max-width: 639px) {
    .cont-cell {
        border-left: none;
        border-top: 1px solid var(--color-rule);
        padding: 0.75rem 0.5rem;
    }
    .cont-cell-first {
        border-top: none;
    }
    .cont-headline {
        font-size: 20px;
    }
}

/* ==========================================================================
   ADMIN TAB PILLS (Stories | Video Clippings | Site Settings)
   ========================================================================== */
.admin-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
    border-bottom: 2px solid var(--color-ink);
    padding-bottom: 0.35rem;
}

.admin-tab-pill {
    background: transparent;
    border: 1px solid var(--color-rule);
    color: var(--color-stone);
    padding: 0.4rem 1.1rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.12s ease;
}

.admin-tab-pill:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-ink);
}

.admin-tab-pill--active {
    background: var(--color-ink);
    color: var(--color-paper);
    border-color: var(--color-ink);
}

/* ==========================================================================
   VIDEO CLIPPINGS — PUBLIC SECTION
   Newspaper-authentic: thick rule header, no cards, square corners
   ========================================================================== */

/* Outer wrapper — sits below the continuation scroll */
.iv-section {
    margin-top: 1.5rem;
    border-top: 3px double var(--color-ink);
    padding-top: 1rem;
}

/* Section header (rule — title — rule) */
.iv-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.iv-section-rule {
    flex: 1;
    height: 1px;
    background: var(--color-ink);
}

.iv-section-title {
    font-family: var(--font-poster);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
}

@media (min-width: 640px) {
    .iv-section-title {
        font-size: 28px;
    }
}

/* Responsive grid of video cards */
.iv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--color-rule);
    border-left: 1px solid var(--color-rule);
}

@media (min-width: 600px) {
    .iv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .iv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual card — newspaper cell, no shadow or radius */
.iv-card {
    border-right: 1px solid var(--color-rule);
    border-bottom: 1px solid var(--color-rule);
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
}

/* 16:9 video wrapper */
.iv-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #111;
    overflow: hidden;
    border-radius: 0 !important;
}

.iv-video-wrapper iframe,
.iv-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 !important;
}

.iv-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

/* Centered play symbol for missing preview */
.iv-no-video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-stone);
    font-family: var(--font-condensed);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--color-tint);
}

/* Text area below video */
.iv-card-body {
    padding: 0.75rem 0.9rem;
    flex: 1;
}

.iv-tag {
    font-family: var(--font-condensed);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-brandred);
    border-bottom: 1px solid var(--color-brandred);
    padding-bottom: 0.15rem;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.iv-title {
    font-family: var(--font-condensed);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.012em;
    margin-bottom: 0.3rem;
}

.iv-guest {
    font-family: var(--font-serifhead);
    font-size: 12px;
    color: var(--color-stone);
    margin-bottom: 0.25rem;
}

.iv-guest strong {
    color: var(--color-ink);
}

.iv-desc {
    font-family: var(--font-serifhead);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--color-ink);
    font-style: italic;
    margin-bottom: 0.2rem;
}

.iv-date {
    font-family: var(--font-condensed);
    font-size: 11px;
    color: var(--color-stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Mobile: full-width cards */
@media (max-width: 599px) {
    .iv-grid {
        grid-template-columns: 1fr;
    }
    .iv-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   BREAKING NEWS BANNER
   ========================================================================== */
.breaking-banner {
    display: flex;
    align-items: center;
    background: #111418;
    color: #fff;
    margin-bottom: 0.5rem;
    border: 1px solid #222;
    border-left: 4px solid var(--color-brandred);
    height: 38px;
    overflow: hidden;
    position: relative;
}

.breaking-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
    background: #111418;
    z-index: 3;
    flex-shrink: 0;
    height: 100%;
    border-right: 1px solid #2a2a2a;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.45);
}

.breaking-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--color-brandred);
    border-radius: 50% !important;
    animation: breaking-pulse 1.4s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes breaking-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.breaking-label {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-brandred);
    padding: 0.15rem 0.45rem;
    flex-shrink: 0;
}

.breaking-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

.breaking-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll-right 30s linear infinite;
    will-change: transform;
}

.breaking-banner:hover .breaking-ticker-track,
.breaking-ticker-viewport:hover .breaking-ticker-track,
.breaking-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.breaking-ticker-item {
    flex-shrink: 0;
    padding-right: 5rem;
    display: flex;
    align-items: center;
}

.breaking-headline-link {
    font-family: var(--font-serifhead);
    font-size: 14px;
    font-weight: 600;
    color: #f1f1f1;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.breaking-headline-link:hover {
    color: #fff;
    text-decoration: underline;
}

.breaking-arrow {
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fca5a5;
    margin-left: 0.25rem;
}

/* ==========================================================================
   SOCIAL SHARE TOOLBAR
   ========================================================================== */
.social-share-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
    padding: 0.65rem 0;
    border-top: 1px solid var(--color-rule);
    border-bottom: 1px solid var(--color-rule);
}

.share-label {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-stone);
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-ink);
    background: var(--color-paper);
    color: var(--color-ink);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn-whatsapp {
    background: #075e54;
    color: #ffffff !important;
    border-color: #075e54;
    font-weight: 700;
}

.share-btn-whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
}

.share-btn-x:hover {
    background: #111;
    color: #fff;
}

.share-btn-fb:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-btn-copy:hover {
    background: var(--color-ink);
    color: var(--color-paper);
}

.share-copy-toast {
    font-size: 11px;
    font-family: var(--font-condensed);
    color: #059669;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   REPOSITIONABLE STORY IMAGE / TEXT LAYOUTS
   ========================================================================== */
.article-detail-body {
    font-family: var(--font-serifhead);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-ink);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.article-detail-body::after {
    content: "";
    display: table;
    clear: both;
}

.article-float-figure {
    margin: 0;
}

.article-float-figure img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--color-ink);
}

.article-layout-top .article-detail-figure {
    width: 100%;
    margin: 1.25rem 0 1.5rem 0;
}

.article-layout-top .article-detail-figure img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--color-ink);
}

.article-layout-left .article-float-figure {
    float: left;
    width: 45%;
    max-width: 420px;
    margin: 0.35rem 1.75rem 1.25rem 0;
}

.article-layout-right .article-float-figure {
    float: right;
    width: 45%;
    max-width: 420px;
    margin: 0.35rem 0 1.25rem 1.75rem;
}

.article-layout-banner .article-hero-banner {
    width: 100%;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-ink);
}

.article-layout-banner .article-hero-banner img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--color-ink);
}

@media (max-width: 768px) {
    .article-layout-left .article-float-figure,
    .article-layout-right .article-float-figure {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.25rem 0;
    }

    /* Mobile responsive image sizing: scale to container width naturally without unwanted cropping */
    .article-detail-figure,
    .article-float-figure,
    .article-hero-banner,
    .article-lead-media-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .article-detail-figure img,
    .article-float-figure img,
    .article-hero-banner img,
    .article-lead-media-wrap img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 75vh !important;
        object-fit: contain !important;
    }

    /* Mobile gallery badge: clearly visible & easy to tap */
    .gallery-badge-overlay {
        top: 12px;
        right: 12px;
        padding: 7px 16px;
        gap: 7px;
    }

    .gallery-badge-icon svg {
        width: 16px;
        height: 16px;
    }

    .gallery-badge-count {
        font-size: 16px;
    }
}

.story-table-row--lead {
    background: #fffbeb !important;
    border-left: 5px solid #d97706 !important;
    border-top: 1px solid #fde68a !important;
    border-bottom: 1px solid #fde68a !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    margin-bottom: 0.35rem;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.12);
}

.badge-lead-banner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #78350f;
    color: #fef3c7;
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 3px 9px;
    border: 1px solid #d97706;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-make-lead {
    background: transparent;
    border: 1px solid var(--color-ink);
    color: var(--color-ink);
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-make-lead:hover {
    background: #fef08a;
    color: #000;
    border-color: #ca8a04;
}

.admin-lead-help-box {
    margin-top: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: #fffbeb;
    border: 1px solid #fef08a;
    font-size: 12px;
    line-height: 1.4;
    color: #78350f;
    font-family: var(--font-condensed);
}

/* ==========================================================================
   ADMIN LAYOUT PICKER & PREVIEW CARDS
   ========================================================================== */
.layout-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.layout-picker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--color-rule);
    background: var(--color-paper);
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.15s ease;
}

.layout-picker-card input[type="radio"] {
    position: absolute;
    top: 6px;
    left: 6px;
}

.layout-picker-card.active,
.layout-picker-card:has(input:checked) {
    border-color: var(--color-ink);
    background: #fdf5e8;
    box-shadow: inset 0 0 0 1px var(--color-ink);
}

/* Floating Toast Notification */
.dnl-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    background: #111827;
    color: #fff;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-left: 5px solid #059669;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.dnl-toast.dnl-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.dnl-toast--error {
    border-left-color: #dc2626;
}

.layout-preview-box {
    width: 80px;
    height: 54px;
    border: 1px solid #a0a0a0;
    background: #fff;
    padding: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.layout-mock-img {
    background: #737373;
    height: 20px;
    width: 100%;
}

.layout-mock-img.float-left {
    float: left;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    margin-bottom: 2px;
}

.layout-mock-img.float-right {
    float: right;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    margin-bottom: 2px;
}

.layout-mock-line {
    background: #d4d4d4;
    height: 3px;
    width: 100%;
}

.layout-mock-banner {
    background: #525252;
    height: 18px;
    width: 100%;
    margin-bottom: 2px;
}

.layout-mock-head {
    background: #171717;
    height: 5px;
    width: 85%;
    margin-bottom: 3px;
}

.layout-mock-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 18px;
}

.layout-mock-cols div {
    background: #e5e5e5;
    height: 100%;
}

.layout-title {
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-ink);
}

.layout-desc {
    font-family: var(--font-serifhead);
    font-size: 10.5px;
    color: var(--color-stone);
    font-style: italic;
}

/* ==========================================================================
   RELATED ARTICLES SECTION
   ========================================================================== */
.related-articles-section {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--color-ink);
}

.related-section-title {
    font-family: var(--font-poster);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-card {
    border-right: 1px solid var(--color-rule);
    padding-right: 1.25rem;
    display: flex;
    flex-direction: column;
}

.related-card:last-child {
    border-right: none;
    padding-right: 0;
}

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.related-tag {
    font-family: var(--font-condensed);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-brandred);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.2rem;
}

.related-headline {
    font-family: var(--font-serifhead);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.related-byline {
    font-family: var(--font-condensed);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-stone);
    letter-spacing: 0.08em;
}

/* ==========================================================================
   EDITOR'S DESK SECTION (TOP HERO BANNER)
   ========================================================================== */
.editor-desk-section {
    margin: 1rem 0 1.75rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-ink);
}

.editor-desk-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editor-desk-card {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    background: var(--color-tint);
    border: 1px solid var(--color-rule);
    padding: 1.35rem 1.5rem;
}

.editor-desk-avatar {
    flex-shrink: 0;
}

.editor-desk-avatar img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
    border: 2px solid var(--color-ink);
}

.editor-desk-info {
    flex: 1;
}

.editor-desk-name {
    font-family: var(--font-poster);
    font-size: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.editor-desk-role {
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brandred);
    margin-bottom: 0.65rem;
}

.editor-desk-bio-body {
    margin-bottom: 0.85rem;
}

.editor-desk-bio-p {
    font-family: var(--font-serifhead);
    font-size: 14px;
    color: var(--color-ink);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.editor-desk-bio-p:last-child {
    margin-bottom: 0;
}

.editor-desk-socials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.editor-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--color-ink);
    background: var(--color-paper);
    color: var(--color-ink);
    text-decoration: none;
    transition: all 0.15s ease;
}

.editor-social-link:hover {
    background: var(--color-ink);
    color: var(--color-paper);
}

.editor-social-ig:hover {
    background: #e1306c;
    border-color: #e1306c;
    color: #fff;
}

.editor-social-tw:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.editor-social-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.editor-social-blog:hover {
    background: #f57c00;
    border-color: #f57c00;
    color: #fff;
}

@media (max-width: 768px) {
    .editor-desk-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ==========================================================================
   ANALYTICS TABLE & STATUS BADGES
   ========================================================================== */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-family: var(--font-serifhead);
}

.analytics-table th {
    background: var(--color-ink);
    color: var(--color-paper);
    font-family: var(--font-condensed);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.analytics-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-rule);
    font-size: 14px;
}

.analytics-table tr:hover {
    background: var(--color-tint);
}

.views-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    background: #e2e8f0;
    color: #1e293b;
    padding: 0.2rem 0.5rem;
}

.breaking-status-badge {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--color-brandred);
    color: #fff;
    padding: 0.15rem 0.4rem;
}

/* ==========================================================================
   EDITION ARCHIVE & FRONT-PAGE GALLERY
   ========================================================================== */
.gallery-page-container {
    margin-top: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

.clipping-card {
    background: var(--color-paper);
    border: 1px solid var(--color-ink);
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}

.clipping-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.clipping-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--color-tint);
    overflow: hidden;
    border: 1px solid var(--color-rule);
}

.clipping-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.25s ease;
}

.clipping-card:hover .clipping-thumb {
    transform: scale(1.02);
}

.clipping-overlay-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(26, 27, 29, 0.88);
    color: #fff;
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--color-rule);
    opacity: 0.9;
}

.clipping-card-footer {
    padding: 0.65rem 0.25rem 0.25rem 0.25rem;
    border-top: 1px solid var(--color-rule);
    margin-top: 0.5rem;
}

.clipping-date-badge {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brandred);
}

.clipping-caption {
    font-family: var(--font-serifhead);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-ink);
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lightbox Modal */
.clipping-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: lightbox-fade-in 0.2s ease-out;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.clipping-lightbox-backdrop {
    position: absolute;
    inset: 0;
}

.clipping-lightbox-container {
    position: relative;
    z-index: 10;
    background: var(--color-paper);
    border: 2px solid var(--color-ink);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    max-width: 95vw;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: fit-content;
}

.clipping-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--color-tint);
    border-bottom: 2px solid var(--color-ink);
    padding: 0.6rem 1rem;
}

.clipping-lightbox-date {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-brandred);
}

.clipping-lightbox-title {
    font-family: var(--font-serifhead);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ink);
    margin-top: 0.15rem;
}

.clipping-lightbox-ext-btn {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-ink);
    background: var(--color-paper);
    color: var(--color-ink);
    text-decoration: none;
}

.clipping-lightbox-ext-btn:hover {
    background: var(--color-ink);
    color: var(--color-paper);
}

.clipping-lightbox-close-btn {
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-brandred);
    background: var(--color-brandred);
    color: #fff;
    cursor: pointer;
}

.clipping-lightbox-close-btn:hover {
    background: #900c12;
}

.clipping-lightbox-body {
    flex: 1;
    overflow: auto;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.clipping-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Admin Clippings List */
.clipping-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clipping-admin-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-rule);
    background: var(--color-tint);
}

.clipping-admin-thumb {
    width: 65px;
    height: 85px;
    object-fit: cover;
    border: 1px solid var(--color-ink);
    flex-shrink: 0;
}

.clipping-admin-info {
    flex: 1;
    min-width: 0;
}

/* ─── STORY PHOTO GALLERY & LIGHTBOX ───────────────────────────────── */
.cms-gallery-manager {
    border: 2px dashed var(--color-rule);
    padding: 1.15rem;
    background-color: var(--color-tint);
    margin-top: 1rem;
    transition: border-color 0.2s;
}

.gallery-count-badge {
    font-size: 11px;
    background: var(--color-ink);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-thumbnails-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.gallery-thumb-item {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid var(--color-ink);
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-remove-gallery-img {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: var(--color-brandred);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.15s, background 0.15s;
    padding: 0;
}

.btn-remove-gallery-img:hover {
    background: #7a090e;
    transform: scale(1.15);
}

/* Public Article Lead Media Wrap & Instagram-style Gallery Indicator */
.article-lead-media-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--color-ink);
}

.article-lead-media-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.article-lead-media-wrap:hover img {
    opacity: 0.96;
    transform: scale(1.015);
}

.article-lead-media-wrap:focus-visible {
    outline: 2px solid var(--color-brandred);
    outline-offset: 2px;
}

/* Instagram-style "+N" Pill Badge Overlay (Noticeably Larger & Touch-Friendly) */
.gallery-badge-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
    user-select: none;
}

.article-lead-media-wrap:hover .gallery-badge-overlay,
.gallery-badge-overlay:hover {
    background: rgba(15, 23, 42, 0.98);
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65);
}

.gallery-badge-overlay:active {
    transform: scale(0.96);
}

.gallery-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
}

.gallery-badge-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gallery-badge-count {
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Photo Gallery Lightbox */
.article-gallery-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.article-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.article-gallery-modal-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}

.article-gallery-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.article-gallery-counter {
    font-family: var(--font-headline);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.article-gallery-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.article-gallery-close-btn:hover {
    background: var(--color-brandred);
    border-color: var(--color-brandred);
    transform: scale(1.08);
}

.article-gallery-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
}

.article-gallery-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
    width: 100%;
}

.article-gallery-img-wrap img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    user-select: none;
}

.article-gallery-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    user-select: none;
}

.article-gallery-arrow-btn.prev {
    left: 8px;
}

.article-gallery-arrow-btn.next {
    right: 8px;
}

.article-gallery-arrow-btn:hover {
    background: var(--color-brandred);
    border-color: var(--color-brandred);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .article-gallery-arrow-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .article-gallery-arrow-btn.prev {
        left: 4px;
    }
    .article-gallery-arrow-btn.next {
        right: 4px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    body {
        background: white !important;
        padding: 0 !important;
    }
    .paper {
        box-shadow: none !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .masthead-marquee {
        animation: none !important;
    }
    .nav-bar, .footer-credits a, .btn-primary, .btn-secondary, .edition-page-bar {
        display: none !important;
    }
}


