/**
 * Managed page, editorial content, quote form, and floating contact styles.
 */

.cdc-theme.cdc-managed-page .entry-header {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: none;
	padding: clamp(4rem, 9vw, 8rem) max(var(--cdc-gutter), calc((100vw - var(--cdc-container)) / 2));
	background: linear-gradient(110deg, #f5f7f9 0%, #fff 64%);
	border-bottom: 1px solid var(--cdc-border);
}

.cdc-theme.cdc-managed-page .entry-header::after {
	position: absolute;
	top: -8rem;
	right: 3vw;
	width: min(34rem, 45vw);
	aspect-ratio: 1;
	border: 1px solid rgb(21 87 183 / 12%);
	background-image: linear-gradient(rgb(21 87 183 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(21 87 183 / 5%) 1px, transparent 1px);
	background-size: 3rem 3rem;
	transform: rotate(12deg);
	content: "";
	pointer-events: none;
}

.cdc-theme.cdc-managed-page .entry-title {
	position: relative;
	z-index: 1;
	max-width: 17ch;
	font-size: clamp(2.7rem, 6vw, 5.7rem);
	letter-spacing: -0.055em;
	line-height: 0.95;
	text-transform: uppercase;
}

.cdc-content-lead,
.cdc-content-cards,
.cdc-content-split,
.cdc-two-panel,
.cdc-process,
.cdc-spec-layout,
.cdc-notice-panel,
.cdc-content-cta,
.cdc-form-layout,
.cdc-contact-grid,
.cdc-blog-query {
	margin-block: 0;
}

.cdc-content-lead {
	display: grid;
	grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 7rem);
	align-items: start;
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.cdc-content-kicker,
.cdc-form-aside > span,
.cdc-spec-layout article > span,
.cdc-two-panel article > span,
.cdc-contact-grid article > span,
.cdc-content-cta span {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--cdc-primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cdc-content-kicker::after {
	width: 2rem;
	height: 0.125rem;
	background: currentColor;
	content: "";
}

.cdc-content-lede {
	max-width: 32ch;
	margin: 0;
	color: var(--cdc-navy);
	font-size: clamp(1.55rem, 3vw, 2.8rem);
	font-weight: 650;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.cdc-content-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--cdc-border);
	border-left: 1px solid var(--cdc-border);
}

.cdc-content-cards article {
	position: relative;
	min-height: 18rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-right: 1px solid var(--cdc-border);
	border-bottom: 1px solid var(--cdc-border);
	background: #fff;
}

.cdc-content-cards article > span,
.cdc-process article > span {
	color: var(--cdc-primary);
	font-size: 1.4rem;
	font-weight: 350;
}

.cdc-content-cards h2,
.cdc-process h2 {
	margin-top: 0;
	font-size: clamp(1.15rem, 1.7vw, 1.55rem);
	text-transform: uppercase;
}

.cdc-contact-grid h2 {
	margin-top: 2rem;
	font-size: clamp(1.15rem, 1.7vw, 1.55rem);
	text-transform: uppercase;
}

.cdc-content-cards p {
	color: var(--cdc-muted);
	font-size: 0.92rem;
}

.cdc-content-cards a {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	color: var(--cdc-primary);
	font-size: 0.75rem;
	font-weight: 800;
	text-decoration: none;
}

.cdc-content-split,
.cdc-two-panel,
.cdc-spec-layout,
.cdc-form-layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: clamp(3rem, 7vw, 6rem);
}

.cdc-content-split > article,
.cdc-two-panel > article,
.cdc-spec-layout > article {
	padding: clamp(2.25rem, 5vw, 5rem);
}

.cdc-content-split > article:first-child,
.cdc-two-panel > article:first-child,
.cdc-spec-layout > article:first-child {
	background: var(--cdc-bg-alt);
}

.cdc-content-split > article:last-child,
.cdc-two-panel__dark,
.cdc-spec-layout__blue {
	background: var(--cdc-navy);
	color: #fff;
}

.cdc-content-split > article:last-child :where(h2, p, li),
.cdc-two-panel__dark :where(h2, p),
.cdc-spec-layout__blue :where(h2, p, li) {
	color: inherit;
}

.cdc-content-split h2,
.cdc-two-panel h2,
.cdc-spec-layout h2,
.cdc-form-aside h2 {
	margin-top: 1rem;
	font-size: clamp(1.7rem, 3vw, 3rem);
	letter-spacing: -0.04em;
}

.cdc-check-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdc-check-list li {
	position: relative;
	padding: 1rem 0 1rem 2rem;
	border-bottom: 1px solid rgb(139 154 171 / 27%);
}

.cdc-check-list li::before {
	position: absolute;
	left: 0;
	color: var(--cdc-primary);
	font-weight: 800;
	content: "✓";
}

.cdc-process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(3rem, 7vw, 6rem);
	border-block: 1px solid var(--cdc-border);
}

