/* ============================================
   STUDENT GAZETTE — Classic Newspaper Theme
   
   Typography:
     Headlines: 'Playfair Display' (classic serif)
     Body:      'Source Serif 4' (readable serif)
     UI/Meta:   'Inter' (clean sans-serif)
   
   Colors:
     Ink:        #1a1a1a
     Paper:      #FDF8F0 (warm cream)
     Card:       #FFFFFF
     Accent:     #C8102E (classic red)
     Rule Line:  #2a2a2a
     Subtle:     #6B6B6B
     Border:     #D4CFC7
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Source+Serif+4:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=UnifrakturCook:wght@700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #1a1a1a;
    --paper: #FDF8F0;
    --card: #FFFFFF;
    --accent: #C8102E;
    --accent-dark: #9B0C23;
    --rule: #2a2a2a;
    --subtle: #6B6B6B;
    --border: #D4CFC7;
    --border-light: #E8E3DB;
    --shadow: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --font-headline: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Source Serif 4', 'Georgia', serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
    --font-gothic: 'UnifrakturCook', cursive;
    --max-width: 1200px;
    --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== NEWSPAPER TOP STRIP ===== */
.top-strip {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    font-family: var(--font-ui);
    font-size: 11px;
    padding: 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-strip a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.top-strip a:hover { color: #fff; }
.top-strip-links { display: flex; gap: 16px; }
.weather-date { display: flex; gap: 16px; align-items: center; }

/* ===== MASTHEAD ===== */
.masthead {
    text-align: center;
    padding: 28px 0 20px;
    border-bottom: 4px double var(--rule);
    position: relative;
    background: var(--paper);
}
.masthead::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--rule);
    margin-top: 4px;
}
.masthead-title {
    font-family: var(--font-gothic);
    font-size: 64px;
    color: var(--ink);
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.masthead-tagline {
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--subtle);
    margin-bottom: 6px;
}
.masthead-edition {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--subtle);
    letter-spacing: 1px;
}
.masthead-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}
.masthead-rule span {
    height: 1px;
    flex: 1;
    max-width: 200px;
    background: var(--border);
}
.masthead-rule .dot {
    height: auto;
    width: auto;
    flex: none;
    background: none;
    font-size: 8px;
    color: var(--accent);
}

/* ===== NAVIGATION ===== */
.main-nav-wrap {
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.main-nav ul {
    display: flex;
    gap: 0;
}
.main-nav a {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink);
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Search */
.nav-search { position: relative; }
.nav-search input {
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 13px;
    width: 180px;
    background: var(--card);
    transition: all 0.2s;
}
.nav-search input:focus {
    outline: none;
    border-color: var(--ink);
    width: 240px;
}
.nav-search button {
    position: absolute;
    right: 2px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    color: var(--subtle);
}
.nav-search button:hover { color: var(--ink); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
    font-family: var(--font-ui);
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-bar {
    background: var(--accent);
    color: #fff;
    padding: 8px 0;
    font-family: var(--font-ui);
    font-size: 13px;
    overflow: hidden;
}
.breaking-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.breaking-label {
    background: var(--ink);
    padding: 3px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breaking-text a { color: #fff; }
.breaking-text a:hover { text-decoration: underline; }

/* ===== NEWSPAPER RULES ===== */
.rule-heavy { border-top: 3px solid var(--rule); }
.rule-double {
    border-top: 3px double var(--rule);
    margin: 0;
    padding: 0;
}
.rule-thin { border-top: 1px solid var(--border); }
.rule-dashed { border-top: 1px dashed var(--border); }

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
}
.section-header h2 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}
.section-header::after {
    content: '';
    flex: 1;
    height: 0;
}
.section-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}

/* ===== MAIN LAYOUT ===== */
.newspaper-layout {
    padding: 30px 0 60px;
}

/* ===== LEAD STORY ===== */
.lead-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.lead-story {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: start;
}
.lead-image {
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.lead-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.5s;
}
.lead-image:hover img { transform: scale(1.02); }
.lead-image.placeholder-img {
    height: 360px;
    background: linear-gradient(135deg, var(--ink) 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-gothic);
    font-size: 48px;
    color: rgba(255,255,255,0.15);
}
.lead-content .kicker {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-block;
}
.lead-content h1 {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.lead-content h1 a { color: var(--ink); }
.lead-content h1 a:hover { color: var(--accent); }
.lead-content .lead-excerpt {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 14px;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
}
.lead-content .byline {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lead-content .byline strong {
    color: var(--ink);
}

/* ===== COLUMNS GRID ===== */
.columns-section {
    display: grid;
    grid-template-columns: 1fr 1fr 340px;
    gap: 0;
    border-top: 3px solid var(--ink);
    padding-top: 24px;
}
.column {
    padding: 0 24px;
    border-right: 1px solid var(--border);
}
.column:first-child { padding-left: 0; }
.column:last-child { border-right: none; padding-right: 0; }

/* ===== STORY CARDS (Newspaper style) ===== */
.story {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border);
}
.story:last-child { border-bottom: none; margin-bottom: 0; }

.story-kicker {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}
.story-kicker a { color: var(--accent); }
.story-kicker a:hover { text-decoration: underline; }

.story h3 {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--ink);
}
.story h3 a { color: var(--ink); }
.story h3 a:hover { color: var(--accent); }

.story h4 {
    font-family: var(--font-headline);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--ink);
}
.story h4 a { color: var(--ink); }
.story h4 a:hover { color: var(--accent); }

