/* Shared editorial shell for all public beginner articles. */
body {
  background-color: #fff;
  background-image: url("/mlbb/assets/reader-asanoha.svg");
  background-repeat: repeat;
  background-size: 108px 94px;
}
.reader-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #d8e1e8;
}
.reader-masthead {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #edf1f4;
}
.reader-masthead-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.reader-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #16364c;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
}
.reader-brand img {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(17, 49, 68, .2);
}
.reader-context {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  color: #40576a;
  font-size: .78rem;
  line-height: 1.4;
}
.reader-context strong {
  color: #183e58;
  font-size: .92rem;
  font-weight: 800;
}
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.reader-nav a,
.reader-footer-nav a {
  color: #174f70;
  font-size: .81rem;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
}
.reader-nav a {
  padding: 7px 10px;
  border: 1px solid #d6e4ec;
  border-radius: 999px;
  background: #fff;
}
.reader-nav a:hover,
.reader-footer-nav a:hover {
  color: #073e5d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reader-nav a:focus-visible,
.reader-footer-nav a:focus-visible,
.reader-brand:focus-visible {
  outline: 3px solid #77bce0;
  outline-offset: 3px;
}
.crumb-top {
  color: #34566d;
  font-weight: 700;
  text-decoration: none;
}
.crumb-top:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reader-game-context {
  font-weight: inherit;
}
.reader-game-context [lang="en"] {
  font-weight: 700;
}
.reader-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  border-top: 1px solid #e2e9ee;
  color: #526476;
}
.reader-footer-copy strong {
  color: #23465d;
  font-size: .94rem;
}
.reader-footer-copy p {
  max-width: 68ch;
  margin: 5px 0 0;
  font-size: .84rem;
  line-height: 1.65;
}
.reader-footer-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}
@media (max-width: 780px) {
  .reader-masthead-inner {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .reader-brand {
    font-size: .95rem;
  }
  .reader-brand img {
    width: 30px;
    height: 30px;
  }
  .reader-context {
    font-size: .72rem;
  }
  .reader-context strong {
    font-size: .82rem;
  }
  .reader-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .reader-nav a {
    min-width: 0;
    padding: 7px 8px;
    text-align: center;
    font-size: .78rem;
  }
  .reader-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px 18px 26px;
  }
  .reader-footer-nav {
    justify-content: flex-start;
    gap: 8px 18px;
  }
}


/* Keep scene table captions readable when the table rows become blocks on phones. */
@media (max-width: 780px) {
  .scene caption {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    writing-mode: horizontal-tb;
    text-align: left;
    line-height: 1.6;
  }
}
