/*
 * core/search -- rules scoped to the units that place it.
 */

/* -------------------------------------------------------------------------- header
 *
 * Unit: header. Markup and behaviour: inc/header-search.php + assets/js/header-search-view.js.
 * The search is the LAST CHILD OF THE MAIN NAVIGATION (a hooked core/search, wrapped by the
 * render filter in a list item holding the toggle, the panel and the close button), because
 * below 1124px it is part of the burger overlay and the overlay only holds the navigation's own
 * children. Hook classes: .wm-header (the part's root group), .wm-header__search-item (the <li>),
 * .wm-header__search (core's <form>).
 *
 * EVERY NUMBER BELOW IS THE SOURCE'S OWN, read 2026-09-21 from its served stylesheet
 * (themes/washington_mills/css/washington_mills.css) and confirmed against computed style and
 * boxes with probe.js at 1440, 1280, 1124, 1024, 768 and 390:
 *   - >= 1124px (`min-width: 70.25em`): an icon toggle in the menu row; the form sits in a
 *     full-width grey band, `position: absolute`, `padding: 30px 30px 60px`, hidden until the
 *     toggle is clicked.
 *   - < 1124px: no toggle, no X, no band -- the form is always visible, `margin-top: 1rem`, as
 *     the last thing in the overlay.
 *
 * NOT THE `states.search-open` NUMBERS. That entry gives the open band as 1440x232 at y=188; the
 * source settles at 1440x289, and 232 is a frame from its 500ms slideToggle (30 + 24 + 50 + 75 +
 * 50 + 60 = 289). Built to the settled figure, which is also what the CSS sums to.
 *
 * ONE NUMBER ABOVE THIS LIST USED TO BE HERE AND ISN'T ANY MORE: the source's own `top: 184px`
 * (188px from 1300px). CORRECTED 2026-09-22 -- that value opens the source's own panel with a
 * visible gap under its header (the source's header is not 184/188px tall), confirmed live and
 * flagged rather than reproduced (CLAUDE.md, flag a source defect, don't copy it). The `top` rule
 * itself, further down, carries the fix and the full citation.
 */

/* ---- The <li>: at rest it holds only the toggle; the panel is out of flow. ---------------- */

.wm-header .wp-block-navigation__container > .wp-block-navigation-item.wm-header__search-item {
	padding: 0;
	margin: 0;
	flex-shrink: 0;

	/* Not a containing block: the panel below anchors to `.wm-header` (position: relative,
	   group.css), which is what `top: 184px` is measured against in the source. */
	position: static;
}

/* In the burger overlay core packs the items into a right-aligned, shrink-wrapped column; the
   search is a full-width row in the source's overlay. */
@media (max-width: 1123.98px) {
	.wm-header .wp-block-navigation__container > .wp-block-navigation-item.wm-header__search-item {
		align-self: stretch;
		align-items: stretch;
		width: 100%;
	}

	.wm-header .wm-header__search-panel {
		box-sizing: border-box;
		width: 100%;
	}
}

/* ---- Icons: the source's icomoon glyphs, drawn as masks (see button.css for why the font is
   not shipped). U+E906 search, U+E907 close, U+E900 arrow; each one <path> on a 1024 grid taken
   from the source's fonts/selection.json. Colour comes from background-color, so it stays a
   token. ---- */

