/* Fix wave F3, section templates (full-site QA 2026-11-22, qa/full-2026-11-22/FIXES.md).
   Note on order: section files load alphabetically, so this file loads BEFORE
   zz-fold-*.css and zz-motion.css. Rules that compete with those files carry one extra
   class of specificity on purpose. Phone values first, then 768 and 1024. */

/* ================================================================ Bento (G5) */
/* Titles sat at different heights in one row because each tile anchored its copy to the
   bottom. From 768 the copy follows the icon row at a fixed offset, so titles in a row
   line up and descriptions flow below. Phones keep the compact one-row tile. The wide
   variant's first tile stands alone beside the lead, so it keeps its copy at the bottom,
   level with the lead's title. */
@media (min-width: 768px) {
	.bento .bento__tile { justify-content: flex-start; gap: 24px; }
}
@media (min-width: 1024px) {
	.bento .bento__tile { gap: 28px; }
	.bento--wide .bento__tile--n1 { justify-content: space-between; }
}

/* ================================================================ Side heading layouts (G6) */
/* Icons list and facts side card: the heading column starts level with the card top, as
   the ranked list (.rlist) already does, instead of floating at mid height. */
@media (min-width: 1024px) {
	.icons-list, .fx--side { align-items: flex-start; }
}

/* ================================================================ Statement (G4) */
/* Phones: the display sentence ran five or six ragged lines in a narrow column. */
@media (max-width: 480px) {
	.statement { gap: 12px; padding: 28px 20px; }
	.statement__t { font-size: 22px; line-height: 29px; letter-spacing: -.5px; }
}

/* ================================================================ Link groups (G6) */
/* Glossary term cards keep their own height instead of stretching to the tallest (G6).
   Scoped to glossary pages: every other groups section (Terms, platforms, sitemap) keeps
   equal-height cards (QA round 2). */
.pt-glossary .groups { align-items: start; }

/* ================================================================ Articles (G6) */
/* Phones: the hero image sat about 8px under the intro paragraph. */
@media (max-width: 767px) {
	.hero--editorial .imgcard--hero { margin-top: 12px; }
}

/* ================================================================ Tablet card grids (G3, G4, G6) */
/* 768 to 1023: cards run two up, so an odd last card (for example the third "Keep
   reading" card) spans the row instead of standing alone in the left column. */
@media (min-width: 768px) and (max-width: 1023px) {
	.cards:not(.cards--tiles) > .cards__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	/* Icons list card: rows two up, so short items do not leave a stretched phone column. */
	.icons-list__card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.icons-list__card > .icons-list__row:nth-child(2) { border-top: 0; }
	.icons-list__card > .icons-list__row:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.icons-list__card .icons__t { font-size: 19px; line-height: 25px; }
	.icons-list__card .icons__d { font-size: 15px; line-height: 22px; }
}

/* ================================================================ Ranked list and search results (G6) */
/* Phones: the row is the link (the anchor's ::after covers it), but the anchor box itself
   was 25px tall. Padding with a matching negative margin gives it a 44px target without
   moving anything. */
@media (max-width: 767px) {
	.rlist__t .rlist__a { display: block; padding: 10px 0; margin: -10px 0; }
}

/* QA round 2: tap targets on phones of at least 44px without changing the drawn size.
   Home project tabs grow to 44px; the Contact direct-line links get an invisible hit area. */
@media (max-width: 767px) {
	.hm-tab { min-height: 44px; }
	.ct-line__v { position: relative; }
	.ct-line__v::after { content: ""; position: absolute; inset: -11px -4px; }
	.hm-proj__pause { position: relative; }
	.hm-proj__pause::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
}

/* ================================================================ QA round 2 */
/* Readability floor: card, icon, bento and step descriptions were 14px on phones. */
@media (max-width: 767px) {
	.cards__d, .icons__d, .bento__d, .steps .steps__d { font-size: 15px; line-height: 22px; }
}

/* Hero meta: the spec puts a line break between the read time and the publish date
   (B15-05); keep it instead of collapsing it into a space. */
.hero__meta { white-space: pre-line; }

/* Home "What makes us different": the card art is drawn for a card about 384px wide and
   covered the titles (and clipped its labels) between 768 and 1199. Until 1200 the cards
   use the phone layout (icon tile above the copy) in three columns; 1440 and 390 are
   unchanged. */
@media (min-width: 768px) and (max-width: 1199px) {
	.hm-why .hm-why__card { justify-content: flex-start; gap: 16px; min-height: 0; padding: 24px; }
	.hm-why .hm-why__card > .tile { display: inline-grid; }
	.hm-why .hm-vig { display: none; }
}

/* QA round 2: chips whose label names a real page are links (B1-08 "More resources"). */
.chipsg__chip--link { padding: 0; }
.chipsg__chip--link a { display: block; padding: 8px 13px; border-radius: inherit; color: inherit; transition: color var(--dur-fast), background-color var(--dur-fast); }
.chipsg__chip--link a:hover { color: var(--c-blue); }
@media (min-width: 768px) { .chipsg__chip--link a { padding: 9px 16px; } }
@media (max-width: 767px) {
	.chipsg__chip--link a { position: relative; }
	.chipsg__chip--link a::after { content: ""; position: absolute; inset: -7px 0; }
}

/* QA final: home "From idea to production" at 1024 to 1279. The track art is drawn 528px wide
   and the panel is about 400 to 520px there, so the art (not the layout) scales to fit. */
@media (min-width: 1024px) and (max-width: 1149px) {
	.hm-step__vig--track .hm-track { transform: scale(.74); transform-origin: 50% 50%; }
}
@media (min-width: 1150px) and (max-width: 1279px) {
	.hm-step__vig--track .hm-track { transform: scale(.86); transform-origin: 50% 50%; }
}
/* Linked chips match plain chips in height, and the bento lead text meets the 15px floor. */
.chipsg__chip.chipsg__chip--link { padding: 0; }
.chipsg__chip--link a { padding: 6px 12px; }
@media (min-width: 768px) { .chipsg__chip--link a { padding: 8px 14px; } }
@media (max-width: 767px) { .bento__lead-d { font-size: 15px; line-height: 22px; } }
