/* ============================================================================
 * Chaitanya 2k26 — the phone-first design, at every width
 * Drifting / swipeable card rows (m-marquee.js), /organisers, the
 * /contact-us, /sponsors and /organisers/<slug> pages, the About events row,
 * /events header + chips, plain-cross close buttons and the home sections.
 * Rules are written for phones; "Tablet & desktop" at the end adapts them
 * (768px+ / 992px+). .m-only shows everywhere; .d-only is retired.
 * ============================================================================ */

.d-only {
  display: none !important;
}

/* Register / sign-in dialog: solid black behind the card, not a see-through scrim. */
.chaitanya-modal-backdrop {
  background: #000;
}

/* ---- Drifting row: moves left to right, pauses on touch/hover/focus ------- */

.m-marquee {
  --gap: 12px;
  overflow: hidden;
  margin: 0 -16px 8px;
  padding: 8px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.m-marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: m-drift var(--dur, 30s) linear infinite;
}

/* Spacing as padding, not gap, so the two halves are exactly 50% each. */
.m-marquee-track > li {
  flex: none;
  margin: 0;
  padding: 0 var(--gap) 0 0;
}

.m-marquee.is-offscreen .m-marquee-track,
.m-marquee:hover .m-marquee-track,
.m-marquee:active .m-marquee-track,
.m-marquee:focus-within .m-marquee-track {
  animation-play-state: paused;
}

@keyframes m-drift {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: 16px;
  }
  .m-marquee-track {
    animation: none;
  }
  .m-marquee-track > li[aria-hidden="true"] {
    display: none;
  }
}

/* ---- Cards: photo (or tinted gradient + big initials) as the background ---- */

.m-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 200px;
  height: 260px;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
  border: 1.5px solid var(--ink);
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%),
    var(--bg, linear-gradient(160deg, var(--tint), #000));
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%),
    var(--bg, linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 45%, #000)));
  background-size: cover;
  background-position: center;
  -webkit-tap-highlight-color: transparent;
}

.m-card-event {
  width: 230px;
}

.m-card-mark {
  position: absolute;
  top: 6px;
  left: 12px;
  font-family: DrukMedium, sans-serif;
  font-size: 120px;
  line-height: 1;
  letter-spacing: var(--track-display);
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.m-card-event .m-card-mark {
  font-size: 84px;
}

.m-card-body {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.m-card .m-card-body strong {
  color: inherit;
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: var(--track-name);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.m-card-body > span,
.m-card-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0.9;
}

.m-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -4px;
}

.m-card:active {
  transform: scale(0.98);
}

/* ---- Shared headings ------------------------------------------------------ */

.m-h {
  margin: 0 0 4px;
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}

.m-h::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--tint, var(--ink));
}