.wm-header .wm-header__search-toggle::before,
.wm-header .wm-header__search-close::before,
.wm-page-hero--search .wp-block-search .wp-block-search__button::after,
.wm-header .wm-header__search .wp-block-search__button::after {
	content: "";
	display: block;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.wm-header .wm-header__search-toggle::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M752.526 129.157c-79.773-79.797-189.99-129.154-311.735-129.154-243.442 0-440.791 197.349-440.791 440.791s197.349 440.791 440.791 440.791c99.937 0 192.107-33.258 266.044-89.31l-1.097 0.798 231.020 230.923 87.242-87.729-231.020-230.825c55.125-72.831 88.298-164.937 88.298-264.791 0-121.596-49.192-231.703-128.761-311.504l0.011 0.011zM665.285 665.28c-57.384 57.395-136.666 92.895-224.239 92.895-175.126 0-317.093-141.967-317.093-317.093s141.967-317.093 317.093-317.093c87.573 0 166.855 35.501 224.239 92.895v0c57.245 57.41 92.639 136.633 92.639 224.124s-35.395 166.714-92.646 224.131l0.008-0.008z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M752.526 129.157c-79.773-79.797-189.99-129.154-311.735-129.154-243.442 0-440.791 197.349-440.791 440.791s197.349 440.791 440.791 440.791c99.937 0 192.107-33.258 266.044-89.31l-1.097 0.798 231.020 230.923 87.242-87.729-231.020-230.825c55.125-72.831 88.298-164.937 88.298-264.791 0-121.596-49.192-231.703-128.761-311.504l0.011 0.011zM665.285 665.28c-57.384 57.395-136.666 92.895-224.239 92.895-175.126 0-317.093-141.967-317.093-317.093s141.967-317.093 317.093-317.093c87.573 0 166.855 35.501 224.239 92.895v0c57.245 57.41 92.639 136.633 92.639 224.124s-35.395 166.714-92.646 224.131l0.008-0.008z'/%3E%3C/svg%3E");
}

.wm-header .wm-header__search-close::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M993.444 137.578l-373.269 373.269 371.817 371.817c26.507 26.507 26.507 69.398 0 95.904s-69.443 26.507-95.904 0.046l-371.863-371.863-397.28 397.324c-26.598 26.598-69.715 26.552-96.313-0.046-26.642-26.598-26.642-69.761-0.046-96.313l397.28-397.28-394.601-394.647c-26.461-26.461-26.461-69.398 0.046-95.904s69.443-26.507 95.904-0.046l394.601 394.647 373.269-373.269c26.598-26.598 69.67-26.598 96.313 0.046 26.598 26.598 26.598 69.715 0.046 96.313z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M993.444 137.578l-373.269 373.269 371.817 371.817c26.507 26.507 26.507 69.398 0 95.904s-69.443 26.507-95.904 0.046l-371.863-371.863-397.28 397.324c-26.598 26.598-69.715 26.552-96.313-0.046-26.642-26.598-26.642-69.761-0.046-96.313l397.28-397.28-394.601-394.647c-26.461-26.461-26.461-69.398 0.046-95.904s69.443-26.507 95.904-0.046l394.601 394.647 373.269-373.269c26.598-26.598 69.67-26.598 96.313 0.046 26.598 26.598 26.598 69.715 0.046 96.313z'/%3E%3C/svg%3E");
}

.wm-page-hero--search .wp-block-search .wp-block-search__button::after,
.wm-header .wm-header__search .wp-block-search__button::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M328.692 1024l-139.062-139.062 379.259-372.938-379.259-372.938 139.062-139.062 505.679 512z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M328.692 1024l-139.062-139.062 379.259-372.938-379.259-372.938 139.062-139.062 505.679 512z'/%3E%3C/svg%3E");
}

/* Type inside the panel is the source's own, not the menu's: the nav above sets 700 / uppercase /
   -0.5px on everything it holds, and the source's field is plain 400. */
.wm-header .wm-header__search-panel {
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

/* ---- The form. Core's `button-inside` icon form, reshaped to the source's field: a 3px
   `secondary` border on the INPUT (core puts it on the wrapper), the submit laid over the
   field's right end, and a chevron where core draws its magnifier. ---- */

.wm-page-hero--search .wp-block-search,
.wm-header .wm-header__search {
	margin: 0;
}

.wm-page-hero--search .wp-block-search .wp-block-search__inside-wrapper,
.wm-header .wm-header__search .wp-block-search__inside-wrapper {
	position: relative;
	padding: 0;
	border: 0;
	background: transparent;
}

.wm-page-hero--search .wp-block-search .wp-block-search__input,
.wm-header .wm-header__search .wp-block-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	border: 3px solid var(--wp--preset--color--secondary);
	border-radius: 0;
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--jura);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	transition: all 0.4s ease-in-out;
}

