:root {
	--cihrm-theme-navy: #071a3d;
	--cihrm-theme-blue: #155eef;
	--cihrm-theme-coral: #ff674d;
	--cihrm-theme-green: #00a878;
	--cihrm-theme-ink: #172033;
	--cihrm-theme-muted: #5e687b;
	--cihrm-theme-line: #dce3ed;
	--cihrm-theme-soft: #f5f7fb;
	--cihrm-theme-white: #fff;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden;
	background: #f4f6f9;
	color: var(--cihrm-theme-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: var(--cihrm-theme-blue);
}

.screen-reader-text,
.cihrm-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.cihrm-skip-link:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	overflow: visible;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fff;
	clip: auto;
	clip-path: none;
}

.cihrm-site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	border-bottom: 1px solid rgba(220, 227, 237, .85);
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
	backdrop-filter: blur(16px);
}

.admin-bar .cihrm-site-header {
	top: 32px;
}

.cihrm-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	width: min(1180px, calc(100% - 36px));
	min-height: 76px;
	margin: 0 auto;
}

.cihrm-site-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	color: var(--cihrm-theme-navy);
	text-decoration: none;
}

.cihrm-site-brand__logo {
	display: block;
	width: clamp(176px, 19vw, 224px);
	max-width: 100%;
	height: auto;
	max-height: 42px;
	object-fit: contain;
	object-position: left center;
}

.cihrm-site-brand__mark {
	display: grid;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--cihrm-theme-blue), var(--cihrm-theme-coral) 52%, var(--cihrm-theme-green));
	box-shadow: 0 9px 22px rgba(21, 94, 239, .2);
	color: #fff;
	font-size: 14px;
	font-weight: 850;
	place-items: center;
}

.cihrm-site-brand__fallback {
	display: grid;
	min-width: 0;
}

.cihrm-site-brand strong {
	font-size: 15px;
	line-height: 1.2;
}

.cihrm-site-brand small {
	margin-top: 2px;
	color: var(--cihrm-theme-muted);
	font-size: 10px;
	line-height: 1.2;
}

.cihrm-site-navigation {
	display: flex;
	align-items: center;
	gap: 22px;
}

.cihrm-site-menu,
.cihrm-footer-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cihrm-site-menu li,
.cihrm-footer-menu li {
	margin: 0;
}

.cihrm-site-menu a {
	color: #3d485c;
	font-size: 14px;
	font-weight: 680;
	text-decoration: none;
}

.cihrm-site-menu a:hover,
.cihrm-site-menu .current-menu-item > a {
	color: var(--cihrm-theme-blue);
}

.cihrm-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 43px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--cihrm-theme-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 760;
	text-decoration: none;
}

.cihrm-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 11px;
	border: 1px solid var(--cihrm-theme-line);
	border-radius: 11px;
	background: #fff;
}

.cihrm-menu-toggle > span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 4px 0;
	border-radius: 2px;
	background: var(--cihrm-theme-navy);
}

.cihrm-content-shell {
	width: min(980px, calc(100% - 32px));
	min-height: 55vh;
	margin: 40px auto 70px;
}

