:root[data-entry-mode="editor"] .home-brand-hero,
:root[data-entry-mode="editor"] .home-editor-lead,
:root[data-entry-mode="editor"] .home-community-band,
:root[data-entry-mode="editor"] .home-material-band,
:root[data-entry-mode="editor"] .home-brand-footer {
  display: none !important;
}

.home-brand-hero {
  position: relative;
  width: 100%;
  height: min(56vh, 600px);
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: #18201b;
}

body.jewdiy-storefront .site-shell > .home-brand-hero {
  margin: 0 !important;
}

.home-brand-slides,
.home-brand-slide {
  position: absolute;
  inset: 0;
}

.home-brand-slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.home-brand-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.home-brand-slide > img,
.home-brand-slide > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-brand-slide > img {
  object-position: center 52%;
}

.home-brand-slide > video {
  object-position: center center;
  background: #18201b;
}

.home-brand-slide:nth-child(3) > img {
  object-position: center 44%;
}

.home-brand-shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 11, 0.48);
}

.home-brand-copy {
  position: absolute;
  left: max(24px, calc((100% - 1320px) / 2));
  bottom: 72px;
  width: min(670px, calc(100% - 48px));
  display: grid;
  gap: 18px;
}

.home-brand-kicker,
.home-editor-lead > div > p,
.home-section-heading p,
.home-material-band > div > p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-brand-copy h1,
.home-brand-copy h2 {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-brand-copy h2 {
  font-size: 48px;
}

.home-brand-copy > p:not(.home-brand-kicker) {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.home-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-brand-actions a,
.home-section-heading > a,
.home-material-band a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-brand-actions .home-brand-primary {
  border-color: #fff;
  background: #fff;
  color: #142c21;
}

.home-brand-carousel-controls {
  position: absolute;
  right: max(24px, calc((100% - 1320px) / 2));
  bottom: 24px;
  z-index: var(--z-local-control);
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-brand-carousel-controls > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 14, 11, 0.34);
  cursor: pointer;
}

.home-brand-video-toggle[hidden] {
  display: none !important;
}

.home-brand-video-toggle span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.home-brand-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-brand-dots button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.home-brand-dots button::before {
  content: "";
  width: 28px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.home-brand-dots button.is-active::before {
  background: #fff;
}

.home-editor-lead,
.home-community-band,
.home-material-band,
.home-brand-footer {
  width: 100%;
}

.home-editor-lead {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 24px 30px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}

body.jewdiy-storefront .site-shell > .home-editor-lead {
  margin: 0 auto !important;
}

.home-editor-lead > div {
  grid-column: 1 / span 7;
}

.home-editor-lead > p {
  grid-column: 9 / -1;
  margin: 0;
  color: #58615b;
  font-size: 15px;
  line-height: 1.75;
}

.home-editor-lead h2,
.home-section-heading h2,
.home-material-band h2 {
  margin: 8px 0 0;
  color: #14261c;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

:root[data-entry-mode="home-editor"] #builder {
  scroll-margin-top: 82px;
}

.home-community-band {
  margin-top: 72px;
  padding: 76px max(24px, calc((100% - 1320px) / 2));
  background: #fff;
  border-top: 1px solid #e2e6e1;
  border-bottom: 1px solid #e2e6e1;
}

body.jewdiy-storefront .site-shell > .home-community-band {
  margin: 72px 0 0 !important;
}

.home-section-heading {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(160px, 2fr);
  gap: 20px;
  align-items: end;
}

.home-section-heading > a,
.home-material-band a {
  justify-self: end;
  min-height: 44px;
  border-color: #214d37;
  color: #214d37;
  background: transparent;
}

.home-material-band {
  padding: 76px max(24px, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  background: #edf1ed;
}

body.jewdiy-storefront .site-shell > .home-material-band,
body.jewdiy-storefront .site-shell > .home-brand-footer {
  margin: 0 !important;
}

.home-material-band > div {
  min-width: 0;
  padding: 0 8vw 0 0;
}

.home-material-band .home-material-copy {
  grid-column: 1 / span 6;
  border-right: 1px solid #cbd3cd;
}

.home-material-band .home-commerce-copy {
  grid-column: 7 / -1;
  padding: 0 0 0 8vw;
}

.home-material-band p:not(:first-child) {
  max-width: 560px;
  margin: 18px 0 24px;
  color: #536057;
  line-height: 1.75;
}

.home-material-band a {
  justify-self: start;
}

.home-brand-footer {
  padding: 44px max(24px, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 28px;
  align-items: center;
  color: #fff;
  background: #101d16;
}

.home-brand-footer strong {
  font-family: var(--font-heading);
  font-size: 30px;
}

.home-brand-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.home-brand-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.home-brand-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.publish-gallery-button {
  min-height: 44px;
  border-color: #214d37 !important;
  color: #fff !important;
  background: #214d37 !important;
}

#builder .mobile-share-quick {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#builder .mobile-share-quick .mobile-publish-design {
  border-color: #214d37;
  color: #fff;
  background: #214d37;
}

.editor-publish-dock {
  display: none;
}

.publish-design-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #20241f;
  background: #fff;
  box-shadow: 0 24px 70px rgba(14, 28, 20, 0.24);
  z-index: var(--z-modal);
}

.publish-design-dialog::backdrop {
  background: rgba(10, 15, 12, 0.62);
}

.publish-design-card {
  margin: 0;
  padding: 26px;
  display: grid;
  gap: 16px;
}

.publish-design-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.publish-design-heading p {
  margin: 0 0 4px;
  color: #2c6848;
  font-size: 12px;
  font-weight: 800;
}

.publish-design-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.publish-design-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid #dce2dd;
  border-radius: 50%;
  color: #25352c;
  background: #fff;
  font-size: 25px;
  cursor: pointer;
}

.publish-design-privacy {
  margin: 0;
  padding: 12px;
  border-left: 3px solid #2c6848;
  color: #526158;
  background: #f0f4f1;
  font-size: 13px;
  line-height: 1.6;
}

.publish-design-card label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.publish-design-card input,
.publish-design-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d9dfda;
  border-radius: 4px;
  color: #20241f;
  background: #fff;
  resize: vertical;
}

