/* Chicago MOLA Hub — public components. Everything is scoped under .mh so the theme and the plugin do not collide.
   Layout adapts to the width of the column the shortcode sits in (container queries), not only to the screen. */

.mh {
  --mh-primary: #0F6FA9;
  --mh-primary-hover: #0b5d8f;
  --mh-navy: #092d47;
  --mh-lime: #D6E027;
  --mh-ink: #0f2233;
  --mh-text: #334a5c;
  --mh-muted: #6a7d8e;
  --mh-line: #e3eaf0;
  --mh-line-strong: #cbd8e3;
  --mh-soft: #f5f8fb;
  --mh-soft-2: #edf3f8;
  --mh-surface: #ffffff;
  --mh-warn: #8a5300;
  --mh-warn-bg: #fff3d6;
  --mh-danger: #a8261b;
  --mh-danger-bg: #fde9e7;
  --mh-success: #17744a;
  --mh-success-bg: #e2f5eb;
  --mh-radius-sm: 10px;
  --mh-radius: 14px;
  --mh-radius-lg: 22px;
  --mh-shadow-sm: 0 1px 2px rgba(9, 45, 71, .06), 0 1px 1px rgba(9, 45, 71, .03);
  --mh-shadow: 0 12px 32px -14px rgba(9, 45, 71, .22), 0 2px 6px rgba(9, 45, 71, .05);
  --mh-shadow-lg: 0 28px 64px -24px rgba(9, 45, 71, .35), 0 4px 12px rgba(9, 45, 71, .06);
  --mh-ring: 0 0 0 4px rgba(15, 111, 169, .18);
  --mh-ease: cubic-bezier(.2, .7, .2, 1);
  --mh-font: inherit;
  --mh-sticky-top: 32px;
  --mh-accent: var(--mh-primary);

  position: relative;
  container: mh / inline-size;
  font-family: var(--mh-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.55;
  color: var(--mh-text);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

/* Neutralise common theme styles inside the components */
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh.mh :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset, legend) { margin: 0; padding: 0; }
.mh.mh :where(p, li, span, a, dd, dt, label, small, input, select, textarea, button, h1, h2, h3, h4, blockquote, em, strong) { font-family: inherit; letter-spacing: inherit; }
.mh.mh :where(p, li, span, dd, dt, small, blockquote) { font-weight: inherit; color: inherit; }
.mh.mh :where(h1, h2, h3, h4) { font-family: inherit; color: var(--mh-ink); text-transform: none; letter-spacing: -.015em; line-height: 1.2; }
.mh.mh :where(ol, ul) { list-style: none; }
.mh.mh :where(a) { color: inherit; text-decoration: none; box-shadow: none; transition: color .15s var(--mh-ease); }
.mh.mh :where(button, input, select, textarea) { font: inherit; color: inherit; margin: 0; }
.mh.mh :where(img) { max-width: 100%; height: auto; display: block; border: 0; }
.mh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mh :focus-visible { outline: 3px solid rgba(15, 111, 169, .45); outline-offset: 2px; border-radius: 8px; }

.mh .mh-stretched { color: inherit; }
.mh .mh-btn, .mh .mh-chip, .mh .mh-segmented__item, .mh .mh-tabs__item { text-transform: none; letter-spacing: 0; text-decoration: none; }

.mh .mh-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh .mh-icon--inline { width: .85em; height: .85em; margin-left: .35em; vertical-align: -.05em; opacity: .6; }

/* ---------- Buttons ---------- */
.mh .mh-btn {
  --mh-btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--mh-btn-h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--mh-ease), border-color .2s var(--mh-ease), color .2s var(--mh-ease), transform .2s var(--mh-ease), box-shadow .2s var(--mh-ease);
}
.mh .mh-btn:active { transform: translateY(1px) scale(.99); }
.mh .mh-btn--sm { --mh-btn-h: 36px; padding: 0 14.5px; font-size: 14px; }
.mh .mh-btn--lg { --mh-btn-h: 54px; padding: 0 25.5px; font-size: 16px; }
.mh .mh-btn--block { width: 100%; }
.mh .mh-btn--primary { background: var(--mh-primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 111, 169, .8); }
.mh .mh-btn--primary:hover { background: var(--mh-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(15, 111, 169, .85); }
.mh .mh-btn--secondary { background: var(--mh-surface); color: var(--mh-ink); border-color: var(--mh-line-strong); }
.mh .mh-btn--secondary:hover { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh .mh-btn--ghost { background: transparent; color: var(--mh-text); }
.mh .mh-btn--ghost:hover { background: var(--mh-soft-2); color: var(--mh-ink); }

.mh .mh-iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--mh-line-strong); background: var(--mh-surface); color: var(--mh-ink);
  transition: border-color .2s var(--mh-ease), background-color .2s var(--mh-ease), color .2s var(--mh-ease);
}
.mh .mh-iconbtn:hover { border-color: var(--mh-primary); color: var(--mh-primary); }

.mh .mh-link { display: inline-flex; align-items: center; gap: 5.5px; color: var(--mh-primary); font-weight: 600; font-size: 14px; }
.mh .mh-link:hover { color: var(--mh-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toolbar, search, selects ---------- */
.mh .mh-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17.5px; }
.mh .mh-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9.5px; flex: 1 1 420px; }

