/* ============================================================
   COG — Mobile + responsive
   Breakpoints: ≤1024 / ≤768 / ≤480
   ============================================================ */

/* ---- ≤1024: tablet ---- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .cog-header__inner { gap: 16px; }
  .cog-header__nav { display: none; }
  .cog-header__menu-btn { display: inline-flex; }

  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__rail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  .hero-dash__stats { grid-template-columns: repeat(2, 1fr); }

  .stream__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .agencies__grid { grid-template-columns: repeat(3, 1fr); }
  .cross-grid { grid-template-columns: 1fr; gap: 32px; }
  .anchors__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- ≤768: tablet portrait / large phone ---- */
@media (max-width: 768px) {
  .hero { padding: 32px 0 40px; }
  .hero__masthead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__masthead-right { flex-wrap: wrap; }
  .hero__title { font-size: clamp(32px, 7vw, 48px) !important; line-height: 1.05; }
  .hero__rail { grid-template-columns: 1fr; }

  .hero-dash { grid-template-columns: 1fr; gap: 28px; }
  .hero-dash__title { font-size: clamp(36px, 9vw, 56px) !important; }
  .hero-dash__cta { flex-wrap: wrap; }

  .hero-manif__title { font-size: clamp(48px, 12vw, 96px) !important; }
  .hero-manif__triple { grid-template-columns: 1fr; gap: 12px; }
  .hero-manif__lede { font-size: 16px !important; }

  .ticker__label { display: none; }

  .section { padding: 48px 0 !important; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head h2 { font-size: clamp(28px, 6vw, 40px) !important; }

  .stream__filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 0 -20px 20px; padding: 0 20px 8px; }
  .stream__filter { white-space: nowrap; flex-shrink: 0; }

  .agencies__grid { grid-template-columns: repeat(2, 1fr); }

  .briefing { grid-template-columns: 1fr; gap: 20px; padding: 24px !important; }
  .briefing__left { display: flex; justify-content: center; }
  .briefing__player { flex-wrap: wrap; gap: 8px; }
  .briefing__chapters { grid-template-columns: 1fr !important; }

  .map-card__map svg { min-height: 280px; }
  .map-card__head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .anchors__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .anchor-card { padding: 20px 16px !important; }

  .newsletter { padding: 40px 24px !important; }
  .newsletter__title { font-size: clamp(28px, 6vw, 40px) !important; }
  .newsletter__form { flex-direction: column; gap: 10px; }
  .newsletter__form input,
  .newsletter__submit { width: 100%; }

  .footer__inner { grid-template-columns: 1fr 1fr; }

  /* Search overlay full-screen on mobile */
  .search-overlay { padding-top: 0; }
  .search-overlay__panel { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}

/* ---- ≤480: phone ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .cog-header__sub { display: none; }
  .cog-header__name { font-size: 18px !important; }
  .cog-header__actions .btn { display: none; } /* hide subscribe CTA, keep search + dark toggle */

  .hero__date { font-size: 10px !important; }
  .hero__byline { flex-wrap: wrap; }

  .hero-dash__stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-dash__stat-num { font-size: 36px !important; }

  .stream__grid { grid-template-columns: 1fr; gap: 20px; }
  .story { padding: 20px !important; }
  .story__title { font-size: 20px !important; }

  .agencies__grid { grid-template-columns: 1fr; }
  .agency-card { padding: 14px !important; }

  .topics__cloud { gap: 6px; }
  .topic-chip { font-size: 14px !important; }

  .trending__item { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .trending__rank { font-size: 24px !important; }

  .anchors__grid { grid-template-columns: 1fr; }
  .anchor-card { display: flex; align-items: center; gap: 16px; text-align: left; }
  .anchor-card .cog-avatar { width: 56px !important; height: 56px !important; flex-shrink: 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__col--brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .map-card { padding: 20px !important; }

  .briefing__art { width: 88px; height: 88px; }
  .briefing__title { font-size: 22px !important; }
  .briefing__time { font-size: 11px !important; }
}

/* ---- Mobile menu drawer (used at ≤1024) ---- */
.cog-header__menu-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 8px; cursor: pointer; color: var(--ink);
}
.cog-header__menu-btn:hover { background: var(--bg-tint); }

.cog-mobile-drawer {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 80px 24px 32px;
  overflow-y: auto;
}
.cog-mobile-drawer.is-open { display: flex; }
.cog-mobile-drawer a {
  display: block;
  padding: 16px 4px;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.cog-mobile-drawer a:hover { color: var(--accent); }
.cog-mobile-drawer__close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: var(--bg-tint); border: 1px solid var(--rule);
  border-radius: 50%; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.cog-mobile-drawer__cta { margin-top: 24px; padding: 14px; text-align: center; }

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__inner { animation: none !important; }
}
