:root {
  --mwm-navy: #10233f;
  --mwm-navy-2: #172f50;
  --mwm-blue: #526783;
  --mwm-blue-soft: #dfe8f0;
  --mwm-ice: #f4f7f9;
  --mwm-paper: #ffffff;
  --mwm-ink: #18202a;
  --mwm-muted: #697585;
  --mwm-line: #dce4ea;
  --mwm-red: #d7353c;
  --mwm-yellow: #f3cb3e;
  --mwm-carnival-blue: #2d65ac;
  --mwm-purple: #7252a3;
  --mwm-radius: 22px;
  --mwm-shadow: 0 24px 70px rgba(16, 35, 63, 0.12);
  --mwm-shell: min(1180px, calc(100vw - 48px));
  --mwm-header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mwm-ink);
  background: var(--mwm-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.mwm-nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--mwm-navy); text-underline-offset: .18em; }
a:hover { color: var(--mwm-carnival-blue); }
button, input, textarea, select { font: inherit; }
::selection { background: var(--mwm-yellow); color: var(--mwm-navy); }

.mwm-shell { width: var(--mwm-shell); margin-inline: auto; }
.mwm-main { min-height: 35vh; }
.mwm-content-shell { padding-block: 72px 104px; }
.mwm-prose { max-width: 920px; }
.mwm-prose > *:first-child { margin-top: 0; }
.mwm-prose h2,
.mwm-prose h3,
.mwm-prose h4 { color: var(--mwm-navy); line-height: 1.2; margin: 1.9em 0 .65em; }
.mwm-prose h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.mwm-prose h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.mwm-prose p { margin: 0 0 1.2em; }
.mwm-prose ul, .mwm-prose ol { padding-left: 1.3em; }
.mwm-prose blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--mwm-carnival-blue);
  background: var(--mwm-ice);
  border-radius: 0 14px 14px 0;
}

.mwm-skip-link {
  position: fixed;
  z-index: 99999;
  left: 18px;
  top: 14px;
  transform: translateY(-180%);
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--mwm-shadow);
}
.mwm-skip-link:focus { transform: translateY(0); }

.mwm-fastnacht-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 4px;
  width: 100%;
}
.mwm-fastnacht-line i:nth-child(1) { background: var(--mwm-red); }
.mwm-fastnacht-line i:nth-child(2) { background: #fff; }
.mwm-fastnacht-line i:nth-child(3) { background: var(--mwm-carnival-blue); }
.mwm-fastnacht-line i:nth-child(4) { background: var(--mwm-yellow); }

.mwm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16,35,63,.08);
  transition: box-shadow .25s ease, background .25s ease;
}
.mwm-header.is-scrolled { box-shadow: 0 12px 40px rgba(16,35,63,.08); }
.mwm-header__inner {
  min-height: var(--mwm-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.mwm-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  color: var(--mwm-navy);
  text-decoration: none;
}
.mwm-brand:hover { color: var(--mwm-navy); }
.mwm-brand__mark {
  width: 54px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.mwm-brand__mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mwm-brand__text { display: block; line-height: 1.18; }
.mwm-brand__text strong { font-size: 15px; letter-spacing: .02em; }

.mwm-nav { margin-left: auto; }
.mwm-nav__list,
.mwm-nav__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mwm-nav__list { display: flex; align-items: center; gap: 6px; }
.mwm-nav__list > li { position: relative; }
.mwm-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--mwm-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 11px;
}
.mwm-nav__list > li > a:hover,
.mwm-nav__list > li.current-menu-item > a,
.mwm-nav__list > li.current-menu-ancestor > a { background: var(--mwm-ice); }
.mwm-nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  background: #fff;
  border: 1px solid var(--mwm-line);
  border-radius: 14px;
  box-shadow: var(--mwm-shadow);
  transition: .2s ease;
}
.mwm-nav__list li:hover > .sub-menu,
.mwm-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mwm-nav__list .sub-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  color: var(--mwm-navy);
}
.mwm-nav__list .sub-menu a:hover { background: var(--mwm-ice); }

.mwm-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--mwm-navy);
  padding: 10px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.mwm-nav-toggle__label { font-weight: 700; font-size: 14px; }
