/*!
 * Manhattan template — site layer (brand details, module styling, refinements).
 * Loaded after template.css.
 */

/* Brand mark: crop the Brahma Kumaris sunburst out of the full logo */
.mm-brand__mark { background: #fff; }
.mm-brand__mark .mm-brand__logo { position: absolute; left: -52px; top: 2px; width: 151px; max-width: none; height: auto; padding: 0; object-fit: initial; }
@media (max-width: 480px) { .mm-brand__mark { width: 46px; height: 46px; transform: scale(.88); } }

/* Footer logo card */
.mm-footer__logocard { display: inline-block; margin-bottom: 1.4rem; }
.mm-footer__logocard img { width: 190px; height: auto; filter: brightness(0) invert(1); opacity: .88; }

/* ==========================================================================
   Events (mod_ems override)
   ========================================================================== */
.mm-events { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.mm-event {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--mm-paper); border: 1px solid var(--mm-line);
  transition: transform .5s var(--mm-ease-out), box-shadow .5s var(--mm-ease-out), border-color .4s;
}
.mm-event:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -32px rgb(23 21 61 / .45); border-color: rgb(240 138 108 / .45); }
.mm-event__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mm-sand); }
.mm-event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--mm-ease-out); }
.mm-event:hover .mm-event__media img { transform: scale(1.05); }
.mm-event__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 75% at 100% 0%, rgb(255 238 220 / .5), transparent 62%); mix-blend-mode: screen; pointer-events: none; }
.mm-event__art { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, #fff6df 0 3%, rgb(246 217 166 / .7) 8%, transparent 32%), radial-gradient(90% 90% at 80% 10%, #7a6ff0, transparent 60%), linear-gradient(160deg, #3a3280, #5b4a9c); }
.mm-event__date {
  position: absolute; left: 1rem; top: 1rem; z-index: 2; display: grid; place-items: center; width: 62px; padding: .45rem 0 .5rem;
  border-radius: 14px; background: rgb(255 253 249 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -14px rgb(15 13 42 / .45); color: var(--mm-night); line-height: 1;
}
.mm-event__month { font-family: var(--mm-font-display); font-size: .95rem; font-style: italic; color: var(--mm-ember); }
.mm-event__day { font-family: var(--mm-font-display); font-size: 1.9rem; font-weight: 500; margin-top: .2rem; }
.mm-event__body { display: flex; flex-direction: column; gap: .55rem; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.mm-event__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.mm-tag--online { background: rgb(127 209 199 / .2); color: #1f6b62; }
.mm-event__kind { font-weight: 500; }
.mm-event__title { margin: 0; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); line-height: 1.18; }
.mm-event__title a { color: var(--mm-night); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--mm-ease-out); }
.mm-event__title a:hover { background-size: 100% 1px; color: var(--mm-night); }
.mm-event__meta { display: flex; flex-direction: column; gap: .15rem; margin: 0; font-size: .86rem; color: var(--mm-muted); }
.mm-event__when { font-weight: 600; color: var(--mm-indigo); }
.mm-event__where::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .5rem; rotate: 45deg; background: var(--mm-coral); vertical-align: middle; }
.mm-event__speaker { margin: 0; font-size: .88rem; font-style: italic; color: var(--mm-muted); }
.mm-event__desc { margin: 0; font-size: .94rem; color: var(--mm-muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mm-event__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: auto; padding-top: .6rem; }
.mm-link--muted { color: var(--mm-muted); font-weight: 500; }
.mm-events-empty { padding: 2.5rem; border-radius: var(--mm-radius-l); background: var(--mm-paper); border: 1px dashed var(--mm-line); text-align: center; color: var(--mm-muted); }
.mm-events-empty p { margin: 0; }
.mm-sec--night .mm-event { background: rgb(255 255 255 / .05); border-color: var(--mm-line-light); }
.mm-sec--night .mm-event__title a { color: #fff; }
/* Phones: a denser list — thumbnail left, details right */
@media (max-width: 599px) {
  .mm-events { gap: .9rem; }
  .mm-event { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; border-radius: 16px; }
  .mm-event__media { aspect-ratio: 1; height: auto; margin: .9rem 0 .9rem .9rem; border-radius: 12px; }
  .mm-event__media::after { display: none; }
  .mm-event__date { display: none; }
  .mm-event__body { padding: .9rem 1rem 1rem; gap: .35rem; }
  .mm-event__title { font-size: 1.22rem; }
  .mm-event__desc { display: none; }
  .mm-event__meta { font-size: .8rem; }
  .mm-event__actions { padding-top: .2rem; font-size: .9rem; }
  .mm-event__tags .mm-tag { font-size: .72rem; padding: .15rem .55rem; }
}
/* Home: three events, one row; on phones a swipeable row of full cards */
.is-home .mm-modsec--mod_ems .mm-event:nth-child(n+4) { display: none; }
@media (max-width: 599px) {
  .is-home .mm-modsec--mod_ems .mm-events { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: .9rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--mm-gutter)); padding: 0 var(--mm-gutter) .4rem; scroll-padding-inline: var(--mm-gutter); scrollbar-width: none; }
  .is-home .mm-modsec--mod_ems .mm-events::-webkit-scrollbar { display: none; }
  .is-home .mm-modsec--mod_ems .mm-event { display: flex; scroll-snap-align: start; border-radius: 20px; }
  .is-home .mm-modsec--mod_ems .mm-event__media { aspect-ratio: 16 / 10; margin: 0; border-radius: 0; }
  .is-home .mm-modsec--mod_ems .mm-event__media::after { display: block; }
  .is-home .mm-modsec--mod_ems .mm-event__date { display: grid; left: .75rem; top: .75rem; width: 52px; }
  .is-home .mm-modsec--mod_ems .mm-event__body { padding: 1.1rem 1.2rem 1.2rem; }
  .is-home .mm-modsec--mod_ems .mm-event__desc { display: none; }
}

/* ==========================================================================
   Podcast artwork
   ========================================================================== */
.mm-podcast-art { position: relative; display: grid; place-items: center; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #5b4a9c, #2c2663 70%); box-shadow: var(--mm-shadow), inset 0 0 80px rgb(122 111 240 / .35); overflow: hidden; }
.mm-podcast-art__ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgb(246 217 166 / .35); animation: mm-ring 8s linear infinite; }
.mm-podcast-art__ring:nth-child(2) { animation-delay: 2.7s; }
.mm-podcast-art__ring:nth-child(3) { animation-delay: 5.4s; }
.mm-podcast-art__wave { display: flex; align-items: center; gap: 6px; height: 80px; }
.mm-podcast-art__wave i { display: block; width: 6px; height: 100%; border-radius: 6px; background: linear-gradient(var(--mm-gold-2), var(--mm-rose)); transform-origin: center; animation: mm-eq 1.6s ease-in-out infinite; }
.mm-podcast-art__wave i:nth-child(2) { animation-delay: -.2s; } .mm-podcast-art__wave i:nth-child(3) { animation-delay: -.5s; }
.mm-podcast-art__wave i:nth-child(4) { animation-delay: -.9s; } .mm-podcast-art__wave i:nth-child(5) { animation-delay: -.3s; }
.mm-podcast-art__wave i:nth-child(6) { animation-delay: -1.1s; } .mm-podcast-art__wave i:nth-child(7) { animation-delay: -.7s; }
.mm-podcast-art__wave i:nth-child(8) { animation-delay: -1.3s; } .mm-podcast-art__wave i:nth-child(9) { animation-delay: -.4s; }
@keyframes mm-eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.mm-podcast-art__label { position: absolute; bottom: 18%; font-family: var(--mm-font-display); font-style: italic; font-size: 1.5rem; color: var(--mm-gold-2); letter-spacing: .02em; }

/* ==========================================================================
   Refinements
   ========================================================================== */
.mm-person--small, .mm-person:has(.mm-person__photo--small) { grid-template-columns: 1fr; }
@media (min-width: 760px) { .mm-person:has(.mm-person__photo--small) { grid-template-columns: 220px 1fr; } }
.mm-person__photo--small { max-width: 220px; }
.mm-person__photo--small img { aspect-ratio: 1; border-radius: 50%; }
.mm-person__photo--small::before { inset: -12px; border-radius: 50%; }

.mm-course-card img { aspect-ratio: 4 / 5; object-position: 50% 22%; }
.mm-collage__img--a img { object-position: 6% 50%; } /* keep the meditation room's diamond of light in frame */
.mm-sec--sand .mm-breathe__orbit { border-color: rgb(168 67 44 / .28); }
.mm-modsec--mod_ems .mm-sec__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.mm-modsec__body > .mm-events:first-child { margin-top: 0; }
.mm-footer__title { font-family: var(--mm-font-display); font-size: 1.9rem; color: #fff; margin-bottom: .5rem; line-height: 1.1; }
.mm-footer__bottom .mod-menu a { color: rgb(255 255 255 / .65); }
.mm-footer__bottom .mod-menu a:hover { color: var(--mm-gold-2); }
.mm-nav .mod-menu .nav-item { list-style: none; }
@media (max-width: 700px) {
  .mm-collage__badge { left: 0; }
}

/* Round-2 fixes */
.mm-orb { filter: none; }
.mm-stat strong span { font-size: inherit; color: inherit; }
.mm-stat > span { display: block; margin-top: .35rem; }
@media (min-width: 600px) and (max-width: 1099px) { .mm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mm-brand { position: relative; z-index: 3; }
.mm-footer .mm-hours tr.is-today th::after { display: none; }
