/* Guide-only helper. */
.gh-guide .gh-beginner-panel{border:1px solid #cbdcd2;border-radius:12px;padding:clamp(14px,2.5vw,22px);margin:20px 0 26px;background:#f6faf7;color:#213e30}
.gh-guide .gh-beginner-panel h2{font-size:clamp(19px,2.4vw,25px);margin:0 0 8px}
.gh-guide .gh-beginner-panel p,.gh-guide .gh-beginner-panel li{line-height:1.65}
.gh-guide .gh-beginner-panel label{display:block;font-weight:700;margin:15px 0 6px}
.gh-guide .gh-beginner-os{display:block;width:100%;max-width:400px;min-height:44px;border:1px solid #769886;border-radius:8px;padding:8px;background:white;color:#173b2c;font:inherit}
.gh-guide [data-guide-os][hidden]{display:none!important}
.gh-guide .gh-beginner-panel ul{padding-left:22px}
.gh-guide .gh-copy-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 6px}
.gh-guide .gh-copy-command{background:#1f5a3d;color:white;border:1px solid #1f5a3d;border-radius:8px;min-height:40px;padding:7px 14px;font:inherit;font-weight:700;cursor:pointer}
.gh-guide .gh-copy-command:focus-visible,.gh-guide .gh-beginner-os:focus-visible,.gh-guide .gh-check-reset:focus-visible{outline:3px solid #1f5a3d;outline-offset:3px}
.gh-guide .gh-copy-feedback{font-size:13px;color:#345d45;line-height:1.5}
.gh-guide .gh-beginner-panel details{margin-top:12px;border-top:1px solid #ccdfd4;padding-top:10px}
.gh-guide .gh-beginner-panel summary{cursor:pointer;font-weight:700}
@media(max-width:640px){.gh-guide .gh-beginner-panel{padding:14px}.gh-guide .gh-copy-controls{align-items:flex-start}.gh-guide .gh-copy-command{min-height:44px}}

/* Mobile guide pages: allow longer upstream/source navigation text to wrap rather than widen viewport.
   Scoped to pages with a GitHub guide; homepage and directory layout unaffected. */
@media(max-width:640px){
 body:has(main.gh-guide) .site-header .bar{flex-wrap:wrap;align-content:center;row-gap:0;padding-top:8px;padding-bottom:8px}
 body:has(main.gh-guide) .site-header .bar nav{flex:1 1 100%;min-width:0;line-height:1.6;overflow-wrap:anywhere}
 .gh-guide{min-width:0;max-width:100%}
 .gh-guide .gh-beginner-panel{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 .gh-guide .gh-beginner-panel label{overflow-wrap:anywhere}
 .gh-guide .gh-beginner-panel li{min-width:0;overflow-wrap:anywhere}
 .gh-guide .gh-beginner-panel a{overflow-wrap:anywhere}
}

/* Official maintainer URLs may be printed as full link text (e.g. vLLM docs).
   Wrap only on Academy guide pages; never clip the link or alter global layouts. */
.gh-guide a{overflow-wrap:anywhere;word-break:break-word}
.gh-guide section,.gh-guide p,.gh-guide li{min-width:0}

.gh-guide .gh-check-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:10px 0}
.gh-guide .gh-check-summary p{margin:0;flex:1 1 230px}
.gh-guide .gh-check-reset{min-height:44px;padding:7px 12px;border:1px solid #769886;border-radius:8px;background:#fff;color:#173b2c;font:inherit;cursor:pointer}
