/* ================================================================
   THE FENCE LINE — Newspaper Stylesheet
   Seegars Fence Company, April 2026
   ================================================================ */

/* ─── CSS Custom Properties ─── */
:root {
    --paper-bg: #fcfbf7;
    --paper-bg-dark: #f3f0e8;
    --ink: #1a1a1a;
    --ink-light: #2c2c2c;
    --ink-faded: #555;
    --sepia: #7b5ea0;
    --sepia-light: #9a7dbb;
    --sepia-rule: #c4b3e0;
    --seegars-green: #3aad5b;
    --seegars-green-light: #52c474;
    --seegars-green-dark: #2e944a;
    --cream: #fdfcf8;
    --purple: #7b3fc0;
    --purple-light: #9b6bd5;
    --rule-thin: 1px solid #2c2c2c;
    --rule-thick: 3px solid #1a1a1a;
    --rule-double: 4px double #2c2c2c;
    --rule-sepia: 1px solid var(--sepia-rule);

    --font-masthead: 'UnifrakturMaguntia', cursive;
    --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Source Serif 4', Georgia, serif;
    --font-label: 'Oswald', 'Arial Narrow', sans-serif;

    --max-width: 1200px;
    --gutter: 24px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: #d4cfc5;
    line-height: 1.7;
}

a {
    color: var(--sepia);
    transition: color 0.2s;
}
a:hover {
    color: var(--seegars-green);
}

/* ─── Paper Container ─── */
.newspaper {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--paper-bg);
    position: relative;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.08),
        0 4px 20px rgba(0,0,0,.15),
        0 20px 60px rgba(0,0,0,.1);
}

/* Paper texture overlay */
.newspaper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.015) 2px,
            rgba(139, 115, 85, 0.015) 4px
        );
    mix-blend-mode: multiply;
}

/* Faint watermark */
.newspaper::after {
    content: 'SFC';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: var(--font-headline);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(139, 115, 85, 0.03);
    pointer-events: none;
    z-index: 0;
    letter-spacing: 0.2em;
}

.newspaper > * {
    position: relative;
    z-index: 2;
}

/* ─── Page curl effect ─── */
@supports (background: conic-gradient(red, blue)) {
    .newspaper {
        position: relative;
    }
    .newspaper-footer::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 60px;
        height: 60px;
        background: linear-gradient(
            225deg,
            var(--paper-bg-dark) 0%,
            var(--paper-bg-dark) 45%,
            #d4cfc5 50%,
            transparent 50%
        );
        box-shadow: -2px -2px 5px rgba(0,0,0,.08);
        z-index: 10;
    }
}

/* ================================================================
   MASTHEAD
   ================================================================ */
.masthead {
    padding: 0 var(--gutter);
    z-index: 10;
}

.masthead-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--gutter);
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-faded);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--paper-bg);
    box-shadow: 0 1px 0 transparent;
    transition: box-shadow 0.2s;
}

.masthead-top-bar.stuck {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.masthead-social {
    display: flex;
    gap: 12px;
}

.social-link {
    color: var(--ink-faded);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.social-link:hover {
    color: var(--seegars-green);
}

.social-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.4);
    transition: filter 0.2s;
}

.social-link:hover .social-icon-img {
    filter: none;
}

/* Reader count in masthead top bar */
.reader-count-sep {
    color: var(--sepia-rule);
    margin: 0 2px;
}

.reader-count {
    font-family: var(--font-label);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sepia);
    white-space: nowrap;
}

.home-link {
    color: var(--ink-faded);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.2em;
    transition: color 0.2s;
}

.home-link:hover {
    color: var(--seegars-green);
}

.masthead-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--ink-faded);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.nav-dropdown-btn:hover {
    color: var(--seegars-green);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--paper-bg);
    border: 1px solid var(--sepia);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    padding: 6px 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-label);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faded);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--sepia-bg);
    color: var(--seegars-green-light);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.masthead-edition {
    font-weight: 500;
    color: var(--sepia);
}

/* Masthead Rules */
.masthead-rule-thin {
    border: none;
    border-top: var(--rule-thin);
}

.masthead-rule-thick {
    border: none;
    border-top: var(--rule-thick);
    margin: 0;
}

.masthead-rule-double {
    border: none;
    border-top: var(--rule-double);
}

/* Company name above nameplate */
.masthead-company {
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--purple);
    padding-top: 14px;
}

/* Nameplate */
.masthead-nameplate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 8px 0 6px;
}

.nameplate-title {
    font-family: var(--font-headline);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--ink);
    text-align: center;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nameplate-ornament {
    font-size: 1.2rem;
    color: var(--purple);
    flex-shrink: 0;
}

/* Info line */
.masthead-info {
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-faded);
    padding: 6px 0 10px;
}

.masthead-dot {
    margin: 0 8px;
    color: var(--sepia);
}

/* Motto bar */
.masthead-motto-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    gap: 0;
    flex-wrap: wrap;
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faded);
    text-align: center;
}

.motto-item {
    white-space: nowrap;
}

.motto-dot {
    margin: 0 10px;
    color: var(--sepia);
}

/* ================================================================
   FOLD INDICATOR
   ================================================================ */
