/* HSF layout system: one fluid desktop container.
   Loaded after each page's own CSS (via the hsf-site-styles section), so these rules take priority.
   Content width: 1280px at 1440 viewport, 1360px at 1600, 1440px at 1920, growing smoothly between.
   Below ~1330px the existing 24px gutter takes over as before. Backgrounds and photos stay full-bleed. */
:root {
  --container: clamp(1280px, min(50vw + 560px, 25vw + 960px), 1440px);
  --wide: var(--container);                       /* the "wide" container now lines up with everything else */
  --container-text: min(1200px, var(--container)); /* for long-form text sections */
}

/* Layout fixes for desktop only; tablet and mobile keep each page's own rules. */
@media (min-width: 1025px) {
  /* Home: speaker row and partner logos sit inside the container instead of running to the screen edges */
  .ftabs__panel--speakers { width: min(var(--container), 100% - 2 * var(--gutter)); }
  .speakers { width: auto; flex: 1 1 0; min-width: 0; }
  .logos { width: min(var(--container), 100% - 2 * var(--gutter)); }
  .logos__slider { width: 100%; }
  .logos__viewport { flex: 1 1 0; min-width: 0; }

  /* Home: cards and the about section flex to the container instead of assuming 1320px */
  .benefits__cards { width: 100%; }
  .about__copy { width: auto; flex: 1 1 0; min-width: 0; }
  .about__collage { width: 48%; flex: none; }

  /* Member Benefits: three tiers and three steps share the row instead of fixed 430px cards */
  .tiers__grid, .system__cards { gap: 24px; }
  .tier, .step { width: auto; flex: 1 1 0; min-width: 0; }
  .tier__head { white-space: normal; }
  .step__title { height: auto; white-space: normal; }
}

/* Text-heavy pages can opt in to the narrower reading width */
.container-text { width: min(var(--container-text), 100% - 2 * var(--gutter)); margin-inline: auto; }
