/* ============================================
   LAYER2 REPORT - Vintage Newspaper Styles
   ============================================ */

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

/* Paper texture background */
body {
    background-color: #FAF6F0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(139, 115, 85, 0.02) 1px,
            rgba(139, 115, 85, 0.02) 2px
        ),
        radial-gradient(
            ellipse at center,
            transparent 60%,
            rgba(139, 115, 85, 0.06) 100%
        );
    color: #2C1810;
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-rows: auto auto 1fr auto;
    gap: 0 28px;
}

/* ============================================
   MASTHEAD
   ============================================ */
#masthead {
    grid-column: 1 / -1;
    padding: 24px 0 0;
    text-align: center;
}

.masthead-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 12px;
}

.masthead-left,
.masthead-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.masthead-meta {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B5B4F;
}

.masthead-center {
    flex: 1;
}

.masthead-title {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 900;
    font-size: 64px;
    letter-spacing: 0.08em;
    color: #2C1810;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    line-height: 1;
    margin-bottom: 6px;
}

.masthead-subtitle {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B5B4F;
}

.masthead-rules {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rule-thin {
    height: 1px;
    background: #2C1810;
}

.rule-thick {
    height: 2px;
    background: #2C1810;
}

/* ============================================
   SECTION NAV
   ============================================ */
#section-nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #C8B89A;
    margin-bottom: 28px;
}

.nav-item {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B5B4F;
}

.nav-divider {
    color: #C8B89A;
    font-size: 10px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
#main-content {
    grid-column: 1;
    grid-row: 3;
}

/* ============================================
   LEAD ARTICLE
   ============================================ */
.lead-article {
    margin-bottom: 32px;
}

.article-headline {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1.15;
    color: #2C1810;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.article-byline {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B5B4F;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #C8B89A;
}

.article-byline .author {
    font-weight: 700;
    color: #2C1810;
}

/* Multi-column text flow */
.columned-text {
    column-count: 3;
    column-gap: 28px;
    column-rule: 1px solid #C8B89A;
}

.columned-text p {
    color: #3D2B1F;
    margin-bottom: 14px;
    text-indent: 1.5em;
}

.columned-text p:first-child,
.columned-text p.drop-cap-paragraph {
    text-indent: 0;
}

/* Drop cap */
.drop-cap-paragraph::first-letter {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 900;
    font-size: 64px;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    color: #2C1810;
    transition: transform 200ms ease, color 200ms ease;
}

.drop-cap-paragraph:hover::first-letter {
    transform: scale(1.05);
    color: #8B4513;
}

/* ============================================
   PULL QUOTES
   ============================================ */
.pull-quote {
    column-span: all;
    position: relative;
    margin: 28px 60px;
    padding: 20px 40px 20px 60px;
    border-top: 2px solid #C8B89A;
    border-bottom: 2px solid #C8B89A;
}

.pull-quote-mark {
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-size: 60px;
    color: rgba(139, 115, 85, 0.3);
    line-height: 1;
}

.pull-quote blockquote {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: #2C1810;
}

.pull-quote cite {
    display: block;
    margin-top: 10px;
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: #6B5B4F;
    letter-spacing: 0.04em;
}

/* ============================================
   ORNAMENTAL DIVIDERS
   ============================================ */
.ornamental-divider {
    position: relative;
    text-align: center;
    margin: 36px 0;
}

.ornamental-divider hr {
    border: none;
    height: 1px;
    background: #C8B89A;
}

.diamond-ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FAF6F0;
    padding: 0 8px;
}

/* ============================================
   SECONDARY ARTICLES
   ============================================ */
