/* 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; }

/* Headline line heights. All-caps Barlow has no descenders, so 120% left visible gaps between lines.
   Big headlines stack tight; small ones keep a little more room. The 112px/72px display titles
   (home hero, Freedom 2026, apply) were already set near 95% and are unchanged. */
@media (min-width: 761px) {
  .h1:not(.hero__title), .bhero__title { line-height: 1.02; }                       /* 64px */
  .h2:not(.freedom__title):not(.apply__title) { line-height: 1.05; }                /* 52px */
  .event__title { line-height: 1.05; }                               /* 40px */
  .tier__name, .tier__price, .con-info__title { line-height: 1.1; }  /* 40px */
  .venue__title, .logos__title { line-height: 1.1; }                 /* 30px */
  .h5, .resource__title, .apply-form__title { line-height: 1.15; }   /* 24px */
}
@media (max-width: 760px) {
  .h1:not(.hero__title) { line-height: 1.08; }
  .h2, .freedom__title, .apply__title, .voices__title, .tier__name, .tier__price, .con-info__title { line-height: 1.1; }
  .h5, .event__title, .resource__title, .apply-form__title, .logos__title { line-height: 1.15; }
}
