/*
 * GEXYRAL Unified Inner Hero Layout Contract V2 / HERO-B03 FINAL
 * Original development by GEXYRAL / 杰泽尔科技.
 *
 * This file owns shared inner-Hero geometry only.
 * Heading wrapping/line filling is owned exclusively by gexyral-global-hero-title-flow.css.
 */

@media (min-width:981px){
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-inner-hero-content{
    display:block!important;
    width:min(var(--gexyral-inner-max),calc(100% - 72px))!important;
    max-width:var(--gexyral-inner-max)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    direction:ltr!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-inner-breadcrumb{
    width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;justify-content:flex-start!important;text-align:left!important;transform:none!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-stage.is-banner-stage{
    display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;left:auto!important;right:auto!important;transform:none!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-copy{
    display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important;padding:8px 0 4px!important;justify-self:start!important;transform:none!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-copy>p{
    width:100%!important;max-width:720px!important;margin-left:0!important;margin-right:0!important;text-align:left!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-inner-hero-actions{justify-content:flex-start!important;margin-left:0!important;margin-right:0!important}
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-capability-rail{
    width:min(66%,900px)!important;max-width:900px!important;margin-left:0!important;margin-right:auto!important;transform:none!important;
  }
}

@media (min-width:981px) and (max-width:1180px){
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-capability-rail{width:min(70%,780px)!important;max-width:780px!important}
}

@media (min-width:1600px){
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-capability-rail{width:min(68%,940px)!important;max-width:940px!important}
}

@media (max-width:980px){
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-inner-hero-content,
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-stage,
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-copy,
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-capability-rail{
    left:auto!important;right:auto!important;transform:none!important;direction:ltr!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-copy{
    width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-system-copy>p{
    width:100%!important;max-width:720px!important;margin-left:0!important;margin-right:0!important;
  }
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-inner-hero-actions{justify-content:flex-start!important}
  .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1[data-hero-system="v1"] .gexyral-hero-capability-rail{
    width:100%!important;max-width:820px!important;margin-left:0!important;margin-right:auto!important;
  }
}

/* Case list/detail descriptions use the full Hero copy axis and browser-native wrapping. */
body[data-page-type="case_hub"] .gexyral-inner-hero.is-hero-system-v1.is-hero-case-v1[data-hero-system="v1"] .gexyral-hero-system-copy>p,
body[data-page-type="case_detail"] .gexyral-inner-hero.is-hero-system-v1.is-hero-case-v1[data-hero-system="v1"] .gexyral-hero-system-copy>p{
  width:100%!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}

/* Resource detail keeps its paragraph reading measure while the title uses the full Hero axis. */
body[data-page-type="resource_detail"] .gexyral-inner-hero.is-hero-system-v1.has-hero-banner-v1.has-resource-cover-hero-v1[data-hero-system="v1"] .gexyral-hero-system-copy>p{
  width:100%!important;max-width:760px!important;
}

/* Non-system content Hero copy containers also expose the full title axis. */
.gexyral-inner-hero:not(.is-hero-system-v1) .gexyral-inner-hero-content,
body[data-page-type="resource_hub"] .gexyral-inner-hero-content,
body[data-page-type="publication_detail"] .gexyral-inner-hero-content{min-width:0}
