/* WordPress-specific fixes */

.site {
  min-height: 100svh;
  isolation: isolate;
}

/* Admin bar offset when logged in */
.admin-bar .nav {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }
}

/* Show content immediately — scroll reveal is optional enhancement via JS */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal].is-visible {
  animation: none;
}

/* Reduce WP core preset bleed into layout */
body .is-layout-flex,
body .is-layout-grid {
  display: revert;
}

.wp-block-button__link {
  all: unset;
}

/* Hidden success states must not reserve space (display:grid on .apply overrides [hidden]) */
[hidden],
.apply[hidden],
.contact__success[hidden],
[data-form-success][hidden] {
  display: none !important;
}

.page-editable-content {
  padding-block: clamp(2rem, 5vw, 4rem);
  color: var(--ink);
}

.happydays-editor-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

.happydays-editor-content.entry-content > :where(section, article) {
  margin: 0;
}

.happydays-editor-content.entry-content > :where(p, h1, h2, h3, h4) {
  margin: 0;
}

.happydays-editor-content .resources__section-head p,
.happydays-editor-content .resource p,
.happydays-editor-content .resource-detail__cta-copy p,
.happydays-editor-content .page-hero__lead {
  margin: 0;
}

.happydays-editor-content .resource h3 {
  margin: 0 0 var(--sp-sm);
}

.happydays-editor-content .resources__section-head h2 {
  margin-top: var(--sp-sm);
}

.happydays-editor-content > :first-child {
  margin-top: 0;
}

.page-editable-content > :first-child {
  margin-top: 0;
}

.page-editable-content > :last-child {
  margin-bottom: 0;
}