.cihrm-content-card,
.cihrm-dependency-card {
	padding: clamp(24px, 5vw, 48px);
	border: 1px solid var(--cihrm-theme-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
}

.cihrm-content-card h1,
.cihrm-dependency-card h1 {
	margin-top: 0;
	color: var(--cihrm-theme-navy);
}

.cihrm-dependency-card {
	width: min(760px, calc(100% - 32px));
	margin: 60px auto;
	text-align: center;
}

.cihrm-editions {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
	align-items: center;
	gap: clamp(34px, 7vw, 84px);
}

.cihrm-editions__intro h2,
.cihrm-security-band h2 {
	margin: 0;
	color: var(--cihrm-theme-navy);
	font-size: clamp(29px, 4vw, 46px);
	letter-spacing: -.035em;
	line-height: 1.12;
}

.cihrm-editions__intro p {
	color: var(--cihrm-theme-muted);
	line-height: 1.65;
}

.cihrm-editions__cards {
	display: grid;
	gap: 13px;
}

.cihrm-editions__cards article {
	display: grid;
	gap: 7px;
	padding: 23px;
	border: 1px solid var(--cihrm-theme-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
}

.cihrm-editions__cards article.is-pro {
	border-color: #8ea9ff;
	background: linear-gradient(135deg, #f2f5ff, #f5fffa);
}

.cihrm-editions__cards span {
	color: var(--cihrm-theme-blue);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cihrm-editions__cards strong {
	color: var(--cihrm-theme-navy);
	font-size: 19px;
}

.cihrm-editions__cards .cihrm-edition-price {
	font-size: clamp(27px, 4vw, 36px);
	letter-spacing: -.035em;
	line-height: 1.1;
}

.cihrm-edition-price small {
	margin-left: 5px;
	color: var(--cihrm-theme-muted);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0;
}

.cihrm-editions__cards p {
	margin: 0;
	color: var(--cihrm-theme-muted);
	font-size: 14px;
	line-height: 1.55;
}

.cihrm-editions__cards p b {
	color: #273247;
}

.cihrm-editions__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	padding: 11px 15px;
	border: 1px solid #cad5e6;
	border-radius: 12px;
	background: #fff;
	color: var(--cihrm-theme-blue);
	font-size: 13px;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
}

.cihrm-security-band {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	align-items: center;
	gap: clamp(30px, 7vw, 80px);
	margin-top: clamp(64px, 9vw, 104px);
	padding: clamp(30px, 6vw, 58px);
	border: 1px solid #d6e0ec;
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 16px 44px rgba(15, 23, 42, .065);
}

.cihrm-security-band ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cihrm-security-band li {
	position: relative;
	padding: 15px 17px 15px 45px;
	border-radius: 13px;
	background: var(--cihrm-theme-soft);
	color: #344056;
	font-size: 14px;
	font-weight: 700;
}

.cihrm-security-band li::before {
	position: absolute;
	top: 14px;
	left: 17px;
	color: var(--cihrm-theme-green);
	content: "\2713";
	font-weight: 900;
}

.cihrm-existing-customer {
	margin: 20px 0 0;
	color: var(--cihrm-theme-muted);
	font-size: 13px;
	text-align: center;
}

.cihrm-site-footer {
	margin-top: 70px;
	background: var(--cihrm-theme-navy);
	color: #fff;
}

.cihrm-site-footer__inner {
	display: grid;
	grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr) auto;
	align-items: center;
	gap: 36px;
	width: min(1180px, calc(100% - 36px));
	margin: 0 auto;
	padding: 48px 0;
}

.cihrm-site-brand.is-footer,
.cihrm-site-brand.is-footer strong {
	color: #fff;
}

.cihrm-site-brand.is-footer .cihrm-site-brand__logo {
	width: clamp(188px, 20vw, 224px);
}

.cihrm-site-brand.is-footer small,
.cihrm-site-footer p {
	color: #aebbd1;
}

.cihrm-site-footer p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

.cihrm-footer-menu {
	justify-content: flex-end;
}

.cihrm-footer-menu a {
	color: #d5deed;
	font-size: 13px;
	text-decoration: none;
}

.cihrm-site-footer__legal {
	padding: 17px;
	border-top: 1px solid #26334b;
	color: #8998b0;
	font-size: 11px;
	text-align: center;
}

/* Customer portal presentation. Business rules and data remain in the plugin. */
.cihrm-license-portal {
	width: min(1120px, calc(100% - 32px));
	margin: 36px auto 64px;
	color: var(--cihrm-theme-ink);
}

.cihrm-license-portal * {
	box-sizing: border-box;
}

.cihrm-license-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.cihrm-license-portal-header-actions,
.cihrm-license-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.cihrm-license-portal h1 {
	margin: 0;
	color: var(--cihrm-theme-navy);
	font-size: clamp(28px, 5vw, 40px);
	letter-spacing: -.03em;
}

.cihrm-license-portal h2 {
	margin: 0 0 8px;
	color: var(--cihrm-theme-navy);
}

.cihrm-license-portal h3 {
	margin: 28px 0 10px;
}

.cihrm-license-portal p {
	color: var(--cihrm-theme-muted);
	line-height: 1.55;
}

.cihrm-license-portal-card {
	overflow-x: auto;
	margin: 16px 0;
	padding: 24px;
	border: 1px solid var(--cihrm-theme-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(22, 32, 51, .06);
}

.cihrm-license-onboarding {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	padding: 0;
	background: var(--cihrm-theme-line);
}

.cihrm-license-onboarding div {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	padding: 20px;
	background: #f8faff;
}

.cihrm-license-onboarding span {
	display: grid;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #10203c;
	color: #fff;
	font-weight: 800;
	place-items: center;
}

.cihrm-license-onboarding strong {
	display: block;
	margin-bottom: 4px;
}

.cihrm-license-onboarding p {
	margin: 0;
	font-size: 13px;
}

.cihrm-license-portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.cihrm-license-portal-grid > div {
	min-width: 0;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
}

.cihrm-license-portal code {
	display: block;
	overflow-wrap: anywhere;
	padding: 10px;
	border-radius: 9px;
	background: #eaf0fb;
	color: #10203c;
	font-size: 12px;
}

.cihrm-license-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	background: #dcfce7;
	color: #166534;
	font-size: 13px;
	font-weight: 700;
}

.cihrm-license-badge.is-disabled {
	background: #fee2e2;
	color: #991b1b;
}

.cihrm-license-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--cihrm-theme-blue);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.cihrm-license-button.is-secondary {
	border: 1px solid #ccd5e2;
	background: #fff;
	color: var(--cihrm-theme-ink) !important;
}

.cihrm-license-muted {
	color: #64748b;
	font-size: 13px;
}

.cihrm-license-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
}

