/*
 * Service pages: the WordPress hubs on the SEO hub pattern (VOY-1591).
 *
 * /wordpress/, /wordpress/websites/ and /wordpress/managed-hosting/ use the
 * shared opt-in components exactly as patterns/umbrella-seo.php does. This
 * file holds only what those three pages need on top, and every rule is
 * scoped under .vy-svc-page.is-style-umbrella-wordpress, so no other hub can
 * see it. The compound selector also outranks the shared files, which load
 * after this one (the loader globs assets/service/ in name order).
 *
 *   - tab icons for the instrument's WordPress panes (Leads, At launch,
 *     Build, Run), masks over currentColor like the SEO ones;
 *   - the receipt's one-line result (patterns/umbrella-wordpress-receipt.php);
 *   - plan grids of two cards (managed hosting) and four (the website bands),
 *     the Stripe buttons inside a hosting card and a card's closing link;
 *   - the compare drawer: no tint on a fourth column that is not the pick,
 *     and the fifth column's tab on a phone (four bands);
 *   - two pair cards or two proof cards across the row, and an extras block
 *     with a single column.
 */

.vy-svc-page.is-style-umbrella-wordpress {
	--vy-ic-leads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4.5l1.5 3h4l1.5-3H20'/%3E%3Cpath d='M6 5h12l2 8v6H4v-6z'/%3E%3C/svg%3E");
	--vy-ic-launch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.4-2.9 7.9-7 10-4.1-2.1-7-5.6-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
	--vy-ic-build: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1'/%3E%3C/svg%3E");
	--vy-ic-run: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2.5-6 5 12 2.5-6h4'/%3E%3C/svg%3E");
}

/* ---- The hero instrument ---- */

.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub .vy-svc-inst__tabs button.is-leads::before {
	-webkit-mask-image: var(--vy-ic-leads);
	mask-image: var(--vy-ic-leads);
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub .vy-svc-inst__tabs button.is-launch::before {
	-webkit-mask-image: var(--vy-ic-launch);
	mask-image: var(--vy-ic-launch);
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub .vy-svc-inst__tabs button.is-build::before {
	-webkit-mask-image: var(--vy-ic-build);
	mask-image: var(--vy-ic-build);
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub .vy-svc-inst__tabs button.is-run::before {
	-webkit-mask-image: var(--vy-ic-run);
	mask-image: var(--vy-ic-run);
}

/* The receipt has no chart, so its figure carries the pane: larger than the SEO
   receipt's and centred in the space the chart would take, with the status flag at
   the end of the head. */
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-rcpt__head .vy-svc-inst__flag { margin-left: auto; }
@media (min-width: 1024px) {
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub.is-js .vy-svc-rcpt__fig { margin-top: auto; }
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub.is-js .vy-svc-rcpt__finding { margin-bottom: auto; }
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub .vy-svc-rcpt__num { font-size: 150px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-inst--hub .vy-svc-rcpt__num { font-size: 96px; }
}

/* The case page's one-line result, under the figure. */
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-rcpt__finding {
	margin: 0;
	padding-left: 14px;
	border-left: 2px solid var(--um-500);
	font-size: 15px;
	line-height: 1.5;
	color: var(--fg-2);
}

/* ---- Plan cards ---- */

.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__act {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__act .wp-block-button { margin: 0; }
/* The checkout primary takes the practice colour, as the How to start bar's does. */
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__act .wp-block-button.is-style-voyager-primary .wp-block-button__link {
	background: var(--um-500);
	border-color: var(--um-500);
	color: var(--bg-canvas);
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__act .wp-block-button.is-style-voyager-primary .wp-block-button__link:hover {
	background: color-mix(in oklab, var(--um-500) 82%, var(--fg-1));
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__link {
	margin-top: auto;
	padding-top: 6px;
	font-size: 14px;
}
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__link a { text-decoration: none; }
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plan__link a:is(:hover, :focus-visible) { text-decoration: underline; }

@media (min-width: 1024px) {
	/* Two plans: two wide cards, not two thirds of a row. */
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plancards:not(:has(> .vy-svc-plan:nth-child(3))) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* Four bands: two by two, then one row from 1200. */
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plancards:has(> .vy-svc-plan:nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 34px;
	}
}
@media (min-width: 1200px) {
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plancards:has(> .vy-svc-plan:nth-child(4)) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---- The compare drawer ---- */

/* The shared drawer tints its fourth column, the SEO pick. Here the pick, if any,
   is marked in its header, so a fourth column is just a column. */
.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plancmp :is(th, td):nth-child(4) { background: none; }
@media (max-width: 767px) {
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-plancmp[data-plan="5"] :is(th, td):nth-child(5) { display: table-cell; }
}

/* ---- Pair cards and extras ---- */

@media (min-width: 1024px) {
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-pics:not(:has(> .vy-svc-pic:nth-child(3))),
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-proof__cards:not(:has(> .vy-svc-proof__card:nth-child(3))) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 768px) {
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-extras:not(:has(> .vy-svc-extras__col:nth-child(2))) {
		grid-template-columns: minmax(0, 1fr);
	}
	.vy-svc-page.is-style-umbrella-wordpress .vy-svc-extras__col:only-child .vy-svc-tiles {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}
