/* ==========================================================================
   STYLE.CSS - THE CHRONICLE MULTI-CLASS LMS OVERLAY
   An Infinite Broad-Sheet Press Engine for 3D & Video Production Academics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Playfair+Display:ital,wght=0,400;0,700;1,400&display=swap');

:root {
    /* Pure Print Palette */
    --paper-pulp: #ebdcb9;       /* Ground wood-pulp base tone */
    --paper-grain: #dfcfab;      /* Fiber variation tone */
    --ink-press: #1a1613;        /* High-contrast iron-gall charcoal ink */
    --ink-faded: #4d433a;        /* Letterpress type accent tone */
    --ink-rule: #615549;         /* Brass rules & borders */
    
    /* Font Structures */
    --header-font: 'Cinzel Decorative', Georgia, serif;
    --body-font: 'Playfair Display', Georgia, serif;
}

/* -------------------------------------------------------------
   THE INFINITE PRESS FOUNDATION
------------------------------------------------------------- */
body {
    background-color: var(--paper-pulp) !important;
    /* Clean, non-corrupted procedural wood-pulp fiber background engine */
    background-image: 
        linear-gradient(90deg, rgba(31,27,24,0.01) 0%, transparent 50%, rgba(31,27,24,0.01) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.14'/%3E%3C/svg%3E") !important;
    color: var(--ink-press) !important;
    font-family: var(--body-font) !important;
    padding: 0;
    margin: 0;
}

/* Strips out container limits to let the parchment wrap seamlessly */
.newspaper-canvas,
.newspaper-canvas *,
header, main, footer, article, .card, .card-body {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0px !important;
}

.newspaper-canvas {
    border: none !important;
    padding-top: 2rem !important;
}

/* -------------------------------------------------------------
   VINTAGE PRINT BORDERS & LINE OVERRIDES
------------------------------------------------------------- */
.border-dark,
.border-end,
.border-bottom,
.border-top,
.editorial-sidebar {
    border-color: var(--ink-rule) !important;
}

/* Converts standard bottom boundaries into authentic dual-line press rules */
.border-4 {
    border-width: 3px !important;
    border-style: double !important;
    border-color: var(--ink-rule) !important;
}

/* -------------------------------------------------------------
   EDITORIAL NAVIGATION & CLASS HOVER STATES
------------------------------------------------------------- */
.news-directory-nav {
    border-top: 3px double var(--ink-rule) !important;
    border-bottom: 3px double var(--ink-rule) !important;
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.directory-link {
    color: var(--ink-faded) !important;
    font-family: var(--body-font);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1px;
    padding: 4px 10px;
    transition: all 0.15s ease-in-out;
}

.directory-link:hover {
    color: var(--ink-press) !important;
    background-color: var(--paper-grain) !important;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

.active-section {
    color: var(--ink-press) !important;
    border-bottom: 2px solid var(--ink-press) !important;
}

/* -------------------------------------------------------------
   TYPOGRAPHY & COHESIVE READABILITY
------------------------------------------------------------- */
.head-title {
    font-family: var(--header-font) !important;
    font-weight: 900;
    color: var(--ink-press) !important;
    letter-spacing: -1px;
}

.entry-headline, .news-headline {
    font-family: var(--body-font) !important;
    font-weight: 700;
    color: var(--ink-press) !important;
}

.row-text {
    font-family: var(--body-font) !important;
    font-size: 1rem;
    text-align: justify;
    color: var(--ink-press) !important;
    line-height: 1.6;
}

.text-muted {
    color: var(--ink-faded) !important;
}

/* Master Dropcap */
.dropcap::first-letter {
    font-family: var(--header-font) !important;
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 10px;
    margin-top: 6px;
    color: var(--ink-press) !important;
}

/* -------------------------------------------------------------
   LIVING PHOTOS & WORK DISPLAY FRAMES
------------------------------------------------------------- */
.living-photo-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid var(--ink-rule) !important;
    padding: 4px;
    background-color: var(--paper-grain) !important;
}

.living-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
    /* Halftone lithograph filter matrix simulation */
    filter: sepia(0.4) contrast(1.3) brightness(0.9) grayscale(0.3) !important;
}

/* -------------------------------------------------------------
   LMS BUTTONS, INPUTS, & REPORT SHEETS
------------------------------------------------------------- */
.read-more-btn {
    background-color: var(--ink-press) !important;
    color: var(--paper-pulp) !important;
    font-family: var(--body-font) !important;
    font-weight: 700;
    border: 1px solid var(--ink-press) !important;
    transition: all 0.2s ease !important;
}

.read-more-btn:hover {
    background-color: transparent !important;
    color: var(--ink-press) !important;
    box-shadow: 3px 3px 0px var(--ink-press);
}

/* Stylizes report submissions, quiz fields, and textareas like old paper manifests */
input, textarea, select {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border: 1px dashed var(--ink-rule) !important;
    color: var(--ink-press) !important;
    font-family: var(--body-font) !important;
}

input:focus, textarea:focus {
    background-color: transparent !important;
    border: 1px solid var(--ink-press) !important;
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .editorial-sidebar {
        border-end: none !important;
        border-bottom: 2px dashed var(--ink-rule) !important;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}