/* ==========================================================================
   ADVANTAGE KARNATAKA — Premium Digital News Portal
   Design System · 12-col grid · 8pt spacing · Light/Dark themes
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — red sampled from the official Advantage Karnataka logo */
  --accent: #e01f26;
  --accent-strong: #b8161c;
  --accent-soft: rgba(224, 31, 38, 0.08);
  --gold: #e8a512;

  /* Category colors */
  --c-business: #1d4ed8;
  --c-tourism: #0f766e;
  --c-industries: #4338ca;
  --c-education: #7c3aed;
  --c-lifestyle: #db2777;

  /* Surfaces — Light */
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-sunken: #eeeef0;
  --ink: #101114;
  --ink-2: #3f4249;
  --muted: #6b7078;
  --line: rgba(16, 17, 20, 0.09);
  --line-strong: rgba(16, 17, 20, 0.16);
  --overlay: rgba(10, 11, 13, 0.55);
  --card-shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 8px 24px rgba(16, 17, 20, 0.06);
  --card-shadow-hover: 0 2px 4px rgba(16, 17, 20, 0.06), 0 16px 40px rgba(16, 17, 20, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.86);
  --skeleton: linear-gradient(100deg, #ececee 40%, #f6f6f7 50%, #ececee 60%);

  /* Type */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Layout */
  --max-w: 1400px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t-med: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);
}

[data-theme="dark"] {
  --bg: #0c0d10;
  --bg-elev: #15171c;
  --bg-sunken: #08090b;
  --ink: #f2f3f5;
  --ink-2: #c3c7ce;
  --muted: #8b919b;
  --line: rgba(242, 243, 245, 0.08);
  --line-strong: rgba(242, 243, 245, 0.16);
  --overlay: rgba(0, 0, 0, 0.6);
  --accent-soft: rgba(255, 74, 100, 0.12);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 44px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(15, 16, 20, 0.82);
  --skeleton: linear-gradient(100deg, #1b1e24 40%, #22262d 50%, #1b1e24 60%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 10px 18px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

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

/* 12-column grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--card-shadow-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-elev); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn svg { width: 15px; height: 15px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--bg-sunken); border-color: var(--line); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Badges / Tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; line-height: 1.2;
}
.badge.business { background: var(--c-business); }
.badge.tourism { background: var(--c-tourism); }
.badge.industries { background: var(--c-industries); }
.badge.education { background: var(--c-education); }
.badge.lifestyle { background: var(--c-lifestyle); }
.badge-soft { background: var(--accent-soft); color: var(--accent); }

.tag {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--bg-sunken); border: 1px solid transparent;
  transition: all var(--t-fast);
}
.tag:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }

/* ---------- Meta rows ---------- */
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar { background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 20px var(--gutter); max-width: var(--max-w); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { height: 65px; width: auto; max-width: 340px; object-fit: contain; }
/* The logo artwork uses black type — keep it legible on dark surfaces */
[data-theme="dark"] .brand-logo { background: #fff; border-radius: 12px; padding: 7px 12px; box-sizing: content-box; height: 56px; }
.brand-fallback { display: none; flex-direction: column; line-height: 1.05; }
.brand.logo-missing .brand-logo { display: none; }
.brand.logo-missing .brand-fallback { display: flex; }
.brand-fallback strong {
  font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
}
.brand-fallback strong em { font-style: normal; color: var(--accent); }
.brand-fallback span {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.topbar-ad { flex-shrink: 1; min-width: 0; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 120;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-med);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(16, 17, 20, 0.08); }
.navbar-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); height: 60px;
}
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 10px 17px; border-radius: 10px; font-size: 14.5px; font-weight: 550;
  color: var(--ink-2); white-space: nowrap; position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-sunken); }
