/**
 * Charta 2.3.3 enterprise homepage refinement.
 */

:root {
	--charta-enterprise-navy: #071a2e;
	--charta-enterprise-navy-2: #0d2845;
	--charta-enterprise-blue: #2463eb;
	--charta-enterprise-blue-dark: #174ec7;
	--charta-enterprise-cyan: #2e9bcf;
	--charta-enterprise-gold: #c9a85f;
	--charta-enterprise-text: #17263a;
	--charta-enterprise-muted: #617086;
	--charta-enterprise-line: #dce5ef;
	--charta-enterprise-soft: #f4f7fb;
	--charta-enterprise-white: #ffffff;
	--charta-enterprise-shadow: 0 20px 55px rgba(18, 43, 73, .10);
}

.charta-enterprise-shell {
	width: min(1360px, calc(100% - 48px));
	margin-right: auto;
	margin-left: auto;
}

.charta-enterprise-home {
	color: var(--charta-enterprise-text);
	background: #fff;
}

.charta-enterprise-home * {
	box-sizing: border-box;
}

/* Remove the default block gap between the saved header template and the enterprise homepage. */
body.charta-enterprise-home-enabled .wp-site-blocks > .charta-enterprise-home,
body.charta-enterprise-home-enabled .site-header + .charta-enterprise-home {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/* The compact density is the 2.3.1 default; standard keeps the earlier spacious rhythm. */
body.charta-enterprise-density-standard .charta-enterprise-section {
	padding-top: 82px;
	padding-bottom: 82px;
}

body.charta-enterprise-density-standard .charta-enterprise-category-card {
	min-height: 286px;
}

body.charta-enterprise-density-standard .charta-enterprise-advantage {
	min-height: 180px;
}

body.charta-enterprise-density-standard .site-content.wp-block-group {
	padding-top: 72px !important;
	padding-bottom: 82px !important;
}

/* Header utilities */
.site-header .charta-header-actions {
	gap: 1.15rem;
}

.site-header .charta-header-tools,
.site-header .wp-block-shortcode:has(.charta-header-tools) {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0;
}

.site-header .wp-block-shortcode:has(.charta-header-tools) {
	min-width: max-content;
}

.charta-header-search {
	position: relative;
}

.charta-header-search summary {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 42px;
	padding: 0 .85rem;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 6px;
	color: rgba(255, 255, 255, .86);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.charta-header-search summary::-webkit-details-marker {
	display: none;
}

.charta-header-search summary:hover,
.charta-header-search[open] summary {
	border-color: rgba(255, 255, 255, .32);
	background: rgba(255, 255, 255, .07);
	color: #fff;
}

.charta-header-search summary svg,
.charta-header-member-button svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.charta-header-search form {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 100;
	display: flex;
	width: min(440px, 88vw);
	padding: 12px;
	border: 1px solid #d7e1ec;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(3, 20, 38, .24);
}

.charta-header-search form::before {
	position: absolute;
	top: -7px;
	right: 34px;
	width: 12px;
	height: 12px;
	border-top: 1px solid #d7e1ec;
	border-left: 1px solid #d7e1ec;
	background: #fff;
	content: "";
	transform: rotate(45deg);
}

.charta-header-search form label {
	flex: 1;
	margin: 0;
}

.charta-header-search form input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #d8e2ed;
	border-radius: 5px 0 0 5px;
	outline: 0;
}

.charta-header-search form input:focus {
	border-color: var(--charta-enterprise-blue);
	box-shadow: 0 0 0 3px rgba(36, 99, 235, .12);
}

.charta-header-search form button {
	min-width: 74px;
	border: 0;
	border-radius: 0 5px 5px 0;
	background: var(--charta-enterprise-blue);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.charta-header-member-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .48rem;
	min-height: 42px;
	padding: 0 1rem;
	border: 1px solid rgba(201, 168, 95, .62);
	border-radius: 6px;
	background: rgba(201, 168, 95, .08);
	color: #f0d99f !important;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.charta-header-member-button:hover,
.charta-header-member-button:focus-visible {
	border-color: #d8bb77;
	background: #c9a85f;
	color: #071a2e !important;
}

/* Hero */
.charta-enterprise-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 66px;
	background:
		radial-gradient(circle at 78% 20%, rgba(46, 155, 207, .18), transparent 28%),
		radial-gradient(circle at 6% 100%, rgba(36, 99, 235, .16), transparent 30%),
		linear-gradient(132deg, #071a2e 0%, #0b2440 60%, #0d2c4f 100%);
	color: #fff;
}

.charta-enterprise-hero::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	mask-image: linear-gradient(to right, rgba(0, 0, 0, .75), transparent 76%);
	pointer-events: none;
}

.charta-enterprise-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(430px, .78fr);
	gap: 60px;
	align-items: center;
}

