/* Music Day in Canada — residual CSS only
 * Every hook must be attached explicitly in YOOtheme's Advanced > CSS Class field.
 */

:root {
  --mdic-ink: #08090b;
  --mdic-paper: #f5f1e8;
  --mdic-cyan: #00b9ef;
  --mdic-yellow: #ffd43b;
  --mdic-line-dark: rgba(255, 255, 255, 0.18);
  --sfdi-space-xs: 0.5rem;
  --sfdi-space-sm: 1rem;
  --sfdi-space-md: 1.5rem;
  --sfdi-space-lg: 2.5rem;
  --sfdi-space-xl: 4rem;
  --sfdi-space-2xl: 6rem;
}

html { scroll-behavior: smooth; }

.uk-logo {
  align-items: flex-start;
  flex-direction: column;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.uk-logo span { color: var(--mdic-cyan); }
.uk-logo em { color: var(--mdic-yellow); font-style: normal; }

.uk-navbar-nav > li:has(> a[href$="/get-involved/"]) {
  align-items: center;
  display: flex;
}

.uk-navbar-nav > li > a[href$="/get-involved/"] {
  min-height: 44px;
  padding-inline: 18px;
  background: var(--mdic-yellow);
  color: var(--mdic-ink) !important;
}

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

.sfdi-u-measure { max-width: 68ch; }
.sfdi-u-measure-narrow { max-width: 48ch; }
.sfdi-u-full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.sfdi-u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sfdi-mdic-hero .uk-overlay-primary {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.72) 47%, rgba(5, 6, 8, 0.18) 78%),
    linear-gradient(0deg, var(--mdic-ink) 0%, transparent 35%);
}

.sfdi-mdic-photo-mosaic img { transition: transform 0.6s ease; }
.sfdi-mdic-photo-mosaic a:hover img,
.sfdi-mdic-photo-mosaic figure:hover img { transform: scale(1.035); }

.sfdi-mdic-city-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--mdic-line-dark);
  border: 1px solid var(--mdic-line-dark);
}

.sfdi-mdic-city-grid > * { min-width: 0; }

@media (max-width: 960px) {
  .sfdi-mdic-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sfdi-mdic-hero .uk-overlay-primary {
    background: linear-gradient(0deg, var(--mdic-ink) 5%, rgba(5, 6, 8, 0.55) 68%, rgba(5, 6, 8, 0.40));
  }
  .sfdi-mdic-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
