/* ═══════════════════════════════════════════════════════════════════════════
   newspaper.css — Premium newspaper-style design system
   The Global Tribune (World) & 台灣日報 (Taiwan)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
    /* Colors — Warm Newsprint */
    --bg-paper:         #f8f4eb;
    --bg-paper-alt:     #f0ebe0;
    --bg-white:         #ffffff;
    --bg-dark:          #1a1a1a;
    --bg-nav:           #0d1117;

    --text-primary:     #1a1a1a;
    --text-secondary:   #3d3d3d;
    --text-tertiary:    #6b6b6b;
    --text-muted:       #999999;
    --text-inverse:     #f8f4eb;

    --accent-red:       #c41e3a;
    --accent-red-hover: #a01830;
    --accent-gold:      #b8860b;
    --accent-blue:      #1a3a5c;
    --accent-blue-hover:#15304c;
    --accent-green:     #2d6a4f;

    --border-rule:      #c4b8a4;
    --border-rule-light:#ddd4c4;
    --border-rule-dark: #8a7e6e;

    --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:        0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:        0 8px 24px rgba(0,0,0,0.12);
    --shadow-hover:     0 12px 32px rgba(0,0,0,0.15);

    /* Typography Scale */
    --font-headline:    'Playfair Display', 'Noto Serif TC', Georgia, serif;
    --font-body:        'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    --fs-hero:          clamp(2rem, 5vw, 3.5rem);
    --fs-h1:            clamp(1.5rem, 3.5vw, 2.5rem);
    --fs-h2:            clamp(1.25rem, 2.5vw, 1.75rem);
    --fs-h3:            clamp(1.05rem, 2vw, 1.35rem);
    --fs-body:          1rem;
    --fs-small:         0.875rem;
    --fs-xs:            0.75rem;

    /* Spacing */
    --space-xs:         0.25rem;
    --space-sm:         0.5rem;
    --space-md:         1rem;
    --space-lg:         1.5rem;
    --space-xl:         2rem;
    --space-2xl:        3rem;
    --space-3xl:        4rem;

/* --- Layout --- */
    --max-width:        1200px;
    --content-padding:  clamp(1rem, 3vw, 2rem);

    /* Transitions */
    --transition-fast:  150ms ease;
    --transition-base:  250ms ease;
    --transition-slow:  400ms ease;
}


/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    background-color: var(--bg-paper);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--content-padding);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.6s ease-out;
}

.landing-hero {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.landing-decoration-top {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--border-rule-dark), transparent);
    margin: 0 auto var(--space-lg);
}

.landing-title {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.landing-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

.landing-rule {
    width: 200px;
    height: 1px;
    background: var(--border-rule);
    margin: var(--space-lg) auto;
}

.landing-date {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-style: italic;
}


/* ─── Landing Cards ─────────────────────────────────────────────────────── */

.landing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    width: 100%;
    max-width: 800px;
}

.landing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--bg-white);
    border: 1px solid var(--border-rule-light);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    overflow: hidden;
}

.landing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height var(--transition-base);
}

.landing-card--world::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-hover));
}

.landing-card--taiwan::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.landing-card:hover::before {
    height: 6px;
}

.landing-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

/* Styled icon badges (replace emojis for Windows compatibility) */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.icon-badge--world {
    background: linear-gradient(135deg, var(--accent-blue), #2a5a8c);
}

.icon-badge--taiwan {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    font-family: 'Noto Serif TC', var(--font-headline);
}

.landing-card__title {
    font-family: var(--font-headline);
    font-size: var(--fs-h1);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.landing-card--taiwan .landing-card__title {
    font-family: 'Noto Serif TC', var(--font-headline);
}

.landing-card__desc {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--space-lg);
}

.landing-card__cta {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent-blue);
    transition: all var(--transition-fast);
}

.landing-card--taiwan .landing-card__cta {
    color: var(--accent-red);
}

.landing-card:hover .landing-card__cta {
    letter-spacing: 0.05em;
}


/* ─── Landing Footer ────────────────────────────────────────────────────── */

.landing-footer {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-rule-light);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    max-width: 600px;
    line-height: 1.8;
}

.landing-footer__note {
    margin-top: var(--space-xs);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════════════════
   NEWSPAPER PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.newspaper-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    animation: fadeIn 0.5s ease-out;
}


/* ─── Navigation Bar ────────────────────────────────────────────────────── */

.newspaper-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-nav);
    color: var(--text-inverse);
    margin: 0 calc(-1 * var(--content-padding));
    font-size: var(--fs-small);
    box-shadow: var(--shadow-md);
}

