/* ===== RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --bg:       #ffffff;
  --bg2:      #f4f4f1;
  --bg3:      #e8e8e4;
  --text:     #111111;
  --text2:    #5a5a5a;
  --text3:    #909090;
  --accent:   #c0392b;
  --accent2:  #e74c3c;
  --border:   #e0e0dc;
  --header:   #1e3050;
  --font:     "Georgia", serif;
  --sans:     system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-w:    1240px;
  --sidebar-w: 280px;
  --radius:   4px;
  --fs-base:  17px;
  --font-scale: 1;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:     #0d1117;
  --bg2:    #161b22;
  --bg3:    #1c2128;
  --text:   #e6edf3;
  --text2:  #8b949e;
  --text3:  #6e7681;
  --border: #30363d;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: calc(var(--fs-base) * var(--font-scale));
  line-height: 1.65;
  transition: background .25s, color .25s;
}

a { color: inherit; }

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

/* ===== TOPBAR ===== */
.topbar {
  background: #152540;
  color: rgba(255,255,255,.65);
  font-family: var(--sans);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar-date {
  margin-right: auto;
  opacity: .5;
  font-size: 11px;
  letter-spacing: .3px;
}
.topbar-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,.1);
  height: 100%;
  cursor: default;
}
.topbar-city { font-weight: 600; color: rgba(255,255,255,.8); }
.topbar-temp { font-weight: 700; color: #fff; }
.topbar-icon { font-size: 14px; }
.topbar-currency-code { font-weight: 600; color: rgba(255,255,255,.8); }
.topbar-rate { font-weight: 700; color: #fff; }
.topbar-arrow { font-size: 10px; }
.topbar-arrow--up   { color: #2ecc71; }
.topbar-arrow--down { color: #e74c3c; }

/* ===== BREAKING TICKER ===== */
.breaking-bar {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 28px;
}
.breaking-label {
  flex-shrink: 0;
  background: rgba(0,0,0,.2);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 11px;
  gap: 6px;
}
.breaking-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-items {
  display: flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-items:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  padding: 0 32px;
  display: inline-block;
  letter-spacing: .2px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.ticker-item:hover { text-decoration: underline; opacity: .85; }
.ticker-item::after {
  content: '◆';
  margin-left: 32px;
  opacity: .4;
  font-size: 8px;
}

/* ===== HEADER ===== */
body > header {
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.header-top {
  padding: 11px 0 9px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-tagline {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,.28);
  letter-spacing: .4px;
  margin-right: auto;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0;
}
.logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 5px 10px;
}
.logo-frame::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 55%;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transition: width .3s, height .3s;
}
.logo-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 55%; height: 55%;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transition: width .3s, height .3s;
}
.logo:hover .logo-frame::before,
.logo:hover .logo-frame::after { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* Header controls: search + font size + theme toggle */
.header-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.header-search-btn,
.header-ctrl-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: 15px;
  padding: 5px 8px;
  transition: color .15s, background .15s;
  line-height: 1;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
}
.header-search-btn { font-size: 18px; }
.header-ctrl-btn:hover,
.header-search-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.header-ctrl-btn--theme { font-size: 16px; }
.header-user-btn { text-decoration: none; font-size: 12px; letter-spacing: .3px; }

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  width: min(600px, 90vw);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.search-box form { display: flex; gap: 10px; }
.search-box input {
  flex: 1;
  font-size: 17px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-family: var(--sans);
  color: #111;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button[type=submit] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
}
.search-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* Category nav */
.cat-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,.07);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav__all,
.cat-nav__item {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 15px;
  white-space: nowrap;
  color: rgba(255,255,255,.5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  letter-spacing: .3px;
}
.cat-nav__all:hover  { color: #fff; border-bottom-color: var(--accent); }
.cat-nav__all.active { color: #fff; border-bottom-color: var(--accent); }
.cat-nav__item:hover  { color: #fff; border-bottom-color: var(--cat-c, var(--accent)); }
.cat-nav__item.active { color: #fff; border-bottom-color: var(--cat-c, var(--accent)); }

/* Media / extras nav */
.media-nav {
  background: #1e3050;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.media-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.media-nav-inner::-webkit-scrollbar { display: none; }
.media-nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  text-decoration: none;
  color: rgba(255,255,255,.45);
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.media-nav a:hover        { color: rgba(255,255,255,.85); }
.media-nav a.media-active { color: #fff; border-bottom-color: var(--accent); }

/* Sub-nav (shown for category pages) */
.sub-nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
}
.sub-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav a {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text2);
  padding: 9px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.sub-nav a.sub-all { color: var(--cat-c, var(--accent)); border-bottom-color: var(--cat-c, var(--accent)); }
.sub-nav a:hover   { color: var(--cat-c, var(--accent)); }

/* ===== WAR STATS BANNER ===== */
.war-stats-bar {
  background: #17284a;
  border-bottom: 1px solid #c0392b;
}
.war-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px;
}
.war-stats-title {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 6px;
}
.war-stats-cells {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.war-stats-cells::-webkit-scrollbar { display: none; }
.war-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 14px 4px 0;
  border-right: 1px solid rgba(255,255,255,.08);
  margin-right: 14px;
  flex-shrink: 0;
}
.war-cell:last-child { border-right: none; margin-right: 0; }
.war-cell-label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.war-cell-val {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.war-cell-inc {
  font-size: 10px;
  font-weight: 700;
  color: #e74c3c;
  letter-spacing: .2px;
}
.war-cell-delta {
  font-size: 9px;
  color: #c0392b;
  font-weight: 700;
}

/* ===== LAYOUT ===== */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.main-col { flex: 1; min-width: 0; }
.sidebar  { width: var(--sidebar-w); flex-shrink: 0; }

/* Section header */
.section-header {
  border-left: 4px solid var(--cat-c, var(--accent));
  padding-left: 12px;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--cat-c, var(--accent));
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}

/* ===== CARDS ===== */
.card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card.visible { opacity: 1; transform: translateY(0); }

/* Featured card: spans full width, horizontal layout */
.card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}
.card--featured .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card--featured h2    { font-size: 1.65em; line-height: 1.25; }
.card--featured .lead { font-size: 0.94em; color: var(--text); line-height: 1.6; }

/* Card image */
.card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg3);
  border-radius: var(--radius);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.card--featured .card-img-wrap { margin-bottom: 0; border-radius: 6px; }

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--cat-c, #555) 55%, #0b1120),
    color-mix(in srgb, var(--cat-c, #555) 15%, #0b1120)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

/* Card meta */
.card-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--text2);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--cat-c, #888) 13%, transparent);
  color: var(--cat-c, #888);
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .9px;
  text-decoration: none;
  transition: background .15s;
}
.category-badge:hover {
  background: color-mix(in srgb, var(--cat-c, #888) 22%, transparent);
}

.card h2 {
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.card h2 a:hover { color: var(--accent); }

.lead {
  font-size: 0.85em;
  color: var(--text2);
  line-height: 1.55;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 36px 0 12px;
  font-family: var(--sans);
  font-size: 14px;
}
.pagination a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ===== SIDEBAR ===== */
.ad-box {
  background: var(--bg2);
  border: 1px dashed #d8d8d4;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #bbb;
  font-family: var(--sans);
  font-size: 11px;
  margin-bottom: 28px;
}
.ad-box--300 { width: 300px; min-height: 250px; }

/* Pipevale sidebar banner */
.pipevale-sidebar-ad { justify-content: flex-start; align-items: stretch; padding: 16px; gap: 0; }
.pipevale-sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 8px;
  flex: 1;
  padding-top: 8px;
}
.pipevale-sidebar-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  margin-bottom: 4px;
}
.pipevale-sidebar-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .3px;
}
.pipevale-sidebar-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.pipevale-sidebar-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text2);
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
}
.pipevale-sidebar-cta {
  margin-top: 8px;
  background: #1d4ed8;
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background .15s;
}
.pipevale-sidebar-link:hover .pipevale-sidebar-cta { background: #2563eb; }
.ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ccc;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.sidebar-cats { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-cats li { border-left: 3px solid var(--cat-c, var(--border)); padding-left: 10px; }
.sidebar-cats a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color .15s;
}
.sidebar-cats a:hover { color: var(--text); }

/* ===== ARTICLE PAGE ===== */
/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 999;
  transition: width .1s linear;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 28px;
  background: var(--bg3);
}
.article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.article-full { max-width: 760px; }
.article-header { margin-bottom: 28px; }
.article-full h1 {
  font-size: 1.88em;
  line-height: 1.22;
  font-weight: 800;
  margin: 12px 0 18px;
}
.editorial-badge {
  background: #1a3a5c;
  color: #7ecfff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.article-author {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin: 6px 0 2px;
}

.lead-big {
  font-size: 1.06em;
  color: var(--text2);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
  line-height: 1.6;
}
.body p { margin-bottom: 20px; font-size: 1em; line-height: 1.78; }

.in-article-ad {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #bbb;
  font-family: var(--sans);
  font-size: 11px;
  margin: 32px 0;
}

/* Sources */
.article-sources {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg2);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
}
.sources-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--text2);
  margin-bottom: 8px;
}
.sources-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sources-list a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  word-break: break-word;
}
.sources-list a:hover { color: var(--accent); text-decoration: underline; }

