/* Colors loaded from generated colors.css — variables defined there */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: calc(16px * var(--font-scale, 1)); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body, 'Inter', sans-serif);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary, #0066cc) 10%, #fff) 0, transparent 28%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--secondary, #6610f2) 12%, #fff) 0, transparent 24%),
    linear-gradient(180deg, #fcfaf6 0%, #f7f4ee 100%);
  color: #1f2937;
  line-height: 1.7;
}

a { color: var(--primary, #0066cc); text-decoration: none; transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
a:hover { text-decoration: underline; }

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

/* ── Layout ── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.container { padding-top: 40px; padding-bottom: 60px; flex: 1; }

/* ── Header ── */
.site-header {
  background: rgba(255, 252, 246, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.site-logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 20%, transparent);
}
.site-logo .logo-text {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: inherit;
}
.site-nav {
  display: flex;
  flex: 1 1 680px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  min-width: 0;
}
.site-nav a {
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.site-nav a:hover {
  color: #0f172a;
  background: #fff;
  border-color: color-mix(in srgb, var(--primary) 30%, #cbd5e1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}
.nav-toggle:hover {
  border-color: var(--primary, #0066cc);
  color: var(--primary, #0066cc);
}

/* ── Ticker: marquee text OR slider cards ── */
.ticker-wrap {
  margin: 10px auto 40px;
  max-width: 1180px;
  padding: 0 20px;
}
.ticker-wrap--marquee {
  overflow: hidden;
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 30%, #fff), color-mix(in srgb, var(--secondary) 24%, #fff));
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.ticker-chip--text { cursor: pointer; }
.ticker-chip--text:hover { text-decoration: none; filter: brightness(1.04); }
.ticker-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker-text__dot {
  opacity: 0.5;
  flex-shrink: 0;
}

.ticker-wrap--slider {
  padding-top: 12px;
  padding-bottom: 12px;
}
.ticker-slider-track {
  position: relative;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.ticker-slide {
  display: none;
}
.ticker-slide.is-active {
  display: block;
}
.ticker-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ticker-wrap--slider .ticker-cards-grid {
  grid-template-columns: minmax(0, 1fr);
}
body .ticker-wrap--slider.js-ticker-slider .ticker-slide .ticker-cards-grid {
  grid-template-columns: minmax(0, 1fr);
}
.ticker-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.ticker-card-link {
  display: flex;
  align-items: stretch;
  min-height: 96px;
  color: inherit;
  text-decoration: none;
}
.ticker-wrap--slider .ticker-card-link {
  gap: 16px;
  min-height: 150px;
  padding: 12px;
}
.ticker-card-link:hover {
  text-decoration: none;
}
.ticker-card-media {
  width: 72px;
  flex: 0 0 72px;
  min-height: 72px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 72%, #fff), color-mix(in srgb, var(--secondary) 72%, #fff));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticker-wrap--slider .ticker-card-media {
  width: clamp(140px, 28vw, 260px);
  flex-basis: clamp(140px, 28vw, 260px);
  min-height: 132px;
  border-radius: 16px;
  overflow: hidden;
}
.ticker-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ticker-card-ph {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}
.ticker-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.ticker-wrap--slider .ticker-card-body {
  padding: 10px 8px;
}
.ticker-card-body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.32;
  color: #111827;
}
.ticker-wrap--slider .ticker-card-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.12;
}
.ticker-card-body p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}
.ticker-wrap--slider .ticker-card-body p {
  font-size: 0.92rem;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
}

/* ── Hero ── */
.hero {
  padding: 34px 20px 18px;
}
.hero > div,
.hero-slide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary, #0066cc) 78%, #0f172a), color-mix(in srgb, var(--secondary, #6610f2) 72%, #1e1b4b));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
}
.hero > div::after,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(6px);
}
.hero--image > div::before,
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.52)),
    var(--hero-bg, none) center/cover no-repeat;
  opacity: 0.48;
  pointer-events: none;
}
.hero--slider .hero-slide {
  display: none;
}
.hero--slider .hero-slide.is-active {
  display: block;
}

/* Prefixed heroes (cp-hero, tr-hero, nw-hero, …) use .js-hero-slider without .hero on the section.
 * Default `.hero-slide` / `::before` / `::after` still apply globally and stack every slide visible.
 * Scoped reset: one slide at a time + no duplicate gradient overlay on themed cards. */
.js-hero-slider:not(.hero) .hero-slider-track {
  position: relative;
  box-sizing: border-box;
  padding: clamp(12px, 2.2vw, 24px);
}
.js-hero-slider:not(.hero) .hero-slide:not(.is-active) {
  display: none !important;
}
.js-hero-slider:not(.hero) .hero-slide {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}
.js-hero-slider:not(.hero) .hero-slide::before,
.js-hero-slider:not(.hero) .hero-slide::after {
  content: none !important;
  display: none !important;
}
.hero-slide-overlay {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1,
.hero-slide h2 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-family: var(--font-display);
}
.hero-slide h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide h2 a {
  color: #fff;
  text-decoration: none;
}
.hero p {
  position: relative;
  font-size: 1.06rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 0 26px;
}
.hero-slide p {
  position: relative;
  margin: 0 0 20px;
  max-width: 700px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--primary, #0066cc), color-mix(in srgb, var(--secondary, #6610f2) 55%, var(--primary, #0066cc)));
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }

/* ── Article grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 40px;
}
.article-card {
  background: rgba(255,255,255,0.78);
  border-radius: calc(var(--radius, 8px) + 10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14); }
.article-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 85%, #fff), color-mix(in srgb, var(--secondary) 80%, #fff));
}
.article-card-body { padding: 22px 22px 20px; }
.article-card-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}
.article-card-category::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 12%, transparent);
}
.article-card h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.4; }
.article-card h3 a { color: #111827; }
.article-card-excerpt { font-size: 0.92rem; color: #667085; margin-bottom: 14px; }
.article-card-meta { font-size: 0.8rem; color: #98a2b3; }

/* Unified listing card format with image as background + text overlay */
.article-card--with-image {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  border: none;
}
.article-card--with-image .article-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.article-card--with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.14) 0%, rgba(15, 23, 42, 0.86) 75%);
  pointer-events: none;
}
.article-card--with-image .article-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 18px 16px;
}
.article-card--with-image .article-card-category,
.article-card--with-image .article-card-category::before {
  color: rgba(226, 232, 240, 0.95);
}
.article-card--with-image h3 a,
.article-card--with-image .article-card-excerpt,
.article-card--with-image .article-card-meta {
  color: #fff;
}
.article-card--with-image .article-card-excerpt {
  opacity: 0.95;
  margin-bottom: 10px;
}
.article-card--with-image .article-card-meta {
  opacity: 0.82;
}

/* No-image cards stay simple and readable */
.article-card--no-image .article-card-body {
  min-height: 170px;
}

/* ── Article page ── */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
@media (max-width: 768px) { .article-layout { grid-template-columns: 1fr; } }

.article-header { margin-bottom: 32px; }
.article-header .breadcrumb { font-size: 0.8rem; color: #888; margin-bottom: 12px; }
.article-header .breadcrumb a { color: var(--primary); }
.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: var(--font-display);
  color: inherit;
}
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: #666; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}

/* Lead + inline article photos (cropped to site-wide box at build time) */
.article-inline-figure { margin: 0 0 24px; }
.article-inline-figure--lead { margin-top: 0; }
.article-inline-figure__crop {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius, 8px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.12));
  max-height: min(70vh, 560px);
}
.article-inline-figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-content .article-inline-figure { margin: 28px 0; }