.mh .mh-search { position: relative; flex: 1 1 260px; display: block; }
.mh .mh-search > .mh-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mh-muted); pointer-events: none; }
.mh .mh-search input, .mh .mh-select select {
  width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--mh-line-strong); background: var(--mh-surface);
  color: var(--mh-ink); font-size: 15px; box-shadow: var(--mh-shadow-sm); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--mh-ease), box-shadow .2s var(--mh-ease);
}
.mh .mh-search input { padding: 0 17.5px 0 45px; }
.mh .mh-search input::placeholder { color: #8b9aa8; }
.mh .mh-search input::-webkit-search-cancel-button { cursor: pointer; }
.mh .mh-select { position: relative; display: block; flex: 0 1 auto; }
.mh .mh-select select { padding: 0 41.5px 0 18.5px; cursor: pointer; min-width: 170px; }
.mh .mh-select > .mh-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mh-muted); }
.mh .mh-search input:hover, .mh .mh-select select:hover { border-color: #aebfce; }
.mh .mh-search input:focus, .mh .mh-select select:focus { border-color: var(--mh-primary); box-shadow: var(--mh-ring); }

/* Segmented control (view switch, work arrangement) */
.mh .mh-segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mh-soft-2); }
.mh .mh-segmented__item { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 17.5px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mh-muted); cursor: pointer; transition: all .2s var(--mh-ease); }
.mh .mh-segmented__item:hover { color: var(--mh-ink); }
.mh .mh-segmented__item.is-active { background: var(--mh-surface); color: var(--mh-ink); box-shadow: var(--mh-shadow-sm), 0 0 0 1px rgba(9, 45, 71, .04); }
.mh .mh-segmented__item.is-active .mh-icon { color: var(--mh-primary); }

/* Category chips */
.mh .mh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mh .mh-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mh-line); background: var(--mh-surface); font-size: 14px; font-weight: 600; color: var(--mh-text); transition: all .2s var(--mh-ease); }
.mh .mh-chip:hover { border-color: var(--mh-line-strong); color: var(--mh-ink); transform: translateY(-1px); }
.mh .mh-chip.is-active { background: var(--mh-navy); border-color: var(--mh-navy); color: #fff; }
.mh .mh-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mh-dot, var(--mh-primary)); flex: none; }
.mh .mh-chip.is-active .mh-chip__dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }

/* Tags and badges */
.mh .mh-tag { display: inline-flex; align-items: center; gap: 6.5px; height: 26px; padding: 0 10.5px; border-radius: 999px; background: var(--mh-soft-2); color: var(--mh-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mh .mh-tag .mh-icon { width: 14px; height: 14px; color: var(--mh-muted); }
.mh .mh-tag--light { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.mh .mh-badge { display: inline-flex; align-items: center; gap: 5.5px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.mh .mh-badge .mh-icon { width: 13px; height: 13px; }
.mh .mh-badge--featured { background: var(--mh-lime); color: var(--mh-navy); }
.mh .mh-badge--cancelled { background: var(--mh-danger-bg); color: var(--mh-danger); }
.mh .mh-badge--postponed, .mh .mh-badge--rescheduled { background: var(--mh-warn-bg); color: var(--mh-warn); }
.mh .mh-badge--ended { background: rgba(255, 255, 255, .18); color: #fff; }

.mh .mh-meta { display: flex; flex-wrap: wrap; gap: 5.5px 17.5px; font-size: 14px; color: var(--mh-muted); }
.mh .mh-meta li { display: inline-flex; align-items: center; gap: 6.5px; }
.mh .mh-meta .mh-icon { color: var(--mh-primary); width: 16px; height: 16px; }
.mh .mh-meta--lg { font-size: 16px; gap: 8px 22px; }

/* Results region: dims while a filter change loads, with a thin progress bar */
.mh .mh-results { transition: opacity .25s var(--mh-ease); }
.mh[aria-busy="true"] .mh-results { opacity: .45; pointer-events: none; }
.mh[aria-busy="true"]::before { content: ""; position: absolute; top: -8px; left: 0; height: 3px; width: 35%; border-radius: 3px; background: linear-gradient(90deg, var(--mh-primary), var(--mh-lime)); animation: mh-progress 1s var(--mh-ease) infinite; z-index: 5; }
@keyframes mh-progress { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

.mh .mh-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mh .mh-count { font-size: 14px; color: var(--mh-muted); font-weight: 500; }

.mh .mh-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--mh-line); }
.mh .mh-tabs__item { position: relative; padding: 9.5px 0 12px; font-weight: 600; font-size: 15px; color: var(--mh-muted); }
.mh .mh-tabs__item:hover { color: var(--mh-ink); }
.mh .mh-tabs__item.is-active { color: var(--mh-ink); }
.mh .mh-tabs__item.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mh-primary); }

/* Empty and error states */
.mh .mh-empty { display: flex; flex-direction: column; align-items: center; gap: 9.5px; padding: clamp(40px, 7cqi, 64px) 24px; text-align: center; border: 1px dashed var(--mh-line-strong); border-radius: var(--mh-radius-lg); background: var(--mh-soft); }
.mh .mh-empty--page { border-style: solid; background: var(--mh-surface); }
.mh .mh-empty__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6.5px; border-radius: 18px; background: var(--mh-surface); color: var(--mh-primary); box-shadow: var(--mh-shadow-sm); }
.mh .mh-empty__icon .mh-icon { width: 26px; height: 26px; }
.mh .mh-empty__title { font-size: 18.5px; font-weight: 700; color: var(--mh-ink); }
.mh .mh-empty__text { color: var(--mh-muted); max-width: 42ch; }
.mh .mh-empty__actions, .mh .mh-empty .mh-btn { margin-top: 9.5px; }
.mh .mh-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Pagination */
.mh .mh-pagination { display: flex; align-items: center; justify-content: center; gap: 6.5px; margin-top: 32px; }
.mh .mh-pagination__page { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mh-text); }
.mh .mh-pagination__page:hover { background: var(--mh-soft-2); color: var(--mh-ink); }
.mh .mh-pagination__page.is-active { background: var(--mh-navy); color: #fff; }
.mh .mh-pagination__gap { color: var(--mh-muted); padding: 0 3px; }

/* Stretched link: the whole card is clickable while the markup keeps a single real link */
.mh .mh-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mh .mh-stretched:focus-visible { outline: none; }

/* ---------- Calendar ---------- */
.mh .mh-cal { background: var(--mh-surface); border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); padding: clamp(16px, 2.4cqi, 28px); box-shadow: var(--mh-shadow-sm); }
.mh .mh-cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mh .mh-cal__title { font-size: clamp(23px, 3.2cqi, 32px); font-weight: 800; }
.mh .mh-cal__title span { color: var(--mh-muted); font-weight: 400; }
.mh .mh-cal__nav { display: flex; align-items: center; gap: 8px; }

