/* ═══════════════════════════════════════════════════════════════
   Промпт — Design Tokens & Global Styles
   NYT/BBC editorial aesthetic · Source Serif 4 + Inter
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  /* Brand */
  --brand-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --brand-sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* Palette */
  --accent:        #c8102e;       /* NYT red */
  --accent-hover:  #a50d25;
  --bg:            #fafaf8;       /* warm white */
  --surface:       #ffffff;
  --surface-tint:  #f5f4f0;
  --border:        #e8e6e0;
  --border-strong: #c8c5bc;
  --text:          #111111;       /* near-black */
  --text-secondary:#3d3d3d;
  --muted:         #767676;
  --muted-light:   #a0a0a0;

  /* Category tones (for fallback thumbnails) */
  --cat-models:     #dbeafe;
  --cat-models-fg:  #1e3a5f;
  --cat-tools:      #d1fae5;
  --cat-tools-fg:   #064e3b;
  --cat-security:   #fee2e2;
  --cat-security-fg:#7f1d1d;
  --cat-business:   #fef3c7;
  --cat-business-fg:#78350f;
  --cat-research:   #ede9fe;
  --cat-research-fg:#3b0764;
  --cat-agents:     #e0f2fe;
  --cat-agents-fg:  #0c4a6e;
  --cat-vibecoding: #fce7f3;
  --cat-vibecoding-fg:#831843;

  /* Insight block */
  --take-bg:      #fffbeb;
  --take-border:  #f59e0b;
  --take-text:    #78350f;

  /* Layout */
  --max-w:        1200px;
  --max-w-article:  680px;
  --sidebar-w:    300px;
  --gap:          32px;
  --radius:       4px;
  --radius-card:  3px;

  /* Shadow — subtle, editorial */
  --shadow-card:  0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 20px rgba(0,0,0,.10);

  /* Transitions */
  --t-fast: .15s ease;
  --t-mid:  .25s ease;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--brand-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   MASTHEAD / TOPBAR
   ═══════════════════════════════════════════════════ */
.topbar {
  background: var(--surface);
  border-bottom: 3px solid var(--text);  /* newspaper-thick rule */
  position: sticky;
  top: 0;
  z-index: 200;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
}

/* Masthead logotype */
.masthead {
  font-family: var(--brand-serif);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.masthead .accent { color: var(--accent); }

/* Date line */
.topbar-dateline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .3px;
  line-height: 1.3;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  flex-shrink: 0;
}
.topbar-dateline strong { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* Navigation */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-nav a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  letter-spacing: .1px;
}
.topbar-nav a:hover { color: var(--text); background: var(--surface-tint); }
.topbar-nav a.active { color: var(--accent); font-weight: 700; }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: var(--t-fast);
}

/* ── Category filter bar ── */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  height: 44px;
  align-items: center;
}
.filter-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  background: none;
  font-family: var(--brand-sans);
  line-height: 1;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff5f6;
}

/* ═══════════════════════════════════════════════════
   AD SLOTS
   ═══════════════════════════════════════════════════ */
.ad-slot {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--brand-sans);
  border-radius: var(--radius);
}
.ad-leaderboard-wrap {
  max-width: var(--max-w);
  margin: 16px auto 0;
  padding: 0 24px;
}
.ad-leaderboard-wrap .ad-slot { height: 90px; }
.ad-infeed .ad-slot { height: 90px; margin: 4px 0; }
.ad-sidebar .ad-slot { height: 250px; }
.ad-inarticle .ad-slot { height: 90px; }

/* ═══════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════ */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.page-wrap > main { min-width: 0; }

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}
.section-title {
  font-family: var(--brand-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.section-rule { flex: 1; border: none; border-top: 1px solid var(--border); margin: 0; }
.section-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: .2px;
  transition: opacity var(--t-fast);
  flex-shrink: 0;
}
.section-all-link:hover { opacity: .75; }

/* ── Tier divider (між рівнями на головній) ── */
.tier-divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0 28px;
  position: relative;
}
.tier-divider::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  width: 48px; height: 3px;
  background: var(--accent);
}

/* ═══════════════════════════════════════════════════
   FEATURED / LEAD STORY
   ═══════════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.featured-card {
  background: var(--surface);
  cursor: pointer;
  transition: background var(--t-fast);
  overflow: hidden;
  position: relative;
}
.featured-card:hover { background: #fdf9f9; }
.featured-card:hover .fc-title { color: var(--accent); }

.fc-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
/* Editorial fallback thumbnail */
.fc-thumb-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.fc-thumb-placeholder .ph-cat {
  font-family: var(--brand-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
  z-index: 1;
}
.fc-thumb-placeholder .ph-src {
  font-family: monospace;
  font-size: 10px;
  opacity: .5;
  z-index: 1;
}

.fc-body { padding: 16px 18px 18px; }
.fc-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
  display: block;
}
.fc-title {
  font-family: var(--brand-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
  transition: color var(--t-fast);
}
.fc-dek {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.fc-take {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--take-text);
  line-height: 1.5;
}
.fc-take strong { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; display: block; margin-bottom: 3px; color: #92400e; }
.fc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  flex-wrap: wrap;
}
.fc-meta .dot::before { content: '·'; margin-right: 0; }

/* ═══════════════════════════════════════════════════
   FEATURE ARTICLES (Рівень 1 — великі статті)
   ═══════════════════════════════════════════════════ */
.feature-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

/* Lead card (перша стаття) займає обидві колонки */
.feature-article-card--lead {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.feature-article-card--lead .fa-hero-img,
.feature-article-card--lead .fa-hero-ph {
  height: 340px;
}
.feature-article-card--lead .fa-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}
.feature-article-card--lead .fa-dek {
  font-size: 15px;
  -webkit-line-clamp: 4;
}
.feature-article-card--lead .fa-body {
  padding: 28px 30px 28px;
}

.feature-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
  overflow: hidden;
}
.feature-article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.feature-article-card:hover .fa-title { color: var(--accent); }

