/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: georgia, 'times new roman', times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    border-bottom: 1px solid #e2e2e2;
    position: relative;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid #e2e2e2;
    padding: 8px 0;
    font-size: 11px;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-header {
    background: none;
    border: 1px solid #666;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-toggle-header:hover {
    background-color: #f0f0f0;
    border-color: #333;
}

.theme-toggle-header .dark-icon {
    display: none;
}

body.dark-mode .theme-toggle-header .light-icon {
    display: none;
}

body.dark-mode .theme-toggle-header .dark-icon {
    display: inline;
}

body.dark-mode .theme-toggle-header {
    border-color: #999;
}

body.dark-mode .theme-toggle-header:hover {
    background-color: #333;
    border-color: #fff;
}

.date {
    font-weight: 700;
    text-transform: uppercase;
}

.tagline {
    font-style: italic;
    color: #666;
}

.header-main {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #000;
    position: relative;
    z-index: 1;
}

.site-title {
    font-family: 'Playfair Display', georgia, serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #000;
    text-decoration: none;
}

.site-subtitle {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    font-family: georgia, serif;
}

/* Navigation */
nav {
    border-bottom: 1px solid #e2e2e2;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    position: relative;
    z-index: 100;
    background-color: #fff;
    overflow: visible;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    margin: 0;
    min-height: 48px;
}

.nav-menu li {
    margin: 0;
    display: flex;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 16px 16px;
    color: #000;
    font-weight: 500;
    font-size: 14px;
    text-transform: capitalize;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    text-decoration: none;
    border-bottom-color: #000;
}

/* Main Content */
main {
    padding: 60px 0 20px 0;
}

/* Hero Section */
.hero-section {
    border-bottom: 1px solid #e2e2e2;
    padding: 30px 0 20px 0;
    margin-bottom: 30px;
}

.hero-article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.article-content h2 {
    font-family: nyt-cheltenham, georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
}

.article-content h2 a {
    color: #121212;
}

.article-content h2 a:hover {
    text-decoration: none;
    color: #326891;
}

.article-excerpt {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
    font-family: georgia, serif;
}

.category {
    display: inline-block;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    padding: 4px 10px;
    background-color: #666;
    border: 1px solid #666;
    border-radius: 3px;
    color: #fff;
    transition: all 0.2s ease;
}

