/* ==========================================================================
   MR.BICEPS — Gutenberg compatibility layer
   Only the deltas needed because native blocks wrap markup differently
   than the original static HTML. competition.css is left untouched.
   ========================================================================== */

/* Hero image: core/cover renders its own <img>, our .hero rules already
   handle positioning of the wrapper — this just restores object-fit. */
.wp-block-cover.hero {
  display: flex;
  align-items: flex-end;
}
.wp-block-cover.hero .wp-block-cover__image-background {
  object-fit: cover;
  object-position: center 30%;
}
.wp-block-cover.hero .wp-block-cover__inner-container {
  width: 100%;
}

/* Hero logo: className sits on the wrapping figure, not the <img> itself */
.hero__logo img {
  height: clamp(32px, 4vw, 48px);
  opacity: 0.95;
}

/* Info card icons: core/image wraps the icon in a <figure> */
.info-card__icon img {
  width: 30px;
  height: 30px;
  margin-bottom: 1.25rem;
  filter: invert(72%) sepia(41%) saturate(469%) hue-rotate(357deg) brightness(93%) contrast(90%);
}

/* Gallery grid: plain Group + linked core/image blocks standing in for
   the bespoke masonry buttons, same hover/zoom treatment */
.gallery-grid {
  columns: 1;
  column-gap: 1.1rem;
}
@media (min-width: 620px) { .gallery-grid { columns: 2; } }
@media (min-width: 980px) { .gallery-grid { columns: 3; } }

.gallery-grid figure.wp-block-image {
  break-inside: avoid;
  margin: 0 0 1.1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-grid figure.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-grid figure.wp-block-image:hover img { transform: scale(1.05); }

/* Buttons: core/button puts custom classNames on the wrapping <div>,
   the real link is .wp-block-button__link — re-point the .btn look there
   using Block Style variations registered in PHP (is-style-gold / ghost) */
.wp-block-buttons.hero__cta-row,
.wp-block-buttons.register-cta__buttons {
  gap: 1rem;
}

.wp-block-button .wp-block-button__link {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease);
}

.wp-block-button.is-style-gold .wp-block-button__link {
  background: linear-gradient(180deg, var(--c-gold-bright), var(--c-gold));
  color: #12100a;
  box-shadow: var(--shadow-gold);
  border: none;
}
.wp-block-button.is-style-gold .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(212, 175, 55, 0.5);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.wp-block-button.btn--sm .wp-block-button__link { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.wp-block-button.btn--lg .wp-block-button__link { padding: 1.05rem 2.2rem; font-size: 1rem; }
.wp-block-button.btn--xl .wp-block-button__link { padding: 1.25rem 2.75rem; font-size: 1.05rem; }

/* FAQ: native core/details replaces the bespoke accordion markup */
.accordion .wp-block-details {
  border-bottom: 1px solid var(--c-line);
  padding: 0;
}
.accordion .wp-block-details summary {
  padding: 1.5rem 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.accordion .wp-block-details summary::-webkit-details-marker { display: none; }
.accordion .wp-block-details summary::after {
  content: '+';
  color: var(--c-gold);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
}
.accordion .wp-block-details[open] summary::after {
  content: '\2212';
}
.accordion .wp-block-details > :not(summary) {
  color: var(--c-text-dim);
  max-width: 68ch;
  padding-bottom: 1.5rem;
}

/* Map embed standing in for the bespoke .map-placeholder */
.location__map.wp-block-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  margin: 0;
}
.location__map.wp-block-embed .wp-block-embed__wrapper {
  aspect-ratio: 4 / 3;
}
.location__map.wp-block-embed iframe {
  width: 100%;
  height: 100%;
}

/* Registration placeholder shortcode — visible only as an editor/admin cue
   until the real registration block is wired up */
.mce-registration-placeholder {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-text-mute);
  font-size: var(--fs-small);
}
