/* Page entrances follow the real theme header, including its responsive gutters. */
body.shirune-aligned-hero {
  --shirune-hero-gutters: 96px;
}
@media (max-width: 1100px) {
  body.shirune-aligned-hero { --shirune-hero-gutters: 64px; }
}
@media (max-width: 760px) {
  body.shirune-aligned-hero { --shirune-hero-gutters: 44px; }
}

body.shirune-aligned-hero :is(
  .sg-site .sg-hero > .sg-wrap,
  .sg-site .sg-test-hero > .sg-wrap,
  .si-main > .si-hero > .si-wrap,
  .gs-site.gs-series-page > .gs-breadcrumb,
  .gs-site.gs-series-page .gs-article > .gs-ad-band > .gs-container,
  .gs-site.gs-series-page .gs-article > .gs-comparison-hero > .gs-container,
  .gs-site.gs-series-page .gs-article > .gs-detail-hero > .gs-container
) {
  width: calc(100% - var(--shirune-hero-gutters)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

/* Ordinary articles/pages use the same heading edge; decorative waves stay full width. */
body.shirune-aligned-hero .page-title {
  padding-inline: 0 !important;
  text-align: left !important;
}
body.shirune-aligned-hero .page-title > :is(
  h1, .section-kicker, .article-meta, .shirune-breadcrumb-wrap, p
) {
  box-sizing: border-box;
  width: calc(100% - var(--shirune-hero-gutters)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  text-align: left !important;
}

/* Articles share the entrance frame; ordinary pages retain a 770px reading width. */
body.shirune-aligned-hero .article-wrap {
  width: calc(100% - var(--shirune-hero-gutters)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}
body.shirune-aligned-hero .article-wrap > :not(.breadcrumb) {
  width: 100%;
  margin-inline: auto !important;
}
body.shirune-aligned-hero:not(.single) .article-wrap > :not(.breadcrumb) {
  max-width: 770px !important;
}
body.shirune-aligned-hero .article-wrap > .breadcrumb {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
  text-align: left;
}
@media (min-width: 761px) and (max-width: 1100px) {
  body.shirune-aligned-hero:not(.single) .article-wrap > :not(.breadcrumb) {
    width: calc(100% - 32px);
  }
}
