/*
Theme Name: BizRoundup Today
Theme URI: https://bizrounduptoday.com
Description: A professional business news and magazine theme for BizRoundup Today.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bizrounduptoday
Tags: news, magazine, business, blog, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --bg:       #F8F9FA;
    --navy:     #0A2540;
    --text:     #2D2D2D;
    --muted:    #4E5D6C;
    --gold:     #FFB81C;
    --white:    #FFFFFF;
    --border:   #DEE2E6;
    --shadow:   rgba(10, 37, 64, 0.08);
    --shadow-md:rgba(10, 37, 64, 0.15);
    --radius:   4px;
    --serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max:      1200px;
    --article:  720px;
    --header-h: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
li { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
main { flex: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
.tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    padding: 0.2em 0.65em;
    border-radius: 2px;
    line-height: 1.6;
}
.tag--navy { background: var(--navy); }
.read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}
.read-time::before { content: '⏱'; font-size: 0.8em; }
.dot { color: var(--border); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1.5rem;
}
.site-branding a {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
}
.site-name {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.site-name em { color: var(--gold); font-style: normal; }
.site-tagline {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Navigation */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.primary-nav a {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: var(--gold);
    background: rgba(255,184,28,0.1);
}

/* Search toggle */
.search-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 0.45rem;
    border-radius: var(--radius);
    transition: color 0.15s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-toggle:hover { color: var(--gold); }
.search-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header search bar (hidden by default) */
.header-search-bar {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 199;
}
.header-search-bar.is-open { display: block; }
.header-search-bar form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.header-search-bar input {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
    transition: border-color 0.15s;
}
.header-search-bar input::placeholder { color: rgba(255,255,255,0.45); }
.header-search-bar input:focus { border-color: var(--gold); }
.header-search-bar button {
    padding: 0.6rem 1.1rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background 0.15s;
}
.header-search-bar button:hover { background: #e0a318; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    color: var(--white);
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BREAKING NEWS TICKER (optional — shown if there's a sticky post)
   ============================================================ */
.breaking-bar {
    background: var(--gold);
    color: var(--navy);
    padding: 0.35rem 0;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.breaking-label {
    background: var(--navy);
    color: var(--gold);
    padding: 0.1em 0.75em;
    border-radius: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   HOMEPAGE — MAGAZINE LAYOUT
   ============================================================ */
.home-hero-section {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.25rem;
    align-items: start;
}

/* Hero main post */
.hero-main__link { display: block; }
.hero-main__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    transition: opacity 0.2s;
}
.hero-main__link:hover .hero-main__image { opacity: 0.92; }
.hero-main__image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy) 0%, #1b4876 100%);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}
.hero-main__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}
.hero-main__title {
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 0.75rem;
    transition: color 0.15s;
    display: block;
}
.hero-main__title:hover { color: var(--gold); }
.hero-main__excerpt {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-main__byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.hero-main__byline strong { color: var(--text); font-weight: 600; }

/* Hero sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    padding-left: 2.25rem;
}
.sidebar-story {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.875rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.sidebar-story:first-child { padding-top: 0; }
.sidebar-story:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-story__thumb,
.sidebar-story__thumb-placeholder {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.sidebar-story__thumb-placeholder {
    background: linear-gradient(135deg, var(--navy) 0%, #1b4876 100%);
}
.sidebar-story__title {
    font-family: var(--serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
    display: block;
}
.sidebar-story__title:hover { color: var(--gold); }
.sidebar-story__meta {
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ============================================================
   POST GRID
   ============================================================ */
.post-grid-section { padding: 2.5rem 0; }
.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.section-label__text {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}
.section-label__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-label__line--left { background: var(--navy); max-width: 40px; flex: none; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 4px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-md);
}
.post-card__image-wrap { overflow: hidden; aspect-ratio: 16/9; }
.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.post-card:hover .post-card__image { transform: scale(1.04); }
.post-card__image-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #1b4876 100%);
}
.post-card__body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.7rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.post-card__title {
    font-family: var(--serif);
    font-size: 1.07rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.post-card:hover .post-card__title { color: var(--gold); }
.post-card__excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 2.5rem 0 1rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    transition: all 0.15s;
    text-decoration: none;
}
.pagination .current,
.pagination .page-numbers:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.pagination .dots { background: none; border-color: transparent; pointer-events: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
    padding: 3rem 0 1.75rem;
    text-align: center;
    max-width: var(--article);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.post-header__category { margin-bottom: 0.85rem; }
.post-title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--navy);
    margin-bottom: 1.2rem;
}
.post-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.post-meta-bar strong { color: var(--text); font-weight: 600; }
.post-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--navy);
    background: rgba(10, 37, 64, 0.07);
    padding: 0.28em 0.8em;
    border-radius: 20px;
    font-size: 0.75rem;
}
.post-read-time::before { content: '⏱ '; }

