/*
 * /blog/ (Figma 4893:4820): the hero with the lead beside the title, and the
 * newsletter at the bottom (4968:5956). The list itself is eteria/posts.
 */

/* -------------------------------------------------------------------------
 * Hero: H1 left, the lead right, both on the bottom line (4968:5806).
 * ---------------------------------------------------------------------- */

.e-blog-hero {
	padding-bottom: clamp(3rem, 1.9437rem + 4.507vw, 6rem); /* 48 → 96 */
}

.e-blog-hero > .wp-block-columns > .wp-block-column:last-child > p {
	max-width: 32rem;
}

@media (min-width: 782px) {

	/* The lead sits on the title's last line, as in the mockup. */
	.e-blog-hero > .wp-block-columns > .wp-block-column:last-child {
		padding-bottom: 0.5rem;
	}
}

/* -------------------------------------------------------------------------
 * Newsletter: graphite band, copy left, the e-mail form right. Sizes,
 * colours and gaps are the blocks' own.
 * ---------------------------------------------------------------------- */

.e-newsletter .wp-block-column:first-child > p:not(.is-style-eyebrow) {
	max-width: 36rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* The CF7 form "Subscribe to newsletter": one field and the button,
 * 16 px apart, dark field and gold button. */
.e-newsletter .wpcf7-form p {
	margin: 0 0 16px;
}

.e-newsletter .wpcf7-form .wpcf7-form-control-wrap {
	margin-top: 0;
}

.e-newsletter .wpcf7-form input[type="email"] {
	padding: 16px 20px;
	font-size: 0.9375rem;
	font-weight: 300;
	color: var(--wp--preset--color--text-inverse);
	background: var(--wp--preset--color--graphite-mid);
	border-color: var(--wp--preset--color--border-dark-md);
}

.e-newsletter .wpcf7-form input[type="email"]::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}

.e-newsletter .wpcf7-form input[type="email"]:focus {
	border-color: var(--wp--preset--color--gold);
}

.e-newsletter .wpcf7-form .wpcf7-submit {
	padding: 16px 24px;
	font-size: 0.8125rem;
	letter-spacing: 0.1538em;
	color: var(--wp--preset--color--graphite);
	background: var(--wp--preset--color--gold);
}

.e-newsletter .wpcf7-form .wpcf7-submit:hover {
	background: #dcc19f;
}

.e-newsletter .wpcf7-form :is(.wpcf7-response-output, .wpcf7-not-valid-tip) {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-inverse);
}

.e-newsletter .wpcf7-form .wpcf7-not-valid-tip {
	margin-top: 6px;
}

.e-newsletter .wpcf7-form .wpcf7-response-output {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-color: var(--wp--preset--color--gold);
}

/* The privacy note under the form. */
.e-newsletter .wp-block-column:last-child > p {
	line-height: 16px;
}

.e-newsletter .wp-block-column:last-child > p a {
	color: inherit;
}

/* Field and button are one paragraph in the CF7 template (the <br> between
 * them is hidden): the button keeps the mockup's 16 px below the field. */
.e-newsletter .wpcf7-form .wpcf7-submit {
	margin-top: 16px;
}

/* -------------------------------------------------------------------------
 * Category archive and search results: the page hero, then eteria/posts.
 * ---------------------------------------------------------------------- */

.e-archive-hero {
	padding-bottom: clamp(2.5rem, 1.6197rem + 3.7559vw, 5rem); /* 40 → 80 */
}

.e-archive-hero > .e-archive-hero__search {
	max-width: 560px;
	margin-left: max(0px, (100% - var(--wp--style--global--content-size)) / 2) !important;
}

.e-archive-hero__search .wp-block-search__input {
	padding: 14px 16px;
	font: inherit;
	border: 1px solid var(--wp--preset--color--border-cream);
	border-radius: 0;
}

.e-archive-hero__search .wp-block-search__button {
	margin-left: 8px;
}