.charta-enterprise-eyebrow {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 1.25rem;
	color: #bfd4eb;
	font-size: .86rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.charta-enterprise-eyebrow span {
	display: inline-block;
	width: 42px;
	height: 2px;
	background: var(--charta-enterprise-gold);
}

.charta-enterprise-hero h1 {
	max-width: 780px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.4rem, 4.25vw, 4.45rem);
	font-weight: 760;
	line-height: 1.13;
	letter-spacing: -.045em;
	text-wrap: balance;
}

.charta-enterprise-hero__description {
	max-width: 710px;
	margin: 1.65rem 0 0;
	color: rgba(232, 240, 249, .76);
	font-size: clamp(1rem, 1.15vw, 1.13rem);
	line-height: 1.9;
}

.charta-enterprise-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .85rem;
	margin-top: 2.15rem;
}

.charta-enterprise-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	min-height: 50px;
	padding: 0 1.4rem;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: .97rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.charta-enterprise-button:hover {
	transform: translateY(-2px);
}

.charta-enterprise-button--primary {
	background: var(--charta-enterprise-blue);
	box-shadow: 0 14px 32px rgba(17, 78, 197, .34);
	color: #fff !important;
}

.charta-enterprise-button--primary:hover {
	background: #3472f3;
	color: #fff !important;
}

.charta-enterprise-button--secondary {
	border-color: rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .04);
	color: #fff !important;
}

.charta-enterprise-button--secondary:hover {
	border-color: rgba(255, 255, 255, .48);
	background: rgba(255, 255, 255, .09);
}

.charta-enterprise-trust {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem 1.3rem;
	margin-top: 2rem;
	color: rgba(224, 235, 246, .63);
	font-size: .84rem;
}

.charta-enterprise-trust span {
	position: relative;
	padding-left: 1rem;
}

.charta-enterprise-trust span::before {
	position: absolute;
	top: .55em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #58c1de;
	content: "";
}

.charta-enterprise-hero__visual {
	position: relative;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
	box-shadow: 0 32px 70px rgba(0, 0, 0, .27);
	backdrop-filter: blur(12px);
}

.charta-enterprise-hero__visual-head,
.charta-enterprise-hero__visual-foot {
	display: flex;
	align-items: center;
	gap: .65rem;
}

.charta-enterprise-hero__visual-head {
	padding: 0 2px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.charta-enterprise-hero__visual-head strong {
	font-size: .93rem;
}

.charta-enterprise-hero__visual-head small {
	margin-left: auto;
	color: rgba(255, 255, 255, .48);
}

.charta-enterprise-status-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 5px rgba(74, 222, 128, .12);
}

.charta-enterprise-preview-list {
	display: grid;
	gap: 9px;
	padding: 14px 0;
}

.charta-enterprise-preview-item {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) 26px;
	gap: 12px;
	align-items: center;
	min-height: 74px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 7px;
	background: rgba(255, 255, 255, .06);
	color: #fff !important;
	text-decoration: none !important;
	transition: border-color .2s ease, background-color .2s ease;
}

.charta-enterprise-preview-item:hover {
	border-color: rgba(96, 165, 250, .45);
	background: rgba(255, 255, 255, .1);
}

.charta-enterprise-preview-item__thumb {
	display: flex;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 54px;
	border-radius: 5px;
	background: linear-gradient(145deg, #204f7d, #153655);
}

.charta-enterprise-preview-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.charta-enterprise-preview-item__thumb svg {
	width: 22px;
	height: 22px;
	fill: rgba(255, 255, 255, .65);
}

.charta-enterprise-preview-item__body {
	display: grid;
	gap: .2rem;
	min-width: 0;
}

.charta-enterprise-preview-item__body small {
	color: #85c8ed;
	font-size: .72rem;
}

.charta-enterprise-preview-item__body strong {
	overflow: hidden;
	color: #fff;
	font-size: .9rem;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.charta-enterprise-preview-item__arrow {
	color: rgba(255, 255, 255, .45);
	font-size: 1rem;
}

.charta-enterprise-preview-empty {
	padding: 2rem 1rem;
	color: rgba(255, 255, 255, .62);
	font-size: .9rem;
	text-align: center;
}

.charta-enterprise-hero__visual-foot {
	justify-content: space-between;
	padding: 14px 2px 0;
	border-top: 1px solid rgba(255, 255, 255, .11);
	color: rgba(255, 255, 255, .52);
	font-size: .78rem;
}

.charta-enterprise-hero__visual-foot strong {
	color: rgba(255, 255, 255, .88);
	font-size: .8rem;
}

/* Statistics */
.charta-enterprise-stats {
	position: relative;
	z-index: 3;
	margin-top: -1px;
	border-bottom: 1px solid var(--charta-enterprise-line);
	background: #fff;
}

.charta-enterprise-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.charta-enterprise-stat {
	position: relative;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: .75rem;
	padding: 21px 18px;
}

.charta-enterprise-stat + .charta-enterprise-stat::before {
	position: absolute;
	top: 24%;
	bottom: 24%;
	left: 0;
	width: 1px;
	background: var(--charta-enterprise-line);
	content: "";
}

.charta-enterprise-stat strong {
	color: var(--charta-enterprise-navy-2);
	font-size: clamp(1.55rem, 2.1vw, 2.15rem);
	font-weight: 760;
	letter-spacing: -.035em;
}

.charta-enterprise-stat span {
	color: var(--charta-enterprise-muted);
	font-size: .88rem;
	font-weight: 600;
}

/* Shared sections */
.charta-enterprise-section {
	padding: 54px 0;
}

.charta-enterprise-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 24px;
}

.charta-enterprise-section-heading > div {
	max-width: 720px;
}

.charta-enterprise-section-heading span,
.charta-enterprise-latest-heading > span {
	display: block;
	margin-bottom: .65rem;
	color: var(--charta-enterprise-blue);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .16em;
}

.charta-enterprise-section-heading h2,
.charta-enterprise-latest-heading h2 {
	margin: 0;
	color: var(--charta-enterprise-text);
	font-size: clamp(1.75rem, 2.5vw, 2.55rem);
	font-weight: 760;
	line-height: 1.25;
	letter-spacing: -.035em;
}

.charta-enterprise-section-heading p,
.charta-enterprise-latest-heading p {
	max-width: 650px;
	margin: .85rem 0 0;
	color: var(--charta-enterprise-muted);
	font-size: .98rem;
	line-height: 1.8;
}

.charta-enterprise-section-heading--split > a {
	padding-bottom: .3rem;
	border-bottom: 1px solid #9bb5d3;
	color: #355572 !important;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none !important;
}

.charta-enterprise-section-heading--split > a:hover {
	border-color: var(--charta-enterprise-blue);
	color: var(--charta-enterprise-blue) !important;
}

/* Category cards */
.charta-enterprise-categories {
	background: #fff;
}

.charta-enterprise-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--charta-enterprise-line);
	border-left: 1px solid var(--charta-enterprise-line);
}

