/* ==========================================================
   CHRONICLE — Professional News Portal CSS
   Style: Editorial / Magazine — Refined & Authoritative
   ========================================================== */

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Color Palette */
  --ink:        #0d0d0d;
  --ink-mid:    #1f1f1f;
  --ink-soft:   #3a3a3a;
  --slate:      #6b6b6b;
  --smoke:      #a8a8a8;
  --ghost:      #d4d4d4;
  --paper:      #f5f2ec;
  --white:      #ffffff;
  --accent:     #c8102e;        /* deep editorial red */
  --accent-dark:#9e0c24;
  --accent-gold:#c49a2a;
  --blue-link:  #1a4b8c;
  --bg-section: #faf8f4;
  --bg-dark:    #0f0f0f;
  --bg-footer:  #111111;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3.5rem;
  --space-2xl: 5.5rem;

  /* Layout */
  --container:       1280px;
  --container-narrow: 860px;
  --radius-sm:  4px;
  --radius-md:  8px;

  /* Shadow */
  --shadow-card: 0 2px 16px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utility Classes ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-2xl) 0; }
.section--dark { background: var(--bg-dark); color: var(--white); }
.section--paper { background: var(--bg-section); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  margin-right: 0.6rem;
  vertical-align: middle;
  border-radius: 2px;
}

.section--dark .section-title { color: var(--white); }

.view-all {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s var(--ease);
}
.view-all:hover { gap: 0.6rem; }
.view-all::after { content: '→'; }

/* ── Category Tag ── */
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 0.25em 0.65em;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}
.tag:hover { background: var(--accent-dark); }

.tag--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.tag--outline:hover { background: var(--accent); color: var(--white); }

.tag--gold { background: var(--accent-gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,16,46,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* ── Breaking News Ticker ── */
.ticker-bar {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.ticker-bar__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.2);
  padding: 0.2em 0.8em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-bar__track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-bar__content {
  display: flex;
  gap: 3rem;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: center;
}
.ticker-bar__content:hover { animation-play-state: paused; }
.ticker-bar__item {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.ticker-bar__item::before {
  content: '▶';
  font-size: 0.55rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── NAVIGATION ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--ghost);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-lg);
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.navbar__logo-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.navbar__logo-dot {
  color: var(--accent);
  font-size: 2rem;
  line-height: 0.6;
}
.navbar__logo-tag {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-top: 0.1rem;
}

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar__link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s var(--ease);
  position: relative;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.2s var(--ease);
  border-radius: 2px;
}
.navbar__link:hover,
.navbar__link.active { color: var(--ink); }
.navbar__link:hover::after,
.navbar__link.active::after { width: calc(100% - 1.5rem); }

/* Nav actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.navbar__search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.navbar__search-btn:hover { background: var(--paper); color: var(--ink); }

.navbar__subscribe {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), transform 0.2s;
}
.navbar__subscribe:hover { background: var(--accent); transform: translateY(-1px); }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--ghost);
  padding: var(--space-md) var(--space-lg);
  gap: 0.25rem;
}
.navbar__mobile-menu.open { display: flex; }
.navbar__mobile-menu .navbar__link { padding: 0.65rem 0.5rem; font-size: 0.9rem; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay__inner {
  width: 100%;
  max-width: 680px;
  padding: 0 var(--space-lg);
}
.search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0.5rem 0;
  outline: none;
}
.search-overlay__input::placeholder { color: rgba(255,255,255,0.3); }
.search-overlay__hint {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.75rem;
}
.search-overlay__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
}
.search-overlay__close:hover { opacity: 1; }

/* ── HERO SECTION ── */
/* Base (mobile): single column — sidebar column added via media query */
.hero {
  position: relative;
  min-height: 70vw;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--ink);
}

