/* ============================================================
   COG — Section styles (stream, agencies, topics, map, briefing, newsroom, footer)
   ============================================================ */

.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section--stream { padding-top: 64px; }
.section--briefing { background: var(--bg-tint); }

/* ===== STREAM ===== */
.stream__filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.stream__filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--rule);
  transition: all 0.15s;
}
.stream__filter:hover { background: var(--bg-tint); border-color: var(--rule-strong); }
.stream__filter.is-active {
  background: var(--navy-800); color: white; border-color: var(--navy-800);
}
html.dark .stream__filter.is-active { background: var(--blue-500); border-color: var(--blue-500); }
.stream__filter-count {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,0.08);
  padding: 1px 6px; border-radius: 100px;
  color: inherit;
}
.stream__filter.is-active .stream__filter-count { background: rgba(255,255,255,0.18); }

.stream__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.stream__empty { padding: 48px; text-align: center; color: var(--ink-3); }

/* Story card */
.story {
  padding: 28px 24px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
  background: var(--bg);
}
.story:hover { background: var(--bg-tint); }
.story:last-child { border-right: 1px solid var(--rule); }
@media (max-width: 980px) { .story { border-right: none; } }
@media (min-width: 980px) {
  .stream__grid > .story:nth-child(3n) { border-right: none; }
}

.story__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story__kicker { font-size: 10px; }
.story__title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.story__dek { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0; flex: 1; }
.story__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}
.story__byline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.story__meta { display: flex; gap: 6px; font-size: 11px; color: var(--ink-3); }

/* ===== AGENCIES ===== */
.agencies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.agency-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: all 0.15s;
  color: var(--ink);
}
.agency-card:hover { border-color: var(--ink-3); transform: translateX(2px); }
.agency-card__chip {
  width: 52px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 3px; flex-shrink: 0;
}
.agency-card__body { flex: 1; min-width: 0; }
.agency-card__name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
}
.agency-card__count { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ===== TOPICS + TRENDING split ===== */
.split-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
@media (max-width: 900px) { .split-2col { grid-template-columns: 1fr; gap: 40px; } }

.topics__cloud {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: baseline;
}
.topic-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.15s;
}
.topic-chip:hover { background: var(--navy-800); color: white; border-color: var(--navy-800); }
.topic-chip:hover .topic-chip__count { color: rgba(255,255,255,0.7); }
.topic-chip__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

/* Trending */
.trending__list { list-style: none; margin: 0; padding: 0; }
.trending__item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.trending__item:last-child { border-bottom: none; }
.trending__rank {
  font-size: 32px; font-weight: 600; line-height: 1;
  color: var(--ink-4);
  letter-spacing: -0.02em;
  font-style: italic;
}
.trending__title {
  font-size: 14px; font-weight: 500; line-height: 1.4;
  color: var(--ink);
  transition: color 0.15s;
}
.trending__title:hover { color: var(--accent); }
.trending__reads { font-size: 11px; color: var(--ink-3); }

/* ===== MAP ===== */
.map-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.map-card__head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.map-card__title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 6px 0 0; letter-spacing: -0.01em; }
.map-card__legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.map-card__swatch { width: 16px; height: 14px; border-radius: 2px; border: 1px solid var(--rule); }
.map-card__map { position: relative; }
.map-card__tooltip {
  position: absolute; top: 8px; right: 8px;
  background: var(--navy-900); color: white;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 12px;
  box-shadow: var(--shadow-2);
}

/* ===== BRIEFING (audio) ===== */
.briefing {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-1);
}
@media (max-width: 800px) {
  .briefing { grid-template-columns: 1fr; gap: 24px; padding: 24px; text-align: center; }
}
.briefing__art {
  position: relative;
  width: 140px; height: 140px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 800px) { .briefing__art { margin: 0 auto; } }
.briefing__art-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.briefing__art-rings span {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(125, 179, 235, 0.3);
  animation: ringExpand 2.4s ease-out infinite;
}
@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.briefing__title { font-size: 28px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; line-height: 1.1; }
.briefing__byline { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 800px) { .briefing__byline { justify-content: center; } }
.briefing__sep { color: var(--rule-strong); }