.charta-enterprise-category-card {
	position: relative;
	display: flex;
	min-height: 244px;
	padding: 26px 26px 23px;
	border-right: 1px solid var(--charta-enterprise-line);
	border-bottom: 1px solid var(--charta-enterprise-line);
	background: #fff;
	color: var(--charta-enterprise-text) !important;
	text-decoration: none !important;
	flex-direction: column;
	transition: background-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.charta-enterprise-category-card:hover {
	z-index: 2;
	background: #f8fbff;
	box-shadow: 0 18px 42px rgba(20, 61, 105, .11);
	transform: translateY(-5px);
}

.charta-enterprise-category-card__number {
	position: absolute;
	top: 24px;
	right: 24px;
	color: #c8d3df;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
}

.charta-enterprise-category-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 24px;
	border-radius: 8px;
	background: #edf4ff;
	color: var(--charta-enterprise-blue);
}

.charta-enterprise-category-card__icon svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.charta-enterprise-category-card h3 {
	margin: 0;
	color: var(--charta-enterprise-text);
	font-size: 1.22rem;
	font-weight: 740;
}

.charta-enterprise-category-card p {
	margin: .85rem 0 0;
	color: var(--charta-enterprise-muted);
	font-size: .91rem;
	line-height: 1.8;
}

.charta-enterprise-category-card__more {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: auto;
	padding-top: 1rem;
	color: #375b82;
	font-size: .86rem;
	font-weight: 700;
}

.charta-enterprise-category-card__more b {
	font-size: 1rem;
	transition: transform .2s ease;
}

.charta-enterprise-category-card:hover .charta-enterprise-category-card__more b {
	transform: translateX(4px);
}

/* Featured resources */
.charta-enterprise-featured {
	border-top: 1px solid #e7edf4;
	border-bottom: 1px solid #e1e8f0;
	background: var(--charta-enterprise-soft);
}

.charta-enterprise-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.charta-enterprise-resource-card {
	overflow: hidden;
	border: 1px solid #dbe4ee;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(22, 54, 91, .06);
	transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.charta-enterprise-resource-card:hover {
	border-color: #bbcee3;
	box-shadow: 0 18px 42px rgba(22, 54, 91, .11);
	transform: translateY(-4px);
}

.charta-enterprise-resource-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, #dfeaf7, #eef4fa);
}

.charta-enterprise-resource-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.charta-enterprise-resource-card:hover .charta-enterprise-resource-card__media img {
	transform: scale(1.025);
}

.charta-enterprise-resource-card__media > span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.charta-enterprise-resource-card__media > span svg {
	width: 42px;
	height: 42px;
	fill: #9bb1c8;
}

.charta-enterprise-resource-card__media em {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: .32rem .58rem;
	border-radius: 4px;
	background: rgba(7, 26, 46, .88);
	color: #fff;
	font-size: .72rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .08em;
}

.charta-enterprise-resource-card__body {
	padding: 22px 22px 20px;
}

.charta-enterprise-resource-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: #8390a2;
	font-size: .75rem;
}

.charta-enterprise-resource-card__meta span {
	color: var(--charta-enterprise-blue);
	font-weight: 700;
}

.charta-enterprise-resource-card h3 {
	margin: .85rem 0 0;
	font-size: 1.08rem;
	font-weight: 740;
	line-height: 1.5;
}

