a.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: .6em 1.05em;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: .55rem;
  background-color: transparent;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
}
a.nav-action:is(.atlas-band,.ml-partner) { justify-content: space-between; }
a.nav-action:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
a.nav-action::after { content: none; }
/* Keep the action hierarchy consistent across the home and reading screens. */
a.nav-action:hover {
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}

a.button.primary.nav-action {
  background-color: var(--gold, #bb975e);
  border-color: transparent;
  color: #20190f;
}

a.button.primary.nav-action:hover {
  background-color: color-mix(in srgb, var(--gold, #bb975e) 84%, white);
}

#site-shell .ml-top { gap: clamp(12px, 2vw, 24px); }
#site-shell .ml-desktop { gap: clamp(2px, .6vw, 10px); }
#site-shell .ml-desktop > a,
#site-shell .ml-desktop summary,
#site-shell .ml-utils summary,
.header .home-desktop-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-decoration: none;
}

#site-shell .ml-desktop > a:is(:hover, [aria-current="page"]),
#site-shell .ml-desktop summary:is(:hover, [aria-current="true"]),
#site-shell .ml-utils summary:hover,
.header .home-desktop-nav > a:hover {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}

#site-shell .ml-desktop > a.nav-action,
.header .home-desktop-nav > a.nav-action {
  border-color: color-mix(in srgb, currentColor 34%, transparent);
  margin-inline-start: .2rem;
}

#site-shell .ml-desktop > a[aria-current="page"],
#site-shell .ml-desktop summary[aria-current="true"] {
  color: var(--ml-accent);
}

#site-shell .ml-drop,
.home-mobile-menu nav {
  border-radius: .75rem;
  padding: .4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ml-line, var(--line)) transparent;
}

#site-shell .ml-drop a,
.home-mobile-menu nav a {
  border-radius: .45rem;
  padding: .65rem .75rem;
  min-height: 44px;
}

#site-shell .ml-drop a[aria-current="page"] {
  color: var(--ml-accent);
  background-color: color-mix(in srgb, var(--ml-accent) 12%, transparent);
}

#site-shell .ml-menu summary,
.home-mobile-menu summary {
  gap: .65rem;
  border: 1px solid var(--ml-line, var(--line));
  border-radius: .55rem;
}

#site-shell .ml-menu summary::after,
.home-mobile-menu summary::after {
  content: "";
  width: 1rem;
  height: .55rem;
  border-block: 1px solid;
}

#site-shell .ml-menu[open] summary::after,
.home-mobile-menu[open] summary::after {
  content: "";
  height: .45rem;
  width: .45rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(225deg);
}

#site-shell .ml-languages { gap: 0; border: 1px solid var(--ml-line); border-radius: .55rem; padding: 2px; }
#site-shell .ml-languages button { min-height: 38px; min-width: 40px; border-radius: .4rem; }
#site-shell .ml-languages button[aria-pressed="true"] {
  background-color: color-mix(in srgb, var(--ml-accent) 15%, transparent);
}
/* Shared UI colors. Keep the existing illustrations and use the same accents
   for the selected theme, focus indicators, and primary actions. */
html.ml-shell-ready body {
  --bg: #191e24;
  --surface: #252c35;
  --text: #eff1f5;
  --muted: #b9c0cc;
  --gold: #cbd0d8;
  --line: #788493;
  --action-fg: #1d232a;
}

html.ml-shell-ready body.world-ink {
  --bg: #f6f3eb;
  --surface: #ebe5d9;
  --text: #25302b;
  --muted: #595951;
  --gold: #2f3433;
  --line: #8b887e;
  --action-fg: #fefbf5;
}

#site-shell,
#site-shell[data-world="ink"] {
  --ml-bg: var(--bg);
  --ml-fg: var(--text);
  --ml-muted: var(--muted);
  --ml-accent: var(--gold);
  --ml-line: var(--line);
  --ml-selection: color-mix(in srgb, var(--ml-accent) 11%, var(--ml-bg));
}

