/* Night (3292): a band on the site's dark ground, kept from global.css's
   :root[data-theme="dark"] tokens, with the brand's glow. The promo template's header and
   footer and the promo patterns' hero and closing band stand on it; everything in it reads
   light. */
.is-style-night {
	background: var(--wp--preset--gradient--night-glow);
	color: var(--wp--preset--color--night-ink);
}

.is-style-night :is(h1, h2, h3, strong) {
	color: var(--wp--preset--color--night-ink);
}

.is-style-night :is(.is-style-lede, .is-style-muted-small, .is-style-link-note, .link-note) {
	color: var(--wp--preset--color--night-muted);
}

.is-style-night a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--night-ink);
}

.is-style-night .is-style-gradient-emphasis em {
	background: var(--wp--preset--gradient--brand-night);
	background-clip: text;
	-webkit-background-clip: text;
}

.is-style-night .wp-block-button.is-style-wordpress-mark .wp-block-button__link.wp-element-button {
	border-color: var(--wp--preset--color--night-line);
	background: transparent;
	color: var(--wp--preset--color--night-ink);
}

.is-style-night .wp-block-button.is-style-wordpress-mark .wp-block-button__link.wp-element-button:hover {
	border-color: var(--wp--preset--color--night-ink);
}

/* ---------- The promo template's header and footer ---------- */

.promo-header > .wrap,
.promo-footer > .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	align-items: center;
	justify-content: space-between;
}

.promo-header > .wrap {
	padding-block: var(--wp--preset--spacing--s);
}

/* The nav and the language link sit together at the end, the brand at the start; on a phone
   the link wraps under the nav, still at the end (3362). */
.promo-header-end {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
	align-items: center;
	justify-content: flex-end;
}

.promo-header-end > * {
	margin: 0;
}

.promo-header nav ul,
.promo-footer nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.promo-header nav a,
.promo-footer nav a {
	color: var(--wp--preset--color--night-muted);
	text-decoration: none;
}

.promo-header nav a:hover,
.promo-footer nav a:hover {
	color: var(--wp--preset--color--night-ink);
}

.promo-footer {
	border-block-start: 1px solid var(--wp--preset--color--night-line);
	background: var(--wp--preset--color--night);
	font-size: var(--wp--preset--font-size--step-minus-1);
}

.promo-footer > .wrap {
	padding-block: var(--wp--preset--spacing--m);
}

.promo-footer p {
	margin: 0;
}

/* ---------- The promo hero: the words and the address, the film beside them ---------- */

.promo-hero {
	padding-block: var(--wp--preset--spacing--l) var(--wp--preset--spacing--section);
}

.promo-grid {
	display: grid;
	gap: var(--wp--preset--spacing--xl);
	align-items: center;
}

@media (min-width: 60rem) {
	.promo-grid {
		grid-template-columns: 1.05fr 1fr;
	}
}

.promo-text > * + * {
	margin-block-start: var(--wp--preset--spacing--m);
}

.promo-text h1 {
	max-inline-size: 16ch;
	margin-block-start: var(--wp--preset--spacing--s);
	font-size: var(--wp--preset--font-size--step-5);
}

.promo-badge {
	display: inline-block;
	padding: var(--wp--preset--spacing--xxxs) var(--wp--preset--spacing--s);
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--night-surface);
	color: var(--wp--preset--color--night-ink);
	font-size: var(--wp--preset--font-size--step-minus-1);
	font-weight: 600;
}

/* The film in the hero's second column: the band's own width and spacing give way to the
   column's. */
.promo-grid .film-band {
	padding: 0;
	border: 0;
}

.promo-grid .film-band > .wrap {
	inline-size: 100%;
	padding: 0;
}

.promo-grid .film {
	border-color: var(--wp--preset--color--night-line);
}

/* The promo's samples and steps hold three each: three across, or one under another, never two
   and a lone third (3318). The home pages keep the Astro site's grid. */
.promo :is(.samples-grid, .is-style-cards-numbered) {
	grid-template-columns: minmax(0, 36rem);
	justify-content: center;
}

@media (min-width: 64rem) {
	.promo :is(.samples-grid, .is-style-cards-numbered) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.promo-plan {
	color: var(--wp--preset--color--night-muted);
	font-size: var(--wp--preset--font-size--step-minus-1);
}

/* ---------- The address on the night ground ---------- */

.promo-install {
	max-inline-size: var(--wp--custom--width--install);
	padding: var(--wp--preset--spacing--m);
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: var(--wp--custom--radius--m);
	background: var(--wp--preset--color--night-surface);
}

.promo-install > * + * {
	margin-block-start: var(--wp--preset--spacing--xs);
}

.promo-install-label {
	margin: 0;
	color: var(--wp--preset--color--night-ink);
	font-weight: 700;
}

/* A dark field, not a white slab on the night ground: light words, the brand's blue as its
   edge (3.4:1 against the night, enough for a field's boundary) and a muted placeholder. */
.promo-install .install-row input {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--night-ink);
}

.promo-install .install-row input::placeholder {
	color: var(--wp--preset--color--night-muted);
	opacity: 1;
}

.promo-install .install-note {
	color: var(--wp--preset--color--night-muted);
}

/* ---------- The closing band ---------- */

.promo-close {
	padding-block: var(--wp--preset--spacing--section);
	text-align: center;
}

.promo-close h2 {
	font-size: var(--wp--preset--font-size--step-4);
}

.promo-close .is-style-lede,
.promo-close .promo-install {
	margin-inline: auto;
}

.promo-close .promo-install {
	margin-block-start: var(--wp--preset--spacing--l);
	text-align: start;
}
