/* ==========================================================================
   SYMPOSIUM — intro, tabs, important dates, keynote speakers slider,
   single keynote speaker, sponsors grid.
   ========================================================================== */

.mase-symposium-page__container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter) var(--section-py);
}

.mase-symposium-page__intro {
  max-width: 760px;
  padding-top: var(--space-12);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--navy-60);
}

/* --- Tabs --- */
.mase-symposium-tabs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-top: var(--space-12);
  border-top: 1px solid var(--navy-08);
}

.mase-symposium-tabs__sidebar { border-right: 1px solid var(--navy-08); }

.mase-symposium-tabs__sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.mase-symposium-tabs__nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-8) 0;
}

.mase-symposium-tabs__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy-50);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.mase-symposium-tabs__nav-item:hover,
.mase-symposium-tabs__nav-item.is-active {
  color: var(--navy);
  background: var(--navy-08);
  border-left-color: var(--navy);
}

.mase-symposium-tabs__nav-item.is-active { font-weight: 700; }

.mase-symposium-tabs__nav-text { min-width: 0; }

.mase-symposium-tabs__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mase-symposium-tabs__content {
  min-width: 0;
  padding: var(--space-10) 0 var(--space-10) var(--space-12);
}

.mase-symposium-tabs__panel:focus-visible { outline-offset: 8px; }

.mase-symposium-tabs__panel-title {
  margin: 0 0 var(--space-8);
  font-size: var(--fs-3xl);
  line-height: 1.08;
}

.mase-symposium-tabs__panel-body {
  max-width: 920px;
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--navy-80);
}

.mase-symposium-tabs__panel-body p { margin: 0 0 var(--space-5); }

.mase-symposium-tabs__panel-body h2,
.mase-symposium-tabs__panel-body h3 { margin: var(--space-8) 0 var(--space-3); }
.mase-symposium-tabs__panel-body h2 { font-size: var(--fs-2xl); }
.mase-symposium-tabs__panel-body h3 { font-size: var(--fs-xl); }

.mase-symposium-tabs__panel-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mase-symposium-tabs__panel-body img { border-radius: var(--radius-md); }

.mase-symposium-tabs__panel-body img.alignnone,
.mase-symposium-tabs__panel-body img.alignleft {
  float: left;
  width: 260px;
  max-width: 40%;
  margin: 0 28px 18px 0;
  border-radius: 12px;
}

.mase-symposium-tabs__panel-body::after {
  content: "";
  display: block;
  clear: both;
}

/* --- Important dates --- */
.mase-dates-list {
  list-style: none;
  max-width: 720px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--navy-08);
}

.mase-date-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--navy-08);
}

.mase-date-bullet {
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--bullet);
}

