/* Sense of Sound — Build 27.16
   Mobile logo alignment + compact Past Events. */

/* Header uses the exact same approved logo asset as the hero. */
.reference-brand img {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  padding: 2px;
}

.coded-event-focus-group {
  width: min(760px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 12px;
  align-items: stretch;
}

.coded-event-focus-group .coded-event-focus {
  width: 100%;
  margin: 0;
}

.coded-event-focus-past {
  border-color: rgba(196, 108, 255, .24) !important;
  background:
    linear-gradient(120deg, rgba(28, 19, 43, .80), rgba(10, 18, 34, .78)) !important;
}

.coded-event-focus-past small,
.coded-event-focus-past > span:last-child {
  color: #c998ff;
}

.past-festival-block {
  scroll-margin-top: 96px;
}

.past-festival-block .section-heading {
  margin-bottom: 20px !important;
}

.past-festival-block .section-label {
  color: #c998ff;
}

.past-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.past-event-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), rgba(104,56,148,.025)),
    rgba(7,10,17,.72);
  padding: 16px 17px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.past-event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.past-event-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(.98rem, 2vw, 1.18rem);
  line-height: 1.25;
}

.past-event-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(196,152,255,.2);
  border-radius: 999px;
  background: rgba(196,152,255,.05);
  padding: 4px 7px;
  color: #c998ff;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.past-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 11px;
  color: rgba(240,245,255,.72);
  font-size: .72rem;
  line-height: 1.45;
}

.past-event-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.past-event-meta span::before {
  display: inline-block;
  margin-right: 5px;
  color: rgba(103,232,255,.72);
}

.past-event-meta .past-date::before { content: "◷"; }
.past-event-meta .past-location::before { content: "⌖"; }

@media (max-width: 700px) {
  /* Lock the hero artwork to the viewport centre. Previous 100vw + negative
     margin rules could visually offset the logo on some iPhone widths. */
  .coded-hero-content {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 12px !important;
  }

  .coded-brand-composition {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
    --fx-logo-x: 0px !important;
    --fx-logo-y: 0px !important;
    --fx-logo-rx: 0deg !important;
    --fx-logo-ry: 0deg !important;
  }

  .coded-logo-art {
    width: min(100%, 520px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform-origin: 50% 50% !important;
  }

  .coded-logo-art img {
    display: block;
    width: 100% !important;
    margin: 0 auto !important;
    object-position: center !important;
  }

  .reference-header-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .reference-brand {
    justify-self: start;
    min-width: 0;
  }

  .reference-brand img {
    width: 54px !important;
    height: 48px !important;
    border-radius: 11px !important;
  }

  .coded-event-focus-group {
    width: min(100%, 520px);
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .coded-event-focus-group .coded-event-focus {
    min-height: 86px;
    padding: 14px 16px;
  }

  .coded-event-focus-past {
    min-height: 72px !important;
  }

  .coded-event-focus-past strong {
    font-size: .96rem;
  }

  .past-event-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .past-event-card {
    padding: 14px 15px;
  }
}

@media (max-width: 420px) {
  .reference-brand img {
    width: 50px !important;
    height: 44px !important;
  }

  .coded-hero-content {
    padding-inline: 10px !important;
  }

  .past-event-card-top {
    gap: 8px;
  }
}
/* Semantic page title for search engines and assistive technology. */
.sos-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;
}
