/* Body sections for the reusable WordPress template. The shared page intro
   owns the marble, hero sizes, typography and breadcrumb placement. */
.f4u-standard-page {
  background: var(--f4u-paper);
  color: var(--f4u-ink);
}

.f4u-standard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.85rem, 1.5vw, 1.65rem);
  padding-block: clamp(.75rem, 1.8vw, 1.5rem) clamp(2.5rem, 5vw, 5rem);
  overflow-wrap: anywhere;
}

.f4u-standard-page--classic .f4u-standard-content { max-width: 62rem; }
.f4u-standard-content > * { min-width: 0; margin-block: 0; }

.f4u-standard-content :is(h2, h3) {
  margin-block: 0 .55em;
  color: var(--f4u-ink);
  font-family: var(--f4u-font-heading);
  font-weight: 400;
  line-height: 1.08;
}

.f4u-standard-content h2 { font-size: clamp(1.75rem, 3vw, 3.15rem); }
.f4u-standard-content h3 { font-size: clamp(1.25rem, 1.8vw, 1.8rem); }
.f4u-standard-content a:not(.f4u-button, .wp-block-button__link) { color: var(--f4u-brand-brown); }
.f4u-standard-section { border-radius: var(--f4u-radius-sm); }
.f4u-standard-section p:last-child { margin-bottom: 0; }

.f4u-standard-rich,
.f4u-standard-free,
.f4u-standard-faq,
.f4u-standard-benefits,
.f4u-standard-media,
.f4u-standard-cta {
  padding: clamp(1.05rem, 2.5vw, 2.6rem);
  background: var(--f4u-white);
}

.f4u-standard-media { gap: clamp(.9rem, 2vw, 2.4rem); }
.f4u-standard-media .wp-block-media-text__content { padding-inline: 0; }
.f4u-standard-media .wp-block-media-text__media:has(img) {
  padding: .4rem;
  background: var(--f4u-white);
  box-shadow: var(--f4u-shadow-card);
}
.f4u-standard-media .wp-block-media-text__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.f4u-standard-content .f4u-standard-media:not(:has(img, video)) { display: block; }

.f4u-standard-features,
.f4u-standard-steps { gap: clamp(.6rem, 1.2vw, 1rem); margin-bottom: 0; }
.f4u-standard-features > .wp-block-column,
.f4u-standard-steps > .wp-block-column {
  min-width: 0;
  padding: clamp(.95rem, 1.75vw, 1.85rem);
  border: 1px solid var(--f4u-line);
  border-radius: var(--f4u-radius-sm);
  background: var(--f4u-white);
}

.f4u-standard-icon,
.f4u-standard-step-number {
  display: inline-grid;
  inline-size: 2.65rem;
  block-size: 2.65rem;
  place-items: center;
  border-radius: 50%;
}
.f4u-standard-icon { background: var(--f4u-white); color: var(--f4u-petal); }
.f4u-standard-icon svg { width: 1.55rem; height: 1.55rem; }
.f4u-standard-step-number {
  margin: 0 0 .7rem;
  background: var(--f4u-action-pink);
  color: var(--f4u-ink);
  font-weight: 700;
}

.f4u-standard-highlight,
.f4u-standard-benefits,
.f4u-standard-cta {
  background: linear-gradient(145deg, var(--f4u-white), var(--f4u-blush-soft));
}
.f4u-standard-highlight {
  padding: clamp(.95rem, 2vw, 1.65rem);
  text-align: center;
}
.f4u-standard-highlight :is(h2, h3) { margin-block: .28em .18em; }
.f4u-standard-highlight h2 { color: var(--f4u-brand-brown); }

.f4u-standard-faq details { border-bottom: 1px solid var(--f4u-line); }
.f4u-standard-faq summary {
  padding-block: .8rem;
  color: var(--f4u-ink);
  cursor: pointer;
  font-weight: 600;
}
.f4u-standard-faq summary::marker { color: var(--f4u-brand-brown); }
.f4u-standard-faq details p { margin: 0; padding: 0 0 .85rem 1rem; color: var(--f4u-muted); }

.f4u-standard-cta {
  position: relative;
  isolation: isolate;
  gap: .8rem;
  text-align: center;
}
.f4u-standard-cta::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(30%, 22rem);
  background: image-set(url("../images/f4u-gold-brush-native-v1.webp") type("image/webp"), url("../images/f4u-gold-brush-native-v1.png") type("image/png")) right center / contain no-repeat;
  opacity: .33;
  content: "";
  pointer-events: none;
}
.f4u-standard-cta .f4u-script { color: var(--f4u-petal); }
.f4u-standard-cta .f4u-button { max-width: 100%; white-space: normal; }
.f4u-standard-portal-unavailable p { margin-block: 0 .7rem; }

.f4u-standard-content .f4u-bundle-information table { width: min(100%, 42rem); border-collapse: collapse; }
.f4u-standard-content .f4u-bundle-information :is(th, td) { padding: .7rem; border: 1px solid var(--f4u-line); text-align: left; }

@media (max-width: 781px) {
  .f4u-standard-content .f4u-standard-media .wp-block-media-text__media { grid-row: 2; }
  .f4u-standard-content .f4u-standard-media .wp-block-media-text__content { grid-row: 1; }
  .f4u-standard-content .f4u-standard-media { grid-template-columns: minmax(0, 1fr); }
  .f4u-standard-content .f4u-standard-media > :is(.wp-block-media-text__content, .wp-block-media-text__media) { grid-column: 1; }
}

@media (max-width: 599px) {
  .f4u-standard-content .f4u-standard-features > .wp-block-column,
  .f4u-standard-content .f4u-standard-steps > .wp-block-column { flex-basis: 100%; }
}