html.ml-shell-ready .button.primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--action-fg);
}

html.ml-shell-ready .button.primary:hover {
  background-color: color-mix(in srgb, var(--gold) 90%, var(--text));
}

html.ml-shell-ready .home-resume { background: var(--surface); }

#site-shell .ml-worlds {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  margin-inline-start: auto;
  padding: .15rem;
  border: 1px solid var(--ml-line);
  border-radius: .6rem;
}

#site-shell .ml-worlds button {
  min-height: 44px;
  min-width: 48px;
  border: 0;
  border-radius: .42rem;
  white-space: nowrap;
}

#site-shell .ml-worlds button[aria-pressed="true"],
#site-shell .ml-drop a[aria-current="page"],
#site-shell .ml-mobile-bottom a[aria-current="page"] {
  background-color: var(--ml-selection);
}

@media (max-width: 700px) {
  #site-shell .ml-mobile-bottom a { min-height: 44px; border-radius: .4rem; }
  #site-shell .ml-context { align-items: center; }
}
#site-shell .ml-brand .myliferi-mark { flex-basis: 38px; }
#site-shell .ml-brand .myliferi-mark svg > .logo-gold { opacity: 1; }
#site-shell .ml-brand .myliferi-mark svg > .logo-ink { opacity: 0; }
#site-shell[data-world="ink"] .ml-brand .myliferi-mark svg > .logo-gold {
  filter: grayscale(1) brightness(1.04) contrast(1.08) drop-shadow(0 .5px .5px #34384380);
}
#site-shell[data-world="ink"] .ml-brand .logo-light {
  --logo-light: #c5cdd6;
  --logo-core: #f7fbff;
}
#site-shell[data-world="celestial"] .ml-brand .logo-light {
  --logo-light: #ffe3a3;
  --logo-core: #fff6db;
}

@media (max-width: 700px) {
  #site-shell:has(.ml-menu[open]) .ml-mobile-bottom { visibility: hidden; }
}

@media (max-width: 360px) {
  #site-shell .ml-top { padding-inline: 10px; gap: 8px; }
  #site-shell .ml-utils { gap: 6px; }
  #site-shell .ml-menu summary { padding-inline: .55rem; }
}

/* The ink home uses the paper color behind the existing landscape. */
body.home-entry-page.world-ink .landscape-shade {
  background: linear-gradient(180deg, var(--bg) 5%, var(--bg) 18%,
    color-mix(in srgb, var(--bg) 94%, transparent) 34%, transparent 70%, var(--bg) 100%);
}

/* Match the B preview behind the existing fantasy illustration. */
body.home-entry-page:not(.world-ink) .landscape-shade {
  background: linear-gradient(180deg, var(--bg) 5%, var(--bg) 18%,
    color-mix(in srgb, var(--bg) 94%, transparent) 34%, transparent 70%, var(--bg) 100%);
}

.reading-term-help { color: inherit; }
.reading-term-help { font-weight: 700; }
.reading-term-notes {
  display: block;
  margin-block: .25rem .7rem;
  padding: .5rem .75rem;
  border-inline-start: 2px solid var(--gold, currentColor);
  background: color-mix(in srgb, currentColor 5%, transparent);
  font-size: .9em;
  line-height: 1.65;
}
.reading-term-notes > span { display: block; }
.reading-term-notes > span + span { margin-block-start: .45rem; }
.reading-term-notes strong { color: inherit; margin-inline-end: .35em; }

