/* Content window max size, see https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/?h=md+grid#content-area-width */

.md-grid {
  max-width: 1440px;
}

.md-typeset {
  --taelgar-aside-small: 12.5rem;
  --taelgar-aside-standard: 20rem;
  --taelgar-aside-large: 26rem;
  --taelgar-figure-small: 24rem;
  --taelgar-figure-standard: 36rem;
  --taelgar-figure-large: 48rem;
}

/* summary boxes */
.md-typeset .ext-one-column {
  grid-template-columns: 1fr;
}

.md-typeset .grid.cards.ext-one-column {
  margin: 0.35rem 0 1rem;
}

.md-typeset .grid.cards.ext-one-column > ul {
  gap: 0.5rem;
}

.md-typeset .grid.cards.ext-one-column > ul > li {
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}

.md-typeset .grid.cards.ext-one-column .bio {
  color: var(--md-default-fg-color--light);
  margin-top: 0.2rem;
}

/* margins */
.md-typeset .ext-narrow-margin {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.md-typeset h1 {
  margin-bottom: 0.15rem;
}

/* Obsidian image callouts: keep the responsive inline layout without
   Material's admonition frame or fallback title icon. */
.md-typeset .admonition.image {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.md-typeset .admonition.image > .admonition-title {
  display: none;
}

.md-typeset .admonition.image > p {
  color: var(--md-default-fg-color--light);
  font-size: 0.75rem;
  line-height: 1.35;
  margin: 0;
}

.md-typeset .admonition.image img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Material defaults admonition text to 80% of body copy. Keep prose-heavy
   callouts at the surrounding reading size while retaining compact captions. */
.md-typeset .admonition:not(.image),
.md-typeset details:not(.image) {
  font-size: 0.8rem;
}

.md-typeset .taelgar-session-zoom {
  --taelgar-session-zoom-border: var(--md-default-fg-color--lightest);
  --taelgar-session-zoom-muted: var(--md-default-fg-color--light);
  background: var(--md-default-bg-color);
  border-bottom: 1px solid var(--taelgar-session-zoom-border);
  margin: 1rem 0 0.75rem;
  padding: 0.35rem 0 0.5rem;
  position: sticky;
  top: 4.9rem;
  z-index: 5;
}

.md-typeset .taelgar-session-zoom__controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.md-typeset .taelgar-session-zoom__button-group {
  border: 1px solid var(--taelgar-session-zoom-border);
  border-radius: 0.3rem;
  display: inline-flex;
  overflow: hidden;
}

.md-typeset .taelgar-session-zoom button {
  background: var(--md-default-bg-color);
  border: 0;
  color: var(--md-default-fg-color);
  cursor: pointer;
  font: inherit;
  margin: 0;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
}

.md-typeset .taelgar-session-zoom__button-group button + button {
  border-left: 1px solid var(--taelgar-session-zoom-border);
}

.md-typeset .taelgar-session-zoom button[aria-pressed="true"] {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.md-typeset .taelgar-session-zoom__beat {
  border-top: 1px solid var(--taelgar-session-zoom-border);
  padding: 0.35rem 0 1rem;
  scroll-margin-top: 4rem;
}

.md-typeset .taelgar-session-zoom__beat[data-zoom="short"] {
  border-top: 0;
  padding: 0.15rem 0;
}

.md-typeset .taelgar-session-zoom__scene-heading {
  font-size: 1rem;
  line-height: 1.25;
  margin: 1.1rem 0 0.2rem;
  scroll-margin-top: 5rem;
}

.md-typeset .taelgar-session-zoom__scene-heading[data-zoom="short"] {
  display: none;
}

.md-typeset .taelgar-session-zoom__level p {
  margin-bottom: 0.7rem;
  margin-top: 0;
}

.md-typeset .taelgar-session-zoom__level::after {
  clear: both;
  content: "";
  display: block;
}

.md-typeset .taelgar-session-zoom__image {
  margin: 0.1rem auto 0.85rem;
  max-width: min(100%, 42rem);
}

.md-typeset .taelgar-session-zoom__image img {
  border-radius: 0.15rem;
  display: block;
  height: auto;
  width: 100%;
}

.md-typeset .taelgar-session-zoom__image figcaption {
  color: var(--taelgar-session-zoom-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 0.25rem;
  text-align: center;
}

.md-typeset .taelgar-session-zoom__image--left {
  float: left;
  margin: 0.15rem 1rem 0.55rem 0;
}

.md-typeset .taelgar-session-zoom__image--right {
  float: right;
  margin: 0.15rem 0 0.55rem 1rem;
}

/* Semantic image roles. Legacy session images continue to use the rules above. */
.md-typeset .taelgar-image--aside {
  clear: right;
  float: right;
  margin: 0.15rem 0 0.75rem 1rem;
  max-width: 45%;
  width: var(--taelgar-aside-standard, 20rem);
}

.md-typeset .taelgar-image--aside.taelgar-image--align-left {
  clear: left;
  float: left;
  margin-left: 0;
  margin-right: 1rem;
}

.md-typeset .taelgar-image--aside.taelgar-image--size-small {
  width: var(--taelgar-aside-small, 12.5rem);
}

.md-typeset .taelgar-image--aside.taelgar-image--size-large {
  width: var(--taelgar-aside-large, 26rem);
}

.md-typeset .taelgar-image--figure {
  float: none;
  margin: 1rem auto 0.85rem;
  max-width: 100%;
  width: var(--taelgar-figure-standard, 36rem);
}

.md-typeset .taelgar-image--figure.taelgar-image--size-small {
  width: var(--taelgar-figure-small, 24rem);
}

.md-typeset .taelgar-image--figure.taelgar-image--size-large {
  width: var(--taelgar-figure-large, 48rem);
}

.md-typeset .taelgar-image--hero {
  float: none;
  margin: 1.15rem auto 1rem;
  max-width: 100%;
  width: 100%;
}

.md-typeset .taelgar-image-gallery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  margin: 1rem 0;
  width: 100%;
}

.md-typeset .taelgar-image-gallery .taelgar-image-gallery__item {
  margin: 0;
  max-width: none;
  width: 100%;
}

/* Generic-note galleries use an Obsidian callout containing a Markdown list. */
.md-typeset .admonition.gallery {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.md-typeset .admonition.gallery > .admonition-title {
  display: none;
}

.md-typeset .admonition.gallery > ul {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-typeset .admonition.gallery > ul > li {
  margin: 0;
}

.md-typeset .admonition.gallery img {
  display: block;
  height: auto;
  width: 100%;
}

.md-typeset .taelgar-session-zoom__beat[data-zoom="short"] .taelgar-session-zoom__level:not([data-zoom-level="short"]),
.md-typeset .taelgar-session-zoom__beat[data-zoom="intermediate"] .taelgar-session-zoom__level:not([data-zoom-level="intermediate"]),
.md-typeset .taelgar-session-zoom__beat[data-zoom="long"] .taelgar-session-zoom__level:not([data-zoom-level="long"]),
.md-typeset .taelgar-session-zoom__beat[data-zoom="transcript"] .taelgar-session-zoom__level:not([data-zoom-level="transcript"]) {
  display: none;
}

.md-typeset .taelgar-session-zoom__transcript-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-typeset .taelgar-session-zoom__transcript-line {
  border-bottom: 1px solid var(--taelgar-session-zoom-border);
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(6rem, 9rem) 1fr;
  margin: 0;
  padding: 0.35rem 0;
}

.md-typeset .taelgar-session-zoom__speaker {
  color: var(--md-accent-fg-color);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.md-typeset .taelgar-session-zoom__line-text {
  min-width: 0;
}

.md-typeset .taelgar-session-zoom__loading {
  color: var(--taelgar-session-zoom-muted);
  font-style: italic;
}

@media screen and (max-width: 44.984375em) {
  .md-typeset .taelgar-session-zoom {
    position: static;
    top: auto;
    z-index: auto;
  }

  .md-typeset .taelgar-session-zoom__controls {
    align-items: stretch;
    flex-direction: column;
  }

  .md-typeset .taelgar-session-zoom__button-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .md-typeset .taelgar-session-zoom__image--left,
  .md-typeset .taelgar-session-zoom__image--right,
  .md-typeset .taelgar-image--aside,
  .md-typeset .taelgar-image--aside.taelgar-image--align-left {
    float: none;
    margin: 0.1rem auto 0.85rem;
    max-width: 100%;
  }

  .md-typeset .taelgar-session-zoom__transcript-line {
    gap: 0.1rem;
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary:not(:has(.md-nav__item--active)):not(:has(.md-nav__link--active)) {
    display: none;
  }
}

.taelgar-backlinks .md-nav__link {
  font-size: 0.64rem;
  line-height: 1.25;
  padding-bottom: 0.12rem;
  padding-top: 0.12rem;
}

.taelgar-backlinks > .md-nav__list {
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.taelgar-backlinks__title {
  color: var(--md-default-fg-color--light);
  font-size: 0.64rem;
  font-weight: 700;
  margin: 1em 0 0.25rem;
  padding: 0 0.6rem;
}

.taelgar-backlinks__more {
  margin-top: 0.15rem;
}

.taelgar-backlinks__more summary {
  cursor: pointer;
  list-style: none;
}

.taelgar-backlinks__more summary::-webkit-details-marker {
  display: none;
}

.taelgar-backlinks__more summary::before {
  color: var(--md-default-fg-color--light);
  content: "+";
  display: inline-block;
  font-weight: 700;
  margin-right: 0.25rem;
}

.taelgar-backlinks__more details[open] summary::before {
  content: "-";
}

.taelgar-backlinks__more .md-nav__list {
  margin-left: 0.45rem;
  margin-top: 0.15rem;
}

.md-typeset table:not([class]) {
  font-size: 0.72rem;
  line-height: 1.35;
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.45em 0.65em;
  vertical-align: top;
}

.md-typeset table:has(img) th:first-child,
.md-typeset table:has(img) td:first-child {
  text-align: center;
  width: 5rem;
}

.md-typeset table img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 4.5rem;
  max-width: 4.5rem;
  object-fit: contain;
}

.md-typeset table a[href*="dndbeyond.com"] {
  font-size: 0.68rem;
  white-space: nowrap;
}

@media screen and (max-width: 44.984375em) {
  .md-typeset table:not([class]) {
    font-size: 0.68rem;
  }

  .md-typeset table img {
    max-height: 3.25rem;
    max-width: 3.25rem;
  }
}


/* Generic Grid Layout */
/* See home.html template for example usage setting up buttons */

.row {
  width:100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-0-24 { width:0%; display:none; }
.col-1-24 { width:4.166667%; display:inline-block; }
.col-1dot5-24 { width: 6.25%; display:inline-block; }
.col-2-24 { width:8.333333%; display:inline-block; }
.col-3-24 { width:12.5%; display:inline-block; }
.col-4-24 { width:16.666667%; display:inline-block; }
.col-5-24 { width:20.833333%; display:inline-block; }
.col-6-24 { width:25%; display:inline-block; }
.col-7-24 { width:29.166667%; display:inline-block; }
.col-8-24 { width:33.333333%; display:inline-block; }
.col-9-24 { width:37.5%; display:inline-block; }
.col-10-24 { width:41.666667%; display:inline-block; }
.col-11-24 { width:45.833333%; display:inline-block; }
.col-12-24 { width:50%; display:inline-block; }
.col-13-24 { width:54.166667%; display:inline-block; }
.col-14-24 { width:58.333333%; display:inline-block; }
.col-15-24 { width:62.5%; display:inline-block; }
.col-16-24 { width:66.666667%; display:inline-block; }
.col-17-24 { width:70.833333%; display:inline-block; }
.col-18-24 { width:75%; display:inline-block; }
.col-19-24 { width:79.1666667%; display:inline-block; }
.col-20-24 { width:83.333333%; display:inline-block; }
.col-21-24 { width:87.5%; display:inline-block; }
.col-22-24 { width:91.666667%; display:inline-block; }
.col-23-24 { width:95.833333%; display:inline-block; }
.col-24-24 { width:100%; display:inline-block; }
/* 24 */

.sep-div { height: 1vh;}
