/* PATCH landing page. All selectors stay within its page template. */
.pfx-patch-page {
	width: 100%;
	max-width: none;
	margin: 0;
}

.pfx-patch-page > .wp-block-group {
	width: 100%;
	max-width: none;
	padding-inline: 1rem;
}

.pfx-patch-page > .wp-block-group > .wp-block-group {
	width: min(100%, var(--pfx-header-container));
	max-width: var(--pfx-header-container);
	margin-inline: auto;
}

.pfx-patch__eyebrow {
	margin: 0 0 1.5rem;
	color: var(--pfx-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.pfx-patch-hero {
	display: grid;
	min-height: 70svh;
	align-items: center;
	padding-block: clamp(5rem, 10vw, 9rem);
	border-bottom: 1px solid var(--pfx-border);
}

.pfx-patch-hero__inner::before {
	content: "";
	display: block;
	width: 3rem;
	height: 4px;
	margin-bottom: 2.5rem;
	background: var(--pfx-red);
}

.pfx-patch-hero h1 {
	max-width: 13ch;
	margin: 0 0 2rem;
	font-size: clamp(2.8rem, 7vw, 6.4rem);
	line-height: 0.99;
}

.pfx-patch-hero__lead {
	max-width: 62ch;
	margin-bottom: 2.5rem;
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.pfx-patch__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.pfx-patch__actions .wp-block-button,
.pfx-patch__actions .wp-block-button__link { width: 100%; }

.pfx-patch-types,
.pfx-patch-custom,
.pfx-patch-process,
.pfx-patch-request,
.pfx-patch-references,
.pfx-patch-shop,
.pfx-patch-cta {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.pfx-patch-page h2 {
	max-width: 20ch;
	margin: 0 0 2rem;
	font-size: clamp(2.1rem, 5vw, 4rem);
}

.pfx-patch-types__grid {
	display: grid;
	gap: 1px;
	border: 1px solid var(--pfx-border);
	background: var(--pfx-border);
}

.pfx-patch-types__card {
	min-height: 210px;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--pfx-white);
}

.pfx-patch-types__card h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.pfx-patch-types__card p { max-width: 35ch; margin: 0; }

.pfx-patch-custom { background: var(--pfx-gray); }
.pfx-patch-custom__inner { display: grid; gap: 2rem; }
.pfx-patch-custom__inner > .wp-block-group { max-width: 62ch; font-size: 1.1rem; }
.pfx-patch-custom__inner > .wp-block-group p:last-child { margin-bottom: 0; }

.pfx-patch-process { background: var(--pfx-black); }
.pfx-patch-process h2 { color: var(--pfx-white); }
.pfx-patch-process__grid { display: grid; }

.pfx-patch-process__grid p {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 1.3rem 0;
	border-top: 1px solid #444;
	color: var(--pfx-red);
	font-weight: 800;
}

.pfx-patch-process__grid p span {
	color: var(--pfx-white);
	font-weight: 600;
}

.pfx-patch-request { background: var(--pfx-gray); }
.pfx-patch-request__inner > p:not(.pfx-patch__eyebrow) { max-width: 62ch; }
.pfx-patch-request .pfx-patch-form {
	max-width: 760px;
	margin-top: 2.5rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--pfx-border);
	background: var(--pfx-white);
}

.pfx-patch-request .pfx-patch-field {
	min-width: 0;
	margin-bottom: 1.25rem;
}

.pfx-patch-request .pfx-patch-field label {
	margin-bottom: 0.5rem;
	color: var(--pfx-black);
	font-size: 0.9rem;
	font-weight: 700;
}

.pfx-patch-request .pfx-patch-field label span { color: var(--pfx-red); }

.pfx-patch-request .pfx-patch-field input,
.pfx-patch-request .pfx-patch-field select,
.pfx-patch-request .pfx-patch-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--pfx-border);
	border-radius: 0;
	background: var(--pfx-white);
	box-shadow: none;
	color: var(--pfx-black);
	font: inherit;
}

.pfx-patch-request .pfx-patch-field textarea {
	min-height: 140px;
	resize: vertical;
}

.pfx-patch-request .pfx-patch-field input:focus,
.pfx-patch-request .pfx-patch-field select:focus,
.pfx-patch-request .pfx-patch-field textarea:focus {
	border-color: var(--pfx-black);
	outline: 2px solid var(--pfx-red);
	outline-offset: 1px;
}

.pfx-patch-request .pfx-patch-message {
	display: block;
	width: min(100%, 760px);
	max-width: 760px;
	margin: 2rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--pfx-border);
	border-left-width: 4px;
	font-weight: 600;
}

.pfx-patch-request .pfx-patch-success {
	border-left-color: #19633a;
	background: #edf6f0;
	color: #164e30;
}

.pfx-patch-request .pfx-patch-error {
	border-left-color: var(--pfx-red);
	background: #fff1f2;
	color: var(--pfx-black);
}

.pfx-patch-request .pfx-patch-message a { text-decoration: underline; }
.pfx-patch-request .pfx-patch-form button[type="submit"] {
	width: 100%;
	border-color: var(--pfx-red);
	background: var(--pfx-red);
	color: var(--pfx-white);
}

.pfx-patch-request .pfx-patch-form button[type="submit"]:focus-visible {
	outline: 2px solid var(--pfx-black);
	outline-offset: 3px;
}

.pfx-patch-request .pfx-patch-form button[type="submit"]:hover {
	border-color: var(--pfx-black);
	background: var(--pfx-black);
}

.pfx-patch-references__slot {
	min-height: 180px;
	margin-block: 2rem;
	border-block: 1px solid var(--pfx-border);
}

.pfx-patch-references__slot p {
	margin: 0;
	padding-block: 3rem;
	color: var(--pfx-muted);
}

.pfx-patch-shop {
	border-top: 1px solid var(--pfx-border);
}

.pfx-patch-shop p { max-width: 58ch; font-size: 1.1rem; }
.pfx-patch-shop .wp-block-buttons { margin-top: 2rem; }

.pfx-patch-cta { background: var(--pfx-black); }
.pfx-patch-cta h2 { max-width: 17ch; color: var(--pfx-white); }
.pfx-patch-cta .wp-block-button.pfx-button--red .wp-block-button__link:hover {
	border-color: var(--pfx-white);
	background: var(--pfx-white);
	color: var(--pfx-black);
}

@media (min-width: 768px) {
	.pfx-patch-page > .wp-block-group { padding-inline: 2rem; }
	.pfx-patch__actions { flex-direction: row; align-items: center; }
	.pfx-patch__actions .wp-block-button,
	.pfx-patch__actions .wp-block-button__link { width: auto; }
	.pfx-patch-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pfx-patch-custom__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
	.pfx-patch-request .pfx-patch-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
	.pfx-patch-request .pfx-patch-form button[type="submit"] { width: auto; justify-self: start; }
	.pfx-patch-request .pfx-patch-field:last-of-type,
	.pfx-patch-request .pfx-patch-form button[type="submit"] { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
	.pfx-patch-types__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pfx-patch-process__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
}