.mh .mh-cal__grid { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: visible; }
.mh .mh-cal__weekdays, .mh .mh-cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mh .mh-cal__weekdays span { padding: 11px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-muted); background: var(--mh-soft); }
.mh .mh-cal__weekdays span:first-child { border-top-left-radius: var(--mh-radius); }
.mh .mh-cal__weekdays span:last-child { border-top-right-radius: var(--mh-radius); }
.mh .mh-cal__week + .mh-cal__week, .mh .mh-cal__weekdays + .mh-cal__week { border-top: 1px solid var(--mh-line); }
.mh .mh-cal__day { position: relative; min-height: 124px; padding: 8px 7px 9.5px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh .mh-cal__day + .mh-cal__day { border-left: 1px solid var(--mh-line); }
.mh .mh-cal__day.is-out { background: repeating-linear-gradient(135deg, var(--mh-soft), var(--mh-soft) 6px, #fbfcfd 6px, #fbfcfd 12px); }
.mh .mh-cal__day.is-out .mh-cal__num { color: #a7b4c0; }
.mh .mh-cal__num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 2px; border-radius: 50%; font-size: 13.5px; font-weight: 700; color: var(--mh-ink); }
.mh .mh-cal__day.is-today .mh-cal__num { background: var(--mh-lime); color: var(--mh-navy); box-shadow: 0 6px 14px -6px rgba(214, 224, 39, .9); }
.mh .mh-cal__day.is-today { background: linear-gradient(180deg, rgba(214, 224, 39, .09), transparent 60%); }

.mh .mh-cal__event { position: relative; display: flex; align-items: baseline; gap: 5.5px; min-width: 0; padding: 5px 8px 5px 12px; border-radius: 8px; background: color-mix(in srgb, var(--mh-dot) 11%, #fff); color: var(--mh-ink); font-size: 12.5px; line-height: 1.3; font-weight: 600; transition: background-color .2s var(--mh-ease), transform .2s var(--mh-ease); }
.mh .mh-cal__event::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--mh-dot); }
.mh .mh-cal__event:hover { background: color-mix(in srgb, var(--mh-dot) 20%, #fff); transform: translateY(-1px); }
.mh .mh-cal__time { flex: none; color: var(--mh-muted); font-weight: 600; font-size: 11.5px; }
.mh .mh-cal__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh .mh-cal__event.is-cancelled .mh-cal__name { text-decoration: line-through; opacity: .65; }
.mh .mh-cal__day.is-past .mh-cal__event { opacity: .62; }

.mh .mh-cal__more { position: relative; }
.mh .mh-cal__more summary { list-style: none; display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--mh-primary); cursor: pointer; }
.mh .mh-cal__more summary::-webkit-details-marker { display: none; }
.mh .mh-cal__more summary:hover { background: var(--mh-soft-2); }
.mh .mh-cal__popover { position: absolute; z-index: 30; top: calc(100% + 6px); left: -8px; width: 260px; display: flex; flex-direction: column; gap: 5px; padding: 13.5px; background: var(--mh-surface); border: 1px solid var(--mh-line); border-radius: var(--mh-radius); box-shadow: var(--mh-shadow-lg); animation: mh-pop .18s var(--mh-ease); }
.mh .mh-cal__popover-title { font-size: 13px; font-weight: 700; color: var(--mh-ink); margin-bottom: 3px; }
.mh .mh-cal__week .mh-cal__day:nth-child(n+5) .mh-cal__popover { left: auto; right: -8px; }
@keyframes mh-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* Agenda: replaces the grid in narrow columns and on phones */
.mh .mh-agenda { display: none; }
.mh .mh-agenda__day { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.mh .mh-agenda__day + .mh-agenda__day { border-top: 1px solid var(--mh-line); }
.mh .mh-agenda__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 14px; background: var(--mh-soft); }
.mh .mh-agenda__date span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-muted); }
.mh .mh-agenda__date strong { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--mh-ink); }
.mh .mh-agenda__day.is-today .mh-agenda__date { background: var(--mh-lime); }
.mh .mh-agenda__day.is-today .mh-agenda__date span, .mh .mh-agenda__day.is-today .mh-agenda__date strong { color: var(--mh-navy); }
.mh .mh-agenda__day.is-past { opacity: .6; }
.mh .mh-agenda__events { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh .mh-agenda__event { display: flex; flex-direction: column; gap: 2.5px; padding: 13px 16px 13px 17.5px; border-radius: 12px; background: color-mix(in srgb, var(--mh-dot) 8%, #fff); box-shadow: inset 3px 0 0 var(--mh-dot); }
.mh .mh-agenda__event:hover { background: color-mix(in srgb, var(--mh-dot) 15%, #fff); }
.mh .mh-agenda__title { font-weight: 700; color: var(--mh-ink); line-height: 1.3; }
.mh .mh-agenda__meta { font-size: 13.5px; color: var(--mh-muted); }
.mh .mh-cal .mh-empty { margin-top: 20px; }

/* ---------- Event cards (list view) ---------- */
.mh .mh-event-list { display: grid; gap: 16px; }
.mh .mh-event-card {
  position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr) 210px; gap: 21.5px; align-items: stretch;
  padding: 18.5px; border-radius: var(--mh-radius-lg); background: var(--mh-surface); border: 1px solid var(--mh-line);
  transition: transform .25s var(--mh-ease), box-shadow .25s var(--mh-ease), border-color .25s var(--mh-ease);
}
.mh .mh-event-card:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow); border-color: transparent; }
.mh .mh-event-card:has(.mh-stretched:focus-visible) { outline: 3px solid rgba(15, 111, 169, .45); outline-offset: 2px; }
.mh .mh-event-card.is-past { opacity: .78; }

.mh .mh-date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; padding: 11px 0 12px; border-radius: 16px; background: var(--mh-navy); color: #fff; text-align: center; line-height: 1; }
.mh .mh-date__month { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mh-lime); }
.mh .mh-date__day { font-size: 30px; font-weight: 800; margin: 5px 0 4px; letter-spacing: -.02em; }
.mh .mh-date__dow { font-size: 12px; font-weight: 600; opacity: .7; }
.mh .mh-date--lg { width: 68px; flex: none; padding: 12px 0; }

.mh .mh-event-card__body { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 2.5px 0; }
.mh .mh-event-card__tags { display: flex; flex-wrap: wrap; gap: 6.5px; }
.mh .mh-event-card__tags:empty { display: none; }
.mh .mh-event-card__title { font-size: 19.5px; font-weight: 700; line-height: 1.25; }
.mh .mh-event-card__title a:hover { color: var(--mh-primary); }
.mh .mh-event-card__summary { color: var(--mh-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh .mh-event-card .mh-meta { margin-top: auto; padding-top: 3px; }

.mh .mh-event-card__media { position: relative; border-radius: 16px; overflow: hidden; background: var(--mh-soft-2); min-height: 150px; }
.mh .mh-event-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mh-ease); }
.mh .mh-event-card:hover .mh-event-card__media img { transform: scale(1.04); }
.mh .mh-event-card__media.is-placeholder { display: grid; place-items: center; color: color-mix(in srgb, var(--mh-dot) 55%, #fff); background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--mh-dot) 22%, #fff), transparent 55%), radial-gradient(circle at 80% 90%, rgba(214, 224, 39, .25), transparent 50%), var(--mh-soft); }
.mh .mh-event-card__media.is-placeholder > .mh-icon { width: 40px; height: 40px; }
.mh .mh-event-card__go { position: absolute; right: 11px; bottom: 11px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mh-surface); color: var(--mh-ink); box-shadow: var(--mh-shadow); transition: background-color .25s var(--mh-ease), color .25s var(--mh-ease), transform .25s var(--mh-ease); }
.mh .mh-event-card:hover .mh-event-card__go { background: var(--mh-primary); color: #fff; transform: translateX(2px); }

/* ---------- Featured events (above the calendar / list) ---------- */
.mh .mh-featured { margin-bottom: 30px; }
.mh .mh-featured__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.mh .mh-feature {
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(214, 224, 39, .2), transparent 42%), radial-gradient(circle at 0% 100%, rgba(15, 111, 169, .65), transparent 58%), var(--mh-navy);
  box-shadow: 0 22px 44px -24px rgba(9, 45, 71, .75); transition: transform .3s var(--mh-ease), box-shadow .3s var(--mh-ease);
}
.mh .mh-feature:hover { transform: translateY(-4px); box-shadow: 0 32px 60px -26px rgba(9, 45, 71, .85); }
.mh .mh-feature:has(.mh-stretched:focus-visible) { outline: 3px solid var(--mh-lime); outline-offset: 3px; }
.mh .mh-feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255, 255, 255, .06); }
.mh .mh-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mh-ease); }
.mh .mh-feature:hover .mh-feature__media img { transform: scale(1.05); }
.mh .mh-feature__media.is-placeholder { display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 255, 255, .12) 1.5px, transparent 1.6px) 0 0 / 18px 18px, rgba(255, 255, 255, .04); }
.mh .mh-feature__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 26px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .16); line-height: 1; }
.mh .mh-feature__date span { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mh-lime); }
.mh .mh-feature__date strong { margin-top: 6px; font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.mh .mh-feature__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 26px; }
.mh .mh-feature__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mh .mh-feature__title { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.mh .mh-feature__title a { color: inherit; }
.mh .mh-feature__summary { font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mh .mh-feature .mh-meta { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.mh .mh-feature .mh-meta .mh-icon { color: var(--mh-lime); }
.mh .mh-feature__cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding: 12px 20px; border-radius: 999px; background: var(--mh-lime); color: var(--mh-navy); font-size: 15px; font-weight: 700; transition: gap .25s var(--mh-ease), background-color .25s var(--mh-ease); }
.mh .mh-feature:hover .mh-feature__cta { gap: 12px; background: #fff; }
.mh .mh-feature .mh-badge--featured { box-shadow: 0 6px 16px -6px rgba(214, 224, 39, .8); }

/* A single featured event gets a wide spotlight: text left, image right */
.mh .mh-featured--single .mh-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.mh .mh-featured--single .mh-feature__media { order: 2; aspect-ratio: auto; min-height: 340px; }
.mh .mh-featured--single .mh-feature__body { justify-content: center; gap: 16px; padding: clamp(28px, 4cqi, 48px); }
.mh .mh-featured--single .mh-feature__title { font-size: clamp(26px, 3.4cqi, 36px); }
.mh .mh-featured--single .mh-feature__summary { font-size: 17px; -webkit-line-clamp: 4; }
.mh .mh-featured--single .mh-meta { font-size: 15.5px; }
.mh .mh-featured--single .mh-feature__cta { margin-top: 8px; }

/* ---------- Opportunity types ---------- */
.mh .mh-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.mh .mh-type {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 17px 17.5px; border-radius: 18px;
  background: var(--mh-surface); border: 1px solid var(--mh-line);
  transition: transform .25s var(--mh-ease), box-shadow .25s var(--mh-ease), border-color .25s var(--mh-ease), background-color .25s var(--mh-ease);
}
.mh .mh-type:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow); border-color: transparent; }
.mh .mh-type__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10.5px; border-radius: 14px; background: color-mix(in srgb, var(--mh-accent) 11%, #fff); color: var(--mh-accent); transition: all .25s var(--mh-ease); }
.mh .mh-type__icon .mh-icon { width: 22px; height: 22px; }
.mh .mh-type__name { font-weight: 700; font-size: 15px; color: var(--mh-ink); }
.mh .mh-type__count { font-size: 13px; color: var(--mh-muted); font-weight: 500; }
.mh .mh-type.is-active { background: var(--mh-navy); border-color: var(--mh-navy); box-shadow: 0 16px 30px -16px rgba(9, 45, 71, .8); }
.mh .mh-type.is-active .mh-type__icon { background: var(--mh-lime); color: var(--mh-navy); }
.mh .mh-type.is-active .mh-type__name { color: #fff; }
.mh .mh-type.is-active .mh-type__count { color: rgba(255, 255, 255, .7); }
.mh .mh-type.is-empty:not(.is-active) { opacity: .55; }

/* Per-type accent colors, shared by tiles, rows and detail pages */
[data-type="employment"] { --mh-accent: #0F6FA9; }
.mh [data-type="research"], .mh[data-type="research"] { --mh-accent: #6d4bd1; }
.mh [data-type="internship"], .mh[data-type="internship"] { --mh-accent: #0e8a6b; }
.mh [data-type="scholarship"], .mh[data-type="scholarship"] { --mh-accent: #c07a09; }
.mh [data-type="board"], .mh[data-type="board"] { --mh-accent: #0f4c75; }
.mh [data-type="volunteer"], .mh[data-type="volunteer"] { --mh-accent: #d0406f; }

/* ---------- Opportunity rows ---------- */
.mh .mh-rows { display: grid; gap: 14px; }
.mh .mh-row {
  position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto 44px; align-items: center; gap: 24px;
  padding: 26px 28px 26px 26px; border-radius: 20px; background: var(--mh-surface); border: 1px solid var(--mh-line); overflow: hidden;
  transition: transform .25s var(--mh-ease), box-shadow .25s var(--mh-ease), border-color .25s var(--mh-ease);
}
/* Accent stripe that slides in on hover, in the opportunity type's color */
.mh .mh-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mh-accent); transform: scaleY(0); transform-origin: center; transition: transform .3s var(--mh-ease); }
.mh .mh-row:hover { transform: translateY(-3px); box-shadow: var(--mh-shadow); border-color: transparent; }
.mh .mh-row:hover::before { transform: scaleY(1); }
.mh .mh-row:has(.mh-stretched:focus-visible) { outline: 3px solid rgba(15, 111, 169, .45); outline-offset: 2px; }
.mh .mh-row__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: color-mix(in srgb, var(--mh-accent) 10%, #fff); color: var(--mh-accent); transition: background-color .25s var(--mh-ease), color .25s var(--mh-ease); }
.mh .mh-row__icon .mh-icon { width: 26px; height: 26px; }
.mh .mh-row:hover .mh-row__icon { background: var(--mh-accent); color: #fff; }
.mh .mh-row__main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mh .mh-row__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mh-accent); line-height: 1; }
.mh .mh-row__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }
.mh .mh-row__title { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--mh-ink); }
.mh .mh-row__title a:hover { color: var(--mh-primary); }
.mh .mh-row__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; color: var(--mh-muted); line-height: 1.4; }
.mh .mh-row__meta span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.mh .mh-row__meta .mh-icon { width: 16px; height: 16px; color: #9aabba; }
.mh .mh-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; min-width: 150px; }
.mh .mh-row__date { font-size: 13px; color: var(--mh-muted); }
.mh .mh-row__open { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mh-muted); white-space: nowrap; }
.mh .mh-row__open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb67c; box-shadow: 0 0 0 4px rgba(47, 182, 124, .15); }
.mh .mh-row__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mh-line-strong); color: var(--mh-ink); transition: all .25s var(--mh-ease); }
.mh .mh-row:hover .mh-row__go { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; transform: translateX(3px); }

