/*
 * Meet Hour button colours: primary #4B6790 (navy), secondary #1ACC8D (green).
 * Loaded by partials.go-buttons on Meet Hour pages only: a white-label account or agency tenant that sets its own
 * button colour never gets this file, so its brand colour wins (layouts, tenant_theme, dashboard_actions_theme).
 *
 *  - .mh-btn-go: the page's main "go" action (Instant Meeting, Join / Start, Create Meeting, Schedule, Publish,
 *    Login, Sign up). Green with a white, semi-bold label; navy on hover.
 *  - every other primary button (.button.bg-theme-1, .btn-primary, the dashboard tiles, .mh-btn, page-head primaries)
 *    stays navy and turns green on hover.
 *  - .mh-btn-primary: a dashboard tile drawn navy (Schedule a Meeting).
 *  - .mh-next__badge.is-soon: the dashboard's "Starts in N min" pill.
 *
 * Selectors start with :root:not(#mh) (an id's weight) so they win over the older page, Midone and dark-mode rules
 * that also use !important, without matching on text.
 */
:root {
    --mh-primary: #4B6790;
    --mh-primary-hover: #1ACC8D;
    --mh-secondary: #1ACC8D;
    --mh-secondary-text: #ffffff;
    --mh-secondary-hover: #4B6790;
    --mh-soon-bg: #E8FBF4;
    --mh-soon-text: #047857;
}
/* Dark mode: a deeper green (as the dark dashboard tiles) so the white label stays readable on the dark page. */
html.dark {
    --mh-secondary: #12976a;
    --mh-primary-hover: #12976a;
    --mh-soon-bg: rgba(26, 204, 141, .16);
    --mh-soon-text: #6ee7b7;
}

/* ---------- go: green, white label ---------- */
:root:not(#mh) .mh-btn-go {
    background-color: var(--mh-secondary) !important;
    border-color: var(--mh-secondary) !important;
    color: var(--mh-secondary-text) !important;
    font-weight: 600 !important;
    filter: none;
}
:root:not(#mh) .mh-btn-go :is(span, i, svg, .dashboard-meet-btn, .mh-act__label) { color: inherit !important; font-weight: inherit !important; }
:root:not(#mh) .mh-btn-go svg.loader { stroke: currentColor; }
:root:not(#mh) .mh-btn-go:is(:hover, :focus-visible) {
    background-color: var(--mh-secondary-hover) !important;
    border-color: var(--mh-secondary-hover) !important;
    color: var(--mh-secondary-text) !important;
    filter: none;
}
:root:not(#mh) .mh-btn-go:focus-visible { outline: 3px solid color-mix(in srgb, var(--mh-secondary) 45%, transparent); outline-offset: 2px; }

/* ---------- navy tile (dashboard Schedule a Meeting, was sky blue) ---------- */
:root:not(#mh) .mh-btn-primary { background-color: var(--mh-primary) !important; border-color: var(--mh-primary) !important; color: #fff !important; }

/* ---------- every other primary: navy, green on hover ---------- */
:root:not(#mh) :is(.button.bg-theme-1, .btn-primary, .mh-btn-primary, .mh-join, .mh-btn:not(.mh-btn--ghost), .mh-page-head__btn.is-primary, .mh-floatsave__btn, .mh-act .mh-act__primary.is-join):not(.mh-btn-go):not(.mh-proom *):is(:hover, :focus-visible) {
    background-color: var(--mh-primary-hover) !important;
    border-color: var(--mh-primary-hover) !important;
    color: #fff !important;
    filter: none;
}

/* ---------- "Starts in N min" ---------- */
:root:not(#mh) .mh-next__badge.is-soon { background: var(--mh-soon-bg) !important; color: var(--mh-soon-text) !important; font-weight: 600; }