/* Main hero story */
.hero__main {
  position: relative;
  overflow: hidden;
}
.hero__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}
.hero:hover .hero__main-img { transform: scale(1.03); }
.hero__main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.1) 70%,
    transparent 100%
  );
}
.hero__main-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: var(--space-xl) var(--space-xl) var(--space-xl);
  color: var(--white);
}
.hero__main-content .tag { margin-bottom: var(--space-md); }
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  max-width: 680px;
}
.hero__excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.hero__meta-author { color: rgba(255,255,255,0.8); font-weight: 500; }
.hero__meta-dot { width: 3px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 50%; }

/* Hero sidebar */
.hero__sidebar {
  background: var(--ink-mid);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.hero__sidebar-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero__sidebar-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}
.hero__sidebar-items {
  flex: 1;
  overflow-y: auto;
}
.hero__sidebar-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.hero__sidebar-item:hover { background: rgba(255,255,255,0.04); }
.hero__sidebar-item-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.hero__sidebar-item-body {}
.hero__sidebar-item-cat {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
  display: block;
}
.hero__sidebar-item-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__sidebar-item-time {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--slate);
  margin-top: 0.35rem;
  display: block;
}

/* ── ARTICLE CARDS ── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.article-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.article-card:hover .article-card__img { transform: scale(1.06); }
.article-card__tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}
.article-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--ink);
  transition: color 0.2s;
}
.article-card:hover .article-card__title { color: var(--accent); }
.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--ghost);
}
.article-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
}
.article-card__author-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.article-card__date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--smoke);
}

/* Card variants */
.article-card--horizontal {
  flex-direction: row;
  gap: 0;
}
.article-card--horizontal .article-card__img-wrap {
  width: 200px;
  min-width: 200px;
  aspect-ratio: auto;
}
.article-card--horizontal .article-card__body { padding: var(--space-md); }
.article-card--horizontal .article-card__title { font-size: 0.95rem; }

/* Large / featured card */
.article-card--featured {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 440px;
}
.article-card--featured .article-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.article-card--featured:hover .article-card__img { transform: scale(1.05); }
.article-card--featured .article-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
}
.article-card--featured .article-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  color: var(--white);
  padding: var(--space-lg);
  background: none;
}
.article-card--featured .article-card__title {
  color: var(--white);
  font-size: 1.35rem;
}
.article-card--featured:hover .article-card__title { color: var(--white); }
.article-card--featured .article-card__excerpt { color: rgba(255,255,255,0.72); }
.article-card--featured .article-card__footer { border-top-color: rgba(255,255,255,0.15); }
.article-card--featured .article-card__author { color: rgba(255,255,255,0.7); }
.article-card--featured .article-card__date { color: rgba(255,255,255,0.5); }

/* ── FEATURED STORIES ── */
/* Base: single column — 2-col restored in responsive section */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ── LATEST ARTICLES ── */
/* Base: single column — expanded in responsive section */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ── TRENDING STRIP ── */
.trending-strip {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: var(--space-xl) 0;
}
.trending-strip .container {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: label above list */
  gap: 1rem;
  align-items: start;
}
.trending-strip__label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  padding-right: var(--space-xl);
  border-right: 2px solid var(--ghost);
}
.trending-strip__label span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.trending-item {
  display: grid;
  grid-template-columns: 28px 1fr;   /* mobile: no category col */
  gap: 0.75rem;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--ghost);
  cursor: pointer;
  transition: background 0.2s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ghost);
  line-height: 1;
  text-align: center;
}
.trending-item__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s;
}
.trending-item:hover .trending-item__title { color: var(--accent); }
.trending-item__cat {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: right;
  display: none;   /* hidden on mobile — shown via media query */
}

