*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fire: #e85d04;
  --fire-dark: #9d0208;
  --fire-deep: #370617;
  --ember: #f48c06;
  --smoke: #6b6b6b;
  --ash: #f5f5f0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --evac-red: #d62828;
  --air-purple: #6a4c93;
  --pnw-green: #2d6a4f;
  --weather-orange: #f4a261;
}

body { font-family: 'Inter', sans-serif; background: var(--ash); color: var(--text); font-size: 15px; line-height: 1.6; }

/* Alert Bar */
.alert-bar { background: var(--evac-red); color: white; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 500; }
.alert-bar a { color: #ffccd5; text-decoration: underline; }

/* Header */
.site-header { background: var(--fire-deep); border-bottom: 3px solid var(--fire); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 10px; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-flame { font-size: 32px; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: 1px; line-height: 1; }
.logo-sub { font-size: 11px; color: var(--ember); letter-spacing: 2px; text-transform: uppercase; }

.header-sponsor { text-align: right; }
.sponsor-label { display: block; font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.sponsor-link { display: flex; flex-direction: column; text-decoration: none; background: rgba(232,93,4,0.15); border: 1px solid rgba(232,93,4,0.3); border-radius: 6px; padding: 6px 12px; transition: background 0.2s; }
.sponsor-link:hover { background: rgba(232,93,4,0.25); }
.sponsor-link strong { color: var(--ember); font-size: 14px; }
.sponsor-link span { color: #aaa; font-size: 11px; }

.main-nav { display: flex; gap: 4px; padding-bottom: 0; border-top: 1px solid rgba(255,255,255,0.08); overflow-x: auto; }
.main-nav a { color: #ccc; text-decoration: none; padding: 10px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.2s; }
.main-nav a:hover { color: white; border-bottom-color: var(--fire); }

/* Layout */
.main-layout { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
@media (max-width: 768px) { .main-layout { grid-template-columns: 1fr; } .header-sponsor { display: none; } }

/* Hero Grid */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-bottom: 32px; }
@media (max-width: 640px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.hero-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.hero-card.featured { grid-row: span 2; }

.card-img-wrap { height: 200px; background: linear-gradient(135deg, var(--fire-deep), var(--fire-dark)); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.hero-card.featured .card-img-wrap { height: 280px; }

.card-body { padding: 16px; }
.card-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px; }
.cat-active-fires { background: #fff0e6; color: var(--fire); }
.cat-evacuations { background: #ffe5e5; color: var(--evac-red); }
.cat-air-quality { background: #f0ebff; color: var(--air-purple); }
.cat-pnw-focus { background: #e6f4ee; color: var(--pnw-green); }
.cat-weather-fuels { background: #fff7e6; color: #b5540a; }
.cat-resources-equipment { background: #fef9e7; color: #8a6914; }
.cat-incident-updates { background: #fff0e6; color: var(--fire); }
.cat-policy-funding { background: #e8f2f8; color: #1d5f87; }
.cat-default { background: #f0f0f0; color: #555; }

.card-title { font-family: 'Source Serif 4', serif; font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.hero-card.featured .card-title { font-size: 24px; }
.card-excerpt { color: var(--text-light); font-size: 13px; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: #999; }

/* Article List */
.section-head { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: var(--fire-deep); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 8px; border-bottom: 3px solid var(--fire); margin-bottom: 16px; }

.article-list { display: flex; flex-direction: column; gap: 1px; background: #ddd; border-radius: 8px; overflow: hidden; margin-bottom: 32px; }
.article-row { background: white; display: flex; gap: 16px; padding: 14px 16px; text-decoration: none; color: inherit; transition: background 0.15s; align-items: flex-start; }
.article-row:hover { background: #fdf9f7; }
.article-row-cat { flex-shrink: 0; }
.article-row-body { flex: 1; min-width: 0; }
.article-row-title { font-family: 'Source Serif 4', serif; font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.article-row-excerpt { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row-meta { font-size: 12px; color: #aaa; margin-top: 4px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.widget-head { background: var(--fire-deep); color: white; padding: 10px 16px; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.widget-body { padding: 16px; }

.fireline-widget { border: 2px solid var(--fire); }
.fireline-widget .widget-head { background: linear-gradient(135deg, var(--fire-dark), var(--fire)); }
.fireline-widget .widget-body { text-align: center; }
.fireline-widget h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--fire-dark); }
.fireline-widget p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.fireline-widget .fl-contact { font-size: 12px; color: #777; margin-bottom: 12px; }
.fireline-btn { display: block; background: var(--fire); color: white; text-decoration: none; padding: 10px 16px; border-radius: 6px; font-weight: 700; font-size: 14px; transition: background 0.2s; }
.fireline-btn:hover { background: var(--fire-dark); }

.resources-list { list-style: none; }
.resources-list li { border-bottom: 1px solid #f0f0f0; }
.resources-list li:last-child { border-bottom: none; }
.resources-list a { display: flex; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.resources-list a:hover { color: var(--fire); }
.resources-list .ricon { font-size: 18px; flex-shrink: 0; }

.category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-link { display: inline-block; padding: 5px 12px; border-radius: 20px; text-decoration: none; font-size: 13px; font-weight: 600; transition: opacity 0.2s; }
.cat-link:hover { opacity: 0.8; }

/* Article Page */
.article-container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
@media (max-width: 768px) { .article-container { grid-template-columns: 1fr; } }

.article-header { margin-bottom: 24px; }
.article-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-title { font-family: 'Source Serif 4', serif; font-size: 34px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; color: var(--fire-deep); }
.article-byline { font-size: 13px; color: #888; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0; margin-bottom: 24px; }
.article-body { font-family: 'Source Serif 4', serif; font-size: 17px; line-height: 1.75; color: #222; }
.article-body h2 { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 600; color: var(--fire-deep); margin: 28px 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-body h3 { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--fire); margin: 22px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--fire-dark); }
.article-body a { color: var(--fire); }

/* FireLine Comms Full Ad */
.fireline-ad { background: linear-gradient(135deg, var(--fire-deep) 0%, #1a0a00 100%); border-top: 4px solid var(--fire); padding: 32px 16px; margin-top: 40px; }
.ad-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ad-badge { display: inline-block; background: var(--fire); color: white; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 3px; margin-bottom: 8px; }
.ad-content h3 { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: white; margin-bottom: 6px; }
.ad-content p { color: #ccc; font-size: 14px; margin-bottom: 4px; }
.ad-contact { color: var(--ember) !important; font-weight: 600; }
.ad-cta { display: inline-block; background: var(--fire); color: white; text-decoration: none; padding: 14px 28px; border-radius: 6px; font-weight: 700; font-size: 16px; white-space: nowrap; transition: background 0.2s; }
.ad-cta:hover { background: var(--ember); }

/* Category Page */
.category-header { background: var(--fire-deep); color: white; padding: 32px 16px; margin-bottom: 0; }
.category-header-inner { max-width: 1200px; margin: 0 auto; }
.category-header h1 { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.category-header p { color: #aaa; margin-top: 6px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border-radius: 6px; background: white; color: var(--text); text-decoration: none; font-weight: 500; border: 1px solid #ddd; }
.pagination a:hover { background: var(--fire); color: white; border-color: var(--fire); }
.pagination .current { background: var(--fire); color: white; border-color: var(--fire); }

/* Site Footer */
.site-footer { background: var(--fire-deep); color: #ccc; padding: 40px 16px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-logo { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-col p { font-size: 13px; line-height: 1.6; color: #999; }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { color: #999; text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--ember); }
.footer-contact-btn { display: inline-block; margin-top: 10px; padding: 8px 16px; background: var(--fire); color: white; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 12px; color: #666; text-align: center; }
