/* v0.5.8 Haven peek bubble + chat */
#bh-peek{position:fixed;z-index:62;max-width:min(300px,78vw);background:#fffdf8;color:#2a3644;border:1.5px solid #f2d58a;border-radius:18px;padding:12px 38px 12px 14px;box-shadow:0 14px 34px -16px #1f2b3a99;font:500 16px/1.45 'BH Sans',Lexend,system-ui,sans-serif;opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .4s ease}
#bh-peek.in{opacity:1;transform:none}#bh-peek p{margin:0 0 8px}#bh-peek .row{display:flex;flex-wrap:wrap;gap:6px}
#bh-peek .x,#bh-chat .x{position:absolute;top:4px;right:4px;width:44px;height:44px;border:0;background:none;font-size:24px;color:#4a5566;cursor:pointer}
.hc-chip{min-height:44px;padding:6px 14px;border-radius:999px;border:1.5px solid #c9a14a;background:#fff;color:#2f4a6d;font:700 15px 'BH Sans',Lexend,system-ui,sans-serif;cursor:pointer}.hc-chip:hover{background:#fbf1d6}
#bh-chat{position:fixed;z-index:1001;right:12px;bottom:12px;width:min(400px,calc(100vw - 24px));height:min(640px,calc(100dvh - 24px));display:flex;flex-direction:column;background:#fffdf8;color:#2a3644;border:1.5px solid #f2d58a;border-radius:22px;box-shadow:0 24px 60px -24px #1f2b3a;font-family:'BH Sans',Lexend,system-ui,sans-serif}
#bh-chat[hidden]{display:none}#bh-chat header{display:flex;align-items:center;gap:10px;padding:12px 52px 10px 14px;border-bottom:1px solid #e6dfcf}#bh-chat header b{font:700 19px 'BH Serif',Georgia,serif;color:#2f4a6d}
#bh-chat .lang{margin-left:auto;min-height:36px;padding:2px 10px;border-radius:999px;border:1px solid #c9a14a;background:#fff;font-weight:700;color:#2f4a6d;cursor:pointer}
.hc-log{flex:1;overflow-y:auto;padding:12px 12px 4px;display:flex;flex-direction:column;gap:8px}
.hc-m{max-width:88%;padding:10px 13px;border-radius:16px;font-size:16px;line-height:1.5}.hc-h{background:#f4eedf;align-self:flex-start;border-bottom-left-radius:4px}.hc-u{background:#2f4a6d;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.hc-m a{color:#2f4a6d;font-weight:700}.hc-crisis{background:#fff;border:2px solid #2f4a6d}
.hc-chips{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0 4px}
.hc-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.hc-card{display:flex;flex-direction:column;gap:2px;padding:8px;border:1.5px solid #e6dfcf;border-radius:14px;background:#fff;text-decoration:none;color:#2a3644}
.hc-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:#f6efe2}.hc-card b{font-size:14px;line-height:1.3;color:#2f4a6d}.hc-card span{font-size:14px;color:#4a5566}.hc-card em{font-style:normal;font-weight:700;font-size:14px;color:#7a5a12}
.hc-in{display:flex;gap:6px;padding:10px;border-top:1px solid #e6dfcf}.hc-in input{flex:1;min-height:44px;border:1.5px solid #e6dfcf;border-radius:999px;padding:0 14px;font:16px 'BH Sans',Lexend,system-ui,sans-serif}.hc-in button{min-height:44px;padding:0 16px;border-radius:999px;border:0;background:#2f4a6d;color:#fff;font-weight:700;cursor:pointer}
#bh-chat :focus-visible,#bh-peek :focus-visible{outline:3px solid #2f4a6d;outline-offset:2px}
@media (prefers-reduced-motion:reduce){#bh-peek{transition:none}}
@media (max-width:520px){#bh-chat{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}}
/* v0.7.6.21.2 BH-142: the Haven 988 check-in bubble's links (Call 988, Text 988, 800 911 2000, Resources) were 20px tall. Each is now its own
   box, at least 44px tall on screen (#bh-chat is not inside the 75%-scaled #helper, so no counter-scaling). Text, hrefs and the JS are unchanged. */
#bh-chat .hc-checkin a{display:inline-flex;align-items:center;min-height:44px;vertical-align:middle}
/* v0.7.6.22 BH-147: Call 988 and Text 988 are their own row (no '·' left dangling at a line end); the Mexico label and its number
   wrap as a pair (label never split, number never split). Links keep min-height 44px (rule above). */
#bh-chat .hc-checkin .hc-ck-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:18px}
#bh-chat .hc-checkin .hc-ck-mx{display:flex;flex-wrap:wrap;align-items:center;column-gap:.35em}
#bh-chat .hc-checkin .hc-nw{white-space:nowrap}