.secondary-articles {
    margin-bottom: 8px;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.article-grid > .secondary-article:first-child {
    border-right: 1px solid #C8B89A;
    padding-right: 28px;
}

.secondary-headline {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 900;
    font-size: 26px;
    line-height: 1.2;
    color: #2C1810;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.secondary-article .article-body p {
    color: #3D2B1F;
    margin-bottom: 12px;
    text-indent: 1.5em;
}

.secondary-article .article-body p:first-child {
    text-indent: 0;
}

/* ============================================
   DATA SECTIONS
   ============================================ */
.data-section {
    margin-bottom: 8px;
}

.data-headline {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 900;
    font-size: 24px;
    color: #2C1810;
    margin-bottom: 4px;
}

.data-caption {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B5B4F;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* Chart container */
.chart-container {
    width: 100%;
    margin: 0 auto 16px;
}

.data-chart {
    width: 100%;
    height: auto;
}

/* Chart text styles */
.chart-label {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 11px;
    fill: #6B5B4F;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.chart-value {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 11px;
    fill: #2C1810;
    font-weight: 600;
}

.chart-source {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 9px;
    fill: #6B5B4F;
    font-style: italic;
}

/* ============================================
   DATA TABLE
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 13px;
}

.data-table thead th {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B5B4F;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #2C1810;
}

.data-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #C8B89A;
    color: #3D2B1F;
}

.data-table tbody tr:nth-child(odd) {
    background: #FAF6F0;
}

.data-table tbody tr:nth-child(even) {
    background: #F4EDE0;
}

.data-table .network-name {
    font-weight: 700;
    color: #2C1810;
}

.data-table .positive {
    color: #2C6B2F;
    font-weight: 600;
}

.data-table .negative {
    color: #C0392B;
    font-weight: 600;
}

/* ============================================
   TERTIARY ARTICLES
   ============================================ */
.tertiary-articles {
    margin-bottom: 8px;
}

.tertiary-columns {
    column-count: 2;
    column-gap: 28px;
    column-rule: 1px solid #C8B89A;
}

.tertiary-article {
    break-inside: avoid;
    margin-bottom: 20px;
}

.tertiary-headline {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    color: #2C1810;
    margin-bottom: 8px;
}

.tertiary-article p {
    color: #3D2B1F;
    font-size: 15px;
    line-height: 1.65;
    text-indent: 0;
}

/* ============================================
   COMMENTARY SECTION
   ============================================ */
.commentary-section {
    margin-bottom: 8px;
}

.commentary-section .secondary-headline {
    margin-bottom: 16px;
}

.commentary-columns {
    column-count: 2;
    column-gap: 28px;
    column-rule: 1px solid #C8B89A;
}

.commentary-columns p {
    color: #3D2B1F;
    margin-bottom: 14px;
    text-indent: 1.5em;
}

.commentary-columns p:first-child,
.commentary-columns p.drop-cap-paragraph {
    text-indent: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
#sidebar {
    grid-column: 2;
    grid-row: 3;
    border-left: 1px solid #C8B89A;
    padding-left: 20px;
}

.sidebar-title {
    font-family: 'Playfair Display', 'Playfair', Georgia, serif;
    font-weight: 900;
    font-size: 18px;
    color: #2C1810;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2C1810;
}

.brief {
    padding: 12px 0;
    border-bottom: 1px solid #C8B89A;
}

.brief p {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: #3D2B1F;
}

.brief p strong {
    color: #2C1810;
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-bottom: 32px;
}

.footer-rules {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 16px;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 11px;
    color: #6B5B4F;
    line-height: 1.6;
    margin-bottom: 4px;
}

.footer-copyright {
    font-family: 'Libre Franklin', 'Inter', Arial, sans-serif;
    font-size: 11px;
    color: #8B7355;
    margin-top: 8px;
}

/* ============================================
   FADE-REVEAL ANIMATION
   ============================================ */
.fade-reveal {
    opacity: 0;
    transition: opacity 400ms ease;
}

.fade-reveal.is-visible {
    opacity: 1;
}

/* Path draw animation for SVG lines */
.path-draw {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 800ms ease-out;
}

.path-draw.is-drawn {
    stroke-dashoffset: 0;
}

/* ============================================
   RESPONSIVE: TABLET (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
    body {
        grid-template-columns: 1fr;
    }

    .columned-text {
        column-count: 2;
    }

    .tertiary-columns {
        column-count: 2;
    }

    .commentary-columns {
        column-count: 2;
    }

    #sidebar {
        grid-column: 1;
        grid-row: auto;
        border-left: none;
        border-top: 1px solid #C8B89A;
        padding-left: 0;
        padding-top: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }

    .sidebar-title {
        grid-column: 1 / -1;
    }

    .masthead-title {
        font-size: 48px;
    }
}

/* ============================================
   RESPONSIVE: MOBILE (< 640px)
   ============================================ */
@media (max-width: 640px) {
    body {
        font-size: 17px;
        line-height: 1.8;
        padding: 0 16px;
    }

    .masthead-inner {
        flex-direction: column;
        gap: 8px;
    }

    .masthead-left,
    .masthead-right {
        flex-direction: row;
        gap: 12px;
    }

    .masthead-title {
        font-size: 36px;
        letter-spacing: 0.04em;
    }

    .masthead-subtitle {
        font-size: 11px;
    }

    #section-nav {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .article-headline {
        font-size: 30px;
    }

    .columned-text {
        column-count: 1;
    }

    .tertiary-columns {
        column-count: 1;
    }

    .commentary-columns {
        column-count: 1;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-grid > .secondary-article:first-child {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #C8B89A;
        padding-bottom: 20px;
    }

    .pull-quote {
        margin: 20px 0;
        padding: 16px 20px;
        border-left: none;
        border-right: none;
    }

    .pull-quote blockquote {
        font-size: 18px;
    }

    #sidebar {
        grid-template-columns: 1fr;
    }

    .secondary-headline {
        font-size: 22px;
    }
}

/* ============================================
   PRINT STYLESHEET
   ============================================ */
@media print {
    body {
        background: white;
        background-image: none;
        color: black;
        max-width: none;
        padding: 0;
    }

    .masthead-title {
        text-shadow: none;
    }

    .fade-reveal {
        opacity: 1;
    }

    .path-draw {
        stroke-dashoffset: 0;
    }

    .columned-text {
        column-count: 3;
        column-rule: 1px solid #999;
    }

    #footer .footer-content::after {
        content: "Printed from layer2.report. For digital edition visit https://layer2.report";
        display: block;
        margin-top: 12px;
        font-size: 10px;
        color: #666;
    }
}