/* Featured image */
.post-featured-image-section {
    max-width: var(--article);
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}
.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}
.post-featured-caption {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Article content */
.post-content-wrap {
    max-width: var(--article);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
.post-content {
    font-size: 1.1rem;
    line-height: 1.82;
    color: var(--text);
}
.post-content > * + * { margin-top: 1.5em; }
.post-content p { margin-bottom: 0; }
.post-content h2 {
    font-family: var(--serif);
    font-size: 1.65rem;
    color: var(--navy);
    margin-top: 2.25em;
    margin-bottom: 0.6em;
    line-height: 1.25;
}
.post-content h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--navy);
    margin-top: 2em;
    margin-bottom: 0.5em;
}
.post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 1.75em;
    margin-bottom: 0.4em;
}
.post-content a {
    color: var(--navy);
    border-bottom: 1.5px solid rgba(255,184,28,0.6);
    transition: color 0.15s, border-color 0.15s;
}
.post-content a:hover { color: #c4930e; border-color: var(--gold); }
.post-content ul { list-style: disc; padding-left: 1.75em; }
.post-content ol { list-style: decimal; padding-left: 1.75em; }
.post-content li { margin-bottom: 0.4em; }
.post-content li:last-child { margin-bottom: 0; }
.post-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 0.8em 1.5em;
    background: rgba(255,184,28,0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.15em;
    font-style: italic;
    color: var(--navy);
    margin-left: 0;
    margin-right: 0;
}
.post-content blockquote p { margin: 0; }
.post-content img {
    border-radius: var(--radius);
    margin-left: auto;
    margin-right: auto;
}
.post-content figure { margin-left: 0; margin-right: 0; }
.post-content figcaption { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.5em; font-style: italic; }
.post-content pre {
    background: #0d1f33;
    color: #d4e0f0;
    padding: 1.25em 1.5em;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.87em;
    line-height: 1.6;
}
.post-content code {
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.875em;
    background: rgba(10,37,64,0.07);
    padding: 0.15em 0.45em;
    border-radius: 3px;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content hr { border: none; border-top: 1px solid var(--border); }
.post-content table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.post-content th { background: var(--navy); color: var(--white); padding: 0.65em 0.9em; text-align: left; font-weight: 600; }
.post-content td { padding: 0.6em 0.9em; border-bottom: 1px solid var(--border); }
.post-content tr:nth-child(even) td { background: rgba(10,37,64,0.03); }
.post-content .wp-block-image { margin: 0; }

/* Ad slots */
.ad-slot {
    margin: 2.25rem 0;
    text-align: center;
    clear: both;
    line-height: 0;
}

.ad-slot:empty { display: none; }

/* Collapses completely if the inner content is empty or only whitespace */

/* Post footer */
.post-footer {
    max-width: var(--article);
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.post-tags a {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3em 0.85em;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    transition: all 0.15s;
}
.post-tags a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.post-share { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.post-share__label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.post-share a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35em 0.9em;
    border-radius: var(--radius);
    transition: all 0.15s;
}
.post-share a.share-x     { background: #1da1f2; color: var(--white); }
.post-share a.share-li    { background: #0077b5; color: var(--white); }
.post-share a.share-email { background: var(--navy); color: var(--white); }
.post-share a:hover { opacity: 0.85; }

/* ============================================================
   SUGGESTED POSTS
   ============================================================ */
.suggested-section {
    background: var(--white);
    border-top: 3px solid var(--navy);
    padding: 2.75rem 0 3rem;
    margin-top: 0;
}
.suggested-section h2 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.suggested-section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.suggested-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-banner {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 0 2.75rem;
}
.page-banner h1 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    max-width: var(--article);
    padding: 0 1.5rem;
    margin: 0 auto 0.5rem;
    line-height: 1.2;
}
.page-banner p {
    max-width: var(--article);
    padding: 0 1.5rem;
    margin: 0 auto;
    color: rgba(255,255,255,0.7);
    font-size: 1.02rem;
}
.page-content-wrap {
    max-width: var(--article);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.page-body {
    font-size: 1.05rem;
    line-height: 1.8;
}
.page-body > * + * { margin-top: 1.4em; }
.page-body h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-top: 2em; }
.page-body h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-top: 1.5em; }
.page-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.page-body a:hover { color: var(--gold); }
.page-body ul { list-style: disc; padding-left: 1.5em; }
.page-body ol { list-style: decimal; padding-left: 1.5em; }
.page-body li { margin-bottom: 0.35em; }
.page-body table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.page-body th { background: var(--navy); color: var(--white); padding: 0.6em 0.9em; text-align: left; }
.page-body td { padding: 0.55em 0.9em; border-bottom: 1px solid var(--border); }
.page-body blockquote { border-left: 4px solid var(--gold); padding: 0.75em 1.5em; background: rgba(255,184,28,0.05); font-style: italic; color: var(--navy); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 2.5rem;
    box-shadow: 0 2px 16px var(--shadow);
}
.form-group { margin-bottom: 1.4rem; }
.form-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.form-label .req { color: var(--gold); }
.form-control {
    display: block;
    width: 100%;
    padding: 0.68rem 0.95rem;
    font-size: 0.97rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}
.form-control.is-invalid { border-color: #dc3545; }
textarea.form-control { resize: vertical; min-height: 150px; line-height: 1.6; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert ul { list-style: disc; padding-left: 1.25em; margin-top: 0.4em; }
.contact-sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 6px var(--shadow);
}
.contact-sidebar-box h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gold);
}
.contact-sidebar-box p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.75rem; }
.contact-sidebar-box p:last-child { margin-bottom: 0; }

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-banner {
    background: var(--navy);
    padding: 2.25rem 0;
    margin-bottom: 2.5rem;
}
.archive-banner__inner {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}
.archive-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.archive-banner h1 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--white);
}
.archive-banner p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 0.3rem; width: 100%; }
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding-bottom: 3rem;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-banner {
    background: var(--navy);
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
}
.search-banner h1 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.search-form-bar {
    display: flex;
    max-width: 560px;
}
.search-form-bar input[type="search"] {
    flex: 1;
    padding: 0.72rem 1rem;
    font-size: 0.97rem;
    border: 2px solid rgba(255,255,255,0.25);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
    transition: border-color 0.15s;
}
.search-form-bar input::placeholder { color: rgba(255,255,255,0.4); }
.search-form-bar input:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.search-form-bar button {
    padding: 0.72rem 1.2rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background 0.15s;
}
.search-form-bar button:hover { background: #e0a318; }
.search-results-info {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}
.search-results-info strong { color: var(--navy); }
.search-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; padding-bottom: 3rem; }

