/* Mobile QA fix wave FB3 (November 23, 2026): content that did not fit on the smallest
   phones (320 to 430) on inner pages. Loads last. Every rule is scoped to the widths where
   the defect showed; nothing here applies at 768 and up, so tablet and desktop are unchanged. */

/* ================================================================ 1. Long button labels (B1-06, B5-06, B7-02)
   .btn never wrapped, so a label wider than the column was clipped at both ends at 320
   (and B7-02 at 360). Below 390 a label that does not fit wraps to two balanced lines;
   one-line buttons keep their 48px height. :where() keeps this at the base .btn weight so
   page-specific button heights still win. Every button rule in this section is scoped to
   inner pages: the home page (body.home: hero, "From idea to production" bento) and the
   Contact page (body.page-template-page-contact) keep their buttons exactly as drawn. */
@media (max-width: 389px) {
	:where(body:not(.home):not(.page-template-page-contact) main) .btn { white-space: normal; text-align: center; text-wrap: balance; }
	:where(body:not(.home):not(.page-template-page-contact) main) .btn:where(:not(.btn--sm)) { height: auto; min-height: 48px; padding-block: 12px; }
}
/* Below 360 the side padding goes 20 to 12px and the arrow gap 9 to 6px, so a common label such as "Book a free
   30-minute call" (206px with its arrow) keeps one line in a 236px CTA button. The one
   unbreakable label, "info@sthenostechnologies.com" (B7-02, 227px at 15px), is still wider
   than that button. An email button sets its label at 14px (the tablet and desktop button size)
   with 10px side padding and drops the decorative arrow, so the address keeps one line.
   As a last resort only, a token that still cannot fit breaks instead of being clipped. */
@media (max-width: 359px) {
	:where(body:not(.home):not(.page-template-page-contact) main) .btn { gap: 6px; padding-inline: 12px; }
	:where(body:not(.home):not(.page-template-page-contact) main) :is(.btn, .btn__label) { overflow-wrap: anywhere; }
	:where(body:not(.home):not(.page-template-page-contact) main) .btn[href^="mailto:"] { padding-inline: 10px; font-size: 14px; }
	:where(body:not(.home):not(.page-template-page-contact) main) .btn[href^="mailto:"] .btn__icon { display: none; }
}

/* ================================================================ 2. Hero index tiles breaking mid-word (B8-01, B11-09, B12-08, B13-04)
   At 320 to 359 a two-up tile has 84 to 100px for its title, and the long-value size
   (18px, already the small step) still split "Immutable", "Dashboards", "Implement" and
   "Engineering". A smaller size would need about 15px, so tiles with a long value
   (.is-long: any value over 7 characters) take one column there; short-value tiles stay two-up. */
@media (max-width: 359px) {
	.hero .scene__tiles.scene__tiles.is-long { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================ 3a. Hero tier rows (B3-05, B4-05)
   At 320 the label column was squeezed to 46 to 67px ("L1 and / L2"), and at 360 and 375
   "Service / levels" still wrapped beside a two-line value. Below 390 the label sits above
   the value; 390 and wider keep the side-by-side rows. */
@media (max-width: 429px) {
	.hero .scene__tier { flex-direction: column; align-items: flex-start; gap: 2px; }
	.hero .scene__tier span { flex: none; }
}

/* ================================================================ 3b. Card tag pill pushing the arrow out (B4-07)
   "Dynamics and Power Platform" did not shrink, so the arrow sat past the card edge at 320.
   The pill may now wrap inside the row; the arrow keeps its size. */
@media (max-width: 767px) {
	.cards__top .pill { min-width: 0; white-space: normal; }
	.cards__top .arrow-ne { flex: none; }
}

/* ================================================================ 4. Bento lead title contrast (B3-10, B2-02)
   The card's scrim is fixed to the card height, so a two- or three-line title started on
   the light top of the image (about 1.5:1). A second scrim now rides on the copy block: it
   fades in over the 48px above the copy and stays dark behind it, so the title sits on the
   dark part whatever its line count. No layout change. */
@media (max-width: 767px) {
	.bento__lead:not(.is-ph) .bento__lead-copy { position: relative; }
	.bento__lead:not(.is-ph) .bento__lead-copy::before {
		content: ""; position: absolute; inset: -48px 0 0; z-index: -1; pointer-events: none;
		background: linear-gradient(180deg, rgba(7, 10, 36, 0) 0, rgba(7, 10, 36, .6) 48px, rgba(7, 10, 36, .6) 100%);
	}
}

/* ================================================================ 5. Text under the floor
   Values a reader must read are at least 15px on phones and small tablets:
   hero glance values (rows sit side by side from 481px and dropped to 14px; B11-01 and 7 more)
   and footnotes that carry sources and caveats (B12-07, B12-08). Tile captions are short
   labels and stay at 13px. */
@media (min-width: 481px) and (max-width: 767px) {
	.hero .scene__rows .scene__row dd { font-size: 15px; }
}
@media (max-width: 767px) {
	.statement__note, .ftable__note { font-size: 15px; line-height: 22px; }
	/* The kit note (case-study caveat "Industry example delivered by another firm...", hero and
	   showcase notes) is a full sentence: 15px like the notes above. The stat card labels on
	   B1-06 include a full sentence ("NAICS codes on our SBA record, ..."), so the four labels
	   take the 15px size they already have from 768. The 12px hero checklist rows
	   (.ss-check__t) are parts of an illustration and stay as drawn. */
	.note { font-size: 15px; line-height: 22px; }
	.statcards__l { font-size: 15px; line-height: 22px; }
}

/* ================================================================ 6. Hero H1 single-word last lines (B11-04, B13-10, B5-06 and more)
   Not a nowrap or a fixed width: the 34px phone H1 is too wide for the 280px column, so
   text-wrap: balance had no better break to choose. Below 360 the H1 steps to 32px
   (the long-title size, 30px, is unchanged). */
@media (max-width: 359px) {
	.hero .h1:not(.is-long) { font-size: 32px; line-height: 37px; }
}

/* ================================================================ 7. Hero map labels (B5-04, B6-01, B6-03, B6-04)
   The "McLean office" pin label ran into "VIRGINIA" up to 411px (21x9px at 320, touching at
   390). Virginia moves to the bottom-left corner of its region, and the map keeps at least
   112px of height so the pin label clears it at 320. */
@media (max-width: 411px) {
	.hero .sb-map.sb-geo { min-height: 112px; }
	.sb-geo__lab--va { top: calc(100% - 13px); }
}

/* ================================================================ 8. 404 search placeholder (B15-09)
   'Try "agentic AI" or "healthcare"' (239px) was cut off in a 220px field at 320. Below 360
   the placeholder sets at 15px (typed text stays 16px, so iOS does not zoom) and the field's
   text area widens by 8px. Built on FB2's tap-area rule in zz-zm-touch.css, where the input
   fills the box and the icon is placed over its left padding (icon 16 to 34px). */
@media (max-width: 359px) {
	.hsearch__input { padding-left: 40px; padding-right: 12px; }
	.hsearch__input::placeholder { font-size: 15px; }
}

/* ================================================================ Final check MV4: industry tiles (B1-02)
   At 320 the two-up icon tiles left 62 to 81px for the title, so "Manufacturing" ran 19px
   past its card and "Entertainment" 16px. Below 360 the tiles take one column; 360 and wider
   are unchanged. */
@media (max-width: 359px) {
	.sec .cards.cards--tiles { grid-template-columns: minmax(0, 1fr); }
}