.fold-indicator {
    position: relative;
    height: 1px;
    margin: 0 var(--gutter);
    margin-bottom: 20px;
    overflow: visible;
}

.fold-text {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-label);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--sepia-rule);
    background: var(--paper-bg);
    padding: 0 12px;
    white-space: nowrap;
}

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

/* Headlines */
.headline {
    font-family: var(--font-headline);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 900;
}

.headline-lead {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 6px;
    text-align: center;
    white-space: nowrap;
}

.headline-subtitle {
    font-family: var(--font-headline);
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--ink-faded);
    text-align: left;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-subheading {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--seegars-green-light);
    margin: 1.2em 0 0.4em;
    line-height: 1.3;
}

.headline-sidebar {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 8px;
    line-height: 1.25;
}

.headline-feature {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 6px;
}

.headline-section {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 8px;
    white-space: nowrap;
}

/* Article meta / bylines */
.article-meta {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: var(--rule-sepia);
}

.byline {
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faded);
}

.byline strong {
    color: var(--ink);
    font-weight: 600;
}

.byline-title {
    color: var(--seegars-green-light);
}

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

/* Article body */
.article-body {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.article-body p {
    margin-bottom: 1em;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Multi-column body for Tech Talk */
.article-body-columns {
    column-count: 2;
    column-gap: var(--gutter);
    column-rule: var(--rule-sepia);
}

/* Drop caps */
.has-dropcap::first-letter {
    float: left;
    font-family: var(--font-headline);
    font-size: 4.2em;
    line-height: 0.8;
    font-weight: 900;
    padding-right: 8px;
    padding-top: 6px;
    color: var(--ink);
}

/* Section banners */
.section-banner {
    display: inline-block;
    background: none;
    color: var(--ink);
    padding: 0;
    margin-bottom: 12px;
    font-family: var(--font-label);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.banner-safety {
    background: none;
}

.banner-tech {
    background: none;
}

/* Pull quotes */
.pull-quote {
    margin: 1.5em 1em;
    padding: 0.8em 1.2em;
    border-top: 1px solid var(--sepia-rule);
    border-bottom: 1px solid var(--sepia-rule);
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.5;
    color: var(--purple);
    text-align: center;
}

/* Contributor headshots */
.contributor-headshot {
    float: left;
    width: 75px;
    height: 75px;
    object-fit: cover;
    object-position: center top;
    margin: 4px 12px 8px 0;
    padding: 0;
    border-radius: 50%;
    filter: grayscale(100%) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.35));
    shape-outside: margin-box;
}

/* Section dividers */
.section-divider {
    text-align: center;
    padding: 16px 0;
    margin: 0 var(--gutter);
}

.divider-ornament {
    font-size: 0.9rem;
    color: var(--sepia);
    letter-spacing: 0.3em;
    font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
    text-decoration: none;
}

.divider-ornament * {
    font-variant-emoji: text;
}

/* Scroll fade animation */
.section-fade {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   SKYBOX BANNER — Newspaper "refer" strip
   ================================================================ */
.skybox-banner {
    background: linear-gradient(180deg, rgba(123, 63, 192, 0.08) 0%, rgba(123, 63, 192, 0.04) 100%);
    border-top: 2px solid var(--purple);
    border-bottom: 2px solid var(--purple);
    padding: 3px var(--gutter);
    text-align: center;
    position: relative;
    z-index: 2;
}

.skybox-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-label);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.2s;
}

.skybox-link:hover {
    color: var(--seegars-green);
}

.skybox-label {
    font-weight: 700;
    color: var(--purple);
}

.skybox-sep {
    color: var(--sepia-rule);
    font-weight: 300;
}

.skybox-text {
    font-weight: 400;
}

.skybox-text strong {
    font-weight: 700;
    color: var(--seegars-green-dark);
}

/* ─── CEO Letter Sign-off ─── */
.ceo-sign-off {
    text-align: left;
    font-style: italic;
    font-family: var(--font-body);
    margin-top: 0.8em;
    font-size: 1.05rem;
    color: var(--ink-light);
}

/* ================================================================
   ABOVE THE FOLD — Lead Story + Sidebar
   ================================================================ */
.above-fold {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    padding: 0 var(--gutter);
    margin-top: 16px;
}

.lead-story-area {
    padding-right: var(--gutter);
    border-right: var(--rule-sepia);
    min-width: 0;
}

.sidebar-area {
    padding-left: var(--gutter);
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Lead story body in two columns */
.lead-body {
    column-count: 2;
    column-gap: var(--gutter);
    column-rule: var(--rule-sepia);
}

/* Subsection boxes within the lead story */
.subsections-row {
    column-span: all;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 1em;
    padding-top: 1em;
    border-top: var(--rule-sepia);
}

.subsection-box {
    padding: 12px;
    border: var(--rule-sepia);
    background: var(--cream);
}

.subsection-box h4 {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    color: var(--seegars-green-light);
}

.subsection-box p {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
}

/* ─── SPIRIT Contest ─── */
.contest-prize {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--seegars-green);
    text-align: center;
    margin-bottom: 12px;
}

