/* Rinje Phase 37A — Advanced Public Website Theme, Hero Slider & Color Studio */

/* =========================
   Tenant public theme system
   ========================= */
body.public-marketing-body {
  background: var(--site-background, #f6f7f9);
  color: var(--site-text, #111827);
}

body.public-marketing-body .site-header {
  background: var(--site-header-bg, #fff);
  color: var(--site-text, #111827);
  border-bottom-color: rgba(15, 23, 42, .10);
}

body.public-marketing-body .site-header .header-inner,
body.public-marketing-body .site-header .nav-scroll {
  color: inherit;
}

body.public-marketing-body .site-header .search input,
body.public-marketing-body .landing-search input,
body.public-marketing-body .wide-search input,
body.public-marketing-body .public-cat-filter input {
  background: var(--site-surface, #fff);
  color: var(--site-text, #111827);
  border-color: rgba(15, 23, 42, .14);
}

body.public-marketing-body .site-header .search button,
body.public-marketing-body .btn.primary,
body.public-marketing-body .whatsapp,
body.public-marketing-body .whatsapp-product-btn {
  background: var(--site-button-bg, var(--site-primary, #e30613));
  color: var(--site-button-text, #fff);
  border-color: var(--site-button-bg, var(--site-primary, #e30613));
}

body.public-marketing-body .nav-scroll {
  background: var(--site-nav-bg, #fff);
}

body.public-marketing-body .nav-scroll a,
body.public-marketing-body .public-cat-link,
body.public-marketing-body .public-cat-children a {
  color: var(--site-nav-text, var(--site-text, #111827));
}

body.public-marketing-body .nav-scroll a:hover,
body.public-marketing-body .public-cat-link:hover {
  color: var(--site-primary, #e30613);
}

body.public-marketing-body .section,
body.public-marketing-body .public-catalogue-workspace {
  color: var(--site-text, #111827);
}

body.public-marketing-body .section-head h2,
body.public-marketing-body .section-head h3,
body.public-marketing-body .product-card h3,
body.public-marketing-body .category-card strong,
body.public-marketing-body .public-catalogue-sidebar h2 {
  color: var(--site-text, #111827);
}

body.public-marketing-body .section-head p,
body.public-marketing-body .product-card p,
body.public-marketing-body .sku,
body.public-marketing-body .category-card span,
body.public-marketing-body .public-catalogue-sidebar p,
body.public-marketing-body .public-cat-link small {
  color: var(--site-muted, #667085);
}

body.public-marketing-body .product-card,
body.public-marketing-body .category-card,
body.public-marketing-body .brand-card,
body.public-marketing-body .variation-search-card,
body.public-marketing-body .buyer-guide-card,
body.public-marketing-body .public-catalogue-sidebar,
body.public-marketing-body .share-menu-panel,
body.public-marketing-body .recently-viewed-rail,
body.public-marketing-body .hero-product-card {
  background: var(--site-surface, #fff);
  color: var(--site-text, #111827);
}

body.public-marketing-body .product-card,
body.public-marketing-body .category-card,
body.public-marketing-body .public-catalogue-sidebar,
body.public-marketing-body .hero-product-card {
  border-color: rgba(15, 23, 42, .10);
}

body.public-marketing-body .product-card .new,
body.public-marketing-body .badge,
body.public-marketing-body .eyebrow {
  color: var(--site-primary, #e30613);
}

body.public-marketing-body .product-img {
  background: #fff;
}

body.public-marketing-body .btn:not(.primary):not(.danger):not(.warning),
body.public-marketing-body .share-menu-trigger,
body.public-marketing-body .view-product-btn {
  border-color: rgba(15, 23, 42, .14);
}

body.public-marketing-body .share-menu-panel button,
body.public-marketing-body .share-menu-panel a {
  color: var(--site-text, #111827);
}

body.public-marketing-body .share-menu-panel button:hover,
body.public-marketing-body .share-menu-panel a:hover {
  color: var(--site-primary, #e30613);
}

body.public-marketing-body .site-footer,
body.public-marketing-body .site-footer-custom {
  background: var(--site-footer-bg, #111827);
  color: var(--site-footer-text, #fff);
}

body.public-marketing-body .site-footer a,
body.public-marketing-body .site-footer h3,
body.public-marketing-body .site-footer strong,
body.public-marketing-body .site-footer p,
body.public-marketing-body .site-footer span {
  color: var(--site-footer-text, #fff);
}

body.public-marketing-body .public-catalogue-sidebar.is-mobile-drawer {
  background: var(--site-surface, #fff);
  color: var(--site-text, #111827);
}

/* =========================
   Premium hero system
   ========================= */
body.public-marketing-body .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--site-hero-bg, #f8fafc);
  color: var(--site-hero-text, #111827);
  min-height: clamp(470px, 52vw, 690px);
}

body.public-marketing-body .hero.has-cover {
  background-image: var(--hero-cover);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.public-marketing-body .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--site-hero-overlay, #000);
  opacity: 0;
  pointer-events: none;
}

body.public-marketing-body .hero.theme-hero-layout-full-background::after,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay::after,
body.public-marketing-body .hero.theme-hero-layout-light-overlay::after {
  opacity: var(--site-hero-overlay-opacity, .35);
}

body.public-marketing-body .hero.theme-hero-layout-dark-overlay::after {
  background: #000;
}

body.public-marketing-body .hero.theme-hero-layout-light-overlay::after {
  background: #fff;
}

body.public-marketing-body .hero .hero-grid {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding-top: clamp(42px, 6vw, 82px);
  padding-bottom: clamp(42px, 6vw, 82px);
}

body.public-marketing-body .hero .hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  color: var(--site-hero-text, #111827);
}

body.public-marketing-body .hero .hero-copy h1,
body.public-marketing-body .hero .hero-copy p,
body.public-marketing-body .hero .hero-copy .eyebrow {
  color: inherit;
}

body.public-marketing-body .hero .hero-copy h1 {
  line-height: 1.02;
  letter-spacing: -.035em;
}

body.public-marketing-body .hero .hero-copy p {
  opacity: .88;
  max-width: 62ch;
}

body.public-marketing-body .hero.theme-hero-text-center .hero-copy {
  text-align: center;
  margin-inline: auto;
}

body.public-marketing-body .hero.theme-hero-text-right .hero-copy {
  text-align: right;
  margin-left: auto;
}

body.public-marketing-body .hero.theme-hero-text-center .hero-actions {
  justify-content: center;
}

body.public-marketing-body .hero.theme-hero-text-right .hero-actions {
  justify-content: flex-end;
}

body.public-marketing-body .site-hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: clamp(360px, 38vw, 520px);
  align-self: stretch;
  overflow: hidden;
  border-radius: 26px;
  background: var(--site-surface, #fff);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .17);
}

body.public-marketing-body .rinje-hero-slider,
body.public-marketing-body .rinje-hero-track,
body.public-marketing-body .site-hero-slide {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

body.public-marketing-body .rinje-hero-slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.public-marketing-body .rinje-hero-track {
  position: relative;
}

body.public-marketing-body .site-hero-slide {
  position: relative;
  overflow: hidden;
  background: var(--site-surface, #fff);
}

body.public-marketing-body .site-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-position: center;
  object-fit: cover;
}

body.public-marketing-body .hero.theme-hero-fit-cover .site-hero-slide img {
  object-fit: cover;
}

body.public-marketing-body .hero.theme-hero-fit-contain .site-hero-slide img {
  object-fit: contain;
  background: var(--site-surface, #fff);
}

body.public-marketing-body .hero.theme-hero-fit-full-width .site-hero-visual {
  min-height: clamp(260px, 31vw, 430px);
}

body.public-marketing-body .hero.theme-hero-fit-full-width .site-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.public-marketing-body .site-hero-slide-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  gap: 6px;
  max-width: min(520px, calc(100% - 48px));
  padding: 16px 18px;
  color: #fff;
  background: rgba(2, 6, 23, .70);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

body.public-marketing-body .site-hero-slide-copy strong {
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.08;
}

body.public-marketing-body .site-hero-slide-copy span {
  opacity: .9;
}

body.public-marketing-body .site-hero-slide-copy .hero-slide-cta {
  width: fit-content;
  margin-top: 4px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

/* Fade transition */
body.public-marketing-body .rinje-hero-slider.transition-fade .rinje-hero-track {
  height: 100%;
}

body.public-marketing-body .rinje-hero-slider.transition-fade .site-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

body.public-marketing-body .rinje-hero-slider.transition-fade .site-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

body.public-marketing-body .rinje-hero-slider.transition-fade .site-hero-slide:first-child {
  position: relative;
}

/* Slide transition */
body.public-marketing-body .rinje-hero-slider.transition-slide .rinje-hero-track {
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform .55s cubic-bezier(.2,.75,.25,1);
  will-change: transform;
}

body.public-marketing-body .rinje-hero-slider.transition-slide .site-hero-slide {
  flex: 0 0 100%;
}

body.public-marketing-body .rinje-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .91);
  color: #111827;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

body.public-marketing-body .rinje-hero-prev { left: 16px; }
body.public-marketing-body .rinje-hero-next { right: 16px; }

body.public-marketing-body .rinje-hero-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

body.public-marketing-body .rinje-hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

body.public-marketing-body .rinje-hero-dot.is-active {
  width: 28px;
  background: #fff;
}

/* Layout variants */
body.public-marketing-body .hero.theme-hero-layout-right-visual .hero-grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
}

body.public-marketing-body .hero.theme-hero-layout-contained-card .site-hero-visual {
  padding: 14px;
  background: var(--site-surface, #fff);
  border: 1px solid rgba(15, 23, 42, .10);
}

body.public-marketing-body .hero.theme-hero-layout-contained-card .rinje-hero-slider {
  border-radius: 18px;
}

body.public-marketing-body .hero.theme-hero-layout-full-width-banner .hero-grid {
  grid-template-columns: 1fr;
  align-content: center;
  padding-bottom: 34px;
}

body.public-marketing-body .hero.theme-hero-layout-full-width-banner .hero-copy {
  max-width: 920px;
}

body.public-marketing-body .hero.theme-hero-layout-full-width-banner .site-hero-visual {
  width: 100vw;
  max-width: none;
  min-height: clamp(260px, 32vw, 430px);
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  box-shadow: none;
}

body.public-marketing-body .hero.theme-hero-layout-full-background,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay,
body.public-marketing-body .hero.theme-hero-layout-light-overlay {
  min-height: clamp(520px, 58vw, 760px);
}

body.public-marketing-body .hero.theme-hero-layout-full-background .hero-grid,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .hero-grid,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .hero-grid {
  position: static;
  grid-template-columns: 1fr;
  align-content: center;
}

body.public-marketing-body .hero.theme-hero-layout-full-background .site-hero-visual,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .site-hero-visual,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.public-marketing-body .hero.theme-hero-layout-full-background .rinje-hero-slider,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .rinje-hero-slider,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .rinje-hero-slider,
body.public-marketing-body .hero.theme-hero-layout-full-background .site-hero-slide,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .site-hero-slide,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-slide {
  min-height: 100%;
}

body.public-marketing-body .hero.theme-hero-layout-full-background .hero-copy,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .hero-copy,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .hero-copy {
  max-width: 760px;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(2px);
}

body.public-marketing-body .hero.theme-hero-layout-full-background .site-hero-slide-copy,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .site-hero-slide-copy,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-slide-copy {
  left: auto;
  max-width: 380px;
}

body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-slide-copy {
  color: #111827;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(15, 23, 42, .10);
}

body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-slide-copy .hero-slide-cta {
  color: var(--site-primary, #e30613);
}

/* Keep single-product campaign visuals intact while allowing theme colors. */
body.public-marketing-body .hero-single-product .hero-product-card img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* =========================
   Theme Studio admin UI
   ========================= */
.site-setup-page .theme-studio-card {
  scroll-margin-top: 22px;
}

.site-setup-page .theme-preset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  background: #f8fafc;
}

.site-setup-page .theme-preset-row > div:first-child {
  display: grid;
  gap: 3px;
}

.site-setup-page .theme-preset-row span {
  color: #667085;
  font-size: 13px;
}

.site-setup-page .theme-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-setup-page .theme-studio-subtitle {
  margin: 24px 0 12px;
  font-size: 16px;
}

.site-setup-page .theme-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-setup-page .theme-color-field {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 13px;
  background: #fff;
}

.site-setup-page .theme-color-field > span:first-child {
  font-size: 12px;
  font-weight: 800;
  color: #344054;
}

.site-setup-page .theme-color-inputs {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.site-setup-page .theme-color-inputs input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.site-setup-page .theme-color-inputs input[type="text"] {
  min-width: 0;
  text-transform: lowercase;
}

.site-setup-page .theme-toggle-grid {
  margin-top: 12px;
}

.site-setup-page .setup-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 4px solid #7c3aed;
  border-radius: 10px;
  background: #f5f3ff;
  color: #4c1d95;
  font-size: 13px;
}

.site-setup-page .slide-image-update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  body.public-marketing-body .hero .hero-grid,
  body.public-marketing-body .hero.theme-hero-layout-right-visual .hero-grid {
    grid-template-columns: 1fr;
    align-content: center;
  }

  body.public-marketing-body .site-hero-visual {
    min-height: clamp(320px, 58vw, 480px);
  }

  body.public-marketing-body .hero.theme-hero-layout-full-background .site-hero-visual,
  body.public-marketing-body .hero.theme-hero-layout-dark-overlay .site-hero-visual,
  body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-visual {
    min-height: 100%;
  }

  .site-setup-page .theme-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.public-marketing-body .hero {
    min-height: 0;
  }

  body.public-marketing-body .hero .hero-grid {
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  body.public-marketing-body .hero.theme-hero-text-right .hero-copy {
    text-align: left;
    margin-left: 0;
  }

  body.public-marketing-body .hero.theme-hero-text-right .hero-actions {
    justify-content: flex-start;
  }

  body.public-marketing-body .site-hero-visual {
    min-height: 310px;
    border-radius: 18px;
  }

  body.public-marketing-body .site-hero-slide-copy {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 12px 14px;
  }

  body.public-marketing-body .rinje-hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  body.public-marketing-body .hero.theme-hero-layout-full-background,
  body.public-marketing-body .hero.theme-hero-layout-dark-overlay,
  body.public-marketing-body .hero.theme-hero-layout-light-overlay {
    min-height: 560px;
  }

  body.public-marketing-body .hero.theme-hero-layout-full-background .hero-copy,
  body.public-marketing-body .hero.theme-hero-layout-dark-overlay .hero-copy,
  body.public-marketing-body .hero.theme-hero-layout-light-overlay .hero-copy {
    padding: 18px;
  }

  body.public-marketing-body .hero.theme-hero-layout-full-background .site-hero-slide-copy,
  body.public-marketing-body .hero.theme-hero-layout-dark-overlay .site-hero-slide-copy,
  body.public-marketing-body .hero.theme-hero-layout-light-overlay .site-hero-slide-copy {
    display: none;
  }

  .site-setup-page .theme-color-grid {
    grid-template-columns: 1fr;
  }

  .site-setup-page .theme-preset-row,
  .site-setup-page .slide-image-update-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-setup-page .theme-preset-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-marketing-body .rinje-hero-slider .site-hero-slide,
  body.public-marketing-body .rinje-hero-slider .rinje-hero-track,
  body.public-marketing-body .rinje-hero-dot {
    transition: none !important;
  }
}

/* Phase 37A public runtime correction — 2026-09-14
   Only apply overlay darkness when an actual visual/cover exists. This keeps the
   chosen Hero Background Color exact when no image is available. */
body.public-marketing-body .hero.theme-hero-layout-full-background:not(.has-hero-visual):not(.has-cover)::after,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay:not(.has-hero-visual):not(.has-cover)::after,
body.public-marketing-body .hero.theme-hero-layout-light-overlay:not(.has-hero-visual):not(.has-cover)::after {
  opacity: 0;
}

/* In full-background modes the image layer owns the complete hero rectangle. */
body.public-marketing-body .hero.theme-hero-layout-full-background.has-hero-visual .site-hero-visual,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay.has-hero-visual .site-hero-visual,
body.public-marketing-body .hero.theme-hero-layout-light-overlay.has-hero-visual .site-hero-visual {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

body.public-marketing-body .hero.theme-hero-layout-full-background.has-hero-visual .site-hero-slide img,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay.has-hero-visual .site-hero-slide img,
body.public-marketing-body .hero.theme-hero-layout-light-overlay.has-hero-visual .site-hero-slide img {
  width: 100%;
  height: 100%;
}

/* A "full width" image inside a full-background hero must still fill the hero,
   otherwise banner aspect ratios can leave the old dark panel visible. */
body.public-marketing-body .hero.theme-hero-layout-full-background.theme-hero-fit-full-width .site-hero-slide img,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay.theme-hero-fit-full-width .site-hero-slide img,
body.public-marketing-body .hero.theme-hero-layout-light-overlay.theme-hero-fit-full-width .site-hero-slide img {
  object-fit: cover;
}

body.public-marketing-body .hero.theme-hero-layout-full-background .hero-product-card,
body.public-marketing-body .hero.theme-hero-layout-dark-overlay .hero-product-card,
body.public-marketing-body .hero.theme-hero-layout-light-overlay .hero-product-card {
  position: relative;
  z-index: 3;
}

/* =========================================================
   Phase 37A Footer Layout Studio — 2026-09-14
   Website-level layout, alignment, width and spacing controls.
   ========================================================= */
body.public-marketing-body .site-footer-custom {
  box-sizing: border-box;
}

body.public-marketing-body .site-footer-custom .footer-grid,
body.public-marketing-body .site-footer-custom .footer-bottom {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.public-marketing-body .site-footer-custom.footer-layout-columns .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
}

body.public-marketing-body .site-footer-custom.footer-layout-stacked .footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

body.public-marketing-body .site-footer-custom .footer-brand-block,
body.public-marketing-body .site-footer-custom .footer-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

body.public-marketing-body .site-footer-custom .footer-block h3,
body.public-marketing-body .site-footer-custom .footer-brand-block > strong {
  margin: 0 0 .25rem;
}

body.public-marketing-body .site-footer-custom .footer-block p,
body.public-marketing-body .site-footer-custom .footer-brand-block p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.65;
}

body.public-marketing-body .site-footer-custom .footer-block a {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.45;
  text-decoration: none;
}

body.public-marketing-body .site-footer-custom.footer-align-left .footer-grid,
body.public-marketing-body .site-footer-custom.footer-align-left .footer-grid > * {
  text-align: left;
  align-items: flex-start;
}

body.public-marketing-body .site-footer-custom.footer-align-center .footer-grid,
body.public-marketing-body .site-footer-custom.footer-align-center .footer-grid > * {
  text-align: center;
  align-items: center;
}

body.public-marketing-body .site-footer-custom.footer-align-right .footer-grid,
body.public-marketing-body .site-footer-custom.footer-align-right .footer-grid > * {
  text-align: right;
  align-items: flex-end;
}

body.public-marketing-body .site-footer-custom.footer-align-center .footer-brand-block p,
body.public-marketing-body .site-footer-custom.footer-align-center .footer-block p {
  margin-left: auto;
  margin-right: auto;
}

body.public-marketing-body .site-footer-custom.footer-align-right .footer-brand-block p,
body.public-marketing-body .site-footer-custom.footer-align-right .footer-block p {
  margin-left: auto;
}

body.public-marketing-body .site-footer-custom.footer-width-narrow .footer-grid,
body.public-marketing-body .site-footer-custom.footer-width-narrow .footer-bottom {
  width: min(760px, calc(100% - 40px));
  max-width: 760px;
}

body.public-marketing-body .site-footer-custom.footer-width-standard .footer-grid,
body.public-marketing-body .site-footer-custom.footer-width-standard .footer-bottom {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
}

body.public-marketing-body .site-footer-custom.footer-width-full .footer-grid,
body.public-marketing-body .site-footer-custom.footer-width-full .footer-bottom {
  width: calc(100% - clamp(32px, 6vw, 96px));
  max-width: none;
}

body.public-marketing-body .site-footer-custom.footer-space-compact .footer-grid {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

body.public-marketing-body .site-footer-custom.footer-space-normal .footer-grid {
  padding-top: 3.75rem;
  padding-bottom: 2.25rem;
}

body.public-marketing-body .site-footer-custom.footer-space-spacious .footer-grid {
  padding-top: 6rem;
  padding-bottom: 3.5rem;
}

body.public-marketing-body .site-footer-custom .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  padding-top: 1.15rem;
  padding-bottom: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--site-footer-text, #fff) 18%, transparent);
}

body.public-marketing-body .site-footer-custom.footer-align-left .footer-bottom {
  justify-content: flex-start;
  text-align: left;
}

body.public-marketing-body .site-footer-custom.footer-align-center .footer-bottom {
  justify-content: center;
  text-align: center;
}

body.public-marketing-body .site-footer-custom.footer-align-right .footer-bottom {
  justify-content: flex-end;
  text-align: right;
}

body.public-marketing-body .site-footer-custom.footer-layout-stacked.footer-align-center .footer-logo {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  body.public-marketing-body .site-footer-custom.footer-layout-columns .footer-grid {
    grid-template-columns: 1fr;
  }

  body.public-marketing-body .site-footer-custom.footer-width-full .footer-grid,
  body.public-marketing-body .site-footer-custom.footer-width-full .footer-bottom,
  body.public-marketing-body .site-footer-custom.footer-width-standard .footer-grid,
  body.public-marketing-body .site-footer-custom.footer-width-standard .footer-bottom,
  body.public-marketing-body .site-footer-custom.footer-width-narrow .footer-grid,
  body.public-marketing-body .site-footer-custom.footer-width-narrow .footer-bottom {
    width: calc(100% - 32px);
  }

  body.public-marketing-body .site-footer-custom.footer-space-spacious .footer-grid {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }
}

/* =========================================================
   Phase 37B — Per-slide focal point & composition controls
   ========================================================= */
body.public-marketing-body .site-hero-slide img {
  object-position: var(--slide-focal-x, 50%) var(--slide-focal-y, 50%);
}

/* A slide may inherit Theme Studio's global fit or override it independently. */
body.public-marketing-body .site-hero-slide.slide-fit-cover img {
  object-fit: cover !important;
}

body.public-marketing-body .site-hero-slide.slide-fit-contain img {
  object-fit: contain !important;
  background: var(--site-surface, #fff);
}

body.public-marketing-body .site-hero-slide.slide-fit-full_width img,
body.public-marketing-body .site-hero-slide.slide-fit-full-width img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.site-setup-page .focal-slide-card {
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.site-setup-page .slide-focal-editor {
  min-width: 0;
}

.site-setup-page .slide-focal-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #d7e0eb;
  border-radius: 16px;
  background: #eef2f7;
  cursor: crosshair;
  outline: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  touch-action: manipulation;
}

.site-setup-page .slide-focal-preview:hover,
.site-setup-page .slide-focal-preview:focus-visible {
  border-color: var(--site-primary, var(--brand, #e30613));
  box-shadow: 0 0 0 4px rgba(14, 116, 196, .12), 0 12px 30px rgba(15, 23, 42, .10);
}

.site-setup-page .slide-focal-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-x, 50%) var(--focal-y, 50%);
  user-select: none;
  pointer-events: none;
}

.site-setup-page .slide-focal-marker {
  position: absolute;
  left: var(--focal-x, 50%);
  top: var(--focal-y, 50%);
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--site-primary, var(--brand, #e30613));
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .48), 0 5px 16px rgba(15, 23, 42, .28);
  pointer-events: none;
}

.site-setup-page .slide-focal-marker::before,
.site-setup-page .slide-focal-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.site-setup-page .slide-focal-marker::before { width: 12px; height: 2px; }
.site-setup-page .slide-focal-marker::after { width: 2px; height: 12px; }

.site-setup-page .slide-focal-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 13px;
}

.site-setup-page .slide-focal-caption strong {
  color: #172033;
}

.site-setup-page .slide-focal-caption span {
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #526075;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-setup-page .slide-focal-help {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.site-setup-page .slide-focal-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.site-setup-page .slide-composition-panel {
  margin: 2px 0 14px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
}

.site-setup-page .slide-composition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.site-setup-page .slide-composition-head strong,
.site-setup-page .slide-composition-head span {
  display: block;
}

.site-setup-page .slide-composition-head strong {
  color: #172033;
  font-size: 14px;
}

.site-setup-page .slide-composition-head span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.site-setup-page .focal-range-label output {
  float: right;
  color: #475569;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.site-setup-page .focal-range-label input[type="range"] {
  width: 100%;
  min-height: 36px;
  padding: 0;
  accent-color: var(--site-primary, var(--brand, #e30613));
}

.site-setup-page .new-slide-composition {
  margin: 12px 0;
}

@media (max-width: 1050px) {
  .site-setup-page .focal-slide-card {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  }

  .site-setup-page .focal-slide-card > .btn.danger {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .site-setup-page .focal-slide-card {
    grid-template-columns: 1fr;
  }

  .site-setup-page .slide-composition-head {
    align-items: stretch;
    flex-direction: column;
  }

  .site-setup-page .slide-composition-head .btn {
    width: 100%;
  }
}
