/* ==========================================================================
   diversity-and-inclusion-in-business.css — page-only layer (article). Loads after pages.css.
   Tokens only (no new colours / radii / fonts / shadows). Prefix: dib-
   ========================================================================== */

.dib-anchor { scroll-margin-top: var(--header-h); }

/* hero: wide team photo in a wider column (same shape as the other long reads) */
.dib-hero .pg-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dib-hero .pg-hero__title { max-width: 12ch; }
.dib-hero .pg-hero__media { max-width: 680px; }
.dib-hero .pg-hero__media .pg-photo { aspect-ratio: 16 / 9; }

/* executive summary: short heading column beside the summary */
.dib-summary .pg-head > h2 { max-width: 18ch; }

/* cultural collisions: "A vs B" rows on one white card (yellow tab like .pg-card) */
.dib-versus {
  position: relative; min-width: 0; padding: 0 var(--card-pad) var(--space-3);
  border-radius: var(--radius-lg); background: var(--color-white);
  border: 1px solid var(--color-hairline); box-shadow: var(--shadow-card-soft);
}
.dib-versus::before {
  content: ""; position: absolute; top: -1px; left: var(--card-pad); width: var(--space-6); height: 3px;
  border-radius: 0 0 2px 2px; background: var(--color-yellow-400);
}
.dib-versus__title {
  padding-block: var(--space-6) var(--space-4); border-bottom: 1px solid var(--hairline-light-strong); text-align: center;
  font-family: var(--font-alt); font-weight: 600; font-size: var(--fs-label); line-height: 1.2;
  letter-spacing: var(--ls-kicker); text-transform: uppercase; color: var(--color-blue-700);
}
.dib-versus__list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: var(--space-4); padding-block: var(--space-4);
}
.dib-versus__list li + li { border-top: 1px solid var(--hairline-light); }
.dib-versus__a, .dib-versus__b {
  font-family: var(--font-display); font-size: var(--fs-display-sm); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere;
}
.dib-versus__a { text-align: right; color: var(--color-blue-700); }
.dib-versus__b { text-align: left; color: var(--color-text-muted); }
.dib-versus__x {
  display: flex; align-items: center; justify-content: center; width: var(--btn-h-sm); height: var(--btn-h-sm);
  border-radius: var(--radius-pill); background: var(--color-yellow-400); color: var(--color-blue-700);
  font-family: var(--font-alt); font-weight: 600; font-size: var(--fs-label); line-height: 1;
  letter-spacing: var(--ls-label); text-transform: uppercase;
}

/* question / statement quotes (navy bands): no person row, a quiet closing line */
.dib-quote__note { max-width: var(--measure-intro); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-on-dark-muted); text-wrap: balance; }

/* problem / solution cards */
.dib-ps .pg-card { gap: var(--space-4); }
.dib-ps .pg-card__title { font-size: var(--fs-display-md); }
.dib-ps__list { margin-top: var(--space-3); width: 100%; padding-top: var(--space-5); border-top: 1px solid var(--pg-line); }
.dib-ps__list a { text-decoration: underline; text-decoration-color: var(--color-yellow-400); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dib-ps__list a:hover { text-decoration-color: currentColor; }

/* roadmap steps: the real practice titles of each phase, then a jump link */
.dib-steps .link-underline { display: inline-flex; margin-top: var(--space-5); }
.dib-steps__list { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--hairline-dark); }
.dib-steps__list li {
  position: relative; padding: var(--space-2) 0 var(--space-2) var(--space-5);
  font-size: var(--fs-small, var(--fs-body)); line-height: var(--lh-body); color: var(--color-on-dark-muted);
}
.dib-steps__list li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--space-2) + 0.6em); width: var(--space-2); height: 2px;
  border-radius: 1px; background: var(--color-yellow-400);
}

/* statement bands: centred head + quote, but the long paragraph reads left-aligned in a narrow measure */
.dib-statement .pg-head--center > .pg-head__text { max-width: var(--measure-intro); text-align: left; margin-inline: auto; }

/* practice grids: equal card widths in every row (no 3 + 2 wide, no full-width orphan) */
@media (min-width: 1069px) {
  .dib-practices > *, .dib-practices > :nth-child(3n+1):nth-last-child(2), .dib-practices > :nth-child(3n+1):nth-last-child(2) + *, .dib-practices > :nth-child(3n+1):last-child { grid-column: span 2; }
}
@media (min-width: 735px) and (max-width: 1068px) {
  .dib-practices > :nth-child(odd):last-child { grid-column: auto; }
}
.dib-practices__intro { justify-content: center; }
.dib-practices__intro .pg-card__text { font-size: var(--fs-lead); line-height: var(--lh-lead); }