/* One index for related destinations on the desktop and mobile menus. */
#site-shell .ml-desktop { gap: clamp(.25rem, 1.2vw, 1.25rem); }
#site-shell .ml-desktop summary { min-height: 44px; }
#site-shell .ml-menu-index { padding: .4rem 0; }
#site-shell .ml-menu .ml-menu-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#site-shell .ml-menu .ml-menu-subheading { grid-column: 1 / -1; }
#site-shell .ml-menu .ml-drop a { overflow-wrap: anywhere; }
#site-shell .ml-menu-index + .ml-menu-index,
#site-shell .ml-menu-section + .ml-menu-section { border-top: 1px solid var(--ml-line); }
#site-shell .ml-menu-heading,
#site-shell .ml-menu-subheading { margin: 0; padding: .55rem .75rem .15rem; }
#site-shell .ml-menu-heading { color: var(--ml-fg); font-size: .94rem; font-weight: 700; }
#site-shell .ml-menu-subheading { color: var(--ml-muted); font-size: .72rem; }
#site-shell .ml-home-worlds { display: flex; justify-content: flex-end; }
#site-shell .ml-top-home .ml-utils { margin-inline-start: auto; }

#site-shell .ml-desktop { gap: clamp(.45rem, .8vw, .8rem); }
#site-shell .ml-top :is(.ml-explore, .ml-menu) > summary {
  position: relative;
  isolation: isolate;
  gap: .58rem;
  min-height: 44px;
  padding: .55rem .92rem;
  color: var(--ml-fg);
  border: 0;
  background: transparent;
  font-weight: 650;
  transition: color 180ms ease;
}
#site-shell .ml-menu-face {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 74%);
  pointer-events: none;
}
#site-shell .ml-top :is(.ml-explore, .ml-menu) > summary::before {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  bottom: .3rem;
  height: 2px;
  background: var(--menu-underline);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
#site-shell .ml-top :is(.ml-explore, .ml-menu)[open] > summary::before,
#site-shell .ml-top .ml-explore > summary[aria-current="true"]::before {
  opacity: 1;
}
#site-shell .ml-menu-symbol {
  opacity: .82;
  width: 1.02rem;
  height: 1.05rem;
  flex: none;
  border: 0;
  background: transparent;
}
#site-shell .ml-top :is(.ml-explore, .ml-menu) > summary::after {
  content: "";
  width: .36rem;
  height: .36rem;
  margin-inline-start: .13rem;
  flex: none;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  rotate: 45deg;
  translate: 0 -.1rem;
  transition: rotate 180ms ease, translate 180ms ease;
}
#site-shell .ml-top :is(.ml-explore, .ml-menu)[open] > summary::after {
  rotate: 225deg;
  translate: 0 .1rem;
}
#site-shell .ml-top :is(.ml-explore, .ml-menu) > summary:focus-visible {
  outline: 2px solid var(--ml-accent);
  outline-offset: 4px;
}
#site-shell .ml-menu-flash,
#site-shell .ml-menu-bloom {
  position: absolute;
  display: block;
  opacity: 0;
}