.nav-home {
    color: var(--text-inverse);
    font-weight: 600;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.nav-home:hover {
    opacity: 1;
    color: var(--text-inverse);
}

.nav-editions {
    display: flex;
    gap: var(--space-sm);
}

.nav-edition {
    color: var(--text-inverse);
    padding: var(--space-xs) var(--space-md);
    border-radius: 3px;
    opacity: 0.6;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-edition:hover {
    opacity: 0.9;
    color: var(--text-inverse);
}

.nav-edition:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 var(--space-sm);
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
}

.archive-selector {
    display: flex;
    align-items: center;
}

.archive-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-xs);
    font-family: var(--font-body);
    padding: 3px 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-short);
}

.archive-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.archive-select option {
    background: #1a1a1a;
    color: white;
}

.nav-meta {
    font-size: var(--fs-xs);
    opacity: 0.5;
}


/* ─── Masthead ──────────────────────────────────────────────────────────── */

.masthead {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.masthead__rule-top,
.masthead__rule-bottom {
    height: 2px;
    background: var(--text-primary);
    margin: 0 auto;
}

.masthead__rule-top {
    margin-bottom: var(--space-md);
}

.masthead__rule-bottom {
    margin-top: var(--space-md);
    height: 1px;
    background: var(--border-rule);
}

.masthead__title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Chinese masthead styling */
.newspaper-page[data-edition="taiwan"] .masthead__title {
    font-family: 'Noto Serif TC', var(--font-headline);
    letter-spacing: 0.1em;
}

.masthead__subtitle {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

.newspaper-page[data-edition="taiwan"] .masthead__subtitle {
    text-transform: none;
    letter-spacing: 0.15em;
}

.masthead__dateline {
    margin-top: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.masthead__separator {
    opacity: 0.3;
}


/* ─── Hero Section ──────────────────────────────────────────────────────── */

.hero-section {
    padding: var(--space-xl) 0;
    border-bottom: 2px solid var(--text-primary);
}

.hero-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.hero-article__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--bg-paper-alt);
    aspect-ratio: 16/10;
}

.hero-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-article:hover .hero-article__image {
    transform: scale(1.03);
}

.hero-article__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-paper-alt), var(--border-rule-light));
    color: var(--text-muted);
}

.hero-article__content {
    display: flex;
    flex-direction: column;
}

.hero-article__category {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    margin-bottom: var(--space-sm);
}

.hero-article__headline {
    font-family: var(--font-headline);
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    transition: color var(--transition-fast);
}

.hero-article__headline:hover {
    color: var(--accent-blue);
}

.newspaper-page[data-edition="taiwan"] .hero-article__headline {
    font-family: 'Noto Serif TC', var(--font-headline);
    letter-spacing: 0.02em;
}

.hero-article__summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.hero-article__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: auto;
}

.hero-article__source {
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-paper-alt);
    padding: 2px 8px;
    border-radius: 2px;
}


/* ─── Secondary Articles ────────────────────────────────────────────────── */

.secondary-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border-rule);
}

.secondary-article {
    padding: var(--space-lg);
    border-right: 1px solid var(--border-rule-light);
    transition: background-color var(--transition-fast);
}

.secondary-article:last-child {
    border-right: none;
}

.secondary-article:hover {
    background: var(--bg-paper-alt);
}

.secondary-article__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: var(--space-md);
    aspect-ratio: 16/9;
    background: var(--bg-paper-alt);
}

.secondary-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.secondary-article:hover .secondary-article__image {
    transform: scale(1.04);
}

.secondary-article__headline {
    font-family: var(--font-headline);
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.secondary-article__headline a {
    color: inherit;
    transition: color var(--transition-fast);
}

.secondary-article__headline a:hover {
    color: var(--accent-blue);
}

.newspaper-page[data-edition="taiwan"] .secondary-article__headline {
    font-family: 'Noto Serif TC', var(--font-headline);
}

.secondary-article__summary {
    font-size: var(--fs-small);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-article__meta {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.secondary-article__source {
    font-weight: 600;
    color: var(--text-tertiary);
}


/* ─── Themed Sections ───────────────────────────────────────────────────── */

.sections-container {
    padding: var(--space-lg) 0;
}

.news-section {
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.4s ease-out both;
}

.news-section:nth-child(1) { animation-delay: 0.1s; }
.news-section:nth-child(2) { animation-delay: 0.15s; }
.news-section:nth-child(3) { animation-delay: 0.2s; }
.news-section:nth-child(4) { animation-delay: 0.25s; }
.news-section:nth-child(5) { animation-delay: 0.3s; }

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--text-primary);
}

.section-header__name {
    font-family: var(--font-headline);
    font-size: var(--fs-h2);
    font-weight: 700;
    white-space: nowrap;
}

.newspaper-page[data-edition="taiwan"] .section-header__name {
    font-family: 'Noto Serif TC', var(--font-headline);
    letter-spacing: 0.05em;
}

.section-header__rule {
    flex-grow: 1;
    height: 1px;
    background: var(--border-rule);
}

.section-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0;
}

