/* Public CMS surface wiring for homepage/services/about blocks. */

html body #root [data-ginko-cms-product-grid="true"] .ginko-cms-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

html body #root .ginko-cms-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: -1px;
  line-height: 0;
}

html body #root .ginko-cms-product-media img,
html body #root .ginko-cms-product-media video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

html body #root .ginko-cms-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 18% 88%, rgba(254, 223, 64, 0.24), transparent 24%);
  pointer-events: none;
}

html body #root .ginko-cms-product-copy {
  position: relative;
  z-index: 1;
  border-top: 0 !important;
}

html body #root .ginko-cms-product-open {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 20px !important;
  padding: 0 18px !important;
  border: 3px solid #050505 !important;
  border-radius: 14px !important;
  background: #fedf40 !important;
  box-shadow: 0 4px 0 #050505 !important;
  color: #050505 !important;
  font-family: var(--ginko-font-body, "Geist", system-ui, sans-serif) !important;
  font-size: 0.875rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease !important;
}

html body #root .ginko-cms-product-open:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 0 #050505 !important;
}

html body #root .ginko-cms-product-open:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #050505 !important;
}

html body #root .ginko-cms-product-open svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  stroke-width: 3.5 !important;
}

html body #root .ginko-cms-proof-card .ginko-proof-shot,
html body #root .ginko-cms-proof-card .services-proof-clean-shot {
  background: #101113 !important;
}

html body #root .ginko-cms-proof-card .ginko-proof-shot > img,
html body #root .ginko-cms-proof-card .ginko-proof-shot > video,
html body #root .ginko-cms-proof-card .services-proof-clean-shot > img,
html body #root .ginko-cms-proof-card .services-proof-clean-shot > video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

html body #root .ginko-cms-proof-card .ginko-proof-shot::before,
html body #root .ginko-cms-proof-card .services-proof-clean-shot::before {
  z-index: 2;
  background-image:
    linear-gradient(rgba(247, 216, 74, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 216, 74, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34)) !important;
}

html body #root .ginko-cms-proof-card .ginko-proof-shot::after,
html body #root .ginko-cms-proof-card .services-proof-clean-shot::after {
  z-index: 2;
}

html body #root .ginko-cms-proof-card .ginko-proof-play,
html body #root .ginko-cms-proof-card .services-proof-clean-play,
html body #root .ginko-cms-proof-card .ginko-proof-detail,
html body #root .ginko-cms-proof-card .services-proof-clean-body {
  z-index: 4 !important;
}

html body #root .ginko-cms-proof-empty,
html body #root .ginko-cms-surface-empty {
  display: grid;
  min-height: 220px;
  width: 100%;
  place-items: center;
  border: 3px solid #050505;
  border-radius: 22px;
  background: #202123;
  box-shadow: 0 5px 0 #050505;
  color: #fff;
  padding: 22px;
  text-align: center;
  font-weight: 900;
}

html body #root .ginko-cms-surface-empty {
  grid-column: 1 / -1;
}

html body #root .ginko-cms-surface-empty h3 {
  margin: 0;
  color: #fff;
  font-family: var(--ginko-font-display, "Gasoek One", sans-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
}

html body #root .ginko-cms-surface-empty p {
  max-width: 520px;
  margin: 12px auto 0;
  color: #b9c1cf;
  font-size: 0.95rem;
  line-height: 1.35;
}

html body #root .about-proof-switcher [data-ginko-proof-kind] svg {
  width: 17px;
  height: 17px;
}

html body #root .about-proof-tile[data-ginko-cms-about-tile] .about-proof-media img,
html body #root .about-proof-tile[data-ginko-cms-about-tile] .about-proof-media video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

html body #root .about-proof-tile[data-ginko-cms-about-tile] .about-proof-generated svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 760px) {
  html,
  html body {
    min-height: 100dvh;
    background: #18191b !important;
  }

  html.ginko-route-home,
  html.ginko-route-home body,
  html.ginko-route-services,
  html.ginko-route-services body {
    background:
      linear-gradient(180deg, #fedf40 0, #fedf40 42vh, #18191b 42vh, #18191b 100%) fixed !important;
  }

  html body #root > div {
    min-height: 100dvh;
  }

  html.ginko-route-home body #root .ginko-home-main > section:first-child,
  html.ginko-route-services body #root .services-yellow-hero {
    margin-top: calc(-1 * env(safe-area-inset-top, 0px)) !important;
    padding-top: calc(92px + env(safe-area-inset-top, 0px)) !important;
  }

  html body #root footer,
  html body #root .ginko-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
  }

  html body #root .ginko-cms-proof-empty {
    min-height: 180px;
    flex: 0 0 min(322px, 82vw);
  }
}
