/* Shared public-site containment and searchable specialty controls. */
header nav > .group > .absolute { width: max-content; max-width: min(24rem, calc(100vw - 2rem)); }
header nav > .group > .absolute > div { width: auto; min-width: 15rem; max-width: 100%; padding: .5rem; background-color: #0c1915; }
header nav > .group > .absolute a { white-space: normal; overflow-wrap: anywhere; }
header nav > .group:focus-within > .absolute { opacity: 1; visibility: visible; }
header nav > .group:last-child > .absolute { left: auto; right: 0; }
#mobile-drawer a { white-space: normal; overflow-wrap: anywhere; }
a.bih-partner-card { height: auto; min-width: 0; }
.bih-partner-card .logo-badge-frame { flex: 0 0 3rem; width: 3rem; }
.bih-partner-card .logo-badge-frame img { width: 100%; object-fit: contain; }
.bih-partner-card .text-left { flex: 1; min-width: 0; }
.bih-partner-card .text-left > div { white-space: normal; overflow-wrap: anywhere; }
.doc-card > div:last-child { flex-wrap: wrap; }
.bih-specialty { color: #14231f; font: 600 .875rem Quicksand, sans-serif; min-width: 0; }
.bih-specialty summary { cursor: pointer; padding: .75rem; border: 1px solid #c4ccc7; border-radius: 1rem; background: #f5f5f4; overflow-wrap: anywhere; }
.bih-specialty summary:focus-visible, .bih-specialty button:focus-visible, .bih-specialty input:focus { outline: 2px solid #134b42; outline-offset: 2px; }
.bih-specialty-panel { padding: .75rem; margin-top: .4rem; border: 1px solid #c4ccc7; border-radius: 1rem; background: white; }
.bih-specialty input { box-sizing: border-box; width: 100%; padding: .65rem; border: 1px solid #a8b6ae; border-radius: .65rem; font: inherit; }
.bih-specialty-options { max-height: 15rem; overflow-y: auto; margin-top: .5rem; }
.bih-specialty button { display: block; width: 100%; padding: .65rem; text-align: left; border-radius: .5rem; white-space: normal; overflow-wrap: anywhere; font: inherit; }
.bih-specialty button:hover, .bih-specialty button[aria-pressed="true"] { background: #e7efdc; }
.bih-specialty [hidden] { display: none !important; }

/* Let utility links and result counts adapt at intermediate widths. */
body > div:first-child:has(a[href="emergency-care.php"]) > div { flex-wrap: wrap; }
body > div:first-child:has(a[href="emergency-care.php"]) > div > div:first-child { flex-wrap: wrap; }
#doc-count-badge { white-space: normal; overflow-wrap: anywhere; }
