/* Static divination pages (mo/*.html), generated by scripts/build-mo-pages.js.
   They reuse the about page styles (.about, .glyphs, .anatomy). */
.mo-page {
  max-width: 720px;
}
.crumbs {
  margin: 0 0 14px;
  font-size: 0.8em;
  opacity: 0.85;
}
.mo-hero {
  display: flex;
  gap: 26px;
  align-items: center;
  margin: 6px 0 18px;
  padding: 0 0 0 16px;
  border-left: 5px solid var(--omen);
}
.hero-tib {
  font-size: 72px;
  line-height: 1.35;
  /* room for DHI, which stacks a vowel above the letter and marks below it */
  padding: 0.38em 0 0.05em;
  color: var(--accent, #ffa500);
}
.mo-facts {
  margin: 0 0 4px;
  opacity: 0.9;
}
.mo-facts .omen-tag {
  font-size: 0.8em;
}
.about .mo-image {
  margin: 0 0 10px;
  font-style: italic;
  opacity: 0.8;
}
.mo-page .fortune {
  font-style: italic;
}
.topic-anatomy {
  grid-template-columns: 11em 1fr;
}
.mo-page .interpret-btn {
  margin: 4px 0 0;
}

/* the two syllables */
.mo-syls {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.mo-syl {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background-color: var(--card-bg);
}
.ms-tib {
  font-size: 44px;
  line-height: 1.2;
  padding: 0.45em 0 0.12em;
  min-width: 48px;
  text-align: center;
  color: var(--accent, #ffa500);
}
.ms-name {
  font-weight: bold;
  color: var(--card-strong);
}
.ms-el {
  font-weight: normal;
  opacity: 0.75;
}
.mo-syl p {
  margin: 4px 0 0;
  font-size: 0.92em;
  color: var(--card-foot);
}
.mo-syl .detail-say {
  width: 28px;
  height: 28px;
  margin: 0 0 2px 4px;
}
.mo-syl .detail-say svg {
  width: 18px;
  height: 18px;
}
html[data-theme="light"] .hero-tib,
html[data-theme="light"] .ms-tib,
html[data-theme="light"] .row-tib,
html[data-theme="light"] .mp-tib,
html[data-theme="light"] .mo-page h3 .tib {
  color: #a3361f;
}
html[data-theme="evol-blue"] .hero-tib,
html[data-theme="evol-blue"] .ms-tib,
html[data-theme="evol-blue"] .row-tib,
html[data-theme="evol-blue"] .mp-tib,
html[data-theme="evol-blue"] .mo-page h3 .tib {
  color: #ffe08a;
}

/* chips linking to the other divinations of the same first throw */
.about .mo-glyphs {
  grid-template-columns: repeat(6, 1fr);
}
.about a.mo-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  box-sizing: border-box;
  padding: 8px 4px 8px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: inherit;
  text-decoration: none;
  font-size: 0.75em;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease;
}
.about a.mo-pick:hover,
.about a.mo-pick:focus-visible {
  border-color: color-mix(in srgb, var(--card-border), white 40%);
}
.about a.mo-pick.current {
  border-color: currentColor;
}
.mp-tib {
  font-size: 26px;
  line-height: 1.9;
  color: var(--accent, #ffa500);
}
.about .mo-glyphs .rn {
  font-weight: bold;
  color: var(--card-strong);
}
.about .mo-glyphs .rs {
  opacity: 0.7;
}

/* previous / next */
.mo-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 8px;
  font-size: 0.95em;
}
.mo-nav.top {
  margin: 0 0 12px;
}
.mo-nav > span:last-child {
  text-align: right;
}

/* the list of all divinations (mo/index.html) */
.mo-page h3 .tib {
  font-size: 1.3em;
  margin-right: 6px;
  color: var(--accent, #ffa500);
}
.mo-page h3 .h-el {
  font-weight: normal;
  opacity: 0.75;
}
.mo-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}
.mo-list li {
  margin: 0;
}
.about a.mo-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background-color: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.about a.mo-row:hover,
.about a.mo-row:focus-visible {
  border-color: color-mix(in srgb, var(--card-border), white 40%);
}
.row-tib {
  flex-shrink: 0;
  min-width: 76px;
  text-align: center;
  font-size: 30px;
  line-height: 2;
  color: var(--accent, #ffa500);
}
.mo-row .rr-text {
  min-width: 0;
  line-height: 1.4;
}
.mo-row .rr-name {
  font-weight: bold;
  color: var(--card-strong);
}
.mo-row .rr-sub {
  opacity: 0.75;
  font-size: 0.9em;
}
.mo-row .omen-tag {
  margin-left: 4px;
}
.mo-row .rr-line {
  display: block;
  font-size: 0.85em;
  opacity: 0.85;
}

@media only screen and (max-width: 560px) {
  .about .mo-glyphs {
    grid-template-columns: repeat(3, 1fr);
  }
  .topic-anatomy {
    grid-template-columns: 1fr;
  }
  .topic-anatomy dd {
    margin-bottom: 8px;
  }
  .mo-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  h2.mo-title {
    min-height: 2.5em;
  }
  .mo-nav > span,
  .mo-nav > span a {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .row-tib {
    min-width: 56px;
    font-size: 24px;
  }
}