/* ── CATEGORIES SECTION ── */
/* Base: 2 columns on mobile — expands in responsive section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}
.category-card:hover { transform: translateY(-4px); }
.category-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-card:hover .category-card__img { transform: scale(1.08); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  transition: background 0.3s;
}
.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(200,16,46,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.category-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-md);
  color: var(--white);
}
.category-card__icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.category-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: block;
}
.category-card__count {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 0.15rem;
  display: block;
}

/* ── NEWSLETTER CTA ── */
.newsletter {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: 'CHRONICLE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 15vw;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.newsletter__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.newsletter__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}
.newsletter__input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.newsletter__input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter__input:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}
.newsletter__note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-md);
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.6);
  padding-top: var(--space-2xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: stack — expanded in responsive section */
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}
.footer__brand-logo span { color: var(--accent); }
.footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: var(--space-lg);
}
.footer__social {
  display: flex;
  gap: var(--space-sm);
}
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s var(--ease);
}
.footer__social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer__link::before { content: '›'; color: var(--accent); }
.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-direction: column;     /* mobile: stack — row in responsive section */
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 0;
}
.footer__copyright {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}
.footer__bottom-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer__bottom-link:hover { color: rgba(255,255,255,0.7); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  background: var(--ink);
  color: var(--white);
  min-height: 360px;
  display: flex;
  align-items: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: var(--space-md);
}
.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
}
.page-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.page-hero__meta strong { color: rgba(255,255,255,0.8); }

/* ── CATEGORY PAGE ── */
.category-layout {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: main only — sidebar added via media query */
  gap: 2rem;
  padding: 2rem 0;
}
.category-main {}
.category-sidebar {}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--ghost);
}
.pagination__btn {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--ghost);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  padding: 0 0.75rem;
}
.pagination__btn:hover,
.pagination__btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.pagination__btn--prev,
.pagination__btn--next { gap: 0.4rem; }
.pagination__dots { color: var(--smoke); padding: 0 0.25rem; }

/* Sidebar widgets */
.sidebar-widget {
  margin-bottom: var(--space-xl);
}
.sidebar-widget__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: var(--space-md);
}
.sidebar-popular-item {
  display: flex;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ghost);
  cursor: pointer;
  transition: opacity 0.2s;
}
.sidebar-popular-item:hover { opacity: 0.75; }
.sidebar-popular-item:last-child { border-bottom: none; }
.sidebar-popular-item__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ghost);
  flex-shrink: 0;
  width: 1.8rem;
  line-height: 1;
  padding-top: 0.1rem;
}
.sidebar-popular-item__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.sidebar-popular-item__date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--smoke);
  margin-top: 0.25rem;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── ARTICLE PAGE ── */
.article-content-wrap {
  padding: 1.5rem 0;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: main only — sidebar added via media query */
  gap: 2rem;
}
.article-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--paper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--slate);
}
.article-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.article-body figcaption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--smoke);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* Share buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--ghost);
  border-bottom: 1px solid var(--ghost);
  margin: var(--space-xl) 0;
}
.share-bar__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-right: var(--space-sm);
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ghost);
  color: var(--slate);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.share-btn--twitter:hover { border-color: #1da1f2; color: #1da1f2; background: #e8f5fd; }
.share-btn--facebook:hover { border-color: #1877f2; color: #1877f2; background: #e7f0fd; }
.share-btn--linkedin:hover { border-color: #0a66c2; color: #0a66c2; background: #e8f0f9; }

/* Author box */
.author-box {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
  border-left: 4px solid var(--accent);
}
.author-box__avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.author-box__role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.author-box__bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--slate);
}

/* Comments section */
.comments-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--ink);
}
.comments-section__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
}
.comment-form {
  background: var(--paper);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}
.comment-form__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: stack — 2-col at 540px+ */
  gap: 0.875rem;
  margin-bottom: var(--space-md);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.form-control {
  background: var(--white);
  border: 1.5px solid var(--ghost);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { min-height: 140px; resize: vertical; }

/* Related articles */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: stack — expanded in responsive section */
  gap: 1rem;
}

/* ── ABOUT PAGE ── */
.about-story {
  padding: 2rem 0;
}
.about-story__inner {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: stack — 2-col on desktop */
  gap: 2rem;
  align-items: center;
}
.about-story__img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-story__img img { width: 100%; height: 240px; object-fit: cover; }
.about-story__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.about-story__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.about-story__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: var(--space-md);
}

