/* ib-guide.css — the guide-page stylesheet, in ONE place.
   ---------------------------------------------------------------------------
   This 78-line block was byte-identical (after whitespace/comment normalisation)
   in 142 of the 148 pages under public/legacy/guides/. It was duplicated 142
   times: ~11,000 lines of copy-paste. It now lives here, once.

   NOT linked by the 6 pages that never carried it: the five "hybrid" guides
   (trt-guide, semaglutide-dosing-guide, tirzepatide-dosing-guide,
   bpc-157-peptide-guide, bpc-157-tb500-blend-guide) and the guides index. They
   carry a DIFFERENT block that mixes calculator typography into the guide layout.
   Do not link this sheet there without diffing their block against this one.

   Named ib-*.css so next.config.ts's no-cache header applies (see ib-shell.css).

   ORDER IS LOAD-BEARING: linked immediately BEFORE /ib-shell.css, which is the
   position the inline <style> occupied. ib-shell.css therefore still wins the
   equal-specificity ties it used to win (notably html,body{background}). Moving
   this link after ib-shell.css would invert that.

   Every background here resolves through var(--bg); no colour is hardcoded, so
   the one-line background change in ib-shell.css still governs these pages.
*/

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--surface:#18181c;--border:rgba(255,255,255,.08);--border2:rgba(255,255,255,.14);--teal:#0fbcad;--white:#f0f0f2;--mono:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--sans:'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif}
:root{--surface:#ffffff;--border:rgba(0,0,0,.08);--border2:rgba(0,0,0,.14);--white:#1a1a1e}
html,body,html,body:root{background:var(--bg);color:var(--white)}
html,body{min-height:100%;background:var(--bg);color:var(--white);font-family:var(--sans);-webkit-font-smoothing:antialiased}
.ib-skip-link{position:absolute;left:-9999px;top:0}
.ib-skip-link:focus{left:8px;top:8px;z-index:999;background:var(--teal,#0fbcad);color:#0b0b0d;padding:8px 12px;border-radius:5px}
article header{margin-bottom:28px}.label{font-family:var(--mono);font-size:12px;color:var(--teal);letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}.updated{font-family:var(--mono);font-size:12px;color:rgba(240,240,242,.42);margin-bottom:18px}
h1{font-size:clamp(30px,6vw,44px);font-weight:600;line-height:1.08;margin-bottom:14px}.intro,p,li,td{font-size:15px;line-height:1.72;color:rgba(240,240,242,.72)}p{margin-bottom:14px}
h2{font-size:24px;font-weight:600;margin:40px 0 12px;padding-top:12px;border-top:1px solid var(--border)}h3{font-size:16px;margin:24px 0 10px;color:var(--white)}
a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}ul,ol{padding-left:20px;margin:0 0 18px}.table-wrap{overflow-x:auto;margin:18px 0 24px;border:1px solid var(--border);border-radius:5px}
table{width:100%;border-collapse:collapse}th{text-align:left;padding:10px 12px;font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:rgba(240,240,242,.45);border-bottom:1px solid var(--border)}td{padding:10px 12px;border-bottom:1px solid var(--border)}tr:last-child td{border-bottom:0}td:first-child{font-family:var(--mono);color:var(--teal)}
.example{background:var(--surface);border:1px solid var(--border2);border-radius:5px;padding:16px 18px;margin:18px 0 24px}.related-guides a,.read-next a{display:block;border:1px solid var(--border2);border-radius:5px;padding:10px 12px;margin:8px 0;color:rgba(240,240,242,.78)}
details{border-top:1px solid var(--border);padding:14px 0}details:last-of-type{border-bottom:1px solid var(--border)}summary{cursor:pointer;font-weight:600;color:var(--white)}details p{margin-top:10px}.sources li{font-size:13px;color:rgba(240,240,242,.87)}.disclaimer{margin-top:36px;border:1px solid rgba(15,188,173,.25);background:rgba(15,188,173,.07);border-radius:5px;padding:16px 18px}.disclaimer p{margin:0;font-size:13px}
/* `.page-footer` (a second disclaimer + About/Disclaimer/Privacy links, above the real
   footer) is gone from all 142 guides — they now carry the same ib-footer as every other
   page, stamped by scripts/gen-footer.mjs. Add footer links there, not here. */
@media(max-width:640px){.static-nav{padding:0 16px;gap:14px}}
p,li,td{color:rgba(20,20,28,.72);}
.updated{color:rgba(20,20,28,.42);}
th{color:rgba(20,20,28,.45);}
.related-guides a,.read-next a{color:rgba(20,20,28,.78);}
.sources li{color:rgba(20,20,28,.62);}
.guide-page-layout{display:flex;align-items:flex-start;max-width:1320px;margin:0 auto}
.guide-sidenav{width:300px;flex-shrink:0;position:sticky;top:58px;height:calc(100vh - 58px);overflow-y:auto;border-right:1px solid var(--border);background:var(--bg);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent}
.guide-sidenav-header{padding:14px 16px;border-bottom:1px solid var(--border)}
.guide-sidenav-brand{display:flex;align-items:center;gap:9px;text-decoration:none}
.guide-sidenav-brand-text{font-family:var(--mono);font-size:14px;color:var(--white);letter-spacing:-.01em}
.guide-sidenav-brand-text strong{color:var(--teal);font-weight:500}
.guide-sidenav-brand-subtitle{font-weight:400;opacity:.5}
.docs-nav-eyebrow{padding:20px 22px 10px;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(240,240,242,.5);font-family:var(--mono)}
.docs-nav-flat-link{display:flex;align-items:center;gap:10px;margin:6px 10px;padding:10px 12px;font-size:13.5px;font-weight:500;color:rgba(240,240,242,.87);background:var(--surface);border:1px solid var(--border2);border-radius:5px;border-left:3px solid transparent;transition:background .12s,color .12s,border-color .12s;text-decoration:none;font-family:var(--sans)}
.docs-nav-flat-link:hover{background:rgba(255,255,255,.04);color:var(--white);border-color:rgba(15,188,173,.3)}
.docs-nav-flat-link.active{color:var(--white);background:rgba(15,188,173,.1);border-left-color:var(--teal);font-weight:600}
.docs-nav-flat-dot{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.4;flex-shrink:0}
.docs-nav-flat-link.active .docs-nav-flat-dot{opacity:1;background:var(--teal)}
.docs-nav-divider{height:1px;background:var(--border);margin:8px 0}
.docs-nav-cat-header{display:flex;align-items:center;padding:10px 20px;cursor:pointer;user-select:none;gap:8px;background:none;border:none;width:100%;transition:background .12s}
.docs-nav-cat-header:hover{background:rgba(255,255,255,.04)}
.docs-nav-cat-label{font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);flex:1;text-align:left;font-family:var(--mono)}
.docs-nav-cat-count{font-size:10px;font-weight:600;color:rgba(240,240,242,.55);background:rgba(255,255,255,.06);padding:1px 6px;border-radius:5px;font-family:var(--mono)}
.guide-nav-chevron{opacity:.4;transition:transform .2s,opacity .15s;flex-shrink:0;color:rgba(240,240,242,.5)}
.docs-nav-cat-header:hover .guide-nav-chevron{opacity:.7}
.guide-nav-group-content{display:none}
.guide-nav-group.ib-open .guide-nav-group-content{display:block}
.guide-nav-group.ib-open .guide-nav-chevron{transform:rotate(180deg);opacity:.7}
.docs-nav-link{display:flex;align-items:center;margin:6px 10px;padding:10px 12px;font-size:13px;font-weight:400;color:rgba(240,240,242,.87);background:var(--surface);border:1px solid var(--border2);border-radius:5px;border-left:3px solid transparent;transition:background .12s,color .12s,border-color .12s;text-decoration:none;line-height:1.45;gap:10px;font-family:var(--sans)}
.docs-nav-link::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.35;flex-shrink:0}
.docs-nav-link:hover{background:rgba(255,255,255,.04);color:var(--white);border-color:rgba(15,188,173,.3);text-decoration:none}
.docs-nav-link.active{color:var(--white);background:rgba(15,188,173,.1);border-left-color:var(--teal);font-weight:500}
.docs-nav-link.active::before{background:var(--teal);opacity:1}
.guide-main-content{flex:1;min-width:0;max-width:800px;padding:40px 48px 80px}
.guide-nav-mobile-toggle{display:none;align-items:center;gap:8px;padding:10px 16px;margin:0 0 24px;background:var(--surface);border:1px solid var(--border2);border-radius:5px;color:var(--teal);font-family:var(--mono);font-size:13px;cursor:pointer;width:100%;text-align:left}
.guide-sidenav-overlay{display:none;position:fixed;inset:0;top:58px;z-index:149;background:rgba(0,0,0,.6)}
@media(max-width:1023px){.guide-page-layout{display:block;padding:0 20px}.guide-sidenav{position:fixed;right:-310px;top:58px;height:calc(100vh - 58px);z-index:150;width:300px;visibility:hidden;transition:right .25s ease, visibility 0s linear .25s;box-shadow:-4px 0 24px rgba(0,0,0,.5);border-left:1px solid var(--border)}.guide-sidenav.mobile-open{right:0;visibility:visible;transition:right .25s ease, visibility 0s}.guide-sidenav-overlay.mobile-open{display:block}.ib-hamburger{display:flex;align-items:center;order:3;margin-left:0;}.ib-brand{order:1;margin-right:auto;}.ib-nav-cta-wrap{order:3;}.ib-nav-links{display:none;}.guide-main-content{padding:24px 0 80px;max-width:none}}
@media(max-width:640px){.guide-main-content{padding:16px 0 80px}}
.guide-sidenav{background:#ebebef;border-right-color:rgba(0,0,0,.1)}
.guide-sidenav-header{border-bottom-color:rgba(0,0,0,.1)}
.docs-nav-eyebrow{color:rgba(20,20,28,.5)}
.docs-nav-flat-link{color:rgba(20,20,28,.82)}
.docs-nav-flat-link:hover{background:rgba(0,0,0,.06);color:#1a1a1e}
.docs-nav-flat-link.active{color:#1a1a1e;background:rgba(15,188,173,.12)}
.docs-nav-divider{background:rgba(0,0,0,.1)}
.docs-nav-cat-header:hover{background:rgba(0,0,0,.06)}
.docs-nav-cat-count{color:rgba(20,20,28,.55);background:rgba(0,0,0,.08)}
.guide-nav-chevron{color:rgba(20,20,28,.6)}
.docs-nav-link{color:rgba(20,20,28,.82)}
.docs-nav-link:hover{background:rgba(0,0,0,.06);color:#1a1a1e;text-decoration:none}
.docs-nav-link.active{color:#1a1a1e;background:rgba(15,188,173,.12)}
.guide-nav-mobile-toggle{background:#fff;color:#0fbcad;border-color:rgba(0,0,0,.12)}
.guide-sidenav-overlay{background:rgba(0,0,0,.3)}
.breadcrumb{font-size:12px;color:rgba(240,240,242,.35);margin:32px 0 0;font-family:var(--mono);}
.breadcrumb a{color:rgba(240,240,242,.65);text-decoration:none;}
.breadcrumb a:hover{color:var(--teal);text-decoration:underline;}
.breadcrumb span{margin:0 6px;color:rgba(240,240,242,.25);}
.breadcrumb{color:rgba(20,20,28,.35);}
.breadcrumb a{color:rgba(20,20,28,.65);}
.breadcrumb span{color:rgba(20,20,28,.25);}
