/* ── NaijaBuzz responsive.css — all media queries ── */
@media (min-width: 769px) {
  .nb-tabs-inner { overflow-x: visible; }
  .nb-tab { min-width: unset; flex: 1; }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .nb-feed { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nb-tab { min-height: 48px; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: center; }
  .nb-tab.active { background: rgba(201,146,42,0.18); color: #fff; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .container { padding: 0 .75rem; margin-top: 1rem; }
  .card-img { aspect-ratio: 400/220; }
  .nb-header-main { padding: 0.55rem 0.85rem; }
  .nb-logo-name { font-size: 2rem; }
  .nb-logo-tagline { display: block; font-size: 0.68rem; letter-spacing: 0.8px; color: rgba(255,255,255,0.9); font-weight: 600; }
  .nb-logo-mark { width: 40px; height: 40px; }
  .nb-logo-mark svg { width: 28px; height: 28px; }
  .article-title { font-size: 1.65rem; }
  .nb-privacy { padding: 0 1.25rem; margin: 1rem auto; }
  .nb-privacy h1 { font-size: 1.4rem; }
  .nb-cookie-text { flex-direction: column; gap: .3rem; align-items: flex-start; }
  .nb-cookie-text strong { font-size: 1rem; }
  .nb-cookie-text span { font-size: 0.84rem; }
  #nb-cookie-banner { flex-wrap: wrap; }
  .nb-cookie-btns { width: 100%; justify-content: flex-end; margin-top: .4rem; }
  .nb-cookie-btn { flex: 1; text-align: center; }
  #nb-install-banner.pushed { transform: translateY(-110px); }
  .nb-hero-grid { grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 1.25rem; }
  .nb-hero-body h2 { font-size: 1.05rem; }
  .nb-feed { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .nb-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 1.25rem 1.5rem; }
  .nb-footer-col--brand { grid-column: 1 / -1; }
  .nb-footer-desc { max-width: 100%; }
  .nb-footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem 1.25rem; }
  .nb-bottom-nav {
    display: flex; position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900; background: var(--primary);
    border-top: 1px solid var(--border);
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  }
  .nb-bn-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; cursor: pointer;
    background: none; border: none;
    color: var(--text2);
    font-size: 0.58rem; font-weight: 600;
    letter-spacing: 0.03em; text-decoration: none; padding: 0;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nb-bn-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nb-bn-item.active { color: var(--gold); }
  .nb-bn-item:active  { color: var(--gold); }
  #nb-main   { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .nb-footer { margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .nb-logo-name { font-size: 1.6rem; }
  .nb-logo-tagline { display: block; font-size: 0.55rem; letter-spacing: 0.5px; color: rgba(255,255,255,0.9); font-weight: 600; white-space: nowrap; overflow: visible; }
  .nb-logo-mark { width: 36px; height: 36px; }
  .nb-logo-mark svg { width: 24px; height: 24px; }
  .nb-icon-btn { width: 36px; height: 36px; }
  .nb-icon-btn svg { width: 18px; height: 18px; }
  .nb-header-actions { gap: 0.25rem; }
  .nb-tabs-inner { min-width: unset; }
  .nb-tab { font-size: 0.74rem; padding: 0.65rem 0.7rem; }
  .article-title { font-size: 1.4rem; }
  .article-wrap { padding: 0 1rem; }
  .nb-hero-grid { gap: 0.75rem; }
  .grid { grid-template-columns: 1fr; }
  .nb-footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem 1rem 1rem; }
  .nb-footer-col--brand { grid-column: 1 / -1; }
  .nb-footer-name { font-size: 1.15rem; }

  /* ── Horizontal list layout for mobile feed ── */
  .nb-feed { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
  .nb-feed-item { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
  .nb-feed-item .card-link { flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.75rem 0; height: auto; }
  .nb-feed-thumb { width: 90px; min-width: 90px; height: 68px; aspect-ratio: unset; border-radius: 8px; flex-shrink: 0; }
  .nb-feed-thumb .nb-cat-badge { display: none; }
  .nb-feed-body { padding: 0; gap: 0.2rem; }
  .nb-feed-cat { display: block; }
  .nb-feed-body h2 { font-size: 0.875rem; -webkit-line-clamp: 2; font-family: 'Inter', sans-serif; }
  .nb-feed-body .card-meta { font-size: 0.68rem; }
  .nb-feed-body .read-more { display: none; }
}

@media (max-width: 480px) {
  .nb-new-tag {
    font-size: 0.65rem;
    padding: 2px 7px;
  }
}

/* ── Hero hierarchy on small mobile ── */
@media (max-width: 480px) {

  /* Primary hero — full bleed, dominant */
  .nb-hero-card:first-child .nb-hero-body h2 {
    font-size: 1.25rem;
    -webkit-line-clamp: 3;
  }

  /* Secondary hero — horizontal style, smaller */
  .nb-hero-card:nth-child(2) {
    box-shadow: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
  .nb-hero-card:nth-child(2) .card-link {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
  .nb-hero-card:nth-child(2) .nb-hero-img {
    width: 110px;
    min-width: 110px;
    height: 80px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .nb-hero-card:nth-child(2) .nb-hero-body {
    padding: 0 0.5rem 0 0;
  }
  .nb-hero-card:nth-child(2) .nb-hero-body h2 {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    font-family: 'Inter', sans-serif;
  }
  .nb-hero-card:nth-child(2) .card-excerpt {
    display: none;
  }
}
