/* Best Health IQ — Protocols page (sections/bhiq_protocols_page) */
.bpp {
  --bpp-navy: var(--bhiq-navy, #16233A);
  --bpp-blue: var(--bhiq-blue, #3375D0);
  --bpp-blue2: #3A6FCC;
  --bpp-ink: var(--bhiq-ink, #1C1F4A);
  --bpp-muted: #5B6178;
  --bpp-line: #E4E9F2;
  --bpp-soft: #F4F6FA;
  --bpp-serif: var(--bhiq-serif, "Noto Serif", Georgia, serif);
  --bpp-sans: "Poppins", var(--bhiq-sans, system-ui), sans-serif;
  font-family: var(--bpp-sans);
  color: var(--bpp-muted);
  background: #fff;
  overflow-x: clip;
}
.bpp *, .bpp *::before, .bpp *::after { box-sizing: border-box; }
.bpp-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
:where(.bpp) h1, :where(.bpp) h3, :where(.bpp) h4, :where(.bpp) p { margin: 0; }
.bpp .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.bpp-hero { min-height: 760px; display: flex; align-items: center; padding: 64px 0 72px; background: #16233A; color: #fff; }
.bpp-hero__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.bpp-crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.bpp-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.bpp-crumbs__home { width: 15px; height: 15px; fill: currentColor; }
.bpp-crumbs a { color: #fff; text-decoration: none; }
.bpp-crumbs a:hover, .bpp-crumbs a:focus-visible { text-decoration: underline; }
.bpp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.bpp-pill { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.bpp-pill--green { background: linear-gradient(90deg, #4F6A3D 0%, #8BA870 100%); color: #fff; }
.bpp-pill--grey { background: #E9ECF1; color: #2B3245; }
.bpp-hero__title { font-family: var(--bpp-serif); font-weight: 700; color: #fff; font-size: clamp(38px, 6vw, 86px); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: break-word; }
.bpp-hero__sub { margin-top: 24px; max-width: 640px; font-size: 15px; line-height: 1.7; color: #fff; }

/* glass graph card */
.bpp-graph { margin: 0; padding: 22px 24px 20px; border-radius: 18px; background: rgba(22,35,58,.55); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(4,10,24,.35); }
.bpp-graph__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.bpp-graph__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.bpp-graph__live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6FD3FF; }
.bpp-graph__live i { width: 8px; height: 8px; border-radius: 50%; background: #39C8FF; box-shadow: 0 0 0 4px rgba(57,200,255,.18); }
.bpp-graph__svg { display: block; width: 100%; height: auto; }
.bpp-graph__grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.bpp-graph__curve { fill: none; stroke: #2FA8FF; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(47,168,255,.55)); }
.bpp-graph__proj { stroke: rgba(111,211,255,.45); stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; }
.bpp-graph__node circle { fill: #0E1A30; stroke: #39C8FF; stroke-width: 2; }
.bpp-graph__node circle.in { fill: #39C8FF; stroke: none; }
.bpp-graph__t { font-family: var(--bpp-sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; fill: rgba(255,255,255,.5); }
.bpp-graph__t--hi { fill: #8FD8FF; }
.bpp-graph__data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.bpp-graph__stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bpp-graph__stat .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.bpp-graph__stat .v { font-size: 15px; font-weight: 600; color: #fff; }
.bpp-graph__stat .v b { color: #39C8FF; font-weight: 700; margin-right: 4px; }

/* ---------- Notice strip ---------- */
.bpp-notice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; background: #FCEEF1; color: #8E2944; font-size: 14px; line-height: 1.5; text-align: center; }
.bpp-notice svg { flex: 0 0 22px; width: 22px; height: 22px; fill: #E55F7D; }

/* ---------- Library ---------- */
.bpp-lib { padding: 56px 0 96px; }
.bpp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.bpp-tab { appearance: none; border: 1px solid transparent; cursor: pointer; font-family: var(--bpp-sans); font-size: 15px; font-weight: 600; padding: 14px 30px; border-radius: 999px; background: #F1F3F7; color: #4A5068; transition: background .2s, color .2s, box-shadow .2s; }
.bpp-tab:hover { background: #E7EBF2; }
.bpp-tab.is-on { background: linear-gradient(135deg, #1B2F57 0%, #3A6FCC 100%); color: #fff; box-shadow: 0 10px 24px rgba(36,72,140,.28); }
.bpp-tab:focus-visible, .bpp-card:focus-visible, .bpp-btn:focus-visible, .bpp-comp__link:focus-visible { outline: 3px solid #8FB8F5; outline-offset: 3px; }

.bpp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 24px; background: #F4F7FC; border: 1px solid #EAF0F8; }
.bpp .bpp-card { appearance: none; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; width: 100%; margin: 0; line-height: 1.5; letter-spacing: normal; text-transform: none; min-width: 0; padding: 22px 22px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--bpp-line); color: var(--bpp-muted); transition: transform .2s, box-shadow .2s, border-color .2s; }
.bpp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,35,58,.08); border-color: #D4DEEE; }
.bpp-card.is-on { background: linear-gradient(135deg, #1B2F57 0%, #2A57A6 60%, #3A73CC 100%); border-color: transparent; color: rgba(255,255,255,.75); box-shadow: 0 16px 34px rgba(27,47,87,.3); }
.bpp-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.bpp-card__weeks { font-size: 12px; color: #8A90A6; text-align: right; }
.bpp-card.is-on .bpp-card__weeks { color: rgba(255,255,255,.7); }
.bpp-card__title { font-family: var(--bpp-serif); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--bpp-ink); }
.bpp-card.is-on .bpp-card__title { color: #fff; }
.bpp-card__sub { font-size: 14px; line-height: 1.5; }
.bpp-card__peps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bpp-chip { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #EEF3FB; color: var(--bpp-blue2); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.bpp-card.is-on .bpp-chip { background: rgba(255,255,255,.14); color: #fff; }

.bpp-level { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bpp-level--beginner { color: #4FA45E; }
.bpp-level--intermediate { color: #EF8A2B; }
.bpp-level--advanced { color: #E0435A; }
.bpp-card.is-on .bpp-level--beginner, .bpp-detail__hero .bpp-level--beginner { color: #8EE08F; }
.bpp-card.is-on .bpp-level--intermediate, .bpp-detail__hero .bpp-level--intermediate { color: #FFB86B; }
.bpp-card.is-on .bpp-level--advanced, .bpp-detail__hero .bpp-level--advanced { color: #FF8C9C; }

/* ---------- Detail ---------- */
.bpp-details { margin-top: 28px; scroll-margin-top: 100px; }
.bpp-detail[hidden] { display: none; }
.bpp-detail { border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(22,35,58,.10); border: 1px solid #EDF1F7; overflow: hidden; }
.bpp-detail__hero { padding: 48px 48px 44px; background: linear-gradient(120deg, #16233A 0%, #1F3C72 45%, #3375D0 100%); color: rgba(255,255,255,.82); }
.bpp-detail__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bpp-detail__id { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.bpp-detail__pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; }
.bpp-detail__pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bpp-detail__title { font-family: var(--bpp-serif); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; color: #fff; overflow-wrap: break-word; }
.bpp-detail__sub { margin-top: 10px; font-size: 16px; font-weight: 600; color: #9CC2FF; }
.bpp-detail__desc { margin-top: 18px; max-width: 760px; font-size: 15px; line-height: 1.75; }
.bpp-detail__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; padding: 40px 48px 48px; }
.bpp-sectitle { display: flex; align-items: center; gap: 10px; font-family: var(--bpp-sans); font-size: 16px; font-weight: 600; color: var(--bpp-ink); margin-bottom: 18px !important; }
.bpp-sectitle svg, .bpp-box h4 svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--bpp-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bpp-comp { padding: 22px 0; border-top: 1px solid var(--bpp-line); }
.bpp-comp:first-of-type { border-top: 0; padding-top: 4px; }
.bpp-comp__top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.bpp-comp__name { font-family: var(--bpp-serif); font-weight: 700; font-size: 22px; color: var(--bpp-ink); }
.bpp-comp__tag { font-size: 12px; font-weight: 600; color: var(--bpp-blue2); background: #EEF3FB; padding: 3px 10px; border-radius: 999px; }
.bpp-comp__link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bpp-blue); text-decoration: none; }
.bpp-comp__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.bpp-comp__link:hover { text-decoration: underline; }
.bpp-comp__kind { margin-top: 4px; font-size: 13px; color: #8A90A6; }
.bpp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.bpp-stat { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--bpp-soft); min-width: 0; }
.bpp-stat b { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A90A6; }
.bpp-stat span { font-size: 15px; font-weight: 600; color: var(--bpp-ink); line-height: 1.4; overflow-wrap: break-word; }
.bpp-comp__note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #7A8099; }
.bpp-detail__side { display: flex; flex-direction: column; gap: 16px; }
.bpp-box { padding: 20px 22px; border-radius: 16px; background: #F4F7FC; border: 1px solid #E5ECF7; }
.bpp-box h4 { display: flex; align-items: center; gap: 10px; font-family: var(--bpp-sans); font-size: 15px; font-weight: 600; color: var(--bpp-ink); margin-bottom: 10px; }
.bpp-box p { font-size: 14px; line-height: 1.7; color: var(--bpp-muted); }
.bpp-box--warn { background: #FFF8E8; border-color: #F6E2B0; }
.bpp-box--warn h4 svg { stroke: #D99A1E; }

/* ---------- Guide tab ---------- */
.bpp-panel[hidden] { display: none; }
.bpp-panel--guide { max-width: 760px; margin: 0 auto; padding: 48px 32px; border-radius: 24px; background: #F4F7FC; text-align: center; }
.bpp-panel--guide p { font-size: 16px; line-height: 1.7; color: var(--bpp-muted); margin-bottom: 22px; }
.bpp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px; background: var(--bpp-blue); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s; }
.bpp-btn:hover { background: #2A63B5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bpp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .bpp-graph { max-width: 640px; }
  .bpp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpp-detail__body { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .bpp-wrap { padding: 0 16px; }
  .bpp-hero { min-height: 0; padding: 40px 0 48px; }
  .bpp-hero__title { font-size: clamp(34px, 10vw, 44px); }
  .bpp-graph { padding: 18px 16px 16px; }
  .bpp-graph__stat .v { font-size: 13px; }
  .bpp-notice { justify-content: flex-start; text-align: left; padding: 14px 16px; }
  .bpp-lib { padding: 36px 0 64px; }
  .bpp-tab { width: 100%; padding: 13px 20px; }
  .bpp-grid { grid-template-columns: 1fr; padding: 10px; gap: 10px; border-radius: 18px; }
  .bpp-card__title { font-size: 20px; }
  .bpp-detail { border-radius: 18px; }
  .bpp-detail__hero { padding: 28px 20px; }
  .bpp-detail__body { padding: 24px 20px 28px; gap: 24px; }
  .bpp-stats { grid-template-columns: 1fr; }
  .bpp-comp__link { margin-left: 0; }
}
/* ---------- 33% smaller content + cards (desktop/tablet) ---------- */
@media (min-width: 768px) {
  .bpp-lib > .bpp-wrap { zoom: .67; }
}
@media (prefers-reduced-motion: reduce) {
  .bpp-card, .bpp-tab, .bpp-btn { transition: none; }
  .bpp-card:hover { transform: none; }
}