.charta-enterprise-resource-card h3 a {
	color: var(--charta-enterprise-text) !important;
	text-decoration: none !important;
}

.charta-enterprise-resource-card h3 a:hover {
	color: var(--charta-enterprise-blue) !important;
}

.charta-enterprise-resource-card p {
	display: -webkit-box;
	overflow: hidden;
	margin: .75rem 0 0;
	color: var(--charta-enterprise-muted);
	font-size: .88rem;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.charta-enterprise-resource-card__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: 1.15rem;
	color: #355a81 !important;
	font-size: .83rem;
	font-weight: 700;
	text-decoration: none !important;
}

/* Use the available width intelligently when the site has only one or two featured posts. */
.charta-enterprise-featured-grid.is-count-1 {
	grid-template-columns: minmax(0, 920px);
}

.charta-enterprise-featured-grid.is-count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 961px) {
	.charta-enterprise-featured-grid.is-count-1 .charta-enterprise-resource-card,
	.charta-enterprise-featured-grid.is-count-2 .charta-enterprise-resource-card {
		display: grid;
		grid-template-columns: minmax(220px, 44%) minmax(0, 56%);
		min-height: 250px;
	}

	.charta-enterprise-featured-grid.is-count-1 .charta-enterprise-resource-card__media,
	.charta-enterprise-featured-grid.is-count-2 .charta-enterprise-resource-card__media {
		height: 100%;
		aspect-ratio: auto;
	}

	.charta-enterprise-featured-grid.is-count-1 .charta-enterprise-resource-card__body,
	.charta-enterprise-featured-grid.is-count-2 .charta-enterprise-resource-card__body {
		display: flex;
		min-width: 0;
		flex-direction: column;
	}

	.charta-enterprise-featured-grid.is-count-1 .charta-enterprise-resource-card__link,
	.charta-enterprise-featured-grid.is-count-2 .charta-enterprise-resource-card__link {
		margin-top: auto;
		padding-top: 1rem;
	}
}

/* Advantages */
.charta-enterprise-advantages {
	background: #fff;
}

.charta-enterprise-advantages__layout {
	display: grid;
	grid-template-columns: minmax(270px, .68fr) minmax(0, 1.32fr);
	gap: 58px;
	align-items: start;
}

.charta-enterprise-advantages__layout .charta-enterprise-section-heading {
	position: sticky;
	top: 110px;
	margin: 0;
}

.charta-enterprise-advantages__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--charta-enterprise-line);
	border-left: 1px solid var(--charta-enterprise-line);
}

.charta-enterprise-advantage {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 18px;
	min-height: 156px;
	padding: 24px 24px;
	border-right: 1px solid var(--charta-enterprise-line);
	border-bottom: 1px solid var(--charta-enterprise-line);
}

.charta-enterprise-advantage > span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 7px;
	background: #eff5fb;
	color: #356a9c;
}

.charta-enterprise-advantage svg {
	width: 23px;
	height: 23px;
	fill: currentColor;
}

.charta-enterprise-advantage h3 {
	margin: 0;
	color: var(--charta-enterprise-text);
	font-size: 1.08rem;
	font-weight: 740;
}

.charta-enterprise-advantage p {
	margin: .6rem 0 0;
	color: var(--charta-enterprise-muted);
	font-size: .89rem;
	line-height: 1.8;
}

/* Latest resources area */
body.charta-enterprise-home-enabled .site-content.wp-block-group {
	padding-top: 58px !important;
	padding-bottom: 64px !important;
	background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%) !important;
}

body.charta-enterprise-home-enabled .site-content.wp-block-group {
	min-height: 0;
}

body.charta-enterprise-home-enabled .post-wrapper .wp-block-query-pagination {
	margin-top: 1.5rem;
}

.charta-enterprise-latest-heading {
	position: relative;
	margin: 0 0 25px;
	padding: 0 0 22px;
	border-bottom: 1px solid #d7e1eb;
}

.charta-enterprise-latest-heading::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 72px;
	height: 2px;
	background: var(--charta-enterprise-blue);
	content: "";
}

.charta-enterprise-latest-heading h2 {
	font-size: clamp(1.7rem, 2.2vw, 2.25rem);
}

.charta-enterprise-latest-heading p {
	font-size: .94rem;
}

body.charta-enterprise-home-enabled .site-content > .wp-block-columns {
	gap: 30px;
}

body.charta-enterprise-home-enabled .site-content > .wp-block-columns > .post-wrapper {
	min-width: 0;
	flex-basis: calc(100% - 356px) !important;
}

body.charta-enterprise-home-enabled .site-content > .wp-block-columns > .sidebar-wrapper {
	flex-basis: 322px !important;
}

.charta-enterprise-sidebar.is-sticky {
	position: sticky;
	top: 96px;
}

.charta-enterprise-sidebar-widget {
	padding: 1.35rem 1.25rem;
	border: 1px solid #dbe4ed;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(21, 52, 87, .055);
}