.spirit-image-wrapper {
    margin-top: 1.2em;
    text-align: center;
}

.spirit-image-float {
    float: right;
    width: 45%;
    margin: 0 0 4px 16px;
    text-align: center;
}

.spirit-logo {
    max-width: 100%;
    height: auto;
    border: var(--rule-sepia);
    padding: 8px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

.spirit-logo:hover,
.spirit-logo:focus-visible {
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    transform: scale(1.01);
    outline: 2px solid var(--seegars-green);
    outline-offset: 2px;
}

.spirit-image-caption {
    font-family: var(--font-label);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faded);
    margin-top: 6px;
}

/* ─── Lightbox (click to enlarge) ─── */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.newspaper.lightbox-open {
    filter: blur(6px);
    pointer-events: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 4px 40px rgba(0,0,0,.5);
    background: #fff;
    padding: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--sepia-light);
}

.lightbox-prev,
.lightbox-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    line-height: 1;
    z-index: 10001;
    transition: background 0.2s;
    border-radius: 2px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox.has-gallery .lightbox-prev,
.lightbox.has-gallery .lightbox-next {
    display: block;
}

@media (max-width: 767px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 8px 12px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ─── Inner article divider (between stacked articles in same column) ─── */
.inner-article-divider {
    text-align: center;
    padding: 18px 0;
    border-top: var(--rule-sepia);
    margin-top: 1.2em;
}

/* ─── HR Corner structured content ─── */
.hr-subtitle {
    font-family: var(--font-headline);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink-light);
    margin-bottom: 10px;
    line-height: 1.35;
}

.hr-section-heading {
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--seegars-green-light);
    margin-top: 1em;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: var(--rule-sepia);
}

.hr-criteria-list,
.hr-bullet-list {
    margin: 0.5em 0 1em;
    padding-left: 1.4em;
    font-size: 0.95rem;
    line-height: 1.75;
}

.hr-criteria-list li,
.hr-bullet-list li {
    margin-bottom: 0.6em;
    list-style-type: disc;
}

/* ─── Weather Widget ─── */
.weather-widget {
    margin-bottom: 20px;
    padding: 12px 16px;
    text-align: center;
    font-family: var(--font-label);
}

.weather-loading {
    font-size: 0.75rem;
    color: var(--ink-faded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.weather-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.weather-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.weather-temp {
    font-family: var(--font-headline);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.weather-desc {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faded);
    margin-bottom: 6px;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--sepia);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.weather-location {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--seegars-green);
    margin-top: 8px;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--sepia-rule);
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.forecast-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faded);
}

.forecast-icon {
    font-size: 1rem;
    line-height: 1;
}

.weather-icon svg {
    width: 2.2rem;
    height: 2.2rem;
    display: block;
}

.forecast-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.forecast-temps {
    font-size: 0.58rem;
    color: var(--sepia);
    white-space: nowrap;
}

.weather-rule {
    border: none;
    border-bottom: var(--rule-sepia);
    margin-top: 12px;
}

/* ─── Vintage Ad ─── */
.vintage-ad {
    margin-top: 30px;
    padding: 4px;
    border: 2px solid var(--ink);
}

.ad-border {
    border: 1px solid var(--ink);
    padding: 2px;
}

.ad-inner {
    border: 1px solid var(--sepia-rule);
    padding: 20px 12px;
    text-align: center;
}

.ad-stars {
    font-size: 0.85rem;
    color: var(--sepia);
    letter-spacing: 0.3em;
    margin: 6px 0;
}

.ad-company {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.15em;
    margin: 8px 0 4px;
    color: var(--seegars-green-light);
}

.ad-tagline {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-faded);
}

.ad-rule {
    width: 60%;
    height: 1px;
    background: var(--sepia-rule);
    margin: 12px auto;
}

.ad-body {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-light);
    line-height: 1.6;
}

.ad-cta {
    font-family: var(--font-label);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 6px;
    color: var(--seegars-green);
}

/* ================================================================
   SAFETY SECTION — Full Width
   ================================================================ */
.safety-section-wrapper {
    padding: 0 var(--gutter);
}

.safety-categories-span {
    column-span: all;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1em;
    padding-top: 1em;
    border-top: var(--rule-sepia);
}

/* Safety layout — text + image side by side */
.safety-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: var(--gutter);
    align-items: center;
    margin-top: 12px;
}

.safety-image {
    border: var(--rule-sepia);
    padding: 6px;
    background: var(--cream);
}

.safety-image img {
    width: 100%;
    height: auto;
    display: block;
}

.safety-purpose {
    margin-bottom: 1em;
}

.safety-subheading {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--seegars-green-light);
    margin-bottom: 8px;
}

.safety-requirements {
    margin: 0.5em 0 1em;
    padding-left: 1.4em;
    font-size: 0.95rem;
    line-height: 1.75;
}

.safety-requirements li {
    margin-bottom: 0.4em;
    list-style-type: disc;
}

.safety-closing {
    font-weight: 600;
    font-style: italic;
}