.article-content {
  font-size: 1rem;
  line-height: 1.8;
}
/* Inherit text color so dark themes (body { color: … }) are not overridden by light-theme grays */
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: inherit;
}
.article-content h2 { font-size: 1.5rem; margin-top: 36px; margin-bottom: 12px; font-weight: 700; }
.article-content h3 { font-size: 1.2rem; margin-top: 28px; font-weight: 650; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--primary); border-bottom: 1px solid transparent; }
.article-content a:hover { border-bottom-color: var(--primary); }
.article-content strong { color: inherit; font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding: 12px 20px;
  background: #f8f9fa; margin: 24px 0; border-radius: 0 8px 8px 0;
}
.article-content .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: calc(var(--radius, 8px) + 4px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.94rem;
}
.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
  vertical-align: top;
}
.article-content th:last-child,
.article-content td:last-child { border-right: 0; }
.article-content tbody tr:last-child td { border-bottom: 0; }
.article-content th {
  background: color-mix(in srgb, var(--primary, #2563eb) 10%, #fff);
  color: #111827;
  font-weight: 800;
}
.article-content tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.72);
}
.article-content--html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 8px);
}
.article-content--html figure { margin: 1.25em 0; }
.article-content--html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}
.article-content--html th,
.article-content--html td {
  border: 1px solid #dee2e6;
  padding: 8px 12px;
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: rgba(255,255,255,0.84);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.sidebar-widget h4 { margin: 0 0 14px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: #0f172a; }

/* ── Counters ── */
.counters-section {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 82%, #0f172a), color-mix(in srgb, var(--secondary) 72%, #111827));
  color: #fff;
  padding: 56px 20px;
  margin: 44px 0;
}
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1180px; margin: 0 auto; text-align: center; }
@media (max-width: 768px) { .counters-grid { grid-template-columns: repeat(2, 1fr); } }
.counter-item .counter-value { font-size: 2.5rem; font-weight: 800; display: block; }
.counter-item .counter-label { font-size: 0.875rem; opacity: 1; font-weight: 650; }

/* ── Testimonials ── */
.testimonials-section { padding: 70px 20px; background: transparent; }
.testimonials-section h2 { text-align: center; margin-bottom: 36px; font-family: var(--font-display); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.testimonial-card {
  background: rgba(255,255,255,0.82);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.testimonial-stars { color: #f5a623; margin-bottom: 10px; }
.testimonial-text { font-size: 0.9rem; color: #555; line-height: 1.6; margin-bottom: 12px; }
.testimonial-author { font-size: 0.8rem; font-weight: 600; color: #333; }

/* ── FAQ ── */
.faq-section { padding: 70px 20px; max-width: 900px; margin: 0 auto; }
.faq-section h2 { margin-bottom: 28px; font-family: var(--font-display); }
.faq-item {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
}
.faq-question {
  font-weight: 600; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: #222;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary); }
.faq-answer { padding-top: 10px; color: #555; font-size: 0.95rem; }

/* ── Trust Badges ── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 20px 8px;
  background: transparent;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 0.9rem;
  color: #344054;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.trust-badge .badge-icon { color: var(--primary); font-size: 1.1rem; }

/* ── Poll ── */
.poll-widget {
  background: rgba(255,255,255,0.88);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  max-width: 560px;
  margin: 54px auto;
}
.poll-question { font-weight: 600; margin-bottom: 16px; font-size: 1rem; }
.poll-option { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; color: #344054; }
.poll-option input { accent-color: var(--primary); }

/* ── Comments ── */
.comments-section { margin-top: 48px; }
.comments-section h3 { font-size: 1.3rem; margin-bottom: 24px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; }
.comment-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e9ecef; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-body {}
.comment-author { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.comment-text { font-size: 0.9rem; color: #555; line-height: 1.6; }
.comment-date { font-size: 0.75rem; color: #999; margin-top: 4px; }

/* ── Categories ── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.category-card {
  background: rgba(255,255,255,0.82);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12); }
.category-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--secondary) 65%, var(--primary)));
  box-shadow: 0 16px 28px color-mix(in srgb, var(--primary) 22%, transparent);
}
.category-card h3 { margin: 0 0 10px; font-size: 1.06rem; color: #111827; }
.category-card p { font-size: 0.86rem; color: #667085; margin: 0; }
.category-card-main { min-width: 0; }
.categories-grid--titles .category-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
}
.categories-grid--titles .category-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 11px;
  font-size: 0.84rem;
}
.categories-grid--titles .category-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.38;
}
.category-card--compact p { display: none; }

/* ── Author card ── */
.author-profile { display: flex; gap: 24px; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 36px; }
.author-profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; flex-shrink: 0; }
.author-profile-info h2 { margin: 0 0 6px; }
.author-profile-role { color: var(--primary); font-weight: 600; margin-bottom: 10px; font-size: 0.9rem; }
.author-profile-bio { color: #555; font-size: 0.9rem; }

/* ── Search ── */
.search-box { display: flex; gap: 8px; margin-bottom: 32px; }
.search-input { flex: 1; padding: 12px 16px; border: 2px solid #e9ecef; border-radius: var(--radius); font-size: 1rem; }
.search-input:focus { outline: none; border-color: var(--primary); }
.search-btn { padding: 12px 24px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 600; }

/* ── Pagination ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  color: #444;
  background: rgba(255,255,255,0.82);
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-gap { border: none !important; color: #888; padding: 8px 6px !important; }
.pagination-wrap .archive-lead { color: #666; font-size: 0.95rem; margin-bottom: 12px; }

.section-lead { color: #667085; font-size: 0.98rem; margin: 2px 0 20px; max-width: 760px; }
.topic-section { margin-top: 48px; }
.topic-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.topic-section-head h2 { margin: 0; font-size: 1.45rem; color: #111827; }
.topic-section-more { font-size: 0.92rem; color: var(--primary); font-weight: 700; }
.articles-grid--section { margin-top: 12px; }
.generic-section { margin-top: 44px; }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.author-mini-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 16px;
}
.author-mini-card .author-avatar-img,
.author-mini-card .author-avatar { margin-bottom: 10px; }
.author-mini-card h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.4; }
.author-mini-card p { margin: 0; color: #667085; font-size: 0.88rem; }
.compact-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.compact-link-card {
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 14px 16px;
}
.compact-link-card strong { color: #0f172a; line-height: 1.4; }
.compact-link-card span { color: #667085; font-size: 0.86rem; line-height: 1.55; }
.insight-box,
.subscribe-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, #fff), color-mix(in srgb, var(--secondary) 8%, #fff));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 18px 20px;
}
.insight-box h2,
.subscribe-cta h2 { margin: 0 0 8px; }
.insight-box p,
.subscribe-cta p { margin: 0; color: #475569; }
.subscribe-cta .btn-primary { margin-top: 12px; }
.subscribe-fake-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 640px;
}
.subscribe-fake-form .pbn-ff-stack {
  margin: 0;
}
.subscribe-fake-form .pbn-ff-submit {
  margin-top: 0;
}
.subscribe-fake-form .fake-form-success {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.comparison-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.comparison-list li {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  padding: 10px 12px;
}
.comparison-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-right: 8px;
}
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Footer ── */
.site-footer {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(135deg, #0f172a, #111827 60%, color-mix(in srgb, var(--primary) 16%, #0f172a));
  color: #94a3b8;
  padding: 54px 20px 22px;
  margin-top: 72px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; max-width: 1180px; margin: 0 auto 32px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col a { display: block; color: #94a3b8; margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-social-list { display: flex; flex-direction: column; gap: 8px; }
.footer-social-link { display: inline-flex !important; align-items: center; gap: 10px; margin-bottom: 0; width: fit-content; }
.footer-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  flex-shrink: 0;
}
.footer-social-icon svg { width: 14px; height: 14px; }
.footer-social-icon svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social-list--filled .footer-social-icon {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}
.footer-social-list--duotone .footer-social-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 34%, transparent), color-mix(in srgb, var(--primary) 26%, transparent));
  border-color: rgba(148, 163, 184, 0.2);
}
.footer-social-list--badge .footer-social-icon {
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, 0.16); padding-top: 20px; text-align: center; font-size: 0.84rem; max-width: 1180px; margin: 0 auto; }

/* ── Schema.org: visually hidden ── */
.schema-hidden { display: none; }

/* ── 404 ── */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h1 { font-size: 6rem; color: var(--primary); margin-bottom: 0; }
.page-404 p { font-size: 1.2rem; color: #666; }

/* ── Fake comment / contact forms (display only) — pill inputs, card ── */
.comment-fake-form,
.contact-fake-form {
  margin-top: 28px;
  padding: 28px 28px 26px;
  max-width: 720px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.comment-fake-form {
  max-width: 100%;
}
.comment-form-title,
.contact-form-heading {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}
.pbn-fake-form__contact-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 16px;
}
.pbn-fake-form__comment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-bottom: 14px;
}
.pbn-fake-form__comment-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.pbn-ff-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
}
.pbn-ff-inline--grow {
  flex: 2 1 220px;
}
.pbn-ff-lbl {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.pbn-ff-pill {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: #111;
  box-sizing: border-box;
}
.pbn-ff-pill::placeholder {
  color: #9ca3af;
}
.pbn-ff-select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.pbn-fake-form__contact-msg {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pbn-fake-form__contact-msg .pbn-ff-submit {
  align-self: flex-end;
}
.pbn-ff-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.pbn-ff-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 88px;
  box-sizing: border-box;
  background: #fff;
}
.pbn-ff-textarea::placeholder {
  color: #9ca3af;
}
.pbn-ff-textarea--msg {
  min-height: 120px;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.85rem;
}
.pbn-ff-submit {
  margin-top: 4px;
  cursor: pointer;
  border: none;
  padding: 12px 26px;
  border-radius: 9999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--primary, #3182ce);
  box-shadow: 0 4px 14px rgba(49, 130, 206, 0.35);
  transition: filter 0.15s, transform 0.1s;
}
.pbn-ff-submit:hover {
  filter: brightness(1.06);
}
.fake-form-success {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: 12px;
  font-size: 0.95rem;
}
.contact-office-block {
  margin-top: 36px;
  padding: 20px 24px;
  background: #f8f9fa;
  border-radius: var(--radius, 8px);
  border: 1px solid #e9ecef;
}
.contact-office-block h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.contact-line {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Search icon (SVG, variant per site) ── */
.icon-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: inherit;
}
.icon-search__svg { display: block; }
.nav-search-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius, 8px);
}
.nav-search-link:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

/* ── Article grid variety ── */
.articles-grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.articles-grid--mixed { grid-auto-flow: dense; }
.articles-grid--masonry { grid-auto-flow: dense; }
@media (min-width: 960px) {
  .articles-grid--masonry {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .articles-grid--masonry .article-card {
    grid-column: span 4;
  }
  .articles-grid--masonry .article-card--wide {
    grid-column: span 6;
  }
  .articles-grid--masonry .article-card--tall .article-card-img {
    height: 280px;
  }
}
@media (min-width: 960px) {
  .articles-grid--mixed {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .articles-grid--mixed .article-card {
    grid-column: span 4;
  }
  .articles-grid--mixed .article-card--wide {
    grid-column: span 8;
  }
}
@media (max-width: 959px) {
  .articles-grid--mixed .article-card--wide {
    grid-column: auto;
  }
  .articles-grid--masonry .article-card--wide {
    grid-column: auto;
  }
}
.articles-grid--rows {
  grid-template-columns: 1fr;
  gap: 18px;
}
.articles-grid--rows .article-card {
  min-height: 390px;
}
.articles-grid--rows .article-card-img {
  height: 100%;
  min-height: 390px;
}
.articles-grid--rows .article-card-body {
  max-width: 78%;
}
.articles-grid--magazine { grid-auto-flow: dense; }
.articles-grid--cards .article-card--with-image,
.articles-grid--mixed .article-card--with-image,
.articles-grid--masonry .article-card--with-image {
  min-height: 350px;
}
@media (min-width: 960px) {
  .articles-grid--magazine {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .articles-grid--magazine .article-card {
    grid-column: span 4;
  }
  .articles-grid--magazine .article-card--mag-feature {
    grid-column: span 8;
  }
  .articles-grid--magazine .article-card--mag-feature .article-card-img {
    height: 100%;
  }
  .articles-grid--magazine .article-card--mag-feature {
    min-height: 460px;
  }
  .articles-grid--magazine .article-card--mag-compact {
    min-height: 300px;
  }
}
.article-card--mag-compact .article-card-body { padding: 16px 16px 14px; }
.article-card--sharp { border-radius: 2px; }
.article-card--sharp .article-card-img { border-radius: 2px 2px 0 0; }
.article-card--soft {
  border-radius: calc(var(--radius, 8px) + 8px);
}
.article-card--soft .article-card-img {
  border-radius: calc(var(--radius, 8px) + 6px) calc(var(--radius, 8px) + 6px) 0 0;
}
.article-card--tall .article-card-img { height: 220px; }
.article-card--tall.article-card--with-image { min-height: 420px; }
.article-card--tall.article-card--with-image .article-card-img { height: 100%; }
.article-card--z1 .article-card-img { border-radius: 14px 14px 0 0; }
.article-card--z2 { border-left: 4px solid var(--primary); }
.article-card--z4 {
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--primary) 18%, #ccc);
}
.article-card--z6 .article-card-category { letter-spacing: 0.14em; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ticker-wrap { padding: 0 14px; }
  .ticker-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ticker-card-media {
    width: 64px;
    flex-basis: 64px;
    min-height: 64px;
  }
  .ticker-wrap--slider .ticker-slider-track {
    padding: 10px;
    border-radius: 20px;
  }
  .ticker-wrap--slider .ticker-card-link {
    flex-direction: column;
    min-height: 0;
  }
  .ticker-wrap--slider .ticker-card-media {
    width: 100%;
    flex-basis: auto;
    min-height: 180px;
  }
  .hero > div { padding: 42px 24px; border-radius: 24px; }
  .hero-slide { padding: 42px 24px; border-radius: 24px; }
  .hero h1 { font-size: 2rem; }
  .hero-slide h2 { font-size: 1.5rem; }
  .header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid--rows .article-card {
    min-height: 330px;
  }
  .articles-grid--rows .article-card-body {
    max-width: 100%;
  }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-fake-form {
    grid-template-columns: 1fr;
  }
  .subscribe-fake-form .pbn-ff-submit {
    width: 100%;
  }
}

/* ── Curated article grid modes (selected set only) ── */
[data-grid-mode] .article-card.s,
[data-grid-mode] .article-card--large { min-height: 280px; }
[data-grid-mode] .article-card.l,
[data-grid-mode] .article-card--lead { min-height: 430px; }
[data-grid-mode] .article-card--force-no-image .article-card-img { display: none !important; }
[data-grid-mode] .article-card--hide-excerpt .article-card-excerpt { display: none; }

/* Reset overlay defaults for all new modes: text below image, white card */
[data-grid-mode="image-top-classic"] .article-card--with-image,
[data-grid-mode="thumb-left-square"] .article-card--with-image,
[data-grid-mode="thumb-right-square"] .article-card--with-image,
[data-grid-mode="circle-avatar-row"] .article-card--with-image,
[data-grid-mode="polaroid-tilt"] .article-card--with-image,
[data-grid-mode="text-wrap-float"] .article-card--with-image,
[data-grid-mode="masonry-mixed"] .article-card--with-image,
[data-grid-mode="numbered-rank-list"] .article-card--with-image,
[data-grid-mode="timeline-alternating"] .article-card--with-image,
[data-grid-mode="hexagon-thumb"] .article-card--with-image,
[data-grid-mode="diamond-thumb"] .article-card--with-image,
[data-grid-mode="editorial-dropcap"] .article-card--with-image,
[data-grid-mode="card-stack-3d"] .article-card--with-image,
[data-grid-mode="slim-circle-list"] .article-card--with-image,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image,
[data-grid-mode="triangle-thumb"] .article-card--with-image,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image {
  min-height: 0;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
[data-grid-mode="image-top-classic"] .article-card--with-image::after,
[data-grid-mode="thumb-left-square"] .article-card--with-image::after,
[data-grid-mode="thumb-right-square"] .article-card--with-image::after,
[data-grid-mode="circle-avatar-row"] .article-card--with-image::after,
[data-grid-mode="polaroid-tilt"] .article-card--with-image::after,
[data-grid-mode="text-wrap-float"] .article-card--with-image::after,
[data-grid-mode="masonry-mixed"] .article-card--with-image::after,
[data-grid-mode="numbered-rank-list"] .article-card--with-image::after,
[data-grid-mode="timeline-alternating"] .article-card--with-image::after,
[data-grid-mode="hexagon-thumb"] .article-card--with-image::after,
[data-grid-mode="diamond-thumb"] .article-card--with-image::after,
[data-grid-mode="editorial-dropcap"] .article-card--with-image::after,
[data-grid-mode="card-stack-3d"] .article-card--with-image::after,
[data-grid-mode="slim-circle-list"] .article-card--with-image::after,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image::after,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image::after,
[data-grid-mode="triangle-thumb"] .article-card--with-image::after,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image::after {
  display: none;
}
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-img,
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-img,
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-img,
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-img,
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-img,
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-img,
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-img,
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-img,
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-img,
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-img,
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-img,
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-img,
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-img,
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-img,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-img,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image .article-card-img,
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-img,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-img {
  position: static;
  filter: none;
}
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-body,
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-body,
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-body,
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-body,
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-body,
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-body,
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-body,
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-body,
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-body,
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-body,
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-body,
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-body,
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-body,
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-body,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-body,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image .article-card-body,
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-body,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-body {
  position: static;
  padding: 18px 18px 22px;
}
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-category,
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-category::before,
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-category,
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-category::before,
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-category,
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-category::before,
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-category,
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-category::before,
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-category,
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-category::before,
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-category,
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-category::before,
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-category,
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-category::before,
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-category,
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-category::before,
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-category,
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-category::before,
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-category,
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-category::before,
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-category,
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-category::before,
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-category,
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-category::before,
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-category,
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-category::before,
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-category,
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-category::before,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-category,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-category::before,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image .article-card-category,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image .article-card-category::before,
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-category,
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-category::before,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-category,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-category::before {
  color: var(--primary);
}
[data-grid-mode="image-top-classic"] .article-card--with-image h3 a,
[data-grid-mode="thumb-left-square"] .article-card--with-image h3 a,
[data-grid-mode="thumb-right-square"] .article-card--with-image h3 a,
[data-grid-mode="circle-avatar-row"] .article-card--with-image h3 a,
[data-grid-mode="polaroid-tilt"] .article-card--with-image h3 a,
[data-grid-mode="text-wrap-float"] .article-card--with-image h3 a,
[data-grid-mode="masonry-mixed"] .article-card--with-image h3 a,
[data-grid-mode="numbered-rank-list"] .article-card--with-image h3 a,
[data-grid-mode="timeline-alternating"] .article-card--with-image h3 a,
[data-grid-mode="hexagon-thumb"] .article-card--with-image h3 a,
[data-grid-mode="diamond-thumb"] .article-card--with-image h3 a,
[data-grid-mode="editorial-dropcap"] .article-card--with-image h3 a,
[data-grid-mode="card-stack-3d"] .article-card--with-image h3 a,
[data-grid-mode="slim-circle-list"] .article-card--with-image h3 a,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image h3 a,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image h3 a,
[data-grid-mode="triangle-thumb"] .article-card--with-image h3 a,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image h3 a {
  color: #111827;
}
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-excerpt,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-excerpt {
  color: #667085;
  opacity: 1;
}
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-meta,
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-meta,
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-meta,
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-meta,
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-meta,
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-meta,
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-meta,
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-meta,
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-meta,
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-meta,
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-meta,
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-meta,
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-meta,
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-meta,
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-meta,
[data-grid-mode="featured-plus-sidebar"] .article-card--with-image .article-card-meta,
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-meta,
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-meta {
  color: #98a2b3;
  opacity: 1;
}

/* 1. image-top-classic — image on top, text below */
[data-grid-mode="image-top-classic"] .article-card--with-image .article-card-img {
  height: 200px;
  width: 100%;
  display: block;
}

/* 2. thumb-left-square — square thumb on the left, text on the right */
[data-grid-mode="thumb-left-square"] .article-card--with-image {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 160px;
}
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-img {
  width: 160px;
  height: 100%;
  aspect-ratio: 1 / 1;
}
[data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-body {
  padding: 16px 18px;
}

/* 3. thumb-right-square */
[data-grid-mode="thumb-right-square"] .article-card--with-image {
  display: grid;
  grid-template-columns: 1fr 160px;
  min-height: 160px;
}
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-img {
  order: 2;
  width: 160px;
  height: 100%;
  aspect-ratio: 1 / 1;
}
[data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-body {
  order: 1;
  padding: 16px 18px;
}

/* 4. circle-avatar-row — circular thumbs aligned in a row */
[data-grid-mode="circle-avatar-row"] .article-card--with-image {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 14px 16px;
  min-height: 0;
}
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
[data-grid-mode="circle-avatar-row"] .article-card--with-image .article-card-body {
  padding: 0 0 0 6px;
}

/* 5. hero-overlay-panel — keep image-as-bg behavior but with a translucent panel for legibility */
[data-grid-mode="hero-overlay-panel"] .article-card--with-image { min-height: 380px; }
[data-grid-mode="hero-overlay-panel"] .article-card--with-image::after {
  background: linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,0.85));
}
[data-grid-mode="hero-overlay-panel"] .article-card--with-image .article-card-body {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  margin: 14px;
  border-radius: 10px;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
}

/* 6. polaroid-tilt — slight rotation + bottom padding for caption look */
[data-grid-mode="polaroid-tilt"] .article-card--with-image {
  padding: 12px 12px 0;
  background: #fffaf3;
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
[data-grid-mode="polaroid-tilt"] .article-card--with-image:nth-child(3n) { transform: rotate(-1.2deg); }
[data-grid-mode="polaroid-tilt"] .article-card--with-image:nth-child(3n+1) { transform: rotate(1deg); }
[data-grid-mode="polaroid-tilt"] .article-card--with-image .article-card-img {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* 7. text-wrap-float — small image float-left within the body */
[data-grid-mode="text-wrap-float"] .article-card--with-image { display: block; padding: 18px; }
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-img {
  float: left;
  width: 140px;
  height: 140px;
  margin: 0 16px 8px 0;
  border-radius: 8px;
  object-fit: cover;
}
[data-grid-mode="text-wrap-float"] .article-card--with-image .article-card-body { padding: 0; overflow: hidden; }
[data-grid-mode="text-wrap-float"] .article-card--with-image::after { display: none; }

/* 8. masonry-mixed — vary card heights for a masonry feel */
[data-grid-mode="masonry-mixed"] { grid-auto-rows: minmax(220px, auto); }
[data-grid-mode="masonry-mixed"] .article-card--with-image .article-card-img {
  height: 180px;
}
[data-grid-mode="masonry-mixed"] .article-card--large .article-card-img { height: 320px; }
[data-grid-mode="masonry-mixed"] .article-card--large { grid-row: span 2; }

/* 9. portrait-overlay-panel — 3/4 portrait image with overlay */
[data-grid-mode="portrait-overlay-panel"] .article-card--with-image { min-height: 0; }
[data-grid-mode="portrait-overlay-panel"] .article-card--with-image .article-card-img {
  aspect-ratio: 3 / 4;
  position: absolute;
}

/* 10. numbered-rank-list — show position number as decoration */
[data-grid-mode="numbered-rank-list"] { counter-reset: rank; grid-template-columns: 1fr; }
[data-grid-mode="numbered-rank-list"] .article-card--with-image {
  display: grid;
  grid-template-columns: 80px 180px 1fr;
  align-items: center;
  counter-increment: rank;
  padding: 12px 18px;
  min-height: 140px;
}
[data-grid-mode="numbered-rank-list"] .article-card--with-image::before {
  content: counter(rank, decimal-leading-zero);
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--primary) 22%, transparent);
  line-height: 1;
}
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-img {
  width: 160px; height: 110px; border-radius: 8px;
}
[data-grid-mode="numbered-rank-list"] .article-card--with-image .article-card-body {
  padding: 0 0 0 18px;
}

/* 11. timeline-alternating — left/right alternation with center spine */
[data-grid-mode="timeline-alternating"] { grid-template-columns: 1fr; position: relative; }
[data-grid-mode="timeline-alternating"]::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: color-mix(in srgb, var(--primary) 30%, #e5e7eb); transform: translateX(-1px);
}
[data-grid-mode="timeline-alternating"] .article-card--with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 24px;
}
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-img {
  width: 100%; height: 200px; border-radius: 10px;
}
[data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-body {
  background: #fff; border: 1px solid rgba(226,232,240,0.9); border-radius: 10px;
  padding: 14px 16px;
}
[data-grid-mode="timeline-alternating"] .article-card--tl-left .article-card-img { grid-column: 1; margin-right: 24px; }
[data-grid-mode="timeline-alternating"] .article-card--tl-left .article-card-body { grid-column: 2; margin-left: 24px; }
[data-grid-mode="timeline-alternating"] .article-card--tl-right .article-card-img { grid-column: 2; margin-left: 24px; order: 2; }
[data-grid-mode="timeline-alternating"] .article-card--tl-right .article-card-body { grid-column: 1; margin-right: 24px; order: 1; }

/* 12. hexagon-thumb — hexagonal-shaped thumb */
[data-grid-mode="hexagon-thumb"] .article-card--with-image .article-card-img {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  aspect-ratio: 1 / 0.866;
  height: auto;
}

/* 13. diamond-thumb — rotated square thumb */
[data-grid-mode="diamond-thumb"] .article-card--with-image .article-card-img {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  aspect-ratio: 1 / 1;
  height: auto;
}

/* 14. editorial-dropcap — first letter of excerpt enlarged as drop cap */
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-img {
  height: 180px;
}
[data-grid-mode="editorial-dropcap"] .article-card--with-image .article-card-excerpt::first-letter {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 900;
  float: left;
  line-height: 0.9;
  padding: 4px 8px 0 0;
  color: var(--primary);
}

/* 15. card-stack-3d — stacked offset shadows for layered feel */
[data-grid-mode="card-stack-3d"] .article-card--with-image {
  box-shadow:
    0 0 0 1px rgba(226,232,240,0.9),
    8px 8px 0 -2px color-mix(in srgb, var(--primary) 12%, #fff),
    16px 16px 0 -4px color-mix(in srgb, var(--primary) 6%, #fff),
    0 22px 40px rgba(15, 23, 42, 0.12);
}
[data-grid-mode="card-stack-3d"] .article-card--with-image .article-card-img { height: 200px; }

/* 16. slim-circle-list — single-column slim list with circular thumb */
[data-grid-mode="slim-circle-list"] { grid-template-columns: 1fr; }
[data-grid-mode="slim-circle-list"] .article-card--with-image {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  padding: 10px 14px;
  min-height: 0;
}
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-img {
  width: 56px; height: 56px; border-radius: 50%;
}
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-body { padding: 0 0 0 10px; }
[data-grid-mode="slim-circle-list"] .article-card--with-image .article-card-excerpt { display: none; }
[data-grid-mode="slim-circle-list"] .article-card--with-image h3 { font-size: 0.98rem; margin: 0 0 4px; }

/* 17. horizontal-scroll-strip — cards in a horizontally scrollable strip */
[data-grid-mode="horizontal-scroll-strip"] {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 18px;
  padding-bottom: 14px;
  grid-template-columns: none;
}
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
[data-grid-mode="horizontal-scroll-strip"] .article-card--with-image .article-card-img {
  height: 180px;
}

/* 18. featured-plus-sidebar — first card is large, rest stacks on the side */
@media (min-width: 960px) {
  [data-grid-mode="featured-plus-sidebar"] {
    grid-template-columns: 2fr 1fr;
    grid-auto-flow: row dense;
  }
  [data-grid-mode="featured-plus-sidebar"] .article-card--lead {
    grid-column: 1; grid-row: span 3;
    min-height: 480px;
  }
  [data-grid-mode="featured-plus-sidebar"] .article-card--lead .article-card-img { height: 330px; }
  [data-grid-mode="featured-plus-sidebar"] .article-card--with-image:not(.article-card--lead) {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 0;
  }
  [data-grid-mode="featured-plus-sidebar"] .article-card--with-image:not(.article-card--lead) .article-card-img {
    width: 120px; height: 100%; aspect-ratio: 1 / 1;
  }
  [data-grid-mode="featured-plus-sidebar"] .article-card--with-image:not(.article-card--lead) .article-card-body {
    padding: 12px 14px;
  }
  [data-grid-mode="featured-plus-sidebar"] .article-card--with-image:not(.article-card--lead) .article-card-excerpt { display: none; }
}

/* 19. triangle-thumb — triangle-shaped thumb */
[data-grid-mode="triangle-thumb"] .article-card--with-image .article-card-img {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  aspect-ratio: 1 / 1;
  height: auto;
}

/* 20. gradient-border-thumb — animated gradient border around the image */
[data-grid-mode="gradient-border-thumb"] .article-card--with-image .article-card-img {
  height: 200px;
  border: 4px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, var(--primary), var(--secondary, #6366f1));
  border-radius: 14px;
  margin: 12px;
  width: calc(100% - 24px);
}

@media (max-width: 860px) {
  [data-grid-mode="thumb-left-square"] .article-card--with-image,
  [data-grid-mode="thumb-right-square"] .article-card--with-image,
  [data-grid-mode="featured-plus-sidebar"] .article-card--with-image,
  [data-grid-mode="numbered-rank-list"] .article-card--with-image {
    grid-template-columns: 1fr;
  }
  [data-grid-mode="thumb-left-square"] .article-card--with-image .article-card-img,
  [data-grid-mode="thumb-right-square"] .article-card--with-image .article-card-img {
    width: 100%; height: 200px; aspect-ratio: auto;
  }
  [data-grid-mode="timeline-alternating"]::before { display: none; }
  [data-grid-mode="timeline-alternating"] .article-card--with-image { grid-template-columns: 1fr; }
  [data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-img,
  [data-grid-mode="timeline-alternating"] .article-card--with-image .article-card-body {
    grid-column: 1 !important; margin: 0 !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   HERO MODES (19 layouts) — driven by [data-hero-mode]
   ════════════════════════════════════════════════════════════════ */
.site-hero { position: relative; display: block; padding: 0; margin: 0 0 40px; background: transparent; overflow: visible; min-height: 0; }
.site-hero h1, .site-hero h2 { color: inherit; }
.site-hero h1 a, .site-hero h2 a { color: inherit; text-decoration: none; }
.site-hero h1 a:hover, .site-hero h2 a:hover { text-decoration: underline; }
.site-hero .sh-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.site-hero .sh-cat { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; margin-bottom: 10px; }
.site-hero p { line-height: 1.6; margin: 0 0 14px; }
.site-hero .btn-primary { display: inline-block; padding: 10px 22px; background: var(--primary); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-hero .btn-primary:hover { filter: brightness(1.08); }

/* 1. classic-overlay */
[data-hero-mode="classic-overlay"] { position: relative; height: 480px; border-radius: 14px; overflow: hidden; }
[data-hero-mode="classic-overlay"] .sh-photo { position: absolute; inset: 0; }
[data-hero-mode="classic-overlay"] .sh-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.7) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; color: #fff; }
[data-hero-mode="classic-overlay"] h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 12px; max-width: 780px; }
[data-hero-mode="classic-overlay"] p { max-width: 680px; opacity: 0.94; }

/* 2. split-text-image */
[data-hero-mode="split-text-image"] { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; }
[data-hero-mode="split-text-image"] .sh-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; color: #1a1a1a; }
[data-hero-mode="split-text-image"] .sh-cat { color: var(--primary); }
[data-hero-mode="split-text-image"] h1 { font-size: 2.2rem; line-height: 1.12; margin: 0 0 16px; }
[data-hero-mode="split-text-image"] p { color: #555; }
[data-hero-mode="split-text-image"] .sh-photo { min-height: 320px; }

/* 3. split-image-text-dark */
[data-hero-mode="split-image-text-dark"] { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 460px; background: #0f172a; color: #fff; border-radius: 14px; overflow: hidden; }
[data-hero-mode="split-image-text-dark"] .sh-photo { min-height: 320px; }
[data-hero-mode="split-image-text-dark"] .sh-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
[data-hero-mode="split-image-text-dark"] .sh-cat { color: #fbbf24; }
[data-hero-mode="split-image-text-dark"] h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 16px; }
[data-hero-mode="split-image-text-dark"] p { color: #cbd5e1; }

/* 4. fullbleed-floating-card */
[data-hero-mode="fullbleed-floating-card"] { position: relative; height: 520px; border-radius: 14px; overflow: hidden; }
[data-hero-mode="fullbleed-floating-card"] .sh-photo { position: absolute; inset: 0; }
[data-hero-mode="fullbleed-floating-card"] .sh-card { position: absolute; left: 36px; right: 36px; bottom: 32px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); padding: 24px 28px; border-radius: 12px; max-width: 560px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); color: #1a1a1a; }
[data-hero-mode="fullbleed-floating-card"] .sh-cat { color: #0e7490; }
[data-hero-mode="fullbleed-floating-card"] h1 { margin: 0 0 10px; font-size: 1.7rem; line-height: 1.18; }
[data-hero-mode="fullbleed-floating-card"] p { color: #475569; font-size: 0.96rem; }

/* 5. magazine-cover */
[data-hero-mode="magazine-cover"] { position: relative; height: 600px; border-radius: 14px; overflow: hidden; background: #000; color: #fff; }
[data-hero-mode="magazine-cover"] .sh-photo { position: absolute; inset: 0; opacity: 0.85; }
[data-hero-mode="magazine-cover"] .sh-label { position: absolute; top: 24px; left: 30px; font-weight: 800; letter-spacing: 0.3em; font-size: 0.9rem; background: rgba(0,0,0,0.55); padding: 6px 12px; border-radius: 6px; backdrop-filter: blur(4px); }
[data-hero-mode="magazine-cover"] .sh-issue { position: absolute; top: 24px; right: 30px; font-size: 0.8rem; background: rgba(0,0,0,0.55); padding: 6px 12px; border-radius: 6px; backdrop-filter: blur(4px); }
[data-hero-mode="magazine-cover"] .sh-body { position: absolute; left: 30px; right: 30px; bottom: 30px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); padding: 22px 24px; border-radius: 12px; }
[data-hero-mode="magazine-cover"] .sh-cat { color: #fbbf24; }
[data-hero-mode="magazine-cover"] h1 { font-family: Georgia, serif; font-size: 3rem; line-height: 1.02; margin: 0 0 12px; max-width: 760px; font-weight: 900; }
[data-hero-mode="magazine-cover"] p { max-width: 520px; opacity: 0.9; }

/* 6. diagonal-split */
[data-hero-mode="diagonal-split"] { position: relative; height: 480px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; }
[data-hero-mode="diagonal-split"] .sh-photo { position: absolute; inset: 0; clip-path: polygon(45% 0, 100% 0, 100% 100%, 30% 100%); }
[data-hero-mode="diagonal-split"] .sh-text { position: absolute; inset: 0; padding: 54px 40px; width: 55%; display: flex; flex-direction: column; justify-content: center; color: #1a1a1a; }
[data-hero-mode="diagonal-split"] .sh-cat { color: #7c3aed; }
[data-hero-mode="diagonal-split"] h1 { margin: 0 0 14px; font-size: 2.1rem; line-height: 1.15; }
[data-hero-mode="diagonal-split"] p { color: #475569; max-width: 380px; }

/* 7. cinematic-letterbox */
[data-hero-mode="cinematic-letterbox"] { position: relative; height: 420px; border-radius: 14px; overflow: hidden; background: #000; color: #fff; }
[data-hero-mode="cinematic-letterbox"] .sh-photo { position: absolute; inset: 0; opacity: 0.78; }
[data-hero-mode="cinematic-letterbox"] .sh-bar { position: absolute; left: 0; right: 0; height: 48px; background: #000; z-index: 1; }
[data-hero-mode="cinematic-letterbox"] .sh-bar-top { top: 0; }
[data-hero-mode="cinematic-letterbox"] .sh-bar-bottom { bottom: 0; }
[data-hero-mode="cinematic-letterbox"] .sh-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px; z-index: 2; }
[data-hero-mode="cinematic-letterbox"] .sh-inner { background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); padding: 28px 36px; border-radius: 14px; max-width: 820px; }
[data-hero-mode="cinematic-letterbox"] .sh-cat { letter-spacing: 0.4em; }
[data-hero-mode="cinematic-letterbox"] h1 { font-size: 2.4rem; line-height: 1.08; margin: 0 0 14px; font-weight: 300; letter-spacing: -0.01em; }
[data-hero-mode="cinematic-letterbox"] p { max-width: 560px; opacity: 0.95; margin: 0 auto; }

/* 8. slider-classic */
[data-hero-mode="slider-classic"] { position: relative; height: 500px; border-radius: 14px; overflow: hidden; }
[data-hero-mode="slider-classic"] .sh-slider, [data-hero-mode="slider-classic"] .sh-slider-track { position: absolute; inset: 0; }
[data-hero-mode="slider-classic"] .sh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; background-size: cover; background-position: center; }
[data-hero-mode="slider-classic"] .sh-slide.is-active { opacity: 1; }
[data-hero-mode="slider-classic"] .sh-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 60%); padding: 60px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
[data-hero-mode="slider-classic"] .sh-inner { background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); padding: 24px 28px; border-radius: 12px; max-width: 560px; }
[data-hero-mode="slider-classic"] h2 { font-size: 2.2rem; line-height: 1.12; margin: 0 0 14px; }
[data-hero-mode="slider-classic"] .sh-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; border: 1px solid rgba(255,255,255,0.4); cursor: pointer; z-index: 3; }
[data-hero-mode="slider-classic"] .sh-arrow-l { left: 22px; }
[data-hero-mode="slider-classic"] .sh-arrow-r { right: 22px; }
[data-hero-mode="slider-classic"] .sh-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
[data-hero-mode="slider-classic"] .sh-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); }
[data-hero-mode="slider-classic"] .sh-dot.on { background: #fff; width: 28px; border-radius: 6px; }

/* 9. slider-thumb-strip */
[data-hero-mode="slider-thumb-strip"] { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; }
[data-hero-mode="slider-thumb-strip"] .sh-main { position: relative; height: 420px; background-size: cover; background-position: center; }
[data-hero-mode="slider-thumb-strip"] .sh-overlay { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 18px 22px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); color: #fff; border-radius: 12px; max-width: 680px; }
[data-hero-mode="slider-thumb-strip"] .sh-main h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.15; }
[data-hero-mode="slider-thumb-strip"] .sh-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
[data-hero-mode="slider-thumb-strip"] .sh-thumb { position: relative; height: 140px; background-size: cover; background-position: center; text-decoration: none; }
[data-hero-mode="slider-thumb-strip"] .sh-thumb.on::after { content: ""; position: absolute; inset: 0; border: 3px solid #fbbf24; }
[data-hero-mode="slider-thumb-strip"] .sh-thumb-lbl { position: absolute; left: 8px; right: 8px; bottom: 8px; color: #fff; font-size: 0.82rem; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 6px 10px; border-radius: 6px; line-height: 1.25; }

/* 10. feature-plus-sidebar */
[data-hero-mode="feature-plus-sidebar"] { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
[data-hero-mode="feature-plus-sidebar"] .sh-main { position: relative; min-height: 480px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; }
[data-hero-mode="feature-plus-sidebar"] .sh-overlay { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 18px 22px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); color: #fff; border-radius: 12px; }
[data-hero-mode="feature-plus-sidebar"] .sh-main h1 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.15; }
[data-hero-mode="feature-plus-sidebar"] .sh-side { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 14px; }
[data-hero-mode="feature-plus-sidebar"] .sh-side-it { position: relative; border-radius: 12px; overflow: hidden; min-height: 148px; background-size: cover; background-position: center; text-decoration: none; }
[data-hero-mode="feature-plus-sidebar"] .sh-side-lbl { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); border-radius: 8px; color: #fff; font-size: 0.92rem; line-height: 1.3; }

/* 11. image-mosaic */
[data-hero-mode="image-mosaic"] { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 200px 200px; gap: 8px; position: relative; border-radius: 14px; overflow: hidden; }
[data-hero-mode="image-mosaic"] .sh-c { background-size: cover; background-position: center; }
[data-hero-mode="image-mosaic"] .sh-c-0 { grid-column: span 2; grid-row: span 2; }
[data-hero-mode="image-mosaic"] .sh-title { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 22px 26px; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); border-radius: 12px; color: #fff; z-index: 2; max-width: 640px; }
[data-hero-mode="image-mosaic"] .sh-cat { color: #fbbf24; }
[data-hero-mode="image-mosaic"] h1 { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.15; max-width: 560px; }
[data-hero-mode="image-mosaic"] p { max-width: 520px; opacity: 0.95; }

/* 12. text-only-editorial */
[data-hero-mode="text-only-editorial"] { background: #fff; border-radius: 14px; padding: 80px 50px; text-align: center; border: 1px solid #e5e7eb; }
[data-hero-mode="text-only-editorial"] .sh-cat { letter-spacing: 0.32em; color: #dc2626; margin-bottom: 30px; }
[data-hero-mode="text-only-editorial"] h1 { font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.02em; font-weight: 900; max-width: 1000px; margin-left: auto; margin-right: auto; }
[data-hero-mode="text-only-editorial"] .sh-rule { width: 60px; height: 3px; background: #1a1a1a; margin: 0 auto 30px; }
[data-hero-mode="text-only-editorial"] p { font-size: 1.1rem; max-width: 680px; margin: 0 auto 22px; color: #475569; }

/* 13. offset-photo */
[data-hero-mode="offset-photo"] { position: relative; min-height: 520px; padding: 60px 40px; }
[data-hero-mode="offset-photo"] .sh-block { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: #fde68a; border-radius: 14px; z-index: 0; }
[data-hero-mode="offset-photo"] .sh-photo { position: absolute; right: 0; top: 30px; bottom: 30px; width: 55%; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
[data-hero-mode="offset-photo"] .sh-text { position: relative; z-index: 2; max-width: 520px; padding: 60px 30px 60px 0; }
[data-hero-mode="offset-photo"] .sh-cat { color: #16a34a; }
[data-hero-mode="offset-photo"] h1 { font-size: 2.2rem; line-height: 1.1; margin: 0 0 16px; }
[data-hero-mode="offset-photo"] p { color: #475569; }

/* 14. numbered-feature */
[data-hero-mode="numbered-feature"] { display: grid; grid-template-columns: 220px 1fr 280px; gap: 36px; align-items: center; background: #fff; border-radius: 14px; padding: 40px; border: 1px solid #e5e7eb; }
[data-hero-mode="numbered-feature"] .sh-num { font-family: Georgia, serif; font-size: 11rem; line-height: 0.85; color: #fef3c7; font-weight: 900; text-align: center; }
[data-hero-mode="numbered-feature"] .sh-cat { color: #dc2626; letter-spacing: 0.18em; }
[data-hero-mode="numbered-feature"] h1 { margin: 0 0 14px; font-size: 2rem; line-height: 1.15; }
[data-hero-mode="numbered-feature"] p { color: #475569; }
[data-hero-mode="numbered-feature"] .sh-photo { width: 280px; height: 340px; border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,0.15); }

/* 15. tilted-polaroid */
[data-hero-mode="tilted-polaroid"] { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 50px 30px; background: #fffaf3; border-radius: 14px; }
[data-hero-mode="tilted-polaroid"] .sh-polaroid { background: #fff; padding: 14px 14px 56px; box-shadow: 0 18px 50px rgba(0,0,0,0.18); transform: rotate(-3deg); width: fit-content; margin: 0 auto; }
[data-hero-mode="tilted-polaroid"] .sh-polaroid .sh-photo { width: 320px; height: 380px; }
[data-hero-mode="tilted-polaroid"] .sh-cap { margin-top: 14px; text-align: center; font-family: Georgia, serif; font-style: italic; color: #78350f; font-size: 0.95rem; }
[data-hero-mode="tilted-polaroid"] .sh-cat { color: #7c2d12; }
[data-hero-mode="tilted-polaroid"] h1 { font-family: Georgia, serif; margin: 0 0 16px; font-size: 2.2rem; line-height: 1.08; }
[data-hero-mode="tilted-polaroid"] p { color: #525252; }

/* 16. newspaper-banner */
[data-hero-mode="newspaper-banner"] { background: #fff; border-radius: 14px; padding: 30px; border-top: 6px solid #111827; }
[data-hero-mode="newspaper-banner"] .sh-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #111827; padding-bottom: 10px; margin-bottom: 18px; }
[data-hero-mode="newspaper-banner"] .sh-mast { font-family: Georgia, serif; font-weight: 900; letter-spacing: -0.02em; font-size: 1.8rem; }
[data-hero-mode="newspaper-banner"] .sh-date { color: #6b7280; font-size: 0.85rem; }
[data-hero-mode="newspaper-banner"] .sh-grid { display: grid; grid-template-columns: 2fr 1px 1fr 1px 1fr; gap: 24px; align-items: stretch; }
[data-hero-mode="newspaper-banner"] .sh-col h2 { font-family: Georgia, serif; margin: 0 0 10px; font-size: 1.5rem; line-height: 1.18; color: #111827; }
[data-hero-mode="newspaper-banner"] .sh-ldr { color: #111827; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
[data-hero-mode="newspaper-banner"] .sh-col p { color: #374151; font-size: 0.94rem; }
[data-hero-mode="newspaper-banner"] .sh-col-img { width: 100%; height: 180px; background-size: cover; background-position: center; margin-bottom: 10px; }
[data-hero-mode="newspaper-banner"] .sh-sep { width: 1px; background: #e5e7eb; }

/* 17. circle-portrait-gradient */
[data-hero-mode="circle-portrait-gradient"] { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; padding: 60px 40px; background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; border-radius: 14px; }
[data-hero-mode="circle-portrait-gradient"] .sh-portrait { width: 300px; height: 300px; border-radius: 50%; box-shadow: 0 24px 60px rgba(0,0,0,0.25); border: 6px solid rgba(255,255,255,0.25); background-size: cover; background-position: center; }
[data-hero-mode="circle-portrait-gradient"] .sh-cat { letter-spacing: 0.22em; color: #fef3c7; }
[data-hero-mode="circle-portrait-gradient"] h1 { margin: 0 0 16px; font-size: 2.2rem; line-height: 1.1; }
[data-hero-mode="circle-portrait-gradient"] p { max-width: 540px; opacity: 0.95; }

/* 18. ranked-list */
[data-hero-mode="ranked-list"] { background: #fff; border-radius: 14px; padding: 32px; border: 1px solid #e5e7eb; }
[data-hero-mode="ranked-list"] .sh-row { display: grid; grid-template-columns: 80px 1fr 220px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e5e7eb; }
[data-hero-mode="ranked-list"] .sh-row:last-child { border-bottom: 0; }
[data-hero-mode="ranked-list"] .sh-row.lead { grid-template-columns: 100px 1fr 320px; padding: 22px 0 28px; }
[data-hero-mode="ranked-list"] .sh-num { font-family: Georgia, serif; font-size: 3rem; color: #cbd5e1; line-height: 0.9; text-align: right; font-weight: 900; }
[data-hero-mode="ranked-list"] .sh-row.lead .sh-num { color: #dc2626; font-size: 4.2rem; }
[data-hero-mode="ranked-list"] .sh-cat { font-size: 0.72rem; color: #6b7280; margin-bottom: 6px; }
[data-hero-mode="ranked-list"] .sh-row h2 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.25; color: #111827; }
[data-hero-mode="ranked-list"] .sh-row.lead h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.2; color: #111827; }
[data-hero-mode="ranked-list"] .sh-row p { margin: 0; color: #6b7280; font-size: 0.92rem; }
[data-hero-mode="ranked-list"] .sh-thumb { height: 90px; border-radius: 8px; background-size: cover; background-position: center; }
[data-hero-mode="ranked-list"] .sh-row.lead .sh-thumb { height: 160px; }

/* 19. side-pinned-card */
[data-hero-mode="side-pinned-card"] { position: relative; height: 540px; border-radius: 14px; overflow: hidden; }
[data-hero-mode="side-pinned-card"] .sh-photo { position: absolute; inset: 0; filter: saturate(1.1); }
[data-hero-mode="side-pinned-card"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0), rgba(15,23,42,0) 40%, rgba(15,23,42,0.85)); z-index: 1; }
[data-hero-mode="side-pinned-card"] .sh-card { position: absolute; right: 30px; top: 30px; bottom: 30px; width: 420px; background: rgba(15,23,42,0.7); backdrop-filter: blur(10px); color: #fff; padding: 36px 32px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,0.12); z-index: 2; }
[data-hero-mode="side-pinned-card"] .sh-cat { color: #fbbf24; }
[data-hero-mode="side-pinned-card"] h1 { margin: 0 0 14px; font-size: 1.9rem; line-height: 1.15; }
[data-hero-mode="side-pinned-card"] p { opacity: 0.92; }
[data-hero-mode="side-pinned-card"] .sh-cta { background: #fbbf24; color: #111827; align-self: flex-start; margin-top: 14px; }

/* Hero modes — responsive collapse */
@media (max-width: 860px) {
  [data-hero-mode="split-text-image"],
  [data-hero-mode="split-image-text-dark"],
  [data-hero-mode="numbered-feature"],
  [data-hero-mode="tilted-polaroid"],
  [data-hero-mode="circle-portrait-gradient"],
  [data-hero-mode="feature-plus-sidebar"] { grid-template-columns: 1fr !important; }
  [data-hero-mode="newspaper-banner"] .sh-grid { grid-template-columns: 1fr; }
  [data-hero-mode="newspaper-banner"] .sh-sep { display: none; }
  [data-hero-mode="image-mosaic"] { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px 140px; }
  [data-hero-mode="image-mosaic"] .sh-c-0 { grid-column: span 2; grid-row: span 1; }
  [data-hero-mode="offset-photo"] .sh-photo { position: static; width: 100%; height: 240px; margin-top: 20px; }
  [data-hero-mode="offset-photo"] .sh-block { display: none; }
  [data-hero-mode="side-pinned-card"] .sh-card { left: 20px; right: 20px; width: auto; }
  [data-hero-mode="ranked-list"] .sh-row,
  [data-hero-mode="ranked-list"] .sh-row.lead { grid-template-columns: 1fr; }
  [data-hero-mode="numbered-feature"] .sh-num { font-size: 5rem; }
  [data-hero-mode="numbered-feature"] .sh-photo { width: 100%; height: 240px; }
  [data-hero-mode="tilted-polaroid"] .sh-polaroid .sh-photo { width: 100%; height: 280px; }
  [data-hero-mode="circle-portrait-gradient"] .sh-portrait { margin: 0 auto; }
  [data-hero-mode="diagonal-split"] .sh-text { width: 100%; background: rgba(255,255,255,0.92); }
  [data-hero-mode="diagonal-split"] .sh-photo { clip-path: none; opacity: 0.25; }
}

