/* MediChakri button system (loaded last, on every page of the site).
   Primary  = green  #15803d  (the main action of a screen: search, save, apply, submit)
   Accent   = amber  #f59e0b  (one highlight action, mostly on dark areas: header "Post a job", hero)
   Secondary= white with a thin border (the other choice next to a primary)
   Soft     = pale green (small helper actions)
   Ghost    = transparent with a white border (second choice on dark areas)
   Shape: always a pill. Heights: 40 small, 48 normal, 56 large. */
:root {
	--mcx-green: #15803d;
	--mcx-green-hover: #0a0a0a;
	--mcx-amber: #f59e0b;
	--mcx-amber-hover: #d97706;
	--mcx-amber-ink: #2e2a24;
	--mcx-line: #cbd5e1;
}

/* ---------- shape and type shared by every button ---------- */
html body .mc-search-submit,
html body .btn.btn-apply,
html body .btn.btn-theme,
html body .btn.btn-primary,
html body .btn.btn-secondary,
html body .btn.btn-theme-lighten,
html body .btn.btn-create,
html body .btn.btn-edit,
html body .btn.btn-delete,
html body .button-primary,
html body .button-secondary,
html body .button.button-primary,
html body .sc-btn,
html body .sc-google-btn,
html body .mcx-btn,
html body .mcx-st-btn,
html body .mcx-info-btn,
html body .mc-btn-pill,
html body a[class~="mc-rounded-full"][class~="mc-bg-forest"],
html body button[class~="mc-rounded-full"][class~="mc-bg-forest"],
html body a[class~="mc-rounded-full"][class~="mc-from-forest"],
html body button[class~="mc-rounded-full"][class~="mc-from-forest"],
html body a.mc-bg-mint.mc-text-forest {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* normal size: 48 high (the dashboard pills below are 44 and the table ones 40) */
html body .btn.btn-apply,
html body .btn.btn-theme,
html body .btn.btn-primary,
html body .btn.btn-secondary,
html body .btn.btn-theme-lighten,
html body .button-primary,
html body .button-secondary,
html body .sc-btn,
html body .sc-google-btn,
html body .mcx-info-btn,
html body a[class~="mc-rounded-full"][class~="mc-bg-forest"],
html body button[class~="mc-rounded-full"][class~="mc-bg-forest"],
html body a[class~="mc-rounded-full"][class~="mc-from-forest"],
html body button[class~="mc-rounded-full"][class~="mc-from-forest"] {
	min-height: 48px;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 26px;
	padding-right: 26px;
	font-size: 15px;
}
html body .mc-btn-pill {
	min-height: 44px;
	padding: 0 22px;
	font-size: 13.5px;
	box-shadow: none;
}
html body .mc-btn-view-apps,
html body .mc-btn-pill-wa,
html body .mc-btn-pill-undo,
html body .mc-btn-pill-reject,
html body .mc-app-action {
	min-height: 40px;
	padding: 0 18px;
	font-size: 13px;
}

/* ---------- PRIMARY: green, white text; near-black on hover, focus and click ---------- */
html body .mc-search-submit,
html body .btn.btn-apply,
html body .btn.btn-theme:not(.btn-theme-lighten),
html body .btn.btn-primary,
html body .button-primary,
html body .button.button-primary,
html body .sc-btn-primary,
html body .mcx-st-btn--go,
html body .mcx-btn-green,
html body .mc-btn-pill:not(.mc-btn-pill-amber):not(.mc-btn-pill-outline):not(.mc-btn-pill-undo):not(.mc-btn-pill-reject):not(.mc-btn-pill-wa),
html body .mcx-btn:not(.mcx-btn--amber):not(.mcx-btn--ghost):not(.mcx-btn--mint),
html body a[class~="mc-rounded-full"][class~="mc-bg-forest"],
html body button[class~="mc-rounded-full"][class~="mc-bg-forest"],
html body a[class~="mc-rounded-full"][class~="mc-from-forest"],
html body button[class~="mc-rounded-full"][class~="mc-from-forest"],
html body a.mc-bg-mint.mc-text-forest {
	background: var(--mcx-green) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
html body .mc-search-submit:hover,
html body .mc-search-submit:focus-visible,
html body .mc-search-submit:active,
html body .btn.btn-apply:hover,
html body .btn.btn-apply:focus-visible,
html body .btn.btn-apply:active,
html body .btn.btn-theme:not(.btn-theme-lighten):hover,
html body .btn.btn-theme:not(.btn-theme-lighten):focus-visible,
html body .btn.btn-primary:hover,
html body .btn.btn-primary:focus-visible,
html body .button-primary:hover,
html body .button-primary:focus-visible,
html body .sc-btn-primary:hover:not(:disabled),
html body .sc-btn-primary:focus-visible:not(:disabled),
html body .mcx-st-btn--go:hover,
html body .mcx-st-btn--go:focus-visible,
html body .mcx-btn-green:hover,
html body .mc-btn-pill:not(.mc-btn-pill-amber):not(.mc-btn-pill-outline):not(.mc-btn-pill-undo):not(.mc-btn-pill-reject):not(.mc-btn-pill-wa):hover,
html body .mcx-btn:not(.mcx-btn--amber):not(.mcx-btn--ghost):not(.mcx-btn--mint):hover,
html body a[class~="mc-rounded-full"][class~="mc-bg-forest"]:hover,
html body button[class~="mc-rounded-full"][class~="mc-bg-forest"]:hover,
html body a[class~="mc-rounded-full"][class~="mc-from-forest"]:hover,
html body button[class~="mc-rounded-full"][class~="mc-from-forest"]:hover,
html body a.mc-bg-mint.mc-text-forest:hover {
	background: var(--mcx-green-hover) !important;
	color: #fff !important;
	transform: none;
}
html body .mc-search-submit svg,
html body .mc-search-submit span { color: #fff !important; }

/* ---------- ACCENT: amber, dark text ---------- */
html body .mcx-btn--amber,
html body .mc-btn-pill-amber,
html body .mcx-btn--mint,
html body .mcx-info-btn,
html body .mcx-b-accent,
html body a[class~="mc-bg-amber"][class~="mc-rounded-full"] {
	background: var(--mcx-amber) !important;
	color: var(--mcx-amber-ink) !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
html body .mcx-btn--amber:hover,
html body .mcx-btn--amber:focus-visible,
html body .mc-btn-pill-amber:hover,
html body .mc-btn-pill-amber:focus-visible,
html body .mcx-btn--mint:hover,
html body .mcx-btn--mint:focus-visible,
html body .mcx-info-btn:hover,
html body .mcx-info-btn:focus-visible,
html body .mcx-b-accent:hover,
html body .mcx-b-accent:focus-visible,
html body a[class~="mc-bg-amber"][class~="mc-rounded-full"]:hover {
	background: var(--mcx-amber-hover) !important;
	color: var(--mcx-amber-ink) !important;
	transform: none;
}

/* ---------- SECONDARY: white with a thin line ---------- */
html body .mc-btn-pill-outline,
html body .mc-btn-pill-undo,
html body .mcx-st-btn--line,
html body .btn.btn-secondary,
html body .button-secondary:not(.cmb-add-group-row),
html body .sc-google-btn {
	background: #fff !important;
	color: #0f172a !important;
	border: 1px solid var(--mcx-line) !important;
	box-shadow: none !important;
}
html body .mc-btn-pill-outline:hover,
html body .mc-btn-pill-outline:focus-visible,
html body .mc-btn-pill-undo:hover,
html body .mc-btn-pill-undo:focus-visible,
html body .mcx-st-btn--line:hover,
html body .mcx-st-btn--line:focus-visible,
html body .btn.btn-secondary:hover,
html body .btn.btn-secondary:focus-visible,
html body .button-secondary:not(.cmb-add-group-row):hover,
html body .sc-google-btn:hover,
html body .sc-google-btn:focus-visible {
	background: #f0fdf4 !important;
	color: var(--mcx-green) !important;
	border-color: var(--mcx-green) !important;
}

/* ---------- SOFT: pale green ---------- */
html body .btn.btn-theme-lighten,
html body .cmb-add-group-row.button-secondary {
	background: #f0fdf4 !important;
	color: var(--mcx-green) !important;
	border: 0 !important;
	box-shadow: none !important;
}
html body .btn.btn-theme-lighten:hover,
html body .btn.btn-theme-lighten:focus-visible,
html body .cmb-add-group-row.button-secondary:hover {
	background: #dcfce7 !important;
	color: #166534 !important;
}

/* ---------- GHOST: second choice on dark areas ---------- */
html body .mcx-btn--ghost {
	background: transparent !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	box-shadow: none !important;
}
html body .mcx-btn--ghost:hover,
html body .mcx-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
	transform: none;
}
html body .mcx-b-ghost,
html body .mcx-b-ghost:hover {
	background: transparent !important;
	background-image: none !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.7) !important;
}
html body .mcx-b-ghost:hover {
	background: rgba(255, 255, 255, 0.14) !important;
}


/* chips and small pills (filter chips on the home page) */
html body .mc-rounded-full.mc-text-xs.mc-font-bold:is(a,
html body button) {
	min-height: 36px;
	padding: 0 16px;
	font-size: 12.5px;
}
/* header "Post a job" and other small amber pills */
html body a[class~="mc-bg-amber"][class~="mc-rounded-full"] {
	min-height: 40px;
	font-size: 13px;
}
/* CV builder buttons */
html body .btn.btn-create { background: var(--mcx-green) !important; color: #fff !important; border: 0 !important; min-height: 44px; padding: 0 22px; font-size: 14px; }
html body .btn.btn-create:hover { background: var(--mcx-green-hover) !important; }
html body .btn.btn-edit,
html body .btn.btn-delete { background: #fff !important; color: #0f172a !important; border: 1px solid var(--mcx-line) !important; min-height: 40px; padding: 0 18px; font-size: 13px; }
html body .btn.btn-edit:hover { background: #f0fdf4 !important; color: var(--mcx-green) !important; border-color: var(--mcx-green) !important; }

/* ---------- states ---------- */
html body .btn.btn-apply:focus-visible,
html body .btn.btn-theme:focus-visible,
html body .btn.btn-primary:focus-visible,
html body .button-primary:focus-visible,
html body .sc-btn:focus-visible,
html body .mcx-btn:focus-visible,
html body .mcx-st-btn:focus-visible,
html body .mc-btn-pill:focus-visible,
html body .mc-search-submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35) !important;
}
html body .btn:disabled,
html body .button:disabled,
html body .sc-btn:disabled,
html body .mc-btn-pill:disabled,
html body .mc-search-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* alignment of the small amber header button and the two buttons in the dark CV band */
@media (min-width: 768px) {
	html body a[class~="mc-bg-amber"][class~="mc-rounded-full"] {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding-top: 0;
		padding-bottom: 0;
	}
}
html body .mcx-b-accent,
html body .mcx-b-ghost {
	min-height: 52px;
	box-sizing: border-box;
}

/* dashboard top bar: no "Post a job" button on phones (the side menu has it) */
@media (max-width: 767px) {
	html body .mc-dash-topbar-right .mcx-dash-main-btn {
		display: none !important;
	}
}