.safety-image-inline {
    margin-top: 1em;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.safety-image-top {
    margin-top: 0;
    margin-bottom: 1.5em;
}

/* ================================================================
   TECH TALK — Full Width
   ================================================================ */
.tech-section {
    padding: 0 var(--gutter);
}

.tech-article {
    padding-top: 4px;
}

/* ─── Employee Spotlight ─── */
.spotlight-article {
    padding-top: 4px;
}

.spotlight-name {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    text-align: center;
    margin: 8px 0 12px;
    color: var(--ink);
}

.spotlight-location {
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.9rem;
    color: var(--seegars-green);
    margin: -8px 0 12px;
    font-weight: 600;
}

.spotlight-photo-wrapper {
    text-align: center;
    margin-bottom: 16px;
}

.spotlight-photo {
    width: 100%;
    max-width: 350px;
    border: 2px solid var(--sepia-rule);
    cursor: pointer;
    object-fit: contain;
}

.spotlight-qa {
    padding-top: 4px;
}

.spotlight-qa-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted var(--sepia-rule);
    gap: 12px;
}

.spotlight-question {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    flex: 1;
}

.spotlight-answer {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-faded);
    text-align: right;
    flex: 1;
}

/* ================================================================
   READER POLL
   ================================================================ */
.reader-poll {
    padding-top: 30px;
}

.poll-question {
    font-family: var(--font-headline);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--ink-light);
    margin-bottom: 10px;
    line-height: 1.3;
}

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.poll-choices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.poll-choice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 8px;
    cursor: pointer;
    padding: 2px 0;
    font-size: 0.82rem;
    line-height: 1.3;
    transition: color 0.15s;
}

.poll-choice:hover {
    color: var(--seegars-green);
}

.poll-choice input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border: 2px solid var(--sepia-rule);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.poll-choice input[type="radio"]:checked {
    border-color: var(--seegars-green);
}

.poll-choice input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--seegars-green);
}

.poll-choice input[type="radio"]:disabled {
    cursor: default;
    opacity: 0.5;
}

.poll-choice.voted-disabled {
    cursor: default;
}

.poll-choice-label {
    grid-column: 2 / -1;
    grid-row: 1;
    font-family: var(--font-body);
    font-size: 0.92rem;
    white-space: nowrap;
}

.poll-bar-track {
    grid-column: 1 / 3;
    grid-row: 2;
    height: 14px;
    background: var(--paper-bg-dark);
    border: 1px solid var(--sepia-rule);
    position: relative;
    overflow: hidden;
    min-width: 60px;
}

.poll-bar-fill {
    display: block;
    height: 100%;
    background: var(--seegars-green-light);
    transition: width 0.5s ease;
    min-width: 0;
}

.poll-choice-count {
    grid-column: 3;
    grid-row: 2;
    font-family: var(--font-label);
    font-size: 0.78rem;
    text-align: left;
    min-width: 20px;
    font-weight: 600;
    color: var(--ink-faded);
    text-align: left;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.poll-vote-btn {
    align-self: flex-start;
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--paper-bg);
    background: var(--seegars-green-light);
    border: none;
    padding: 6px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.poll-vote-btn:hover:not(:disabled) {
    background: var(--seegars-green);
}

.poll-vote-btn:disabled {
    background: var(--sepia-rule);
    color: var(--ink-faded);
    cursor: default;
}

/* Mobile adjustments for poll */
@media (max-width: 767px) {
    .poll-choice {
        grid-template-columns: auto 1fr auto;
        gap: 2px 6px;
        font-size: 0.82rem;
    }

    .poll-choice-label {
        font-size: 0.82rem;
        white-space: normal;
    }
}

/* ================================================================
   NEWS & SPORTS WIRE
   ================================================================ */
.news-wire-section {
    padding: 0 var(--gutter);
    padding-bottom: 10px;
}

.news-wire-header {
    text-align: center;
    margin-bottom: 20px;
}

.news-wire-rule {
    height: 1px;
    background: var(--sepia-rule);
    margin: 8px 0;
}

.news-wire-title {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    margin: 8px 0 2px;
}

.news-wire-subtitle {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--seegars-green);
}

.news-wire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.news-wire-col {
    padding: 0 var(--gutter);
}

.news-wire-col:not(:last-child) {
    border-right: 1px solid var(--sepia-rule);
}

.news-wire-col:first-child {
    padding-left: 0;
}

.news-wire-col:last-child {
    padding-right: 0;
}

.news-wire-col-title {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: var(--rule-sepia);
}

.news-wire-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-wire-item {
    margin-bottom: 12px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.news-wire-headline {
    font-weight: 700;
}

.news-wire-summary {
    color: var(--ink-faded);
}

.news-wire-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-wire-link:hover .news-wire-headline {
    text-decoration: underline;
}

/* Medal Table */
.medal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-label);
    font-size: 0.82rem;
}

.medal-table thead {
    border-bottom: 2px solid var(--sepia-rule);
}

.medal-country-header {
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    padding: 4px 0;
    color: var(--ink-faded);
}

.medal-header {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    padding: 4px 6px;
    color: var(--ink-faded);
}

