/* Topics page (lib/topics.js): an A–Z directory in Sapyense's brand (orange #ff5f2d, Manrope). */
.sp-topics-page {
  --sp-orange: #ff5f2d;
  --sp-ink: #16181d;
  --sp-muted: #67717a;
  --sp-card: var(--cs-color-layout-elements-background, #fff);
  --sp-line: rgba(22, 24, 29, 0.1);
  font-family: var(--cs-font-headings-family, 'Manrope'), system-ui, sans-serif;
  color: var(--sp-ink);
  padding-bottom: 96px;
}
[data-scheme="dark"] .sp-topics-page { --sp-ink: #f3f4f6; --sp-muted: #a3a9b0; --sp-card: #191919; --sp-line: rgba(255, 255, 255, 0.12); }
.sp-topics-page a { color: inherit; text-decoration: none; }
.sp-topics-page .cs-container { box-sizing: border-box; }

.sp-tp-head { padding: 72px 0 40px; }
.sp-tp-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sp-orange); }
.sp-tp-title { margin: 0 0 14px; font: 800 clamp(48px, 8vw, 104px)/0.95 var(--cs-font-headings-family, 'Manrope'), sans-serif; letter-spacing: -0.045em; color: var(--sp-ink); }
.sp-tp-sub { max-width: 560px; margin: 0 0 32px; font-size: 18px; line-height: 1.55; color: var(--sp-muted); }
.sp-tp-search { position: relative; max-width: 520px; }
.sp-tp-search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--sp-muted); pointer-events: none; }
.sp-topics-page .sp-tp-search input { width: 100%; height: 58px; padding: 0 20px 0 52px; border: 0; border-radius: 999px; background: var(--sp-card); box-shadow: inset 0 0 0 1px var(--sp-line); font: 600 17px/1 var(--cs-font-headings-family, 'Manrope'), sans-serif; color: var(--sp-ink); }
.sp-topics-page .sp-tp-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sp-orange); }

.sp-tp-az { position: sticky; top: 0; z-index: 5; background: var(--cs-color-site-background, #f5f7f8); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-tp-az .cs-container { display: flex; justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
.sp-tp-az a, .sp-tp-az span { flex: none; display: grid; place-items: center; min-width: 22px; height: 46px; font-size: 15px; font-weight: 800; }
.sp-tp-az a { color: var(--sp-ink); }
.sp-tp-az a:hover, .sp-tp-az a:focus-visible { color: var(--sp-orange); }
.sp-tp-az span { color: var(--sp-muted); opacity: 0.35; }

.sp-tp-list { padding-top: 40px; columns: 3 260px; column-gap: 56px; }
.sp-tp-group { break-inside: avoid; margin: 0 0 36px; padding-top: 16px; border-top: 2px solid var(--sp-ink); scroll-margin-top: 80px; }
.sp-tp-group[hidden] { display: none; }
.sp-tp-letter { margin: 0 0 6px; font: 800 44px/1 var(--cs-font-headings-family, 'Manrope'), sans-serif; letter-spacing: -0.04em; color: var(--sp-orange); }
.sp-tp-items { margin: 0; padding: 0; list-style: none; }
.sp-tp-items li { margin: 0; padding: 0; }
.sp-tp-items li::before { content: none; }
.sp-tp-items a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.sp-tp-name { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--sp-ink); transition: color .15s; }
.sp-tp-items a:hover .sp-tp-name, .sp-tp-items a:focus-visible .sp-tp-name { color: var(--sp-orange); }
.sp-tp-count { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sp-orange); }
.sp-tp-speakers { font-size: 14px; color: var(--sp-muted); }
.sp-tp-empty { column-span: all; padding: 48px 0; font-size: 18px; color: var(--sp-muted); }

@media (max-width: 767px) {
  .sp-tp-head { padding: 48px 0 28px; }
  .sp-tp-az .cs-container { justify-content: flex-start; }
  .sp-tp-list { columns: 1; }
  .sp-tp-letter { font-size: 36px; }
}
