:root {
  color-scheme: light;
  font-family: serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: #111; background: #fff; font-size: 17px; line-height: 1.65; }
a { color: #0645ad; text-underline-offset: .12em; }
a:visited { color: #551a8b; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.shell { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #ddd; }
.site-header__inner { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; padding: .85rem 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.brand { color: #111; font-weight: bold; }
.brand:visited { color: #111; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin: 1.5rem 0 1rem; color: #555; font-size: .9rem; }
.breadcrumbs a { color: inherit; }
.page-intro { max-width: 48rem; padding: 1.5rem 0 1rem; }
.page-intro h1, .article-header h1 { margin: .2rem 0 .75rem; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; }
.page-intro > p:last-child { color: #444; font-size: 1.08rem; }
.eyebrow { margin: 0; color: #555; font-size: .82rem; font-weight: bold; text-transform: uppercase; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem 0 3.5rem; }
.resource-card { display: flex; min-height: 14rem; padding: 1.25rem; flex-direction: column; border: 1px solid #ddd; }
.resource-card h2 { margin: .4rem 0 .6rem; font-size: 1.35rem; line-height: 1.3; }
.resource-card > p:not(.eyebrow) { margin: 0 0 .85rem; color: #444; }
.resource-date { margin-top: auto; color: #555; font-size: .9rem; }

.article-page { max-width: 70rem; }
.article-header { max-width: 50rem; padding: 1.5rem 0 2rem; border-bottom: 1px solid #ddd; }
.article-meta { color: #555; font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: minmax(11rem, 14rem) minmax(0, 46rem); align-items: start; justify-content: space-between; gap: 3rem; padding: 2.5rem 0; }
.toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.toc h2 { margin: 0 0 .6rem; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .3rem 0; line-height: 1.35; }
.toc .toc-depth-3 { margin-left: .75rem; }
.toc a { font-size: .86rem; }

.prose { min-width: 0; max-width: 70ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { line-height: 1.25; scroll-margin-top: 1rem; }
.prose h2 { margin: 2.7rem 0 .8rem; font-size: 1.65rem; }
.prose h3 { margin: 2rem 0 .65rem; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.15rem; }
.prose li + li { margin-top: .3rem; }
.direct-answer { padding: .9rem 1rem; background: #f5f5f5; border-left: 3px solid #777; }
.prose blockquote { margin-inline: 0; padding: .25rem 1rem; background: #f7f7f7; border-left: 3px solid #aaa; }
.prose code { padding: .05em .2em; background: #f1f1f1; border: 1px solid #e5e5e5; font-size: .9em; }
.prose pre { max-width: 100%; margin: 1.25rem 0; padding: 1rem; overflow-x: auto; background: #f5f5f5; border: 1px solid #ddd; font-size: .86rem; line-height: 1.5; }
.prose pre code { padding: 0; background: transparent; border: 0; }
.table-scroll { max-width: 100%; margin: 1.25rem 0 1.75rem; overflow-x: auto; border: 1px solid #ddd; }
.prose table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.prose th, .prose td { padding: .65rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; }
.prose th { background: #eee; }
.prose tbody tr:nth-child(even) { background: #fafafa; }
.prose tbody tr:last-child td { border-bottom: 0; }

.article-footer { margin-left: auto; max-width: 46rem; padding-bottom: 3.5rem; }
.related, .cta { margin-top: 1.5rem; padding: 1.15rem; border: 1px solid #ddd; }
.related h2, .cta h2 { margin: .35rem 0 .5rem; font-size: 1.3rem; line-height: 1.3; }
.related p:last-child, .cta p { margin: 0; color: #444; }
.cta { background: #f7f7f7; }
.cta-link { display: inline-block; margin-top: .75rem; font-weight: bold; }
.back-link { margin-top: 1.5rem; }
.site-footer { padding: 1.5rem 0; color: #555; border-top: 1px solid #ddd; font-size: .9rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 48rem) {
  .site-header__inner { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .article-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .toc { position: static; max-height: none; padding: 1rem; border: 1px solid #ddd; }
  .article-footer { margin-left: 0; }
}

@media (max-width: 38rem) {
  body { font-size: 16px; }
  .shell, .site-header__inner { width: min(100% - 1.25rem, 70rem); }
  .card-grid { grid-template-columns: 1fr; }
  .site-footer .shell { flex-direction: column; }
}