.mh .mh-deadline { display: inline-flex; align-items: center; gap: 6.5px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--mh-soft-2); color: var(--mh-text); }
.mh .mh-deadline .mh-icon { width: 14px; height: 14px; }
.mh .mh-deadline--soon { background: var(--mh-warn-bg); color: var(--mh-warn); }
.mh .mh-deadline--urgent { background: var(--mh-danger-bg); color: var(--mh-danger); }
.mh .mh-deadline--urgent .mh-icon { animation: mh-pulse 1.6s ease-in-out infinite; }
@keyframes mh-pulse { 50% { opacity: .35; } }

/* ---------- Detail pages ---------- */
.mh .mh-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; font-size: 14.5px; font-weight: 600; color: var(--mh-muted); }
.mh .mh-back:hover { color: var(--mh-primary); }
.mh .mh-back .mh-icon { transition: transform .2s var(--mh-ease); }
.mh .mh-back:hover .mh-icon { transform: translateX(-3px); }

.mh .mh-hero {
  position: relative; display: flex; align-items: flex-end; min-height: clamp(300px, 46cqi, 480px); border-radius: var(--mh-radius-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 85% 15%, rgba(214, 224, 39, .28), transparent 38%), radial-gradient(circle at 10% 110%, rgba(15, 111, 169, .75), transparent 55%), var(--mh-navy);
}
.mh .mh-hero__media { position: absolute; inset: 0; z-index: -1; }
.mh .mh-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.mh .mh-hero.has-image .mh-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 45, 71, .95) 0%, rgba(9, 45, 71, .55) 45%, rgba(9, 45, 71, .08) 100%); }
.mh .mh-hero__content { display: flex; flex-direction: column; gap: 13.5px; width: 100%; padding: clamp(24px, 4.5cqi, 48px); color: #fff; }
.mh .mh-hero__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.mh .mh-hero__title { font-size: clamp(30.5px, 5cqi, 53px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; color: #fff; max-width: 24ch; }
.mh .mh-hero__summary { font-size: clamp(16px, 1.9cqi, 19px); max-width: 62ch; color: rgba(255, 255, 255, .86); }
.mh .mh-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 25.5px; margin-top: 4px; font-weight: 600; }
.mh .mh-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.mh .mh-hero__facts .mh-icon { color: var(--mh-lime); }

.mh .mh-detail { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(28px, 4.5cqi, 56px); margin-top: clamp(28px, 4cqi, 44px); align-items: start; }
.mh .mh-detail__aside { position: sticky; top: var(--mh-sticky-top); }
.mh .mh-section + .mh-section { margin-top: 48px; }
.mh .mh-section__title { font-size: 24px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 16px; color: var(--mh-ink); }
.mh .mh-prose { font-size: 17.5px; line-height: 1.75; color: #24384a; font-weight: 400; max-width: 72ch; }
.mh .mh-prose p { margin: 0 0 1.05em; }
.mh .mh-prose p:last-child { margin-bottom: 0; }
.mh .mh-prose a { color: var(--mh-primary); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.mh .mh-prose h2, .mh .mh-prose h3, .mh .mh-prose h4 { margin: 1.6em 0 .55em; font-weight: 800; color: var(--mh-ink); line-height: 1.25; }
.mh .mh-prose h2 { font-size: 21px; }
.mh .mh-prose h3 { font-size: 18px; }
.mh .mh-prose h4 { font-size: 16.5px; }
.mh .mh-prose > :first-child { margin-top: 0; }
.mh .mh-prose ul, .mh .mh-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.mh .mh-prose ul { list-style: disc; }
.mh .mh-prose ol { list-style: decimal; }
.mh .mh-prose li { margin: .35em 0; padding-left: .2em; }
.mh .mh-prose li::marker { color: var(--mh-primary); font-weight: 700; }
.mh .mh-prose blockquote { margin: 1.4em 0; padding: .9em 1.25em; border-left: 4px solid var(--mh-lime); border-radius: 0 12px 12px 0; background: var(--mh-soft); color: var(--mh-ink); font-size: 1.08em; }
.mh .mh-prose strong { color: var(--mh-ink); font-weight: 700; }
.mh .mh-prose em { font-style: italic; }
/* Imported text often carries blank lines; paragraph margins already give the rhythm, so they are collapsed. */
.mh .mh-prose p:has(> br:only-child) { display: none; }

.mh .mh-panel { padding: 24px; border-radius: var(--mh-radius-lg); background: var(--mh-surface); border: 1px solid var(--mh-line); box-shadow: var(--mh-shadow); }
.mh .mh-panel__date { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--mh-line); }
.mh .mh-panel__date strong { display: block; color: var(--mh-ink); font-size: 16.5px; line-height: 1.35; }
.mh .mh-panel__date span { color: var(--mh-muted); font-size: 14.5px; }
.mh .mh-panel__deadline { display: flex; flex-direction: column; align-items: flex-start; gap: 6.5px; padding-bottom: 20px; border-bottom: 1px solid var(--mh-line); }
.mh .mh-panel__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mh-muted); }
.mh .mh-panel__deadline strong { font-size: 23px; font-weight: 800; color: var(--mh-ink); letter-spacing: -.01em; }
.mh .mh-panel__actions { display: grid; gap: 9.5px; margin-top: 20px; }
.mh .mh-panel__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.mh .mh-panel__note { margin: 0; text-align: center; font-size: 13.5px; color: var(--mh-muted); word-break: break-all; }

.mh .mh-facts { display: grid; gap: 13px; padding: 20px 0 0; }
.mh .mh-facts div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mh .mh-facts dt { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--mh-muted); }
.mh .mh-facts dt .mh-icon { color: var(--mh-primary); width: 17px; height: 17px; }
.mh .mh-facts dd { font-weight: 700; color: var(--mh-ink); text-align: right; }

