/* All styles are restricted to the BioHack component root; no theme selectors. */
.bphp-component {box-sizing:border-box;max-width:100%;min-width:0;padding:var(--bphp-component-padding,0);color:var(--bphp-text);}
.bphp-component *, .bphp-component *::before, .bphp-component *::after {box-sizing:border-box}
.bphp-component :is(.bphp-archive-card,.bphp-featured-card,.bphp-vc-card,.bphp-calc,.bphp-vc-dose) {border-radius:var(--bphp-component-radius,16px)}
.bphp-component .bphp-vc-heading {margin:0 0 18px;color:var(--bphp-text);font-size:clamp(1.35rem,2vw,1.85rem)}
.bphp-component .bphp-vc-card {min-width:0;max-width:100%;border:1px solid var(--bphp-line,#cbd5e1);background:var(--bphp-surface,#fff);overflow:hidden}
.bphp-component .bphp-vc-card-link {display:flex;flex-direction:column;gap:9px;min-height:180px;padding:20px;text-decoration:none;color:var(--bphp-text);}
.bphp-component .bphp-vc-card-link h3 {font-size:1.3rem;color:var(--bphp-primary);margin:0}
.bphp-component .bphp-vc-card-link p {margin:0;line-height:1.55}
.bphp-component .bphp-vc-kicker {color:var(--bphp-muted);font-size:.8rem;font-weight:700}
.bphp-component .bphp-vc-evidence {font-size:.85rem;color:var(--bphp-muted)}
.bphp-component .bphp-vc-more {margin-top:auto;font-weight:700;color:var(--bphp-primary)}
.bphp-component .bphp-vc-dose {max-width:100%;min-width:0;padding:16px;border:1px solid var(--bphp-line,#cbd5e1);background:var(--bphp-surface,#fff)}
.bphp-component .bphp-vc-dose h3 {margin:0 0 10px}
.bphp-component .bphp-vc-caution {padding:10px 12px;border-left:3px solid #b8741c;margin:10px 0 14px}
.bphp-component .bphp-vc-use-protocol {padding:7px 10px;background:var(--bphp-surface,#fff);color:var(--bphp-primary);border:1px solid var(--bphp-line,#cbd5e1);border-radius:8px;cursor:pointer}
.bphp-component .bphp-vc-empty,.bphp-component .bphp-vc-preview {padding:18px;border:1px dashed var(--bphp-muted,#64748b);border-radius:10px}
.bphp-visual-block-editor {padding:8px;border:1px dashed #a4b9ce;min-height:90px}
.bphp-visual-block-editor .bphp-visual-block-title {font-size:12px;font-weight:700;color:#42556e;margin:0 0 8px}
/* Scoped WordPress-admin shortcode configurator */
#bphp-component-builder {display:grid;grid-template-columns:minmax(260px,350px) minmax(0,1fr);gap:20px;max-width:1350px;align-items:start;margin:20px 0}
#bphp-component-builder>section {min-width:0;background:#fff;padding:18px;border:1px solid #cbd5e1;border-radius:12px}
#bphp-component-builder label {display:grid;gap:5px;margin:10px 0;font-weight:600}
#bphp-component-builder input:not([type=checkbox]),#bphp-component-builder select,#bphp-component-builder textarea {width:100%;max-width:100%}
#bphp-component-builder .bphp-component-builder-preview{max-width:100%;max-height:850px;overflow:auto;padding:12px;border:1px solid #e0e5eb}
#bphp-component-builder #bphp-builder-feedback{margin-left:12px}
@media(max-width:850px){#bphp-component-builder{grid-template-columns:minmax(0,1fr)}}
/* Independently placeable content modules; no theme or editor selectors. */
.bphp-component .bphp-module-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;max-width:100%;}
.bphp-component .bphp-module-filters label{display:flex;flex:1 1 175px;flex-direction:column;min-width:0;gap:5px;font-weight:600;}
.bphp-component .bphp-module-filters :is(input,select){width:100%;min-width:0;padding:10px;border:1px solid var(--bphp-line,#cbd5e1);border-radius:8px;background:var(--bphp-surface,#fff);color:var(--bphp-text);}
.bphp-component .bphp-module-filters button{min-height:42px;padding:10px 14px;border:1px solid var(--bphp-line,#cbd5e1);border-radius:8px;background:var(--bphp-surface,#fff);color:var(--bphp-primary);cursor:pointer;}
.bphp-component .bphp-module-category-links{display:flex;flex-wrap:wrap;gap:10px;}
.bphp-component .bphp-module-category-links a{padding:8px 14px;border:1px solid var(--bphp-line,#cbd5e1);border-radius:20px;text-decoration:none;}
.bphp-component .bphp-module-results{min-width:0;max-width:100%;}
.bphp-component .bphp-module-profile{min-width:0;max-width:100%;overflow-wrap:anywhere;}
.bphp-component .bphp-module-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;}
.bphp-component .bphp-module-facts>div{border:1px solid var(--bphp-line,#cbd5e1);border-radius:var(--bphp-component-radius,12px);padding:12px;min-width:0;}
.bphp-component .bphp-module-facts dt{color:var(--bphp-muted);font-size:.8rem;}
.bphp-component .bphp-module-facts dd{margin:6px 0 0;font-weight:600;overflow-wrap:anywhere;}
.bphp-component .bphp-module-references{padding-left:24px;}
.bphp-component .bphp-module-references li{margin-bottom:12px;overflow-wrap:anywhere;}
.bphp-component .bphp-module-references li span{display:block;color:var(--bphp-muted);font-size:.9rem;}
.bphp-component .bphp-modular-dashboard{border:1px solid var(--bphp-line,#cbd5e1);border-radius:var(--bphp-component-radius,12px);padding:16px;min-width:0;}
.bphp-component .bphp-dashboard-module-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.bphp-component .bphp-dashboard-module-list li{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid var(--bphp-line,#cbd5e1);padding:8px 0;}
.bphp-component .bphp-dashboard-module-list strong{overflow-wrap:anywhere;}