.mase-date-content {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.mase-date-label { font-weight: 700; color: var(--navy); }
.mase-date-values { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mase-date-value.is-old { color: var(--navy-20); }
.mase-date-value.is-current { color: var(--navy); font-weight: 700; }

/* --- Tablet --- */
@media (max-width: 1024px) {
  .mase-symposium-tabs { grid-template-columns: 220px minmax(0, 1fr); }
  .mase-symposium-tabs__content { padding-left: var(--space-8); }
  .mase-symposium-tabs__nav-item { padding: 11px 14px; }
}

/* --- Phone: tab list on top, panel below --- */
@media (max-width: 767px) {
  .mase-symposium-page__intro { padding-top: var(--space-8); }

  .mase-symposium-tabs {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--space-8);
  }

  .mase-symposium-tabs__sidebar {
    border-right: none;
    border-bottom: 1px solid var(--navy-08);
  }

  .mase-symposium-tabs__sidebar-inner { position: static; }
  .mase-symposium-tabs__nav { padding: var(--space-4) 0; }

  .mase-symposium-tabs__content {
    padding: var(--space-8) 0 0;
    scroll-margin-top: calc(var(--header-height) + var(--space-4));
  }

  .mase-symposium-tabs__panel { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
  .mase-symposium-tabs__panel-title { margin-bottom: var(--space-5); font-size: var(--fs-2xl); }

  .mase-date-item { grid-template-columns: 10px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; }
  .mase-date-content { flex-direction: column; gap: 2px; }

  .mase-symposium-tabs__panel-body img.alignnone,
  .mase-symposium-tabs__panel-body img.alignleft {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 0 24px;
  }
}

/* ==========================================================================
   KEYNOTE SPEAKERS SLIDER
   ========================================================================== */
.mase-keynotes {
  background: var(--white);
  overflow: hidden;
}

.mase-keynotes__container {
  width: min(1180px, calc(100% - 2 * var(--container-gutter)));
  margin: 0 auto;
  padding-bottom: var(--section-py);
}

.mase-keynotes__header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.mase-keynotes__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--bullet-accent, #f8b600);
}

.mase-keynotes__title {
  margin: 0;
  font-size: var(--fs-2xl);
  line-height: 1.05;
  font-weight: 800;
  color: #111827;
}

.mase-keynotes__slider-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mase-keynotes__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 10px;
  touch-action: pan-y pinch-zoom;
}

.mase-keynotes__track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.mase-keynotes.is-no-transition .mase-keynotes__track { transition: none; }

.mase-keynotes__slide {
  flex: 0 0 calc((100% - 32px) / 2);
  min-width: 0;
}

/* --- Card: fixed-height rows so the labels, the lecture and the button line up in every card --- */
.mase-keynotes__card {
  --kn-photo-w: 104px;
  --kn-inst-lines: 5;
  --kn-talk-lines: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 40, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Photo + name: the photo sets the height, the same in every card */
.mase-keynotes__top {
  display: grid;
  grid-template-columns: var(--kn-photo-w) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  height: calc(var(--kn-photo-w) * 4 / 3);
  margin-bottom: 24px;
}

.mase-keynotes__photo-wrap {
  width: var(--kn-photo-w);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--navy);
  border-radius: 10px;
}

.mase-keynotes__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.mase-keynotes__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.mase-keynotes__name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mase-keynotes__name a { color: var(--navy); }
.mase-keynotes__name a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */

/* Labelled sections, each exactly N lines tall */
.mase-keynotes__section { padding-top: 16px; border-top: 1px solid var(--navy-08); }
.mase-keynotes__section + .mase-keynotes__section { margin-top: 18px; }

.mase-keynotes__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.mase-keynotes__institutions,
.mase-keynotes__talk {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.mase-keynotes__institutions {
  height: calc(var(--kn-inst-lines) * 1.45em);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--navy-80);
  -webkit-line-clamp: var(--kn-inst-lines);
}

.mase-keynotes__talk {
  height: calc(var(--kn-talk-lines) * 1.3em);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  -webkit-line-clamp: var(--kn-talk-lines);
}

/* Same shape and type as the site's buttons (.mase-button); always at the bottom */
.mase-keynotes__button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: auto;
  padding: 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}

.mase-keynotes__section:last-of-type { margin-bottom: 24px; }

