/* Topics page (Topics.dc.html). Classes are prefixed tp- because all page stylesheets are loaded together. */
.tp-hero { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.tp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tp-filters .seg { gap: 4px; }
.tp-filters .seg button { padding: 0 14px; }

.tp-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: -8px 0; font-size: 13px; color: var(--ink-2); }
.tp-scope button { min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 500; cursor: pointer; }
.tp-scope button:hover { text-decoration: underline; }

.tp-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.tp-col { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; border-radius: var(--radius-card); background: var(--surface-column); }
.tp-col.current { flex: 2.4 1 480px; background: var(--surface); }
.tp-col-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.tp-col.current .tp-col-head { border-bottom: 2px solid var(--ink); }
.tp-col.planned .tp-col-head { border-bottom: 1px dashed var(--accent); }
.tp-count { font: 300 30px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-display-grey); }
.tp-col.current .tp-count { color: var(--ink); }
.tp-col.planned .tp-count { color: var(--accent); }
.tp-none { margin: 0; padding: 8px 0 4px; font-size: 13px; color: var(--ink-3); }

.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.tp-col.current .tp-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.tp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px; border-radius: var(--radius-tile); background: var(--surface); border: 1px solid var(--surface-column); transition: transform .15s ease; }
.tp-card:hover { transform: translateY(-2px); }
.tp-col.past .tp-card { background: var(--surface-muted); }
.tp-col.planned .tp-card { background: transparent; border: 1.5px dashed var(--ink-display-grey); }
.tp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tp-type { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tp-name { font: 600 16px/1.25 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tp-lead { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 2px; font-size: 12px; color: var(--ink-3); }

.tp-key { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 12px; color: var(--ink-2); }
.tp-key b { font-weight: 600; color: var(--ink); }
.tp-key > span { display: flex; align-items: center; gap: 6px; }

@media (prefers-reduced-motion: reduce) { .tp-card { transition: none; } .tp-card:hover { transform: none; } }