.nav-links a.active { color: var(--accent); font-weight: 650; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 17px; right: 17px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-burger { display: none; }
.brand-mini { display: none; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand-mini em { font-style: normal; color: var(--accent); }
.navbar .theme-icon-sun, .navbar .theme-icon-moon { transition: opacity var(--t-fast); }
[data-theme="dark"] .theme-icon-moon { display: none; }
:root:not([data-theme="dark"]) .theme-icon-sun { display: none; }
[data-theme="dark"] body .theme-icon-moon { display: none; }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.nav-drawer.open { visibility: visible; pointer-events: auto; }
.nav-drawer-backdrop {
  position: absolute; inset: 0; background: var(--overlay);
  opacity: 0; transition: opacity var(--t-med);
}
.nav-drawer.open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--bg-elev); padding: 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--t-med);
  display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-panel a {
  padding: 13px 16px; border-radius: 12px; font-size: 16px; font-weight: 550;
  color: var(--ink-2);
}
.nav-drawer-panel a:hover, .nav-drawer-panel a.active { background: var(--bg-sunken); color: var(--ink); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

/* ==========================================================================
   ADVERTISEMENT SLOTS (dynamic — backend managed)
   ========================================================================== */
.ad-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--bg-sunken);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  overflow: hidden; margin: 0 auto;
  max-width: 100%;
}
.ad-slot::before {
  content: "Advertisement";
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); opacity: 0.7;
}
.ad-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
}
.ad-slot.is-filled { border-style: solid; border-color: var(--line); }
.ad-slot.is-filled::before { display: none; }
/* Standard IAB sizes — aspect-ratio keeps layout intact at any viewport */
.ad-728x90  { width: 728px; aspect-ratio: 728 / 90; }
.ad-970x250 { width: 970px; aspect-ratio: 970 / 250; }
.ad-300x250 { width: 300px; aspect-ratio: 300 / 250; }
.ad-300x300 { width: 300px; aspect-ratio: 1 / 1; }
.ad-300x600 { width: 300px; aspect-ratio: 300 / 600; }
.ad-160x600 { width: 160px; aspect-ratio: 160 / 600; }
.ad-320x100 { width: 320px; aspect-ratio: 320 / 100; }
.ad-fullx160 { width: 100%; height: 160px; }
.ad-label {
  text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; opacity: 0.6;
}
.ad-wrap { margin: 0 auto; }
.ad-band { padding: 32px 0; }

/* ==========================================================================
   BREAKING TICKER
   ========================================================================== */
.ticker {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--ink); color: var(--bg);
  border-radius: 14px; margin: 24px auto 0;
}
[data-theme="dark"] .ticker { background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line); }
.ticker-label {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--accent); color: #fff; padding: 12px 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.ticker-label .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }
.ticker-track { display: flex; align-items: center; overflow: hidden; flex: 1; }
.ticker-items {
  display: flex; gap: 48px; padding: 0 24px; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-items span { font-size: 14px; font-weight: 500; opacity: 0.92; }
.ticker-items span::before { content: "●"; color: var(--accent); font-size: 8px; vertical-align: 2px; margin-right: 12px; }
[data-theme="dark"] .ticker-items span::before { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.top-ad-band { padding: 24px var(--gutter) 0; }
.hero-block { padding: 0 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--gutter); align-items: stretch; }

.hero-slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-sunken); min-height: 540px; box-shadow: var(--card-shadow);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-content {
  position: absolute; inset: auto 0 0 0; padding: 48px;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.55) 55%, transparent 100%);
  color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.hero-slide.active .hero-content > * { animation: rise 0.7s var(--ease) both; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-slide.active .hero-content > *:nth-child(5) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-title {
  font-size: clamp(26px, 3.2vw, 42px); font-weight: 600; color: #fff;
  max-width: 720px; text-wrap: balance;
}
.hero-excerpt { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 620px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 500; }
.hero-meta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,0.4); }