#site-shell[data-world="ink"] .ml-top {
  --menu-underline: linear-gradient(92deg, transparent, #5b4939 22%, #86715c 66%, transparent);
}
#site-shell[data-world="ink"] .ml-menu-symbol { color: #67513d; }
#site-shell[data-world="ink"] .ml-menu-flash,
#site-shell[data-world="ink"] .ml-menu-bloom {
  left: var(--press-x, 50%);
  top: var(--press-y, 50%);
  width: 184%;
  height: 185%;
  translate: -50% -50%;
  border-radius: 37% 61% 42% 52% / 60% 40% 57% 38%;
}
#site-shell[data-world="ink"] .ml-menu-flash {
  background:
    radial-gradient(ellipse at 43% 55%, #332e2ac2 0, #4b463a96 19%, transparent 54%),
    radial-gradient(ellipse at 59% 37%, #413a309a 0, #4f493d48 27%, transparent 55%),
    radial-gradient(ellipse at 65% 64%, #5c503d93 3%, transparent 47%);
}
#site-shell[data-world="ink"] .ml-menu-bloom {
  width: 164%;
  background:
    radial-gradient(ellipse at 30% 29%, #58504078 0 2%, transparent 5%),
    radial-gradient(ellipse at 64% 63%, #4b423778 0 5%, transparent 10%),
    radial-gradient(ellipse at 53% 51%, #4b43384a 9%, transparent 46%);
}

#site-shell[data-world="celestial"] .ml-top {
  --menu-underline: linear-gradient(90deg, transparent, #e1b972 49%, transparent);
}
#site-shell[data-world="celestial"] .ml-menu-symbol { color: #b9cbdc; }
#site-shell[data-world="celestial"] :is(.ml-explore, .ml-menu)[open] > summary,
#site-shell[data-world="celestial"] summary[aria-current="true"] {
  color: #ffe5ac;
}
#site-shell[data-world="celestial"] .ml-menu-flash {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 25%, #fff0ab 50%, transparent 75%) top / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 24%, #dfad58 50%, transparent 76%) bottom / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 18%, #e7a04438 43%, #ffe4a077 49%, #fff2b5c9 51%, #e7a04424 58%, transparent 82%);
}
#site-shell[data-world="celestial"] .ml-menu-bloom {
  left: var(--press-x, 50%);
  top: var(--press-y, 50%);
  width: 22px;
  height: 22px;
  translate: -50% -50%;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  background: radial-gradient(circle, #fffbd3 10%, #f2c879 44%, #d3913c 85%);
}
@media (hover: hover) {
  #site-shell .ml-top :is(.ml-explore, .ml-menu):not([open]) > summary:hover::before { opacity: .65; }
}
#site-shell .ml-top :is(.ml-explore, .ml-menu)[open] > .ml-drop {
  animation: menu-appear 160ms ease-out;
}
@keyframes menu-appear {
  from { opacity: 0; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  #site-shell .ml-top :is(.ml-explore, .ml-menu) > summary,
  #site-shell .ml-top :is(.ml-explore, .ml-menu) > summary::after,
  #site-shell .ml-top :is(.ml-explore, .ml-menu) > summary::before { transition: none; }
  #site-shell :is(.ml-menu-flash, .ml-menu-bloom) { display: none; }
  #site-shell .ml-top :is(.ml-explore, .ml-menu)[open] > .ml-drop { animation: none; }
}
@media (max-width: 700px) {
  #site-shell .ml-top-home { flex-wrap: wrap; }
  #site-shell .ml-home-worlds { flex-basis: 100%; }
}

/* Hero actions share the header’s ink and gold accents. */
body.home-entry-page .home-start-actions,
body.home-entry-page .home-deep-reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  align-items: stretch;
}
body.home-entry-page .home-start-actions [data-home-action="birth"] { grid-column: 1 / -1; }

body.home-entry-page #home-entry a[data-home-action] {
  --hero-line: #e1bb78;
  --hero-line-glint: #fff6d3;
  --hero-fill: color-mix(in srgb, var(--text) 7%, var(--bg));
  --hero-edge: color-mix(in srgb, var(--text) 21%, var(--bg));
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  max-width: 100%;
  margin: 0;
  padding: .45rem .65rem;
  border: 1px solid var(--hero-edge);
  border-radius: .55rem;
  color: var(--text);
  background: var(--hero-fill);
  box-shadow: none;
  font-size: clamp(.96rem, 1.2vw, 1.14rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease;
}
body.home-entry-page #home-entry a.button.primary[data-home-action] {
  min-height: 4.1rem;
  min-width: min(100%, 13rem);
  width: fit-content;
  padding: .55rem 1.15rem;
  color: var(--text);
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: clamp(1.38rem, 2.35vw, 1.88rem);
  font-weight: 800;
}
body.home-entry-page:not(.world-ink) #hero-title,
body.home-entry-page:not(.world-ink) #home-entry a.button.primary[data-home-action],
body.home-entry-page:not(.world-ink) #home-entry a[data-home-action] {
  color: #d8b77b;
}
body.home-entry-page #home-entry .action-label {
  position: relative;
  display: inline-block;
  min-width: 0;
  padding-block-end: .19em;
  background: linear-gradient(90deg, var(--hero-line), transparent 95%) left bottom / 100% 1px no-repeat;
}
body.home-entry-page #home-entry a[data-home-action]:not(.primary) .action-label {
  overflow: hidden;
}
body.home-entry-page #home-entry a[data-home-action]:not(.primary) .action-label::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 40%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hero-line), var(--hero-line-glint), var(--hero-line), transparent);
  opacity: 0;
  animation: hero-line-sweep 1.15s .34s ease-in-out infinite alternate;
}
body.home-entry-page #home-entry a[data-home-action="deep"] .action-label::after {
  animation-delay: .56s;
}
@keyframes hero-line-sweep {
  0% { transform: translateX(0); opacity: .55; }
  50% { opacity: 1; }
  100% { transform: translateX(150%); opacity: .55; }
}
body.home-entry-page #home-entry .primary .action-label { background: none; padding: 0; }

