/* Shared result action bar for the health tools: Download Report (PDF / image / CSV / print), Copy, Share, Reset.
   Same look as the SIP / BAC / TDEE toolbar. Markup: resources/views/partials/health-actions.blade.php. Behaviour: js/tools/shared/calc-actions.js */
.ha-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.ha-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ha-dd { position: relative; display: inline-block; }
.ha-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .45rem .85rem; border-radius: .625rem; font-size: .75rem; font-weight: 600; line-height: 1.2;
    background: #fff; color: #18181b; border: 1px solid #e4e4e7; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.dark .ha-btn { background: #18181b; color: #f4f4f5; border-color: rgba(255, 255, 255, .12); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ha-btn:hover { background: rgba(244, 63, 94, .08); border-color: #f43f5e; color: #e11d48; }
.dark .ha-btn:hover { color: #fb7185; }
.ha-btn:active { transform: scale(.98); }
.ha-btn:focus-visible { outline: 2px solid #f43f5e; outline-offset: 2px; }
.ha-btn-primary, .ha-btn-primary:hover { background: #e11d48; border-color: #e11d48; color: #fff; }
.ha-btn-primary:hover { background: #be123c; border-color: #be123c; }
.ha-btn-quiet { color: #71717a; }
.dark .ha-btn-quiet { color: #a1a1aa; }
.ha-btn.is-copied, .ha-btn.is-copied:hover { background: #ecfdf5; border-color: #10b981; color: #047857; font-weight: 700; }
.dark .ha-btn.is-copied, .dark .ha-btn.is-copied:hover { background: rgba(6, 78, 59, .3); color: #34d399; }
.ha-menu {
    position: absolute; left: 0; bottom: calc(100% + .5rem); z-index: 50; width: 12.5rem; padding: .35rem;
    border-radius: 1rem; background: #fff; border: 1px solid #e4e4e7; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35);
}
.dark .ha-menu { background: #18181b; border-color: rgba(255, 255, 255, .12); }
.ha-menu.hidden { display: none; }
.ha-menu-head { padding: .25rem .6rem; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #71717a; }
.ha-item {
    display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; padding: .45rem .6rem;
    border: 0; border-radius: .65rem; background: transparent; color: #18181b; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.dark .ha-item { color: #f4f4f5; }
.ha-item:hover { background: #f4f4f5; }
.dark .ha-item:hover { background: rgba(255, 255, 255, .07); }
.ha-ico {
    width: 1.5rem; height: 1.5rem; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center;
    font-size: .7rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex: 0 0 auto;
}
.ha-sep { height: 1px; background: #e4e4e7; margin: .3rem 0; }
.dark .ha-sep { background: rgba(255, 255, 255, .1); }
@media (max-width: 480px) { .ha-bar, .ha-group { width: 100%; } .ha-btn { flex: 1 1 auto; } .ha-dd { flex: 1 1 100%; } .ha-dd .ha-btn { width: 100%; } .ha-menu { width: 100%; } }
@media print { .ha-bar { display: none !important; } }

/* Section eyebrow labels on health tools: one colour, the health category rose (#e11d48), incl. the shared Education / FAQ / Guides labels. */
.ht-eyebrow { color: #e11d48 !important; }
.dark .ht-eyebrow { color: #fb7185 !important; }
html body .tool-guide .tg-eyebrow,
html body .tg-eyebrow { color: #e11d48 !important; }
html.dark body .tool-guide .tg-eyebrow,
html.dark body .tg-eyebrow { color: #fb7185 !important; }
