.resource-page {
  --ink: #080b12;
  --panel: #111622;
  --rule: #252b38;
  --text: #f4f6fb;
  --muted: #a5adbd;
  --cyan: #8bbcff;
  color-scheme: dark;
  font-size: 1rem;
}

.resource-page .masthead { border-bottom: 1px solid var(--rule); }
.resource-page .masthead nav { flex-wrap: wrap; }
.resource-page a { text-decoration-color: #8bbcff; }
.resource-page p, .resource-page li { overflow-wrap: anywhere; }
.resource-page h1, .resource-page h2, .resource-page h3 { font-family: var(--body); }
.skip { position: fixed; top: -80px; left: 12px; z-index: 10; padding: 12px; background: white; color: #111827; }
.skip:focus { top: 12px; }
.resource-main { padding-bottom: 5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; color: var(--muted); font-size: .875rem; }
.resource-hero { max-width: 52rem; padding-block: 3rem 1.5rem; }
.eyebrow { color: #a9b9d4; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.resource-hero h1 { margin: 1rem 0 1.5rem; font-size: clamp(2.4rem, 5.6vw, 4.7rem); line-height: 1.06; letter-spacing: -.045em; }
.resource-lead { max-width: 46rem; color: var(--muted); font-size: 1.2rem; }
.reviewed { color: var(--muted); font-size: .85rem; }
.guide-callout { max-width: 52rem; padding: 1.2rem 1.4rem; border: 1px solid var(--rule); border-left: 3px solid #92baff; border-radius: .6rem; background: var(--panel); }
.guide-figure { margin: 2.5rem 0 3.5rem; }
.guide-figure a { display: block; border: 1px solid var(--rule); border-radius: .75rem; overflow: hidden; }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { max-width: 48rem; margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 48rem) minmax(12rem, 1fr); gap: 4rem; margin-top: 3rem; align-items: start; }
.guide-toc { grid-column: 2; grid-row: 1; position: sticky; top: 2rem; border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.guide-toc h2 { margin-top: 0; font-size: 1rem; }
.guide-toc ol { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .9rem; }
.guide-toc li + li { margin-top: .7rem; }
.guide-content { grid-column: 1; grid-row: 1; min-width: 0; }
.guide-content section { scroll-margin-top: 2rem; }
.guide-content section + section { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.guide-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.guide-content h3 { margin: 1.75rem 0 .5rem; font-size: 1.15rem; }
.guide-content p { max-width: 47rem; }
.guide-content ul, .guide-content ol { padding-left: 1.4rem; }
.guide-content li + li { margin-top: .65rem; }
kbd { padding: .1rem .35rem; border: 1px solid var(--rule); border-radius: .25rem; background: var(--panel); font-size: .85em; }

@media (max-width: 52rem) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .guide-toc { grid-column: 1; grid-row: 1; position: static; padding: 1.25rem; border: 1px solid var(--rule); border-radius: .6rem; background: var(--panel); }
  .guide-content { grid-column: 1; grid-row: 2; }
  .resource-hero { padding-top: 2rem; }
}

@media (max-width: 30rem) {
  .resource-page .masthead nav { gap: .7rem 1rem; font-size: .875rem; }
  .guide-callout { padding: 1rem; }
}
