/* grayscale text smoothing, as the prototype (Tailwind `antialiased` on body) */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* a single word wider than a small phone (e.g. a 42px "Accreditations" at 320px) breaks instead of being cut off */
:is(h1, h2, h3) {
	overflow-wrap: break-word;
}
/* `is-desktop-only`: hidden on mobile and tablet, its normal display on desktop (WP default viewports: desktop is
   width > 782px). Works on any element (Advanced → Additional CSS class, or "Edit as HTML" for inline tags), e.g. a
   desktop-only line break: <br class="is-desktop-only"> (keep a space before the <br> so the words don't join while
   it's hidden). */
@media (width <= 782px) {
	.is-desktop-only {
		display: none;
	}
}

/* `is-large-desktop-only`: the same, one breakpoint up: also hidden on tablet landscape and small laptops
   (width <= 1024px), e.g. <br class="is-large-desktop-only"> for a line break that only fits on wide screens. */
@media (width <= 1024px) {
	.is-large-desktop-only {
		display: none;
	}
}

/* Line height for each theme.json font size (theme.json presets only output font-size).
   Values from the style guide: fews/src/styles/text.css (sz-text-1 … sz-text-13). */
.has-text-1-font-size,
.has-text-2-font-size,
.has-text-3-font-size,
.has-text-4-font-size,
.has-text-5-font-size,
.has-text-6-font-size {
	line-height: 1.2;
}

.has-text-7-font-size,
.has-text-8-font-size {
	line-height: 1.3;
}

.has-text-9-font-size {
	line-height: 1.45;
}

.has-text-10-font-size {
	line-height: 1.6;
}

.has-text-11-font-size,
.has-text-12-font-size,
.has-text-13-font-size {
	line-height: 1.5;
}

/* Contact Form 7 forms (shortcode in content), styled as the Figma contact form: white fields with a Line border,
   placeholder as the label, the orange button with its navy corner (an <input> has no ::before, so the corner is the
   button's own 45° gradient, as core-button.css). */
.wpcf7-form p {
	margin-block: 0 0.6875rem;
}

/* CF7 6.x puts its hidden inputs in a fieldset, which would show as an empty bordered box */
.wpcf7-form .hidden-fields-container {
	display: none;
}

.wpcf7-form :is(input:not([type="submit"], [type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 3.625rem;
	padding: 0.9375rem 1.0625rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.1875rem;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--text-11);
}

.wpcf7-form ::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 1;
}

.wpcf7-form select {
	appearance: none;
	padding-inline-end: 3rem;
	background: var(--wp--preset--color--base) url("../icons/chevron-down.svg") no-repeat right 1.25rem center / 0.875rem;
}

.wpcf7-form textarea {
	min-block-size: 12.5rem;
	resize: vertical;
}

.wpcf7-form input[type="submit"] {
	margin-block-start: 0.5rem;
	padding: 0.9375rem 1.875rem;
	border: 0;
	border-radius: 0.25rem;
	background: linear-gradient(45deg, var(--wp--preset--color--contrast) 13.7px, transparent 14.7px) var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--text-11);
	line-height: 1.5;
	cursor: pointer;
	transition: background-color 0.3s ease-out;
}

.wpcf7-form input[type="submit"]:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--contrast);
}