/* Stats bar */
.stats-bar {
  background: var(--ink);
  color: var(--white);
  padding: 2rem 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2-col on mobile, 4-col on desktop */
  gap: 1.25rem;
  text-align: center;
}
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-item__num span { color: var(--accent); }
.stat-item__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2-col mobile, expands up */
  gap: 1rem;
}
.team-card {
  text-align: center;
  cursor: pointer;
}
.team-card__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.team-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.team-card:hover .team-card__photo { transform: scale(1.07); }
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(200,16,46,0.75);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem;
  transition: opacity 0.3s var(--ease);
}
.team-card:hover .team-card__overlay { opacity: 1; }
.team-card__social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.team-card__social-icon:hover { background: rgba(255,255,255,0.35); }
.team-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.team-card__role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
.team-card__bio {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

/* Mission section */
.mission {
  background: var(--paper);
  padding: 2.5rem 0;
}
.mission__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.mission__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.mission__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: var(--space-md);
}
.mission__values {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: stack — expanded in responsive section */
  gap: 1rem;
  margin-top: var(--space-xl);
  text-align: left;
}
.mission-value {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.mission-value__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}
.mission-value__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.mission-value__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
}

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.contact-form-wrap__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}
.contact-info-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: static;
}
.contact-info-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}
.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item__icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}
.contact-info-item__value {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.contact-info-socials {
  margin-top: var(--space-lg);
}
.contact-info-socials__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-sm);
}
.contact-info-socials__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-social-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s var(--ease);
}
.contact-social-chip:hover { background: var(--accent); color: var(--white); }

/* Form Success Message */
.form-success {
  display: none;
  background: #edfaf3;
  border: 1.5px solid #34c778;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #1a7a47;
  margin-bottom: var(--space-md);
  align-items: center;
  gap: 0.5rem;
}
.form-success.show { display: flex; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}
.breadcrumbs a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs__sep { opacity: 0.4; }

/* ── READ MORE PROGRESS ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 800;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--ghost) 25%, var(--paper) 50%, var(--ghost) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--ghost);
  margin: var(--space-xl) 0;
}
.divider--bold {
  border-top-width: 2px;
  border-color: var(--ink);
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Complete mobile-first system
   Breakpoints:
     xs  < 480px    tiny phones
     sm  480–767px  phones
     md  768–1023px tablet portrait
     lg  1024–1279px tablet landscape / small desktop
     xl  ≥ 1280px   full desktop
═══════════════════════════════════════════════════════════════════ */

/* ── 0. Prevent horizontal overflow on all screens ── */
html, body { overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }  /* allows flex/grid children to shrink below content size */

/* ── 1. Container — fluid padding that grows with screen ── */
.container,
.container--narrow {
  width: 100%;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* ── 2. Section vertical rhythm — compact on mobile ── */
.section        { padding: 2.5rem 0; }
.section--paper { background: var(--bg-section); }
.section--dark  { background: var(--bg-dark); color: var(--white); }

/* ── 3. Breaking news ticker ── */
@media (max-width: 479px) {
  .ticker-bar__label    { display: none; }
  .ticker-bar__item     { font-size: 0.72rem; }
  .ticker-bar__inner    { gap: 0.5rem; }
}

/* ── 4. Navbar ── */
/* Hamburger hidden on desktop, shown on mobile/tablet */
.navbar__hamburger { display: none; }

@media (max-width: 1023px) {
  /* Hide desktop nav items and subscribe button */
  .navbar__nav                     { display: none; }
  .navbar__actions .navbar__subscribe { display: none; }

  /* Show hamburger */
  .navbar__hamburger { display: flex; }

  /* Tighter inner padding */
  .navbar__inner { padding: 0.7rem 1rem; }

  /* Mobile dropdown */
  .navbar__mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    background: var(--white);
    border-top: 1px solid var(--ghost);
    padding: 0.5rem 1rem 1.25rem;
  }
  .navbar__mobile-menu.open { display: flex; }
  .navbar__mobile-menu .navbar__link {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    display: block;
  }
  .navbar__mobile-menu .navbar__link:hover { background: var(--paper); }
}