.publish-design-card input:focus,
.publish-design-card textarea:focus {
  outline: 2px solid #2c6848;
  outline-offset: 2px;
}

.publish-design-message {
  min-height: 22px;
  margin: 0;
  color: #7b332a;
  font-size: 13px;
  font-weight: 700;
}

.publish-design-actions,
.publish-design-success {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publish-design-actions button,
.publish-design-success button,
.publish-design-success a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd5ce;
  border-radius: 4px;
  color: #1b3d2c;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.publish-design-actions .is-primary,
.publish-design-success a {
  border-color: #214d37;
  color: #fff;
  background: #214d37;
}

.publish-design-success[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .home-brand-hero {
    height: 430px;
    min-height: 430px;
  }

  .home-brand-copy {
    left: 20px;
    bottom: 72px;
    width: calc(100% - 40px);
    gap: 13px;
  }

  .home-brand-copy h1 {
    font-size: 48px;
  }

  .home-brand-copy h2 {
    font-size: 34px;
  }

  .home-brand-copy > p:not(.home-brand-kicker) {
    font-size: 15px;
    line-height: 1.55;
  }

  .home-brand-carousel-controls {
    right: 20px;
    bottom: 14px;
  }

  .home-brand-carousel-controls > button {
    width: 40px;
    height: 40px;
  }

  .home-brand-carousel-controls > .home-brand-video-toggle {
    width: 44px;
    height: 44px;
  }

  .home-editor-lead {
    padding: 54px 18px 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .home-editor-lead > div,
  .home-editor-lead > p {
    grid-column: 1 / -1;
  }

  .home-editor-lead h2,
  .home-section-heading h2,
  .home-material-band h2 {
    font-size: 28px;
  }

  .home-community-band,
  .home-material-band {
    margin-top: 54px;
    padding: 56px 18px;
  }

  .home-section-heading {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-section-heading > div,
  .home-section-heading > a {
    grid-column: 1 / -1;
  }

  .home-section-heading > a {
    justify-self: start;
  }

  .home-material-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px;
  }

  .home-material-band .home-material-copy,
  .home-material-band .home-commerce-copy {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
  }

  .home-material-band .home-material-copy {
    padding-bottom: 46px;
    border-bottom: 1px solid #cbd3cd;
  }

  .home-brand-footer {
    padding: 38px 20px 110px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.editor-publish-dock-active:not(.mobile-tray-active):not(.canvas-fullscreen-active) .editor-publish-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: var(--z-side-panel);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(29, 70, 49, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(19, 45, 31, 0.2);
  }

  .editor-publish-dock button {
    min-width: 0;
    min-height: 50px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0;
    padding: 3px 8px;
    border: 0;
    border-radius: 4px;
    color: #264334;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
  }

  .editor-publish-dock button span {
    font-size: 19px;
    line-height: 1;
  }

  .editor-publish-dock button b {
    font-size: 11px;
  }

  .editor-publish-dock .is-primary {
    color: #fff;
    background: #214d37;
  }

  .publish-design-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .home-brand-hero {
    height: 410px;
    min-height: 410px;
  }

  .home-brand-actions a {
    min-height: 46px;
    padding: 0 14px;
  }

  .home-brand-carousel-controls > button:not(.home-brand-video-toggle) {
    display: none;
  }

  .home-brand-carousel-controls > .home-brand-video-toggle {
    display: grid;
  }

  .publish-design-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .publish-design-actions,
  .publish-design-success {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand-slide {
    transition: none;
  }
}
