/* The pantheon uses the library's existing paper, shelf and page animations. */
.pantheon-domain {
  color: #765638;
  text-align: center;
  font-style: italic;
  font-size: 15px;
}

.reader-dialog .paper-page:has(.pantheon-illustration) { padding: 16px 22px; }
.reader-dialog .paper-page:has(.pantheon-illustration) > .page-title { padding-bottom: 8px; margin-bottom: 10px; }
.reader-dialog .paper-page .pantheon-domain { margin-bottom: 8px; line-height: 1.4; }

.pantheon-illustration {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: calc(clamp(330px, 65vh, 620px) - 130px);
  margin: 0;
}

.pantheon-illustration img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  margin-inline: auto;
  border: 1px solid #8e7855;
  border-radius: 2px;
}

.pantheon-index { display: grid; gap: 4px; }
.pantheon-index button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid #8e78554d;
  border-radius: 0;
  background: transparent;
  color: #59432e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pantheon-index button:hover { background: #c6b38b40; }
.pantheon-index button:focus-visible { outline: 2px solid #59432e; outline-offset: 2px; }
.pantheon-index-number { flex-shrink: 0; color: #765638; font-style: italic; }
.pantheon-return {
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #765638;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pantheon-return:focus-visible { outline: 2px solid #59432e; outline-offset: 2px; }
.paper-page .pantheon-difficulty {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 2px solid #8e7855;
  background: #c6b38b40;
  color: #59432e;
  line-height: 1.45;
}
.paper-page .pantheon-difficulty strong { font-size: 12px; }
.paper-page .pantheon-section h3 {
  margin: 16px 0 6px;
  padding: 0;
  border: 0;
  font-size: 19px;
  line-height: 1.25;
  text-align: left;
}

@media (max-width: 1023px) {
  .pantheon-illustration { height: calc(max(310px, 63dvh) - 130px); }
}