.mh .mh-dropdown { position: relative; }
.mh .mh-dropdown summary { list-style: none; }
.mh .mh-dropdown summary::-webkit-details-marker { display: none; }
.mh .mh-dropdown__menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 240px; padding: 6.5px; border-radius: var(--mh-radius); background: var(--mh-surface); border: 1px solid var(--mh-line); box-shadow: var(--mh-shadow-lg); animation: mh-pop .18s var(--mh-ease); }
.mh .mh-dropdown__menu a { display: block; padding: 11px 13.5px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--mh-ink); }
.mh .mh-dropdown__menu a:hover { background: var(--mh-soft-2); color: var(--mh-primary); }

.mh .mh-location { display: grid; gap: 16px; }
.mh .mh-location__text { display: flex; flex-direction: column; gap: 3px; }
.mh .mh-location__text strong { color: var(--mh-ink); font-size: 17px; }
.mh .mh-location__text span { color: var(--mh-muted); }
.mh .mh-location__text .mh-link { margin-top: 5.5px; }
.mh .mh-map { aspect-ratio: 16 / 9; border-radius: var(--mh-radius-lg); overflow: hidden; border: 1px solid var(--mh-line); background: var(--mh-soft); }
.mh .mh-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.mh .mh-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mh .mh-gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--mh-radius); overflow: hidden; background: var(--mh-soft-2); cursor: zoom-in; }
.mh .mh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--mh-ease); }
.mh .mh-gallery__item:hover img { transform: scale(1.05); }