.article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.bookmark-btn {
  font-family: var(--sans);
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .15s;
}
.bookmark-btn:hover { border-color: #c0392b; color: #c0392b; }
.bookmark-btn.bookmarked { background: rgba(192,57,43,.08); border-color: #c0392b; color: #c0392b; }

/* Pipevale banner */
.pipevale-ad { flex-direction: column; align-items: stretch; min-height: auto; padding: 14px 18px; gap: 8px; }
.pipevale-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.pipevale-banner:hover .pipevale-cta { background: #2563eb; }
.pipevale-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--sans);
}
.pipevale-info {
  flex: 1;
  font-family: var(--sans);
  min-width: 0;
}
.pipevale-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.pipevale-info span {
  font-size: 12px;
  color: var(--text2);
}
.pipevale-cta {
  background: #1d4ed8;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}

/* Comments */
.comments-section {
  margin-top: 40px;
  font-family: var(--sans);
}
.comments-heading {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.comment-form { margin-bottom: 24px; }
.comment-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  resize: vertical;
  background: var(--bg2);
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
}
.comment-textarea:focus { border-color: #c0392b; }
.comment-submit {
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
}
.comment-submit:hover { background: #e74c3c; }
.comment-login-hint { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.comment-login-hint a { color: #c0392b; }
.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.comment-meta { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-empty { font-size: 13px; color: var(--text2); font-style: italic; }

/* ===== FOOTER ===== */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  background: #1e3050;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
}
.footer-logo {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,.8);
  letter-spacing: 4px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-nav a:hover { color: rgba(255,255,255,.8); }
.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 14, 26, .97);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.shown { transform: translateY(0); }
.cookie-text { flex: 1; }
.cookie-text a { color: var(--accent2); text-decoration: underline; }
.cookie-accept {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s;
}
.cookie-accept:hover { background: var(--accent2); }
.cookie-dismiss {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.6);
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .15s, color .15s;
}
.cookie-dismiss:hover { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.9); }

/* ===== DARK MODE OVERRIDES ===== */
:root[data-theme="dark"] .sub-nav { background: var(--bg2); }
:root[data-theme="dark"] .search-box { background: var(--bg2); border: 1px solid var(--border); }
:root[data-theme="dark"] .search-box input {
  background: var(--bg3); border-color: var(--border); color: var(--text);
}
:root[data-theme="dark"] .article-sources { background: var(--bg2); }
:root[data-theme="dark"] .in-article-ad { border-color: var(--border); background: var(--bg2); }
:root[data-theme="dark"] .ad-box { background: var(--bg2); border-color: var(--border); }

/* ===== SEARCH RESULTS ===== */
.search-results-page { padding: 8px 0 32px; }
.search-results-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.search-results-count {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}

/* ===== STATIC PAGES (about, contacts, advertise) ===== */
.static-page { max-width: 720px; padding: 8px 0 40px; }
.static-title {
  font-size: 1.88em;
  font-weight: 800;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.static-body h2 {
  font-size: 1.18em;
  font-weight: 700;
  margin: 28px 0 10px;
  font-family: var(--sans);
}
.static-body p  { margin-bottom: 16px; font-size: 0.94em; line-height: 1.72; }
.static-body ul { margin: 0 0 16px 20px; }
.static-body li { margin-bottom: 6px; font-size: 0.94em; line-height: 1.6; }
.static-body a  { color: var(--accent); text-decoration: underline; }

/* ===== UTILS ===== */
.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text2);
  font-family: var(--sans);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sidebar      { display: none; }
  .page-wrap    { padding: 20px 16px; }
  .breaking-bar { display: none; }
}
@media (max-width: 680px) {
  .news-grid            { grid-template-columns: 1fr; }
  .card--featured       { grid-template-columns: 1fr; }
  .card--featured h2    { font-size: 1.3em; }
  .topbar               { display: none; }
  .article-full h1      { font-size: 1.41em; }
  .lead-big             { font-size: 0.94em; }
}

/* ===== VIEWS COUNTER ON CARDS ===== */
.card-views {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--sans);
  margin-left: auto;
}
.card-views::before { content: "👁 "; }

/* ===== BREAKING NEWS (static mode) ===== */
.breaking-bar--active { display: flex !important; background: #c0392b; }
.breaking-bar--active .breaking-label { background: #9b1b12; }
.breaking-static-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  padding: 0 20px;
  font-weight: 600;
}

/* ===== READING TIME ===== */
.reading-time {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--sans);
  font-weight: 400;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-label {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--sans);
  white-space: nowrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  font-size: 13px;
  padding: 0;
}
.share-btn:hover { background: var(--border); color: var(--text); }
.share-tg:hover     { background: #229ed9; border-color: #229ed9; color: #fff; }
.share-x:hover      { background: #111; border-color: #111; color: #fff; }
.share-fb:hover     { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-viber:hover  { background: #7360f2; border-color: #7360f2; color: #fff; }
.share-copy:hover   { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== RELATED ARTICLES ===== */
.related-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: opacity .15s;
}
.related-card:hover { opacity: .8; text-decoration: none; }
.related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.related-card p {
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 680px) {
  .related-grid { grid-template-columns: 1fr; }
  .share-buttons { flex-wrap: wrap; }
}

/* ===== EMAIL SUBSCRIPTION ===== */
.subscribe-box { }
.subscribe-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
  font-family: var(--sans);
}
.subscribe-form {
  display: flex;
  gap: 6px;
  flex-direction: column;
}
.subscribe-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .15s;
}
.subscribe-input:focus { border-color: var(--accent); }
.subscribe-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .15s;
}
.subscribe-btn:hover { background: var(--accent2); }
.subscribe-msg {
  font-size: 13px;
  font-family: var(--sans);
  margin-top: 6px;
}

/* ===== TYPE BADGES ON CARDS ===== */
.type-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 2px 5px;
  border-radius: 2px;
  font-family: var(--sans);
  white-space: nowrap;
  vertical-align: middle;
}
.type-badge--video     { background: #c0392b; color: #fff; }
.type-badge--live      { background: #27ae60; color: #fff; }
.type-badge--exclusive { background: #8e44ad; color: #fff; }
.type-badge--editorial { background: #2980b9; color: #fff; }
.type-badge--updated   { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }

/* ===== YOUTUBE EMBED ===== */
.yt-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 24px 0;
  background: #000;
}
.yt-embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== DONATE BOX ===== */
.donate-box { }
.donate-desc {
  font-size: 13px;
  color: var(--text2);
  font-family: var(--sans);
  margin-bottom: 10px;
  line-height: 1.5;
}
.donate-btn {
  display: block;
  width: 100%;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.donate-btn:hover { background: #e74c3c; color: #fff; }