@media (hover: hover) {
  .mase-keynotes__card:hover { border-color: rgba(0, 0, 56, 0.2); box-shadow: 0 24px 40px -28px rgba(0, 0, 40, 0.45); }
  .mase-keynotes__card:hover .mase-keynotes__button { background: #1f2937; transform: translateY(-2px); }
  .mase-keynotes__card:hover .mase-keynotes__name a { text-decoration: underline; text-underline-offset: 3px; }
}

.mase-keynotes__card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

.mase-keynotes__arrow {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #34415f;
  color: var(--white);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mase-keynotes__arrow:hover {
  transform: translateY(-2px);
  background: #26324d;
}

.mase-keynotes__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.mase-keynotes__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--dot-idle, rgba(0, 0, 56, 0.22));
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.mase-keynotes__dot.is-active {
  width: 28px;
  background: var(--dot-active, #0057ad);
}

/* Fewer speakers than visible slots: no arrows, centred cards */
.mase-keynotes.is-static .mase-keynotes__arrow { display: none; }
.mase-keynotes.is-static .mase-keynotes__track { justify-content: center; }

@media (max-width: 1050px) {
  .mase-keynotes__slide { flex-basis: 100%; }
}

@media (max-width: 700px) {
  /* Phones: full-width card, swipe + dots instead of arrows (same as the homepage gallery) */
  .mase-keynotes__arrow { display: none; }

  .mase-keynotes__card { --kn-photo-w: 88px; --kn-inst-lines: 7; --kn-talk-lines: 4; padding: 22px; }
  .mase-keynotes__top { gap: 16px; margin-bottom: 20px; }
}

/* ==========================================================================
   SINGLE KEYNOTE SPEAKER (single-mase_keynote_speaker.php)
   Navy hero with portrait + name, the lecture as a highlighted card, a readable
   biography beside the symposium card, then the other keynote speakers.
   ========================================================================== */
.mase-speaker { background: var(--white); }

.mase-speaker__container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

/* --- Hero --- */
.mase-speaker__hero {
  padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-12);
  color: var(--white);
  background: radial-gradient(120% 140% at 90% 0%, #14146a 0%, var(--navy) 55%);
}

.mase-speaker__hero .mase-breadcrumbs { margin-bottom: var(--space-10); }

.mase-speaker__intro {
  display: grid;
  grid-template-columns: clamp(180px, 20vw, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.mase-speaker__intro--no-photo { grid-template-columns: minmax(0, 1fr); }

.mase-speaker__portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mase-speaker__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.mase-speaker__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--bullet);
}

.mase-speaker__name {
  margin: 0 0 var(--space-5);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.mase-speaker__affiliations { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mase-speaker__affiliations li { margin: 0; padding: 0; font-size: var(--fs-base); line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.mase-speaker__affiliations li::before { content: none !important; }
.mase-speaker__affiliations li.is-primary { font-size: var(--fs-md); font-weight: 600; color: var(--white); }

/* --- Body: lecture + biography, symposium card beside --- */
.mase-speaker__body { padding: var(--space-12) 0 var(--space-16); }

.mase-speaker__layout {
  display: grid;
  grid-template-columns: minmax(0, 660px) 320px;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.mase-speaker__main { min-width: 0; max-width: 660px; } /* ~75 characters per line in the biography */

.mase-speaker__label {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.mase-speaker__lecture {
  position: relative;
  margin: 0 0 var(--space-12);
  padding: var(--space-8) var(--space-8) var(--space-8) calc(var(--space-8) + 6px);
  background: var(--light);
  border-radius: var(--radius-md);
}

.mase-speaker__lecture::before {
  content: "";
  position: absolute;
  top: var(--space-6);
  bottom: var(--space-6);
  left: 0;
  width: 5px;
  background: var(--navy);
  border-radius: 0 4px 4px 0;
}

.mase-speaker__talk {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--navy);
}

.mase-speaker__section-title { margin: 0 0 var(--space-5); font-size: var(--fs-2xl); line-height: var(--lh-tight); }

/* Comfortable reading: same width as the lecture card, generous line height */
.mase-speaker__bio-text {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--navy-80);
}

.mase-speaker__bio-text p { margin: 0 0 var(--space-5); }
.mase-speaker__bio-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.mase-speaker__aside { position: sticky; top: calc(var(--header-height) + var(--space-6)); }

.mase-speaker__symposium {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.mase-speaker__poster {
  display: block;
  margin: 0 0 var(--space-5);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 40, 0.55);
}

.mase-speaker__poster img { display: block; width: 100%; height: auto; }
.mase-speaker__symposium-name { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; color: var(--navy); }

.mase-speaker__facts { display: grid; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-80); }
.mase-speaker__facts li { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; padding: 0; }
.mase-speaker__facts li::before { content: none !important; }
.mase-speaker__facts svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Same shape and type as the site's buttons (.mase-button) */
.mase-speaker__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.mase-speaker__button:hover { background: #1f2937; color: var(--white); }

/* --- Other keynote speakers --- */
.mase-speaker__fellows { padding: var(--space-16) 0; background: var(--light); }

.mase-speaker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-8) var(--space-6);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.mase-speaker__card { position: relative; margin: 0; padding: 0; }
.mase-speaker__card::before { content: none !important; }

.mase-speaker__card-photo {
  aspect-ratio: 3 / 4;
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-md);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mase-speaker__card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.mase-speaker__card-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.mase-speaker__card-name { margin: 0 0 4px; font-size: var(--fs-md); line-height: 1.3; }
.mase-speaker__card-name a { color: var(--navy); }
.mase-speaker__card-name a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.mase-speaker__card-inst { margin: 0 0 var(--space-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--navy-60); }

.mase-speaker__card-talk {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-80);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (hover: hover) {
  .mase-speaker__card:hover .mase-speaker__card-photo { transform: translateY(-6px); }
  .mase-speaker__card:hover .mase-speaker__card-name a { text-decoration: underline; text-underline-offset: 3px; }
}

.mase-speaker__card:focus-within .mase-speaker__card-photo { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- Tablet: symposium card under the biography --- */
@media (max-width: 1024px) {
  .mase-speaker__layout { grid-template-columns: minmax(0, 1fr); }
  .mase-speaker__aside { position: static; max-width: 760px; }
  .mase-speaker__symposium { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 var(--space-5); align-items: start; }
  .mase-speaker__poster { grid-row: span 5; margin: 0; }
}

/* --- Phones --- */
@media (max-width: 640px) {
  .mase-speaker__hero { padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-8); }
  .mase-speaker__hero .mase-breadcrumbs { margin-bottom: var(--space-6); }
  .mase-speaker__intro { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .mase-speaker__portrait { width: 160px; border-radius: var(--radius-md); }
  .mase-speaker__body { padding: var(--space-8) 0 var(--space-12); }
  .mase-speaker__lecture { margin-bottom: var(--space-8); padding: var(--space-6) var(--space-5) var(--space-6) calc(var(--space-5) + 6px); }
  .mase-speaker__bio-text { font-size: var(--fs-base); line-height: 1.75; }
  .mase-speaker__symposium { grid-template-columns: 88px minmax(0, 1fr); padding: var(--space-5); }
  .mase-speaker__fellows { padding: var(--space-12) 0; }
  .mase-speaker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .mase-speaker__card-photo { transition: none; }
  .mase-speaker__card:hover .mase-speaker__card-photo { transform: none; }
}

/* ==========================================================================
   Sponsors — left-aligned grid of square cards (logo + name) per category
   ========================================================================== */
.mase-sponsors {
  padding: var(--section-py-sm) 0 var(--section-py);
  background: var(--sponsors-bg, #ffffff);
}

.mase-sponsors__container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.mase-sponsors__group + .mase-sponsors__group { margin-top: var(--space-10); }

.mase-sponsors__eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-60);
}

.mase-sponsors__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-snug);
  text-align: left;
}

.mase-sponsors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-4);
  justify-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bullet styles from content lists must not leak in */
.mase-sponsors__item { margin: 0; padding: 0; }
.mase-sponsors__item::before { content: none !important; }

.mase-sponsors__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  height: 100%;
  min-height: 146px;
  padding: var(--space-5) var(--space-4) var(--space-4);
  color: var(--text);
  text-align: center;
  background: var(--white);
  border: 1px solid #e3e4ea;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

a.mase-sponsors__card:hover {
  border-color: var(--navy-20);
  box-shadow: var(--shadow-md);
}

a.mase-sponsors__card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Fixed logo box: every card lines up, whatever the logo's proportions */
.mase-sponsors__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
}

