/* ============================================
   THE SOURCE OBSERVER - Newspaper Style CSS
   Universal Theme System
   ============================================ */

/* ============================================
   GLOBAL CSS VARIABLES - SINGLE SOURCE OF TRUTH
   All themes are defined here and apply universally
   to ALL pages (dashboard, admin, auth, etc.)
   ============================================ */

/* Classic Edition - Grey Theme (Default) */
:root {
    /* Core Colors - Grey */
    --background: #ededf0;
    --background-alt: #e3e3e6;
    --focus-section: #bebebf;
    --text-primary: #090917;
    --text-secondary: #4a4a5a;
    --accent-coral: #f79a78;
    --accent-lavender: #a8b0fb;
    --pinstripe: #000005;
    --highlight-1: #d5d5d8;
    --highlight-2: #c8c8cb;
    --shadow-1: #a8a8ab;

    /* Dashboard-specific variables */
    --border-color: #1a1a1a;
    --border-light: #c0c0b8;
    --accent: #8b0000;
    --pinstripe-width: 1px;

    /* Typography */
    --font-masthead: 'Bodoni Moda', serif;
    --font-headline: 'Libre Baskerville', serif;
    --font-body: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;

    /* Panel sizing (for dashboard) */
    --panel-min-width: 320px;
    --panel-max-width: 600px;
    --panel-default-width: 420px;
    --resizer-width: 6px;
}

/* Cream Edition - Warm Theme */
[data-scheme='cream'] {
    /* Core Colors - Cream */
    --background: #f3f3ee;
    --background-alt: #ebe9e4;
    --focus-section: #d9d5ce;
    --text-primary: #0f0f0d;
    --text-secondary: #524f4a;
    --accent-coral: #ffa07a;
    --accent-lavender: #aeb6f9;
    --pinstripe: #050503;
    --highlight-1: #e5e2dd;
    --highlight-2: #dcdad5;
    --shadow-1: #bab7b2;

    /* Dashboard-specific variables */
    --border-color: #0f0f0d;
    --border-light: #cac7c0;
    --accent: #8b0000;
}

/* Evening Edition - Grey Dark Mode */
[data-edition='evening'] {
    --background: #1a1a2e;
    --background-alt: #16162a;
    --focus-section: #2d2d44;
    --text-primary: #d0d0d4;
    --text-secondary: #9090a0;
    --accent-coral: #f79a78;
    --accent-lavender: #a8b0fb;
    --pinstripe: #d0d0d4;
    --highlight-1: #2a2a3e;
    --highlight-2: #3a3a4e;
    --shadow-1: #252538;

    /* Dashboard-specific variables for evening */
    --border-color: #d0d0d4;
    --border-light: #3a3a4e;
    --accent: #ff8866;

    /* Tell the browser to render native form controls (date pickers, etc.) in dark mode */
    color-scheme: dark;
}

/* Evening Edition - Cream Dark Mode (warm dark tones) */
[data-edition='evening'][data-scheme='cream'] {
    /* Core Colors - Warm Dark (amber/sepia tint instead of blue) */
    --background: #242118;
    --background-alt: #1e1b14;
    --focus-section: #3a352a;
    --text-primary: #d8d3c8;
    --text-secondary: #a69b86;
    --accent-coral: #ffa07a;
    --accent-lavender: #aeb6f9;
    --pinstripe: #d8d3c8;
    --highlight-1: #322d24;
    --highlight-2: #403a2e;
    --shadow-1: #1a1710;

    /* Dashboard-specific variables for cream evening */
    --border-color: #d8d3c8;
    --border-light: #403a2e;
    --accent: #ffa066;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--pinstripe);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
}

/* Drop Cap for first paragraph */
.drop-cap::first-letter {
    float: left;
    font-family: var(--font-masthead);
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.1rem;
    color: var(--text-primary);
}

/* ============================================
   LAYOUT - NEWSPAPER COLUMNS
   ============================================ */

.columns-2 {
    column-count: 2;
    column-gap: 2.5rem;
    column-rule: 1px solid var(--highlight-2);
}

.columns-3 {
    column-count: 3;
    column-gap: 2rem;
    column-rule: 1px solid var(--highlight-2);
}

.columns-4 {
    column-count: 4;
    column-gap: 1.5rem;
    column-rule: 1px solid var(--highlight-2);
}