@media (max-width: 359px) {
  .navbar__logo-name { font-size: 1.3rem; }
  .navbar__logo-tag  { display: none; }
}

/* ── 5. Hero section ── */
/* Mobile-first: single column */
.hero {
  grid-template-columns: 1fr;
  min-height: 72vw;
}
.hero__sidebar { display: none; }
.hero__excerpt { display: none; }
.hero__meta    { flex-wrap: wrap; gap: 0.4rem; }
.hero__meta-dot{ display: none; }
.hero__main-content { padding: 1.25rem 1rem 1.5rem; }
.hero__headline { font-size: clamp(1.2rem, 5vw, 1.8rem); }

@media (min-width: 540px) {
  .hero               { min-height: 62vw; }
  .hero__headline     { font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .hero__excerpt      { display: block; }
  .hero__meta-dot     { display: inline-block; }
  .hero__main-content { padding: 1.75rem 1.5rem; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 380px;
    min-height: 88vh;
  }
  .hero__sidebar      { display: flex; }
  .hero__headline     { font-size: clamp(1.8rem, 3.5vw, 3rem); }
  .hero__main-content { padding: var(--space-xl); }
}

/* ── 6. Section header ── */
@media (max-width: 479px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── 7. Featured stories grid (2 big cards) ── */
.featured-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.article-card--featured { min-height: 260px; }

@media (min-width: 640px) {
  .article-card--featured { min-height: 340px; }
}
@media (min-width: 768px) {
  .featured-grid          { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .article-card--featured { min-height: 380px; }
}
@media (min-width: 1024px) {
  .featured-grid          { gap: var(--space-lg); }
  .article-card--featured { min-height: 440px; }
}

/* ── 8. Latest articles grid (3-col) ── */
.latest-grid { grid-template-columns: 1fr;              gap: 1rem; }

@media (min-width: 540px) { .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px){ .latest-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }

/* ── 9. Horizontal article cards — stack on mobile ── */
.article-card--horizontal              { flex-direction: column; }
.article-card--horizontal .article-card__img-wrap {
  width: 100%;
  min-width: unset;
  aspect-ratio: 16 / 9;
}
.article-card--horizontal .article-card__body { padding: 0.875rem; }

@media (min-width: 540px) {
  .article-card--horizontal              { flex-direction: row; }
  .article-card--horizontal .article-card__img-wrap {
    width: 160px;
    min-width: 160px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .article-card--horizontal .article-card__body { padding: var(--space-md); }
}
@media (min-width: 768px) {
  .article-card--horizontal .article-card__img-wrap { width: 200px; min-width: 200px; }
}

/* ── 10. Trending strip ── */
.trending-strip          { padding: 1.75rem 0; }
.trending-strip .container {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.trending-strip__label {
  border-right: none;
  border-bottom: 2px solid var(--ghost);
  padding-right: 0;
  padding-bottom: var(--space-md);
  margin-bottom: 0;
}
.trending-item {
  grid-template-columns: 28px 1fr;
}
  gap: 0.75rem;
}
.trending-item__cat { display: none; }

@media (min-width: 768px) {
  .trending-item {
    grid-template-columns: 32px 1fr 100px;
    gap: var(--space-md);
  }
  .trending-item__cat { display: block; }
}
@media (min-width: 1024px) {
  .trending-strip { padding: var(--space-xl) 0; }
  .trending-strip .container {
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
  }
  .trending-strip__label {
    border-right: 2px solid var(--ghost);
    border-bottom: none;
    padding-right: var(--space-xl);
    padding-bottom: 0;
  }
  .trending-item {
    grid-template-columns: 32px 1fr 120px;
  }
}

/* ── 11. Category cards grid ── */
.categories-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.category-card { aspect-ratio: 1; }

@media (min-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card   { aspect-ratio: 3 / 4; }
}
@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-md); }
}

/* ── 12. Newsletter form — stack on mobile ── */
.newsletter      { padding: 2.5rem 0; }
.newsletter__form {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0 0.5rem;
}
.newsletter__input          { width: 100%; }
.newsletter__form .btn      { width: 100%; justify-content: center; }

@media (min-width: 540px) {
  .newsletter__form {
    flex-direction: row;
    align-items: center;
    padding: 0;
    max-width: 480px;
  }
  .newsletter__input     { width: auto; flex: 1; }
  .newsletter__form .btn { width: auto; }
}
@media (min-width: 1024px) { .newsletter { padding: var(--space-2xl) 0; } }

/* ── 13. Footer ── */
.footer      { padding-top: 2.5rem; }
.footer__grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer__brand-desc { max-width: 100%; }
.footer__bottom {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 0;
  text-align: left;
}
.footer__bottom-links { flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 580px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .footer       { padding-top: var(--space-2xl); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); padding-bottom: var(--space-xl); }
}

