.guide-menu { position: relative; font-size: 11px; color: #bdc3c5; }
.guide-menu summary { display: flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; list-style: none; }
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.guide-menu[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.guide-menu-links { position: absolute; z-index: 60; top: 100%; left: 0; width: 250px; max-width: calc(100vw - 36px); padding: 8px; border: 1px solid #496069; border-radius: 6px; background: #19252b; box-shadow: 0 15px 40px #0007; }
.guide-menu-links a, .site-header nav .guide-menu-links a { display: block; padding: 13px 12px; color: #f3f0e8; text-decoration: none; font-size: 13px; line-height: 1.45; border-radius: 3px; }
.guide-menu-links a:hover { background: #2a3b43; }
.guide-menu summary:focus-visible, .guide-menu-links a:focus-visible { outline: 2px solid #87adba; outline-offset: 3px; }
.mister-pep-header nav { flex-wrap: wrap; }
.guides-home { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 24px 0 30px; padding: 24px 0; border-top: 1px solid #30373c; border-bottom: 1px solid #30373c; }
.guides-home h2 { margin: 6px 0 0; font: 26px/1.2 "DM Serif Display", Georgia, serif; }
.guides-home .microtype { color: #91a6aa; }
.guides-home-links { display: flex; flex-wrap: wrap; gap: 12px; }
.guides-home-links a { display: flex; align-items: center; gap: 18px; padding: 13px 17px; border: 1px solid #45535a; border-radius: 4px; font-size: 13px; color: #e0e2dd; transition: background .2s; }
.guides-home-links a:hover { background: #202d34; }

.guide-page { margin: 0; background: #111519; color: #f3f0e8; font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page a { color: inherit; text-underline-offset: 4px; }
.guide-page a:focus-visible, .guide-page summary:focus-visible { outline: 3px solid #87adba; outline-offset: 4px; }
.guide-page .guide-shell { width: min(1200px, calc(100% - 80px)); margin: auto; }
.guide-page .guide-skip { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px; background: #f3f0e8; color: #111519; }
.guide-page .guide-skip:focus { top: 12px; }
.guide-page .guide-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 112px; border-bottom: 1px solid #30373c; }
.guide-page .guide-logo { display: inline-flex; padding: 12px 16px; border-radius: 5px; background: #f3f0e8; }
.guide-page .guide-logo img { display: block; width: 208px; max-width: 100%; height: auto; }
.guide-page .guide-header nav { display: flex; align-items: center; gap: 28px; font-size: 12px; }
.guide-page .guide-header nav > a { text-decoration: none; color: #bdc3c5; padding: 12px 0; }
.guide-page .guide-menu { font-size: 12px; }
.guide-page .guide-realization { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: #9ca8ad; font-size: 9px; }
.guide-page .guide-realization img { width: 110px; height: 34px; object-fit: contain; }
.guide-page .guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; color: #a6b1b5; font-size: 11px; line-height: 1.6; }
.guide-page .guide-breadcrumb a { text-decoration: none; }
.guide-page .guide-breadcrumb span[aria-current] { color: #f3f0e8; }
.guide-page .guide-hero { max-width: 920px; padding: 42px 0 45px; }
.guide-page .guide-eyebrow { margin: 0 0 17px; color: #a5bdc6; font: 10px/1.5 "JetBrains Mono", monospace; letter-spacing: .16em; }
.guide-page h1 { margin: 0 0 18px; font: 400 clamp(42px, 5vw, 70px)/1.06 "DM Serif Display", Georgia, serif; letter-spacing: -.025em; }
.guide-page .guide-deck { max-width: 650px; margin: 0; color: #bdc8cd; font-size: 16px; line-height: 1.7; }
.guide-page .guide-meta { margin: 20px 0 0; color: #96a8af; font-size: 11px; }
.guide-page .guide-reading-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: start; margin-bottom: 70px; }
.guide-page .guide-toc { position: sticky; top: 24px; padding: 22px 0; border-top: 2px solid #487482; }
.guide-page .guide-toc h2 { margin: 0 0 16px; color: #a5bdc6; font: 10px/1.5 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.guide-page .guide-toc ul { list-style: none; margin: 0 0 25px; padding: 0; }
.guide-page .guide-toc li { margin: 0; padding: 0; }
.guide-page .guide-toc a { display: block; padding: 9px 0; color: #bdc8cd; text-decoration: none; font-size: 12px; line-height: 1.5; }
.guide-page .guide-toc a:hover { color: #fff; }
.guide-page .guide-toc .guide-library-link { color: #aacbd4; padding: 15px 0; border-top: 1px solid #39464d; }
.guide-page .guide-article { min-width: 0; padding: 45px 48px; background: #f3f0e8; color: #252b2c; border-radius: 6px; box-shadow: 0 14px 50px #0002; }
.guide-page .guide-article p { margin: 0 0 20px; font-size: 16px; line-height: 1.85; }
.guide-page .guide-article > p:first-child, .guide-page .guide-article .guide-lead { font-size: 20px; line-height: 1.65; }
.guide-page .guide-article h2 { margin: 40px 0 17px; font: 400 31px/1.2 "DM Serif Display", Georgia, serif; letter-spacing: -.01em; scroll-margin-top: 25px; }
.guide-page .guide-article h3 { margin: 25px 0 10px; font-size: 18px; line-height: 1.45; }
.guide-page .guide-article a { color: #175b68; }
.guide-page .guide-article sup a { padding: 0 3px; font-size: 11px; white-space: nowrap; }
.guide-page .guide-article .guide-table-wrap { width: 100%; overflow-x: auto; margin: 25px 0; border: 1px solid #cbd0c9; border-radius: 3px; }
.guide-page table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; text-align: left; }
.guide-page caption { text-align: left; padding: 12px 15px; color: #515e5e; font-size: 12px; background: #e5e8df; }
.guide-page th, .guide-page td { padding: 16px 15px; border-bottom: 1px solid #d0d6ce; vertical-align: top; }
.guide-page thead th { background: #213a43; color: #f3f0e8; font-size: 12px; font-weight: 600; }
.guide-page tbody th { font-weight: 600; }
.guide-page tbody tr:nth-child(even) { background: #eaede5; }
.guide-page tbody tr:last-child th, .guide-page tbody tr:last-child td { border-bottom: 0; }
.guide-page .guide-article ul, .guide-page .guide-article ol { padding-left: 22px; line-height: 1.8; }
.guide-page .guide-article li { margin: 10px 0; }
.guide-page .guide-sources { font-size: 13px; overflow-wrap: anywhere; }
.guide-page .guide-sources a { line-height: 1.65; }
.guide-page .guide-article .guide-next, .guide-page .guide-article > p:last-child a { display: block; padding: 20px 22px; border: 1px solid #92aaa9; border-left: 3px solid #487482; background: #e2e9e3; text-decoration: none; font-weight: 600; }
.guide-page .guide-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 32px 0 45px; border-top: 1px solid #30373c; color: #a5b0b5; font-size: 12px; line-height: 1.8; }
.guide-page .guide-footer p { max-width: 660px; margin: 0 0 8px; }
.guide-page .guide-footer a { white-space: nowrap; }
@media (max-width: 900px) {
  .guide-page .guide-header { flex-wrap: wrap; gap: 16px; padding: 22px 0; }
  .guide-page .guide-header nav { order: 3; width: 100%; gap: 25px; }
  .guide-page .guide-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-page .guide-toc { position: static; padding: 16px 0; }
  .guide-page .guide-toc ul { display: flex; gap: 4px 22px; flex-wrap: wrap; margin-bottom: 10px; }
  .guide-page .guide-toc .guide-library-link { display: inline-block; }
}
@media (max-width: 600px) {
  .mister-pep-header nav, .guide-page .guide-header nav { position: relative; }
  .mister-pep-header .guide-menu, .guide-page .guide-menu { position: static; }
  .guides-home { display: block; }
  .guides-home-links { margin-top: 18px; display: grid; }
  .guides-home-links a { justify-content: space-between; }
  .guide-page .guide-shell { width: calc(100% - 32px); }
  .guide-page .guide-logo { padding: 10px 12px; }
  .guide-page .guide-logo img { width: 150px; }
  .guide-page .guide-realization img { width: 78px; height: 28px; }
  .guide-page .guide-realization { font-size: 8px; }
  .guide-page .guide-header nav { justify-content: space-between; gap: 14px; font-size: 11px; }
  .guide-page .guide-hero { padding: 30px 0; }
  .guide-page .guide-deck { font-size: 15px; }
  .guide-page .guide-article { padding: 28px 22px; }
  .guide-page .guide-article p { font-size: 15px; line-height: 1.8; }
  .guide-page .guide-article > p:first-child, .guide-page .guide-article .guide-lead { font-size: 18px; }
  .guide-page .guide-article h2 { font-size: 28px; }
  .guide-page .guide-article h3 { font-size: 17px; }
  .guide-page table { min-width: 520px; }
  .guide-page .guide-footer { display: block; }
  .guide-page .guide-footer > a { display: inline-block; margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) { .guides-home-links a { transition: none; } }
