/* Shared tuning for the content-heavy Crays pages: closer to the investor portal scale. */

.ecosystem-hero {
  min-height: clamp(640px, 78vh, 760px);
  padding: 96px 0 82px;
}

.association-hero,
.resources-hero {
  min-height: clamp(640px, 78vh, 760px);
  padding: 98px 0 82px;
}

.upreit-hero {
  min-height: calc(100svh - 82px);
  padding: 46px 0 28px;
}

.ecosystem-hero-layout,
.association-hero-layout,
.resources-hero-layout,
.upreit-hero-layout {
  gap: clamp(30px, 3.4vw, 44px);
  align-items: center;
}

.upreit-hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
  gap: 32px;
  align-items: start;
}

.ecosystem-display,
.association-display,
.resources-display,
.upreit-display {
  max-width: 760px;
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.upreit-display {
  max-width: 100%;
  font-size: clamp(42px, 3.8vw, 58px);
  line-height: 0.98;
}

.resources-display {
  max-width: 780px;
}

.ecosystem-lead,
.association-lead,
.resources-lead,
.resources-copy,
.resources-card-copy,
.resources-section-intro,
.upreit-lead,
.upreit-section-copy {
  font-size: 16px;
  line-height: 1.64;
}

.ecosystem-lead,
.association-lead,
.upreit-lead {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.55;
}

.resources-hero-divider {
  margin: 22px 0 24px;
}

.ecosystem-section,
.association-section,
.resources-section,
.upreit-section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.ecosystem-section-title,
.association-section-copy h2,
.association-section-head h2,
.association-brand-card h2,
.association-vision-band h2,
.association-manifesto-quote p,
.resources-section-title,
.resources-cta-title,
.upreit-section-title,
.upreit-cta-title,
.ecosystem-cta-title {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.ecosystem-audience-card h2,
.association-hero-panel h2,
.resources-card-title,
.resources-video-title,
.upreit-card-title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.14;
  letter-spacing: 0;
}

.ecosystem-audience-card,
.association-hero-panel,
.resources-card,
.upreit-hero-card {
  padding: 20px;
}

.upreit-hero-card-media {
  margin-top: 14px;
}

.upreit-hero-card-media img {
  height: 84px;
}

.ecosystem-aside-visual {
  min-height: 250px;
}

.association-hero-stat-grid article {
  min-height: 112px;
}

.association-hero-stat-grid strong {
  font-size: 15px;
  line-height: 1.32;
}

.upreit-hero-metrics {
  gap: 10px;
  margin-top: 14px;
}

.upreit-hero-metric {
  padding: 10px 12px;
  border-radius: 13px;
}

.upreit-hero-metric-label {
  margin-bottom: 5px;
  font-size: 9.5px;
}

.upreit-hero-metric strong {
  font-size: 12.5px;
  line-height: 1.28;
}

.upreit-hero-flow {
  gap: 8px;
  margin-top: 13px;
}

.upreit-hero-flow-step {
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.28;
}

.upreit-hero-flow-arrow {
  height: 8px;
}

.upreit-card-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.38;
}

.upreit-hero-actions {
  margin-top: 22px;
}

.upreit-hero-chips {
  gap: 8px;
  margin-top: 14px;
}

.upreit-hero-chips span {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.resources-hero-copy {
  max-width: 720px;
}

.resources-card--primary {
  max-width: 590px;
}

.upreit-section-head--wide {
  max-width: 980px;
}

/* Ecosystem hero: keep the full first impression inside one desktop/notebook screen. */
.ecosystem-hero {
  min-height: calc(100vh - 82px);
  padding: clamp(54px, 6vh, 76px) 0 54px;
}

.ecosystem-hero-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.82fr);
  align-items: center;
}

.ecosystem-display {
  max-width: 760px;
  font-size: clamp(56px, 4.8vw, 78px);
  line-height: 0.96;
}

.ecosystem-lead {
  max-width: 660px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.58;
}

.ecosystem-anchor-row {
  gap: 10px;
  margin-top: 24px;
}

.ecosystem-anchor-chip {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

.ecosystem-hero-aside {
  gap: 18px;
}

.ecosystem-aside-visual {
  height: clamp(220px, 29vh, 300px);
  min-height: 0;
}

.ecosystem-audience-card h2 {
  font-size: clamp(23px, 1.95vw, 28px);
}

.ecosystem-audience-grid {
  gap: 10px;
  margin-top: 16px;
}

.ecosystem-audience-grid a {
  padding: 13px;
}

.ecosystem-audience-grid strong {
  font-size: 14px;
  line-height: 1.28;
}

/* Return Based Investors tabs: make each image column match its copy height. */
.ecosystem-tab-panel {
  align-items: stretch;
}

.ecosystem-panel-media {
  align-self: stretch;
  min-height: 100%;
}

.ecosystem-panel-media img {
  display: block;
  height: 100%;
  min-height: 0;
}

.ecosystem-panel-media--stack {
  align-content: stretch;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.ecosystem-panel-media--stack img {
  min-height: 0;
}

/* Ecosystem detail sections: keep image and copy aligned without oversized blocks. */
#globaltravelers .ecosystem-feature {
  align-items: start;
  gap: clamp(32px, 3.6vw, 44px);
}

#globaltravelers .ecosystem-feature-copy {
  align-content: start;
  gap: 14px;
}

