/* /topics/ and /topics/[slug]: editorial lists with a 1px ink top rule and light dividers, a
   side column for deadlines and related links that drops below the lists on narrow screens. */

.tp-page .kicker a { color: inherit; text-decoration: none; }
.tp-page .kicker a:hover { text-decoration: underline; }
.tp-page h1 { max-width: 860px; }
.tp-lead { max-width: 760px; }
.tp-intro { max-width: 720px; margin: -12px 0 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 17px; line-height: 1.65; }

/* Topic index */
.tp-index { max-width: 860px; }
.tp-topic-name { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.25; }
.tp-topic-name a { color: var(--ink); text-decoration: none; }
.tp-topic-name a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.tp-topic-desc { margin: 6px 0 0; color: var(--ink-2); }
.tp-counts { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Topic page */
.tp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.tp-main, .tp-side { min-width: 0; }
.tp-section { margin-top: 48px; }
.tp-main > .tp-section:first-child, .tp-side > .tp-section:first-child { margin-top: 0; }
.tp-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.tp-section h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; }
.tp-more { font-size: 15px; font-weight: 600; }
.tp-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; max-width: 680px; }

.tp-row { display: flex; gap: 8px 28px; }
.tp-date { flex: 0 0 104px; display: flex; flex-direction: column; font-size: 15px; }
.tp-day, .tp-time { font-weight: 700; }
.tp-body { flex: 1 1 auto; min-width: 0; }
.tp-title { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tp-title a { color: var(--ink); text-decoration: none; }
.tp-title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tp-summary { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.tp-meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tp-ce { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; }
.tp-ce-label { font-weight: 600; color: var(--ink-2); }
.tp-noce { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tp-chip { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--accent-tint); color: var(--accent-tint-ink); }
.tp-chip-pending { padding: 3px 9px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line-strong); }

/* Side column: deadlines and related links */
.tp-side-block { padding-top: 16px; border-top: 1px solid var(--ink); }
.tp-side-block h2 { font-size: 22px; }
.tp-side-block .tp-section-head { margin-bottom: 8px; }
.tp-dls, .tp-related { margin: 0; padding: 0; list-style: none; }
.tp-dl { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tp-dl-date { font-weight: 700; font-size: 14px; }
.tp-dl-title { font-weight: 600; }
.tp-dl-who { color: var(--muted); font-size: 14px; }
.tp-related li { border-bottom: 1px solid var(--line); }
.tp-related a { display: flex; align-items: center; min-height: var(--touch); padding: 6px 0; font-weight: 600; }

.tp-empty { max-width: 680px; border-top: 1px solid var(--ink); }
.tp-empty p { margin: 0 0 10px; }
.tp-notfound { max-width: 480px; border-top: 1px solid var(--ink); }
.tp-fine { max-width: 760px; margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .tp-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 640px) {
  .tp-intro { font-size: 16px; }
  .tp-row { flex-direction: column; }
  .tp-date { flex: none; flex-direction: row; flex-wrap: wrap; gap: 0 8px; }
  .tp-section h2 { font-size: 24px; }
  .tp-topic-name { font-size: 22px; }
  .tp-title { font-size: 19px; }
}