.category:hover {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

/* Breaking News Tag */
.breaking-tag {
    display: inline-block;
    background-color: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.dark-mode .breaking-tag {
    background-color: #ff5252;
    color: #000;
}

.category.local {
    background-color: #388e3c;
    border-color: #388e3c;
    color: #fff;
}

.category.politics {
    background-color: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

.category.business {
    background-color: #7b1fa2;
    border-color: #7b1fa2;
    color: #fff;
}

.category.lifestyle {
    background-color: #f57c00;
    border-color: #f57c00;
    color: #fff;
}

.category.sports {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}

.category.opinion {
    background-color: #455a64;
    border-color: #455a64;
    color: #fff;
}

.article-meta {
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 13px;
    color: #727272;
}

.article-meta span {
    margin-right: 10px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 12px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Top Stories Grid */
.top-stories {
    margin: 40px 0;
}

.section-title {
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px 30px;
}

.story-card {
    border-top: 1px solid #e2e2e2;
    padding-top: 15px;
}

.story-card h4 {
    font-family: nyt-cheltenham, georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 8px 0;
}

.story-card h4 a {
    color: #121212;
}

.story-card h4 a:hover {
    text-decoration: none;
    color: #326891;
}

.story-card p {
    font-family: georgia, serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 8px;
}

/* Weather Ticker */
.weather-ticker {
    background-color: #f7f7f7;
    padding: 15px 20px;
    text-align: center;
    margin: 30px 0;
    border: 1px solid #e2e2e2;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
}

.weather-ticker h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.weather-ticker p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.weather-ticker .ticker-temp {
    font-weight: 600;
    margin-right: 10px;
}

.weather-ticker .ticker-desc {
    color: var(--text-secondary);
}

.weather-ticker .ticker-error {
    color: #999;
    font-style: italic;
}

.weather-ticker .ticker-snarky {
    font-weight: 700;
    color: #333;
    font-style: italic;
}

.snarky-comment {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-style: italic;
}

.actual-desc {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Preview Banner */
.preview-banner {
    background-color: #fef3cd;
    border-bottom: 2px solid #fceaa1;
    padding: 15px 0;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.preview-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.preview-banner .draft-status {
    background-color: #856404;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.preview-banner .edit-link {
    color: #856404;
    text-decoration: underline;
}

body.dark-mode .preview-banner {
    background-color: #332701;
    border-bottom-color: #664d03;
    color: #ffeb3b;
}

body.dark-mode .preview-banner .draft-status {
    background-color: #ffeb3b;
    color: #332701;
}

body.dark-mode .preview-banner .edit-link {
    color: #ffeb3b;
}

/* Article Detail */
.article-detail {
    max-width: 740px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.article-header {
    margin-bottom: 20px;
}

/* Article Featured Image */
.article-featured-image {
    margin: 30px 0;
    text-align: center;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-featured-image .image-caption {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 0 20px;
}

/* Social Share Tools - Inline under byline */
.share-tools-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 12px 0 20px 0;
    border-top: 1px solid #e2e2e2;
}

.share-label {
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin-right: 4px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e2e2;
    background: transparent;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.share-button:hover {
    background: #f8f8f8;
    border-color: #999;
    color: #333;
}

.share-button.copied {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

.share-button svg {
    width: 16px;
    height: 16px;
}

/* Dark mode support */
.dark-mode .share-tools-inline {
    border-top-color: #333;
}

.dark-mode .share-label {
    color: #999;
}

.dark-mode .share-button {
    background: transparent;
    border-color: #333;
    color: #999;
}

.dark-mode .share-button:hover {
    background: #1a1a1a;
    border-color: #555;
    color: #fff;
}

.dark-mode .share-button.copied {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

/* Current image preview in form */
.current-image {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.current-image p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.current-image img {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.article-header h1 {
    font-family: nyt-cheltenham, georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin: 15px 0;
}

.article-body {
    font-family: georgia, serif;
    font-size: 18px;
    line-height: 1.75;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

/* Markdown Content Styling */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    font-family: nyt-cheltenham, georgia, serif;
    font-weight: 700;
    margin: 30px 0 15px;
    line-height: 1.25;
}

.markdown-content h1 { font-size: 32px; }
.markdown-content h2 { font-size: 28px; }
.markdown-content h3 { font-size: 24px; }
.markdown-content h4 { font-size: 20px; }
.markdown-content h5 { font-size: 18px; }
.markdown-content h6 { font-size: 16px; }

.markdown-content ul,
.markdown-content ol {
    margin: 0 0 20px 30px;
}

.markdown-content li {
    margin-bottom: 8px;
}

.markdown-content blockquote {
    border-left: 3px solid #326891;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.markdown-content pre {
    background-color: #f7f7f7;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.markdown-content code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 30px 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e2e2e2;
    padding: 12px;
    text-align: left;
}

.markdown-content th {
    background-color: #f7f7f7;
    font-weight: 700;
}

/* Dark mode markdown styles */
body.dark-mode .markdown-content blockquote {
    border-left-color: #6db3f2;
    color: #aaa;
}

body.dark-mode .markdown-content pre {
    background-color: #1a1a1a;
    border-color: #333;
}

body.dark-mode .markdown-content code {
    background-color: #2a2a2a;
    color: #e8e8e8;
}

body.dark-mode .markdown-content hr {
    border-top-color: #333;
}

body.dark-mode .markdown-content th {
    background-color: #2a2a2a;
}

body.dark-mode .markdown-content th,
body.dark-mode .markdown-content td {
    border-color: #333;
}

.author-bio {
    margin-top: 40px;
    padding: 20px;
    background-color: #f7f7f7;
    border-left: 3px solid #326891;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 14px;
}

/* Category Page */
.category-header {
    text-align: center;
    margin: 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e2e2;
}

.category-title {
    font-family: nyt-cheltenham, georgia, serif;
    font-size: 36px;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    text-transform: uppercase;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #000;
    color: #000;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* Page Content */
.page-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content h1 {
    font-family: nyt-cheltenham, georgia, serif;
    font-size: 40px;
    margin-bottom: 20px;
}

.page-content h2 {
    font-family: nyt-cheltenham, georgia, serif;
    font-size: 28px;
    margin: 30px 0 15px;
}

.page-content p {
    font-family: georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-content .lead {
    font-size: 20px;
    line-height: 1.5;
    font-style: italic;
    color: #333;
    margin-bottom: 30px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.disclaimer-box {
    background-color: #fef8e7;
    border: 1px solid #f3e7c3;
    padding: 20px;
    margin: 30px 0;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 14px;
}

/* Weather Page - Complete Redesign */
body.weather-page-body {
    background: #f8f9fa;
}

.weather-hero {
    padding: 60px 0;
    text-align: center;
    transition: all 0.5s ease;
}






.weather-hero-content {
    position: relative;
    z-index: 1;
}

.weather-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.weather-tagline {
    font-size: 20px;
    color: #666;
    margin: 10px 0 0 0;
    font-style: italic;
}

.weather-page-enhanced {
    position: relative;
    z-index: 1;
}

/* Current Weather Card */
.current-weather-section {
    margin-bottom: 40px;
}

.current-weather-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
    align-items: start;
    position: relative;
    overflow: hidden;
}

/* Ensure all card content is above the star overlay */
.weather-icon-large,
.current-weather-info,
.last-updated {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .current-weather-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }
    
    .current-weather-info {
        text-align: center !important;
    }
    
    .temperature-display {
        justify-content: center;
    }
}

.current-weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102,126,234,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.weather-icon-large {
    font-size: 120px;
    line-height: 1;
    grid-row: 1;
    align-self: center;
}

.current-weather-info {
    text-align: left;
    grid-row: 1;
}

.temperature-display {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.temp-large {
    font-size: 96px;
    font-weight: 300;
    line-height: 1;
    color: #333;
}

.temp-unit-large {
    font-size: 48px;
    font-weight: 300;
    color: #666;
    margin-top: 10px;
}

.weather-description {
    margin-bottom: 30px;
}

.weather-description .snarky-comment {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    line-height: 1.2;
}

.weather-description .actual-desc {
    font-size: 20px;
    color: #666;
}

/* Weather Stats */
.weather-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    z-index: 1;
}

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

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Old Weather Page styles - keeping for compatibility */
.weather-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.weather-forecast {
    text-align: center;
    margin: 40px 0;
}

.weather-card {
    background: linear-gradient(135deg, #4a90e2 0%, #7b68ee 100%);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
}

.temperature {
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 10px;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
}

.weather-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    font-size: 16px;
}

.weather-details p {
    margin: 0;
}

.last-updated {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 0;
    grid-column: 1 / -1;
    grid-row: 3;
    position: relative;
    z-index: 1;
    text-align: center;
}

.forecast-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

.forecast-day .weather-icon {
    font-size: 32px;
    margin: 10px 0;
}

.forecast-day .day-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.forecast-day .day-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.forecast-day .day-temps {
    margin: 10px 0;
}

.forecast-day .high {
    font-weight: 600;
    margin-right: 10px;
}

.forecast-day .low {
    color: var(--text-secondary);
}

.forecast-day .day-precip {
    font-size: 12px;
    color: #4a90e2;
}

/* Forecast Section - New Design */
.forecast-section {
    margin-top: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.forecast-section .forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 0;
}

.forecast-section .forecast-day {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.forecast-section .forecast-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.forecast-section .day-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forecast-section .day-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.forecast-section .weather-icon {
    font-size: 48px;
    margin: 15px 0;
    display: block;
}

.forecast-section .day-desc {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-section .day-temps {
    margin: 15px 0;
    font-size: 18px;
}

.forecast-section .high {
    font-weight: 700;
    color: #e74c3c;
    margin-right: 8px;
}

.forecast-section .low {
    color: #3498db;
    font-weight: 600;
}

.forecast-section .day-precip {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
    margin-top: 5px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.forecast-day {
    background-color: #f7f7f7;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e2e2;
}

.alert-box {
    background-color: #fef3cd;
    border: 1px solid #fceaa1;
    color: #856404;
    padding: 20px;
    margin: 20px 0;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #f7f7f7;
    border-top: 1px solid #e2e2e2;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    font-family: nyt-franklin, helvetica, arial, sans-serif;
    font-size: 12px;
}

footer p {
    margin-bottom: 5px;
    color: #666;
}

.disclaimer {
    font-style: italic;
    color: #999;
}

/* Dark Mode - Removed automatic dark mode to prevent conflicts */
/* @media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
        color: #e8e8e8;
    }
    
    header {
        background-color: #121212;
        border-bottom-color: #2a2a2a;
    }
    
    .header-top {
        background-color: #000;
        border-bottom-color: #2a2a2a;
    }
    
    .header-main {
        background-color: #121212;
        border-bottom-color: #444;
    }
    
    .site-title a {
        color: #fff;
    }
    
    .site-subtitle,
    .tagline {
        color: #aaa;
    }
    
    nav {
        background-color: #000;
        border-bottom-color: #2a2a2a;
    }
    
    .nav-menu a {
        color: #e0e0e0;
    }
    
    .nav-menu a:hover {
        color: #fff;
        border-bottom-color: #fff;
    }
    
    .hero-section {
        border-color: #2a2a2a;
    }
    
    .story-card {
        border-color: #2a2a2a;
    }
    
    .article-content h2 a,
    .story-card h4 a {
        color: #e0e0e0;
    }
    
    .article-content h2 a:hover,
    .story-card h4 a:hover {
        color: #6db3f2;
    }
    
    .article-excerpt,
    .story-card p {
        color: #ccc;
    }
    
    .category {
        background-color: transparent;
        border-color: #666;
        color: #e0e0e0;
    }
    
    .category:hover {
        background-color: #fff;
        border-color: #fff;
        color: #000;
    }
    
    .category.local {
        border-color: #66bb6a;
        color: #66bb6a;
    }
    
    .category.politics {
        border-color: #42a5f5;
        color: #42a5f5;
    }
    
    .category.business {
        border-color: #ab47bc;
        color: #ab47bc;
    }
    
    .category.lifestyle {
        border-color: #ff9800;
        color: #ff9800;
    }
    
    .category.sports {
        border-color: #ef5350;
        color: #ef5350;
    }
    
    .category.opinion {
        border-color: #78909c;
        color: #78909c;
    }
    
    .article-meta {
        color: #999;
    }
    
    .placeholder-image {
        background-color: #1a1a1a;
        color: #555;
        border: 1px solid #2a2a2a;
    }
    
    .section-title {
        border-bottom-color: #666;
        color: #e0e0e0;
    }
    
    .weather-ticker {
        background-color: #1a1a1a;
        border-color: #333;
        color: #e8e8e8;
    }
    
    .weather-ticker p {
        color: #ccc;
    }
    
    .article-detail,
    .page-content,
    .weather-page {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .article-body {
        color: #e0e0e0;
    }
    
    .author-bio {
        background-color: #2a2a2a;
        border-left-color: #6db3f2;
    }
    
    .category-header {
        border-bottom-color: #333;
    }
    
    .pagination a {
        border-color: #666;
        color: #e0e0e0;
    }
    
    .pagination a:hover {
        background-color: #fff;
        color: #000;
        border-color: #fff;
    }
    
    .pagination-info {
        color: #999;
    }
    
    .disclaimer-box {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .forecast-day {
        background-color: #2a2a2a;
        border-color: #444;
    }
    
    .alert-box {
        background-color: #332701;
        border-color: #664d03;
        color: #ffeb3b;
    }
    
    footer {
        background-color: #000;
        border-top-color: #2a2a2a;
    }
    
    footer p {
        color: #999;
    }
    
    .disclaimer {
        color: #666;
    }
} */

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background-color: #333;
}

body.dark-mode .dark-mode-toggle {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

/* Manual Dark Mode Class */
body.dark-mode {
    background-color: #0a0a0a !important;
    color: #e8e8e8 !important;
}


body.dark-mode header {
    background-color: #121212 !important;
    border-bottom-color: #2a2a2a !important;
}

body.dark-mode .header-top {
    background-color: #000 !important;
    border-bottom-color: #2a2a2a !important;
}

body.dark-mode .header-main {
    background-color: #121212 !important;
    border-bottom-color: #444 !important;
}

body.dark-mode .site-title a {
    color: #fff;
}

body.dark-mode .site-subtitle,
body.dark-mode .tagline {
    color: #aaa;
}

body.dark-mode nav {
    background-color: #000 !important;
    border-bottom-color: #2a2a2a !important;
}

body.dark-mode .nav-menu a {
    color: #e0e0e0;
}

body.dark-mode .nav-menu a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

body.dark-mode .hero-section {
    border-color: #2a2a2a;
}

body.dark-mode .story-card {
    border-color: #2a2a2a;
}

body.dark-mode .article-content h2 a,
body.dark-mode .story-card h4 a {
    color: #e0e0e0;
}

body.dark-mode .article-content h2 a:hover,
body.dark-mode .story-card h4 a:hover {
    color: #6db3f2;
}

body.dark-mode .article-excerpt,
body.dark-mode .story-card p {
    color: #ccc;
}

body.dark-mode .category {
    background-color: transparent !important;
    border-color: #999 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .category:hover {
    background-color: #fff !important;
    border-color: #fff !important;
    color: #000 !important;
}

body.dark-mode .category.local {
    border-color: #66bb6a !important;
    color: #66bb6a !important;
    background-color: transparent !important;
}

body.dark-mode .category.politics {
    border-color: #42a5f5 !important;
    color: #42a5f5 !important;
    background-color: transparent !important;
}

body.dark-mode .category.business {
    border-color: #ab47bc !important;
    color: #ab47bc !important;
    background-color: transparent !important;
}

body.dark-mode .category.lifestyle {
    border-color: #ff9800 !important;
    color: #ff9800 !important;
    background-color: transparent !important;
}

body.dark-mode .category.sports {
    border-color: #ef5350 !important;
    color: #ef5350 !important;
    background-color: transparent !important;
}

body.dark-mode .category.opinion {
    border-color: #78909c !important;
    color: #78909c !important;
    background-color: transparent !important;
}

body.dark-mode .article-meta {
    color: #999;
}

body.dark-mode .placeholder-image {
    background-color: #1a1a1a;
    color: #555;
    border: 1px solid #2a2a2a;
}

body.dark-mode .section-title {
    border-bottom-color: #666;
    color: #e0e0e0;
}

body.dark-mode .weather-ticker {
    background-color: #1a1a1a;
    border-color: #333;
    color: #e8e8e8;
}

body.dark-mode .weather-ticker p {
    color: #ccc;
}

body.dark-mode .article-detail,
body.dark-mode .page-content,
body.dark-mode .weather-page {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .page-content h1,
body.dark-mode .page-content h2,
body.dark-mode .page-content h3 {
    color: #e0e0e0;
}

body.dark-mode .page-content .lead {
    color: #ccc;
}

body.dark-mode .page-content ul,
body.dark-mode .page-content ol {
    color: #e0e0e0;
    padding-left: 25px;
}

body.dark-mode .page-content li {
    color: #e0e0e0;
    margin-bottom: 8px;
}

body.dark-mode .page-content strong {
    color: #fff;
}

body.dark-mode .article-body {
    color: #e0e0e0;
}

body.dark-mode .article-featured-image .image-caption {
    color: #999;
}

body.dark-mode .author-bio {
    background-color: #2a2a2a;
    border-left-color: #6db3f2;
}

body.dark-mode .category-header {
    border-bottom-color: #333;
}

body.dark-mode .pagination a {
    border-color: #666;
    color: #e0e0e0;
}

body.dark-mode .pagination a:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

body.dark-mode .pagination-info {
    color: #999;
}

body.dark-mode .disclaimer-box {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .forecast-day {
    background-color: #2a2a2a;
    border-color: #444;
}

body.dark-mode .alert-box {
    background-color: #332701;
    border-color: #664d03;
    color: #ffeb3b;
}

body.dark-mode footer {
    background-color: #000;
    border-top-color: #2a2a2a;
}

body.dark-mode footer p {
    color: #999;
}

body.dark-mode .disclaimer {
    color: #666;
}


/* Stars animation for night time weather card */
.current-weather-card.night::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 80px 10px, white, transparent),
        radial-gradient(2px 2px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 150px 20px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 10s infinite;
    pointer-events: none;
    border-radius: 20px;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Cloud animations for daytime */
.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 100px;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation: drift 40s infinite;
}

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 80px;
    height: 35px;
    top: 60%;
    left: -80px;
    animation: drift 30s infinite 15s;
}

.cloud2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud2::after {
    width: 50px;
    height: 35px;
    top: -12px;
    right: 15px;
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* Time-based backgrounds for weather card */
.current-weather-card.night {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

.current-weather-card.early-morning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
    color: white;
}

.current-weather-card.morning {
    background: linear-gradient(135deg, #56ccf2 0%, #2f80ed 50%, #0ea5e9 100%);
    color: white;
}

.current-weather-card.afternoon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: white;
}

.current-weather-card.evening {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #fde047 100%);
    color: #333;
}

/* Adjust text colors for time-based cards */
.current-weather-card.night .temp-large,
.current-weather-card.early-morning .temp-large,
.current-weather-card.morning .temp-large,
.current-weather-card.afternoon .temp-large {
    color: white;
}

.current-weather-card.night .temp-unit-large,
.current-weather-card.early-morning .temp-unit-large,
.current-weather-card.morning .temp-unit-large,
.current-weather-card.afternoon .temp-unit-large {
    color: rgba(255, 255, 255, 0.8);
}

.current-weather-card.night .weather-description .actual-desc,
.current-weather-card.early-morning .weather-description .actual-desc,
.current-weather-card.morning .weather-description .actual-desc,
.current-weather-card.afternoon .weather-description .actual-desc {
    color: rgba(255, 255, 255, 0.9);
}

.current-weather-card.night .stat-label,
.current-weather-card.early-morning .stat-label,
.current-weather-card.morning .stat-label,
.current-weather-card.afternoon .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.current-weather-card.night .stat-value,
.current-weather-card.early-morning .stat-value,
.current-weather-card.morning .stat-value,
.current-weather-card.afternoon .stat-value {
    color: white;
}

.current-weather-card.night .weather-stats,
.current-weather-card.early-morning .weather-stats,
.current-weather-card.morning .weather-stats,
.current-weather-card.afternoon .weather-stats {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.current-weather-card.night .weather-description .snarky-comment {
    color: #a5b4fc;
}

.current-weather-card.early-morning .weather-description .snarky-comment {
    color: #e9d5ff;
}

.current-weather-card.morning .weather-description .snarky-comment {
    color: #dbeafe;
}

.current-weather-card.afternoon .weather-description .snarky-comment {
    color: #fef3c7;
}

.current-weather-card.evening .weather-description .snarky-comment {
    color: #dc2626;
}

/* Dark mode fixes for weather page */
body.dark-mode .weather-page-enhanced {
    background-color: transparent;
}

body.dark-mode .current-weather-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .section-subtitle {
    color: #999;
}

body.dark-mode .forecast-section .forecast-day {
    background: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .forecast-section .forecast-day:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

body.dark-mode .forecast-section .day-name {
    color: #e0e0e0;
}

body.dark-mode .forecast-section .day-date {
    color: #999;
}

body.dark-mode .forecast-section .day-desc {
    color: #999;
}

body.dark-mode .forecast-section .high {
    color: #ff6b6b;
}

body.dark-mode .forecast-section .low {
    color: #4dabf7;
}

body.dark-mode .weather-alerts h3,
body.dark-mode .weather-tips h3,
body.dark-mode .meteorologist-note h3 {
    color: #e0e0e0;
}

body.dark-mode .weather-tips {
    color: #ccc;
}

body.dark-mode .weather-tips ul {
    color: #ccc;
}

body.dark-mode .meteorologist-note p {
    color: #ccc;
}

body.dark-mode .disclaimer-box {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .last-updated {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .weather-title {
    color: #e0e0e0;
}

body.dark-mode .weather-tagline {
    color: #999;
}

/* Fix navigation overlap issue */
header::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
}

/* Ensure weather content doesn't overlap navigation */
.weather-hero {
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 40px;
    }
    
    .hero-article {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
    
    .article-body {
        font-size: 16px;
    }
}

/* Image Carousel */
.article-image-carousel {
    margin: 30px 0;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-track {
    position: relative;
    min-height: 400px;
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 2;
}

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

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}