.medal-gold { color: #b8860b; }
.medal-silver { color: #808080; }
.medal-bronze { color: #a0522d; }

.medal-country {
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 1px solid var(--sepia-rule);
    white-space: nowrap;
}

.medal-count {
    text-align: center;
    padding: 6px;
    border-bottom: 1px solid var(--sepia-rule);
    font-size: 0.88rem;
}

.medal-total-count {
    font-weight: 700;
}

/* ─── News Wire — Sidebar variant ─── */
.news-wire-sidebar {
    margin-top: 20px;
}

.news-wire-sidebar .news-wire-header {
    padding: 0;
    margin-top: -6px;
    margin-bottom: 12px;
}

.news-wire-sidebar .news-wire-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.news-wire-sidebar .news-wire-subtitle {
    font-size: 0.7rem;
}

.news-wire-sidebar .news-wire-col {
    padding: 0;
    border-right: none;
}

.news-wire-sidebar .news-wire-col:not(:last-child) {
    border-bottom: 1px solid var(--sepia-rule);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.news-wire-sidebar .news-wire-col-title {
    font-size: 0.78rem;
}

.news-wire-sidebar .news-wire-headline {
    font-size: 0.82rem;
}

.news-wire-sidebar .news-wire-summary {
    font-size: 0.8rem;
}

.news-wire-sidebar .medal-table {
    font-size: 0.8rem;
}

.news-wire-sidebar .medal-country {
    font-size: 0.8rem;
}

.news-wire-sidebar .medal-count {
    font-size: 0.8rem;
    padding: 4px;
}

@media (max-width: 767px) {
    .news-wire-grid {
        grid-template-columns: 1fr;
    }

    .news-wire-col {
        padding: 0;
    }

    .news-wire-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--sepia-rule);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
}

/* ================================================================
   CELEBRATIONS — Birthdays & Anniversaries
   ================================================================ */
.celebrations-section {
    padding: 0 var(--gutter);
    position: relative;
    overflow: hidden;
}

/* Fireworks canvas overlay */
.fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.celebrations-section > *:not(.fireworks-canvas) {
    position: relative;
    z-index: 1;
}

.celebrations-header {
    text-align: center;
    margin-bottom: 20px;
}

.celebrations-rule {
    height: 1px;
    background: var(--sepia-rule);
    margin: 8px 0;
}

.celebrations-title {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    margin: 8px 0 2px;
}

.celebrations-subtitle {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
}

.celebrations-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
}

.celebrations-divider {
    width: 1px;
    background: var(--sepia-rule);
    margin: 0 var(--gutter);
}

.celebrations-col-title {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: var(--rule-sepia);
}

.celebration-entry {
    display: flex;
    align-items: baseline;
    font-size: 0.88rem;
    margin-bottom: 8px;
    gap: 4px;
}

.celebration-name {
    font-weight: 600;
    white-space: nowrap;
}

.celebration-dots {
    flex: 1;
    border-bottom: 1px dotted var(--sepia-rule);
    min-width: 20px;
    margin: 0 4px;
    position: relative;
    top: -3px;
}

.celebration-detail {
    font-style: italic;
    white-space: nowrap;
    color: var(--ink-faded);
}

.celebration-location {
    font-family: var(--font-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sepia);
    margin-left: 6px;
    white-space: nowrap;
}

/* ─── Celebrate sign (replaces image) ─── */
.celebrate-sign {
    margin-top: 24px;
    padding: 4px;
    border: 2px solid var(--ink);
}

.celebrate-sign-full {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.celebrate-sign-border {
    border: 1px solid var(--ink);
    padding: 2px;
}

.celebrate-sign-inner {
    border: 1px solid var(--sepia-rule);
    padding: 20px 16px;
    text-align: center;
}

.celebrate-sign-stars {
    font-size: 0.7rem;
    color: var(--sepia);
    letter-spacing: 0.3em;
    margin: 4px 0;
}

.celebrate-sign-rule {
    width: 60%;
    height: 1px;
    background: var(--sepia-rule);
    margin: 8px auto;
}

.celebrate-sign-heading {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: var(--ink);
    line-height: 1.2;
}

.celebrate-sign-amp {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--sepia);
    margin: 4px 0;
}

.celebrate-sign-from {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--seegars-green-light);
    margin-top: 10px;
}

/* ================================================================
   CONTRIBUTORS / EDITORIAL BOARD
   ================================================================ */
.contributors-section {
    padding: 0 var(--gutter);
}

.staff-box {
    border: var(--rule-thin);
    padding: 20px 24px;
    text-align: center;
}

.staff-box-title {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 12px;
}

.staff-box-rule {
    height: 1px;
    background: var(--sepia-rule);
    margin: 12px 0;
}

.staff-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 40px;
}

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

.staff-name {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.95rem;
}

.staff-title {
    font-family: var(--font-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faded);
}

.staff-section {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.78rem;
    color: var(--sepia);
}

.staff-box-footer {
    font-size: 0.75rem;
    color: var(--ink-faded);
    font-style: italic;
}

/* ================================================================
   CLASSIFIEDS / RESOURCES
   ================================================================ */
.classifieds-section {
    padding: 0 var(--gutter);
    padding-bottom: 30px;
}

.classifieds-header {
    text-align: center;
    margin-bottom: 20px;
}

.classifieds-title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 800;
}

