/**
 * Block editor output — overrides to match home-approved.html exactly.
 */

.hyd-editable-content {
  max-width: none !important;
  width: 100%;
  padding: 0;
  margin: 0;
}

.hyd-editable-content > section,
.hyd-editable-content > .wp-block-group.alignfull {
  max-width: none !important;
  width: 100%;
  margin-block: 0;
}

.hyd-editable-content > .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.hyd-editable-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
}

.hyd-editable-content .wp-block-group.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding-inline: clamp(24px, 9.65vw, var(--page-pad));
}

.hyd-editable-content .wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}

.hyd-editable-content .wp-block-columns {
  display: grid !important;
  width: 100%;
  gap: 60px;
  align-items: center;
  margin-bottom: 0;
}

.hyd-editable-content .built-grid > .wp-block-columns {
  grid-template-columns: 1fr 1fr !important;
}

.hyd-editable-content .support-grid > .wp-block-columns {
  grid-template-columns: minmax(0, 551px) minmax(0, 1fr) !important;
}

.hyd-editable-content .wp-block-column {
  flex: none !important;
  width: auto !important;
  min-width: 0;
}

.hyd-editable-content .built-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hyd-editable-content .support-grid {
  display: grid;
  grid-template-columns: 551px 1fr;
  gap: 60px;
  align-items: center;
}

.hyd-editable-content .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hyd-editable-content .section-pill {
  display: inline-flex;
  width: auto;
  max-width: none;
}

.hyd-editable-content .section-pill p {
  margin: 0;
}

.hyd-editable-content .section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 60px;
}

.hyd-editable-content .built-list,
.hyd-editable-content .support-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hyd-editable-content .built-image {
  height: 590px;
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hyd-editable-content .built-image .wp-block-image,
.hyd-editable-content .built-image figure {
  margin: 0;
  height: 100%;
  max-width: none;
}

.hyd-editable-content .built-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

.hyd-editable-content .support-visual .wp-block-image,
.hyd-editable-content .support-visual figure {
  margin: 0;
}

.hyd-editable-content .support-visual img {
  width: 551px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-card);
}

.hyd-editable-content .feature-card .wp-block-image,
.hyd-editable-content .feature-card figure {
  margin: 0;
}

.hyd-editable-content .feature-card__banner img {
  width: 100%;
  height: 55px;
  object-fit: cover;
  border-radius: var(--radius-img) var(--radius-img) 0 0;
  max-width: none;
}

.hyd-editable-content .pull-quote-box {
  max-width: 1100px;
  margin-inline: auto;
}

.hyd-editable-content .pull-quote-box p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 64px;
  font-weight: 400;
  color: #fff;
}

.hyd-editable-content .built-heading,
.hyd-editable-content .support-heading {
  margin-top: 0;
}

.hyd-editable-content .built-item h3,
.hyd-editable-content .support-item h3,
.hyd-editable-content .feature-card h3 {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .hyd-editable-content .support-grid,
  .hyd-editable-content .support-grid > .wp-block-columns {
    grid-template-columns: 1fr !important;
  }

  .hyd-editable-content .support-visual {
    justify-self: center;
  }
}

@media (max-width: 1024px) {
  .hyd-editable-content .built-grid,
  .hyd-editable-content .built-grid > .wp-block-columns,
  .hyd-editable-content .support-grid,
  .hyd-editable-content .support-grid > .wp-block-columns,
  .hyd-editable-content .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .hyd-editable-content .built-image {
    height: clamp(280px, 60vw, 420px);
  }

  .hyd-editable-content .pull-quote-box p {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .hyd-editable-content .wp-block-group.container {
    width: min(100% - 32px, var(--max));
    padding-inline: 16px;
  }
}