.briefing__player {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 16px;
}
@media (max-width: 800px) { .briefing__player { flex-wrap: wrap; justify-content: center; } }
.briefing__btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule);
  transition: background 0.15s;
}
.briefing__btn:hover { background: var(--bg-tint); }
.briefing__play {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.briefing__play:hover { background: var(--navy-700); }
html.dark .briefing__play { background: var(--blue-500); }
html.dark .briefing__play:hover { background: var(--blue-400); }
.briefing__bar {
  flex: 1; min-width: 200px;
  height: 6px;
  background: var(--bg-tint);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.briefing__bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--navy-800);
  border-radius: 3px;
  transition: width 0.1s linear;
}
html.dark .briefing__bar-fill { background: var(--blue-500); }
.briefing__bar-marker {
  position: absolute; top: -3px; width: 2px; height: 12px;
  background: var(--ink-4);
  border-radius: 1px;
  pointer-events: none;
}
.briefing__time {
  font-size: 12px; color: var(--ink-3);
  min-width: 80px; text-align: right;
}
.briefing__chapters { display: flex; gap: 6px; flex-wrap: wrap; }
.briefing__chapter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tint);
  border-radius: 100px;
  font-size: 12px; color: var(--ink-2);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.briefing__chapter:hover { background: var(--rule); }
.briefing__chapter.is-active {
  background: var(--bg-elev);
  border-color: var(--accent-ink);
  color: var(--ink);
  font-weight: 600;
}
.briefing__chapter .mono { color: var(--ink-3); font-size: 10px; }

/* ===== NEWSROOM ===== */
.anchors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
}
.anchor-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.15s;
  color: var(--ink);
}
.anchor-card:hover { background: var(--bg-elev); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.anchor-card__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.anchor-card__role { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.anchor-card__beat { font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ===== NEWSLETTER ===== */
.section--newsletter { padding: 64px 0; border: none; background: var(--bg); }
.newsletter {
  position: relative;
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  overflow: hidden;
}
@media (max-width: 700px) { .newsletter { padding: 40px 24px; } }
.newsletter__bg { position: absolute; inset: 0; pointer-events: none; }
.newsletter__stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.5) 1.2px, transparent 1.6px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.4) 1px, transparent 1.4px),
    radial-gradient(circle at 35% 75%, rgba(125, 179, 235, 0.6) 1.4px, transparent 1.8px),
    radial-gradient(circle at 88% 30%, rgba(178, 34, 52, 0.4) 1.4px, transparent 1.8px);
  background-size: 70px 70px, 90px 90px, 110px 110px, 120px 120px;
  opacity: 0.7;
}
.newsletter__content { position: relative; max-width: 640px; }
.newsletter__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: white;
}
.newsletter__dek { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 0 28px; max-width: 56ch; }
.newsletter__form {
  display: flex; gap: 8px; max-width: 480px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 14px;
}
.newsletter__form input {
  flex: 1; border: none; background: transparent; outline: none;
  color: white; font: inherit; font-size: 14px;
  padding: 10px 12px;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter__submit { background: var(--blue-500); flex-shrink: 0; }
.newsletter__submit:hover { background: var(--blue-400); }
.newsletter__thanks {
  padding: 14px 20px;
  background: rgba(47, 125, 74, 0.2);
  border: 1px solid rgba(47, 125, 74, 0.5);
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
}
.newsletter__meta { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }
.newsletter__meta strong { color: white; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  margin-top: 0;
}
.footer .flag-stripe { background: linear-gradient(90deg, var(--navy-700) 0% 33%, white 33% 66.6%, var(--flag-red) 66.6% 100%); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 32px;
}
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 13px; color: rgba(255,255,255,0.7);
  transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.footer__col a:hover { color: white; }
.footer__heading {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand-name { font-family: var(--serif); font-size: 28px; font-weight: 700; color: white; line-height: 1; }
.footer__brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 2px; }
.footer__mission { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 0 16px; }
.footer__tagline {
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--blue-300);
  font-weight: 700;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; color: rgba(255,255,255,0.5);
}
@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ===== TWO-COLUMN SECTION (topics + trending side-by-side) ===== */
.section--cross { padding: 72px 0; }
.cross-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 1100px) {
  .cross-grid { grid-template-columns: 1fr 1fr; }
  .cross-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) { .cross-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Tweaks panel small overrides */
.tweaks-handle, .tweaks-panel { font-family: var(--sans) !important; }
