/* Shared by the home feature and its editor. Inactive layouts retain the
   established design. Mobile layouts use a readable stack below the photo. */
.feature { font-family: 'Montserrat', Arial, sans-serif; }
.feature.layout-active {
  display: block;
  position: relative;
  isolation: isolate;
  --layout-text-size: 23px;
  --layout-text-align: center;
}
.feature.layout-active .feature-photo {
  display: block;
  grid-area: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1523 / 724;
  object-fit: cover;
}
.feature.layout-active.custom-photo .feature-photo { aspect-ratio: auto; object-fit: contain; }
.feature.layout-active .feature-copy {
  position: static;
  inset: auto;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}
.feature.layout-active.layout-desktop .feature-copy { display: contents; }
.feature.layout-active.hide-announcement .feature-copy { display: none; }
.feature.layout-active [hidden] { display: none !important; }
.feature.layout-active .coming-soon,
.feature.layout-active .feature-text,
.feature.layout-active .feature-link { box-sizing: border-box; min-width: 0; }
.feature.layout-active.layout-desktop .coming-soon,
.feature.layout-active.layout-desktop .feature-text,
.feature.layout-active.layout-desktop .feature-link {
  position: absolute;
  left: var(--layout-x);
  top: var(--layout-y);
  right: auto;
  bottom: auto;
  width: var(--layout-width);
  max-width: 100%;
  min-height: 0;
  margin: 0;
  transform-origin: var(--layout-x) var(--layout-y);
  transform: translate(var(--layout-shift-x), var(--layout-shift-y)) scale(var(--layout-fit, 1));
}
.feature.layout-active .coming-soon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  height: auto;
  max-width: none;
  min-height: 0;
  isolation: isolate;
}
.feature.layout-active .coming-soon span {
  max-width: 78%;
  font-size: var(--layout-badge-font-size);
  line-height: 1.05;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-align: center;
  transform: rotate(-15deg) scale(var(--layout-letter-fit, 1));
}
.feature.layout-active .coming-soon.custom-badge img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.feature.layout-active .feature-text {
  font-size: var(--layout-text-size);
  text-align: var(--layout-text-align);
  overflow-wrap: anywhere;
}
.feature.layout-active .feature-text h2 {
  font-size: 1.087em;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 .3em;
}
.feature.layout-active .feature-text p {
  max-width: none;
  font-size: 1em;
  line-height: 1.6;
  white-space: pre-line;
  margin: 0;
}
.feature.layout-active .feature-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  padding: .3em .8em;
  min-height: 44px;
  font-size: max(13px, calc(var(--layout-text-size) * .91));
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.feature.layout-active .feature-link span { flex-shrink: 0; }
.feature.layout-active.layout-desktop .feature-link { min-height: 44px; }
.feature.layout-active.layout-mobile .feature-photo { aspect-ratio: auto; }
.feature.layout-active.layout-mobile .feature-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 24px;
  background: #fff7eb;
}
.feature.layout-active.layout-mobile.hide-announcement .feature-copy { display: none; }
.feature.layout-active.layout-mobile .coming-soon,
.feature.layout-active.layout-mobile .feature-text,
.feature.layout-active.layout-mobile .feature-link {
  position: relative;
  inset: auto;
  margin: 0;
  transform: none;
  order: var(--layout-order);
  align-self: var(--layout-mobile-align);
}
.feature.layout-active.layout-mobile .coming-soon {
  flex: 0 0 auto;
  width: min(100%, var(--layout-badge-size));
  min-height: 0;
}
.feature.layout-active.layout-mobile .feature-text { width: 100%; }
.feature.layout-active.layout-mobile .feature-link { width: fit-content; max-width: 100%; }
