/**
 * App shell: sidebar outside the content window. Marketing visuals stay in landing CSS;
 * this file adjusts width math, full-bleed hero art, grid/gradient, and content max-width.
 */
html.le-has-sidebar body.product-page--lukisan-emas-test {
  --marketing-content-max: 1280px;
  --marketing-content-x: clamp(1rem, 3vw, 1.75rem);
}

@media (min-width: 992px) {
  html.le-has-sidebar {
    --le-app-sidebar-w: var(--sidebar-width-expanded, 240px);
    --le-app-content-w: calc(100vw - var(--le-app-sidebar-w, 240px));
  }

  html.le-has-sidebar body.sidebar-collapsed {
    --le-app-sidebar-w: var(--sidebar-width-collapsed, 72px);
    --le-app-content-w: calc(100vw - var(--le-app-sidebar-w, 72px));
  }

  html.le-has-sidebar body {
    box-sizing: border-box;
    padding-left: var(--le-app-sidebar-w) !important;
    overflow-x: clip;
  }

  html.le-has-sidebar body.marketing-top-nav {
    padding-left: var(--le-app-sidebar-w) !important;
  }

  html.le-has-sidebar .marketing-topnav {
    left: var(--le-app-sidebar-w);
    right: 0;
    width: auto;
  }

  html.le-has-sidebar .hero,
  html.le-has-sidebar .home-hero-photo,
  html.le-has-sidebar .le-test-page,
  html.le-has-sidebar main.le-test-page,
  html.le-has-sidebar .main-content,
  html.le-has-sidebar .product-page-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  html.le-has-sidebar body.product-page--app .hero {
    overflow: visible;
  }

  html.le-has-sidebar body.home-page .hero,
  html.le-has-sidebar body.product-page--lukisan-emas-test .hero {
    --hero-tv-layout-w: min(var(--le-app-content-w), var(--marketing-content-max, 1280px));
    --hero-tv-natural-h: calc(
      var(--hero-tv-layout-w) * var(--hero-tv-aspect-h, 682) / var(--hero-tv-aspect-w, 1024)
    );
  }

  /* —— LE Test hero in app: edge-to-edge TV + grid/gradient under copy —— */
  html.le-has-sidebar body.product-page--lukisan-emas-test .hero {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test.home-page .hero:not(.hero--ambient) .hero-chart-bg,
  html.le-has-sidebar body.product-page--lukisan-emas-test.home-page .hero:not(.hero--ambient) .hero-bubbles {
    display: block !important;
    left: 0;
    right: 0;
    top: 38%;
    bottom: 0;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-bleed {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-bleed > .container.hero-tv-shell {
    max-width: none;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-shell {
    container-type: inline-size;
    container-name: hero-tv;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-shell .hero-tv-hook {
    width: 100%;
    max-width: none;
    margin-top: 0;
    height: calc(100cqw * var(--hero-tv-aspect-h, 682) / var(--hero-tv-aspect-w, 1024) * 0.74);
    max-height: none;
    overflow: hidden;
    border-radius: 0;
  }

  @supports not (width: 100cqw) {
    html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-shell .hero-tv-hook {
      height: calc(var(--hero-tv-natural-h) * 0.74);
    }
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-hook__img {
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: top center;
    transform: translateY(-8%);
  }

  /* No side letterbox — only fade into grid below */
  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-tv-hook__fade {
    background: linear-gradient(
      to top,
      #0b0b0b 0%,
      rgba(11, 11, 11, 0.88) 10%,
      rgba(11, 11, 11, 0.58) 20%,
      rgba(11, 11, 11, 0.32) 30%,
      rgba(11, 11, 11, 0.12) 38%,
      transparent 46%
    );
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero > .container {
    max-width: min(var(--marketing-content-max, 1280px), 100%);
    padding-left: max(var(--marketing-content-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--marketing-content-x), env(safe-area-inset-right, 0px));
    margin-left: auto;
    margin-right: auto;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .hero-title-line:first-child {
    white-space: normal;
    text-wrap: balance;
  }

  /* Copy + sections use marketing max-width; hero stays full content-column width */
  html.le-has-sidebar body.product-page--lukisan-emas-test .le-test-section__inner,
  html.le-has-sidebar body.product-page--lukisan-emas-test .le-test-section__inner--wide {
    max-width: min(var(--marketing-content-max, 1280px), 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991.98px) {
  html.le-has-sidebar body.product-page--lukisan-emas-test .home-hero-photo {
    padding-top: calc(var(--mobile-header-row1-h, 60px) + 4px);
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .home-hero-photo__frame {
    border-radius: 0;
  }

  html.le-has-sidebar body.product-page--lukisan-emas-test .home-hero-photo__img {
    width: 100%;
    object-fit: cover;
    transform: scale(1.22);
    transform-origin: 50% 22%;
    object-position: center 16%;
  }
}
