/* who-we-help.css: the Who we help page: the header through the site's flag (motif-window, arsenal, never edited), the
   six kinds in photos with the tour's tabs, three weeks on the designed ground, the chat over the auto shop, the close.
   Tokens of system.css only. */
@import url("../arsenal/motif-window.css");

/* ---------- Header ---------- */
.who-hero .motif-window__h { max-width: 14ch; }
.who-hero .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }

/* ---------- The six kinds: tabs over one framed photo, its card in glass ---------- */
.kinds { display: grid; gap: var(--space-4); }
.kinds__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.kinds__tab { position: relative; overflow: hidden; min-height: 2.75rem; padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer; font: 600 0.9375rem/1.2 var(--font-ui); color: var(--c-on-ink-soft); background: var(--c-ground-3); border: 1px solid var(--c-line-ink); transition: color var(--dur-fast), border-color var(--dur-fast); }
.kinds__tab:hover { color: var(--c-on-ink); border-color: var(--c-line-ink-strong); }
.kinds__tab[aria-selected="true"] { color: var(--c-on-ink); border-color: var(--c-brand); }
.kinds__fill { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-brand); }
.kinds__tab[aria-selected="false"] .kinds__fill { width: 0; }
.kinds__stage { position: relative; aspect-ratio: 16 / 8.2; border-radius: var(--radius-l); overflow: clip; box-shadow: var(--shadow-l); background: var(--c-ground-3); }
.kinds__panel { position: absolute; inset: 0; }
.kinds__panel[hidden] { display: none; }
.kinds__photo { position: absolute; inset: 0; overflow: clip; }
.kinds__photo .fill { object-position: var(--focus, 50% 40%); }
.kinds__photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(13 27 42 / 0.55), transparent 45%); }
.kinds__card { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: grid; gap: 0.5rem; justify-items: start; width: min(24rem, calc(100% - 2rem)); box-sizing: border-box; padding: 1.25rem 1.35rem; }
.kinds__name { font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.kinds__fields { font: 600 0.875rem/1.4 var(--font-ui); color: var(--c-brand-on-ink); }
.kinds__means { color: var(--c-on-ink); }
.kinds__go { margin-top: var(--space-2); }
.stop--tabs { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.kinds__more { font-size: 1.0625rem; color: var(--c-on-ink-soft); text-align: center; text-wrap: balance; }
.kinds__more .flag { display: inline-block; vertical-align: middle; width: 1.6rem; height: 0.6rem; margin-right: 0.5rem; }
@media (max-width: 759px) {
  .kinds__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .kinds__tab { flex: none; }
  .kinds__stage { aspect-ratio: auto; min-height: 34rem; }
  .kinds__photo { bottom: auto; height: 62%; }
  .kinds__card { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
}

/* ---------- Three weeks, the signature, on the designed ground ---------- */
.who-weeks__stage { position: relative; max-width: 1120px; margin-inline: auto; }
.who-stop { top: -3.25rem; right: 0; }

/* ---------- Everyone else: the chat over the auto shop ---------- */
.who-anyway__frame { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius-l); overflow: clip; box-shadow: var(--shadow-l); }
.who-anyway__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(13 27 42 / 0.55), transparent 45%); }
.who-anyway__frame .fill { object-position: 60% 30%; }
.who-anyway__chat { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 1; }
@media (max-width: 759px) {
  /* the chat stays on its photo: a tall frame, the owner's face at its top, the chat over its lower part */
  .who-anyway__frame { aspect-ratio: auto; height: 42rem; }
  .who-anyway__frame .fill { object-position: 62% 12%; }
  .who-anyway__frame::after { background: linear-gradient(0deg, rgb(13 27 42 / 0.55), transparent 50%); }
  .who-anyway__chat { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
}