.classifieds-subtitle {
    font-family: var(--font-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--seegars-green);
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.classified-card {
    display: block;
    border: 2px solid var(--ink);
    padding: 3px;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.2s, transform 0.15s;
}

.classified-card:hover {
    background: var(--cream);
    transform: translateY(-1px);
}

.classified-inner {
    border: 1px solid var(--sepia-rule);
    padding: 14px 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.classified-name {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.classified-desc {
    font-size: 0.72rem;
    color: var(--ink-faded);
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.classified-cta {
    font-family: var(--font-label);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--seegars-green);
}

/* ================================================================
   RIGHTNOW MEDIA
   ================================================================ */
.rightnow-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: var(--rule-sepia);
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.rightnow-image {
    width: 220px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: contain;
    align-self: center;
    cursor: pointer;
}

.rightnow-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--seegars-green-light);
    margin-bottom: 8px;
}

.rightnow-body p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 10px;
}

.rightnow-btn {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--paper-bg);
    background: var(--seegars-green-light);
    padding: 8px 18px;
    text-decoration: none;
    transition: background 0.2s;
}

.rightnow-btn:hover {
    background: var(--seegars-green);
}

@media (max-width: 767px) {
    .rightnow-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rightnow-image {
        width: 140px;
    }
}

/* ================================================================
   FOOTER
   ================================================================ */
.newspaper-footer {
    padding: 0 var(--gutter);
    position: relative;
}

.footer-rule-thick {
    height: 3px;
    background: var(--ink);
    margin-bottom: 0;
}

.footer-rule-thin {
    height: 1px;
    background: var(--ink-faded);
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tagline {
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--seegars-green);
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--ink-faded);
}

.footer-top-link {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sepia);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-top-link:hover {
    color: var(--seegars-green);
}

/* ================================================================
   RESPONSIVE — Tablet (768–1199px)
   ================================================================ */
@media (max-width: 1199px) {
    :root {
        --gutter: 20px;
    }

    .above-fold {
        grid-template-columns: 1fr 280px;
    }

    .lead-body {
        column-count: 1;
    }

    .subsections-row {
        grid-template-columns: 1fr;
    }

    .article-body-columns {
        column-count: 1;
    }

    .ad-company {
        font-size: 1.2rem;
    }

}

/* ================================================================
   RESPONSIVE — Small Tablet / Large Phone (< 768px)
   ================================================================ */
