/* ==========================================================================
   Clear Cut Coverage — topic hubs (/topic/ and /topic/<slug>)
   Loaded after css/site.css and css/story.css; reuses .page-head*, .story-cols,
   .story-col*, .story-item*, .story-list*, .related*. Tokens only — DESIGN.md §3.
   ========================================================================== */

/* ---------- index: one section per kind ---------- */
.topic-kind {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}
.topic-kind:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.topic-kind__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin-bottom: .25rem;
}
.topic-kind__head h2 {
  margin: 0;
  font: 500 1.6rem/1.2 var(--font-serif); color: var(--ink);
}
.topic-kind__head p {
  margin: 0;
  font: 500 .75rem/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}

.topic-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
}
.topic-row {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  min-width: 0;
}
.topic-grid .topic-row:nth-child(-n+3) { border-top: 0; }
.topic-row__name {
  margin: 0;
  font: 500 1.25rem/1.25 var(--font-serif); color: var(--ink);
  overflow-wrap: anywhere;
}
.topic-row__name a { color: inherit; text-decoration: none; }
.topic-row__name a:hover {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.topic-row__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  margin: 6px 0 0;
  font: 500 .75rem/1.4 var(--font-sans); color: var(--ink-3);
}
.topic-row__meta > *:not(:last-child)::after { content: "·"; margin: 0 .5em; color: var(--ink-3); }
.topic-row__meta strong { color: var(--ink-2); font-weight: 600; }
.topic-row--quiet .topic-row__name { color: var(--ink-2); }

/* spectrum bar: three segments proportional to the week's liberal / neutral / conservative share */
.topic-bar {
  display: flex; height: 4px; margin-top: 10px; border-radius: 2px; overflow: hidden;
  background: var(--surface-2);
}
.topic-bar__seg { display: block; height: 100%; min-width: 0; }
.topic-bar__seg--liberal { background: var(--liberal); }
.topic-bar__seg--neutral { background: var(--neutral); }
.topic-bar__seg--conservative { background: var(--conservative); }

/* ---------- hub ---------- */
.hub-section {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}
.hub-section:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.hub-section__head { margin-bottom: .5rem; }
.hub-section__head h2 {
  margin: 0;
  font: 500 1.6rem/1.2 var(--font-serif); color: var(--ink);
}
.hub-section__head p {
  margin: .35rem 0 0;
  font: 400 .875rem/1.5 var(--font-sans); color: var(--ink-3);
}
.hub-section__head a {
  color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.hub-section .story-cols { margin-top: 1rem; }

/* topic chips (related topics on hubs; "Topics:" row on story pages uses .page-head__links) */
.topic-chips {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.topic-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  font: 500 .875rem/1.3 var(--font-sans); color: var(--ink);
  text-decoration: none; background: var(--surface);
}
.topic-chip:hover { background: var(--surface-2); border-color: var(--ink-3); }
.topic-chip__n { font-size: .75rem; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid .topic-row:nth-child(-n+3) { border-top: 1px solid var(--rule); }
  .topic-grid .topic-row:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 600px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-grid .topic-row:nth-child(-n+2) { border-top: 1px solid var(--rule); }
  .topic-grid .topic-row:first-child { border-top: 0; }
  .topic-kind__head h2, .hub-section__head h2 { font-size: 1.35rem; }
}