.hero-nav {
  position: absolute; top: 24px; right: 24px; display: flex; gap: 8px; z-index: 5;
}
.hero-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(12, 13, 16, 0.45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hero-nav button:hover { background: rgba(12, 13, 16, 0.75); transform: scale(1.06); }
.hero-nav svg { width: 18px; height: 18px; }
.hero-dots { position: absolute; bottom: 20px; right: 32px; display: flex; gap: 7px; z-index: 5; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0;
  background: rgba(255,255,255,0.45); transition: all var(--t-med);
}
.hero-dots button.active { width: 26px; background: #fff; }

/* Latest rail (right of hero) */
.latest-rail {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; box-shadow: var(--card-shadow);
}
.latest-rail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.latest-rail-head h2 { font-size: 19px; }
.latest-rail-head a { font-size: 13px; font-weight: 600; color: var(--accent); }
.latest-list { display: flex; flex-direction: column; }
.latest-item {
  display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.latest-item:last-child { border-bottom: none; }
.latest-item img {
  width: 88px; height: 66px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  transition: transform var(--t-med);
}
.latest-item:hover img { transform: scale(1.04); }
.latest-item .cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.latest-item h3 {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.4;
  margin: 3px 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t-fast);
}
.latest-item:hover h3 { color: var(--accent); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 40px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section-head .kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-head .kicker::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: currentColor; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.section-head .view-all {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: all var(--t-fast);
}
.section-head .view-all:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); gap: 10px; }
.section-head .view-all svg { width: 14px; height: 14px; }

/* category tint variants */
.section[data-tint="business"] .kicker { color: var(--c-business); }
.section[data-tint="tourism"] .kicker { color: var(--c-tourism); }
.section[data-tint="industries"] .kicker { color: var(--c-industries); }
.section[data-tint="education"] .kicker { color: var(--c-education); }
.section[data-tint="lifestyle"] .kicker { color: var(--c-lifestyle); }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--card-shadow);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-sunken); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .thumb img { transform: scale(1.06); }
.card .thumb .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 {
  font-size: 18px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t-fast);
}
.card:hover .card-body h3 { color: var(--accent); }
.card-body .excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body .meta { margin-top: auto; padding-top: 8px; }
.card-actions {
  position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 6px;
  opacity: 0; transform: translateY(-6px); transition: all var(--t-med);
}
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; transform: translateY(0); }
.card-actions button {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.92); color: #16181c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); transition: all var(--t-fast);
}
.card-actions button:hover { background: var(--accent); color: #fff; transform: scale(1.08); }
.card-actions button.bookmarked { background: var(--accent); color: #fff; }
.card-actions svg { width: 15px; height: 15px; }

/* Compact card — small image + headline only (homepage category rows) */
.card-sm .thumb { aspect-ratio: 16 / 9; }
.card-sm .thumb .badge { top: 10px; left: 10px; font-size: 9.5px; padding: 4px 10px; }
.card-sm .card-body { padding: 14px 16px 16px; gap: 8px; }
.card-sm .card-body h3 { font-family: var(--font-ui); font-size: 14.5px; font-weight: 650; line-height: 1.4; -webkit-line-clamp: 3; }
.card-sm .meta { font-size: 11.5px; padding-top: 4px; }

/* Compact category sections — tighter rhythm, menu-item titles */
.section-compact { padding: 26px 0; }
.section-compact .section-head { margin-bottom: 18px; }
.section-compact .section-head h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.section-compact .section-head h2::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: var(--accent); }
.section-compact[data-tint="business"] .section-head h2::before { background: var(--c-business); }
.section-compact[data-tint="tourism"] .section-head h2::before { background: var(--c-tourism); }
.section-compact[data-tint="industries"] .section-head h2::before { background: var(--c-industries); }
.section-compact[data-tint="education"] .section-head h2::before { background: var(--c-education); }
.section-compact[data-tint="lifestyle"] .section-head h2::before { background: var(--c-lifestyle); }
.section-compact .view-all { padding: 7px 14px; font-size: 13px; }

/* Feature card — large with overlay */
.feature-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
  background: var(--bg-sunken); box-shadow: var(--card-shadow);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.feature-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature-card:hover img.bg { transform: scale(1.05); }
.feature-card .fc-content {
  position: relative; z-index: 2; padding: 36px; width: 100%; color: #fff;
  background: linear-gradient(to top, rgba(5,6,8,0.92), rgba(5,6,8,0.4) 65%, transparent);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.feature-card h3 { font-size: clamp(22px, 2.2vw, 30px); color: #fff; text-wrap: balance; transition: color var(--t-fast); }
.feature-card:hover h3 { color: #ffd9de; }
.feature-card .excerpt { color: rgba(255,255,255,0.8); font-size: 14.5px; max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card .meta { color: rgba(255,255,255,0.72); }
.feature-card .meta .dot { background: rgba(255,255,255,0.5); }

/* Horizontal news card (lists) */
.hcard {
  display: flex; gap: 20px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--card-shadow);
  transition: transform var(--t-med), box-shadow var(--t-med);
  position: relative; align-items: stretch;
}
.hcard:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.hcard .thumb {
  width: 260px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 11; background: var(--bg-sunken); position: relative;
}
.hcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hcard:hover .thumb img { transform: scale(1.06); }
.hcard-body { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px; flex: 1; min-width: 0; }
.hcard-body h3 { font-size: 20px; line-height: 1.3; transition: color var(--t-fast); }
.hcard:hover h3 { color: var(--accent); }
.hcard-body .excerpt { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.hcard-foot .actions { display: flex; gap: 4px; }
.hcard-foot .actions button {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.hcard-foot .actions button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.hcard-foot .actions button.bookmarked { color: #fff; background: var(--accent); border-color: var(--accent); }
.hcard-foot .actions svg { width: 14px; height: 14px; }

/* Mini card (sidebar trending) */
.mini-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.mini-item:last-child { border: none; }
.mini-item .num {
  font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.3px var(--muted); flex-shrink: 0; width: 34px; padding-top: 2px;
}
.mini-item:hover .num { -webkit-text-stroke-color: var(--accent); }
.mini-item img { width: 62px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mini-item h4 {
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t-fast);
}
.mini-item:hover h4 { color: var(--accent); }
.mini-item .meta { font-size: 11.5px; margin-top: 4px; }

/* Video card */
.video-card .thumb { aspect-ratio: 16 / 9; }
.video-card .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.video-card .play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.94); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35); transition: all var(--t-med);
}
.video-card:hover .play span { transform: scale(1.12); background: var(--accent); color: #fff; }
.video-card .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card .duration {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(5,6,8,0.8); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px; letter-spacing: 0.03em;
}

/* Magazine card */
.mag-card { text-align: center; }
.mag-cover {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--bg-sunken); box-shadow: var(--card-shadow);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.mag-card:hover .mag-cover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--card-shadow-hover); }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-meta { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mag-card .btn { margin-top: 12px; }

/* Magazine feature — cover left, details + issue selector right */
.mag-feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--card-shadow);
}
.mag-feature-cover .mag-cover { box-shadow: 0 18px 44px rgba(16,17,20,0.18); }
.mag-feature-info h1 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; }
.mag-feature-info .mag-kicker { color: var(--muted); font-size: 15px; margin-top: 8px; }
.mag-feature-info .mag-desc { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-top: 14px; max-width: 560px; }
.mag-subscribe { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 15px; }
.mag-subscribe:hover { text-decoration: underline; }
.mag-select-label { display: block; margin-top: 22px; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.mag-select-wrap { position: relative; max-width: 520px; }
.mag-select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(90deg); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.mag-select {
  width: 100%; appearance: none; -webkit-appearance: none; font-family: inherit;
  padding: 13px 44px 13px 18px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px;
  outline: none; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.mag-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mag-feature-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.mag-backissues { margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.mag-backissues a { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.mag-backissues a:hover { gap: 10px; }
.mag-backissues svg { width: 14px; height: 14px; }

/* Magazine archive — filters + grid */
.mag-arch-crumbs { margin-bottom: 24px; font-size: 14px; }
.mag-arch-filters { display: grid; grid-template-columns: 220px 220px 1fr; gap: 20px; align-items: end; margin-bottom: 32px; }
.mag-arch-field label { display: block; font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.mag-arch-field .mag-select-wrap { max-width: none; }
.mag-search-wrap { position: relative; }
.mag-search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.mag-search-wrap input {
  width: 100%; padding: 13px 18px 13px 46px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: var(--bg-elev); border: 1.5px solid var(--line-strong); border-radius: 12px; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.mag-search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mag-arch-card { display: flex; flex-direction: column; text-align: center; }
.mag-arch-card .mag-cover { transition: transform var(--t-med), box-shadow var(--t-med); }
.mag-arch-card:hover .mag-cover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.mag-arch-card h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; margin-top: 18px; line-height: 1.4; transition: color var(--t-fast); }
.mag-arch-card:hover h3 { color: var(--accent); }
.mag-arch-date { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 6px; }

@media (max-width: 640px) {
  .mag-feature { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .mag-feature-cover .mag-cover { max-width: 240px; margin: 0 auto; }
  .mag-feature-actions .btn { flex: 1; }
  .mag-arch-filters { grid-template-columns: 1fr 1fr; }
  .mag-arch-search { grid-column: 1 / -1; }
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1;
  background: var(--bg-sunken); cursor: pointer;
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .gi-cap {
  position: absolute; inset: auto 0 0 0; padding: 24px 16px 12px;
  background: linear-gradient(to top, rgba(5,6,8,0.85), transparent);
  color: #fff; font-size: 13px; font-weight: 550;
  opacity: 0; transform: translateY(8px); transition: all var(--t-med);
}
.gallery-item:hover .gi-cap { opacity: 1; transform: translateY(0); }

/* Author card */
.author-card {
  display: flex; gap: 16px; align-items: center; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-card h4 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; }
.author-card p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   HOME LAYOUT (content + sticky sidebar)
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 32px; align-items: start; padding-top: 28px; }
.layout-main { min-width: 0; }

/* Article page uses the shared 2-col layout so its sidebar top-aligns like other pages */
.article-page .article-head { max-width: none; margin: 0; padding: 0 0 8px; }
.article-page .article-figure { max-width: none; margin: 24px 0 0; padding: 0; }
.article-page .article-figure img { aspect-ratio: 16 / 9; }
.article-page .prose { max-width: none; margin-top: 32px; }
.article-page .article-tags,
.article-page .article-nav { max-width: none; }
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 24px; }
.side-widget {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--card-shadow);
}
.side-widget > h3 {
  font-size: 17px; padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
}
.side-widget > h3::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--accent); }
.side-mag { text-align: center; }
.side-mag .mag-cover { max-width: 240px; margin: 0 auto; }
.side-mag .btn { margin-top: 14px; width: 100%; }
.side-mag .side-mag-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-ads { display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Newsletter card */
.newsletter-card {
  background: linear-gradient(140deg, #16181d, #2a1218);
  color: #fff; border-radius: var(--radius); padding: 26px; text-align: left;
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}
.newsletter-card::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,0.5), transparent 70%);
}
.newsletter-card h3 { color: #fff; font-size: 20px; margin-bottom: 6px; position: relative; z-index: 1; }
.newsletter-card p { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-bottom: 16px; position: relative; z-index: 1; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.newsletter-form input {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color var(--t-fast), background var(--t-fast);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); }
.newsletter-form .btn { width: 100%; }
.newsletter-note { font-size: 11.5px; color: rgba(255,255,255,0.45); margin-top: 10px; }
.newsletter-success { display: none; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: #6ee7a0; padding: 10px 0; }
.newsletter-card.subscribed .newsletter-form, .newsletter-card.subscribed p { display: none; }
.newsletter-card.subscribed .newsletter-success { display: flex; }

/* Wide newsletter band */
.newsletter-band { border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.newsletter-band h2 { font-size: clamp(26px, 3vw, 38px); }
.newsletter-band .newsletter-form { flex-direction: row; }
.newsletter-band .newsletter-form .btn { width: auto; flex-shrink: 0; }

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */
/* Compact page header — replaces the full hero banner on section pages */
.page-head { max-width: var(--max-w); margin: 0 auto; padding: 28px var(--gutter) 0; }
.page-head h1 {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; margin-top: 12px;
}
.page-head h1::before { content: ""; width: 6px; height: 0.9em; border-radius: 4px; background: var(--accent); flex-shrink: 0; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 680px; font-size: 15px; line-height: 1.6; }
body[data-category="business"] .page-head h1::before { background: var(--c-business); }
body[data-category="tourism"] .page-head h1::before { background: var(--c-tourism); }
body[data-category="industries"] .page-head h1::before { background: var(--c-industries); }
body[data-category="education"] .page-head h1::before { background: var(--c-education); }
body[data-category="lifestyle"] .page-head h1::before { background: var(--c-lifestyle); }

.page-hero {
  position: relative; padding: 72px 0; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #16181d, #33161c);
}
.page-hero .ph-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.38; }
.page-hero .ph-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,9,11,0.85), rgba(8,9,11,0.35)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); color: #fff; max-width: 720px; text-wrap: balance; }
.page-hero p { margin-top: 14px; font-size: 16.5px; color: rgba(255,255,255,0.78); max-width: 620px; line-height: 1.65; }
.page-hero .breadcrumbs { margin-bottom: 18px; }

/* category accents on page hero */
body[data-category="business"] .page-hero { background: linear-gradient(120deg, #0d1526, #16181d); }
body[data-category="tourism"] .page-hero { background: linear-gradient(120deg, #082220, #16181d); }
body[data-category="industries"] .page-hero { background: linear-gradient(120deg, #131233, #16181d); }
body[data-category="education"] .page-hero { background: linear-gradient(120deg, #1d1033, #16181d); }
body[data-category="lifestyle"] .page-hero { background: linear-gradient(120deg, #2b0f1e, #16181d); }

.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 32px; align-items: start; padding: 40px 0 64px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-pills button {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  transition: all var(--t-fast);
}
.filter-pills button:hover { border-color: var(--ink); color: var(--ink); }
.filter-pills button.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.article-list { display: flex; flex-direction: column; gap: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2);
  font-size: 14px; font-weight: 600; transition: all var(--t-fast);
}
.pagination button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.breadcrumbs a { color: inherit; transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.5; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumbs a:hover { color: #fff; }

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */
.article-head { max-width: 860px; margin: 0 auto; padding: 48px var(--gutter) 8px; }
.article-head .breadcrumbs { margin-bottom: 22px; }
.article-head h1 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -0.02em; text-wrap: balance; margin: 16px 0 18px; }
.article-head .standfirst { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); font-weight: 400; max-width: 760px; }
.article-byline {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-byline .who { display: flex; align-items: center; gap: 13px; }
.article-byline .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.article-byline .who b { font-size: 14.5px; display: block; }
.article-byline .who span { font-size: 12.5px; color: var(--muted); }
.article-tools { display: flex; align-items: center; gap: 6px; }
.article-tools button, .article-tools a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 600; transition: all var(--t-fast);
}
.article-tools button:hover, .article-tools a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.article-tools button.bookmarked { background: var(--accent); border-color: var(--accent); color: #fff; }
.article-tools svg { width: 15px; height: 15px; }

.article-figure { max-width: 1080px; margin: 36px auto 0; padding: 0 var(--gutter); }
.article-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/8.5; object-fit: cover; box-shadow: var(--card-shadow); }
.article-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; padding-left: 4px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 64px; align-items: start; }
.prose { max-width: 720px; font-size: 17.5px; line-height: 1.78; color: var(--ink-2); }
.prose > * + * { margin-top: 1.4em; }
.prose p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 4.4em; font-weight: 600; float: left;
  line-height: 0.82; padding: 6px 12px 0 0; color: var(--accent);
}
.prose h2 { font-size: 28px; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--accent); font-weight: 550; border-bottom: 1px solid rgba(200,16,46,0.3); transition: border-color var(--t-fast); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose blockquote.pullquote {
  margin: 2.2em 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--accent);
  font-family: var(--font-display); font-size: 25px; line-height: 1.4; color: var(--ink); font-weight: 500;
}
.prose blockquote.pullquote cite { display: block; font-family: var(--font-ui); font-size: 13.5px; font-style: normal; color: var(--muted); margin-top: 12px; font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.prose .img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose table th { background: var(--bg-sunken); font-weight: 700; text-align: left; padding: 12px 16px; color: var(--ink); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.prose table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.prose table tr:hover td { background: var(--bg-sunken); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { padding-left: 26px; position: relative; margin-top: 0.7em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.prose .inline-ad { margin: 2.4em auto; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; max-width: 720px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; max-width: 720px; }
.article-nav a {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-elev); transition: all var(--t-med);
}
.article-nav a:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.article-nav a span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.article-nav a.next { text-align: right; }
.article-nav a.next span { justify-content: flex-end; }
.article-nav a b { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.article-nav a:hover b { color: var(--accent); }
.article-nav svg { width: 13px; height: 13px; }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 250; width: 0; transition: width 0.1s linear; }

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
  position: fixed; inset: 0; z-index: 220; background: var(--bg);
  display: flex; flex-direction: column; visibility: hidden; opacity: 0;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.search-overlay.open { visibility: visible; opacity: 1; }
.search-overlay .so-inner { max-width: 880px; width: 100%; margin: 0 auto; padding: 40px var(--gutter); overflow-y: auto; flex: 1; }
.so-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.so-input-wrap { flex: 1; position: relative; }
.so-input-wrap svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.so-input {
  width: 100%; padding: 18px 24px 18px 56px; font-size: 19px; font-family: var(--font-ui);
  border-radius: 18px; border: 1.5px solid var(--line-strong); background: var(--bg-elev); color: var(--ink);
  outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.so-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.so-close {
  width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.so-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
.so-close svg { width: 20px; height: 20px; }
.so-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.so-section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.so-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.so-results { display: flex; flex-direction: column; gap: 12px; }
.so-result {
  display: flex; gap: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-elev); align-items: center; transition: all var(--t-fast);
  animation: rise 0.4s var(--ease) both;
}
.so-result:hover { border-color: var(--accent); transform: translateX(4px); }
.so-result img { width: 92px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.so-result h4 { font-family: var(--font-ui); font-size: 15px; font-weight: 650; line-height: 1.35; }
.so-result h4 mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.so-result .meta { margin-top: 4px; }
.so-empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #101114; color: #b9bec7; margin-top: 48px; }
[data-theme="dark"] .footer { background: var(--bg-sunken); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px var(--gutter) 48px; max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; padding: 56px var(--gutter) 36px; max-width: var(--max-w); margin: 0 auto; }
.footer-menu {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px;
  padding: 26px var(--gutter); max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.footer-menu a {
  font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: #d4d8df;
  padding: 4px 2px; position: relative; transition: color var(--t-fast);
}
.footer-menu a:hover { color: #fff; }
.footer-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right var(--t-fast);
}
.footer-menu a:hover::after { right: 0; }
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px var(--gutter) 28px; }
  .footer-menu { gap: 8px 28px; }
}
.footer h5 { font-family: var(--font-ui); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; box-sizing: content-box; }
.footer-brand .brand-fallback { display: flex; }
.footer-brand .brand-fallback strong { color: #fff; font-size: 24px; }
.footer-brand.has-logo .brand-fallback { display: none; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 320px; color: #8b919b; }
.footer-links a { display: block; padding: 5px 0; font-size: 14px; color: #b9bec7; transition: color var(--t-fast), transform var(--t-fast); }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: var(--max-w); margin: 0 auto; padding: 20px var(--gutter); font-size: 13px; color: #8b919b;
}
.footer-bottom-inner a { color: inherit; }
.footer-bottom-inner a:hover { color: #fff; }
.footer-bottom-inner nav { display: flex; gap: 20px; }

/* Back to top */
.to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 48px; height: 48px; border-radius: 16px; border: none;
  background: var(--ink); color: var(--bg); box-shadow: var(--card-shadow-hover);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: all var(--t-med);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 240; background: rgba(5,6,8,0.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  visibility: hidden; opacity: 0; transition: all var(--t-med);
}
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 14px; object-fit: contain; }
.lightbox .lb-cap { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-size: 14px; }
.lightbox .so-close { position: absolute; top: 24px; right: 24px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.prev { left: 24px; } .lightbox .lb-nav.next { right: 24px; }
.lightbox .lb-nav button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; display: flex; align-items: center; justify-content: center; transition: all var(--t-fast); }
.lightbox .lb-nav button:hover { background: var(--accent); border-color: var(--accent); }
.lightbox .lb-nav svg { width: 20px; height: 20px; }

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 240; background: rgba(5,6,8,0.94);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  visibility: hidden; opacity: 0; transition: all var(--t-med);
}
.video-modal.open { visibility: visible; opacity: 1; }
.video-modal .vm-frame {
  width: min(1000px, 94vw); aspect-ratio: 16/9; background: #000; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #8b919b; border: 1px solid rgba(255,255,255,0.1);
}
.video-modal .vm-frame svg { width: 60px; height: 60px; color: var(--accent); }
.video-modal .so-close { position: absolute; top: 24px; right: 24px; }

/* ==========================================================================
   UTILITIES / ANIMATION
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.split-1-4 { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gutter); }
.split-1-4 .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.skeleton { border-radius: var(--radius); background: var(--skeleton); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
img.lazy-img { opacity: 0; transition: opacity 0.5s ease; }
img.lazy-img.loaded { opacity: 1; }
.img-fallback { background: linear-gradient(135deg, var(--bg-sunken), var(--line)); display: flex; align-items: center; justify-content: center; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stat-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.stat-card b { font-family: var(--font-display); font-size: 34px; display: block; color: var(--accent); }
.stat-card span { font-size: 13px; color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) and (min-width: 769px) {
  /* grid-4 drops to 3 columns here — keep compact category rows even */
  .section-compact .grid-4 > :nth-child(4) { display: none; }
}
/* Tighten the primary nav on mid-width screens so all items fit */
@media (max-width: 1360px) and (min-width: 1025px) {
  .nav-links a { padding: 9px 11px; font-size: 13.5px; }
  .nav-actions { gap: 2px; }
}
@media (max-width: 1280px) {
  .hero-grid { grid-template-columns: 1fr 340px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .topbar-inner { flex-direction: column; gap: 16px; padding: 18px var(--gutter); }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .brand-mini { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 440px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .side-ads { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cat-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .sidebar { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .split-1-4 { grid-template-columns: 1fr; }
  .newsletter-band { grid-template-columns: 1fr; padding: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .hero-slider { min-height: 400px; }
  .hero-slide .hero-content { padding: 26px 22px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hcard { flex-direction: column; }
  .hcard .thumb { width: 100%; }
  .split-1-4 .support-grid { grid-template-columns: 1fr 1fr; }
  .sidebar, .article-layout .sidebar { grid-template-columns: 1fr; }
  .feature-card { min-height: 380px; }
  .section { padding: 30px 0; }
  .brand-logo { height: 48px; }
  .ticker-label { padding: 10px 14px; font-size: 11px; }
  .ad-fullx160 { height: 110px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .split-1-4 .support-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 44px var(--gutter) 32px; }
  .article-byline { flex-direction: column; align-items: flex-start; }
  .article-nav { grid-template-columns: 1fr; }
  .newsletter-band { padding: 28px 22px; }
  .newsletter-band .newsletter-form { flex-direction: column; }
  .hero-nav { top: 14px; right: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