.mwm-nav-toggle__icon { width: 24px; height: 18px; position: relative; }
.mwm-nav-toggle__icon i {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: .2s ease;
}
.mwm-nav-toggle__icon i:first-child { top: 4px; }
.mwm-nav-toggle__icon i:last-child { bottom: 4px; }
.mwm-nav-toggle[aria-expanded="true"] .mwm-nav-toggle__icon i:first-child { top: 8px; transform: rotate(45deg); }
.mwm-nav-toggle[aria-expanded="true"] .mwm-nav-toggle__icon i:last-child { bottom: 8px; transform: rotate(-45deg); }

.mwm-hero {
  position: relative;
  overflow: hidden;
  min-height: min(790px, calc(100vh - var(--mwm-header-h)));
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11,25,45,.95) 0%, rgba(16,35,63,.88) 45%, rgba(16,35,63,.45) 100%),
    url('../images/headervisual-Kopie.JPG') center / cover no-repeat;
}
.mwm-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(16,35,63,.2));
  clip-path: polygon(0 60%, 7% 70%, 14% 57%, 22% 72%, 31% 58%, 40% 74%, 48% 60%, 57% 73%, 66% 58%, 75% 71%, 84% 57%, 93% 68%, 100% 60%, 100% 100%, 0 100%);
}
.mwm-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 100px 120px;
}
.mwm-hero__copy { max-width: 770px; }
.mwm-hero h1 {
  margin: 0;
  max-width: 820px;
  color: #fff;
  font-size: clamp(3.25rem, 7.2vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.045em;
}
.mwm-hero h1 span { display: block; color: #dfe8f0; font-size: .47em; line-height: 1.12; letter-spacing: -.02em; margin-top: .28em; }
.mwm-hero__lead {
  max-width: 650px;
  margin: 30px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}
.mwm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.mwm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--mwm-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mwm-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,35,63,.2); }
.mwm-btn--light { background: #fff; color: var(--mwm-navy); }
.mwm-btn--light:hover { color: var(--mwm-navy); }
.mwm-btn--ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.mwm-btn--outline { color: var(--mwm-navy); background: transparent; border-color: var(--mwm-line); }
.mwm-btn--outline:hover { color: var(--mwm-navy); background: var(--mwm-ice); }

.mwm-section { padding-block: 96px; }
.mwm-section--soft { background: var(--mwm-ice); }
.mwm-section--navy { background: var(--mwm-navy); color: #fff; position: relative; overflow: hidden; }
.mwm-section--navy::after {
  content: '';
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: -80px;
  width: 190px;
  height: 228px;
  background: url('../images/anchor_weiss.svg') center / contain no-repeat;
  opacity: .025;
  transform: rotate(-7deg);
  pointer-events: none;
}
.mwm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.mwm-section-head__copy { max-width: 720px; }
.mwm-section-head h2 {
  margin: 0;
  color: var(--mwm-navy);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.mwm-section--navy .mwm-section-head h2 { color: #fff; }
.mwm-section-head p { margin: 16px 0 0; color: var(--mwm-muted); max-width: 620px; }
.mwm-section--navy .mwm-section-head p { color: rgba(255,255,255,.7); }

.mwm-intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(44px, 7vw, 96px); align-items: start; }
.mwm-intro-title { position: static; }
.mwm-intro-title h2 { margin: 0; color: var(--mwm-navy); font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: 1; letter-spacing: -.04em; }
.mwm-intro-title h2 span { color: var(--mwm-blue); }
.mwm-intro-copy p:first-child { font-size: 1.24rem; color: var(--mwm-navy); }
.mwm-intro-copy p { margin: 0 0 1.35em; }
.mwm-fact-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mwm-fact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--mwm-line);
  border-radius: 999px;
  color: var(--mwm-navy);
  font-size: 13px;
  font-weight: 700;
}
.mwm-fact::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mwm-yellow); }

.mwm-event-list { display: grid; gap: 12px; }
.mwm-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 48px;
  gap: 22px;
  align-items: center;
  padding: 22px 22px 22px 18px;
  border: 1px solid var(--mwm-line);
  border-radius: 20px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mwm-event-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(16,35,63,.09); border-color: #cad5df; }
