@scope (.research-guide) {
html{scroll-padding-top:env(safe-area-inset-top,0px)}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}






*, *::before, *::after { box-sizing: border-box; margin: 0; }


/* ── Header ── */
.site-header {
  background: #0d2a1e;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  margin-left: max(-16px, calc(-1 * env(safe-area-inset-left, 0px)));
  margin-right: max(-16px, calc(-1 * env(safe-area-inset-right, 0px)));
  display: flex; align-items: center; gap: 12px; height: 56px;
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  border-bottom: 1px solid rgba(26,170,138,0.2);
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.site-header h1 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.site-header .tagline { font-size: 11px; color: rgba(255,255,255,0.45); margin-left: auto; white-space: nowrap; }

/* ── Tabs ── */
.tab-bar {
  background: #0d2a1e; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  margin-left: max(-16px, calc(-1 * env(safe-area-inset-left, 0px)));
  margin-right: max(-16px, calc(-1 * env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid rgba(26,170,138,0.15);
  position: sticky; top: 56px; z-index: 99;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  font-family: var(--font-:scope); font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.5); background: none; border: none;
  border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer;
  white-space: nowrap; transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.tab-btn:hover { color: rgba(255,255,255,0.8); }
.tab-btn.active { color: #1fc99f; border-bottom-color: #1fc99f; }

/* ── Panels ── */
.panel { display: none; padding-block: 20px; max-width: 740px; margin: 0 auto; }
.panel.active { display: block; }

/* ── Section headers ── */
.section-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--fg3); margin-bottom: 20px; }

/* ── Cards ── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; box-shadow: var(--card-shadow); }
.card + .card, .card-row + .card, .card + .card-row { margin-top: 12px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .card-row { grid-template-columns: 1fr; } }
.card-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 10px; }

/* ── Good/Toss blocks ── */
.good-label { color: var(--teal); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.toss-label { color: var(--red); font-size: 12px; font-weight: 600; margin-bottom: 6px; margin-top: 10px; }
.toss-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toss-list li { font-size: 12.5px; color: var(--fg2); padding-left: 14px; position: relative; line-height: 1.5; }
.toss-list li::before { content: "•"; position: absolute; left: 0; color: var(--red); }
.good-text { font-size: 12.5px; color: var(--fg2); font-style: italic; line-height: 1.5; }

/* ── Warning / call-911 / doc cards ── */
.warn-card { background: var(--red-light); border: 1px solid color-mix(in srgb, var(--red) 20%, var(--bg)); border-radius: 10px; padding: 14px 16px; font-size: 12.5px; color: var(--fg); display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.warn-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.call911 { background: var(--red); color: #fff; border-radius: 10px; padding: 14px 16px; font-size: 13px; font-weight: 600; margin-top: 12px; line-height: 1.5; }
.call911 span { font-weight: 400; }
.doc-card { background: var(--orange-light); border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--bg)); border-radius: 10px; padding: 14px 16px; }
.doc-label { font-size: 12px; font-weight: 600; color: var(--orange); margin-bottom: 6px; }

/* ── Steps grid ── */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; box-shadow: var(--card-shadow); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; margin-bottom: 8px; }
.step-title { font-weight: 600; font-size: 13px; color: var(--fg); margin-bottom: 4px; }
.step-

/* ── Tip strip ── */
.tip-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 520px) { .tip-strip { grid-template-columns: 1fr; } }
.tip-block { background: #0d2a1e; border-radius: 8px; padding: 12px; }
.tip-block .tip-head { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.tip-block .tip-

/* ── Needle rows ── */
.needle-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.needle-row:last-child { border-bottom: none; }
.needle-gauge { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--teal); min-width: 36px; }
.needle-desc { font-size: 12px; color: var(--fg2); flex: 1; min-width: 0; }
.needle-tag { font-size: 10.5px; font-weight: 600; color: var(--orange); background: var(--orange-light); border-radius: 4px; padding: 2px 7px; white-space: nowrap; }

/* ── Job table ── */
.job-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.job-row:last-child { border-bottom: none; }
.job-name { font-size: 12.5px; font-weight: 600; color: var(--fg); min-width: 110px; }
.job-spec { font-size: 12px; color: var(--teal); font-weight: 500; min-width: 0; flex: 1; }
.job-note { font-size: 11.5px; color: var(--fg3); min-width: 0; }

/* ── Peptide location table ── */
.pt-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.pt-row:last-child { border-bottom: none; }
.pt-name { font-size: 12.5px; font-weight: 600; color: var(--fg); }
.pt-site { font-size: 12px; font-weight: 600; color: var(--teal); margin-bottom: 2px; }
.pt-note { font-size: 11.5px; color: var(--fg3); line-height: 1.4; }

/* ── Mixing chart table ── */
.mc-table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 12px; }
.mc-table th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg3); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mc-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--fg2); }
.mc-table tr:last-child td { border-bottom: none; }
.mc-table td:first-child { font-weight: 600; color: var(--fg); }
.mc-table td:last-child { color: var(--teal); font-weight: 500; font-variant-numeric: tabular-nums; }
.mc-wrap { overflow-x: auto; }