.cdc-process article {
	padding: clamp(1.5rem, 3vw, 2.75rem);
	border-right: 1px solid var(--cdc-border);
}

.cdc-process article:last-child {
	border-right: 0;
}

.cdc-notice-panel,
.cdc-content-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-top: clamp(3rem, 7vw, 6rem);
	padding: clamp(2rem, 5vw, 4rem);
}

.cdc-notice-panel {
	border: 1px solid var(--cdc-border);
	background: var(--cdc-bg-alt);
}

.cdc-notice-panel strong {
	color: var(--cdc-navy);
	font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.cdc-notice-panel p {
	margin: 0.55rem 0 0;
}

.cdc-content-cta {
	background: var(--cdc-primary);
	color: #fff;
}

.cdc-content-cta :where(h2, p) {
	margin: 0.5rem 0 0;
	color: inherit;
}

.cdc-content-cta .cdc-button,
.cdc-notice-panel .cdc-button {
	flex: 0 0 auto;
}

.cdc-content-cta .cdc-button {
	background: #fff;
	color: var(--cdc-primary);
}

.cdc-form-layout {
	gap: clamp(2rem, 5vw, 5rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.cdc-quote-form {
	position: relative;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--cdc-border);
	background: #fff;
}

.cdc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.cdc-form-field {
	display: grid;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.cdc-form-field label,
.cdc-form-consent {
	color: var(--cdc-navy);
	font-size: 0.78rem;
	font-weight: 750;
}

.cdc-form-field label span,
.cdc-form-consent strong {
	color: #b42318;
}

.cdc-quote-form :where(input:not([type="checkbox"]), textarea) {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--cdc-border);
	border-radius: 0;
	background: #fafbfc;
	color: var(--cdc-text);
}

.cdc-quote-form :where(input, textarea):focus {
	border-color: var(--cdc-primary);
	box-shadow: 0 0 0 0.18rem rgb(21 87 183 / 13%);
	outline: 0;
}

.cdc-form-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.65rem;
	align-items: start;
	margin-block: 1rem 1.5rem;
}

.cdc-form-consent input {
	margin-top: 0.2rem;
}

.cdc-form-field--trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cdc-form-aside {
	padding: clamp(2rem, 5vw, 4rem);
	background: var(--cdc-navy);
	color: #fff;
}

.cdc-form-aside :where(h2, p, li, a) {
	color: inherit;
}

.cdc-form-aside ul {
	display: grid;
	gap: 0.8rem;
	margin: 2rem 0;
}

.cdc-form-privacy {
	margin: 1rem 0 0;
	color: var(--cdc-muted);
	font-size: 0.72rem;
}

.cdc-form-notice {
	display: grid;
	gap: 0.2rem;
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	border-left: 0.25rem solid;
}

.cdc-form-notice--success { border-color: #16804a; background: #edf9f2; }
.cdc-form-notice--error { border-color: #b42318; background: #fff1f0; }

.cdc-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-bottom: clamp(3rem, 7vw, 6rem);
	border-top: 1px solid var(--cdc-border);
	border-left: 1px solid var(--cdc-border);
}

.cdc-contact-grid article {
	min-width: 0;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	border-right: 1px solid var(--cdc-border);
	border-bottom: 1px solid var(--cdc-border);
}

.cdc-contact-grid h2 a {
	color: inherit;
	text-decoration: none;
	word-break: break-word;
}

.cdc-contact-grid a[href^="mailto:"] {
	text-transform: none;
}

.cdc-blog-query {
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.cdc-blog-query .wp-block-post-template {
	gap: 1.25rem;
}

.cdc-blog-card {
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--cdc-border);
	background: #fff;
}

.cdc-blog-card .wp-block-post-date {
	color: var(--cdc-primary);
	font-size: 0.72rem;
	font-weight: 750;
}

.cdc-blog-card .wp-block-post-title a {
	color: var(--cdc-navy);
	text-decoration: none;
}

.cdc-article-lede {
	color: var(--cdc-navy);
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-weight: 600;
	line-height: 1.35;
}

/* Evergreen knowledge articles: publication dates remain internal to WordPress. */
.cdc-evergreen-post .posted-on,
.cdc-evergreen-post .entry-date,
.cdc-evergreen-post .post-date,
.cdc-evergreen-post time,
.cdc-page-role-knowledge .wp-block-post-date {
	display: none !important;
}

/* GeneratePress compatibility fallback: editorial foot meta and post paging are intentionally omitted. */
.cdc-evergreen-post footer.entry-meta,
.cdc-evergreen-post .post-navigation,
.cdc-evergreen-post .paging-navigation {
	display: none !important;
}

.cdc-evergreen-post .site-content {
	background: #f4f7fa;
}

.cdc-evergreen-post .content-area {
	width: 100%;
}

.cdc-evergreen-post .site-main {
	max-width: 980px;
	margin: clamp(2rem, 5vw, 5rem) auto;
	padding: clamp(1.5rem, 4vw, 4.5rem);
	background: #fff;
}

.cdc-evergreen-post .entry-header,
.cdc-evergreen-post .entry-content {
	max-width: 780px;
	margin-inline: auto;
}

.cdc-evergreen-post .entry-title {
	color: var(--cdc-navy);
	font-size: clamp(2.15rem, 5vw, 4.25rem);
	line-height: 1.04;
}

.cdc-knowledge-article {
	color: #26384b;
	font-size: 1.05rem;
	line-height: 1.75;
}

.cdc-knowledge-article h2 {
	margin-top: clamp(2.75rem, 6vw, 4.5rem);
	color: var(--cdc-navy);
	font-size: clamp(1.65rem, 3vw, 2.45rem);
	line-height: 1.15;
}

.cdc-knowledge-article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

.cdc-knowledge-article th,
.cdc-knowledge-article td {
	padding: 0.85rem;
	border: 1px solid var(--cdc-border);
	text-align: left;
	vertical-align: top;
}

.cdc-knowledge-article th { background: #eef3f8; color: var(--cdc-navy); }

.cdc-article-answer,
.cdc-article-engineering-note,
.cdc-article-cta {
	margin-block: 2rem;
	padding: clamp(1.4rem, 3vw, 2.25rem);
	border-left: 4px solid var(--cdc-primary);
	background: #eef5ff;
}

.cdc-article-toc {
	margin-block: 2.25rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--cdc-border);
}

.cdc-article-toc ol { margin-bottom: 0; }
.cdc-article-toc a,
.cdc-article-related a { color: var(--cdc-primary); font-weight: 700; }

.cdc-article-faq details {
	padding: 1rem 0;
	border-bottom: 1px solid var(--cdc-border);
}

.cdc-article-faq summary {
	cursor: pointer;
	color: var(--cdc-navy);
	font-weight: 750;
}

.cdc-article-sources {
	font-size: 0.9rem;
}

.cdc-article-cta {
	margin-top: 3rem;
	background: var(--cdc-navy);
	color: #fff;
}

.cdc-article-cta .cdc-button { margin-top: 0.75rem; }

.cdc-whatsapp-float {
	position: fixed;
	right: clamp(1rem, 2vw, 2rem);
	bottom: clamp(1rem, 2vw, 2rem);
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 3.5rem;
	padding: 0.65rem 1rem;
	border-radius: 2rem;
	background: #168c4a;
	box-shadow: 0 0.75rem 2rem rgb(10 42 28 / 24%);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
}

.cdc-whatsapp-float svg {
	width: 1.45rem;
	height: 1.45rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
}

.cdc-whatsapp-float:hover { background: #10723b; color: #fff; }

@media (max-width: 980px) {
	.cdc-content-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cdc-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cdc-process article:nth-child(2) { border-right: 0; }
	.cdc-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.cdc-content-lead,
	.cdc-content-split,
	.cdc-two-panel,
	.cdc-spec-layout,
	.cdc-form-layout { grid-template-columns: 1fr; }

	.cdc-content-lead { gap: 1.5rem; }
	.cdc-form-grid { grid-template-columns: 1fr; }
	.cdc-notice-panel,
	.cdc-content-cta { align-items: flex-start; flex-direction: column; }
	.cdc-notice-panel .cdc-button,
	.cdc-content-cta .cdc-button { width: 100%; }
}

@media (max-width: 480px) {
	.cdc-content-cards,
	.cdc-process { grid-template-columns: 1fr; }
	.cdc-process article { border-right: 0; }
	.cdc-content-cards article { min-height: 15rem; }
	.cdc-whatsapp-float span { display: none; }
	.cdc-whatsapp-float { width: 3.5rem; justify-content: center; padding-inline: 0; }
}
