/* Reading and wayfinding for the guide library. Inherits Proovd's site tokens. */
* { box-sizing: border-box; }
body { margin: 0; }
.blog-guide, .blog-index { font-size: 1rem; line-height: 1.7; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 100; padding: 0.8rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.875rem; margin-bottom: 2.5rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(12rem, 17rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.guide-layout > * { min-width: 0; }
.blog-guide h1 { max-width: 24ch; font-size: clamp(2.25rem, 4.4vw, 3.75rem) !important; line-height: 1.12 !important; letter-spacing: -0.035em !important; }
.blog-guide article h2, .blog-index h2 { font-size: clamp(1.45rem, 2.5vw, 2rem) !important; line-height: 1.3 !important; scroll-margin-top: 6rem; }
.guide-byline { color: var(--muted); font-size: 0.875rem; margin: 1rem 0 1.5rem; }
.guide-intro { font-size: 1.125rem; line-height: 1.7; margin-bottom: 2rem; }
.blog-guide article p { margin: 0 0 1.25rem; }
.blog-guide article ul, .blog-guide article ol { padding-left: 1.4rem; }
.blog-guide article li { margin-bottom: 0.7rem; }
.blog-guide pre { max-width: 100%; overflow-x: auto; padding: 1.25rem; margin: 1.5rem 0 2rem; box-shadow: none; font-size: 0.875rem; line-height: 1.65; color: var(--paper); }
.blog-guide pre code { color: inherit !important; }
.blog-guide code { font-size: 0.9em; overflow-wrap: anywhere; }
.blog-guide pre code { overflow-wrap: normal; }
.desktop-toc { position: sticky; top: 7rem; font-size: 0.875rem; }
.desktop-toc p { font-weight: 800; margin-top: 0; }
.desktop-toc ol { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.desktop-toc li { margin-bottom: 0.8rem; }
.inline-toc { display: none; }
.guide-next { padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 3rem; }
.guide-next h2 { margin-top: 0 !important; }
.guide-next > a { display: inline-block; padding: 0.7rem 1rem; background: var(--green); color: var(--paper) !important; font-weight: 800; }
.guide-next > a:hover { background: var(--green-deep); }
.guide-sources { font-size: 0.875rem; }
.guide-sources h2 { font-size: 1.25rem !important; }
.guide-footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 4rem; font-size: 0.875rem; }
.blog-index h1 { max-width: 18ch; line-height: 1.08 !important; }
.blog-index .sub { margin-bottom: 2rem !important; }
.guide-start { max-width: 46rem; }
.cluster-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 2.5rem 0 4rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.cluster-nav a { padding: 0.4rem 0; font-weight: 700; }
.guide-cluster { scroll-margin-top: 6rem; margin-top: 4rem; }
.cluster-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; margin-bottom: 1.5rem; }
.cluster-heading h2 { margin: 0 0 0.4rem !important; }
.cluster-heading p { margin: 0; color: var(--muted); }
.cluster-heading > a { font-size: 0.875rem; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; list-style: none; padding: 0; margin: 0; }
.guide-list li { padding: 1.5rem 0; border-top: 1px solid var(--line); min-width: 0; }
.guide-list a { display: inline-block; color: var(--ink) !important; font-weight: 800; font-size: 1.15rem; line-height: 1.45; }
.guide-list a:hover { color: var(--green) !important; }
.guide-list p { font-size: 0.95rem; line-height: 1.7; margin: 0.5rem 0 0; }
.guide-tool-strip { padding-top: 1rem; margin-top: 4rem; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 46rem); }
  .desktop-toc { display: none; }
  .inline-toc { display: block; margin: 2rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
  .inline-toc h2 { font-size: 1.15rem !important; margin-top: 0 !important; }
}
@media (max-width: 600px) {
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .breadcrumbs { margin-bottom: 1.75rem; }
  .cluster-nav { gap: 0.5rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