/* ── Protein section ── */
.protein-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 520px) { .protein-grid { grid-template-columns: repeat(2, 1fr); } }
.protein-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 10px; text-align: center; box-shadow: var(--card-shadow); }
.protein-g { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 2px; }
.protein-name { font-size: 11.5px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.protein-qty { font-size: 10.5px; color: var(--fg3); }
.sample-day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 480px) { .sample-day { grid-template-columns: 1fr 1fr; } }
.meal-block { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; box-shadow: var(--card-shadow); }
.meal-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }
.meal-desc { font-size: 11.5px; color: var(--fg); line-height: 1.4; margin-bottom: 6px; min-height: 28px; }
.meal-bar { height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 4px; }
.meal-g { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--fg); }

/* ── Retatrutide doses ── */
.dose-bar-wrap { position: relative; height: 32px; margin: 16px 0; }
.dose-track { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 10px; background: var(--teal-light); border-radius: 5px; border: 1px solid var(--teal-mid); }
.dose-fill { position: absolute; left: 0; width: 65%; height: 10px; top: 50%; transform: translateY(-50%); background: var(--teal); border-radius: 5px; opacity: 0.7; }
.dose-labels-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg3); margin-top: -4px; margin-bottom: 10px; }

/* ── Trial chart ── */
.trial-bars { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.trial-row { display: flex; align-items: center; gap: 8px; }
.trial-name { font-size: 11.5px; color: var(--fg2); min-width: 90px; text-align: right; }
.trial-bar-wrap { flex: 1; height: 20px; background: var(--bg); border-radius: 3px; overflow: hidden; min-width: 0; border: 1px solid var(--border); }
.trial-bar { height: 100%; border-radius: 2px; display: flex; align-items: center; padding-right: 6px; justify-content: flex-end; }
.trial-pct { font-size: 11px; font-weight: 600; }

/* ── Clock rotation ── */
.clock-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.clock-svg { flex-shrink: 0; }
.clock-text { font-size: 12px; color: var(--fg2); flex: 1; min-width: 160px; line-height: 1.6; }
.clock-title { font-weight: 600; color: var(--fg); font-size: 13px; margin-bottom: 4px; }

/* ── Disclaimer banner ── */
.disclaimer { background: var(--red-light); border: 1px solid color-mix(in srgb, var(--red) 20%, var(--bg)); border-radius: 10px; padding: 14px 16px; font-size: 11.5px; color: var(--fg2); margin-bottom: 20px; line-height: 1.6; }
.disclaimer strong { color: var(--red); }

/* ── Three-info strip ── */
.info-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 520px) { .info-strip { grid-template-columns: 1fr; } }
.info-block { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; box-shadow: var(--card-shadow); }
.info-head { font-weight: 600; font-size: 12.5px; color: var(--fg); margin-bottom: 4px; }
.info-

/* ── Watch list ── */
.watch-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.watch-list li { font-size: 12.5px; color: var(--teal); padding-left: 16px; position: relative; }
.watch-list li::before { content: "•"; position: absolute; left: 0; }

/* ── Bottom padding ── */
.bottom-pad { height: 32px; }

/* ── Intro badge ── */
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; background: var(--orange-light); color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--bg)); border-radius: 20px; padding: 3px 10px; margin-bottom: 16px; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 16px; padding-bottom: 20px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tl-line { width: 2px; background: var(--border); flex: 1; margin-top: 4px; }
.tl-item:last-child .tl-line { display: none; }
.tl-
.tl-week { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.tl-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.tl-desc { font-size: 12.5px; color: var(--fg2); line-height: 1.6; margin-bottom: 8px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; background: var(--teal-light); color: var(--teal); border: 1px solid var(--teal-mid); }

/* ── YouTube links ── */
.yt-link { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color 0.15s; margin-bottom: 8px; }
.yt-link:hover { border-color: var(--teal); }
.yt-icon { width: 36px; height: 36px; border-radius: 8px; background: #ff0000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yt-icon svg { width: 16px; height: 16px; fill: #fff; }
.yt-label { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 1px; }
.yt-sub { font-size: 11px; color: var(--fg3); }
.yt-arr { margin-left: auto; font-size: 14px; color: var(--fg3); flex-shrink: 0; }

/* ── Diagram wrap ── */
.diagram-wrap { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.diagram-fig { flex-shrink: 0; }
.diagram-desc { flex: 1; min-width: 160px; }
.diagram-title-sm { font-size: 12px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }

/* ── Pen anatomy list ── */
.pen-part-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pen-part-row:last-child { border-bottom: none; }
.pen-part-num { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pen-part-name { font-size: 12.5px; font-weight: 600; color: var(--fg); min-width: 110px; }
.pen-part-desc { font-size: 12px; color: var(--fg3); flex: 1; min-width: 0; line-height: 1.5; }

/* ── Gauge visual bar ── */
.gauge-visual { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.gauge-row { display: flex; align-items: center; gap: 10px; }
.gauge-label { font-size: 11.5px; font-weight: 600; color: var(--teal); min-width: 32px; }
.gauge-bar-wrap { flex: 1; height: 10px; display: flex; align-items: center; }
.gauge-bar { height: 100%; border-radius: 3px; background: var(--teal); }
.gauge-note { font-size: 10.5px; color: var(--fg3); min-width: 80px; text-align: right; }

/* ── Supplies / affiliate ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--card-shadow); transition: border-color 0.15s, box-shadow 0.15s; }
.product-card:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(26,170,138,0.12); }
.product-icon { font-size: 28px; margin-bottom: 10px; }
.product-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.product-desc { font-size: 12px; color: var(--fg3); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.product-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--teal); background: var(--teal-light); border: 1px solid var(--teal-mid); border-radius: 6px; padding: 6px 12px; }
.amazon-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--fg3); margin-top: 8px; }



}
