/* Mobile QA fix wave (2026-11-23), builder FB2: things people tap, and where a tap lands.
   qa/mobile-2026-11-23/FIXES.md. Loads last (alphabetical). Every rule but the anchor fix (8) is
   scoped below 1280px, so the desktop design at 1280 and wider is untouched. Floor: 44px tall hit areas with 8px
   between neighbours; hit areas grow through padding, min-height or a transparent
   pseudo-element, and the controls keep their drawn size. */

/* ================================================================ 1. FAQ rows (M6-03)
   The card looked like a 52 to 56px row, but only the 24px question line toggled. A
   transparent ::before on the summary now covers the whole card while it is closed (the card
   is position: relative through .card), and the card padding above and beside the question
   plus the 8px gap above the answer while it is open, so the answer text stays selectable.
   --faq-py and --faq-px mirror the card padding (zz-fold-blocks.css, home-contact.css). */
@media (max-width: 1279px) {
	.faq__item { --faq-py: 14px; --faq-px: 16px; }
	.hm-faq .faq__item { --faq-py: 16px; --faq-px: 18px; }
	.faq__item > .faq__q::before { content: ""; position: absolute; inset: 0; }
	.faq__item[open] > .faq__q { position: relative; }
	.faq__item[open] > .faq__q::before { inset: calc(-1 * var(--faq-py)) calc(-1 * var(--faq-px)) -8px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
	.faq__item { --faq-px: 20px; }
	.hm-faq .faq__item { --faq-py: 12px; --faq-px: 16px; }
}

/* ================================================================ 2. Hero search field (M6-04, M1-05)
   The box was drawn 56px tall around a 24px input. The input now fills the box: the box
   padding moves onto the input and the magnifier sits over the input's left padding (it
   lets taps through), so a tap anywhere in the box focuses the field. Same drawing. */
@media (max-width: 767px) {
	.hsearch__box { padding: 0; }
	.hsearch__ico { position: absolute; left: 16px; top: 50%; margin-top: -9px; pointer-events: none; }
	.hsearch__input { align-self: stretch; padding: 16px 16px 16px 44px; }
}
/* From 768 the whole form is the field (padding 8 8 8 22, Search button inside): the box
   reaches the form's left, top and bottom edges, so the input covers everything left of
   the button. */
/* The 10px strip between the box and the Search button (the form's gap) did not focus the
   field: the box now reaches the button (margin-right: -10px). The box has no drawing in this
   range, so nothing moves. */
@media (min-width: 768px) and (max-width: 1279px) {
	.hsearch__box { align-self: stretch; margin: -8px -10px -8px -22px; }
	.hsearch__ico { position: absolute; left: 22px; top: 50%; margin-top: -9px; pointer-events: none; }
	.hsearch__input { align-self: stretch; padding-left: 50px; }
}

/* ================================================================ 3. "On this page" drop list (M3-05, M4-04, M6-06, M1-06)
   Links were 22px tall with 8px gaps: each link is now a 44px row (11px above and below
   the text, no gap). The list keeps 18px under the last line of text. */
@media (max-width: 1023px) {
	.toc--drop .toc__list { gap: 0; padding-bottom: 7px; }
	.toc--drop .toc__a { padding-block: 11px; }
}

/* ================================================================ 4. Linked chips (B1-03, B1-08, B15-08, blog index topics)
   The link is a 44px tall box; negative block margins keep the drawn pill at its height
   (30px on phones, 34px from 768). Rows of pills are 22px apart on phones (was 8) and 18px
   from 768 (was 10), so the 44px hit areas keep 8px between them. The focus ring is drawn
   on the pill, not on the taller link.
   The link's block padding is the pill's own padding plus the margin it hangs out by
   (6 + 7 = 13px on phones, 8 + 5 = 13px from 768): a one-line label still gives a 44px link
   and the same pill, and a label that wraps (blog topic "Organizational Change Management"
   at 320) grows the pill with it, keeping its drawn padding, so the text stays inside.
   Below 768 pills that sit side by side are 8px apart (was 6), so their hit areas are too. */
@media (max-width: 1279px) {
	.chipsg__chip--link a { position: relative; display: flex; align-items: center; min-height: 44px; padding-block: 13px; margin-block: -7px; }
	/* Chrome does not hit-test the part of an in-flow box that hangs below its parent, so a
	   positioned ::after (hit-tested on its own) fills the link box. */
	.chipsg__chip--link a::after { content: ""; position: absolute; inset: 0; }
	.chipsg__list:has(> .chipsg__chip--link) { row-gap: 22px; }
	.chipsg__chip--link a:focus-visible { outline: none; }
	.chipsg__chip--link:has(> a:focus-visible) { outline: 2px solid var(--c-blue); outline-offset: 3px; }
}
@media (max-width: 767px) {
	.chipsg__list:has(> .chipsg__chip--link) { column-gap: 8px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
	.chipsg__chip--link a { margin-block: -5px; }
	.chipsg__list:has(> .chipsg__chip--link) { row-gap: 18px; }
}

/* ================================================================ 5. Search filter pills (M6-13)
   The link started after the pill's left padding and dot: a transparent ::after now
   stretches it over the whole pill (44px tall on phones). */
@media (max-width: 1279px) {
	.search-filter .scene__pill > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
}
/* From 768 the pills are drawn 40px tall: the hit area reaches 2px past the top and bottom. */
@media (min-width: 768px) and (max-width: 1279px) {
	.search-filter .scene__pill > a::after { inset: -2px 0; }
}

/* ================================================================ 6. Pager (M6-11)
   44px buttons up to 1279 (they were 38px from 768). At 320 to 374 "Next" wrapped onto a
   line of its own: the page numbers keep the first line and Previous and Next share the
   second. */
@media (min-width: 768px) and (max-width: 1279px) {
	.pager__btn, .pager .page-numbers:not(.dots) { min-width: 44px; min-height: 44px; }
}
@media (max-width: 374px) {
	nav.pager, .pager .nav-links { row-gap: 4px; }
	nav.pager::after, .pager .nav-links::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
	nav.pager > .pager__btn:first-child, nav.pager > .pager__btn:last-child,
	.pager .nav-links > .prev, .pager .nav-links > .next { order: 2; }
}

/* ================================================================ 7. Range sliders: AI ROI calculator (M3-04, B5-05)
   The transparent native input is 44px tall (it was 24), centred on the 6px track, and the
   rows are 52px apart (were 46) so the hit areas keep 8px between them. touch-action: pan-y
   stays on the input; scene-bento.js only commits a touch once it moves sideways, so a
   vertical swipe that starts on a track scrolls the page and leaves the value alone. */
@media (max-width: 1279px) {
	.sb-roi { gap: 18px; }
	.sb-roi__range { top: -19px; height: 44px; }
	.sb-roi__range::-webkit-slider-runnable-track { height: 44px; }
	.sb-roi__range::-webkit-slider-thumb { height: 44px; }
	.sb-roi__range::-moz-range-track { height: 44px; }
	.sb-roi__range::-moz-range-thumb { height: 44px; }
}

/* ================================================================ 8. Anchor landing (M3-06, M6-06)
   html { scroll-padding-top: 96px } (base.css) is the one anchor offset. The blog post rule
   (zz-gl-blog.css) added a second 96px on article headings, so taps landed 192px down;
   content.css's matching rule was removed at the source. */
.sth-wp-post .article__body :is(h2, h3, h4, .wp-anchor) { scroll-margin-top: 0; }
