/* Focused topic pages. Shared components, typography and palette stay in site.css. */
.topic-page main > section { padding-block: clamp(64px, 7.2vw, 104px); }
.topic-page .topic-hero { padding-block: 30px clamp(60px, 7vw, 96px); background: var(--paper); border-bottom: 1px solid var(--line); }
.topic-breadcrumb { margin-bottom: clamp(44px, 5vw, 72px); }
.topic-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 0; list-style: none; color: var(--text-2); font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.topic-breadcrumb li + li::before { content: "/"; display: inline-block; margin-right: 12px; color: var(--text-3); }
.topic-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.topic-hero .eyebrow { color: var(--text-2); margin-bottom: 20px; }
.topic-hero h1 { max-width: 15ch; font-size: clamp(46px, 6.1vw, 88px); font-weight: 850; font-stretch: 112%; line-height: 0.99; letter-spacing: -0.045em; overflow-wrap: normal; }
.topic-lead { max-width: 66ch; margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--text-2); }
.topic-page .topic-section-heading { display: block; }
.topic-page .section-intro h2, .topic-page .sec-head h2, .topic-page .skill > .wrap > h2, .topic-page .faq h2 { max-width: 20ch; font-size: clamp(36px, 4vw, 58px); line-height: 1.04; }
.topic-page .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.topic-page .network-signature { margin-bottom: 30px; }
.topic-page .topic-notes { background: var(--paper); border-top: 1px solid var(--line); }
.topic-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.topic-notes-1 { grid-template-columns: minmax(0, 1fr); }
.topic-notes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.topic-note { min-width: 0; padding-top: 22px; border-top: 2px solid var(--ink); }
.topic-note h2 { max-width: 25ch; font-size: clamp(27px, 2.5vw, 36px); line-height: 1.12; }
.topic-note p { max-width: 65ch; margin-top: 22px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.topic-note ul { margin: 20px 0 0; padding-left: 20px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.topic-note li + li { margin-top: 12px; }
.topic-note-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; font-size: 16px; font-weight: 700; }
.topic-page .nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--on-ink); text-decoration: underline; text-underline-offset: 7px; }
.topic-page .footer-nav a[aria-current="page"] { color: var(--on-ink); text-decoration: underline; }
.topic-page .topic-hero :focus-visible, .topic-page .topic-notes :focus-visible { outline-color: var(--ink); }
@media (max-width: 980px) {
  .topic-page .faq-grid, .topic-notes-3 { grid-template-columns: minmax(0, 1fr); }
  .topic-notes-3 { gap: 36px; }
  .topic-notes-3 .topic-note { max-width: 70ch; }
}
@media (max-width: 640px) {
  .topic-page main > section { padding-block: 58px; }
  .topic-page .topic-hero { padding-block: 20px 54px; }
  .topic-breadcrumb { margin-bottom: 36px; }
  .topic-breadcrumb ol { font-size: 10px; gap: 4px 10px; }
  .topic-breadcrumb li + li::before { margin-right: 10px; }
  .topic-hero h1 { font-size: clamp(42px, 11vw, 62px); line-height: 1.02; }
  .topic-lead { margin-top: 24px; font-size: 18px; }
  .topic-hero .eyebrow { font-size: 10px; line-height: 1.6; }
  .topic-page .section-intro h2, .topic-page .sec-head h2, .topic-page .skill > .wrap > h2, .topic-page .faq h2 { font-size: clamp(32px, 8.5vw, 42px); line-height: 1.08; }
  .topic-notes-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .topic-note h2 { font-size: 29px; }
  .topic-note p { margin-top: 18px; font-size: 17px; }
}