@property --hero-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -25deg;
}
body.home-entry-page #home-entry a.button.primary[data-home-action]::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -.32rem -.55rem;
  padding: 3px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from var(--hero-orbit-angle),
    transparent 5%, #91a4bc45 21%, #e2efff 33%, #a8bed6 39%,
    #b58138 46%, #ffd075 54%, #fff6d3 58%, #ffc560 61%, transparent 67%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  animation: hero-orbit 2.35s linear infinite;
}
body.home-entry-page.world-ink #home-entry a.button.primary[data-home-action]::after {
  padding: 3px;
  background: conic-gradient(from var(--hero-orbit-angle),
    transparent 4%, #81756648 21%, #8c9196 34%, #edece6 38%,
    #8f7146 46%, #b88d45 53%, #fff0c8 58%, #9b682a 62%, transparent 69%);
  animation-direction: reverse;
}
@keyframes hero-orbit {
  0%, 100% { opacity: 1; rotate: -6deg; }
  0% { --hero-orbit-angle: -25deg; }
  50% { rotate: 6deg; }
  100% { --hero-orbit-angle: 335deg; }
}
body.home-entry-page #home-entry a[data-home-action]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .1rem -.45rem .05rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 28%, #f5c86a23 44%, #fff0bd88 49%, #efb64a45 53%, transparent 69%);
  mask-image: radial-gradient(ellipse, #000 36%, transparent 74%);
}
body.home-entry-page.world-ink #home-entry a[data-home-action] {
  --hero-line: #75604a;
  --hero-line-glint: #e1a74f;
  --hero-fill: color-mix(in srgb, var(--text) 5%, var(--bg));
  --hero-edge: color-mix(in srgb, var(--text) 22%, var(--bg));
}
body.home-entry-page.world-ink #home-entry a[data-home-action]::before {
  background:
    radial-gradient(ellipse at 40% 58%, #49322764, transparent 58%),
    radial-gradient(ellipse at 63% 45%, #6e55414b, transparent 59%);
}
body.home-entry-page #home-entry a[data-home-action]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
body.home-entry-page #home-entry a[data-home-action]:is(:focus-visible, [data-hero-pressed])::before {
  animation: hero-gold-sweep 680ms ease-out;
}
body.home-entry-page.world-ink #home-entry a[data-home-action]:is(:focus-visible, [data-hero-pressed])::before {
  animation: hero-ink-wash 650ms ease-out;
}
@media (hover: hover) {
  body.home-entry-page #home-entry a[data-home-action]:hover::before { animation: hero-gold-sweep 680ms ease-out; }
  body.home-entry-page.world-ink #home-entry a[data-home-action]:hover::before { animation: hero-ink-wash 650ms ease-out; }
}
body.home-entry-page #home-entry a[data-home-action]:active { color: #ffe3a9; }
body.home-entry-page.world-ink #home-entry a[data-home-action]:active { color: #594332; }
@keyframes hero-gold-sweep {
  0% { opacity: 0; transform: translateX(-34%) skewX(-12deg); }
  33% { opacity: 1; }
  100% { opacity: 0; transform: translateX(34%) skewX(-12deg); }
}
@keyframes hero-ink-wash {
  0% { opacity: 0; transform: scale(.38, .62); }
  34% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.12, 1.07); }
}
@media (prefers-reduced-motion: reduce) {
  body.home-entry-page #home-entry a[data-home-action] { transition: none; }
  body.home-entry-page #home-entry a[data-home-action]::before { display: none; }
  body.home-entry-page #home-entry a.button.primary[data-home-action]::after { animation: none; }
  body.home-entry-page #home-entry a[data-home-action]:not(.primary) .action-label::after { animation: none; }
}