.charta-enterprise-sidebar-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.charta-enterprise-sidebar-list li {
	position: relative;
	margin: 0;
	padding: .58rem 0 .58rem 1rem;
	border-bottom: 1px solid #edf1f5;
}

.charta-enterprise-sidebar-list li:last-child {
	border-bottom: 0;
}

.charta-enterprise-sidebar-list li::before {
	position: absolute;
	top: 1.02rem;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #8ba6c1;
	content: "";
}

.charta-enterprise-sidebar-list a {
	color: #4f647c !important;
	font-size: .9rem;
	text-decoration: none !important;
}

.charta-enterprise-sidebar-list a:hover {
	color: var(--charta-enterprise-blue) !important;
}

/* Responsive */
@media (max-width: 1180px) {
	.charta-enterprise-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(380px, .76fr);
		gap: 46px;
	}

	.charta-enterprise-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.charta-enterprise-featured-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-header .charta-header-tools {
		margin-left: auto;
	}
}

@media (max-width: 960px) {
	.charta-enterprise-featured-grid.is-count-1 {
		grid-template-columns: 1fr;
	}

	.charta-enterprise-featured-grid.is-count-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.charta-enterprise-shell {
		width: min(100% - 34px, 1360px);
	}

	.charta-enterprise-hero {
		padding: 58px 0;
	}

	.charta-enterprise-hero__grid {
		grid-template-columns: 1fr;
	}

	.charta-enterprise-hero__visual {
		max-width: 720px;
	}

	.charta-enterprise-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.charta-enterprise-stat:nth-child(3)::before {
		display: none;
	}

	.charta-enterprise-stat:nth-child(-n+2) {
		border-bottom: 1px solid var(--charta-enterprise-line);
	}

	.charta-enterprise-advantages__layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.charta-enterprise-advantages__layout .charta-enterprise-section-heading {
		position: static;
	}

	.charta-enterprise-sidebar.is-sticky {
		position: static;
	}
}

@media (max-width: 782px) {
	.site-header .charta-header-tools,
	.site-header .wp-block-shortcode:has(.charta-header-tools) {
		width: 100%;
	}

	.site-header .charta-header-tools {
		justify-content: flex-end;
		padding: .65rem 0 .25rem;
		border-top: 1px solid rgba(255, 255, 255, .08);
	}

	.charta-header-search form {
		right: auto;
		left: 0;
	}

	.charta-header-search form::before {
		right: auto;
		left: 34px;
	}

	.charta-enterprise-section {
		padding: 54px 0;
	}

	.charta-enterprise-section-heading--split {
		align-items: flex-start;
		gap: 1rem;
		flex-direction: column;
	}

	body.charta-enterprise-home-enabled .site-content.wp-block-group {
		padding-top: 46px !important;
	}
}

