/*
Theme Name:  Santa Rosa Daily
Theme URI:   https://santarosadaily.com
Author:      Santa Rosa Daily
Author URI:  https://santarosadaily.com
Description: A clean, fast, SEO-optimized newspaper theme for Santa Rosa Daily — Sonoma County's independent voice.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: santarosa-daily
Tags:        news, blog, two-columns, custom-menu, featured-images, post-thumbnails, threaded-comments, translation-ready
*/

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #fafaf8;
    color: #1a1a18;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: #B45309; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ─────────────────────────────────────────────────── */
.site-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }

.content-area { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; }

@media (max-width: 768px) {
    .content-area { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Top Bar ────────────────────────────────────────────────── */
.site-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e2;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #777;
}
.site-topbar a { color: #777; margin-left: 16px; }
.site-topbar a:hover { color: #B45309; text-decoration: none; }

/* ── Masthead ───────────────────────────────────────────────── */
.site-masthead {
    text-align: center;
    padding: 22px 0 16px;
    border-bottom: 3px double #1a1a18;
}
.site-masthead .eyebrow {
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #777;
    font-family: Arial, sans-serif;
    margin-bottom: 6px;
}
.site-masthead .site-title {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    color: #1a1a18;
    text-decoration: none;
}
.site-masthead .site-title:hover { text-decoration: none; }
.site-masthead .site-title span { color: #B45309; }
.site-masthead .site-tagline {
    font-size: 13px;
    color: #777;
    font-family: Arial, sans-serif;
    margin-top: 6px;
    letter-spacing: .06em;
}

@media (max-width: 600px) {
    .site-masthead .site-title { font-size: 36px; }
}

/* ── Primary Navigation ─────────────────────────────────────── */
.site-nav {
    border-bottom: 1px solid #1a1a18;
    margin-bottom: 28px;
    overflow-x: auto;
}
.site-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-nav ul li a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    padding: 10px 18px;
    color: #333;
    white-space: nowrap;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s;
    text-decoration: none;
}
.site-nav ul li a:hover,
.site-nav ul li.current-menu-item a,
.site-nav ul li.current-category a {
    color: #B45309;
    border-bottom-color: #B45309;
}

@media (max-width: 600px) {
    .site-nav ul li a { padding: 8px 10px; font-size: 11px; }
}

/* ── Category Badge ─────────────────────────────────────────── */
.cat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: #B45309;
    padding: 3px 10px;
    border-radius: 2px;
    font-family: Arial, sans-serif;
    text-decoration: none;
}
.cat-badge:hover { background: #92400E; text-decoration: none; }

/* ── Hero / Front-Page Layout ───────────────────────────────── */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e5e2;
}
@media (max-width: 680px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-featured-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #B45309 0%, #92400E 100%);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.hero-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-cat { margin-bottom: 8px; }
.hero-title { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.hero-title a { color: #1a1a18; text-decoration: none; }
.hero-title a:hover { color: #B45309; }
.hero-meta { font-size: 12px; color: #888; font-family: Arial, sans-serif; margin-bottom: 8px; }
.hero-excerpt { font-size: 15px; color: #444; line-height: 1.65; }
.hero-readmore {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #B45309;
    font-weight: 700;
    border-bottom: 1px solid #B45309;
    padding-bottom: 1px;
    text-decoration: none;
}
.hero-readmore:hover { color: #92400E; border-bottom-color: #92400E; text-decoration: none; }

/* ── Sidebar Latest Stories ─────────────────────────────────── */
.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    border-bottom: 2px solid #1a1a18;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.sidebar-post-item { padding: 12px 0; border-bottom: 1px solid #e5e5e2; }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-cat {
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    color: #B45309; font-weight: 700; font-family: Arial, sans-serif; margin-bottom: 3px;
}
.sidebar-post-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sidebar-post-title a { color: #1a1a18; text-decoration: none; }
.sidebar-post-title a:hover { color: #B45309; }
.sidebar-post-meta { font-size: 11px; color: #999; font-family: Arial, sans-serif; margin-top: 3px; }

/* ── Section Dividers ───────────────────────────────────────── */
.section-head {
    display: flex; align-items: center; gap: 12px;
    margin: 32px 0 18px;
}
.section-head-label {
    font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; font-family: Arial, sans-serif; white-space: nowrap;
}
.section-head-line { flex: 1; height: 1px; background: #e5e5e2; }

/* ── Three Column Card Grid ─────────────────────────────────── */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 680px) { .three-col { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 681px) { .three-col { grid-template-columns: repeat(2, 1fr); } }

.post-card { border-top: 3px solid #B45309; padding-top: 12px; }
.post-card-thumb {
    width: 100%; aspect-ratio: 3/2;
    background: #f3e8d4;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #B45309; font-weight: 700; font-family: Arial, sans-serif; margin-bottom: 4px; }
.post-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.post-card-title a { color: #1a1a18; text-decoration: none; }
.post-card-title a:hover { color: #B45309; }
.post-card-meta { font-size: 11px; color: #999; font-family: Arial, sans-serif; margin-top: 4px; }

/* ── Single Article Page ────────────────────────────────────── */
.single-article { max-width: 740px; margin: 0 auto; }

.breadcrumb { font-size: 13px; font-family: Arial, sans-serif; color: #999; margin-bottom: 20px; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #B45309; }
.breadcrumb span { margin: 0 6px; }

.article-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #e5e5e2; }
.article-cat-wrap { margin-bottom: 10px; }
.article-title { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.article-meta { font-size: 13px; color: #777; font-family: Arial, sans-serif; display: flex; flex-wrap: wrap; gap: 0; }
.article-meta span { margin-right: 18px; }

@media (max-width: 600px) { .article-title { font-size: 26px; } }

.author-bio-box {
    background: #f5f5f3;
    border-left: 3px solid #B45309;
    padding: 10px 14px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}
.author-bio-box strong { font-size: 13px; font-family: Arial, sans-serif; color: #1a1a18; }
.author-bio-box p { font-size: 12px; color: #666; font-family: Arial, sans-serif; margin-top: 2px; line-height: 1.5; }

.article-intro {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e5e2;
    font-style: italic;
}

/* Table of Contents */
.article-toc {
    background: #f9f7f4;
    border: 1px solid #e5e5e2;
    border-radius: 5px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-family: Arial, sans-serif;
}
.article-toc .toc-title {
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #777; margin-bottom: 10px;
}
.article-toc ol { padding-left: 18px; }
.article-toc li { font-size: 14px; margin-bottom: 4px; line-height: 1.5; }
.article-toc a { color: #B45309; text-decoration: underline; }
.article-toc a:hover { color: #92400E; }

/* Article Body Content */
.article-content h2 {
    font-size: 22px; font-weight: 700; margin: 32px 0 14px;
    border-left: 4px solid #B45309; padding-left: 12px; line-height: 1.3;
    scroll-margin-top: 20px;
}
.article-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.article-content h4 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.article-content p { font-size: 16px; line-height: 1.85; color: #2a2a28; margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { font-size: 16px; line-height: 1.8; margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid #B45309;
    padding: 12px 20px;
    margin: 24px 0;
    background: #fef9ee;
    font-style: italic;
    color: #555;
}
.article-content img { border-radius: 4px; margin: 20px 0; }
.article-content a { color: #B45309; text-decoration: underline; }
.article-content strong { font-weight: 700; }

/* Featured Image in Article */
.article-featured-image { margin-bottom: 24px; border-radius: 4px; overflow: hidden; }
.article-featured-image img { width: 100%; }

/* Tips Box */
.tips-box {
    background: #fef9ee;
    border: 1px solid #f3d68a;
    border-radius: 5px;
    padding: 18px 22px;
    margin: 28px 0;
}
.tips-box h3 {
    font-size: 13px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; font-family: Arial, sans-serif;
    color: #92400E; margin-bottom: 12px;
}
.tips-box ul { padding-left: 20px; }
.tips-box li { font-size: 15px; color: #78350F; margin-bottom: 8px; line-height: 1.65; }

/* FAQ Section */
.article-faq { margin: 32px 0; }
.article-faq .faq-title {
    font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; font-family: Arial, sans-serif;
    color: #555; border-bottom: 2px solid #e5e5e2;
    padding-bottom: 8px; margin-bottom: 18px;
}
.faq-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0f0ee; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 700; color: #1a1a18; margin-bottom: 8px; line-height: 1.4; }
.faq-a { font-size: 15px; line-height: 1.8; color: #444; font-family: Arial, sans-serif; }

/* Article Conclusion */
.article-conclusion {
    font-size: 16px; line-height: 1.85; color: #444;
    background: #f5f5f3; border-radius: 5px;
    padding: 20px 24px; margin-top: 32px; font-style: italic;
}

/* Related Posts */
.related-posts-head {
    display: flex; align-items: center; gap: 12px;
    margin: 40px 0 18px;
}
.related-posts-label {
    font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; font-family: Arial, sans-serif; white-space: nowrap;
}
.related-posts-line { flex: 1; height: 1px; background: #e5e5e2; }

/* ── Sidebar Widgets ─────────────────────────────────────────── */
.sidebar { font-family: Arial, sans-serif; }
.widget { margin-bottom: 32px; }
.widget-title {
    font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; border-bottom: 2px solid #1a1a18;
    padding-bottom: 8px; margin-bottom: 16px;
    font-family: Arial, sans-serif;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #e5e5e2; font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #1a1a18; text-decoration: none; }
.widget ul li a:hover { color: #B45309; }
.widget_categories ul li { display: flex; justify-content: space-between; }

/* Newsletter Widget */
.newsletter-widget {
    background: #1a1a18; color: #fff;
    padding: 20px; border-radius: 4px;
}
.newsletter-widget h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.newsletter-widget p { font-size: 13px; color: #ccc; margin-bottom: 12px; line-height: 1.5; }
.newsletter-widget input[type="email"] {
    width: 100%; padding: 8px 12px; font-size: 13px;
    border: 1px solid #444; border-radius: 4px;
    background: #333; color: #fff; margin-bottom: 8px;
    outline: none;
}
.newsletter-widget input[type="email"]:focus { border-color: #B45309; }
.newsletter-widget button {
    width: 100%; padding: 9px; font-size: 13px; font-weight: 700;
    background: #B45309; color: #fff; border: none; border-radius: 4px;
    cursor: pointer;
}
.newsletter-widget button:hover { background: #92400E; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    border-top: 3px double #1a1a18;
    padding-top: 20px;
    margin-top: 40px;
}
.footer-inner {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
    font-family: Arial, sans-serif;
}
.footer-copy { font-size: 12px; color: #999; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #777; text-decoration: none; }
.footer-links a:hover { color: #B45309; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { margin: 40px 0; text-align: center; font-family: Arial, sans-serif; }
.pagination .page-numbers {
    display: inline-block; padding: 6px 12px; margin: 0 2px;
    border: 1px solid #e5e5e2; border-radius: 3px; font-size: 14px; color: #333;
    text-decoration: none;
}
.pagination .page-numbers.current { background: #B45309; color: #fff; border-color: #B45309; }
.pagination .page-numbers:hover { color: #B45309; border-color: #B45309; text-decoration: none; }

/* ── Search Form ────────────────────────────────────────────── */
.search-form { display: flex; gap: 0; }
.search-form input[type="search"] {
    flex: 1; padding: 8px 12px; font-size: 14px;
    border: 1px solid #e5e5e2; border-right: none;
    border-radius: 3px 0 0 3px; outline: none;
    background: #fff;
}
.search-form input[type="search"]:focus { border-color: #B45309; }
.search-form button {
    padding: 8px 14px; background: #B45309; color: #fff; border: none;
    border-radius: 0 3px 3px 0; cursor: pointer; font-size: 14px;
}
.search-form button:hover { background: #92400E; }

/* ── Utility ─────────────────────────────────────────────────── */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px); position: absolute !important;
    height: 1px; width: 1px; overflow: hidden;
}
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #777; text-align: center; margin-top: 6px; font-style: italic; }