@media (max-width: 1200px) {
    .columns-4 {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .columns-3,
    .columns-4 {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .columns-2,
    .columns-3,
    .columns-4 {
        column-count: 1;
    }
}

/* Grid Layout */
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .col-span-3,
    .col-span-4,
    .col-span-6,
    .col-span-8 {
        grid-column: span 12;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    margin-bottom: 2rem;
}

.section-header {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 3px double var(--pinstripe);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header.accent {
    border-bottom-color: var(--accent-coral);
}

/* Focus Section - Highlighted Area */
.focus-section {
    background: var(--focus-section);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================
   PINSTRIPE SEPARATORS
   ============================================ */

.pinstripe {
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        var(--pinstripe) 0px,
        var(--pinstripe) 1px,
        transparent 1px,
        transparent 3px
    );
    margin: 1.5rem 0;
}

.pinstripe-double {
    border-top: 1px solid var(--pinstripe);
    border-bottom: 1px solid var(--pinstripe);
    height: 4px;
    margin: 1.5rem 0;
}

.pinstripe-vertical {
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        var(--pinstripe) 0px,
        var(--pinstripe) 1px,
        transparent 1px,
        transparent 3px
    );
}

.rule-thin {
    border-bottom: 1px solid var(--pinstripe);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.rule-thick {
    border-bottom: 2px solid var(--pinstripe);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* ============================================
   DATA TABLES - NEWSPAPER STYLE
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.data-table thead {
    border-top: 2px solid var(--pinstripe);
    border-bottom: 1px solid var(--pinstripe);
}

.data-table th {
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.75rem 0.5rem;
    color: var(--text-primary);
    background: transparent;
}

.data-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--highlight-1);
    vertical-align: top;
}

.data-table tbody tr:hover {
    background: var(--highlight-1);
}

.data-table a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-coral);
}

.data-table a:hover {
    color: var(--accent-coral);
}

/* Compact Table Variant */
.data-table.compact td,
.data-table.compact th {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
}

/* ============================================
   STATISTICS & FIGURES
   ============================================ */

.stat-row {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--pinstripe);
    border-bottom: 1px solid var(--highlight-2);
    margin-bottom: 1.5rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--highlight-2);
    padding-right: 1.5rem;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-masthead);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-number.accent {
    color: var(--accent-coral);
}

.stat-number.lavender {
    color: var(--accent-lavender);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.7;
}

/* Individual stat block */
.stat-block {
    text-align: center;
    padding: 1rem;
    border-left: 3px solid var(--pinstripe);
}

.stat-block.highlight {
    background: var(--focus-section);
    border-left-color: var(--accent-coral);
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.status-pending {
    background: var(--highlight-1);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-coral);
}

.status-running {
    background: var(--accent-lavender);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-lavender);
}

.status-completed {
    background: var(--highlight-1);
    color: var(--text-primary);
    border-left: 3px solid var(--pinstripe);
}

.status-failed {
    background: var(--accent-coral);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-coral);
}

/* ============================================
   BUTTONS - NEWSPAPER STYLE
   ============================================ */

.btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--pinstripe);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--background);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--background);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--pinstripe);
}

.btn-accent {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

.btn-accent:hover {
    background: var(--accent-coral);
    color: var(--text-primary);
}

.btn-danger {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

.btn-danger:hover {
    background: var(--accent-coral);
    color: var(--background);
}

.btn-success {
    border-color: var(--pinstripe);
}

.btn-small {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
}

/* Action Button - Compact, Rounded, for inline actions */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.25rem;
    border: 1px solid var(--border-color, var(--pinstripe));
    border-radius: 6px;
    background: var(--bg-tertiary, var(--highlight-1));
    color: var(--text-secondary, var(--text-primary));
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: normal;
    text-transform: none;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-action:hover {
    background: var(--bg-secondary, var(--focus-section));
    color: var(--text-primary);
}

/* Ensure button elements match link styling */
button.btn-action {
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal;
    font-size: 0.85rem !important;
    line-height: 1.2;
    min-height: auto;
}

/* ============================================
   FORMS - NEWSPAPER STYLE
   ============================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem;
    border: 1px solid var(--highlight-2);
    background: var(--background);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   ALERTS - NEWSPAPER STYLE
   ============================================ */

.alert {
    font-family: var(--font-body);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--pinstripe);
    background: var(--highlight-1);
}

.alert-success {
    border-left-color: var(--pinstripe);
}

.alert-error {
    border-left-color: var(--accent-coral);
    background: rgba(247, 154, 120, 0.15);
}

.alert-info {
    border-left-color: var(--accent-lavender);
    background: rgba(168, 176, 251, 0.15);
}

.alert-title {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--highlight-2);
}