#globaltravelers .ecosystem-section-kicker {
  margin-top: 0;
}

#globaltravelers .ecosystem-section-title {
  max-width: 11.5ch;
  font-size: clamp(32px, 2.9vw, 42px);
  line-height: 1.04;
}

#globaltravelers .ecosystem-subtitle {
  max-width: 31ch;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
}

#globaltravelers .ecosystem-list {
  max-width: 58ch;
  gap: 8px;
  font-size: 15px;
  line-height: 1.52;
}

#globaltravelers .ecosystem-feature-media img {
  min-height: clamp(470px, 44vw, 540px);
}

@media (max-width: 1180px) {
  .ecosystem-hero,
  .association-hero,
  .resources-hero,
  .upreit-hero {
    min-height: auto;
    padding: 104px 0 76px;
  }

  .ecosystem-display,
  .association-display,
  .resources-display,
  .upreit-display {
    max-width: 13ch;
    font-size: clamp(42px, 7vw, 62px);
  }

  .resources-display {
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ecosystem-hero,
  .association-hero,
  .resources-hero,
  .upreit-hero {
    padding: 92px 0 64px;
  }

  .ecosystem-shell,
  .association-shell,
  .resources-shell,
  .upreit-shell {
    width: calc(100vw - 28px);
    margin-right: auto;
    margin-left: auto;
  }

  .ecosystem-hero-layout,
  .association-hero-layout,
  .resources-hero-layout,
  .upreit-hero-layout,
  .ecosystem-hero-copy,
  .association-hero-copy,
  .resources-hero-copy,
  .upreit-hero-copy,
  .ecosystem-hero-aside,
  .association-hero-panel,
  .resources-hero-stack,
  .upreit-hero-card {
    min-width: 0;
    max-width: 100%;
  }

  .ecosystem-hero-layout,
  .association-hero-layout,
  .resources-hero-layout,
  .upreit-hero-layout {
    display: block;
  }

  .ecosystem-eyebrow,
  .association-eyebrow,
  .resources-eyebrow,
  .upreit-eyebrow,
  .ecosystem-lead,
  .association-lead,
  .resources-lead,
  .resources-copy,
  .resources-card-copy,
  .resources-section-intro,
  .upreit-lead,
  .upreit-section-copy {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ecosystem-eyebrow,
  .association-eyebrow,
  .resources-eyebrow,
  .upreit-eyebrow {
    line-height: 1.45;
  }

  .ecosystem-display,
  .association-display,
  .resources-display,
  .upreit-display {
    max-width: 100%;
    font-size: clamp(32px, 9.5vw, 42px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .resources-display {
    max-width: 100%;
  }

  .ecosystem-lead,
  .association-lead,
  .resources-lead,
  .resources-copy,
  .resources-card-copy,
  .resources-section-intro,
  .upreit-lead,
  .upreit-section-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .ecosystem-section,
  .association-section,
  .resources-section,
  .upreit-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .ecosystem-anchor-row,
  .upreit-hero-chips,
  .association-hero-actions,
  .resources-download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ecosystem-anchor-chip,
  .upreit-hero-chips span,
  .association-primary-button,
  .association-secondary-button,
  .resources-pill-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ecosystem-section-title,
  .association-section-copy h2,
  .association-section-head h2,
  .association-brand-card h2,
  .association-vision-band h2,
  .association-manifesto-quote p,
  .resources-section-title,
  .resources-card-title,
  .resources-video-title,
  .resources-cta-title,
  .upreit-card-title,
  .upreit-section-title,
  .upreit-cta-title,
  .ecosystem-cta-title {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.12;
  }
}

.association-section {
  scroll-margin-top: 96px;
}

@media (min-width: 921px) {
  .association-hero {
    min-height: clamp(660px, 76vh, 760px);
    padding: 82px 0 70px;
  }

  .association-display {
    max-width: 720px;
    font-size: clamp(42px, 4.9vw, 72px);
    line-height: 1;
  }

  .association-hero-panel {
    padding: 24px;
  }

  .association-hero-panel h2 {
    font-size: clamp(20px, 1.55vw, 24px);
    line-height: 1.18;
  }

  .association-section-copy h2,
  .association-section-head h2,
  .association-brand-card h2,
  .association-vision-band h2,
  .association-manifesto-quote p {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
  }
}

@media (max-width: 920px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .ecosystem-shell,
  .association-shell,
  .resources-shell,
  .upreit-shell {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .ecosystem-hero-layout,
  .association-hero-layout,
  .resources-hero-layout,
  .upreit-hero-layout,
  .ecosystem-hero-copy,
  .association-hero-copy,
  .resources-hero-copy,
  .upreit-hero-copy,
  .ecosystem-hero-aside,
  .association-hero-panel,
  .resources-hero-stack,
  .resources-card,
  .resources-surface,
  .resources-faq-shell,
  .resources-cta-card,
  .upreit-hero-card,
  .upreit-facts-surface,
  .upreit-advisory-surface,
  .upreit-structure-panel,
  .upreit-structure-diagram {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .ecosystem-display,
  .association-display,
  .resources-display,
  .upreit-display {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(31px, 8.2vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .resources-display {
    max-width: 100% !important;
  }

  .upreit-display {
    max-width: 100% !important;
  }

  .ecosystem-hero-copy,
  .association-hero-copy,
  .resources-hero-copy,
  .upreit-hero-copy {
    padding-right: clamp(18px, 4.5vw, 28px) !important;
    padding-left: clamp(18px, 4.5vw, 28px) !important;
  }

  .ecosystem-eyebrow,
  .association-eyebrow,
  .resources-eyebrow,
  .upreit-eyebrow,
  .ecosystem-lead,
  .association-lead,
  .resources-lead,
  .resources-copy,
  .resources-card-copy,
  .resources-section-intro,
  .upreit-lead,
  .upreit-section-copy {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .association-hero-panel,
  .resources-card,
  .resources-surface,
  .resources-faq-shell,
  .resources-cta-card,
  .upreit-hero-card {
    padding-right: clamp(18px, 6vw, 26px) !important;
    padding-left: clamp(18px, 6vw, 26px) !important;
  }

  .association-hero-visuals,
  .association-hero-stat-grid,
  .resources-download-actions,
  .resources-hero-stack,
  .upreit-hero-actions,
  .upreit-hero-chips,
  .upreit-hero-metrics {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .association-primary-button,
  .association-secondary-button,
  .resources-pill-button,
  .upreit-primary-button,
  .upreit-secondary-button {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  img,
  video {
    max-width: 100%;
  }
}

/* Final desktop header fit: keep the first impression centered in one screen. */
@media (min-width: 1181px) {
  .upreit-hero,
  .resources-hero {
    min-height: calc(100svh - 82px);
    align-items: center;
  }

  .upreit-hero {
    padding: clamp(28px, 4vh, 46px) 0;
  }

  .resources-hero {
    padding: clamp(42px, 5vh, 64px) 0;
  }

  .upreit-hero-layout {
    width: min(1500px, calc(100% - 80px));
    grid-template-columns: minmax(0, 1fr) minmax(560px, 600px);
    gap: clamp(36px, 3vw, 58px);
    align-items: center;
  }

  .resources-hero-layout {
    align-items: center;
  }

  .upreit-hero-copy,
  .resources-hero-copy {
    align-self: center;
  }

  .upreit-hero-card {
    width: 100%;
    padding: clamp(26px, 1.8vw, 32px);
  }

  .upreit-card-title {
    font-size: clamp(30px, 2.15vw, 36px);
    line-height: 1.05;
  }

  .upreit-hero-card-media {
    gap: 12px;
    margin-top: 18px;
  }

  .upreit-hero-card-media img {
    height: clamp(106px, 7.2vw, 124px);
  }

  .upreit-hero-metrics {
    gap: 12px;
    margin-top: 18px;
  }

  .upreit-hero-metric {
    padding: 15px 16px;
  }

  .upreit-hero-metric strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .upreit-hero-flow-step {
    padding: 13px 16px;
    font-size: 13.25px;
    line-height: 1.34;
  }

  .upreit-card-note {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (min-width: 1181px) and (max-height: 850px) {
  .upreit-hero {
    padding: 20px 0;
  }

  .upreit-hero-layout {
    width: min(1400px, calc(100% - 60px));
    grid-template-columns: minmax(0, 1fr) minmax(520px, 560px);
    gap: 32px;
  }

  .upreit-display {
    font-size: clamp(42px, 3.6vw, 54px);
    line-height: 0.98;
  }

  .upreit-lead {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.48;
  }

  .upreit-hero-actions {
    margin-top: 16px;
  }

  .upreit-hero-chips {
    gap: 6px;
    margin-top: 10px;
  }

  .upreit-hero-chips span {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11.5px;
  }

  .upreit-hero-card {
    padding: 22px;
  }

  .upreit-card-title {
    font-size: 28px;
    line-height: 1.06;
  }

  .upreit-hero-card-media {
    gap: 10px;
    margin-top: 13px;
  }

  .upreit-hero-card-media img {
    height: 86px;
  }

  .upreit-hero-metrics {
    gap: 8px;
    margin-top: 12px;
  }

  .upreit-hero-metric {
    padding: 10px 12px;
  }

  .upreit-hero-metric strong {
    font-size: 12.75px;
    line-height: 1.28;
  }

  .upreit-hero-flow {
    gap: 6px;
    margin-top: 10px;
  }

  .upreit-hero-flow-step {
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.28;
  }

  .upreit-card-note {
    margin-top: 9px;
    font-size: 11.5px;
    line-height: 1.38;
  }
}
