/* ═══════════════════════════════════════════════════════════
   QuickPress — Professional News Magazine
   NYT meets The Verge. Clean, bold, image-forward.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ─── */
:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --bg-card: #ffffff;
    --bg-dark: #0a0a0f;
    --text: #111111;
    --text-muted: #666666;
    --text-light: #999999;
    --accent: #e63946;
    --accent-hover: #c5303c;
    --link: #1d3557;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container: 1280px;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --bg: #0f0f14;
    --bg-alt: #1a1a22;
    --bg-card: #1a1a22;
    --text: #eaeaea;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --link: #60a5fa;
    --border: #2a2a36;
    --border-light: #222230;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.35);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ─── Header ─── */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.92);
}
[data-theme="dark"] .site-header {
    background: rgba(15,15,20,0.92);
}

.header-top { border-bottom: 1px solid var(--border-light); }
.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.header-date {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.header-actions { display: flex; gap: 0.5rem; align-items: center; }

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark,
:root:not([data-theme="dark"]) .theme-icon-dark { display: none; }

.header-brand { padding: 0.75rem 0; }
.header-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.logo { text-decoration: none; }
.logo-text {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.04em;
    transition: color var(--transition);
}
.logo-text:hover { color: var(--accent); }
.logo-tagline {
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─── Navigation ─── */
.main-nav {
    border-top: 1px solid var(--border-light);
    border-bottom: 3px solid var(--text);
}
[data-theme="dark"] .main-nav { border-bottom-color: var(--accent); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-item { position: relative; }
.nav-link, .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    background: none;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .dropdown-toggle:hover {
    color: var(--accent);
    background: var(--bg-alt);
}
.dropdown-toggle svg { width: 8px; height: 8px; transition: transform 0.25s; }
.has-dropdown.is-open .dropdown-toggle svg { transform: rotate(180deg); }

/* ─── Mega Dropdown ─── */
.dropdown-menu {
    display: none;
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card, var(--bg));
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    width: 90vw;
    max-width: 600px;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.has-dropdown.is-open .dropdown-menu { display: block; }
.mega-dropdown {
    max-width: 600px;
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}
.mega-link {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition);
}
.mega-link:hover { background: var(--bg-alt); color: var(--accent); }

/* ─── Ticker ─── */
.ticker-bar {
    background: var(--accent);
    color: #fff;
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}
.ticker-inner {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
    padding: 0;
}
.ticker-label {
    background: rgba(0,0,0,0.2);
    padding: 0 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ticker-track {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}
.ticker-content {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    padding: 0 1.5rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--transition);
}
.ticker-item:hover { opacity: 0.8; }
.ticker-bullet { margin-right: 0.5rem; opacity: 0.6; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Hero Section ─── */
.hero-section { padding: 2rem 0 1rem; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    min-height: 420px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
}
.hero-card-link { display: block; position: relative; height: 100%; }
.hero-card-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-card:hover .hero-card-image { transform: scale(1.03); }
.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
}
.hero-card-section {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.hero-card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-card-excerpt {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero sidebar stories */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hero-side-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    color: inherit;
}
.hero-side-card:last-child { border-bottom: none; }
.hero-side-card:hover { background: var(--bg-alt); }
.hero-side-image {
    width: 130px;
    min-width: 130px;
    height: 88px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-alt);
}
.hero-side-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-side-section {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.hero-side-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.3rem;
    color: var(--text);
    transition: color var(--transition);
}
.hero-side-card:hover .hero-side-title { color: var(--accent); }

/* ─── Section Blocks ─── */
.section-block {
    padding: 2rem 0;
    border-top: 3px solid var(--text);
}
[data-theme="dark"] .section-block { border-top-color: var(--accent); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.section-heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.section-more {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity var(--transition);
}
.section-more:hover { opacity: 0.7; color: var(--accent); }

/* ─── Post Grid ─── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ─── Post Card ─── */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.post-card-link { display: block; color: inherit; }
.post-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-alt);
}
.post-card-body { padding: 1rem; }
.post-card-section {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.post-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.3rem;
    color: var(--text);
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
}

/* ─── Section Strips (3-col) ─── */
.strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ─── Placeholder Images ─── */
.post-card-image--placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .post-card-image--placeholder {
    background: linear-gradient(135deg, #2a2a36, #1a1a22);
}
.placeholder-icon { font-size: 2.5rem; opacity: 0.4; }

/* ─── Category Page ─── */
.category-hero {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 3px solid var(--text);
}
[data-theme="dark"] .category-hero { border-bottom-color: var(--accent); }
.category-hero h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.category-hero p {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 1rem;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.category-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
}
.category-pill:hover,
.category-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ─── Article Page ─── */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.article-header { margin-bottom: 2rem; }
.breadcrumb {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.article-section-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0.75rem 0;
    color: var(--text);
}
.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.article-author strong { color: var(--text); }
.article-read-time { color: var(--text-light); }

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg);
    transition: all var(--transition);
}
.share-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Article hero image */
.article-hero-image {
    margin-bottom: 2rem;
}
.article-hero-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Article body content */
.article-body { font-size: 1.1rem; line-height: 1.85; color: var(--text); }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    letter-spacing: -0.01em;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}
.article-body strong { font-weight: 600; }
.article-body a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--border);
}
.article-body a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.article-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
.article-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