.mh .mh-callout { display: flex; gap: 16px; padding: 21.5px 24px; border-radius: var(--mh-radius-lg); background: var(--mh-soft); }
.mh .mh-callout__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--mh-surface); color: var(--mh-primary); box-shadow: var(--mh-shadow-sm); }
.mh .mh-callout .mh-section__title { font-size: 17.5px; margin-bottom: 5.5px; }

.mh .mh-files { display: grid; gap: 8px; }
.mh .mh-files a { display: flex; align-items: center; gap: 10.5px; padding: 13.5px 16px; border-radius: 12px; border: 1px solid var(--mh-line); font-weight: 600; color: var(--mh-ink); transition: border-color .2s var(--mh-ease), color .2s var(--mh-ease); }
.mh .mh-files a:hover { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh .mh-files .mh-icon { color: var(--mh-primary); }

/* Opportunity detail header */
.mh .mh-opp-hero {
  display: flex; align-items: flex-start; gap: clamp(16px, 3cqi, 28px); padding: clamp(24px, 4.5cqi, 44px); border-radius: var(--mh-radius-lg);
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--mh-accent) 14%, transparent), transparent 45%), linear-gradient(180deg, var(--mh-soft), #fff);
  border: 1px solid var(--mh-line);
}
.mh .mh-opp-hero__icon { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 22px; background: var(--mh-accent); color: #fff; box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--mh-accent) 80%, transparent); }
.mh .mh-opp-hero__icon .mh-icon { width: 34px; height: 34px; }
.mh .mh-opp-hero__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh .mh-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mh-accent, var(--mh-primary)); }
.mh .mh-opp-hero__title { font-size: clamp(28px, 4.4cqi, 45px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.mh .mh-opp-hero__org { font-size: 18px; font-weight: 600; color: var(--mh-text); }
.mh .mh-opp-hero .mh-meta { margin-top: 5.5px; }
.mh .mh-opp-cover { margin-top: 20px; border-radius: var(--mh-radius-lg); overflow: hidden; max-height: 380px; }
.mh .mh-opp-cover img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; }

/* ---------- Submit form ---------- */
.mh .mh-submit { max-width: 880px; margin-inline: auto; }
.mh .mh-form { display: block; }
.mh .mh-fieldset { margin: 0 0 20px; padding: clamp(20px, 3.5cqi, 32px); border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); background: var(--mh-surface); box-shadow: var(--mh-shadow-sm); min-width: 0; }
.mh .mh-fieldset__legend { float: left; width: 100%; display: flex; align-items: flex-start; gap: 14.5px; margin-bottom: 24px; padding: 0; }
.mh .mh-fieldset__legend + * { clear: both; }
.mh .mh-fieldset__legend > span:last-child { display: flex; flex-direction: column; gap: 2.5px; font-size: 19px; font-weight: 800; color: var(--mh-ink); letter-spacing: -.01em; }
.mh .mh-fieldset__legend small { font-size: 14.5px; font-weight: 400; color: var(--mh-muted); letter-spacing: 0; }
.mh .mh-step { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--mh-navy); color: var(--mh-lime); font-weight: 800; font-size: 15px; }

