/* Shared end-of-tale navigation. Color follows the active reader palette. */
.reader .reading-end,
.reader .arc-reading-nav,
.reader .sequence-navigation,
.reader .narrative-nav,
.tale-footer-links,
#the-oasis .oasis-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: stretch;
  gap: .55rem;
  margin: 1rem 0 0;
  text-align: start;
}
.reader .reading-end {
  margin-block-start: 1.5rem;
  padding-block-start: 1rem;
}
.reader .reading-end > nav {grid-column: 1 / -1; margin: 0 !important}
.reader.arc-guided .sequence-navigation {display: none !important}
.tale-footer-links {padding: 0; list-style: none}
.tale-footer-links li {margin: 0; padding: 0}
:is(.reader .reading-end,.reader .arc-reading-nav,.reader .sequence-navigation,.reader .narrative-nav,.tale-footer-links) a,
#the-oasis :is(.oasis-action-row,#reader) > button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: .72rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 27%, transparent);
  border-inline-start: 3px solid #ac7966;
  border-radius: .4rem;
  background: color-mix(in srgb, currentColor 4%, transparent);
  color: inherit;
  box-shadow: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.42;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
:is(.reading-end,.arc-reading-nav,.sequence-navigation,.narrative-nav,.tale-footer-links) a:is(:hover,:focus-visible),
#the-oasis :is(.oasis-action-row,#reader) > button:is(:hover,:focus-visible) {
  border-color: #ac7966;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
:is(.reading-end,.arc-reading-nav,.sequence-navigation,.narrative-nav,.tale-footer-links) a:focus-visible,
#the-oasis #reader button:focus-visible {outline: 2px solid currentColor; outline-offset: 3px}
@media (max-width: 600px) {
  .reader :is(.reading-end,.arc-reading-nav,.sequence-navigation,.narrative-nav),
  #the-oasis .oasis-action-row,.tale-footer-links {grid-template-columns: minmax(0,1fr)}
}
/* Earlier individual tale themes set these navs to flex by ID. */
:is(#nothing-personal,#fixing-what-we-never-broke) .reading-end > .narrative-nav {display: grid}