.wm-page-hero--search .wp-block-search .wp-block-search__input::placeholder,
.wm-header .wm-header__search .wp-block-search__input::placeholder {
	color: #8a8a8a; /* rgb(138, 138, 138), the source's placeholder */
	opacity: 1;
}

/* The source's focus treatment is the border going `primary` plus a soft grey glow; it draws no
   outline. */
.wm-page-hero--search .wp-block-search .wp-block-search__input:focus,
.wm-header .wm-header__search .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 5px 0 #8a8a8a;
	outline: none;
}

/* The submit is transparent and only its chevron paints. 103px wide, 116px from 1300px up
   (the source's label is 18px / 21px); it sits over the field's right end. */
.wm-page-hero--search .wp-block-search .wp-block-search__button,
.wm-header .wm-header__search .wp-block-search__button {
	position: absolute;
	top: 0;
	right: 0;
	width: 103px;
	height: 46px;
	margin: 0;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--black);
	cursor: pointer;
}

.wm-page-hero--search .wp-block-search .wp-block-search__button svg,
.wm-header .wm-header__search .wp-block-search__button svg {
	display: none;
}

.wm-page-hero--search .wp-block-search .wp-block-search__button::after,
.wm-header .wm-header__search .wp-block-search__button::after {
	position: absolute;
	top: 50%;
	right: 20px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
}

.wm-page-hero--search .wp-block-search .wp-block-search__button:focus-visible,
.wm-header .wm-header__search .wp-block-search__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: -4px;
}

/* ---- Below 1124px: no toggle, no X, the panel is just the form, last in the overlay. ------- */

.wm-header .wm-header__search-toggle,
.wm-header .wm-header__search-close {
	display: none;
}

.wm-header .wm-header__search-panel {
	display: block;
	margin-top: var(--wp--preset--spacing--25);
	padding: 0 var(--wp--style--root--padding-right, 10px);
}

/* Field column: the whole width under 640px; two thirds from 640; centred from 1024. */
@media (min-width: 640px) {
	.wm-header .wm-header__search-panel {
		padding: 0 var(--wp--style--root--padding-right, 15px);
	}

	.wm-header .wm-header__search-panel .wm-header__search {
		/* The source's `medium-8` column: 66.667% of the panel INCLUDING its 15px side padding, less the column's own 30px
		   (462 at 768 against the panel's 708, measured). */
		width: calc((100% + 30px) * 0.66667 - 30px);
	}
}

