/* C01 Contractor Management page only (template-solution-contractors.php). The shared gp-*, mt-* and ew-* styles come from the solution bundle. */

/* Hero illustration */
.cm-hero-art img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 24px 40px rgba(0, 0, 0, .25); }

/* Tabs: at least 44 px tall to tap */
.cm-page .ew-tablist button { min-height: 44px; }

/* Connected: four cards */
.cm-connect { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cm-connect .gp-card-link { margin-top: auto; padding-top: 12px; }

/* Explore more: title and link only */
.cm-explore h3 { margin-bottom: 18px; }

/* 5. Onboarding lanes: two lanes, steps alternate like a handover */
.cm-onboarding { scroll-margin-top: 110px; }
.cm-lanes { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin: 30px 0 22px; padding: 26px 28px 30px; border-radius: 28px; background: linear-gradient(90deg, #f1f6f3 0 50%, #fff6f1 50% 100%); }
.cm-lanes::before { content: ""; position: absolute; top: 84px; bottom: 34px; left: 50%; width: 0; border-left: 2px dashed #c9d6ce; }
.cm-lane-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #103f2e; font: 700 13px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.cm-lane-head--office { grid-column: 1; }
.cm-lane-head--contractor { grid-column: 2; color: #8a2f0f; }
.cm-lane-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: #103f2e; color: #fff; }
.cm-lane-head--contractor .cm-lane-icon { background: var(--orange, #ff6b2c); }
.cm-steps { display: contents; margin: 0; padding: 0; list-style: none; }
.cm-step { position: relative; grid-row: var(--cm-row); margin: 0 0 14px; padding: 18px 20px 16px; border: 1.5px solid #dfe7e2; border-radius: 18px; background: #fff; box-shadow: 0 8px 18px rgba(14, 49, 35, .05); }
.cm-step--office { grid-column: 1; }
.cm-step--contractor { grid-column: 2; border-color: #f2d6c8; }
.cm-step--both { grid-column: 1 / -1; width: min(640px, 100%); justify-self: center; border-color: #b8d9c6; background: linear-gradient(90deg, #fff, #fffaf6); }
.cm-step--office::after, .cm-step--contractor::after { content: ""; position: absolute; top: 50%; width: 32px; border-top: 2px dashed #c9d6ce; }
.cm-step--office::after { right: -34px; }
.cm-step--contractor::after { left: -34px; }
.cm-step-lane { display: none; }
.cm-step h3 { margin: 0 0 6px; color: #103f2e; font: 600 18px/1.3 var(--font-display); }
.cm-step p { margin: 0; color: #44524b; font: 400 15px/1.55 var(--font-body); }
.cm-step .cm-mv { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #eef6f1; color: #0f6b3f; font: 600 13.5px/1.45 var(--font-body); }
.cm-step--contractor .cm-mv { background: #fff1e9; color: #8a2f0f; }
.cm-mv span { display: block; margin-bottom: 2px; color: #6f7c75; font: 700 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* 6. CoR band */
.cm-cor-copy { max-width: 820px; }
.cm-cor-copy p { margin: 0 0 16px; color: #2c3a33; font: 400 16.5px/1.7 var(--font-body); }
.cm-cor-copy a { color: #0f6b3f; text-decoration: underline; }
.cm-cor-copy .cm-small { margin: 6px 0 0; color: #6f7c75; font-size: 13.5px; }

/* 9. Comparison table */
.cm-table-wrap { margin: 26px 0 0; border: 1px solid #e3ebe6; border-radius: 20px; overflow: hidden; background: #fff; }
.cm-table { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--font-body); }
.cm-table th, .cm-table td { padding: 16px 20px; border-bottom: 1px solid #edf2ee; text-align: left; vertical-align: top; }
.cm-table thead th { background: #103f2e; color: #fff; font: 700 14px/1.3 var(--font-body); }
.cm-table tbody th { color: #103f2e; font-weight: 700; width: 24%; }
.cm-table tbody td:last-child { background: #f3faf6; color: #0f5134; font-weight: 600; }
.cm-table tbody tr:last-child th, .cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-under-table { margin: 20px 0 0; }
.cm-ghost-dark { border-color: #103f2e; color: #103f2e; }
.cm-ghost-dark:hover { background: #103f2e; color: #fff; }

/* 12. Final call to action */
.cm-final { padding: 72px 0 88px; }
.cm-final-panel { padding: 56px; border-radius: 34px; background: linear-gradient(135deg, #083423, #0d4a33); color: #fff; text-align: center; }
.cm-final-panel h2 { margin: 0 0 12px; color: #fff; font: 600 clamp(28px, 3vw, 40px)/1.15 var(--font-display); }
.cm-final-panel p { max-width: 620px; margin: 0 auto 22px; color: #cfe7da; font: 400 17px/1.6 var(--font-body); }
.cm-final-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 26px; padding: 0; list-style: none; color: #e6f2ea; font: 500 15.5px/1.5 var(--font-body); }
.cm-final-points li::before { content: "✓"; margin-right: 8px; color: #7ee2a3; font-weight: 700; }
.cm-final-panel .gp-actions { justify-content: center; margin-bottom: 0; }

@media (max-width: 1100px) {
	.cm-connect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.cm-connect { grid-template-columns: 1fr; }
	/* Lanes stack in step order 1 to 6, each step labelled with its lane. */
	.cm-lanes { display: block; padding: 20px 16px 8px; background: #f6f8f6; }
	.cm-lanes::before, .cm-lane-head, .cm-step::after { display: none; }
	.cm-steps { display: block; }
	.cm-step, .cm-step--both { width: auto; }
	.cm-step-lane { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 99px; background: #103f2e; color: #fff; font: 700 10.5px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
	.cm-step--contractor .cm-step-lane { background: var(--orange, #ff6b2c); }
	.cm-step--both .cm-step-lane { background: #5f6c64; }
	/* Table becomes stacked cards. */
	.cm-table thead { display: none; }
	.cm-table, .cm-table tbody, .cm-table tr, .cm-table th, .cm-table td { display: block; width: auto; }
	.cm-table tr { border-bottom: 1px solid #e3ebe6; }
	.cm-table tbody tr:last-child { border-bottom: 0; }
	.cm-table th, .cm-table td { padding: 10px 16px; border-bottom: 0; }
	.cm-table tbody th { padding-top: 16px; width: auto; }
	.cm-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: #6f7c75; font: 700 10.5px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
	.cm-table tbody td:last-child { padding-bottom: 16px; }
	.cm-final-panel { padding: 36px 22px; border-radius: 24px; }
	.cm-final-points { flex-direction: column; align-items: center; gap: 6px; }
}