@media (max-width: 620px) {
	.charta-enterprise-shell {
		width: min(100% - 24px, 1360px);
	}

	.charta-enterprise-hero {
		padding: 46px 0 42px;
	}

	.charta-enterprise-hero h1 {
		font-size: 2.25rem;
	}

	.charta-enterprise-hero__description {
		font-size: .97rem;
		line-height: 1.78;
	}

	.charta-enterprise-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.charta-enterprise-button {
		width: 100%;
	}

	.charta-enterprise-trust {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: .65rem;
	}

	.charta-enterprise-hero__visual {
		padding: 14px;
	}

	.charta-enterprise-preview-item {
		grid-template-columns: 52px minmax(0, 1fr) 20px;
	}

	.charta-enterprise-preview-item__thumb {
		width: 52px;
		height: 48px;
	}

	.charta-enterprise-stats__grid {
		grid-template-columns: 1fr 1fr;
	}

	.charta-enterprise-stat {
		align-items: center;
		gap: .2rem;
		padding: 20px 8px;
		flex-direction: column;
	}

	.charta-enterprise-stat span {
		font-size: .78rem;
	}

	.charta-enterprise-category-grid,
	.charta-enterprise-featured-grid,
	.charta-enterprise-featured-grid.is-count-1,
	.charta-enterprise-featured-grid.is-count-2,
	.charta-enterprise-advantages__grid {
		grid-template-columns: 1fr;
	}

	.charta-enterprise-category-card {
		min-height: 224px;
	}

	.charta-enterprise-advantage {
		min-height: auto;
	}

	.charta-header-search summary span,
	.charta-header-member-button span {
		display: none;
	}

	.charta-header-search summary,
	.charta-header-member-button {
		width: 42px;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.charta-enterprise-category-card,
	.charta-enterprise-resource-card,
	.charta-enterprise-button,
	.charta-enterprise-preview-item,
	.charta-enterprise-resource-card__media img {
		transition: none !important;
	}
}

/* 2.3.1 final rhythm refinements. */
body.charta-enterprise-home-enabled .charta-enterprise-latest-heading {
	margin-bottom: 20px;
	padding-bottom: 18px;
}

body.charta-enterprise-home-enabled .post-wrapper .charta-post-card {
	margin-bottom: 1rem;
}

body.charta-enterprise-home-enabled .charta-enterprise-sidebar {
	gap: .85rem;
}

body.charta-enterprise-home-enabled .charta-enterprise-sidebar-widget {
	padding: 1.15rem 1.15rem;
}

@media (max-width: 782px) {
	body.charta-enterprise-density-standard .charta-enterprise-section {
		padding-top: 62px;
		padding-bottom: 62px;
	}

	body.charta-enterprise-density-standard .site-content.wp-block-group {
		padding-top: 54px !important;
		padding-bottom: 64px !important;
	}
}

@media (max-width: 620px) {
	body.charta-enterprise-density-standard .charta-enterprise-section {
		padding-top: 54px;
		padding-bottom: 54px;
	}
}

/* ==============================================================
 * Charta 2.4.0 AI Training Enterprise Edition
 * GPU computing · AIGC design · film/media · AI video production
 * ============================================================== */
:root {
	--charta-ai-violet: #8b5cf6;
	--charta-ai-cyan: #22d3ee;
	--charta-ai-blue: #3b82f6;
	--charta-ai-ink: #050b18;
}

.charta-enterprise-hero {
	min-height: 690px;
	padding: 86px 0 78px;
	background:
		radial-gradient(circle at 82% 18%, rgba(139, 92, 246, .25), transparent 27%),
		radial-gradient(circle at 67% 78%, rgba(34, 211, 238, .15), transparent 25%),
		radial-gradient(circle at 3% 100%, rgba(37, 99, 235, .20), transparent 32%),
		linear-gradient(128deg, #040914 0%, #071529 52%, #0b2142 100%);
}

.charta-enterprise-hero::before {
	z-index: 0;
	background-image:
		linear-gradient(rgba(109, 180, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(109, 180, 255, .045) 1px, transparent 1px),
		radial-gradient(circle, rgba(96, 165, 250, .32) 1px, transparent 1.5px);
	background-size: 42px 42px, 42px 42px, 92px 92px;
	mask-image: linear-gradient(to right, rgba(0, 0, 0, .92), rgba(0, 0, 0, .52) 70%, transparent 100%);
}

.charta-enterprise-hero::after {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(90deg, rgba(4, 9, 20, .96) 0%, rgba(4, 9, 20, .82) 38%, rgba(4, 9, 20, .34) 72%, rgba(4, 9, 20, .48) 100%),
		var(--charta-ai-hero-image, linear-gradient(135deg, transparent, transparent));
	background-position: center;
	background-size: cover;
	content: "";
	pointer-events: none;
	opacity: .58;
}

.charta-ai-hero-strength-subtle.charta-enterprise-hero::after { opacity: .34; }
.charta-ai-hero-strength-medium.charta-enterprise-hero::after { opacity: .58; }
.charta-ai-hero-strength-strong.charta-enterprise-hero::after { opacity: .78; }

.charta-enterprise-hero__grid {
	z-index: 2;
	grid-template-columns: minmax(0, 1.04fr) minmax(460px, .86fr);
	gap: clamp(42px, 5vw, 78px);
}

.charta-enterprise-eyebrow {
	color: #bfe9ff;
}

.charta-enterprise-eyebrow span {
	background: linear-gradient(90deg, var(--charta-ai-cyan), var(--charta-ai-violet));
	box-shadow: 0 0 18px rgba(34, 211, 238, .42);
}

.charta-enterprise-hero h1 {
	max-width: 850px;
	font-size: clamp(2.55rem, 4.45vw, 4.8rem);
	background: linear-gradient(105deg, #fff 5%, #dff4ff 58%, #c7d2fe 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.charta-enterprise-button--primary {
	border-color: transparent;
	background: linear-gradient(110deg, #2563eb, #7c3aed);
	box-shadow: 0 15px 38px rgba(59, 130, 246, .28);
}

.charta-enterprise-button--primary:hover,
.charta-enterprise-button--primary:focus-visible {
	background: linear-gradient(110deg, #1d4ed8, #6d28d9);
	box-shadow: 0 18px 46px rgba(99, 102, 241, .40);
}

.charta-enterprise-trust span::before {
	background: var(--charta-ai-cyan);
	box-shadow: 0 0 12px rgba(34, 211, 238, .78);
}

/* AI command center in hero. */
.charta-ai-command {
	overflow: hidden;
	padding: 0;
	border-color: rgba(125, 211, 252, .25);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(15, 35, 66, .88), rgba(6, 16, 34, .77));
	box-shadow: 0 32px 90px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .08);
}

.charta-ai-command::before {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, transparent 0 49.8%, rgba(34, 211, 238, .08) 50%, transparent 50.2%),
		linear-gradient(transparent 0 49.8%, rgba(139, 92, 246, .07) 50%, transparent 50.2%);
	background-size: 64px 64px;
	content: "";
	pointer-events: none;
}

.charta-ai-command__head,
.charta-ai-command__foot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: 15px 18px;
	border-bottom: 1px solid rgba(148, 197, 255, .13);
	background: rgba(3, 10, 24, .34);
}

.charta-ai-command__head strong {
	font-size: .78rem;
	letter-spacing: .16em;
}

.charta-ai-command__head small {
	margin-left: auto;
	color: #67e8f9;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .12em;
}

.charta-ai-command__main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 18px;
	align-items: center;
	padding: 22px 20px 18px;
}

.charta-ai-server {
	position: relative;
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1px solid rgba(125, 211, 252, .18);
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(2, 8, 23, .78), rgba(18, 44, 79, .72));
	box-shadow: inset 0 0 30px rgba(37, 99, 235, .08);
}

