/* Keep live banner copy independent from the artwork and tied to its content frame. */
:root {
  --konic-banner-copy-width: min(1440px, calc(100vw - 64px));
  --konic-banner-card-inset: 32px;
}
/* Full-width Home banners follow the same outer column as the page content. */
html[data-konic-context="home"] body .subhero .subhero-content {
  box-sizing: border-box;
  width: var(--konic-banner-copy-width) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
/* Banners already inside a rounded content card keep a consistent inner margin. */
html[data-konic-context="home"] body.konic-home-secondary .subhero.konic-editorial-hero .subhero-content {
  width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: var(--konic-banner-card-inset) !important;
}
html[data-konic-context="office"] .x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-copy,
html[data-konic-context="office"] .x-route-active :is(.x-company-hero, .x-support-hero) > article {
  padding-inline-start: var(--konic-banner-card-inset) !important;
}
html[data-konic-context="office"] .hero-grid .hero-panel .hero-content,
html[data-konic-context="office"] .hero-grid .hero-panel .hero-proof {
  left: var(--konic-banner-card-inset) !important;
}
html[data-konic-context="home"] .subhero .subhero-copy,
html[data-konic-context="office"] .x-route-active :is(.x-company-hero, .x-support-hero) > article,
html[data-konic-context="office"] .x-route-active .x-office-catalog-hero .x-hero-copy {
  text-align: left;
}
@media (max-width: 960px) {
  html[data-konic-context="home"] body.konic-home-secondary .subhero.konic-news-hero .subhero-media {
    object-position: 70% center;
  }
}
@media (max-width: 720px) {
  html[data-konic-context="home"] body.konic-home-secondary .subhero.konic-news-hero .subhero-copy {
    max-width: 40% !important;
  }
}
@media (max-width: 340px) {
  html[data-konic-context="home"] body.konic-home-secondary .subhero.konic-news-hero .subhero-media {
    object-position: 71% center;
  }
  html[data-konic-context="home"] body.konic-home-secondary .subhero.konic-news-hero .subhero-copy {
    max-width: 36% !important;
  }
  html[data-konic-context="home"] body.konic-home-secondary .subhero.konic-news-hero .subhero-copy h1 {
    font-size: 24px !important;
  }
}
/* The legacy Smart Living landing page uses a separate split-hero structure. */
html[data-konic-context="home"] .smart-showcase .smart-copy {
  padding-inline-start: max(32px, calc((100vw - 1440px) / 2)) !important;
}
@media (max-width: 960px) {
  :root {
    --konic-banner-copy-width: calc(100vw - 48px);
    --konic-banner-card-inset: 12px;
  }
  html[data-konic-context="home"] .smart-showcase .smart-copy {
    padding-inline-start: 24px !important;
  }
}
@media (min-width: 961px) {
  /* Leave room for the longest live carousel heading without changing its type scale. */
  html[data-konic-context="office"] .hero-grid .hero-panel .hero-content {
    right: 32px !important;
    width: auto !important;
    max-width: 560px !important;
  }
  html[data-konic-context="office"] .hero-grid .hero-panel .hero-content > h1 {
    max-width: 100% !important;
  }
}