.cihrm-license-table th,
.cihrm-license-table td {
	padding: 12px 8px;
	border-bottom: 1px solid #e8edf3;
	text-align: left;
}

.cihrm-license-login {
	max-width: 480px;
	margin: 60px auto;
}

.cihrm-license-login input {
	width: 100%;
	min-height: 46px;
	margin: 5px 0 14px;
	padding: 11px;
	border: 1px solid #cfd8e5;
	border-radius: 9px;
}

.cihrm-license-login .button {
	padding: 11px 16px;
	border: 0;
	border-radius: 9px;
	background: var(--cihrm-theme-blue);
	color: #fff;
}

/* WooCommerce pages share the same contained rhythm. */
.woocommerce-page main,
.woocommerce-page .site-main {
	max-width: 1180px;
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 900px) {
	.cihrm-editions,
	.cihrm-security-band {
		grid-template-columns: 1fr;
	}

	.cihrm-site-footer__inner {
		grid-template-columns: 1fr;
	}

	.cihrm-footer-menu {
		justify-content: flex-start;
	}
}

@media (max-width: 782px) {
	.admin-bar .cihrm-site-header {
		top: 46px;
	}
}

@media (max-width: 760px) {
	.cihrm-menu-toggle {
		display: block;
	}

	.cihrm-site-navigation {
		display: none;
		position: absolute;
		top: calc(100% + 1px);
		right: 10px;
		left: 10px;
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
		padding: 17px;
		border: 1px solid var(--cihrm-theme-line);
		border-radius: 15px;
		background: #fff;
		box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
	}

	.cihrm-site-navigation.is-open {
		display: flex;
	}

	.cihrm-site-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.cihrm-site-menu a {
		display: block;
		padding: 11px 8px;
	}

	.cihrm-header-cta {
		width: 100%;
	}

	.cihrm-license-onboarding {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 650px) {
	.cihrm-site-header__inner {
		width: min(100% - 20px, 1180px);
	}

	.cihrm-site-brand small {
		display: none;
	}

	.cihrm-site-brand__logo {
		width: 166px;
		max-height: 36px;
	}

	.cihrm-editions {
		grid-template-columns: minmax(0, 1fr);
	}

	.cihrm-license-portal {
		width: min(100% - 20px, 1120px);
		margin-top: 18px;
	}

	.cihrm-license-portal-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.cihrm-license-portal-header-actions,
	.cihrm-license-actions,
	.cihrm-license-button {
		width: 100%;
	}

	.cihrm-license-portal-card {
		padding: 18px;
	}

	.cihrm-license-table {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