.mh .mh-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17.5px 20px; }
.mh .mh-form__grid + .mh-field, .mh .mh-field + .mh-form__grid, .mh .mh-field--wide + .mh-field--wide { margin-top: 17.5px; }
.mh .mh-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mh .mh-field--wide { grid-column: 1 / -1; }
.mh .mh-field label, .mh .mh-label { font-size: 14.5px; font-weight: 700; color: var(--mh-ink); }
.mh .mh-req { color: var(--mh-primary); }
.mh .mh-optional { font-weight: 400; font-size: 13px; color: var(--mh-muted); }
.mh .mh-field input, .mh .mh-field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--mh-line-strong); background: var(--mh-surface);
  color: var(--mh-ink); font-size: 16px; line-height: 1.5; outline: none; box-shadow: none; transition: border-color .2s var(--mh-ease), box-shadow .2s var(--mh-ease);
}
.mh .mh-field textarea { resize: vertical; min-height: 130px; }
.mh .mh-field input::placeholder, .mh .mh-field textarea::placeholder { color: #98a6b3; }
.mh .mh-field input:hover, .mh .mh-field textarea:hover { border-color: #adbfcf; }
.mh .mh-field input:focus, .mh .mh-field textarea:focus { border-color: var(--mh-primary); box-shadow: var(--mh-ring); }
.mh .mh-field__help { font-size: 13px; color: var(--mh-muted); }
.mh .mh-field__error { display: none; font-size: 13.5px; font-weight: 600; color: var(--mh-danger); }
.mh .mh-field.has-error .mh-field__error { display: block; }
.mh .mh-field.has-error input, .mh .mh-field.has-error textarea { border-color: var(--mh-danger); }
.mh .mh-field.has-error input:focus, .mh .mh-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(168, 38, 27, .14); }
.mh .mh-counter { align-self: flex-end; margin-top: -4px; font-size: 12px; color: var(--mh-muted); }

.mh .mh-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9.5px; }
.mh .mh-choice { position: relative; cursor: pointer; }
.mh .mh-choice input, .mh .mh-segmented--form input { position: absolute; opacity: 0; pointer-events: none; }
.mh .mh-choice__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 14.5px 8px; border-radius: 16px; border: 1.5px solid var(--mh-line-strong); background: var(--mh-surface); text-align: center; font-weight: 700; font-size: 14px; color: var(--mh-ink); transition: all .2s var(--mh-ease); }
.mh .mh-choice__box .mh-icon { width: 26px; height: 26px; color: var(--mh-primary); }
.mh .mh-choice:hover .mh-choice__box { border-color: #9fb4c6; transform: translateY(-1px); }
.mh .mh-choice input:checked + .mh-choice__box { border-color: var(--mh-primary); background: color-mix(in srgb, var(--mh-primary) 7%, #fff); box-shadow: var(--mh-ring); }
.mh .mh-choice input:focus-visible + .mh-choice__box { outline: 3px solid rgba(15, 111, 169, .45); outline-offset: 2px; }
.mh .mh-field.has-error .mh-choice__box { border-color: var(--mh-danger); }

.mh .mh-segmented--form { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.mh .mh-segmented--form .mh-segmented__item { padding: 0; }
.mh .mh-segmented--form .mh-segmented__item > span { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 17.5px; border-radius: 999px; transition: all .2s var(--mh-ease); }
.mh .mh-segmented--form input:checked + span { background: var(--mh-surface); color: var(--mh-ink); box-shadow: var(--mh-shadow-sm); }
.mh .mh-segmented--form input:checked + span .mh-icon { color: var(--mh-primary); }
.mh .mh-segmented--form input:focus-visible + span { outline: 3px solid rgba(15, 111, 169, .45); }

.mh .mh-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.mh .mh-form__note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mh-muted); }
.mh .mh-form__note .mh-icon { color: var(--mh-success); }
.mh .mh-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.mh .mh-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: mh-spin .7s linear infinite; }
.mh .mh-btn.is-loading { pointer-events: none; }
.mh .mh-btn.is-loading .mh-spinner { display: inline-block; }
.mh .mh-btn.is-loading .mh-icon { display: none; }
@keyframes mh-spin { to { transform: rotate(360deg); } }

.mh .mh-alert { display: flex; align-items: flex-start; gap: 10.5px; margin-bottom: 20px; padding: 15px 18.5px; border-radius: var(--mh-radius); background: var(--mh-warn-bg); color: var(--mh-warn); font-weight: 600; }
.mh .mh-alert--error { background: var(--mh-danger-bg); color: var(--mh-danger); }
.mh .mh-alert .mh-icon { margin-top: .15em; }
.mh .mh-alert[hidden], .mh .mh-success[hidden], .mh .mh-form[hidden] { display: none; }

.mh .mh-success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(40px, 7cqi, 64px) 24px; text-align: center; border-radius: var(--mh-radius-lg); background: radial-gradient(circle at 50% 0%, rgba(214, 224, 39, .18), transparent 55%), var(--mh-surface); border: 1px solid var(--mh-line); box-shadow: var(--mh-shadow); outline: none; animation: mh-rise .5s var(--mh-ease); }
.mh .mh-success__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--mh-success-bg); color: var(--mh-success); }
.mh .mh-success__icon .mh-icon { width: 34px; height: 34px; stroke-width: 2.5; }
.mh .mh-success__title { font-size: clamp(22.5px, 3.5cqi, 30.5px); font-weight: 800; }
.mh .mh-success__text { max-width: 48ch; color: var(--mh-muted); }
.mh .mh-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9.5px; margin-top: 12px; }
@keyframes mh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive (container width) ---------- */
@container mh (max-width: 960px) {
  .mh .mh-detail { grid-template-columns: minmax(0, 1fr); }
  .mh .mh-detail__aside { position: static; order: -1; }
  .mh .mh-event-card { grid-template-columns: 72px minmax(0, 1fr) 170px; }
}