body .birth-wrap .birth-submit {
  --button-surface: var(--surface, #252c35);
  --button-edge: color-mix(in srgb, var(--text, #eff1f5) 35%, transparent);
  --button-depth: color-mix(in srgb, #000 24%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  min-height: 3.15rem;
  margin-inline: 0;
  padding: .44rem .7rem;
  border: 1px solid var(--button-edge);
  border-radius: .6rem;
  color: var(--text, #eff1f5);
  background: var(--button-surface);
  box-shadow: 0 2px 0 var(--button-depth), inset 0 1px 0 #fff2;
  font-size: .94rem;
  line-height: 1.3;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: translate 160ms ease-out, box-shadow 160ms ease-out,
    background-color 160ms ease-out, border-color 160ms ease-out;
}
body .birth-wrap .birth-submit {
  --button-surface: var(--gold, #cbd0d8);
  --button-edge: color-mix(in srgb, var(--gold, #cbd0d8), #000 18%);
  --button-depth: color-mix(in srgb, var(--gold, #cbd0d8) 60%, #000);
  color: var(--action-fg, #1d232a);
  min-height: 3.55rem;
  font-size: 1rem;
  font-weight: 750;
}
body .birth-wrap .birth-submit { justify-content: center; }

.action-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: .43rem;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.action-icon::before,
.action-icon::after {
  grid-area: 1 / 1;
  box-sizing: border-box;
  transition: transform 180ms ease-out;
}
.action-icon[data-icon="calendar"]::before,
.action-icon[data-icon="book"]::before,
.action-icon[data-icon="folder"]::before,
.action-icon[data-icon="chat"]::before {
  content: "";
  width: .92rem;
  height: .8rem;
  border: 1.5px solid;
  border-radius: .15rem;
}
.action-icon[data-icon="calendar"]::after {
  content: "";
  width: .92rem;
  height: .3rem;
  border-top: 1.5px solid;
  transform: translateY(-.04rem);
}
.action-icon[data-icon="book"]::after {
  content: "";
  height: .7rem;
  width: 0;
  border-inline-start: 1.5px solid;
}
.action-icon[data-icon="layers"]::before,
.action-icon[data-icon="layers"]::after {
  content: "";
  width: .72rem;
  height: .72rem;
  border: 1px solid;
  border-radius: .1rem;
  transform: translateY(-.15rem) rotate(45deg) scaleY(.66);
}
.action-icon[data-icon="layers"]::after { transform: translateY(.15rem) rotate(45deg) scaleY(.66); }
.action-icon[data-icon="folder"]::after {
  content: "";
  width: .4rem;
  border-top: 2px solid;
  transform: translate(-.21rem, -.42rem);
}
.action-icon[data-icon="chat"]::after {
  content: "";
  width: .24rem;
  height: .24rem;
  border-inline-start: 1px solid;
  transform: translate(-.27rem, .46rem) skew(-25deg);
}
.action-icon[data-icon="spark"]::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.action-label { min-width: 0; }
@media (hover: hover) {
    body .birth-wrap .birth-submit:hover:not(:disabled) {
    translate: 0 -2px;
    border-color: currentColor;
    box-shadow: 0 5px 0 var(--button-depth), inset 0 1px 0 #fff3;
  }
  .birth-submit:hover:not(:disabled) .action-icon::before { transform: rotate(30deg) scale(1.1); }
}
body .birth-wrap .birth-submit:active:not(:disabled) {
  translate: 0 2px;
  box-shadow: 0 0 0 var(--button-depth), inset 0 2px 4px #0002;
}
body .birth-wrap .birth-submit:disabled { opacity: .65; cursor: wait; }
body .birth-wrap .birth-submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
@media (max-width: 365px) {
  body.home-entry-page .home-start-actions,
  body.home-entry-page .home-deep-reading { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    body .birth-wrap .birth-submit,
  .action-icon::before, .action-icon::after {
    transition: none !important;
    translate: none !important;
  }
}

/* Reading pages distinguish primary actions, secondary controls and source links. */
html.ml-shell-ready body {
  --reading-button-bg: #26303c;
  --reading-button-hover: #354253;
  --reading-button-ink: #f4e6ca;
  --reading-button-edge: #a89164;
  --reading-primary-bg: #d8b77b;
  --reading-primary-hover: #e8cb98;
  --reading-primary-ink: #191e24;
}
html.ml-shell-ready body.world-ink {
  --reading-button-bg: #fffdf7;
  --reading-button-hover: #ede7d9;
  --reading-button-ink: #242a29;
  --reading-button-edge: #737a7e;
  --reading-primary-bg: #303734;
  --reading-primary-hover: #424d47;
  --reading-primary-ink: #fffaf0;
}
html.ml-shell-ready body :is(
  a.nav-action:not(.primary,.atlas-band,.ml-partner,.round-button,[data-home-action]),
  a.button:not(.primary,[data-home-action]),
  button.control, button.gold-button, button.button:not(.primary),
  .mode-buttons > button, .chapter-controls > button, .toolrow .switch > button,
  .examples > button, .pager > button, :where(#download)
):not(:where(#site-shell *)) {
  background: var(--reading-button-bg);
  color: var(--reading-button-ink);
  border: 1px solid var(--reading-button-edge);
  border-radius: .5rem;
  min-height: 44px;
  font-weight: 650;
}
html.ml-shell-ready body :is(
  a.nav-action:not(.primary,.atlas-band,.ml-partner,.round-button,[data-home-action]),
  a.button:not(.primary,[data-home-action]),
  button.control, button.gold-button, button.button:not(.primary),
  .mode-buttons > button, .chapter-controls > button, .toolrow .switch > button,
  .examples > button, .pager > button, :where(#download)
):not(:where(#site-shell *)):hover:not(:disabled) {
  background: var(--reading-button-hover);
}
html.ml-shell-ready body :is(a.button.primary, button.button.primary):not([data-home-action]) {
  background: var(--reading-primary-bg);
  color: var(--reading-primary-ink);
  border: 1px solid var(--reading-primary-bg);
  border-radius: .5rem;
  min-height: 44px;
}
html.ml-shell-ready body :is(a.button.primary, button.button.primary):not([data-home-action]):hover:not(:disabled) {
  background: var(--reading-primary-hover);
}
html.ml-shell-ready body :is(button.control,.mode-buttons > button,.chapter-controls > button,.toolrow .switch > button)[aria-pressed="true"]:not(:where(#site-shell *)) {
  background: var(--reading-primary-bg);
  color: var(--reading-primary-ink);
  border-color: var(--reading-primary-bg);
}
html.ml-shell-ready body :is(button.control,.mode-buttons > button,.chapter-controls > button,.toolrow .switch > button,:where(#download),.examples > button,.pager > button):focus-visible {
  outline: 2px solid var(--reading-button-edge);
  outline-offset: 3px;
}
.meaning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block-start: 1.1rem;
}
#site-shell .ml-context .ml-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--reading-button-edge);
  border-radius: .5rem;
  background: var(--reading-button-bg);
  color: var(--reading-button-ink);
  font-weight: 650;
}
#meaning-content .meaning-source-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
  overflow-wrap: anywhere;
}
.plain-explanation { margin-block: .9rem; }
.plain-explanation > :is(h2,h3) {
  margin: 0 0 .45rem;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}
.philosophy .plain-explanation {
  padding-block-start: .85rem;
  border-block-start: 1px solid var(--line);
}
.entry-interpretation { margin-block: .9rem; }
