/* Center level 1 headings */
h1 {
  text-align: center;
}

/* Title page banner. Raw <h1> rather than a Markdown heading: an .unlisted
   Markdown heading would take every following section out of the TOC with it. */
.program-title {
  margin-top: 0;
  line-height: 1.15;
}

h2 {
  text-align: center;
  text-decoration: underline;
}

h3 {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 6px;
}

/* Remove default table borders and add vertical cell padding */
.table th, 
.table td {
  border: none !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Optional: style table headers or text sizes */
.table th {
  font-weight: 700;
  border-bottom: 2px solid var(--bs-body-color) !important;
}

.mainsched {
  text-align: center;
  margin: 0 auto;
}

ol, ul {
  padding-left: 1.15em;
}

/* Definition lists (the officer roster). Match the PDF, where LaTeX's
   `description` puts the bold role flush with the text margin and hangs the
   name and affiliation 27pt (~2.45em) in under it. The browser's default dd
   indent of 40px (2.5em) already matches that, so only the weight is set
   here. See the \setlist[description] block in custom-styles.tex. */
dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.6rem;
  padding-left: 1.15em;
}
/* Click-to-expand abstracts (see abstracts.lua). The talk headings and
   .mainsched are centered; the abstract text reads better left-aligned. */
details.talkabstract {
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  text-align: center;
}

details.talkabstract summary {
  display: inline-block;
  cursor: pointer;
  font-size: 0.9em;
  color: var(--bs-secondary-color, #6c757d);
}

details.talkabstract[open] summary {
  margin-bottom: 0.4rem;
}

/* inline-block drops the browser's disclosure triangle; draw one so the
   label reads as clickable. */
details.talkabstract summary::after {
  content: " \25B8";
}

details.talkabstract[open] summary::after {
  content: " \25BE";
}

details.talkabstract > :not(summary) {
  text-align: left;
  font-size: 0.95em;
}

/* Abstracts inside the poster lists sit under the item, not centered. */
li details.talkabstract {
  margin: 0.25rem 0 0.75rem;
  text-align: left;
}

/* Mobile menu (see partials/mobile-menu.html). Below 768px Quarto hides the
   left sidebar; the button re-opens it as a slide-in panel. */
#mobile-menu-toggle,
#mobile-menu-backdrop {
  display: none;
}

@media (max-width: 767.98px) {
  #mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1060;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.6rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  body.mobile-menu-open #quarto-sidebar-toc-left {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 1055;
    width: min(85vw, 320px);
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 4rem 1rem 1.5rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  }

  /* Quarto makes the TOC itself sticky with its own max-height; inside the
     panel it should just scroll with the panel. */
  body.mobile-menu-open #quarto-sidebar-toc-left #TOC {
    display: block !important;
    position: static;
    max-height: none;
    overflow: visible;
  }

  body.mobile-menu-open #mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.35);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}