/* ============================================================
   404
   ============================================================ */
.error-page {
    text-align: center;
    padding: 5rem 1.5rem 6rem;
    max-width: 560px;
    margin: 0 auto;
}
.error-code {
    font-family: var(--serif);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 700;
    color: rgba(10,37,64,0.1);
    line-height: 1;
    display: block;
}
.error-page h1 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--navy);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}
.error-page p { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding: 2.25rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.footer-brand a { display: block; }
.footer-brand .site-name { display: block; font-size: 1.1rem; }
.footer-brand .site-tagline { display: block; margin-top: 0.2rem; }
.footer-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav-list li { list-style: none; display: inline; }
.footer-nav-list a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius);
    transition: color 0.15s;
    white-space: nowrap;
}
.footer-nav-list a:hover { color: var(--gold); }
.footer-bottom {
    width: 100%;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .post-grid,
    .archive-grid,
    .search-grid,
    .suggested-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr 280px; gap: 1.75rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-sidebar-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .contact-sidebar-box h3 { grid-column: 1/-1; }
}

@media (max-width: 768px) {
    :root { --header-h: 58px; }
    .menu-toggle { display: flex; }
    .primary-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 0.75rem;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
        z-index: 198;
        align-items: stretch;
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 0.7rem 0.9rem; font-size: 0.95rem; border-radius: var(--radius); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 0.5rem; }
    .post-grid,
    .archive-grid,
    .search-grid { grid-template-columns: 1fr; }
    .suggested-grid { grid-template-columns: 1fr; gap: 1rem; }
    .post-title { font-size: 1.7rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .contact-form-wrap { padding: 1.5rem; }
    .contact-sidebar-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .sidebar-story { grid-template-columns: 80px 1fr; gap: 0.75rem; }
    .sidebar-story__thumb,
    .sidebar-story__thumb-placeholder { width: 80px; height: 60px; }
    .post-grid { gap: 1.25rem; }
    .post-header { padding: 2rem 1rem 1.25rem; }
    .post-content-wrap { padding: 0 1rem 2.5rem; }
    .post-featured-image-section { padding: 0 1rem; }
}