@media (min-width: 1024px) {
	.wm-header .wm-header__search-panel .wm-header__search {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ---- From 1124px: the icon, and the band it opens. ------------------------------------------ */

@media (min-width: 1124px) {
	/* The toggle: a 37x35 hit box with the 22px glyph 15px in and 4px down -- the source's
	   `div.search-toggle` (padding-left 15px, margin-top 5px) and its `i.icon-search`. It is a
	   button here, where the source's is a div nothing can focus. */
	.wm-header .wm-header__search-toggle {
		position: relative;
		display: block;
		width: 37px;
		height: 35px;
		margin: 5px 0 0;
		border: 0;
		padding: 0;
		background: transparent;
		color: var(--wp--preset--color--primary);
		cursor: pointer;
		transition: opacity 0.3s;
	}

	.wm-header .wm-header__search-toggle::before {
		position: absolute;
		top: 4px;
		left: 15px;
		width: 22px;
		height: 22px;
	}

	.wm-header .wm-header__search-toggle:hover,
	.wm-header .wm-header__search-close:hover {
		opacity: 0.7;
	}

	.wm-header .wm-header__search-toggle:focus-visible,
	.wm-header .wm-header__search-close:focus-visible {
		outline: 2px solid var(--wp--preset--color--primary);
		outline-offset: 2px;
	}

	/* THE BAND. Grey (`light-gray`), full width of the header, out of flow, over the page
	   (`z-index: 3`, inside the header's own stacking context). It opens like the source's
	   slideToggle(500): the row collapses from 1fr to 0fr while the padding animates, and
	   `visibility` keeps a closed panel out of the tab order and away from assistive tech.

	   FLUSH TO THE HEADER'S OWN BOTTOM EDGE -- CORRECTED 2026-09-22, A CONFIRMED SOURCE DEFECT
	   AND NOT REPRODUCED. This used to be `calc(var(--wm-search-y, 0px) + 184px)` (188px from
	   1300px), a number copied from the source's own served stylesheet along with everything else
	   in this file -- but the source's own header is NOT 184px/188px tall (this unit's own root
	   measures 117 at every viewport this contract captured, header.yml's root node), so the
	   source opens its panel with the same visible gap under the header the operator saw and
	   flagged on this build. Per CLAUDE.md's standing rule to flag a source defect rather than
	   copy it, this is a deliberate, named deviation: the offset is now the header's own LIVE
	   measured height (`--wm-search-h`, header-search-view.js's own `place()`) rather than a
	   guessed constant, so the panel is flush to the header's real bottom edge at whatever height
	   it actually renders, and needs no second value to keep in sync at a wider or narrower
	   breakpoint (the 1300px override this rule used to need is removed below for the same
	   reason). The `117px` fallback is this unit's own measured header height, for the one frame
	   before JavaScript has run (or where it never does). */
	.wm-header .wm-header__search-panel {
		position: absolute;
		z-index: 3;
		top: calc(var(--wm-search-y, 0px) + var(--wm-search-h, 117px));
		left: var(--wm-search-x, 0);
		display: grid;
		grid-template-rows: 0fr;
		width: var(--wm-search-w, 100%);
		margin: 0;
		padding: 0 var(--wp--preset--spacing--40);
		box-sizing: border-box;
		background-color: var(--wp--preset--color--light-gray);
		visibility: hidden;
		transition: grid-template-rows 0.5s ease, padding 0.5s ease, visibility 0s linear 0.5s;
	}

	.wm-header .wm-header__search-item.is-open .wm-header__search-panel {
		grid-template-rows: 1fr;
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) var(--wp--preset--spacing--70);
		visibility: visible;
		transition-delay: 0s;
	}

	.wm-header .wm-header__search-inner {
		min-height: 0;
		overflow: hidden;
		box-sizing: border-box;
		width: 100%;
		max-width: 75rem;
		margin: 0 auto;
	}

	/* The X: 24px, right-aligned in the 1200px row with its 15px gutter, `#464646`. */
	.wm-header .wm-header__search-close {
		position: relative;
		display: block;
		width: 24px;
		height: 24px;
		margin: 0 var(--wp--style--root--padding-right, 15px) 0 auto;
		border: 0;
		padding: 0;
		background: transparent;
		color: #464646;
		cursor: pointer;
		transition: opacity 0.3s;
	}

	.wm-header .wm-header__search-close::before {
		width: 24px;
		height: 24px;
	}

	/* Field column is 10/12 of the row, less the 15px gutters; the field is 75px high with 50px
	   above and below (its own margin in the source). */
	.wm-header .wm-header__search-panel .wm-header__search {
		width: calc(83.3333% - 30px);
		margin-left: auto;
		margin-right: auto;
	}

	.wm-header .wm-header__search .wp-block-search__inside-wrapper {
		padding: var(--wp--preset--spacing--60) 0;
	}

	.wm-header .wm-header__search .wp-block-search__input {
		height: 75px;
		font-size: 34px;
		line-height: 51px;
	}

	.wm-header .wm-header__search .wp-block-search__button {
		top: 50px;
		height: 75px;
	}

	.wm-header .wm-header__search .wp-block-search__button::after {
		width: 24px;
		height: 24px;
	}
}

/* `top` needs no override at this step -- CORRECTED 2026-09-22: it used to jump from +184px to
   +188px here because the source's own header changes height at this same edge (its `xlarge`
   type step, already recorded elsewhere on this file and this unit's contract); this build's own
   header does not change height across it (117px at every viewport this contract captured), and
   `top` is now the header's own LIVE measured height regardless, so no second number is needed. */
@media (min-width: 1300px) {
	.wm-header .wm-header__search .wp-block-search__button {
		width: 116px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wm-header .wm-header__search-panel,
	.wm-header .wm-header__search .wp-block-search__input {
		transition: none;
	}
}

/* ---- Editor-only: the canvas never runs inc/header-search.php's render filter. -------------
 *
 * THE GAP. `render_block_core/search` (inc/header-search.php) is a PHP content filter -- it
 * only runs inside a real render pass (do_blocks()/render_block()), which the Site Editor's
 * canvas never performs; it renders `core/search` through the block's own client-side `edit()`
 * instead. So the hooked block reaches the canvas as a bare `.wp-block-search`, carrying the
 * `wm-header__search` className the `hooked_block_core/search` ATTRIBUTES filter writes --
 * Block Hooks attribute filtering runs unconditionally, in both contexts
 * (`insert_hooked_blocks()`, wp-includes/blocks.php, verified by reading the hooked block's own
 * classList in the canvas) -- but none of the `<li>`, the toggle, the panel or the close button
 * the MARKUP filter draws, and every rule above that depends on them
 * (`.wm-header__search-item`, `-toggle`, `-panel`) has nothing to match. Left alone the field
 * renders at its full, un-collapsed size, inline in the nav row: measured at 220x175 in the
 * canvas (1440 and 1600px, `wp-block-search__button-inside`), which is what was forcing the
 * whole padded `.wm-header` row to 235px tall against the frontend's own 117px for the
 * identical padding (30px top/bottom on both -- confirmed by computed style -- so the 118px
 * gap is entirely this one oversized flex item's own height, not a doubled root padding).
 *
 * WHY NOT CORE'S OWN `button-only` MODE. It exists and IS interactive both in the canvas and on
 * the frontend, but it is a different shape from the one already measured and built here --
 * inc/header-search.php's own docblock records why the source's separate toggle, full-width
 * grey band and separate close button were kept over it. Swapping the block's own attributes to
 * borrow an editor-native collapse would undo a verified mechanism to fix a view nothing but
 * this stylesheet needs to know about.
 *
 * THE FIX. `.editor-styles-wrapper` is the canvas iframe's own <body> class, written
 * unconditionally in both the Site Editor and the post editor
 * (wp-includes/js/dist/block-editor.js's Iframe component) and present nowhere on the rendered
 * frontend, so this cannot leak into the real page. It draws the same closed-toggle icon the
 * frontend paints at rest, in the same box the frontend uses from 1124px up (37x35, the 22px
 * glyph 15px in and 4px down -- the toggle rule above, not a new size invented for the editor),
 * and visually hides the real field/button rather than `display:none`-ing them, so the block
 * stays selectable in List View and the label stays in the accessibility tree.
 */
.editor-styles-wrapper .wm-header .wm-header__search {
	position: relative;
	flex: 0 0 auto;
	width: 37px;
	height: 35px;
	margin: 0;
}

.editor-styles-wrapper .wm-header .wm-header__search .wp-block-search__label,
.editor-styles-wrapper .wm-header .wm-header__search .wp-block-search__inside-wrapper {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* `!important`, and only on the properties the editor fights over: the button-inside/button-
   outside `edit()` wraps the field in a `ResizableBox` (the drag-to-resize handle a plain
   `button-only` block does not get) that writes `position: relative; width: auto; min-width:
   220px; height: auto;` as an INLINE style on `.wp-block-search__inside-wrapper` -- verified by
   reading the element's own `style` attribute in the canvas -- and an inline style outranks any
   external rule's specificity regardless of how many classes it carries. Only `!important` on
   an external declaration climbs back over a non-important inline one. Nothing else on this
   element is inline, so nothing else here needs it. */
.editor-styles-wrapper .wm-header .wm-header__search .wp-block-search__inside-wrapper {
	position: absolute !important;
	width: 1px !important;
	min-width: 1px !important;
	height: 1px !important;
}

.editor-styles-wrapper .wm-header .wm-header__search::before {
	content: "";
	display: block;
	position: absolute;
	top: 4px;
	left: 15px;
	width: 22px;
	height: 22px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M752.526 129.157c-79.773-79.797-189.99-129.154-311.735-129.154-243.442 0-440.791 197.349-440.791 440.791s197.349 440.791 440.791 440.791c99.937 0 192.107-33.258 266.044-89.31l-1.097 0.798 231.020 230.923 87.242-87.729-231.020-230.825c55.125-72.831 88.298-164.937 88.298-264.791 0-121.596-49.192-231.703-128.761-311.504l0.011 0.011zM665.285 665.28c-57.384 57.395-136.666 92.895-224.239 92.895-175.126 0-317.093-141.967-317.093-317.093s141.967-317.093 317.093-317.093c87.573 0 166.855 35.501 224.239 92.895v0c57.245 57.41 92.639 136.633 92.639 224.124s-35.395 166.714-92.646 224.131l0.008-0.008z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M752.526 129.157c-79.773-79.797-189.99-129.154-311.735-129.154-243.442 0-440.791 197.349-440.791 440.791s197.349 440.791 440.791 440.791c99.937 0 192.107-33.258 266.044-89.31l-1.097 0.798 231.020 230.923 87.242-87.729-231.020-230.825c55.125-72.831 88.298-164.937 88.298-264.791 0-121.596-49.192-231.703-128.761-311.504l0.011 0.011zM665.285 665.28c-57.384 57.395-136.666 92.895-224.239 92.895-175.126 0-317.093-141.967-317.093-317.093s141.967-317.093 317.093-317.093c87.573 0 166.855 35.501 224.239 92.895v0c57.245 57.41 92.639 136.633 92.639 224.124s-35.395 166.714-92.646 224.131l0.008-0.008z'/%3E%3C/svg%3E");
}

/*
 * .wm-page-hero--search: THE SEARCH BAND'S OWN FORM (2026-09-21), the same Drupal exposed form the header's panel holds, so
 * every rule above that is not panel geometry is shared through the `.wm-page-hero--search .wp-block-search` selectors
 * added to that list. Measured on the live source /search with a computed-style walk (1440x900 and 390x844): the form has
 * 30px above and below it, the field is 970x75 at 1440 (34px / 51px type, padding 20) and 300x46 at 390 (16px / 24px),
 * and the 16px under the field is the input's own margin-bottom, which the wrapper's padding-bottom stands for here.
 * The source steps at its `large` edge; this theme's is 1123.98px, the same edge the header panel's 75px field uses.
 * The button's 116px at 1300px follows the header panel's `xlarge` rule and is UNMEASURED at 1124..1299 on the band.
 */
.wm-page-hero--search .wp-block-search {
	/* Was margin-top 38px (30px above plus the title's 8px, which does not collapse in the
	   source: they are separate columns). Snapped to spacing|50 (40px), 2026-09-25
	   (spacing-standard.md §1 item 3, "standard wins"); 30px below, written as padding
	   because core zeroes the last child's bottom margin. */
	margin: var(--wp--preset--spacing--50) 0 0;
	padding-bottom: var(--wp--preset--spacing--40);
}

.wm-page-hero--search .wp-block-search .wp-block-search__inside-wrapper {
	padding-bottom: var(--wp--preset--spacing--25);
}

.wm-page-hero--search .wp-block-search .wp-block-search__input {
	width: 100%;
}

@media (min-width: 1124px) {
	.wm-page-hero--search .wp-block-search .wp-block-search__input {
		height: 75px;
		font-size: 34px;
		line-height: 51px;
	}

	.wm-page-hero--search .wp-block-search .wp-block-search__button {
		height: 75px;
	}

	.wm-page-hero--search .wp-block-search .wp-block-search__button::after {
		width: 24px;
		height: 24px;
	}
}

@media (min-width: 1300px) {
	.wm-page-hero--search .wp-block-search .wp-block-search__button {
		width: 116px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wm-page-hero--search .wp-block-search .wp-block-search__input {
		transition: none;
	}
}