.section-article {
    padding: var(--space-md) var(--space-lg);
    border-right: 1px solid var(--border-rule-light);
    border-bottom: 1px solid var(--border-rule-light);
    transition: background-color var(--transition-fast);
}

.section-article:hover {
    background: var(--bg-paper-alt);
}

.section-article__headline {
    font-family: var(--font-headline);
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-xs);
}

.section-article__headline a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.section-article__headline a:hover {
    color: var(--accent-blue);
}

.newspaper-page[data-edition="taiwan"] .section-article__headline {
    font-family: 'Noto Serif TC', var(--font-headline);
}

.section-article__summary {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-article__meta {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.section-article__source {
    font-weight: 600;
    color: var(--text-tertiary);
}


/* ─── Newspaper Footer ─────────────────────────────────────────────────── */

.newspaper-footer {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.footer-rule {
    height: 2px;
    background: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.footer-content {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto var(--space-sm);
    line-height: 1.6;
}

.footer-timestamp {
    font-style: italic;
    opacity: 0.7;
}


/* ─── Logout Button ───────────────────────────────────────────────────────── */

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logout-button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-inverse);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 3px;
    font-size: var(--fs-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logout-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* ─── Login Page ─────────────────────────────────────────────────────────── */

.login-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-paper);
    z-index: 2000;
    padding: var(--content-padding);
}

.login-container {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid var(--border-rule-light);
}

.login-title {
    font-family: var(--font-headline);
    font-size: var(--fs-h1);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.login-subtitle {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.login-rule {
    width: 100px;
    height: 1px;
    background: var(--border-rule);
    margin: var(--space-lg) auto;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-rule-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.login-button {
    width: 100%;
    padding: var(--space-md);
    background: var(--text-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.login-button:hover {
    background: var(--accent-blue);
}

.login-error {
    background: #fff5f5;
    color: #c53030;
    padding: var(--space-sm);
    border-radius: 4px;
    font-size: var(--fs-xs);
    margin-bottom: var(--space-md);
    text-align: center;
    border: 1px solid #feb2b2;
}

/* ─── Loading Overlay ───────────────────────────────────────────────────── */

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-paper);
    z-index: 1000;
    transition: opacity var(--transition-slow);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-rule-light);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--space-lg);
}

.loading-text {
    font-family: var(--font-headline);
    font-size: var(--fs-body);
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}


/* ─── Error State ───────────────────────────────────────────────────────── */

.error-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.error-title {
    font-family: var(--font-headline);
    font-size: var(--fs-h1);
    margin-bottom: var(--space-md);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-retry {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: var(--text-primary);
    color: var(--text-inverse);
    border-radius: 3px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.error-retry:hover {
    background: var(--accent-blue);
    color: var(--text-inverse);
    transform: translateY(-1px);
}


/* ─── Animations ────────────────────────────────────────────────────────── */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
    .hero-article {
        grid-template-columns: 1fr;
    }

    .hero-article__image-wrap {
        aspect-ratio: 16/8;
    }

    .secondary-section {
        grid-template-columns: 1fr 1fr;
    }

    .secondary-article:nth-child(2) {
        border-right: none;
    }

    .secondary-article:nth-child(3) {
        border-right: none;
        grid-column: 1 / -1;
        border-top: 1px solid var(--border-rule-light);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .landing-cards {
        grid-template-columns: 1fr;
    }

    .newspaper-nav {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .nav-meta {
        display: none;
    }

    .secondary-section {
        grid-template-columns: 1fr;
    }

    .secondary-article {
        border-right: none;
        border-bottom: 1px solid var(--border-rule-light);
    }

    .section-articles {
        grid-template-columns: 1fr;
    }

    .section-article {
        border-right: none;
    }

    .hero-article__headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .masthead__dateline {
        flex-direction: column;
        gap: 2px;
    }

    .masthead__separator {
        display: none;
    }
}

/* Print-friendly styles */
@media print {
    .newspaper-nav,
    .loading-overlay {
        display: none !important;
    }

    .newspaper-page {
        max-width: 100%;
    }

    body {
        background: white;
    }
}

.archive-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
