/* Multibase — magazine theme */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --nav-bg: #1e3a8a;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --container: 1240px;
  --font: "Inter", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1f2937;
  --nav-bg: #0f172a;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 0;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  gap: 1rem;
}
.topbar-left { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; min-width: 0; flex: 1; }
@media (min-width: 640px) {
  .topbar-left { flex-wrap: nowrap; }
}
.topbar-trending {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  max-width: min(55vw, 480px);
}
.topbar-trending strong { color: var(--primary); flex-shrink: 0; }
.ticker-viewport {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
}
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-sep { color: var(--muted); opacity: 0.6; }
.ticker-viewport a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: nowrap;
  flex-shrink: 0;
}
.ticker-viewport a:hover {
  color: var(--primary);
  text-decoration: underline;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  /* Two identical .ticker-group copies: -50% = one loop width, no JS measurement */
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.topbar-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lang-switcher { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.lang-switcher .lang-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.1rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--muted);
  line-height: 1.2;
}
.lang-flag { font-size: 0.85em; line-height: 1; }
.lang-code { font-size: inherit; }
.lang-switcher .lang-item a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.lang-switcher .lang-item.is-active a {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.theme-toggle, .search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  width: auto;
  height: auto;
  cursor: pointer;
  color: var(--muted);
}
.theme-toggle:hover, .search-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Header */
.site-header { background: var(--surface); box-shadow: var(--shadow); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text);
  text-decoration: none;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.site-logo:hover { text-decoration: none; }