@media (max-width: 1068px) {
  .dib-summary .pg-head > h2 { max-width: none; }
  .dib-hero .pg-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .dib-hero .pg-hero__media .pg-photo { aspect-ratio: 16 / 9; }
  .dib-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 734px) {
  .dib-versus { padding-inline: var(--card-pad-sm); }
  .dib-versus::before { left: var(--card-pad-sm); }
  .dib-versus__list li { gap: var(--space-3); }
  .dib-versus__a, .dib-versus__b { font-size: var(--fs-lead); }
  .dib-versus__x { width: var(--space-6); height: var(--space-6); font-size: var(--fs-xs); }
}

/* kicker on the blue solution card (kit only lightens kickers on dark bands) */
.pg-card--blue .kicker { color: var(--color-on-dark-muted); }

/* keep reading: 16:9 article covers carry their own type, so show them whole and true (white paper card uses the landscape Shay photo) */
.dib-more .pg-card__media { aspect-ratio: 16 / 9; }
.dib-more .pg-card__media img { filter: none; }

@media (max-width: 734px) {
  .dib-summary .pg-head > h2 { max-width: none; }
  /* centred navy heads: a long kicker wraps, so drop its rule rather than leave it stranded */
  .dib-statement .pg-head--center > .kicker { text-align: center; }
  .dib-statement .pg-head--center > .kicker::before { display: none; }
  /* media cards keep a flush photo on phones (kit phone padding rule hits .pg-card--media too) */
  .dib-more .pg-card--media { padding: 0; }
  .dib-statement .pg-head--center > .pg-head__text { max-width: none; }

  /* practices on phones: a compact numbered list, no card chrome, hairline separators */
  .dib-practices { gap: 0; }
  .dib-practices > .pg-card:not(.pg-card--blue) {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-2);
    padding: var(--space-5) 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .dib-practices > .pg-card:not(.pg-card--blue) + .pg-card { border-top: 1px solid var(--hairline-light-strong); }
  .dib-practices > .pg-card:not(.pg-card--blue)::before { display: none; }
  .dib-practices > .pg-card:not(.pg-card--blue) > .pg-card__num { grid-row: 1 / span 2; align-self: start; }
  .dib-practices > .pg-card:not(.pg-card--blue) > .pg-card__title { margin-top: 0; align-self: center; }
  .dib-practices > .pg-card:not(.pg-card--blue) > .pg-card__text { grid-column: 2; }
  .dib-practices__intro { padding: var(--card-pad-sm); margin-bottom: var(--space-3); }
}

/* ===== sitewide fix 2026-11-16 (tester checklist, group "other") ===== */
/* sitewide fix 2026-11-16 (bug 9): headings, card titles and the quote outside the hero use plain wrap, so line 1
   fills its column (balance left 56-83% lines with room for the next word at 1069-1440). */
html body main :is(h2, h3, .dib-quote blockquote p):not(section[class*="hero"] *) { text-wrap: wrap !important; }
/* sitewide fix 2026-11-16 (bug 9): summary heading: no 18ch cap on desktop, it fills its column (was 4 lines at 54%) */
@media (min-width: 1069px) { html body main .dib-summary .pg-head > h2 { max-width: none; } }
/* sitewide fix 2026-11-16 (bug 9): list items, step lines, kickers, card text and prose: plain wrap where "pretty"
   pulled a word down (50-84% lines at 320-390) */
html body main :is(.pg-checks > li, .dib-steps__list > li, .pg-step__text, .pg-prose > p, .pg-card__text, .pg-head > .kicker):not(section[class*="hero"] *) { text-wrap: wrap !important; }
/* sitewide fix 2026-11-16 (bug 9): CTA title on desktop: one line across the text column (448px cap = 2 lines at 78%) */
@media (min-width: 1069px) { html body main .pg-cta__card .pg-cta__title { max-width: none; } }
/* sitewide fix 2026-11-16 (rule D14): the 3:2 desktop crop cut the right-hand man's face; 34% keeps all faces whole */
@media (min-width: 1069px) { #dib-onboarding .pg-photo { --pg-focus: 34% 40% !important; } }