.charta-ai-server__label {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 4px;
}

.charta-ai-server__label b {
	color: #93c5fd;
	font-size: 1.05rem;
	letter-spacing: .12em;
}

.charta-ai-server__label span {
	color: rgba(226, 232, 240, .45);
	font-size: .58rem;
	letter-spacing: .09em;
}

.charta-ai-server > i {
	position: relative;
	display: block;
	height: 24px;
	border: 1px solid rgba(96, 165, 250, .20);
	border-radius: 5px;
	background: linear-gradient(90deg, rgba(30, 64, 175, .25), rgba(15, 23, 42, .72));
}

.charta-ai-server > i::before,
.charta-ai-server > i::after {
	position: absolute;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	content: "";
}

.charta-ai-server > i::before {
	left: 10px;
	background: #22d3ee;
	box-shadow: 0 0 10px rgba(34, 211, 238, .8);
}

.charta-ai-server > i::after {
	left: 24px;
	background: #8b5cf6;
	box-shadow: 0 0 10px rgba(139, 92, 246, .7);
}

.charta-ai-server__meter {
	overflow: hidden;
	height: 5px;
	margin-top: 3px;
	border-radius: 999px;
	background: rgba(148, 163, 184, .14);
}

.charta-ai-server__meter span {
	display: block;
	width: 82%;
	height: 100%;
	background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
	box-shadow: 0 0 14px rgba(59, 130, 246, .7);
}

.charta-ai-core {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 176px;
	padding: 20px;
	border: 1px solid rgba(139, 92, 246, .28);
	border-radius: 50%;
	background:
		radial-gradient(circle, rgba(59, 130, 246, .32), rgba(79, 70, 229, .13) 44%, rgba(2, 8, 23, .72) 68%),
		linear-gradient(145deg, rgba(255, 255, 255, .05), transparent);
	box-shadow: 0 0 54px rgba(59, 130, 246, .17), inset 0 0 34px rgba(34, 211, 238, .09);
	text-align: center;
	flex-direction: column;
}

.charta-ai-core > span {
	display: grid;
	place-items: center;
	width: 55px;
	height: 55px;
	margin-bottom: 9px;
	border: 1px solid rgba(125, 211, 252, .32);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .24));
	color: #e0f2fe;
	font-size: 1.2rem;
	font-weight: 900;
	letter-spacing: .12em;
	box-shadow: 0 0 28px rgba(99, 102, 241, .25);
}

.charta-ai-core strong {
	font-size: .92rem;
}

.charta-ai-core small {
	margin-top: 6px;
	color: rgba(203, 213, 225, .50);
	font-size: .58rem;
	letter-spacing: .09em;
}

.charta-ai-pipeline {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 0 20px 20px;
}

.charta-ai-pipeline > div {
	position: relative;
	min-width: 0;
	padding: 12px 8px;
	border: 1px solid rgba(125, 211, 252, .13);
	border-radius: 9px;
	background: rgba(15, 35, 66, .62);
	text-align: center;
}

.charta-ai-pipeline > div:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -8px;
	z-index: 2;
	width: 8px;
	height: 1px;
	background: linear-gradient(90deg, #38bdf8, #8b5cf6);
	content: "";
}

.charta-ai-pipeline span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin: 0 auto 7px;
	border-radius: 7px;
	background: rgba(59, 130, 246, .13);
	color: #7dd3fc;
}

.charta-ai-pipeline svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.charta-ai-pipeline strong,
.charta-ai-pipeline small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.charta-ai-pipeline strong {
	font-size: .72rem;
}

.charta-ai-pipeline small {
	margin-top: 3px;
	color: rgba(203, 213, 225, .48);
	font-size: .60rem;
}

.charta-ai-command__foot {
	gap: 1rem;
	border-top: 1px solid rgba(148, 197, 255, .10);
	border-bottom: 0;
	color: rgba(203, 213, 225, .46);
	font-size: .60rem;
	letter-spacing: .08em;
}

.charta-ai-command__foot span::before {
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 6px;
	border-radius: 50%;
	background: #22d3ee;
	content: "";
	box-shadow: 0 0 8px rgba(34, 211, 238, .8);
}

.charta-ai-command__foot strong {
	margin-left: auto;
	color: rgba(255, 255, 255, .72);
	font-size: .68rem;
}