/* ── 14. Page hero (inner pages) ── */
.page-hero           { min-height: 200px; padding: 2rem 0; }
.page-hero__title    { font-size: clamp(1.5rem, 6vw, 2.5rem); }
.page-hero__desc     { font-size: 0.9rem; max-width: 100%; }
.page-hero__meta     { flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; }
.page-hero__meta > span:empty { display: none; }  /* hide bare separator spans */

@media (min-width: 640px) {
  .page-hero        { min-height: 280px; padding: 3rem 0; }
  .page-hero__title { font-size: clamp(1.8rem, 4vw, 3rem); }
  .page-hero__desc  { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .page-hero        { min-height: 360px; padding: var(--space-2xl) 0; }
  .page-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }
}

/* ── 15. Category page layout ── */
.category-layout {
  grid-template-columns: 1fr;
  padding: 2rem 0;
  gap: 0;                    /* no gap — sidebar not visible */
}
.category-sidebar { display: none; }

@media (min-width: 1024px) {
  .category-layout  { grid-template-columns: 1fr 300px; gap: var(--space-2xl); padding: var(--space-2xl) 0; }
  .category-sidebar { display: block; }
}
@media (min-width: 1200px) {
  .category-layout { grid-template-columns: 1fr 320px; }
}

/* ── 16. Article page layout ── */
.article-content-wrap   { padding: 1.5rem 0; }
.article-layout {
  grid-template-columns: 1fr;
  gap: 0;
}
.article-layout > .category-sidebar { display: none; }

@media (min-width: 1024px) {
  .article-content-wrap          { padding: var(--space-2xl) 0; }
  .article-layout                { grid-template-columns: 1fr 300px; gap: var(--space-2xl); }
  .article-layout > .category-sidebar { display: block; }
}
@media (min-width: 1200px) {
  .article-layout { grid-template-columns: 1fr 320px; }
}

/* Article body text scale */
.article-body          { font-size: 1rem;   line-height: 1.8; }
.article-body h2       { font-size: 1.3rem; }
.article-body h3       { font-size: 1.1rem; }
.article-body blockquote { font-size: 1rem; padding: 0.75rem 1rem; }

@media (min-width: 768px) {
  .article-body        { font-size: 1.05rem; }
  .article-body h2     { font-size: 1.5rem; }
  .article-body h3     { font-size: 1.2rem; }
  .article-body blockquote { font-size: 1.1rem; padding: 1rem 1.5rem; }
}
@media (min-width: 1024px) {
  .article-body        { font-size: 1.1rem; line-height: 1.85; }
  .article-body h2     { font-size: 1.6rem; }
  .article-body h3     { font-size: 1.25rem; }
  .article-body blockquote { font-size: 1.15rem; }
}