@media (max-width: 767px) {
    :root {
        --gutter: 16px;
    }

    body {
        background-color: var(--paper-bg);
    }

    .skybox-banner {
        padding: 5px var(--gutter);
    }

    .skybox-link {
        font-size: 0.62rem;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Prevent any horizontal overflow on mobile */
    .newspaper {
        box-shadow: none;
        overflow-x: clip;
    }

    .newspaper::after {
        display: none;
    }

    /* Hide page curl on mobile */
    .newspaper-footer::after {
        display: none !important;
    }

    /* Hide fold indicator on mobile — not meaningful */
    .fold-indicator {
        display: none;
    }

    .nameplate-title {
        font-size: 2.4rem;
    }

    .nameplate-ornament {
        display: none;
    }

    /* Masthead top bar: slim sticky bar — icons only */
    .masthead-nav {
        display: none;
    }

    .masthead-top-bar .reader-count,
    .masthead-top-bar .reader-count-sep {
        display: none;
    }

    .masthead-top-bar {
        justify-content: center;
        padding: 6px var(--gutter);
    }

    .masthead-motto-bar {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 2px;
        line-height: 1.5;
    }

    .motto-item {
        white-space: normal;
    }

    .motto-dot {
        display: none;
    }

    /* Larger tap targets for social links on touch devices */
    .social-link {
        padding: 10px;
        margin: -10px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .social-icon-img {
        width: 20px;
        height: 20px;
    }

    .masthead-social {
        gap: 24px;
    }

    /* Switch to left-aligned text on mobile — justified creates ugly rivers in narrow columns */
    .article-body {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    /* Slightly larger body text for mobile readability */
    .article-body p {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* Stack above the fold */
    .above-fold {
        grid-template-columns: 1fr;
    }

    .lead-story-area {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: var(--rule-sepia);
        margin-bottom: 20px;
    }

    .sidebar-area {
        padding-left: 0;
    }

    .lead-body {
        column-count: 1;
    }

    .subsections-row {
        grid-template-columns: 1fr;
    }

    /* Safety layout stacks on mobile */
    .safety-layout {
        grid-template-columns: 1fr;
    }

    .safety-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .article-body-columns {
        column-count: 1;
    }

    /* Stack celebrations */
    .celebrations-columns {
        grid-template-columns: 1fr;
    }

    .celebrations-divider {
        width: 100%;
        height: 1px;
        margin: 16px 0;
    }

    /* Classifieds — 2 columns with larger tap targets */
    .classifieds-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classified-inner {
        padding: 16px 12px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Pull quotes — give breathing room */
    .pull-quote {
        margin: 1.2em 0;
        padding: 1em 0.8em;
        font-size: 1.05rem;
    }

    .headline-lead {
        font-size: 1.6rem;
    }

    .headline-feature {
        font-size: 1.4rem;
    }

    .headline-subtitle {
        font-size: 0.95rem;
    }

    /* Staff grid — 2 per row on tablet-ish mobile */
    .staff-grid {
        gap: 16px 24px;
    }

    /* Drop cap — scale down to avoid layout collision */
    .has-dropcap::first-letter {
        font-size: 3.5em;
        padding-right: 6px;
        padding-top: 4px;
    }

    /* Dateline inside drop-cap paragraph — keep it readable */
    .dateline {
        font-size: 0.75rem;
    }

    /* Section banners — center on mobile */
    .section-banner {
        text-align: center;
    }
}

/* ================================================================
   RESPONSIVE — Phone (< 480px)
   ================================================================ */
@media (max-width: 479px) {
    :root {
        --gutter: 14px;
    }

    .nameplate-title {
        font-size: 2rem;
    }

    /* Tighter social icon spacing on small phones */
    .masthead-social {
        gap: 18px;
    }

    /* Wrap masthead info gracefully instead of cramming onto one line */
    .masthead-info {
        font-size: 0.62rem;
        line-height: 1.8;
    }

    .masthead-dot {
        margin: 0 4px;
    }

    /* Classifieds go single column on small phones */
    .classifieds-grid {
        grid-template-columns: 1fr;
    }

    /* Celebrations — stack name/detail vertically when space is tight */
    .celebration-entry {
        font-size: 0.78rem;
    }

    .celebration-name {
        font-size: 0.78rem;
    }

    .celebration-location {
        font-size: 0.58rem;
    }

    /* Further scale drop caps for narrow screens */
    .has-dropcap::first-letter {
        font-size: 3em;
        padding-right: 5px;
    }

    .headline-lead {
        font-size: 1.4rem;
    }

    .headline-feature {
        font-size: 1.25rem;
    }

    .headline-section {
        font-size: 1.15rem;
    }

    .headline-sidebar {
        font-size: 1.15rem;
    }

    /* Staff grid — single column on small phones */
    .staff-grid {
        flex-direction: column;
        gap: 14px;
    }

    /* Subsection boxes — slightly tighter padding */
    .subsection-box {
        padding: 10px;
    }

    /* Safety category boxes */
    .safety-cat-box {
        padding: 8px 10px;
    }

    /* Vintage ad — keep it compact */
    .vintage-ad {
        margin-top: 16px;
    }

    .ad-company {
        font-size: 1.1rem;
    }
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper-bg);
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 0.7;
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
    opacity: 1;
}

/* ================================================================
   PRINT STYLESHEET
   ================================================================ */
@media print {
    body {
        background: white;
        color: black;
        font-size: 10pt;
    }

    .newspaper {
        box-shadow: none;
        max-width: 100%;
        background: white;
    }

    .newspaper::before,
    .newspaper::after {
        display: none;
    }

    .newspaper-footer::after {
        display: none;
    }

    .social-link,
    .home-link,
    .footer-top-link,
    .back-to-top,
    .nav-dropdown,
    .reader-count,
    .reader-count-sep,
    .skybox-banner {
        display: none;
    }

    .masthead-top-bar {
        justify-content: center;
        position: static;
        box-shadow: none;
    }

    .wx-rays, .wx-cloud, .wx-drop, .wx-flake, .wx-bolt, .wx-fog {
        animation: none !important;
    }

    .section-fade {
        opacity: 1 !important;
        transform: none !important;
    }

    .classified-card {
        break-inside: avoid;
    }

    .above-fold {
        grid-template-columns: 1fr 280px;
    }

    .lead-body {
        column-count: 2;
    }

    .article-body-columns {
        column-count: 2;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .section-banner,
    .banner-safety,
    .banner-tech {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .vintage-ad {
        break-inside: avoid;
    }

    .fold-indicator {
        display: none;
    }
}

/* ================================================================
   MAZE GAME
   ================================================================ */
.maze-section {
    padding: 0 var(--gutter);
    padding-bottom: 20px;
    text-align: center;
}

.maze-header {
    text-align: center;
    margin-bottom: 16px;
}

.maze-rule {
    height: 1px;
    background: var(--sepia-rule);
    margin: 6px 0;
}

.maze-title {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    margin: 8px 0 2px;
}

.maze-subtitle {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
}

.maze-wrapper {
    display: block;
    border: 3px solid var(--ink);
    background: var(--cream);
    padding: 2px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.maze-wrapper canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    touch-action: none;
}

.maze-controls {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.maze-btn {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px;
    border: 2px solid var(--purple);
    background: var(--cream);
    color: var(--purple);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.maze-btn:hover {
    background: var(--purple);
    color: var(--cream);
}

.maze-status {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sepia);
}


/* ================================================================
   THE FUNNIES — Comic Strip
   ================================================================ */
.funnies-section {
    padding: 0 var(--gutter);
    padding-bottom: 30px;
    text-align: center;
}

.funnies-header {
    text-align: center;
    margin-bottom: 16px;
}

.funnies-rule {
    height: 1px;
    background: var(--sepia-rule);
    margin: 6px 0;
}

.funnies-title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.05em;
}

.funnies-subtitle {
    font-family: var(--font-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--seegars-green);
}

.comic-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    border: 3px solid var(--ink);
    background: #e8e0c8;
    position: relative;
    overflow: hidden;
    max-width: fit-content;
    margin: 0 auto;
}

/* Newspaper aging overlay */
.comic-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 115, 85, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 30%, rgba(139, 115, 85, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.comic-panel {
    position: relative;
    overflow: hidden;
}

.comic-panel:not(:last-child) {
    border-right: 2.5px solid var(--ink);
}

.comic-panel img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.05) brightness(0.95);
}

.funnies-credit {
    text-align: right;
    font-family: var(--font-label);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sepia);
    margin-top: 6px;
    font-style: italic;
}

@media (max-width: 767px) {
    .comic-strip {
        flex-direction: column;
    }

    .comic-panel:not(:last-child) {
        border-right: none;
        border-bottom: 2.5px solid var(--ink);
    }
}

/* ================================================================
   WEATHER ANIMATIONS
   ================================================================ */
@keyframes wx-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wx-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes wx-fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}

@keyframes wx-flash {
    0%, 90%, 100% { opacity: 0.15; }
    93%, 97% { opacity: 1; }
}

@keyframes wx-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.wx-rays {
    animation: wx-spin 12s linear infinite;
    transform-origin: 24px 24px;
}

.wx-cloud {
    animation: wx-drift 6s ease-in-out infinite;
}

.wx-drop {
    animation: wx-fall 1.5s ease-in infinite;
}

.wx-drop-2 { animation-delay: 0.5s; }
.wx-drop-3 { animation-delay: 1s; }

.wx-flake {
    animation: wx-fall 2.5s ease-in infinite;
}

.wx-flake-2 { animation-delay: 0.8s; }
.wx-flake-3 { animation-delay: 1.6s; }

.wx-bolt {
    animation: wx-flash 3s ease-in-out infinite;
}

.wx-fog {
    animation: wx-pulse 4s ease-in-out infinite;
}

.wx-fog-2 { animation-delay: 1.3s; }
.wx-fog-3 { animation-delay: 2.6s; }

/* ================================================================
   ACCESSIBILITY — Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .section-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wx-rays, .wx-cloud, .wx-drop, .wx-flake, .wx-bolt, .wx-fog {
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ================================================================
   LOGIN OVERLAY
   ================================================================ */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--cream);
    border: 1px solid var(--sepia-rule);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 48px 40px 36px;
    text-align: center;
}