.fa-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.fa-hero-ph {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fa-hero-ph .ph-cat {
  font-family: var(--brand-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
}

.fa-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fa-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.fa-title {
  font-family: var(--brand-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.fa-dek {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fa-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.fa-read-min { font-weight: 600; color: var(--accent); }
.fa-dot { opacity: .5; }
.fa-read-cta {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: color var(--t-fast);
}
.feature-article-card:hover .fa-read-cta { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   NEWS FEED CARDS
   ═══════════════════════════════════════════════════ */
.news-feed { display: flex; flex-direction: column; }

.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  padding: 16px 0;
  transition: background var(--t-fast);
  position: relative;
}
.news-card:first-child { border-top: 1px solid var(--border); }
.news-card:hover { background: #fdf9f9; }
.news-card:hover .nc-title { color: var(--accent); }

.nc-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
/* Editorial placeholder — styled intentionally */
.nc-thumb-placeholder {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  position: relative;
}
.nc-thumb-placeholder .ph-cat {
  font-family: var(--brand-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .65;
  text-align: center;
  padding: 0 4px;
  z-index: 1;
}
.nc-thumb-placeholder .ph-src {
  font-family: monospace;
  font-size: 8px;
  opacity: .4;
  z-index: 1;
  text-align: center;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.nc-content { padding: 0 0 0 14px; }
.nc-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.nc-title {
  font-family: var(--brand-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 5px;
  transition: color var(--t-fast);
}
.nc-dek {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-take {
  font-size: 11.5px;
  color: var(--take-text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   CATEGORY BADGES / KICKERS
   ═══════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-family: var(--brand-sans);
}
.badge-models    { background: var(--cat-models);     color: var(--cat-models-fg); }
.badge-tools     { background: var(--cat-tools);      color: var(--cat-tools-fg); }
.badge-security  { background: var(--cat-security);   color: var(--cat-security-fg); }
.badge-business  { background: var(--cat-business);   color: var(--cat-business-fg); }
.badge-research  { background: var(--cat-research);   color: var(--cat-research-fg); }
.badge-agents    { background: var(--cat-agents);     color: var(--cat-agents-fg); }
.badge-vibecoding{ background: var(--cat-vibecoding); color: var(--cat-vibecoding-fg); }

/* Placeholder bg per category */
.ph-bg-models    { background: var(--cat-models); }
.ph-bg-tools     { background: var(--cat-tools); }
.ph-bg-security  { background: var(--cat-security); }
.ph-bg-business  { background: var(--cat-business); }
.ph-bg-research  { background: var(--cat-research); }
.ph-bg-agents    { background: var(--cat-agents); }
.ph-bg-vibecoding{ background: var(--cat-vibecoding); }
.ph-bg-default   { background: #f0ece6; }

/* ═══════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 116px; /* topbar + filter bar */
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
}
.widget-title {
  font-family: var(--brand-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 14px;
}

/* TG button */
.tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #229ED9;
  color: #fff;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  transition: opacity var(--t-fast);
  width: 100%;
}
.tg-btn:hover { opacity: .88; }
.tg-btn:focus-visible { outline-color: #229ED9; }
.widget-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Tweets */
.tweet-item {
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.tweet-item:last-child { border-bottom: none; padding-bottom: 0; }
.tweet-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.tweet-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tweet-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.tweet-link { font-size: 11px; color: var(--accent); margin-top: 2px; display: block; }
.tweet-link:hover { text-decoration: underline; }

/* Tool of day */
.tool-day-name {
  font-family: var(--brand-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tool-day-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════════════════════════════
   SKELETON LOADER
   ═══════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #edeae4 25%, #f5f3ee 50%, #edeae4 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── Empty / error states ── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.empty-title {
  font-family: var(--brand-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.empty-sub { font-size: 14px; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  background: var(--text);
  color: #d4d4d4;
  margin-top: 40px;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand {
  font-family: var(--brand-serif);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.footer-brand .accent { color: var(--accent); }
.footer-tagline { font-size: 12px; color: #888; margin-top: 4px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
}
.footer-nav a { color: #aaa; transition: color var(--t-fast); }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #666;
}

/* ═══════════════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════════════ */
.article-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.back-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.back-link:hover { color: var(--text); border-color: var(--text); }

.article-wrap {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 24px 80px;
}
.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.article-hero-placeholder {
  width: 100%;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.article-hero-placeholder .ph-cat {
  font-family: var(--brand-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .5;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-time, .article-source-name {
  font-size: 12px;
  color: var(--muted);
}
.article-divider {
  height: 1px;
  background: var(--border-strong);
  margin: 16px 0;
}

h1.article-title {
  font-family: var(--brand-serif);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.article-dek {
  font-family: var(--brand-serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 400;
  font-style: italic;
}
.article-body {
  font-family: var(--brand-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 2em 0 .8em;
  color: var(--text);
  padding-top: .2em;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.6em 0 .6em;
  color: var(--text-secondary);
  font-style: italic;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.4em 1.6em;
}
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.6em 0;
  padding: .8em 1.2em;
  background: var(--surface-tint);
  color: var(--text-secondary);
  font-style: italic;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { opacity: .8; }
.article-body strong { font-weight: 700; color: var(--text); }

.article-take {
  background: var(--take-bg);
  border-left: 4px solid var(--take-border);
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--take-text);
  margin-bottom: 28px;
  line-height: 1.6;
}
.article-take .take-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #92400e;
  font-family: var(--brand-sans);
}

.source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: #fff;
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--t-fast);
  margin-bottom: 36px;
  font-family: var(--brand-sans);
}
.source-btn:hover { background: var(--accent); }

.related-section { margin-top: 48px; }
.related-title {
  font-family: var(--brand-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.related-card:hover .related-card-title { color: var(--accent); }
.related-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  margin-bottom: 8px;
  display: block;
}
.related-card-ph {
  width: 100%;
  height: 100px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--brand-serif);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .5;
}
.related-card-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.related-card-title {
  font-family: var(--brand-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color var(--t-fast);
}

/* ═══════════════════════════════════════════════════
   BLOG PAGE (Articles)
   ═══════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.blog-card-ph {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.blog-card-title {
  font-family: var(--brand-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  transition: color var(--t-fast);
}
.blog-card-dek {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}
.read-min {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   STATIC PAGES (about / contact / privacy)
   ═══════════════════════════════════════════════════ */
.static-wrap {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px 80px;
}
.static-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px;
}
.static-card h1 {
  font-family: var(--brand-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text);
  border-bottom: 3px solid var(--text);
  padding-bottom: 16px;
}
.static-card h2 {
  font-family: var(--brand-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}
.static-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.static-card ul {
  margin: 0 0 16px 20px;
}
.static-card ul li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.static-card a { color: var(--accent); }
.static-card a:hover { text-decoration: underline; }
.static-highlight {
  background: #fff5f6;
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 3px 3px 0;
}
.static-highlight p { margin: 0; color: var(--text); font-weight: 600; font-size: 17px; }
.last-updated { font-size: 12px; color: var(--muted); margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.contact-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .5px; }
.contact-value { font-size: 15px; font-weight: 600; }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .topbar-dateline { display: none; }
  .feature-articles-grid {
    grid-template-columns: 1fr;
  }
  .feature-article-card--lead {
    grid-column: auto;
    display: flex !important;
    grid-template-columns: none;
  }
  .feature-article-card--lead .fa-hero-img,
  .feature-article-card--lead .fa-hero-ph {
    height: 220px;
  }
  .feature-article-card--lead .fa-body {
    padding: 18px 20px 20px;
  }
  .feature-article-card--lead .fa-title {
    font-size: 20px;
  }
}
@media (max-width: 680px) {
  .masthead { font-size: 22px; }
  .topbar-inner { padding: 0 16px; height: 56px; }
  .topbar-nav { display: none; }
  .topbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--surface);
    padding: 10px 16px;
    border-bottom: 2px solid var(--border);
    z-index: 199;
    gap: 2px;
  }
  .topbar-nav.open a { font-size: 14px; padding: 10px 8px; }
  .burger { display: flex; flex-direction: column; margin-left: auto; }

  .featured-grid { grid-template-columns: 1fr; }
  .filter-bar-inner { padding: 0 16px; }

  .page-wrap { padding: 16px 16px 48px; }
  .ad-leaderboard-wrap { padding: 0 16px; }

  .news-card { grid-template-columns: 88px 1fr; }
  .nc-thumb, .nc-thumb-placeholder { width: 88px; height: 66px; }

  .related-grid { grid-template-columns: 1fr; }
  .static-card { padding: 28px 20px; }
  .static-card h1 { font-size: 28px; }
}

/* Discuss-in-Telegram button (community AiiN) */
.discuss-wrap { margin: 2rem 0 1rem; text-align: center; }
.discuss-btn {
  display: inline-block; padding: .75rem 1.5rem;
  background: #229ED9; color: #fff !important; text-decoration: none;
  border-radius: 8px; font-family: var(--font-sans, Inter, system-ui);
  font-weight: 600; font-size: .95rem; transition: background .15s ease, transform .1s ease;
}
.discuss-btn:hover { background: #1b87bb; transform: translateY(-1px); }
