/*
Theme Name: Baetalk News
Theme URI: https://baetalk.com
Description: A clean, editorial news theme for baetalk.com — the independent WordPress intelligence publication.
Author: Baetalk
Author URI: https://baetalk.com
Version: 1.0.0
Text Domain: baetalk-news
Tags: news, magazine, custom-header, custom-menu, featured-images, threaded-comments, rtl-language-support
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-ink: #1a1a1a;
  --color-ink-soft: #444444;
  --color-ink-muted: #777777;
  --color-brand: #c0392b;
  /* editorial red */
  --color-brand-dark: #96281b;
  --color-header-bg: #0f1923;
  /* deep navy */
  --color-header-text: #ffffff;
  --color-nav-bg: #1a2d3d;
  --color-accent: #e8f4f8;
  /* light blue tint */
  --color-border: #e2e2e2;
  --color-surface: #f7f7f7;
  --color-white: #ffffff;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi: 600;
  --weight-bold: 700;
  --weight-black: 900;

  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);

  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 300px;
  --gap: 2rem;
}

/* ============================================================
   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(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
:root {
  --font-display: 'Playfair Display', var(--font-serif);
  --font-ui: 'Inter', var(--font-sans);
}

.site-header {
  background: var(--color-white);
  border-top: 4px solid var(--color-brand);
  border-bottom: 1px solid var(--color-border);
}

/* ── Masthead (logo row) ── */
.header-masthead {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.875rem 0;
}

/* Left-aligned flex row: brand | … | actions */
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Brand (left) ── */
.masthead-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Actions (right): date + icon buttons ── */
.masthead-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.masthead-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  letter-spacing: 0.04em;
}

/* ── Logo / Title ── */
.site-title-link {
  text-decoration: none;
  display: block;
  line-height: 1;
}

.site-title-text {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  background: linear-gradient(135deg, var(--color-ink) 0%, #3a3a4a 50%, var(--color-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-title-link:hover .site-title-text {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

/* ── Search Button ── */
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-ink-muted);
  border: 1.5px solid var(--color-border);
  transition: color .15s, border-color .15s, background .15s;
  text-decoration: none;
}

.header-search-btn:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background: rgba(192, 57, 43, .05);
  text-decoration: none;
}

/* ── Decorative Rule ── */
.header-rule-bar {
  background: var(--color-white);
  padding: 0;
}

.header-rule-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 0;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.rule-diamond {
  font-size: 6px;
  color: var(--color-brand);
  padding: 0 8px;
  letter-spacing: 0;
}

/* ── Primary Navigation ── */
.site-nav {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.site-nav .container {
  padding-top: 0;
  padding-bottom: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.primary-menu::-webkit-scrollbar {
  display: none;
}

.primary-menu li a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
  text-decoration: none;
}

/* ── Breaking News Ticker ── */
.breaking-bar {
  background: var(--color-brand);
  overflow: hidden;
}

.breaking-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  overflow: hidden;
}

.breaking-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(0, 0, 0, .2);
  padding: 2px 8px;
  border-radius: 2px;
}

.breaking-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breaking-text a {
  color: inherit;
  font-weight: var(--weight-medium);
}

/* ── Menu Toggle (hamburger) — hidden on desktop ── */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-ink-muted);
  border: 1.5px solid var(--color-border);
  background: none;
  transition: color .15s, border-color .15s;
}

.menu-toggle:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* ── Desktop sticky ── */
@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
  }
}

/* ── Mobile header ── */
@media (max-width: 767px) {
  .masthead-date {
    display: none;
  }

  .site-title-text {
    font-size: 1.75rem;
  }

  .site-tagline {
    display: none;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide decorative rule and breaking bar to save vertical space */
  .header-rule-bar,
  .breaking-bar {
    display: none;
  }

  /* Collapsible nav */
  .site-nav {
    display: none;
    border-top: 1px solid var(--color-border);
  }

  .site-nav.nav-open {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    overflow-x: visible;
  }

  .primary-menu li {
    border-bottom: 1px solid var(--color-border);
  }

  .primary-menu li:last-child {
    border-bottom: none;
  }

  .primary-menu li a {
    padding: .85rem 1.5rem;
    border-bottom: none;
    white-space: normal;
  }
}

/* ============================================================
   SITE CONTENT WRAPPER
   ============================================================ */
.site-content {
  padding: 2rem 0;
}

/* ============================================================
   HOMEPAGE LAYOUT
   ============================================================ */

/* ── Section Label ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-brand);
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.section-header .section-label-accent {
  font-size: var(--text-xs);
  color: var(--color-brand);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 3px solid var(--color-brand);
  padding-left: 0.5rem;
}

/* ── Hero: Top Stories ── */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
  gap: 1.5px;
  background: var(--color-border);
  margin-bottom: 2.5rem;
  border: 1.5px solid var(--color-border);
}