/* Share bar */
.share-bar  { flex-wrap: wrap; gap: 0.5rem; padding: 0.875rem 0; margin: 1.5rem 0; }
.share-btn  { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
@media (min-width: 480px) { .share-btn { font-size: 0.78rem; padding: 0.45rem 1rem; } }

/* Author box */
.author-box         { flex-direction: column; gap: 1rem; padding: 1rem; }
.author-box__avatar { width: 64px; height: 64px; }
@media (min-width: 540px) {
  .author-box         { flex-direction: row; gap: var(--space-lg); padding: var(--space-lg); }
  .author-box__avatar { width: 90px; height: 90px; }
}

/* Comment form */
.form-row { grid-template-columns: 1fr; gap: 0.875rem; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; gap: var(--space-md); } }

/* ── 17. Related articles grid ── */
.related-grid { grid-template-columns: 1fr;              gap: 1rem; }
@media (min-width: 580px) { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px){ .related-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }

/* ── 18. About page ── */
.about-story         { padding: 2rem 0; }
.about-story__inner  { grid-template-columns: 1fr; gap: 2rem; }
.about-story__img    { order: -1; }
.about-story__img img{ height: 240px; }

@media (min-width: 640px) { .about-story__img img { height: 320px; } }
@media (min-width: 1024px) {
  .about-story         { padding: var(--space-2xl) 0; }
  .about-story__inner  { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .about-story__img    { order: 0; }
  .about-story__img img{ height: 480px; }
}

/* Stats bar */
.stats-bar           { padding: 2rem 0; }
.stats-bar__grid     { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat-item__num      { font-size: clamp(1.75rem, 5vw, 3rem); }
@media (min-width: 1024px) {
  .stats-bar         { padding: var(--space-xl) 0; }
  .stats-bar__grid   { grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }
}

/* Team grid */
.team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px)  { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }

/* Mission / values */
.mission            { padding: 2.5rem 0; }
.mission__values    { grid-template-columns: 1fr;              gap: 1rem; }
@media (min-width: 640px)  { .mission__values { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) {
  .mission           { padding: var(--space-2xl) 0; }
  .mission__values   { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}

/* ── 19. Contact page ── */
.contact-layout      { grid-template-columns: 1fr; padding: 2rem 0; gap: 2rem; }
.contact-form-wrap   { padding: 1.25rem; }
.contact-info-card   { position: static; }

@media (min-width: 640px)  { .contact-form-wrap { padding: 1.75rem; } }
@media (min-width: 1024px) {
  .contact-layout    { grid-template-columns: 1fr 420px; gap: var(--space-2xl); padding: var(--space-2xl) 0; }
  .contact-form-wrap { padding: var(--space-xl); }
  .contact-info-card { position: sticky; top: 100px; }
}

/* ── 20. Sidebar widgets ── */
.sidebar-widget__title      { font-size: 0.95rem; }
.sidebar-popular-item__title{ font-size: 0.825rem; }

/* ── 21. Breadcrumbs ── */
.breadcrumbs { flex-wrap: wrap; gap: 0.25rem; font-size: 0.72rem; }

/* ── 22. Pagination ── */
.pagination          { flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ghost); }
.pagination__btn     { min-width: 36px; height: 36px; font-size: 0.8rem; }
@media (min-width: 480px) { .pagination__btn { min-width: 40px; height: 40px; } }

/* ── 23. Section spacing scale ── */
@media (min-width: 768px)  { .section { padding: 3.5rem 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-2xl) 0; } }

/* ── 24. Back to top button ── */
.back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 0.9rem; }
@media (min-width: 768px) { .back-to-top { bottom: 2rem; right: 2rem; width: 44px; height: 44px; } }

/* ── 25. Images — never overflow ── */
img { max-width: 100%; height: auto; }


/* Meta separator dots — hidden on phones */
.meta-sep { display: none; }
@media (min-width: 540px) { .meta-sep { display: inline; } }