.story-excerpt {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 8px;
}
.story-image {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.story-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s;
}
.story-image:hover img { transform: scale(1.03); }
.story-image.placeholder-sm {
    height: 180px;
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-gothic);
    font-size: 28px;
    color: rgba(255,255,255,0.1);
    border: 1px solid var(--border-light);
}

.story-meta {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Story with image side by side */
.story-row {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}
.story-row:last-child { border-bottom: none; }
.story-row-img {
    width: 110px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.story-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-row-img.placeholder-xs {
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-gothic); font-size: 18px;
    color: rgba(255,255,255,0.1);
}
.story-row-body { flex: 1; }
.story-row-body h5 {
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}
.story-row-body h5 a { color: var(--ink); }
.story-row-body h5 a:hover { color: var(--accent); }

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.sidebar-widget:last-child { border-bottom: none; }

.widget-header {
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 16px;
    color: var(--ink);
}

.trending-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.trending-list li:last-child { border: none; }
.trending-num {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.trending-info a {
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}
.trending-info a:hover { color: var(--accent); }
.trending-info .t-meta {
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-list li { padding: 6px 0; }
.cat-list li a {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s;
}
.cat-list li a:hover { color: var(--accent); }
.cat-count {
    font-size: 11px;
    color: var(--subtle);
    background: var(--paper);
    padding: 1px 8px;
    border-radius: 10px;
}

/* ===== SINGLE ARTICLE ===== */
.article-page {
    padding: 30px 0 50px;
}
.article-page .article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-main {
    max-width: 720px;
}
.article-breadcrumb {
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--subtle);
    margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--accent); }
.article-breadcrumb a:hover { text-decoration: underline; }

.article-header-section {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.article-kicker {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 14px;
    display: inline-block;
}
.article-kicker:hover { text-decoration: underline; }
.article-headline {
    font-family: var(--font-headline);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.article-deck {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: #555;
    font-style: italic;
    margin-bottom: 18px;
}
.article-byline {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.article-byline strong { color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; }

.article-featured-img {
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.article-featured-img img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.article-featured-img figcaption {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--subtle);
    padding: 8px 12px;
    background: #faf7f0;
    border-top: 1px solid var(--border-light);
}

/* Article body — newspaper column feel */
.article-body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.85;
    color: #333;
}
.article-body p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}
.article-body p:first-of-type::first-letter {
    font-family: var(--font-headline);
    font-size: 64px;
    float: left;
    line-height: 0.8;
    padding: 4px 10px 0 0;
    color: var(--accent);
    font-weight: 900;
}
.article-body h2 {
    font-family: var(--font-headline);
    font-size: 26px;
    color: var(--ink);
    margin: 36px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article-body h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    color: var(--ink);
    margin: 28px 0 12px;
}
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 28px 0;
    font-style: italic;
    font-size: 19px;
    color: #555;
    background: rgba(200,16,46,0.03);
}
.article-body img { margin: 24px 0; border: 1px solid var(--border-light); }
.article-body ul, .article-body ol {
    margin: 16px 0 16px 24px;
    list-style: disc;
}
.article-body li { margin-bottom: 6px; }

/* ===== REACTIONS ===== */
.reactions-wrap {
    margin-top: 36px;
    padding: 28px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--border);
}
.reactions-title {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtle);
    margin-bottom: 14px;
}
.reactions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.reaction-form { display: inline-block; }
.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-ui);
    font-size: 13px;
}
.reaction-btn:hover {
    border-color: var(--ink);
    box-shadow: var(--shadow);
}
.reaction-btn.active {
    border-color: var(--accent);
    background: #fff5f5;
}
.reaction-emoji { font-size: 18px; }
.reaction-count { font-weight: 700; color: var(--ink); }
.reaction-label { font-size: 11px; color: var(--subtle); }

/* ===== SHARE BAR ===== */
.share-wrap {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.share-title {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtle);
    margin-bottom: 12px;
}
.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.share-btn:hover { opacity: 0.85; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0A66C2; }
.share-email { background: var(--ink); }
.share-copy { background: var(--subtle); }

/* ===== COMMENTS ===== */
.comments-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 3px solid var(--ink);
}
.comments-header {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.comments-header .count {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--subtle);
    font-weight: 400;
}

.comment-form h4 {
    font-family: var(--font-headline);
    font-size: 17px;
    margin-bottom: 16px;
}
.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.comment-form .form-group { margin-bottom: 14px; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--card);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.comment-form textarea { min-height: 100px; resize: vertical; }

