:root {
  --mh-purple-900: #2b114f;
  --mh-purple-700: #4a1aa6;
  --mh-purple-600: #6d28d9;
  --mh-yellow-500: #fbbf24;
  --mh-yellow-400: #fcd34d;
  --mh-bg: #ffffff;
  --mh-text: #111827;
  --mh-muted: #6b7280;
  --mh-border: #e5e7eb;
  --mh-card: #ffffff;
  --mh-shadow: 0 8px 24px rgba(17, 24, 39, 0.10);
  --mh-radius: 16px;
}

/* Mobile-first base typography */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--mh-bg);
  color: var(--mh-text);
}

/* Buttons */
.mh-btn,
.wp-block-button__link,
button,
input[type="submit"] {
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.mh-btn--primary,
.wp-block-button__link,
input[type="submit"] {
  background: var(--mh-purple-600);
  color: #fff;
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.22);
}

.mh-btn--primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--mh-purple-700);
}

.mh-btn--accent {
  background: var(--mh-yellow-500);
  color: var(--mh-purple-900);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.22);
}

.mh-btn--accent:hover {
  transform: translateY(-1px);
  background: var(--mh-yellow-400);
}

:focus-visible {
  outline: 3px solid var(--mh-yellow-500);
  outline-offset: 2px;
}

/* Layout helpers */
.mh-container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.mh-hero {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.10), rgba(251, 191, 36, 0.18));
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
  padding: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.mh-hero h1,
.mh-hero h2 {
  margin: 0 0 0.5rem;
}

.mh-hero p {
  margin: 0.25rem 0 0;
  color: var(--mh-muted);
}

/* Cards grid (coloring pages) */
.mh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mh-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
  overflow: hidden;
}

.mh-card__media {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: block;
}

.mh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mh-card__body {
  padding: 1rem;
}

.mh-card__title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.mh-card__meta {
  font-size: 0.9rem;
  color: var(--mh-muted);
  margin: 0 0 0.85rem;
}

.mh-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Sticky filter bar on mobile */
.mh-filterbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mh-border);
}

.mh-filterbar__inner {
  padding: 0.75rem 0;
}

.mh-filterform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.mh-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mh-field input[type="text"],
.mh-field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--mh-border);
  padding: 0.7rem 0.8rem;
}

/* NextGEN integration (light styling) */
.ngg-galleryoverview,
.ngg-imagebrowser,
.ngg-albumoverview {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .mh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mh-filterform {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .mh-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