.hero-primary,
.hero-secondary {
  background: var(--color-white);
}

.hero-primary {
  position: relative;
  overflow: hidden;
}

.hero-primary .post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-primary .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.hero-primary:hover .post-thumbnail img {
  transform: scale(1.03);
}

.hero-primary .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-secondary .story-item {
  display: flex;
  flex: 1;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.hero-secondary .story-item:last-child {
  border-bottom: none;
}

.hero-secondary .story-item .thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.hero-secondary .story-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-secondary .story-item .info {
  flex: 1;
  min-width: 0;
}

/* ── Article Card ── */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card .category-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.4rem;
}

.post-card .card-title {
  font-family: var(--font-serif);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.post-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card .card-title a:hover {
  color: var(--color-brand);
  text-decoration: none;
}

.hero-primary .card-title {
  font-size: var(--text-2xl);
}

.hero-secondary .card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
}

.post-card .card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-primary .card-excerpt {
  font-size: var(--text-base);
}

.post-card .card-meta {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.post-card .card-meta .sep {
  opacity: 0.4;
}

.post-card .card-meta time {
  white-space: nowrap;
}

/* ── Content + Sidebar Layout ── */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}

/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.category-column .section-header {
  border-bottom-color: var(--color-brand);
}

.category-column .story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-column .story-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.category-column .story-item:last-child {
  border-bottom: none;
}

.category-column .story-item .story-title {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 3px;
}

.category-column .story-item .story-title a {
  color: inherit;
  text-decoration: none;
}

.category-column .story-item .story-title a:hover {
  color: var(--color-brand);
}

.category-column .story-item .story-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 1.5rem;
}

.sidebar .widget {
  margin-bottom: 2rem;
}

.sidebar .widget-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-brand);
  margin-bottom: 1rem;
}

.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.most-read-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.most-read-item:last-child {
  border-bottom: none;
}

.most-read-num {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-border);
  line-height: 1;
  min-width: 28px;
  text-align: right;
}

.most-read-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--color-ink);
}

.most-read-title a {
  color: inherit;
  text-decoration: none;
}

.most-read-title a:hover {
  color: var(--color-brand);
}

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.article-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: var(--content-width) 1fr;
  gap: var(--gap);
  align-items: start;
}

.article-main {
  min-width: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-brand);
}

.breadcrumb .sep {
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--color-ink-muted);
}

/* ── Article Header ── */
.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

.article-excerpt {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  border-left: 4px solid var(--color-brand);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  flex-wrap: wrap;
}

.article-meta .author {
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
}

.article-meta .sep {
  opacity: 0.3;
}

.article-meta .reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Featured Image ── */
.article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.article-featured-image figcaption {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  padding: 0.5rem 0;
  font-style: italic;
  border-bottom: 1px solid var(--color-border);
}

/* ── Article Body ── */
.article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.article-body p {
  margin-bottom: 1.4rem;
}

/* ── Article Section Headings ── */
.article-body h2 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: var(--color-ink);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 3px solid var(--color-ink);
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  margin: 2rem 0 0.75rem;
  padding-left: 0.875rem;
  border-left: 4px solid var(--color-brand);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: none;
}

.article-body ul li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
}

.article-body ol {
  list-style: decimal;
}

.article-body ol li {
  padding: 0.3rem 0;
  margin-left: 0.5rem;
}

.article-body a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-brand-dark);
}

.article-body strong {
  font-weight: var(--weight-bold);
}

.article-body em {
  font-style: italic;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.article-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.4rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article-body blockquote {
  border-left: 4px solid var(--color-brand);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-accent);
  font-style: italic;
  color: var(--color-ink-soft);
}

/* ── Inline Images ── */
.article-body figure.baetalk-inline-image,
.article-body figure.wp-block-image {
  margin: 2rem 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
}