@container mh (max-width: 760px) {
  .mh .mh-featured--single .mh-feature { display: flex; }
  .mh .mh-featured--single .mh-feature__media { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
  .mh .mh-featured--single .mh-feature__body { padding: 24px; }
  .mh .mh-cal__grid { display: none; }
  .mh .mh-agenda { display: block; }
  .mh .mh-cal { padding: 16px 17.5px 8px; }
  .mh .mh-cal__bar { margin-bottom: 8px; }
  .mh .mh-row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .mh .mh-row__icon { width: 48px; height: 48px; border-radius: 14px; }
  .mh .mh-row__icon .mh-icon { width: 22px; height: 22px; }
  .mh .mh-row__title { font-size: 18px; }
  .mh .mh-row__meta { font-size: 14px; gap: 6px 16px; }
  .mh .mh-row__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; text-align: left; min-width: 0; }
  .mh .mh-row__go { display: none; }
}

@container mh (max-width: 640px) {
  .mh .mh-toolbar { flex-direction: column; align-items: stretch; }
  .mh .mh-filters { flex: none; }
  .mh .mh-search { flex-basis: 100%; }
  .mh .mh-select { flex: 1 1 140px; }
  .mh .mh-select select { min-width: 0; }
  .mh .mh-segmented { display: flex; }
  .mh .mh-segmented__item { flex: 1; }
  .mh .mh-toolbar > .mh-btn { width: 100%; }
  .mh .mh-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -2px; padding: 2px 2px 6.5px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .mh .mh-chips::-webkit-scrollbar { display: none; }
  .mh .mh-chip { flex: none; }
  .mh .mh-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9.5px; }
  .mh .mh-type { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 13.5px; }
  .mh .mh-type__icon { width: 40px; height: 40px; margin: 0; }
  .mh .mh-type__name { flex: 1; min-width: 0; }
  .mh .mh-type__count { width: 100%; padding-left: calc(40px + 12px); margin-top: -5.5px; }
  .mh .mh-event-card { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .mh .mh-event-card__media { grid-column: 1 / -1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; }
  .mh .mh-event-card__media.is-placeholder { display: none; }
  .mh .mh-date { padding: 9px 0 9.5px; border-radius: 14px; }
  .mh .mh-date__day { font-size: 24px; }
  .mh .mh-form__grid { grid-template-columns: minmax(0, 1fr); }
  .mh .mh-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh .mh-segmented--form { width: 100%; border-radius: 18px; }
  .mh .mh-segmented--form .mh-segmented__item { flex: 1 1 45%; }
  .mh .mh-segmented--form .mh-segmented__item > span { width: 100%; justify-content: center; }
  .mh .mh-form__footer { flex-direction: column-reverse; align-items: stretch; }
  .mh .mh-form__footer .mh-btn { width: 100%; }
  .mh .mh-opp-hero { flex-direction: column; }
  .mh .mh-opp-hero__icon { width: 60px; height: 60px; border-radius: 18px; }
  .mh .mh-hero { min-height: 340px; }
  .mh .mh-panel { padding: 20px; }
}

@container mh (min-width: 1040px) {
  .mh .mh-types { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* Browsers without container queries still get a usable single-column layout on phones */
@supports not (container-type: inline-size) {
  @media (max-width: 760px) {
    .mh .mh-cal__grid { display: none; }
    .mh .mh-agenda { display: block; }
    .mh .mh-detail { grid-template-columns: minmax(0, 1fr); }
    .mh .mh-detail__aside { position: static; order: -1; }
    .mh .mh-row { grid-template-columns: 48px minmax(0, 1fr); }
    .mh .mh-row__side { grid-column: 2; flex-direction: row; }
    .mh .mh-row__go { display: none; }
    .mh .mh-event-card { grid-template-columns: 60px minmax(0, 1fr); }
    .mh .mh-event-card__media { display: none; }
    .mh .mh-form__grid { grid-template-columns: minmax(0, 1fr); }
  }
}

/* ---------- Lightbox and toast (rendered at <body> level, outside .mh) ---------- */
.mh-lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; overflow: visible; color: #fff; }
.mh-lightbox::backdrop { background: rgba(6, 18, 30, .88); backdrop-filter: blur(6px); }
.mh-lightbox[open] { animation: mh-pop .22s cubic-bezier(.2, .7, .2, 1); }
.mh-lightbox__img { display: block; max-width: min(1200px, 94vw); max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.mh-lightbox__caption { margin: 14.5px 0 0; text-align: center; font-size: 15px; color: rgba(255, 255, 255, .85); }
.mh-lightbox__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s; }
.mh-lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.mh-lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-lightbox__close { top: 20px; right: 20px; }
.mh-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.mh-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

.mh-toast { position: fixed; z-index: 99999; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 13px 20px; border-radius: 999px; background: #092d47; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 16px 40px rgba(9, 45, 71, .35); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.mh-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .mh *, .mh *::before, .mh *::after, .mh-lightbox, .mh-toast { animation: none !important; transition: none !important; }
}