.site-logo-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.site-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 55vw);
}
.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.site-tagline { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* Header ad — leaderboard 728×90 (desktop), mobile banner 320×50 */
.header-ad {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.header-ad .atlas-ad,
.header-ad .atlas-ad-header {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.atlas-ad-placeholder {
  background: color-mix(in srgb, var(--border) 35%, var(--surface));
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.atlas-ad-placeholder-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}
.atlas-ad-placeholder-size--mobile { display: none; }

.primary-nav { background: var(--nav-bg); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Desktop + tablet: taller blue bar, tabs on bottom edge */
@media (min-width: 641px) {
  .nav-inner {
    min-height: 3.5rem;
    align-items: flex-end;
    padding-top: 0.75rem;
    padding-bottom: 0;
  }
  .nav-menu {
    align-items: flex-end;
    padding-bottom: 0;
  }
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 0.75rem 1.1rem 0.85rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s, color 0.15s;
}
.nav-menu a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
/* Primary nav — active tab flows into page content below */
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu li.current > a {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  box-shadow: none;
}
.nav-menu .current-menu-item > a:hover,
.nav-menu .current-menu-ancestor > a:hover,
.nav-menu li.current > a:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-icon {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, top 0.2s;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.primary-nav.is-open .nav-toggle-icon { background: transparent; }
.primary-nav.is-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.primary-nav.is-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
/* Sidebar search — compact, on-brand */
.widget-search {
  padding: 0.75rem 1rem;
}
.sidebar-search-form {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}
.sidebar-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.35;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sidebar-search-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.sidebar-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}
.sidebar-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sidebar-search-submit:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}
.sidebar-search-submit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hero grid — large card matches combined height of two side cards */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  align-items: stretch;
}
.hero-main {
  display: flex;
  min-height: 0;
}
.hero-main > .hero-card {
  flex: 1;
  width: 100%;
}
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 0;
}
.hero-side > .hero-card {
  min-height: 0;
}
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}
.hero-link {
  display: block;
  position: relative;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.hero-media {
  position: relative;
  height: 100%;
  min-height: 160px;
}
.hero-media img, .hero-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-placeholder, .card-placeholder {
  background: linear-gradient(135deg, #1e3a8a, #4f46e5);
  min-height: 180px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%);
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
}
.hero-title {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.75vw, 1.55rem);
  line-height: 1.2;
  color: #fff;
}
.hero-large .hero-title { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.hero-side .hero-title {
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Headlines — geen slordige afbrekingen midden in woorden of losse regel-eindjes */
.hero-title,
.card-title,
.card-title a,
.mini-title,
.single-title,
.numbered-list a,
.footer-posts a {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
@supports (text-wrap: balance) {
  .hero-title,
  .card-title,
  .card-title a,
  .single-title,
  .section-head h2 {
    text-wrap: balance;
  }
}
.mini-body { min-width: 0; }
.hero-excerpt { margin: 0.5rem 0 0; opacity: 0.9; font-size: 0.95rem; }
.hero-empty {
  grid-column: 1 / -1;
  min-height: 360px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #7c3aed 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.hero-empty h1 { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0.75rem 0; }

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cat-color, #334155);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}
.cat-icon {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  display: block;
}
.cat-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}
.cat-chip-name { line-height: 1.2; }
.cat-chip-emoji {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.draft-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f59e0b;
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.story-bundle-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}
.story-bundle-hint a {
  color: var(--primary, #2563eb);
  text-decoration: none;
}
.story-bundle-hint a:hover {
  text-decoration: underline;
}
.hero-content .story-bundle-hint a {
  color: #fff;
  opacity: 0.92;
}

/* Category strip */
.category-strip { padding: 0.5rem 0 1rem; }
.category-subnav { margin: 0 0 1.25rem; }
.category-subnav .strip-pill.is-active {
  border-color: var(--cat-color, var(--primary));
  color: var(--cat-color, var(--primary));
  font-weight: 600;
}
.strip-inner { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.strip-pill .cat-icon { color: var(--cat-color, var(--primary)); stroke: currentColor; }
.strip-pill:hover { border-color: var(--cat-color, var(--primary)); color: var(--cat-color, var(--primary)); text-decoration: none; }

/* Layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 1rem 0 3rem;
  align-items: start;
}
.content-primary { min-width: 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
}
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-block { margin-bottom: 2.5rem; }
.section-colored {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 4px solid var(--section-accent, var(--primary));
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 0.25rem;
}
.post-grid-4 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(15,23,42,0.12); }
}
.card-media { position: relative; display: block; }
.card-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-media .cat-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}
.card-media .card-placeholder { aspect-ratio: 16/9; }
.card-hook {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}
.card-title { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.35; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1025px) {
  .sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.widget-title { margin: 0 0 0.75rem; font-size: 1rem; border-bottom: 2px solid var(--primary); padding-bottom: 0.35rem; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.mini-card { display: grid; grid-template-columns: 96px 1fr; gap: 0.75rem; align-items: start; }
.mini-card-ranked .mini-thumb img,
.mini-card-ranked .thumb-placeholder { width: 96px; height: 96px; }
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.mini-thumb {
  position: relative;
  display: block;
}
.mini-thumb img, .thumb-placeholder {
  width: 96px; height: 96px; object-fit: cover; border-radius: 12px;
  display: block;
}
.thumb-placeholder { background: #cbd5e1; }
.mini-thumb .rank-badge {
  position: absolute;
  bottom: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}
.mini-title { display: block; font-weight: 600; color: var(--text); font-size: 0.88rem; line-height: 1.3; }
.mini-body time { font-size: 0.75rem; color: var(--muted); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.cat-list-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.cat-list-label .cat-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--primary);
  stroke: currentColor;
}
.cat-list em { font-style: normal; color: var(--muted); flex-shrink: 0; }

/* Single article — full content column + sidebar */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}
.single-main { min-width: 0; }
.single-article {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem 2rem;
}
.single-header { margin-bottom: 1.25rem; }
.single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.single-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  margin: 0.75rem 0;
  max-width: none;
}
.single-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.9rem; }
.single-featured {
  position: relative;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.single-content {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: none;
}
.single-content p { margin: 0 0 1.15rem; }
.single-content h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
  font-family: var(--serif);
}
.single-content h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.single-content ul, .single-content ol { padding-left: 1.35rem; margin: 0 0 1.15rem; }
.single-content li { margin-bottom: 0.35rem; }
.single-content img,
.single-content video,
.single-content iframe,
.single-content embed { max-width: 100%; height: auto; }
.single-content pre,
.single-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.single-content blockquote {
  margin-inline: 0;
  padding-inline: 1rem;
  border-left: 3px solid var(--primary);
}

/* Youth article structure — HOOK / FACTS / TAKEAWAY */
.youth-article {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.youth-block {
  padding: 1.15rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg);
}
.youth-block--hook {
  border-left: 4px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}
.youth-block--facts {
  border-left: 4px solid #059669;
}
.youth-block--takeaway {
  border-left: 4px solid #ea580c;
  background: color-mix(in srgb, #ea580c 5%, var(--surface));
}
.youth-block__label {
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.youth-block__body p:last-child { margin-bottom: 0; }
.youth-block__list {
  margin: 0;
  padding-left: 1.2rem;
}
.youth-block__list li {
  margin-bottom: 0.45rem;
}
.youth-block__list li:last-child { margin-bottom: 0; }

/* Share bar */
.article-share {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.article-share__title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.article-share__btn:hover,
.article-share__btn:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  outline: none;
}
.article-share__btn--copy.is-copied {
  border-color: #059669;
  color: #059669;
}
.article-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.article-share__text { white-space: nowrap; }

.single-tags { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.single-tags a {
  display: inline-block;
  margin: 0.15rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.85rem;
}
.post-translations {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.post-translations-label { margin: 0; }
.post-translations .post-translations-list { margin: 0; }

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--border);
}
.breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item span[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.related h2 { margin-bottom: 1rem; font-size: 1.35rem; }
.post-grid-related { grid-template-columns: repeat(3, 1fr); }
.post-card-related .card-body { padding: 0.85rem 1rem 1rem; }
.post-card-related .card-title { margin-bottom: 0.35rem; }
.post-card-related .card-meta { margin-top: 0; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-col h4 { color: #fff; margin: 0 0 1rem; }
.footer-cats, .footer-posts { list-style: none; margin: 0; padding: 0; }
.footer-cats a, .footer-posts a { color: #cbd5e1; display: block; padding: 0.25rem 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-pill {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: #94a3b8; }

.empty-msg, .empty-page { padding: 2rem; text-align: center; color: var(--muted); }
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

/* Atlas ad slots */
.atlas-ad-slot { margin: 1rem 0; text-align: center; min-height: 0; }
.atlas-ad-slot:empty { display: none; }

/* Sidebar 300×250 — full column width with inner padding */
.sidebar .ad-slot-sidebar {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.sidebar .ad-slot-sidebar .atlas-ad-sidebar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.sidebar .ad-slot-sidebar .atlas-ad-sidebar.atlas-ad-placeholder {
  aspect-ratio: 300 / 250;
  min-height: 0;
}
.sidebar .ad-slot-sidebar .atlas-ad-sidebar.atlas-ad-placeholder .atlas-ad-placeholder-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.sidebar .ad-slot-sidebar .atlas-ad-sidebar:not(.atlas-ad-placeholder) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}
.sidebar .ad-slot-sidebar .atlas-ad-sidebar iframe,
.sidebar .ad-slot-sidebar .atlas-ad-sidebar ins.adsbygoogle {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto;
}

/* Article detail wide slots — full column width, centered ad unit */
.single-article .ad-slot-wide {
  width: 100%;
  box-sizing: border-box;
  margin: 1rem 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.single-article .ad-slot-wide .atlas-ad-below-title,
.single-article .ad-slot-wide .atlas-ad-in-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.single-article .ad-slot-below-title .atlas-ad-below-title.atlas-ad-placeholder,
.single-article .ad-slot-in-content .atlas-ad-in-content.atlas-ad-placeholder {
  aspect-ratio: 728 / 90;
  min-height: 0;
  max-width: 728px;
  margin-inline: auto;
}
.single-article .ad-slot-below-title .atlas-ad-below-title.atlas-ad-placeholder .atlas-ad-placeholder-label,
.single-article .ad-slot-in-content .atlas-ad-in-content.atlas-ad-placeholder .atlas-ad-placeholder-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.single-article .ad-slot-below-title .atlas-ad-below-title:not(.atlas-ad-placeholder),
.single-article .ad-slot-in-content .atlas-ad-in-content:not(.atlas-ad-placeholder) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}
.single-article .ad-slot-below-title .atlas-ad-below-title iframe,
.single-article .ad-slot-below-title .atlas-ad-below-title ins.adsbygoogle,
.single-article .ad-slot-in-content .atlas-ad-in-content iframe,
.single-article .ad-slot-in-content .atlas-ad-in-content ins.adsbygoogle {
  display: block;
  width: 100% !important;
  max-width: 728px !important;
  margin-inline: auto;
}

/* Pagination */
.archive-pagination {
  clear: both;
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.pagination,
.archive-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.archive-pagination .nav-links {
  margin-top: 1rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.page-numbers.current {
  font-weight: 600;
  border-color: var(--primary);
  color: var(--primary);
}
.page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Trending split */
.trending-split { padding: 0.5rem 0 1.5rem; }
.trending-split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.trending-main {
  display: flex;
  min-height: 0;
}
.trending-main > .hero-card {
  flex: 1;
  width: 100%;
}
.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  height: 100%;
  box-sizing: border-box;
}
.trending-list .mini-card-ranked:nth-child(1) .rank-badge { background: #dc2626; }
.trending-list .mini-card-ranked:nth-child(2) .rank-badge { background: #ea580c; }
.trending-list .mini-card-ranked:nth-child(3) .rank-badge { background: #ca8a04; }
.trending-list .mini-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.trending-list .mini-categories .cat-badge {
  font-size: 0.62rem;
  padding: 0.18rem 0.42rem;
  text-decoration: none;
}
.section-head.trending-head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* Article clarity poll */
.article-poll {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid var(--border);
}
.article-poll-question {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.article-poll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.poll-btn {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
}
.poll-btn:hover { transform: translateY(-1px); }
.poll-btn-yes { background: #2563eb; color: #fff; }
.poll-btn-no { background: var(--surface); border: 1px solid var(--border); }
.article-poll-thanks {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--primary);
}
.article-poll.is-voted .article-poll-actions { display: none; }
.section-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.section-head { gap: 1rem; }

/* Editors pick */
.editors-pick { padding: 1rem 0 2rem; }
.pick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-medium .hero-media { min-height: 220px; }
.hero-medium .hero-title { font-size: 1.1rem; }

/* Newsletter */
.newsletter-block { padding: 0 0 2.5rem; }
.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}
.newsletter-inner h2 { margin: 0 0 0.35rem; color: #fff; }
.newsletter-inner p { margin: 0; opacity: 0.9; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  min-width: 220px;
}
.newsletter-form button {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-weight: 700;
  cursor: pointer;
}

/* Tag trending */
.tag-trending { padding-bottom: 3rem; }
.tag-trending-cloud, .tag-cloud-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-pill-lg {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.tag-pill-lg span { color: var(--muted); font-weight: 500; margin-left: 0.25rem; }

/* Sidebar tabs */
.widget-tabs { padding: 0; overflow: hidden; }
.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  border: none;
  background: var(--bg);
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--muted);
}
.tab-btn.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.tab-panel { padding: 1rem; }
.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.numbered-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.numbered-list .num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.numbered-list a { color: var(--text); font-weight: 600; font-size: 0.9rem; line-height: 1.35; }

/* Responsive — breakpoints: 640px (mobile), 641–1024px (tablet), 1025px+ (desktop) */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }
  .header-ad {
    width: 100%;
    justify-content: center;
  }
  .header-ad .atlas-ad,
  .header-ad .atlas-ad-header {
    width: 100%;
    max-width: min(728px, 100%);
  }
  .trending-split-grid { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: auto auto; }
  .hero-main .hero-media,
  .hero-side .hero-media { min-height: 220px; }
  .hero-side .hero-title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    -webkit-line-clamp: 4;
  }
  .layout-with-sidebar,
  .single-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .layout-with-sidebar .content-primary { order: 1; }
  .layout-with-sidebar .sidebar,
  .single-layout .sidebar { order: 2; }
  .post-grid,
  .post-grid-related { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .single-article { padding: 1.25rem 1.25rem 1.5rem; }
  .single-content { font-size: 1.05rem; }
  .hero-large .hero-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 768px) {
  .topbar-trending { max-width: 100%; }
  .newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }
  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }
  .newsletter-form input {
    min-width: 0;
    width: 100%;
  }
  .newsletter-form button {
    width: 100%;
    min-height: 2.75rem;
  }
}
@media (max-width: 640px) {
  .container { width: min(100% - 1.25rem, var(--container)); }
  .topbar { font-size: 0.8rem; }
  .topbar-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 0;
  }
  .topbar-left {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .topbar-date { white-space: nowrap; }
  .topbar-trending { max-width: 100%; }
  .topbar-right {
    flex: 1 1 auto;
    margin-left: auto;
    gap: 0.5rem;
  }
  .lang-switcher { gap: 0.25rem; }
  .lang-switcher .lang-item a,
  .theme-toggle,
  .search-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .header-inner {
    justify-items: start;
    text-align: left;
    padding: 1rem 0;
    gap: 0.75rem;
  }
  .site-branding { min-width: 0; width: 100%; }
  .site-title { font-size: 1.35rem; gap: 0.55rem; }
  .site-logo-mark { width: 40px; height: 40px; }
  .logo-text { font-size: 1.35rem; }
  .site-logo-img { height: 40px; }
  .logo-mark { width: 40px; height: 40px; border-radius: 10px; font-size: 0.95rem; }
  .site-tagline { font-size: 0.85rem; }
  .custom-logo-link img { max-height: 48px; width: auto; }
  .header-ad { justify-content: flex-start; }
  .header-ad .atlas-ad,
  .header-ad .atlas-ad-header {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
  }
  .atlas-ad-placeholder-size--desktop { display: none; }
  .atlas-ad-placeholder-size--mobile { display: inline; }
  .nav-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 0.35rem;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-menu {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.15rem;
    padding: 0.35rem 0 0.65rem;
    order: 3;
  }
  .primary-nav.is-open .nav-menu { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }
  .nav-menu .current-menu-item > a,
  .nav-menu .current-menu-ancestor > a,
  .nav-menu li.current > a {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
  }
  .nav-menu .current-menu-item > a:hover,
  .nav-menu .current-menu-ancestor > a:hover,
  .nav-menu li.current > a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  .hero-grid { padding: 1rem 0; }
  .hero-main .hero-media,
  .hero-side .hero-media { min-height: 200px; }
  .hero-content { padding: 1rem; }
  .hero-large .hero-title {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    -webkit-line-clamp: 3;
  }
  .hero-excerpt {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    margin-top: 0.35rem;
  }
  .story-bundle-hint {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .hero-empty { min-height: 280px; padding: 1.5rem; }
  .trending-split { padding: 0.25rem 0 1rem; }
  .trending-split-grid { gap: 1rem; }
  .trending-list { padding: 0.85rem; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .section-head h2 { font-size: 1.2rem; }
  .section-colored { padding: 1rem; }
  .post-grid,
  .post-grid-4,
  .post-grid-related,
  .pick-row { grid-template-columns: 1fr; }
  .card-title { font-size: 1rem; }
  .card-excerpt { font-size: 0.88rem; line-height: 1.4; }
  .card-media img,
  .card-media .card-placeholder { aspect-ratio: 4/3; }
  .card-meta { font-size: 0.82rem; }
  .mini-card { grid-template-columns: 84px 1fr; }
  .mini-thumb img, .thumb-placeholder { width: 84px; height: 84px; }
  .single-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .single-article { padding: 1rem 1rem 1.25rem; }
  .single-meta { font-size: 0.85rem; gap: 0.5rem 0.75rem; }
  .single-content { font-size: 1rem; line-height: 1.75; }
  .youth-block { padding: 0.95rem 1rem; }
  .youth-block__label { font-size: 0.68rem; margin-bottom: 0.5rem; }
  .article-share { padding: 0.85rem 0.95rem; }
  .article-share__btn {
    min-height: 2.75rem;
    padding: 0.5rem 0.85rem;
  }
  .poll-btn { min-height: 2.75rem; padding: 0.6rem 1.1rem; }
  .breadcrumb-list { word-break: break-word; }
  .breadcrumb-item { min-width: 0; }
  .layout-with-sidebar,
  .single-layout { gap: 1.25rem; padding-bottom: 2rem; }
  .post-translations {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .single-article .ad-slot-below-title .atlas-ad-below-title.atlas-ad-placeholder,
  .single-article .ad-slot-in-content .atlas-ad-in-content.atlas-ad-placeholder {
    aspect-ratio: 320 / 50;
    max-width: 320px;
  }
  .single-article .ad-slot-below-title .atlas-ad-below-title:not(.atlas-ad-placeholder),
  .single-article .ad-slot-in-content .atlas-ad-in-content:not(.atlas-ad-placeholder) {
    min-height: 50px;
  }
  .single-article .ad-slot-below-title .atlas-ad-below-title iframe,
  .single-article .ad-slot-below-title .atlas-ad-below-title ins.adsbygoogle,
  .single-article .ad-slot-in-content .atlas-ad-in-content iframe,
  .single-article .ad-slot-in-content .atlas-ad-in-content ins.adsbygoogle {
    max-width: 320px !important;
  }
  .tab-btn {
    min-height: 2.75rem;
    padding: 0.65rem 0.35rem;
    font-size: 0.78rem;
  }
  .sidebar-search-submit {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .sidebar-search-input {
    min-height: 2.75rem;
    font-size: 1rem;
  }
  .page-numbers {
    min-height: 2.75rem;
    min-width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 1.5rem; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  .strip-pill {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
  .atlas-ad-slot iframe,
  .atlas-ad-slot ins.adsbygoogle {
    max-width: 100% !important;
  }
}
@media (max-width: 400px) {
  .lang-code {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .lang-switcher .lang-item a { padding: 0.35rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .nav-menu {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu li { flex-shrink: 0; }
}