/* Course directions. */
.charta-enterprise-categories {
	background:
		radial-gradient(circle at 100% 0, rgba(139, 92, 246, .08), transparent 30%),
		linear-gradient(180deg, #f7faff, #fff);
}

.charta-enterprise-category-card {
	border-color: #dbe7f4;
	background: linear-gradient(145deg, #fff, #f8fbff);
}

.charta-enterprise-category-card::before {
	background: linear-gradient(90deg, #2563eb, #22d3ee, #8b5cf6);
}

.charta-enterprise-category-card__icon {
	background: linear-gradient(145deg, rgba(37, 99, 235, .10), rgba(139, 92, 246, .10));
	color: #2563eb;
}

/* Learning path. */
.charta-ai-training-flow {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(rgba(96, 165, 250, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(96, 165, 250, .035) 1px, transparent 1px),
		linear-gradient(135deg, #071426, #0d2440);
	background-size: 40px 40px, 40px 40px, auto;
	color: #fff;
}

.charta-ai-training-flow .charta-enterprise-section-heading span { color: #67e8f9; }
.charta-ai-training-flow .charta-enterprise-section-heading h2 { color: #fff; }
.charta-ai-training-flow .charta-enterprise-section-heading p { color: rgba(226, 232, 240, .67); }

.charta-enterprise-section-heading--center {
	justify-content: center;
	text-align: center;
}

.charta-enterprise-section-heading--center > div {
	max-width: 760px;
	margin-inline: auto;
}

.charta-ai-training-flow__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 34px;
}

.charta-ai-training-flow__grid > div {
	position: relative;
	min-height: 230px;
	padding: 26px 22px 23px;
	border: 1px solid rgba(125, 211, 252, .14);
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
	box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.charta-ai-training-flow__grid > div:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -17px;
	z-index: 3;
	width: 18px;
	height: 2px;
	background: linear-gradient(90deg, #22d3ee, #8b5cf6);
	content: "";
}

.charta-ai-training-flow__grid b {
	position: absolute;
	top: 14px;
	right: 16px;
	color: rgba(125, 211, 252, .18);
	font-size: 2rem;
	line-height: 1;
}

.charta-ai-training-flow__grid span {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 22px;
	border: 1px solid rgba(125, 211, 252, .22);
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(34, 211, 238, .11), rgba(139, 92, 246, .16));
	color: #7dd3fc;
}

.charta-ai-training-flow__grid svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.charta-ai-training-flow__grid h3 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 1.12rem;
}

.charta-ai-training-flow__grid p {
	margin: 0;
	color: rgba(203, 213, 225, .64);
	font-size: .88rem;
	line-height: 1.75;
}

@media (max-width: 1180px) {
	.charta-enterprise-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(410px, .82fr);
		gap: 40px;
	}

	.charta-ai-pipeline {
		grid-template-columns: 1fr 1fr;
	}

	.charta-ai-pipeline > div:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
	.charta-enterprise-hero {
		min-height: 0;
		padding: 68px 0;
	}

	.charta-enterprise-hero__grid {
		grid-template-columns: 1fr;
	}

	.charta-ai-command {
		width: 100%;
		max-width: 760px;
	}

	.charta-ai-training-flow__grid {
		grid-template-columns: 1fr 1fr;
	}

	.charta-ai-training-flow__grid > div:nth-child(2)::after { display: none; }
}

@media (max-width: 620px) {
	.charta-enterprise-hero {
		padding: 54px 0 50px;
	}

	.charta-enterprise-hero h1 {
		font-size: clamp(2.05rem, 10.5vw, 3rem);
	}

	.charta-enterprise-trust {
		grid-template-columns: 1fr;
	}

	.charta-ai-command__main {
		grid-template-columns: 1fr;
	}

	.charta-ai-core {
		min-height: 155px;
		border-radius: 22px;
	}

	.charta-ai-pipeline {
		grid-template-columns: 1fr 1fr;
		padding: 0 14px 14px;
	}

	.charta-ai-pipeline > div::after { display: none !important; }
	.charta-ai-command__foot span:nth-child(2) { display: none; }

	.charta-ai-training-flow__grid {
		grid-template-columns: 1fr;
	}

	.charta-ai-training-flow__grid > div {
		min-height: 0;
	}

	.charta-ai-training-flow__grid > div::after { display: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
	.charta-ai-server__meter span {
		animation: charta-ai-meter 4s ease-in-out infinite alternate;
	}

	.charta-ai-core {
		animation: charta-ai-core-pulse 4.8s ease-in-out infinite;
	}
}

@keyframes charta-ai-meter {
	from { width: 62%; }
	to { width: 92%; }
}

@keyframes charta-ai-core-pulse {
	0%, 100% { box-shadow: 0 0 42px rgba(59, 130, 246, .13), inset 0 0 28px rgba(34, 211, 238, .07); }
	50% { box-shadow: 0 0 70px rgba(99, 102, 241, .26), inset 0 0 42px rgba(34, 211, 238, .13); }
}

.charta-ai-hero-no-visual .charta-enterprise-hero__grid {
	grid-template-columns: minmax(0, 920px);
}

.charta-ai-hero-no-visual .charta-enterprise-hero__content {
	max-width: 900px;
}
