/* Headlines -- same design language as every other app in the portal.
   Palette and form live in ../tokens.css. */

body {
  margin: 0;
  padding: 0 clamp(12px, 4vw, 40px) 60px;
  background: var(--bg);
  color: var(--text);
  font: var(--font);
  max-width: 1100px;
}

header { padding: 28px 0 16px; }
h1 { margin: 0 0 4px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.02em; }
.sub { color: var(--muted); font-size: 13px; }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 15px; margin: 0 0 11px;
}
.note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.note strong { color: var(--text); }

.group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.group:last-child { margin-bottom: 0; }
.group-label {
  flex: 0 0 52px; padding-top: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }

.chip {
  display: flex; align-items: baseline; gap: 7px; cursor: pointer;
  font: inherit; font-size: 12.5px; padding: 6px 11px;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: rgba(255,255,255,.8); }

.controls { display: flex; gap: 10px; align-items: center; margin: 14px 0 12px; }
input {
  font: inherit; font-size: 13px; padding: 7px 10px; min-width: 220px;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* ---- a story ---- */
.story {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 9px; overflow: hidden;
}
.story > summary { cursor: pointer; list-style: none; padding: 13px 15px; display: flex; gap: 13px; }
.story > summary::-webkit-details-marker { display: none; }
.story > summary:hover { background: var(--chip); }

/* Outlet count carries the weight: it is the importance signal, so it reads
   first and biggest. */
.count-badge {
  flex: 0 0 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; align-content: center;
  background: var(--chip); border: 1px solid var(--border);
}
.count-badge b { font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.count-badge span { font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.count-badge.hot { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); }

.story-main { flex: 1; min-width: 0; }
.story-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.story-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.story-meta .pubs { color: var(--text); opacity: .8; }

.split-tag { font-variant-numeric: tabular-nums; }
.split-tag.wide { color: var(--accent); font-weight: 600; }

.coverage { border-top: 1px solid var(--border); padding: 4px 15px 12px; }
.cov { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cov:last-child { border-bottom: 0; }
.cov .dot { flex: 0 0 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.cov .dot.p { background: var(--pos); }
.cov .dot.n { background: var(--neg); }
.cov a { color: inherit; text-decoration: none; }
.cov a:hover { color: var(--accent); text-decoration: underline; }
.cov .who { font-size: 11px; color: var(--muted); margin-top: 3px; }

.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 40px 10px; }

footer { margin-top: 26px; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 90ch; }