.login-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: var(--rule-double);
}

.login-company {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--seegars-green);
    margin-bottom: 4px;
}

.login-title {
    font-family: var(--font-headline);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 8px;
}

.login-subtitle {
    font-family: var(--font-label);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sepia);
}

.login-error {
    background: #fdf0ef;
    color: #9b2c2c;
    border: 1px solid #e8aaaa;
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 2px;
}

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

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper-bg);
    border: 1px solid var(--sepia-rule);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
}

.login-field input:focus {
    border-color: var(--seegars-green);
    box-shadow: 0 0 0 2px rgba(26, 107, 58, 0.15);
}

.login-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--seegars-green);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: var(--seegars-green-dark);
}

.login-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: var(--rule-sepia);
    font-family: var(--font-label);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sepia-light);
}

/* Login — responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 28px;
    }

    .login-title {
        font-size: 2rem;
    }
}

/* ================================================================
   INSTALLATION SHOWCASE CAROUSEL
   ================================================================ */
.install-showcase-section {
    padding: 0 var(--gutter);
    padding-bottom: 30px;
}

.install-showcase-header {
    text-align: center;
    margin-bottom: 20px;
}

.install-showcase-rule {
    height: 1px;
    background: var(--sepia-rule);
    margin: 8px 0;
}

.install-showcase-title {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.03em;
}

.install-showcase-subtitle {
    font-family: var(--font-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--seegars-green);
}

/* Carousel layout */
.install-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 820px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 2px;
}

.carousel-track {
    display: flex;
    transition: transform 0.75s ease;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Animated green comic-gradient border */
@keyframes carousel-border-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.carousel-frame {
    padding: 4px;
    border-radius: 3px;
    background: linear-gradient(
        135deg,
        #2d8a4e,
        #6b3fa0,
        #4aab6a,
        #8b6bb5,
        #2d8a4e,
        #6b3fa0,
        #4aab6a,
        #2d8a4e
    );
    background-size: 300% 300%;
    animation: carousel-border-shift 4s ease infinite;
    box-shadow:
        0 0 8px rgba(107, 63, 160, 0.3),
        inset 0 0 4px rgba(45, 138, 78, 0.15);
}

.carousel-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

/* Carousel buttons */
.carousel-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sepia-rule);
    background: var(--cream);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 2px;
}

.carousel-btn:hover {
    background: var(--paper-bg-dark);
    border-color: var(--sepia);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--sepia-rule);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.carousel-dot.active {
    background: var(--purple);
    border-color: var(--purple);
}

.carousel-dot:hover {
    border-color: var(--purple);
}

/* Carousel — responsive */
@media (max-width: 767px) {
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .carousel-frame img {
        max-height: 300px;
    }
}
