
/* Approved TTM homepage: Rows 1 and 2 — Dark. */
body.path-frontpage :is(#toc-group-1, #toc-group-2) .emf-toc-wrapper .toc-block-col-header {
  background-color: #7F9A8C !important;
  color: #FAF9F2 !important;
}
body.path-frontpage :is(#toc-group-1, #toc-group-2) .emf-toc-wrapper .toc-block-col-header h2,
body.path-frontpage :is(#toc-group-1, #toc-group-2) .emf-toc-wrapper .toc-block-col-header a {
  color: #FAF9F2 !important;
}
body.path-frontpage #toc-group-2 .emf-toc-wrapper .toc-block-col-header {
  background-color: #839093 !important;
}
/* Row 2 content: titles, dates, summaries and links. */
body.path-frontpage #toc-group-2 .emf-toc-wrapper .toc-block-col-content,
body.path-frontpage #toc-group-2 .emf-toc-wrapper .toc-block-col-content * {
  color: #FAF9F2 !important;
}


/* Stack all slides in one grid cell so the longest sets the height.
   Hidden slides retain layout space but cannot receive interaction. */
body.path-frontpage .slider-container .vvjs {
  height: auto;
  min-height: calc(60vh - 100px);
  padding-bottom: 32px;
}
body.path-frontpage .slider-container .vvjs .vvjs-items {
  display: grid;
  /* Override the slideshow script's inline active-slide height. */
  height: auto !important;
  min-height: calc(60vh - 100px);
  margin-bottom: 0;
}
body.path-frontpage .slider-container .vvjs .vvjs-items > .vvjs-item {
  display: block !important;
  grid-area: 1 / 1;
  position: relative;
  height: auto;
  margin-block: 0;
}
body.path-frontpage .slider-container .vvjs .vvjs-item[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
body.path-frontpage .slider-container .vvjs .vvjs-item-inner {
  height: auto;
}
body.path-frontpage .slider-container .vvjs .vvjs-hero-content {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin-inline: auto;
  margin-bottom: 1rem;
}


body.path-frontpage .welcome-wrapper h2:not(:empty) {
  font-size: clamp(2rem, 3vw, 2.5rem);
}


.ttm-menu-toggle { display: none; }
.ttm-society-details > summary { display: none; }
@media (max-width: 575.98px) {
  body.path-frontpage .slider-container, body.path-frontpage :is(#toc-group-1, #toc-group-2) { background-attachment: scroll; }
  .quick-nav-row { margin-inline: 0; width: 100%; }
  .emf-nav-wrapper > .row { margin-inline: 0; }
  body.path-frontpage .slider-container .vvjs .homepage-slide .homepage-slide__image { max-height: 64px !important; width: auto; max-width: 50px; }
  .ttm-menu-toggle { display: block; padding: 10px 16px; margin: 8px 12px; border: 1px solid #7F9A8C; border-radius: 4px; background: #FAF9F2; color: #203b63; }
  .emf-main-navigation-wrapper .ttm-menu-collapsed { display: none; }
  .ttm-society-details > summary { display: list-item; cursor: pointer; padding: 12px; color: #203b63; font-weight: bold; }
  .ttm-society-details { margin: 0 auto 8px; text-align: left; }
  .welcome-wrapper { padding: 24px 16px; }
  .welcome-wrapper h2:empty { display: none; }
  body.path-frontpage .slider-container .vvjs .homepage-slide { flex-direction: column; gap: 10px; padding: 16px; }
  body.path-frontpage .slider-container .vvjs .homepage-slide__art { max-width: 100%; }
  body.path-frontpage .slider-container .vvjs .homepage-slide__copy { width: 100%; }
  body.path-frontpage .slider-container .vvjs .vvjs-hero-content { margin-top: 16px !important; }
  body.path-frontpage .slider-container .vvjs .slide-indicators { display: flex !important; position: static; height: auto; justify-content: center; gap: 24px; padding: 8px 0; }
  body.path-frontpage .slider-container .vvjs .slide-indicators button { position: static; transform: none; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) > .bs-region { height: auto !important; min-height: 0; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) .emf-toc-wrapper { height: auto !important; min-height: 0; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) .toc-block-col-content { height: auto !important; min-height: 0; padding: 16px 10px; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) { padding-block: 20px; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) .toc-view-block { height: auto; min-height: 0; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) .toc-block-footer-wrapper { position: static; margin-top: 16px; }
  body.path-frontpage :is(#toc-group-1, #toc-group-2) .view-footer { position: static; margin-top: 16px; }
}