.pagination a,
.pagination span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.pagination a {
    border: 1px solid var(--highlight-2);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--text-primary);
    color: var(--background);
    border-color: var(--text-primary);
}

.pagination .current {
    font-weight: 700;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-right {
    text-align: right;
}

.text-small {
    font-size: 0.85rem;
}

.text-tiny {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.text-muted {
    opacity: 0.6;
}

.text-accent {
    color: var(--accent-coral);
}

.text-lavender {
    color: var(--accent-lavender);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.py-1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-1 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-2 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.bg-focus {
    background: var(--focus-section);
}

.bg-highlight {
    background: var(--highlight-1);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    border: 2px solid var(--highlight-1);
    border-top: 2px solid var(--text-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   ARTICLE STYLES
   ============================================ */

.article-headline {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.article-subhead {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--highlight-2);
}

.article-content {
    font-size: 1rem;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Byline */
.byline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CALLOUT / PULLQUOTE
   ============================================ */

.pullquote {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-top: 3px double var(--pinstripe);
    border-bottom: 3px double var(--pinstripe);
    color: var(--text-primary);
}

.pullquote-attribution {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   DASHBOARD MASTHEAD - Center Alignment
   ============================================ */

.masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.masthead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masthead-title {
    text-align: center;
}

.masthead-subtitle {
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .masthead-title {
        font-size: 1.75rem;
    }

    .nav-bar nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    /* Navigation Bar Layout */
    .nav-bar {
        width: 100%;
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        position: relative;
        z-index: 100;
    }

    .nav-inner {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
    }

    .nav-bar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* Navigation Links */
    .nav-bar nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        text-decoration: none;
        color: var(--text-color);
        border-radius: 4px;
        transition: background-color 0.2s ease;
        white-space: nowrap;
    }

    .nav-bar nav a:hover {
        background-color: var(--highlight-1);
    }

    .nav-bar nav a.active {
        background-color: var(--highlight-2);
        font-weight: bold;
    }

    /* Admin Links (red for admin) */
    .nav-bar nav a.admin-link {
        color: var(--admin-color);
        font-weight: bold;
    }

    .nav-bar nav a.admin-link:hover {
        background-color: color-mix(in srgb, var(--admin-color) 10%, transparent);
    }

    /* User Action Links (login/logout) */
    .nav-bar nav a.user-action {
        margin-left: auto;
        color: var(--accent-color);
    }

    /* Responsive Navigation */
    @media (max-width: 768px) {
        .nav-bar nav {
            flex-direction: column;
            align-items: stretch;
        }

        .nav-bar nav a {
            padding: 0.75rem 1rem;
            text-align: center;
        }

        .nav-bar nav a.user-action {
            margin-left: 0;
            order: -1; /* Move to top on mobile */
        }
    }

    .stat-row {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--highlight-2);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background);
}

.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background: var(--highlight-1);
    border-top: 3px solid var(--pinstripe);
    border-bottom: 3px solid var(--pinstripe);
}

.auth-title {
    font-family: var(--font-masthead);
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   THEME TOGGLE BUTTONS
   Universal styles for scheme and edition toggles
   ============================================ */

.scheme-toggle,
.edition-toggle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
}

.scheme-toggle:hover {
    opacity: 1;
    background: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
}

.logout-form-inline {
    display: inline;
}

.edition-toggle:hover {
    opacity: 1;
    background: var(--text-primary);
    color: var(--background);
}

/* ============================================
   EVENING EDITION OVERRIDES
   (Dark mode specific component styles)
   ============================================ */

[data-edition='evening'] .data-table tbody tr:hover {
    background: var(--highlight-2);
}

[data-edition='evening'] .btn:hover {
    background: var(--text-primary);
    color: var(--background);
}

[data-edition='evening'] .status-running {
    background: rgba(168, 176, 251, 0.3);
}

[data-edition='evening'] .status-failed {
    background: rgba(247, 154, 120, 0.3);
}

/* ============================================
   PRINT STYLES - 8.5" x 11" B&W
   ============================================ */

@media print {
    /* Page Setup */
    @page {
        size: letter portrait;
        margin: 0.75in;
    }

    /* Reset everything to black and white */
    *,
    *::before,
    *::after {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html,
    body {
        width: 8.5in;
        font-size: 10pt;
        line-height: 1.35;
        background: white !important;
    }

    /* Hide interactive/navigation elements */
    .nav-bar,
    .system-health-bar,
    .edition-toggle,
    .btn,
    button,
    .no-print,
    .pagination,
    .classifieds,
    form,
    input,
    select,
    textarea,
    .sidebar-column .classifieds {
        display: none !important;
    }

    /* Container */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Masthead for print */
    .masthead {
        border-bottom: 2pt solid black !important;
        padding: 0 0 12pt 0 !important;
        margin-bottom: 12pt !important;
    }

    .masthead-inner {
        text-align: center;
    }

    .masthead-meta {
        justify-content: center !important;
    }

    .masthead-title {
        font-size: 22pt !important;
        letter-spacing: 0.03em !important;
    }

    .masthead-subtitle {
        font-size: 8pt !important;
    }

    /* Special handling for article reader content */
    .reader-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .reader-header,
    .reader-content,
    .reader-meta,
    .featured-image,
    .reader-gallery,
    .reader-insights {
        display: block !important;
    }

    .reader-nav,
    .reader-actions,
    .reader-footer {
        display: none !important;
    }

    .reader-title {
        font-size: 24pt !important;
        margin-bottom: 1rem !important;
    }

    .reader-dek {
        font-size: 16pt !important;
        margin-bottom: 1.5rem !important;
    }

    .reader-meta {
        font-size: 10pt !important;
        margin-bottom: 1.5rem !important;
    }

    .reader-content {
        font-size: 11pt !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }

    .reader-content h2 {
        font-size: 18pt !important;
        margin-top: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .reader-content h3 {
        font-size: 16pt !important;
        margin-top: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .reader-content p {
        margin-bottom: 1.5rem !important;
    }

    .reader-gallery {
        margin: 2rem 0 !important;
    }

    /* Special handling for workspace content */
    .editor-wrapper {
        display: block !important;
    }

    .editor-toolbar-custom {
        display: none !important;
    }

    #doc-title-input {
        font-size: 24pt !important;
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
        border: none !important;
        background: transparent !important;
        color: black !important;
    }

    .editor-wrapper .CodeMirror {
        font-size: 11pt !important;
        line-height: 1.6 !important;
        border: none !important;
    }

    .editor-wrapper .CodeMirror-lines {
        padding: 0 !important;
    }

    /* Ensure all content is visible in print */
    .main-content > section,
    .main-content > .card,
    .main-content > .panel,
    .main-content > article {
        border: 1pt solid black !important;
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .main-content h1,
    .main-content h2 {
        border-bottom: 1pt solid black !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .main-content table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .main-content table th,
    .main-content table td {
        border-bottom: 1pt solid black !important;
        padding: 0.5rem !important;
    }

    .main-content table th {
        font-weight: bold !important;
        border-top: 1pt solid black !important;
        border-bottom: 2pt solid black !important;
    }

    .main-content blockquote {
        border-left: 3pt solid black !important;
        padding-left: 1rem !important;
        margin: 1rem 0 !important;
    }

    /* Ensure images are visible and properly sized */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Remove any background images */
    [style*='background'] {
        background-image: none !important;
    }
}

/* Theme-compliant Bootstrap badge overrides */
.badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 0.2rem;
}

.badge.bg-primary {
    background: var(--text-primary);
    color: var(--background);
}

.badge.bg-success {
    background: var(--pinstripe);
    color: var(--background);
}

.badge.bg-info {
    background: var(--accent-lavender);
    color: var(--text-primary);
}

.badge.bg-secondary {
    background: var(--highlight-1);
    color: var(--text-primary);
}

.badge.bg-danger {
    background: var(--accent-coral);
    color: var(--text-primary);
}

.badge.bg-warning {
    background: var(--accent-coral);
    color: var(--text-primary);
}

/* Email Logs tab styles */
.email-logs-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.email-logs-filter {
    padding: 6px 10px;
    border: 1px solid var(--border-light, #ccc);
    border-radius: 4px;
}

.email-logs-placeholder {
    text-align: center;
    color: var(--text-secondary, #888);
}

.email-logs-error {
    color: var(--accent-coral, #dc3545);
}

/* Theme-compliant card header overrides */
.card-header.bg-primary {
    background: var(--text-primary);
    color: var(--background);
    border-bottom: 1px solid var(--border-light);
}

.card-header.bg-primary.text-white {
    color: var(--background) !important;
}

/* Responsive adjustments for mobile */
/* TODO: Add mobile-specific styles or remove this empty block */
@media (max-width: 767.98px) {
}