/* Article tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-alt);
    border-radius: 20px;
    font-weight: 500;
    transition: all var(--transition);
}
.tag:hover { color: var(--accent); }

/* Article sources */
.article-sources {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.article-sources h3 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.article-sources ul { margin-left: 1rem; }
.article-sources ul li { margin-bottom: 0.3rem; list-style: disc; }
.article-sources a { word-break: break-all; font-size: 0.8rem; }

/* ─── Related Posts ─── */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid var(--text);
}
[data-theme="dark"] .related-section { border-top-color: var(--accent); }

/* ─── User Country Block ─── */
.user-country-block {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}
.user-country-note {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.user-country-note a { color: var(--link); }

/* ─── Newsletter ─── */
.newsletter {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2.5rem 0;
    border: 1px solid var(--border);
}
.newsletter h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.newsletter p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}
.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* ─── Footer ─── */
.site-footer { background: #0a0a0f; color: #ccc; margin-top: 4rem; padding: 3rem 0 1.5rem; }
.footer-main { padding: 3rem 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.footer-tagline {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    max-width: 280px;
    line-height: 1.5;
}
.footer-heading {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-col h4 { /* alias */
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-col a,
.footer-links a {
    color: #888;
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-col a:hover,
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #222; margin-top: 2rem; padding-top: 1.5rem;     border-top: 1px solid #222;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #555;
}

/* ─── Sidebar ─── */
.sidebar {
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}
.sidebar-widget { margin-bottom: 2rem; }
.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    color: var(--accent);
}
.sidebar-section-list li { margin-bottom: 0.4rem; }
.sidebar-section-list a { color: var(--text-muted); font-size: 0.85rem; }
.sidebar-section-list a:hover { color: var(--accent); }
.most-read-list { counter-reset: most-read; }
.most-read-item {
    counter-increment: most-read;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.most-read-item a {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: inherit;
}
.most-read-rank {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--border);
    min-width: 1.5rem;
    line-height: 1;
}
.most-read-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    transition: color var(--transition);
}
.most-read-item:hover .most-read-title { color: var(--accent); }

/* ─── Compact Card ─── */
.card-small {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.card-small-link { display: flex; gap: 0.75rem; color: inherit; }
.card-small-image {
    width: 100px;
    min-width: 100px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-alt);
}
.card-small-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}
.card-small-title:hover { color: var(--accent); }

/* ─── Empty States ─── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}
.empty-state h2 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* ─── Error Page ─── */
.error-page { text-align: center; padding: 6rem 2rem; }
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.error-message { font-size: 1.2rem; color: var(--text-muted); margin-top: 1rem; }
.error-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background var(--transition);
}
.error-link:hover { background: var(--accent-hover); color: #fff; }

/* ─── Language Switcher ─── */
.lang-switcher { display: flex; gap: 0.25rem; }
.lang-btn {
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: none;
    transition: all var(--transition);
}
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Hamburger ─── */
.hamburger { display: none; background: none; border: none; padding: 0.5rem; }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* ─── Load More ─── */
.load-more { text-align: center; padding: 2rem; }
.load-more-spinner { display: none; color: var(--text-muted); }

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-card-image { min-height: 300px; }
    .hero-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .hero-side-card {
        min-width: 280px;
        flex-shrink: 0;
        padding: 1rem;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hamburger { display: block; }
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        z-index: 99;
        box-shadow: var(--shadow);
    }
    .nav-list.is-open { display: flex; }
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
    }
    .mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .strip-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .hero-card-title { font-size: 1.4rem; }
    .hero-card-image { min-height: 250px; }
    .article-title { font-size: 2rem; }
    .article-excerpt { font-size: 1.05rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 2rem;
    }
    .logo-text { font-size: 1.8rem; }
    .header-brand { padding: 0.5rem 0; }
    .category-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: 1fr; }
    .hero-card-overlay { padding: 1.25rem 1rem; }
    .hero-card-title { font-size: 1.2rem; }
    .hero-card-image { min-height: 200px; }
    .mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}
    .article-title { font-size: 1.6rem; }
    .article-body { font-size: 1rem; }
    .newsletter { padding: 2rem 1.25rem; }
    .newsletter-form { flex-direction: column; }
    .share-buttons { flex-wrap: wrap; }
}

/* ─── Constrained Hero (for section/category pages) ─── */
.hero-section--constrained .hero-card {
    max-height: 400px;
}
.hero-section--constrained .hero-card-image {
    max-height: 400px;
    object-fit: cover;
}
.hero-section--constrained .hero-card-title {
    font-size: 1.5rem;
}

/* ─── Broken Image Fallback ─── */
.post-card-image,
.hero-card-image {
    background: linear-gradient(135deg, var(--bg-alt), var(--border));
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    min-height: 100px;
}
img.post-card-image,
img.hero-card-image {
    display: block;
}
img[src]:not([src=""]) {
    background: var(--bg-alt);
}