.article-body figcaption {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  padding: 0.5rem 0;
  font-style: italic;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}

/* ── Sources Section ── */
.article-body h3:last-of-type,
.article-body .sources-section h3 {
  border-left-color: var(--color-ink-muted);
}

/* ── Article Footer ── */
.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag-chip {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-soft);
  padding: 4px 10px;
  border-radius: 2rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.tag-chip:hover {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

/* ── Related Articles ── */
.related-articles {
  margin-top: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.related-card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}

.related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card .related-title {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  color: var(--color-ink);
}

.related-card .related-title a {
  color: inherit;
  text-decoration: none;
}

.related-card .related-title a:hover {
  color: var(--color-brand);
}

.related-card .related-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  margin-top: 4px;
}

/* ── Article Sidebar ── */
.article-sidebar {
  position: sticky;
  top: 1.5rem;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--color-ink);
}

.archive-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 4px;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-post-card {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.list-post-card .post-info {
  order: 1;
}

.list-post-card .post-thumb {
  order: 2;
}

.list-post-card .post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
}

.list-post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-post-card .post-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.4rem;
}

.list-post-card .post-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.list-post-card .post-title a {
  color: inherit;
  text-decoration: none;
}

.list-post-card .post-title a:hover {
  color: var(--color-brand);
}

.list-post-card .post-excerpt {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.list-post-card .post-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .15s;
}

.pagination .page-numbers:hover {
  background: var(--color-surface);
}

.pagination .current {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.pagination .dots {
  border: none;
  color: var(--color-ink-muted);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-header-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.footer-col .footer-col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col p,
.footer-col ul li {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color .15s;
}

.footer-col ul li a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   STATIC PAGES (About, Editorial Policy, Contact)
   ============================================================ */
.page-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--color-ink);
}

.page-title {
  font-family: var(--font-display, var(--font-serif));
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-ink);
  line-height: 1.2;
}

.page-body h2 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-brand);
}

.page-body h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--color-ink);
  margin: 1.75rem 0 0.5rem;
}

.page-body .contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.page-body .contact-card h3 {
  margin-top: 0;
  font-size: var(--text-base);
}

.page-body .contact-card p {
  margin-bottom: 0.5rem;
}

.page-body .value-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.page-body .value-card:last-of-type {
  border-bottom: none;
}

.page-body .value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-brand {
  color: var(--color-brand);
}

.text-muted {
  color: var(--color-ink-muted);
}

.text-serif {
  font-family: var(--font-serif);
}

.font-bold {
  font-weight: var(--weight-bold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-primary {
    grid-row: auto;
  }

  /* 2×2 card grid instead of horizontal scroll */
  .hero-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: unset;
  }

  .hero-secondary .story-item {
    flex-shrink: unset;
    width: auto;
    flex-direction: row;
    border-bottom: 1px solid var(--color-border);
    border-right: none;
  }

  .hero-secondary .story-item .thumb {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .sidebar .widget {
    margin-bottom: 0;
  }

  .article-container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-3xl: 1.75rem;
    --text-2xl: 1.375rem;
    --text-xl: 1.25rem;
  }

  .site-content {
    padding: 1.5rem 1rem;
  }

  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .header-date-bar {
    text-align: center;
  }

  .masthead-date {
    display: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .hero-secondary .story-item {
    flex-direction: row;
  }

  .hero-secondary .story-item .thumb {
    width: 88px;
    height: 66px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: var(--text-2xl);
  }

  .article-body {
    font-size: 1rem;
  }

  .list-post-card {
    grid-template-columns: 1fr;
  }

  .list-post-card .post-thumb {
    order: -1;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .site-content {
    padding: 1rem 0.875rem;
  }

  .container {
    padding: 0 0.875rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-primary .card-title {
    font-size: var(--text-xl);
  }

  .hero-primary .card-body {
    padding: 1rem;
  }

  .masthead-inner {
    grid-template-columns: auto 1fr auto;
    gap: .5rem;
  }

  .masthead-left {
    display: none;
  }

  .masthead-right {
    justify-content: flex-end;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

  .site-header,
  .site-footer,
  .article-sidebar,
  .breaking-bar,
  .site-nav,
  .related-articles,
  .sidebar {
    display: none;
  }

  .article-container {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 11pt;
    line-height: 1.6;
  }

  .article-title {
    font-size: 18pt;
  }
}