.mwm-section--navy .mwm-event-card { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.13); }
.mwm-event-card__date {
  min-height: 104px;
  border-radius: 15px;
  background: var(--mwm-navy);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1;
  text-align: center;
}
.mwm-section--navy .mwm-event-card__date { background: #fff; color: var(--mwm-navy); }
.mwm-event-card__date strong { font-size: 34px; margin: 4px 0 3px; }
.mwm-event-card__date span, .mwm-event-card__date small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mwm-event-card__weekday { opacity: .65; }
.mwm-event-card__body h3 { margin: 0; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.2; }
.mwm-event-card__body h3 a { color: var(--mwm-navy); text-decoration: none; }
.mwm-section--navy .mwm-event-card__body h3 a { color: #fff; }
.mwm-event-card__meta { margin: 8px 0 0; color: var(--mwm-carnival-blue); font-size: 14px; font-weight: 700; }
.mwm-section--navy .mwm-event-card__meta { color: #d4e5ff; }
.mwm-event-card__excerpt { margin: 8px 0 0; color: var(--mwm-muted); font-size: 14px; line-height: 1.5; }
.mwm-section--navy .mwm-event-card__excerpt { color: rgba(255,255,255,.68); }
.mwm-event-card__arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--mwm-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 20px;
}
.mwm-section--navy .mwm-event-card__arrow { color: #fff; border-color: rgba(255,255,255,.2); }

.mwm-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mwm-gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--mwm-radius);
  background: var(--mwm-navy);
  box-shadow: var(--mwm-shadow);
}
.mwm-gallery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.mwm-gallery-card:hover img { transform: scale(1.045); }
.mwm-gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,18,34,.92), rgba(7,18,34,.05) 72%); }
.mwm-gallery-card__body { position: absolute; z-index: 2; inset: auto 24px 24px; color: #fff; }
.mwm-gallery-card__body h3 { margin: 0; color: #fff; font-size: 1.35rem; line-height: 1.2; }
.mwm-gallery-card__body p { margin: 8px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.mwm-gallery-card__link { position: absolute; inset: 0; z-index: 3; }

.mwm-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--mwm-navy);
  color: #fff;
}
.mwm-page-hero__inner { position: relative; z-index: 2; padding-block: 76px 68px; }
.mwm-page-hero h1 { margin: 0; max-width: 940px; font-size: clamp(2.8rem, 5.2vw, 5.7rem); line-height: .98; letter-spacing: -.04em; color: #fff; }
.mwm-page-hero__rule { display: block; width: min(170px, 30vw); height: 5px; margin-top: 30px; background: linear-gradient(90deg, var(--mwm-red) 0 25%, #fff 25% 50%, var(--mwm-carnival-blue) 50% 75%, var(--mwm-yellow) 75%); }
.mwm-page-hero__watermark {
  position: absolute;
  right: -40px;
  top: -90px;
  width: 430px;
  height: 520px;
  background: url('../images/anchor_weiss.svg') center / contain no-repeat;
  opacity: .04;
  transform: rotate(11deg);
}

.mwm-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.mwm-person-card { overflow: hidden; border-radius: 20px; border: 1px solid var(--mwm-line); background: #fff; }
.mwm-person-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mwm-ice); }
.mwm-person-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mwm-person-card:hover img { transform: scale(1.035); }
.mwm-person-card__body { padding: 20px; text-align: center; }
.mwm-person-card__body h2,
.mwm-person-card__body h3 { margin: 0; color: var(--mwm-navy); font-size: 1.25rem; line-height: 1.2; }
.mwm-person-card__body p { margin: 7px 0 0; color: var(--mwm-muted); font-size: 14px; }
.mwm-subsection-title { margin: 70px 0 30px; color: var(--mwm-navy); font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.1; }

.mwm-medal-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.mwm-medal-card { padding: 14px 14px 18px; border: 1px solid var(--mwm-line); border-radius: 18px; text-align: center; background: #fff; }
.mwm-medal-card a { display: block; text-decoration: none; }
.mwm-medal-card__image { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--mwm-ice); }
.mwm-medal-card img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.mwm-medal-card h3 { margin: 14px 0 0; color: var(--mwm-navy); font-size: 1rem; }

.mwm-group-image { margin-bottom: 42px; border-radius: var(--mwm-radius); overflow: hidden; box-shadow: var(--mwm-shadow); }
.mwm-group-image img { width: 100%; display: block; }

.mwm-gallery-index { display: grid; gap: clamp(54px, 7vw, 88px); }
.mwm-gallery-index__item {
  display: block;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.mwm-gallery-index__image {
  width: 100%;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  border-radius: 16px;
  background: var(--mwm-ice);
}
.mwm-gallery-index__image a,
.mwm-gallery-index__image img { display: block; width: 100%; height: 100%; }
.mwm-gallery-index__image img {
  object-fit: cover;
  object-position: center center;
  transition: transform .45s ease;
}
.mwm-gallery-index__item:hover .mwm-gallery-index__image img { transform: scale(1.018); }
.mwm-gallery-index__copy {
  max-width: 760px;
  padding: 24px 0 0;
}
.mwm-gallery-index__meta { margin: 0 0 8px; color: var(--mwm-muted); font-size: .88rem; }
.mwm-gallery-index__copy h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.06; color: var(--mwm-navy); }
.mwm-gallery-index__copy h2 a { color: inherit; text-decoration: none; }
.mwm-gallery-index__copy > p:not(.mwm-gallery-index__meta) { max-width: 690px; margin: 14px 0 0; color: var(--mwm-muted); }
.mwm-gallery-index__copy .mwm-text-link { display: inline-flex; margin-top: 12px; }

.mwm-layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 58px; align-items: start; }
.mwm-sidebar { position: sticky; top: 130px; }
.mwm-sidebar__widget { padding: 20px 0; border-bottom: 1px solid var(--mwm-line); }
.mwm-sidebar__title { margin: 0 0 12px; color: var(--mwm-navy); font-size: 1.05rem; }
.mwm-sidebar ul { margin: 0; padding: 0; list-style: none; }
.mwm-sidebar li + li { margin-top: 6px; }
.mwm-sidebar a { text-decoration: none; font-size: 14px; }

.mwm-single-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--mwm-muted); font-size: 13px; margin-bottom: 30px; }
.mwm-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.mwm-pagination .page-numbers { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--mwm-line); border-radius: 10px; text-decoration: none; }
.mwm-pagination .current { background: var(--mwm-navy); color: #fff; border-color: var(--mwm-navy); }

.mwm-event-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 60px; align-items: start; }
.mwm-event-detail__panel { position: sticky; top: 130px; padding: 24px; border-radius: 20px; background: var(--mwm-ice); }
.mwm-event-detail__panel dl { margin: 0; }
.mwm-event-detail__panel dt { margin-top: 16px; color: var(--mwm-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mwm-event-detail__panel dt:first-child { margin-top: 0; }
.mwm-event-detail__panel dd { margin: 4px 0 0; color: var(--mwm-navy); font-weight: 700; }
.mwm-event-detail__actions { display: grid; gap: 9px; margin-top: 22px; }

.mwm-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.mwm-filterbar a { padding: 9px 13px; border-radius: 999px; background: var(--mwm-ice); text-decoration: none; font-size: 13px; font-weight: 700; }
.mwm-filterbar a.is-active { background: var(--mwm-navy); color: #fff; }

.mwm-empty { padding: 34px; border: 1px dashed #c8d3dc; border-radius: 18px; background: var(--mwm-ice); color: var(--mwm-muted); }

.wp-block-gallery,
.gallery { gap: 12px !important; }
.wp-block-gallery img,
.gallery img { border-radius: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item { margin: 0 !important; width: auto !important; }
.gallery-caption { font-size: 13px; color: var(--mwm-muted); }

.mwm-footer { background: #0c1b31; color: rgba(255,255,255,.78); }
.mwm-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 52px; padding-block: 70px 55px; }
.mwm-footer__brand { display: flex; gap: 18px; align-items: center; }
.mwm-footer__brand img { width: 70px; height: 74px; object-fit: contain; }
.mwm-footer__brand strong { display: block; color: #fff; font-size: 1.08rem; }
.mwm-footer__label { margin: 0 0 8px; color: rgba(255,255,255,.45); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mwm-footer a { color: #fff; text-decoration: none; }
.mwm-footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mwm-footer__nav + .mwm-footer__nav { margin-top: 14px; }
.mwm-footer__nav a { font-size: 14px; }
.mwm-footer__nav--meta a { color: rgba(255,255,255,.56); font-size: 12px; }
.mwm-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.45); }
.mwm-footer__anchor { font-size: 18px; opacity: .65; }
.mwm-fastnacht-line--footer { height: 5px; }

[data-mwm-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-mwm-reveal].is-visible { opacity: 1; transform: none; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--mwm-line); border-radius: 10px; }
.search-submit { min-height: 46px; border: 0; border-radius: 10px; background: var(--mwm-navy); color: #fff; padding: 10px 14px; cursor: pointer; }

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

@media (max-width: 1080px) {
  :root { --mwm-header-h: 82px; }

  /*
   * Mobile navigation: keep the menu anchored to the viewport, not to the
   * sticky header. backdrop-filter can otherwise turn the header into the
   * containing block for position:fixed in some mobile browsers and clip the
   * menu to the header height.
   */
  .mwm-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mwm-nav-toggle { display: inline-flex; position: relative; z-index: 1002; }
  .mwm-nav {
    position: fixed;
    z-index: 1001;
    top: calc(var(--mwm-header-h) + 4px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--mwm-header-h) - 4px);
    max-height: calc(100vh - var(--mwm-header-h) - 4px);
    padding: 28px 24px max(50px, env(safe-area-inset-bottom));
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .mwm-nav-open .mwm-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .mwm-nav__list { width: var(--mwm-shell); margin-inline: auto; display: block; padding-bottom: 24px; }
  .mwm-nav__list > li { border-bottom: 1px solid var(--mwm-line); }
  .mwm-nav__list > li > a { width: 100%; padding: 15px 0; font-size: 19px; background: transparent !important; }
  .mwm-nav__list .sub-menu { position: static; min-width: 0; padding: 0 0 14px 14px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
  .mwm-nav__list .sub-menu a { padding: 8px 0; }
  .mwm-layout-sidebar { grid-template-columns: 1fr; }
  .mwm-sidebar { position: static; }
  .mwm-medal-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  :root { --mwm-shell: min(100% - 34px, 1180px); }
  body { font-size: 16px; }
  .mwm-brand { min-width: 0; }
  .mwm-brand__text strong { font-size: 13px; }
  .mwm-hero { min-height: 680px; background-position: 42% center; }
  .mwm-hero__inner { padding-block: 90px; }
  .mwm-section { padding-block: 70px; }
  .mwm-intro-grid { grid-template-columns: 1fr; gap: 35px; }
  .mwm-intro-title { position: static; }
  .mwm-section-head { display: block; }
  .mwm-section-head > :last-child { margin-top: 22px; }
  .mwm-gallery-grid { grid-template-columns: 1fr 1fr; }
  .mwm-gallery-card { min-height: 360px; }
  .mwm-people-grid { grid-template-columns: 1fr 1fr; }
  .mwm-medal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mwm-gallery-index__image { aspect-ratio: 16 / 9.5; }
  .mwm-gallery-index__copy { padding-top: 20px; }
  .mwm-event-detail { grid-template-columns: 1fr; gap: 30px; }
  .mwm-event-detail__panel { position: static; }
  .mwm-footer__grid { grid-template-columns: 1fr 1fr; }
  .mwm-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --mwm-shell: calc(100% - 28px); }
  .mwm-brand__text { display: none; }
  .mwm-hero { min-height: 620px; }
  .mwm-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .mwm-hero__lead { font-size: 1.05rem; }
  .mwm-hero__actions { display: grid; grid-template-columns: 1fr; }
  .mwm-btn { width: 100%; }
  .mwm-page-hero__inner { padding-block: 66px 58px; }
  .mwm-event-card { grid-template-columns: 80px minmax(0,1fr); gap: 16px; padding: 14px; }
  .mwm-event-card__date { min-height: 86px; }
  .mwm-event-card__date strong { font-size: 28px; }
  .mwm-event-card__arrow { display: none; }
  .mwm-event-card__excerpt { display: none; }
  .mwm-gallery-grid,
  .mwm-people-grid,
  .mwm-medal-grid,
  .gallery { grid-template-columns: 1fr; }
  .mwm-gallery-card { min-height: 340px; }
  .mwm-gallery-index__image { aspect-ratio: 4 / 3; border-radius: 14px; }
  .mwm-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .mwm-footer__brand { grid-column: auto; }
  .mwm-footer__bottom { display: block; }
  .mwm-footer__anchor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-mwm-reveal] { opacity: 1; transform: none; }
}

/* Content modules added for the 2026 rebuild. */
.mwm-template-content { margin-top: 70px; }
.mwm-people-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mwm-text-link,
.mwm-back-link a {
  color: var(--mwm-carnival-blue);
  font-weight: 700;
  text-decoration: none;
}
.mwm-text-link:hover,
.mwm-back-link a:hover { text-decoration: underline; }
.mwm-back-link { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid var(--mwm-line); }
.mwm-post-list { display: grid; gap: 18px; }
.mwm-post-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--mwm-line);
  border-radius: var(--mwm-radius);
  background: #fff;
}
.mwm-post-card__meta { margin: 0 0 9px !important; color: var(--mwm-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mwm-post-card h2 { margin: 0; color: var(--mwm-navy); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.12; }
.mwm-post-card h2 a { color: inherit; text-decoration: none; }
.mwm-post-card > p:not(.mwm-post-card__meta) { color: var(--mwm-muted); }
.mwm-event-featured { margin: 0 0 34px; overflow: hidden; border-radius: var(--mwm-radius); }
.mwm-event-featured img { display: block; width: 100%; }
.mwm-comments { padding-bottom: 90px; }
.mwm-comments .comment-list { padding-left: 1.25rem; }

/* The former Event List shortcode remains readable during a staged migration. */
.mwm-legacy-events { color: inherit; }
.mwm-legacy-events ul { list-style: none; margin: 0; padding: 0; }
.mwm-legacy-events .event-list-view,
.mwm-legacy-events .event-list,
.mwm-legacy-events > div { max-width: 100%; }
.mwm-section--navy .mwm-legacy-events a { color: #fff; }
.mwm-section--navy .mwm-legacy-events { color: rgba(255,255,255,.82); }

/* Fallback styling when [mwm_events] or the compatibility [event-list] shortcode is used. */
.mwm-core-events { display: grid; gap: 12px; }
.mwm-core-event { padding: 22px 24px; border: 1px solid var(--mwm-line); border-radius: 18px; background: #fff; }
.mwm-core-event__meta { margin-bottom: 7px; color: var(--mwm-carnival-blue); font-size: 13px; font-weight: 700; }
.mwm-core-event h3 { margin: 0; color: var(--mwm-navy); }
.mwm-core-event h3 a { color: inherit; text-decoration: none; }
.mwm-core-event p { margin-bottom: 0; color: var(--mwm-muted); }
.mwm-section--navy .mwm-core-event { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.13); }
.mwm-section--navy .mwm-core-event h3,
.mwm-section--navy .mwm-core-event h3 a { color: #fff; }
.mwm-section--navy .mwm-core-event p { color: rgba(255,255,255,.68); }

@media (max-width: 820px) {
  .mwm-people-grid--wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mwm-people-grid--wide { grid-template-columns: 1fr; }
}

/* Forms (including Contact Form 7) */
.mwm-prose form p { margin-bottom: 1rem; }
.mwm-prose input[type="text"],
.mwm-prose input[type="email"],
.mwm-prose input[type="tel"],
.mwm-prose input[type="url"],
.mwm-prose input[type="number"],
.mwm-prose input[type="date"],
.mwm-prose select,
.mwm-prose textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--mwm-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mwm-ink);
}
.mwm-prose textarea,
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.mwm-prose input:focus,
.mwm-prose select:focus,
.mwm-prose textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-color: var(--mwm-carnival-blue); outline: 3px solid rgba(45,101,172,.12); }
.mwm-prose input[type="submit"],
.mwm-prose button[type="submit"],
.wpcf7 input[type="submit"] {
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--mwm-navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.wpcf7 .wpcf7-not-valid-tip { margin-top: 5px; font-size: 13px; }
.wpcf7 form .wpcf7-response-output { margin: 1.3rem 0 0; padding: 12px 14px; border-radius: 10px; }

.mwm-to-top {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: var(--mwm-navy);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 12px 30px rgba(16,35,63,.22);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mwm-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 560px) { .mwm-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
