/* HAE uses the Atlas product-card structure with prominent treatment choices. */
.hae{container:hae / inline-size;--hae:#215d4c;--hae-soft:#edf5f0;--hae-line:#d7e4dc;color:#294e42;font-size:1rem;line-height:1.6}
.hae[data-mode=acute]{--hae:#85492c;--hae-soft:#faf1e9;--hae-line:#e7d7c9}
.hae button,.hae input,.hae select{font:inherit}
.hae button,.hae a,.hae summary{touch-action:manipulation}
.hae :is(button,a,summary,input,select):focus-visible{outline:3px solid #9d722f;outline-offset:4px}
.hae-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 26px}
.hae-modes button{--mode:#215d4c;--mode-pale:#edf5f0;display:flex;align-items:center;gap:16px;min-width:0;min-height:100px;padding:22px 24px;border:1px solid #d1e0d7;border-radius:18px;background:#fff;color:var(--mode);text-align:left;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.hae-modes .hae-mode-acute{--mode:#85492c;--mode-pale:#faf1e9;border-color:#e5d7c9}
.hae-modes button:hover{background:var(--mode-pale);border-color:var(--mode)}
.hae-modes button[aria-pressed=true]{background:var(--mode);border-color:var(--mode);color:#fff;box-shadow:0 5px 16px #24463815}
.hae-mode-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:13px;background:var(--mode-pale)}
.hae-mode-icon svg{width:27px;height:27px;color:var(--mode)}
.hae-modes button[aria-pressed=true] .hae-mode-icon{background:#ffffff18}
.hae-modes button[aria-pressed=true] .hae-mode-icon svg{color:#fff}
.hae-mode-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.hae-mode-copy strong{font:650 1.5rem/1.25 'Manrope',sans-serif;letter-spacing:-.035em}
.hae-mode-copy>span{font-size:.875rem;line-height:1.5}
.hae-mode-marker{width:18px;height:18px;border:1px solid currentColor;border-radius:50%;margin-left:auto;flex:0 0 18px;opacity:.65}
.hae-modes button[aria-pressed=true] .hae-mode-marker{border:5px solid #fff;background:transparent;opacity:1}
.hae-alert{display:flex;gap:12px;padding:15px 18px;margin:0 0 20px;border-left:3px solid #a77150;border-radius:0 10px 10px 0;background:#fbf2ea;color:#73452e}
.hae-alert svg{width:21px;height:21px;flex-shrink:0;margin-top:3px}.hae-alert p{font-size:1rem;line-height:1.65;margin:0}
.hae-filters{display:grid;grid-template-columns:minmax(150px,1fr) 108px minmax(155px,auto);gap:10px;align-items:center}
.hae-search,.hae-age,.hae-select{background:#fff;border:1px solid #d6e1d9;border-radius:10px;min-height:48px;display:flex;align-items:center;min-width:0}
.hae-search{gap:9px;padding:0 13px}.hae-search svg{width:18px;height:18px;flex-shrink:0;color:#586e61}.hae-search input{min-width:0;width:100%;border:0;background:transparent;padding:12px 0;font-size:1rem}
.hae-age{gap:7px;padding:0 12px}.hae-age span{font-size:.875rem;color:#53695b}.hae-age input{width:100%;min-width:0;border:0;padding:12px 0;background:transparent;font-size:1rem}
.hae-select select{width:100%;min-width:0;max-width:100%;border:0;border-radius:10px;padding:12px 10px;background:transparent;color:#466555;font-size:.875rem}
.hae-results-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:51px;margin:4px 0 9px;color:#54685b;font-size:.875rem}.hae-results-top p{margin:0}
.hae-result-actions{display:flex;align-items:center;gap:13px}.hae-results-top .hae-select{min-height:40px;background:transparent;border:0}.hae-results-top select{font-size:.875rem;padding:8px 4px;width:auto}
.hae-text-button{padding:7px 0;border:0;background:none;color:var(--hae);text-decoration:underline;text-underline-offset:4px;font-size:.875rem!important;cursor:pointer;min-height:40px}
.hae .hae-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:20px}
.hae .hae-grid:has(.hae-product-details[open]){align-items:start}
.hae .hae-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dce6df;border-radius:16px;overflow:hidden;box-shadow:0 3px 12px #1d402705;transition:border-color .18s,box-shadow .18s;transform:none}
.hae .hae-card:hover,.hae .hae-card:focus-within{border-color:#9cbba9;box-shadow:0 5px 20px #1d40270b;transform:none}
.hae .hae-photo{height:196px;padding:12px 16px 10px;background:#f4f8f5;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;justify-content:stretch;gap:7px;isolation:isolate}
.hae .hae-photo .class-badge{position:static;justify-self:start;max-width:100%;width:auto;background:#ffffffd9;border:1px solid #d8e5db;border-radius:7px;color:#456454;padding:5px 9px;font-size:.875rem;line-height:1.35}
.hae[data-mode=acute] .hae-photo{background:#faf6f1}.hae[data-mode=acute] .hae-photo .class-badge{color:#805237;border-color:#e6d9ca}
.hae .hae-photo .product-photo-stage{display:grid;place-items:center;min-width:0;min-height:0;width:100%;height:100%}
.hae .hae-photo img{display:block;width:100%;height:100%;max-height:132px;min-height:0;object-fit:contain;transform:none;mix-blend-mode:multiply}
.hae .hae-photo .photo-caption{position:static;grid-row:3;font-size:.75rem;line-height:1.4;margin:0;min-height:0;color:#536558;text-align:center}
.hae .hae-card .product-content{padding:18px 18px 14px;flex:0 0 auto;min-width:0}
.hae .hae-card .product-name{display:block;margin:0 0 5px}
.hae .hae-card h3{font:650 1.375rem/1.3 'Manrope',sans-serif;letter-spacing:-.035em;color:#244d3d;margin:0;overflow-wrap:anywhere}
.hae .hae-card .generic{font-size:1rem;line-height:1.5;color:#597061;min-height:0;margin:0 0 10px;overflow-wrap:anywhere}
.hae .hae-card .product-strength{font-size:.875rem;line-height:1.5;color:#4e6556;margin:0 0 12px;min-height:0}
.hae-card-dose{border-top:1px solid #e5ece6;padding-top:12px;margin:0 0 12px;min-height:0}
.hae-card-dose strong{font-size:1.0625rem;line-height:1.5;font-weight:600;color:var(--hae)}
.hae-card-dose p{font-size:1rem;line-height:1.6;color:#4f6657;margin:3px 0 0}
.hae .hae-card .pill-row{margin:0;gap:7px}.hae .hae-card .pill{font-size:.875rem;line-height:1.5;white-space:normal;background:var(--hae-soft);color:var(--hae);border:1px solid var(--hae-line);padding:5px 9px;border-radius:7px}
.hae-caution{font-size:.875rem;color:#805228;margin:12px 0 0}
.hae .hae-tolerability-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;min-height:36px;padding:6px 9px;border:1px solid #e7d5b4;border-radius:8px;background:#fff5e5;color:#79541e;font-size:.875rem;font-weight:550;line-height:1.5;cursor:pointer;text-align:left}
.hae .hae-tolerability-chip:hover{background:#f9ebd5;border-color:#c8a872}
.hae-tolerability-chip svg{width:16px;height:16px;flex-shrink:0}.hae-tolerability-chip svg:last-child{width:13px;transform:rotate(-90deg)}
.hae-tolerability-note{font-size:1rem;line-height:1.65}.hae-tolerability-note p{font-size:1rem;line-height:1.65;margin:0 0 16px}.hae-tolerability-note ul{padding-left:21px;margin:0 0 20px}.hae-tolerability-note li{margin:0 0 10px}.hae-tolerability-note .clinical-links{font-size:.875rem}
.hae-label-compact{display:none}
.hae-product-details{margin:auto 0 0;padding:0 18px 18px}
.hae-product-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;border:1px solid var(--hae-line);border-radius:11px;background:var(--hae-soft);color:var(--hae);font-size:.875rem;font-weight:600;line-height:1.5;padding:11px 12px;min-height:46px}
.hae-product-details>summary::-webkit-details-marker,.hae-clinical-notes>summary::-webkit-details-marker{display:none}
.hae-product-details>summary svg,.hae-clinical-notes>summary svg{width:18px;height:18px;flex-shrink:0;transition:transform .18s}
.hae-product-details[open]>summary svg,.hae-clinical-notes[open]>summary svg{transform:rotate(180deg)}
.hae-product-details[open]>summary{margin-bottom:17px}
.hae-details-body{font-size:1rem;line-height:1.7;color:#425e4e;overflow-wrap:anywhere}
.hae-details-body p{margin:0 0 13px;font-size:1rem;line-height:1.7}
.hae-details-body h4{font:600 1rem/1.5 'Manrope',sans-serif;color:#2f5943;margin:20px 0 8px}
.hae-details-body ul{padding-left:20px;margin:0 0 16px}.hae-details-body li{font-size:1rem;line-height:1.7;margin-bottom:9px}
.hae-details-body .hae-detail-note{font-size:.875rem;color:#5c6955;line-height:1.7;padding-left:12px;border-left:2px solid var(--hae-line)}
.hae-product-sources{display:flex;flex-direction:column;align-items:start;gap:7px;border-top:1px solid #dfe8de;padding-top:16px;margin-top:20px;font-size:.875rem}
.hae-product-sources a,.hae-image-source{color:#34664c;text-underline-offset:3px}.hae-details-body .hae-source-date{font-size:.75rem;color:#5a685b;margin:12px 0 6px}.hae-image-source{font-size:.75rem}
.hae-empty{grid-column:1/-1;text-align:center;padding:35px 20px;border:1px dashed #bccdbd;border-radius:15px;background:#fff}
.hae-empty h3{font-size:1.15rem;margin:0 0 6px}.hae-empty p{font-size:1rem;color:#5b6b5b;margin:0}
.hae-age-note{font-size:.875rem;color:#6b634c;line-height:1.7;margin:15px 0 0}
.hae-plan-note{font-size:.875rem;color:#526857;margin:22px 0;line-height:1.7}
.hae-clinical-notes{border:1px solid #dbe5dc;border-radius:12px;background:#ffffff8c}
.hae-clinical-notes>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;min-height:52px;padding:14px 18px;font-size:.875rem;font-weight:550}
.hae-clinical-notes>div{padding:0 18px 10px}
.hae-clinical-notes h3{font:600 1rem/1.5 'Manrope',sans-serif;color:#345a43;margin:14px 0 7px}
.hae-clinical-notes p{font-size:1rem;line-height:1.7;color:#4f6454;margin:0 0 12px}
.hae-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.8125rem;color:#596957;margin:19px 0 4px}.hae-bottom a{color:#496e55;text-underline-offset:3px}
@container hae (min-width:840px){.hae .hae-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container hae (min-width:1160px){.hae .hae-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:780px){.hae-modes{gap:12px}.hae-modes button{padding:20px;gap:12px}.hae-mode-copy strong{font-size:1.375rem}.hae-filters{grid-template-columns:minmax(145px,1fr) 100px}.hae-filters .hae-search{grid-column:1/3;grid-row:1}.hae-filters .hae-age{grid-column:2;grid-row:2}.hae-filters .hae-select{grid-column:1;grid-row:2}}
@media(max-width:540px){.hae-modes{gap:10px;margin-bottom:20px}.hae-modes button{position:relative;min-height:122px;align-items:flex-start;flex-direction:column;gap:12px;padding:17px 15px;border-radius:15px}.hae-mode-icon{width:34px;height:34px;flex-basis:34px;border-radius:9px}.hae-mode-icon svg{width:22px;height:22px}.hae-mode-copy strong{font-size:1.25rem;letter-spacing:-.03em}.hae-mode-copy>span{font-size:.875rem}.hae-mode-marker{position:absolute;top:24px;right:16px;width:16px;height:16px;flex-basis:16px}.hae-modes button[aria-pressed=true] .hae-mode-marker{border-width:4px}.hae-filters{gap:8px}.hae-results-top{gap:8px;font-size:.8125rem}.hae-results-top select{font-size:.8125rem}.hae-result-actions{gap:6px}.hae .hae-grid{gap:12px}.hae .hae-photo{height:166px;padding:10px 10px 8px;gap:7px}.hae .hae-photo .class-badge{font-size:.8125rem;padding:4px 7px}.hae .hae-photo img{max-height:100px}.hae .hae-card{border-radius:16px}.hae .hae-card .product-content{padding:15px 13px}.hae .hae-card h3{font-size:1.125rem;letter-spacing:-.02em}.hae .hae-card .generic{font-size:.875rem;margin-bottom:9px;min-height:0}.hae .hae-card .product-strength{min-height:0;font-size:.875rem;line-height:1.6;margin-bottom:12px}.hae-card-dose{min-height:0;padding-top:12px;margin-bottom:12px}.hae-card-dose strong{font-size:1rem}.hae-card-dose p{font-size:.875rem}.hae .hae-card .pill{font-size:.875rem;padding:5px 7px}.hae-product-details{padding:0 13px 14px}.hae-product-details>summary{padding:11px 9px;font-size:.875rem;gap:5px}.hae-product-details>summary svg{width:15px}.hae-product-details[open]{grid-column:1/-1}.hae .hae-card:has(.hae-product-details[open]){grid-column:1/-1}.hae .hae-card:has(.hae-product-details[open]) .generic,.hae .hae-card:has(.hae-product-details[open]) .product-strength,.hae .hae-card:has(.hae-product-details[open]) .hae-card-dose{min-height:0}.hae-details-body{padding:0 3px}.hae-alert{padding:13px 15px}.hae-clinical-notes>summary{padding:13px 15px}.hae-clinical-notes>div{padding:0 15px 7px}}
/* Mobile labels stay brief without shrinking readable text or clipping content. */
@media(max-width:540px){
 .hae .hae-grid{align-items:start;gap:12px}
 .hae .hae-photo{height:148px;padding:10px 9px 8px;gap:5px}
 .hae .hae-photo img{max-height:88px}
 .hae .hae-card .product-content{padding:12px 11px 10px}
 .hae .hae-card .generic{margin-bottom:8px}
 .hae .hae-card .product-strength{line-height:1.45;margin-bottom:10px}
 .hae-card-dose{padding-top:10px;margin-bottom:10px}
 .hae .hae-card .pill-row{gap:7px;align-items:flex-start}
 .hae .hae-card .pill{padding:4px 6px;line-height:1.4}
 .hae-label-full{display:none}.hae-label-compact{display:inline}
 .hae .hae-tolerability-chip{justify-content:flex-start;min-height:36px;padding:6px 8px;gap:6px}
 .hae .hae-tolerability-chip svg:last-child{display:none}
 .hae-product-details{margin:0;padding:0 11px 12px}
 .hae-product-details>summary{min-height:44px;padding:10px 11px}
 .hae-bottom{flex-direction:column;gap:8px;align-items:flex-start}
}
@media(max-width:360px){.hae .hae-grid{grid-template-columns:1fr}.hae-modes{grid-template-columns:1fr}.hae-modes button{min-height:86px;flex-direction:row;align-items:center}.hae-mode-marker{position:static;margin-left:auto}.hae .hae-photo{height:172px}.hae .hae-photo img{max-height:112px}.hae .hae-card .generic,.hae .hae-card .product-strength,.hae-card-dose{min-height:0}}
@media(prefers-reduced-motion:reduce){.hae-modes button,.hae-card,.hae-product-details>summary svg,.hae-clinical-notes>summary svg{transition:none}}

.hae .hae-dose-chip{background:linear-gradient(115deg,#e1d6f3,#f1e8fb);border-color:#c8b2df;color:#53336e;min-height:44px;white-space:normal;text-align:left}
.berinert-calculator{color:#263f43}.berinert-intro{font-size:1rem;line-height:1.6;margin:0 0 22px}
.berinert-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.7fr);gap:16px}
.berinert-fields label{font-size:.875rem;font-weight:600;min-width:0}.berinert-fields label>span{font-weight:400;color:#607575;margin-left:6px}
.berinert-fields input,.berinert-fields select{display:block;width:100%;box-sizing:border-box;min-width:0;min-height:48px;margin-top:8px;border:1px solid #b9cbc8;border-radius:12px;background:#fff;color:#263f43;font:inherit;font-size:1rem;padding:10px 12px}
.berinert-fields input:focus,.berinert-fields select:focus{outline:3px solid #b5dcd2;outline-offset:2px}.berinert-fields input:invalid{border-color:#a15b4b}
.berinert-result{margin:20px 0;padding:22px;border:1px solid #b5d2c8;border-radius:18px;background:linear-gradient(120deg,#e4f3eb,#f0eafa);font-size:1rem;line-height:1.6}
.berinert-dose{display:flex;flex-direction:column;gap:4px}.berinert-dose>span{font-size:.875rem;color:#526d65}.berinert-dose>strong{font:650 2.3rem/1.3 Manrope,sans-serif;color:#275d4e;overflow-wrap:anywhere}.berinert-dose small{font-size:1rem}
.berinert-preparation{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;padding-top:18px;border-top:1px solid #bacfc4}.berinert-preparation dt{font-size:.875rem;color:#536b63}.berinert-preparation dd{margin:4px 0 0;font-size:1.125rem;font-weight:650}.berinert-preparation small{display:block;font-size:.875rem;font-weight:400}
.berinert-result p{font-size:.875rem;line-height:1.65;margin:12px 0 0}.berinert-scope{font-size:.875rem;line-height:1.65;color:#5c6868}
@media(max-width:540px){.berinert-fields,.berinert-preparation{grid-template-columns:1fr}.berinert-result{padding:18px}.berinert-dose>strong{font-size:2rem}.hae .hae-dose-chip{min-height:44px}}