.mase-sponsors__card--logo-only .mase-sponsors__media { height: 96px; }

.mase-sponsors__logo {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
}

.mase-sponsors__name {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  overflow-wrap: anywhere;
}

@media (max-width: 991px) {
  .mase-sponsors__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* Phones: always two cards per row */
@media (max-width: 575px) {
  .mase-sponsors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .mase-sponsors__card { min-height: 128px; padding: var(--space-4) var(--space-3) var(--space-3); gap: var(--space-3); }
  .mase-sponsors__media { height: 56px; }
  .mase-sponsors__card--logo-only .mase-sponsors__media { height: 76px; }
}

/* ==========================================================================
   Imported symposium content (old site): poster, main topic, date line, lists
   ========================================================================== */
.mase-symposium-page__intro:has(> .mase-sym-poster) { max-width: 1120px; display: flow-root; }

.mase-sym-poster {
  float: right;
  width: min(340px, 40%);
  margin: 0 0 var(--space-8) var(--space-10);
}

.mase-sym-poster a { display: block; }

.mase-sym-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.mase-sym-dateline { margin: 0 0 var(--space-6); font-size: var(--fs-lg); color: var(--navy); }

.mase-sym-maintopic__label {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.mase-sym-maintopic {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  color: var(--navy);
}

.mase-symposium-page__intro p { margin: 0 0 var(--space-5); }
.mase-symposium-page__intro h3,
.mase-symposium-page__intro h5 { margin: var(--space-8) 0 var(--space-3); font-size: var(--fs-xl); color: var(--navy); }
.mase-symposium-page__intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.mase-symposium-page__intro ul,
.mase-symposium-tabs__panel-body ul {
  margin: 0 0 var(--space-6);
  padding-left: 1.25em;
  list-style: disc;
}

.mase-symposium-page__intro li,
.mase-symposium-tabs__panel-body li { margin: 0 0 var(--space-1); padding-left: 0.25em; }

.mase-symposium-page__intro li::marker,
.mase-symposium-tabs__panel-body li::marker { color: var(--bullet); }

.mase-symposium-tabs__panel-body h4 { margin: var(--space-6) 0 var(--space-2); font-size: var(--fs-lg); }
.mase-symposium-tabs__panel-body h3:first-child,
.mase-symposium-tabs__panel-body h4:first-child { margin-top: 0; }

@media (max-width: 767px) {
  .mase-sym-poster { float: none; width: 100%; max-width: 360px; margin: 0 auto var(--space-8); }
}

/* Archived symposium: tabs kept in the archive, shown as plain sections under the intro */
.mase-sym-archive-section {
  max-width: 760px;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--navy-08);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--navy-60);
}

.mase-sym-archive-section__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-2xl);
  color: var(--navy);
}

.mase-sym-archive-section__body p { margin: 0 0 var(--space-4); }
.mase-sym-archive-section__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mase-sym-archive-section__body img { height: auto; border-radius: var(--radius-sm); }

/* The intro as the first tab: the floated poster stays inside the card */
.mase-symposium-tabs__panel-body { display: flow-root; }
/* Same place and size as the poster of the current symposium (image on the left). */
.mase-symposium-tabs__panel-body .mase-sym-poster {
  float: left;
  width: 260px;
  max-width: 40%;
  margin: 0 28px 18px 0;
}
.mase-symposium-tabs__panel-body .mase-sym-poster img { border-radius: 12px; box-shadow: none; }
.mase-symposium-tabs__panel-body .mase-sym-maintopic { margin-top: 0; }
@media (max-width: 767px) {
  .mase-symposium-tabs__panel-body .mase-sym-poster { float: none; width: 100%; max-width: 320px; margin: 0 0 24px; }
}