.btn-submit {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent); }

.comments-list { margin-top: 28px; }
.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
}
.comment-avatar {
    width: 42px; height: 42px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.comment-author {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.comment-date {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--subtle);
}
.comment-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}
.no-comments {
    text-align: center;
    color: var(--subtle);
    padding: 30px;
    font-style: italic;
    font-family: var(--font-body);
}

/* ===== RELATED ===== */
.related-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid var(--ink);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.related-card {
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: var(--shadow-md); }
.related-card-img {
    height: 140px;
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
    overflow: hidden;
}
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 14px; }
.related-card-body h4 {
    font-family: var(--font-headline);
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 4px;
}
.related-card-body h4 a { color: var(--ink); }
.related-card-body h4 a:hover { color: var(--accent); }
.related-card-body .meta {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--subtle);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 30px 0;
    font-family: var(--font-ui);
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid var(--border);
}
.pagination a { background: var(--card); color: var(--ink); }
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== CATEGORY PAGE ===== */
.page-header-np {
    padding: 28px 0 20px;
    border-bottom: 3px solid var(--ink);
    margin-bottom: 28px;
}
.page-header-np h1 {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 900;
}
.page-header-np p {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--subtle);
    margin-top: 4px;
}

.stories-list .story {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.stories-list .story-thumb {
    width: 260px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.stories-list .story-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.stories-list .story-thumb.placeholder-md {
    background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-gothic); font-size: 32px;
    color: rgba(255,255,255,0.1);
}

/* ===== SEARCH PAGE ===== */
.search-form-np {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    border: 2px solid var(--ink);
}
.search-form-np input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--card);
}
.search-form-np input:focus { outline: none; }
.search-form-np button {
    padding: 14px 28px;
    background: var(--ink);
    color: #fff;
    border: none;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-form-np button:hover { background: var(--accent); }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0 60px;
}
.contact-form label {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink);
    margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    margin-bottom: 18px;
    background: var(--card);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-info h3 {
    font-family: var(--font-headline);
    font-size: 22px;
    margin-bottom: 16px;
}
.contact-info p { margin-bottom: 10px; color: #555; }
.contact-info strong { color: var(--ink); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding: 48px 0 0;
    font-family: var(--font-ui);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 36px;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col p { font-size: 13px; line-height: 1.7; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul a { font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-brand {
    font-family: var(--font-gothic);
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-family: var(--font-ui);
    font-size: 14px;
    border-left: 3px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #16a34a; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #dc2626; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--subtle);
    font-size: 18px;
    font-family: var(--font-body);
    font-style: italic;
}

/* ===== FULL MOBILE OPTIMIZATION ===== */
@media (max-width: 1024px) {
    .columns-section { grid-template-columns: 1fr 1fr; }
    .column:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 2px solid var(--ink);
        padding: 24px 0 0;
    }
    .article-page .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Masthead */
    .masthead-title { font-size: 42px; }
    .masthead { padding: 20px 0 16px; }

    /* Nav */
    .main-nav { display: none; width: 100%; order: 3; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-light);
        border-left: none;
    }
    .main-nav a:hover, .main-nav a.active { border-bottom-color: var(--accent); }
    .menu-toggle { display: block; }
    .nav-inner { flex-wrap: wrap; }
    .nav-search { order: 2; flex: 1; }
    .nav-search input { width: 100%; }
    .nav-search input:focus { width: 100%; }

    /* Lead */
    .lead-story { grid-template-columns: 1fr; }
    .lead-image img { height: 240px; }
    .lead-image.placeholder-img { height: 240px; }
    .lead-content h1 { font-size: 28px; }
    .lead-content .lead-excerpt { font-size: 15px; }

    /* Columns to single */
    .columns-section { grid-template-columns: 1fr; }
    .column {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .column:last-child { border-bottom: none; }

    /* Stories */
    .stories-list .story {
        flex-direction: column;
    }
    .stories-list .story-thumb {
        width: 100%;
        height: 200px;
    }

    /* Article */
    .article-headline { font-size: 28px; }
    .article-deck { font-size: 17px; }
    .article-body { font-size: 16px; }
    .article-body p:first-of-type::first-letter { font-size: 48px; }

    /* Comments */
    .comment-form-row { grid-template-columns: 1fr; }

    /* Share */
    .share-btn { padding: 7px 12px; font-size: 11px; }
    .reaction-label { display: none; }
    .reaction-btn { padding: 8px 12px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .masthead-title { font-size: 32px; }
    .top-strip { font-size: 10px; }
    .top-strip-links { display: none; }
    .lead-content h1 { font-size: 24px; }
    .article-headline { font-size: 24px; }
    .story h3 { font-size: 19px; }
    .share-buttons { gap: 6px; }
    .share-btn span:first-child { display: none; }
}

@media (max-width: 360px) {
    .masthead-title { font-size: 26px; letter-spacing: 0; }
    .container { padding: 0 12px; }
}