.m-sub {
  margin: 12px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- /organisers ------------------------------------------------------------ */

.m-org {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* keep the rows from widening the page */
  gap: 28px;
  margin-bottom: 32px;
}

.m-org-team {
  scroll-margin-top: 80px;
}

/* ---- Pages (contact, sponsors, organiser) --------------------------------- */

.m-page-root {
  overflow-x: clip;
}

.m-page .privacy-card p {
  letter-spacing: var(--track-body);
}

.m-section {
  margin-bottom: 16px;
}

.m-quick {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.m-quick-card,
.m-team-list a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.m-quick-card span,
.m-team-list span {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  color: var(--ink-muted);
}

.m-quick-card span {
  text-transform: uppercase;
}

.m-team-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.m-team-list li {
  margin: 0;
}

.m-team-list a {
  border-left: 6px solid var(--tint);
}

/* Contact form */
.m-form {
  display: grid;
  gap: 12px;
}

.m-form label {
  display: grid;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.m-form small {
  font-weight: 400;
  color: var(--ink-muted);
}

.m-form input,
.m-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* 16px: no iOS zoom */
  text-transform: none;
  letter-spacing: normal;
}

.m-form textarea {
  resize: vertical;
}

.m-form [aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.m-form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: var(--fs-body);
}

.m-form-status[data-kind="error"] {
  color: var(--danger-ink);
}

.m-form-status[data-kind="ok"] {
  color: var(--ok);
}

.m-form button {
  justify-self: stretch;
  cursor: pointer;
}

.m-form button:disabled {
  opacity: 0.6;
}

/* Sponsors */
.m-stats {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.m-stats li {
  margin: 0;
  display: grid;
  justify-items: center;
  padding: 12px 4px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}

.m-stats b {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}

.m-stats span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.m-chips {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-chips li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
}

.m-sponsors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.m-sponsors a {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

.m-sponsors img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* Organiser page */
.m-back-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.m-person-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  margin-bottom: 16px;
  padding: 20px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%),
    var(--bg, linear-gradient(160deg, var(--tint), #000));
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%),
    var(--bg, linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 40%, #000)));
  background-size: cover;
  background-position: center;
}

.m-person-hero .m-card-mark {
  font-size: 200px;
}

.m-person-name {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.m-person-name h1 {
  margin: 0;
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
}

.m-dl {
  margin: 0;
  display: grid;
}

.m-dl > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.m-dl dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.m-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.m-note {
  margin: 12px 0 0;
}

.m-person .m-h {
  margin-top: 24px;
}

/* ---- About: events row sits inside its card -------------------------------- */

.about-m-events {
  margin: 16px 0 8px;
}

.about-m-events .m-marquee {
  margin-inline: 0;
}

.m-person-name .privacy-tag-badge {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
}

/* .privacy-card indents bullet lists; these sit flush. */
.privacy-card ul.m-stats,
.privacy-card ul.m-chips,
.privacy-card ul.m-team-list,
.privacy-card ul.m-sponsors {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
}

/* Inside .privacy-card (About), undo its bullet-list margins and type. */
.privacy-card ul.m-marquee-track {
  margin: 0;
}

.privacy-card .m-marquee-track > li {
  max-width: none;
  margin: 0;
  line-height: normal;
  color: inherit;
}

/* ---- /events: one-line header and compact cards with the basics ---------- */

.events-m-head {
  margin: 8px 0 16px;
}

.events-m-head h1 {
  margin: 0;
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}

.events-m-head p {
  margin: 6px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Event cards keep the 60/40 picture/text split from m-events.css. */

/* /events: no [ ↑ TOP ] button; the cart takes its bottom-right spot. */
.events-scroll-hud {
  display: none !important;
}

.events-cart-fab {
  left: auto;
  right: 16px;
}

/* ---- Home: bigger event cards and the extra sections ---------------------- */

.sgfm-events .m-card {
  width: 260px;
  height: 340px;
}

.sgfm-events .m-card-event .m-card-mark {
  font-size: 120px;
}

.m-home-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  margin-top: 64px;
}

.m-home-sec .m-h {
  margin-bottom: 16px;
}

.m-home-stats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-home-when {
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.m-home-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.m-home-cats li {
  margin: 0;
}

.m-home-cats li:first-child {
  grid-column: 1 / -1;
}

.m-home-cats a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 120px;
  padding: 14px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(160deg, var(--tint), #000);
  background: linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 45%, #000));
}

.m-home-cats strong {
  position: relative;
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.m-home-cats a > span:last-child {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0.9;
}

.m-home-cat-mark {
  position: absolute;
  top: 2px;
  right: 10px;
  font-family: DrukMedium, sans-serif;
  font-size: 64px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.m-home-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 24px;
}

.m-home-cta {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--ink-on-dark);
  text-decoration: none;
}

.m-home-cta span {
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0.75;
}

.m-home-cta strong {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.m-home-cta:active,
.m-home-cats a:active {
  transform: scale(0.97);
}

/* Scroll-in animation (only when JS added .m-anim; reduced motion skips it). */
.m-anim .m-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.m-anim .m-reveal.is-in {
  opacity: 1;
  transform: none;
}

.m-anim .m-home-cats li {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + 150ms);
}

.m-anim .is-in .m-home-cats li {
  opacity: 1;
  transform: none;
}

/* ---- Phone menu (phones only): a compact numbered list -------------------- */
@media (max-width: 767px) {
  header .header .mobile-menu {
    justify-content: flex-start;
    gap: 24px;
    padding: 88px 20px calc(24px + env(safe-area-inset-bottom));
    counter-reset: mnav;
  }

  header .header .mobile-menu .top a {
    display: flex !important;
    align-items: baseline;
    gap: 14px;
    margin: 0 !important;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 34px;
    line-height: 1;
    text-align: left;
  }

  header .header .mobile-menu .top a::before {
    counter-increment: mnav;
    content: counter(mnav, decimal-leading-zero);
    min-width: 22px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--track-label);
    color: var(--ink-muted);
  }

  header .header .mobile-menu .bottom {
    margin-top: auto;
  }

  header .header .mobile-menu .bottom a,
  header .header .mobile-menu .bottom a:last-child {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: none;
    text-align: left;
  }
}

/* ---- Swipeable row (home events): no drift, snaps card by card ------------ */
.m-swipe {
  --gap: 12px;
  margin: 0 -16px 8px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.m-swipe::-webkit-scrollbar {
  display: none;
}

.m-swipe .m-marquee-track {
  animation: none;
}

.m-swipe .m-marquee-track > li {
  scroll-snap-align: start;
}

/* ---- /events: chips with count badges; no search on phones -------------- */
@media (max-width: 767px) {
  .events-search-wrap {
    display: none !important;
  }
}

/* No white card behind the chips; all chips in black, not category colours. */
.events-toolbar,
.events-toolbar.is-pinned {
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.events-categories {
  gap: 6px;
}

.events-cat-btn {
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.events-cat-btn .cat-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--surface-sunken);
  font-size: 11px;
  opacity: 1;
}

.events-cat-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-on-dark);
}

.events-cat-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink-on-dark);
}

/* ---- Close buttons: a plain cross, no pill (the button carries aria-label) */
.event-dossier-close,
.cart-close,
.event-reg-close,
.chaitanya-modal-close {
  display: inline-grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}

.m-x {
  font-size: 24px;
  line-height: 1;
}

/* No white fade at the ends of the moving rows. */
.m-marquee {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Home events: more room between cards. */
.sgfm-events .m-swipe .m-marquee-track > li {
  padding-right: 20px;
}

/* ---- Contact page --------------------------------------------------------- */
.m-quick-card {
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.m-quick-card svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--surface-sunken);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-quick-dark {
  background: var(--ink);
  color: var(--ink-on-dark);
  border-color: var(--ink);
}

.m-quick-dark span {
  color: rgba(255, 255, 255, 0.7);
}

.m-quick-dark svg {
  background: rgba(255, 255, 255, 0.14);
}

.m-where {
  display: grid;
  gap: 6px;
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--ink-on-dark);
}

.m-where span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0.75;
}

.m-where strong {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---- Sponsors page -------------------------------------------------------- */
.m-sponsor-stats {
  margin-bottom: 16px;
}

.m-sponsor-empty {
  display: grid;
  gap: 6px;
  place-items: center;
  padding: 28px 16px;
  border: 1.5px dashed var(--ink);
  border-radius: 16px;
  text-align: center;
}

.m-sponsor-empty strong {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
}

.privacy-card ol.m-kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.privacy-card .m-kinds li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: none;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f1f2f4;
}

.m-kinds li > span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.privacy-card .m-kinds strong {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.privacy-card .m-kinds p {
  margin: 4px 0 0;
  font-size: 14px;
}

.m-sponsors-root .m-chips li {
  background: var(--ink);
}


/* ---- /organisers: two people per team on phones, "View more" shows the rest */
.m-people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.m-people-grid li {
  margin: 0;
  min-width: 0;
}

.m-people-grid .m-card {
  width: 100%;
  height: 220px;
  padding: 12px;
}

.m-people-grid .m-card-mark {
  font-size: 96px;
}

.m-people-grid .m-card-body strong {
  font-size: 22px;
}

.m-people-more {
  display: none;
}

.m-people.is-open .m-people-more {
  display: block;
}

.m-people-btn {
  display: block;
  width: 100%;
  min-height: var(--tap);
  margin-top: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================================
 * Tablet & desktop: the same design, given room. Wider pages, grids where a
 * phone shows one column, larger display type, hover on fine pointers.
 * ============================================================================ */

@media (min-width: 768px) {
  /* Shared */
  .m-h {
    font-size: 40px;
  }

  .m-page-root .privacy-container,
  .organisation-page-root .privacy-container {
    max-width: 1160px;
  }

  /* /events: bigger header, wrapping chips (no hidden sideways scroll for a
     mouse), search back as a chip-styled pill, two cards across. */
  .events-m-head {
    margin: 16px 0 24px;
  }

  .events-m-head h1 {
    font-size: 72px;
  }

  .events-categories {
    flex-wrap: wrap;
    overflow: visible;
  }

  .events-search-input {
    min-height: 40px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--surface);
  }

  .events-search-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent);
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-cart-fab {
    right: 24px;
    bottom: 24px;
  }

  /* /organisers: everyone shows (no "View more"), 3 across, portrait cards. */
  .m-org {
    gap: 48px;
  }

  .m-people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .m-people-more {
    display: block;
  }

  .m-people-btn {
    display: none;
  }

  .m-people-grid .m-card {
    height: auto;
    aspect-ratio: 4 / 5;
    padding: 16px;
  }

  .m-people-grid .m-card-mark {
    font-size: 120px;
  }

  .m-people-grid .m-card-body strong {
    font-size: 26px;
  }

  /* Contact */
  .m-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .m-quick-card {
    padding: 18px;
  }

  .m-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .m-form > :nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .m-form button {
    justify-self: start;
    min-width: 240px;
  }

  /* Sponsors and home stats */
  .m-stats {
    gap: 12px;
  }

  .m-stats li {
    padding: 20px 8px;
  }

  .m-stats b {
    font-size: 56px;
  }

  .m-stats span {
    font-size: 12px;
  }

  .m-sponsors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  /* Organiser page */
  .m-person-name h1 {
    font-size: 64px;
  }

  /* Home extras */
  .m-home-cta {
    padding: 24px;
  }

  .m-home-cta strong {
    font-size: 36px;
  }

  .m-home-cats a {
    min-height: 140px;
  }
}

@media (min-width: 992px) {
  .m-h {
    font-size: 44px;
  }

  .events-m-head h1 {
    font-size: 88px;
  }

  /* Chips on the left, search on the right of one row. */
  .events-toolbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  /* One line: chips never wrap; if the window is too narrow for all of
     them, the chip row scrolls sideways (right edge fades) instead. */
  .events-categories {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .events-cat-btn {
    flex-shrink: 0;
  }

  .events-search-wrap {
    flex: 0 1 240px;
    width: auto;
    min-width: 200px;
  }

  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .m-people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Contact: form on the left, venue card beside it. */
  .m-contact-root .m-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    column-gap: 24px;
    align-items: start;
  }

  .m-contact-root .m-page > * {
    grid-column: 1 / -1;
  }

  .m-contact-root .m-page > .m-section {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  .m-contact-root .m-page > .m-where {
    grid-column: 2;
    grid-row: 3;
    gap: 10px;
    margin: 0;
    padding: 28px;
  }

  .m-where strong {
    font-size: 36px;
  }

  /* Sponsors: "Ways to partner" and "Events you can back" side by side. */
  .m-sponsors-root .m-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .m-sponsors-root .m-page > * {
    grid-column: 1 / -1;
  }

  .m-sponsors-root .m-page > .m-section:nth-of-type(n + 2) {
    grid-column: auto;
  }

  /* Organiser: photo beside the details, events row below. */
  .m-organiser-root .m-person {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 24px;
    align-items: start;
  }

  .m-organiser-root .m-person > * {
    grid-column: 1 / -1;
  }

  .m-organiser-root .m-person > .m-person-hero {
    grid-column: 1;
    grid-row: 2;
    min-height: 440px;
    margin: 0;
  }

  .m-organiser-root .m-person > .m-section {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .m-person-name h1 {
    font-size: 72px;
  }

  /* Home extras: glance beside the categories; organisers and CTAs full width. */
  .m-home-extra {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 72px 48px;
  }

  .m-home-extra > .m-home-sec:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

/* Swipe rows: a mouse can't swipe, so give it a thin scrollbar. */
@media (hover: hover) and (pointer: fine) {
  .m-swipe {
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
  }

  .m-swipe::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .m-swipe::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--ink);
  }

  .m-card,
  .m-quick-card,
  .m-team-list a,
  .m-sponsors a,
  .m-home-cats a,
  .m-home-cta {
    transition: transform var(--motion-150, 150ms) var(--ease-out), box-shadow var(--motion-150, 150ms) var(--ease-out);
  }

  .m-card:hover,
  .m-quick-card:hover,
  .m-team-list a:hover,
  .m-sponsors a:hover,
  .m-home-cats a:hover,
  .m-home-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .m-people-btn:hover,
  .m-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .event-dossier-close:hover,
  .cart-close:hover,
  .event-reg-close:hover,
  .chaitanya-modal-close:hover {
    background: var(--surface-sunken) !important;
  }

  .events-cat-btn:not(.active):hover {
    background: var(--surface);
    background: color-mix(in srgb, var(--ink) 6%, var(--surface));
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-card,
  .m-quick-card,
  .m-team-list a,
  .m-sponsors a,
  .m-home-cats a,
  .m-home-cta {
    transition: none;
  }

  .m-card:hover,
  .m-quick-card:hover,
  .m-team-list a:hover,
  .m-sponsors a:hover,
  .m-home-cats a:hover,
  .m-home-cta:hover {
    transform: none;
  }
}

/* /organisers: website developers + event coordinators share the #core-team
   anchor wrapper; give it the page's section spacing. Team cards are anchors
   (#team-…) that must clear the fixed header. */
.m-org-core {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: inherit;
}
.m-org-anchor {
  scroll-margin-top: 80px;
}

/* Event cards with a poster: the poster carries the name, so no dark fade and
   the text is kept for screen readers only. */
.m-card.m-card-poster {
  /* Whole poster (square or 4:5) inside the taller card: never crop its
     text; its blurred copy fills the rest instead of black bars. */
  background: var(--bg) center / contain no-repeat, var(--poster-bg, none) center / cover no-repeat, #000;
}
.m-card.m-card-poster .m-card-body {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- /accommodation (accommodation-page.js) ------------------------------ */
.m-accom-root .m-accom { max-width: 1100px; }
/* !important: .privacy-hero forces display:block !important. */
.m-accom-root .m-accom-hero { display: grid !important; gap: 24px; align-items: end; }
.m-accom-root .m-accom-hero h1 { overflow-wrap: anywhere; }
.m-accom-root .m-accom-price {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
}
.m-accom-root .m-accom-price p { margin: 0; }
.m-accom-root .m-accom-price b {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: var(--track-display);
}
.m-accom-root .m-accom-price span,
.m-accom-root .m-accom-when {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.m-accom-root .m-accom-book {
  width: 100%;
  min-height: var(--tap);
  margin-top: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-on-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--motion-200) var(--ease-out), transform var(--motion-200) var(--ease-out);
}
.m-accom-root .m-accom-book:hover { opacity: 0.85; }
.m-accom-root .m-accom-book:active { transform: scale(0.98); }
.m-accom-root .m-accom-book:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.m-accom-root .m-accom-book.is-off {
  background: var(--surface-sunken);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}
.m-accom-root .m-accom-block { margin-bottom: 40px; min-width: 0; }
.m-accom-root .m-accom-block .m-h { margin-bottom: 16px; }
.m-accom-root .m-accom-grid,
.m-accom-root .m-accom-list,
.m-accom-root .m-accom-steps { list-style: none; margin: 0; padding: 0; }
.m-accom-root .m-accom-grid { display: grid; gap: 12px; }
.m-accom-root .m-accom-card,
.m-accom-root .m-accom-list,
.m-accom-root .m-accom-steps,
.m-accom-root .m-accom-faq .sgfm-faq-list {
  padding: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}
.m-accom-root .m-accom-card { display: grid; gap: 6px; align-content: start; }
.m-accom-root .m-accom-card svg { width: 28px; height: 28px; margin-bottom: 4px; }
.m-accom-root .m-accom-card strong,
.m-accom-root .m-accom-steps strong {
  font-family: DrukMedium, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}
.m-accom-root .m-accom-card p,
.m-accom-root .m-accom-steps p,
.m-accom-root .m-accom-list li {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: var(--track-body);
  text-transform: none;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}
.m-accom-root .m-accom-list { display: grid; gap: 10px; }
.m-accom-root .m-accom-list li { position: relative; padding-left: 18px; color: var(--ink); }
.m-accom-root .m-accom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
}
.m-accom-root .m-accom-steps { display: grid; gap: 14px; }
.m-accom-root .m-accom-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.m-accom-root .m-accom-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-on-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-label);
  font-weight: 600;
}
.m-accom-root .m-accom-steps strong { display: block; margin-bottom: 4px; }
.m-accom-root .m-accom-block a:not(.privacy-cta-btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.m-accom-root .m-accom-faq .sgfm-faq-list { max-width: none; padding-top: 4px; padding-bottom: 4px; }
.m-accom-root .m-accom-faq .sgfm-qa:last-child { border-bottom: 0; }

@media (min-width: 600px) {
  .m-accom-root .m-accom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Price + book: the last section, a centred card. */
.m-accom-root .m-accom-booksec .m-accom-price { max-width: 520px; }
.m-accom-root .m-accom-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}
@media (min-width: 768px) {
  .m-accom-root .m-accom-booksec { text-align: center; }
  .m-accom-root .m-accom-booksec .m-h::after { margin-left: auto; margin-right: auto; }
  .m-accom-root .m-accom-booksec .m-accom-price { margin: 0 auto; padding: 28px; }
}
@media (min-width: 992px) {
  .m-accom-root .m-accom-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .m-accom-root .m-accom-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .m-accom-root .m-accom-two .m-accom-block { display: flex; flex-direction: column; }
  .m-accom-root .m-accom-two .m-accom-list,
  .m-accom-root .m-accom-two .m-accom-steps { flex: 1; align-content: start; }
}
@media (max-width: 360px) {
  .m-accom-root .m-accom-price b { font-size: 44px; }
  .m-accom-root .m-accom-card,
  .m-accom-root .m-accom-list,
  .m-accom-root .m-accom-steps { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-accom-root .m-accom-book { transition: none; }
  .m-accom-root .m-accom-book:active { transform: none; }
}

/* /accommodation: big centred title as the page's eye-catcher. The size
   scales with the viewport so "ACCOMMODATION" always fits on one line. */
.m-accom-root .m-accom-hero {
  justify-items: center;
  text-align: center;
}
.m-accom-root .m-accom-hero h1 {
  font-size: clamp(46px, 18.5vw, 200px);
  line-height: 0.9;
  white-space: nowrap;
  overflow-wrap: normal;
  margin: 12px 0 16px;
}
.m-accom-root .m-accom-hero .subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 34ch;
}

/* 992–1279px: not every chip fits beside the search, so fade the right edge
   of the (sideways-scrolling) chip row to show there's more. */
@media (min-width: 992px) and (max-width: 1279px) {
  .events-categories {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
}
