:root {
  color-scheme: dark;
  --ink: #08110f;
  --ink-soft: #10201c;
  --jade: #6ff2c0;
  --jade-deep: #1fb981;
  --gold: #f7d88a;
  --rose: #ff9da6;
  --sky: #9ddcff;
  --paper: #f7f0df;
  --muted: #b8c8bf;
  --glass: rgba(10, 24, 20, 0.66);
  --glass-strong: rgba(17, 35, 30, 0.84);
  --stroke: rgba(247, 216, 138, 0.18);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  overflow-anchor: none;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 20%, rgba(111, 242, 192, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(247, 216, 138, 0.16), transparent 28rem),
    linear-gradient(135deg, #07100f 0%, #0f1716 48%, #170f14 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button {
  cursor: pointer;
}

.cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb,
.mist {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.78;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-one {
  width: 26rem;
  height: 26rem;
  left: -7rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(111,242,192,0.3), transparent 68%);
}

.orb-two {
  width: 22rem;
  height: 22rem;
  right: -5rem;
  top: -4rem;
  background: radial-gradient(circle, rgba(247,216,138,0.26), transparent 70%);
  animation-delay: -5s;
}

.orb-three {
  width: 18rem;
  height: 18rem;
  right: 20%;
  bottom: 2rem;
  background: radial-gradient(circle, rgba(157,220,255,0.18), transparent 70%);
  animation-delay: -9s;
}

.mist {
  width: 70rem;
  height: 18rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: rotate(-14deg);
}

.mist-one {
  left: -20rem;
  top: 36%;
}

.mist-two {
  right: -28rem;
  bottom: 7%;
  animation-delay: -7s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2rem, -1.5rem, 0) scale(1.08); }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.progress-card,
.text-card,
.insight-panel,
.active-line-card,
.translation-card,
.reflection-card,
.legend-card,
.controls {
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(12, 25, 22, 0.82), rgba(8, 17, 15, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-copy {
  min-height: 214px;
  padding: 24px 28px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 3.4vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.45;
}

.progress-card {
  min-height: 214px;
  padding: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.progress-label,
#progressHint {
  color: var(--muted);
  font-size: 0.9rem;
}

#progressCount {
  font-size: 4rem;
  line-height: 1;
  color: var(--jade);
  text-shadow: 0 0 32px rgba(111, 242, 192, 0.48);
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--rose));
  border-radius: inherit;
  transition: width 500ms cubic-bezier(.2,.8,.2,1);
}

.controls {
  border-radius: 24px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

.lens-button,
.ghost-button,
.tooltip-release {
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--paper);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 10px 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lens-button:hover,
.ghost-button:hover,
.tooltip-release:hover,
.lens-button:focus-visible,
.ghost-button:focus-visible,
.tooltip-release:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(111,242,192,0.58);
  outline: none;
}

.lens-button.active {
  color: #07100f;
  background: linear-gradient(135deg, var(--jade), var(--gold));
  border-color: transparent;
}

.lens-button.has-variants {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  padding-inline: 14px;
}

.common-count {
  white-space: nowrap;
}

.reload-icon {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transform-origin: center;
}

.lens-button.just-cycled .reload-icon {
  animation: reload-spin 420ms ease;
}

@keyframes reload-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  color: var(--muted);
  user-select: none;
}

.toggle-row input {
  accent-color: var(--jade-deep);
}

.inline-toggle {
  align-self: center;
}

.reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  gap: 24px;
  align-items: start;
  overflow-anchor: none;
}

.reader-layout > .reader-main-column {
  grid-column: 1;
}

.reader-layout > .insight-panel {
  grid-column: 2;
}

.text-card,
.insight-panel,
.active-line-card,
.translation-card,
.reflection-card,
.legend-card {
  border-radius: 32px;
}

.text-card {
  padding: 28px;
  min-height: 620px;
  touch-action: pan-y;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.card-topline h2,
.translation-card h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}


.card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.nav-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  color: rgba(247,240,223,0.68);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-cue-label {
  min-width: 104px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(255,255,255,0.055);
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-arrow:hover,
.nav-arrow:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247,216,138,0.42);
  color: #fff7df;
  background: rgba(247,216,138,0.1);
  outline: none;
}

.active-line-meta {
  display: grid;
  gap: 10px;
  align-self: start;
  padding-top: var(--active-line-nav-top-offset);
}

.line-nav .nav-cue-label {
  min-width: 80px;
}

.tao-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0;
}

.tao-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 250ms ease, background 250ms ease, transform 250ms ease;
}

.tao-line.explored {
  border-color: rgba(247, 216, 138, 0.36);
  background: linear-gradient(135deg, rgba(111,242,192,0.08), rgba(247,216,138,0.08));
  transform: translateY(-2px);
}

.glyph,
.punctuation {
  font-family: "Noto Serif CJK TC", "Songti TC", "PingFang TC", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.1rem, 4.6vw, 4.5rem);
  line-height: 1;
}

.glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(2.75rem, 5.2vw, 5.8rem);
  height: clamp(3rem, 5.6vw, 6.2rem);
  border: 0;
  border-radius: 22px;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 46%, rgba(247,216,138,0.08), transparent 58%),
    rgba(255,255,255,0.025);
  transition:
    transform 260ms cubic-bezier(.17,.67,.28,1.32),
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
  isolation: isolate;
}

.glyph::before,
.glyph::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms ease;
  pointer-events: none;
}

.glyph::before {
  border: 1px solid rgba(111,242,192,0.32);
  transform: scale(0.82) rotate(8deg);
}

.glyph::after {
  background: radial-gradient(circle, rgba(111,242,192,0.2), transparent 68%);
  filter: blur(8px);
  z-index: -1;
}

.glyph:hover,
.glyph:focus-visible,
.glyph.active {
  color: #fff9e8;
  background:
    radial-gradient(circle at 50% 46%, rgba(247,216,138,0.22), transparent 64%),
    rgba(111,242,192,0.08);
  box-shadow: 0 0 0 1px rgba(111,242,192,0.16), 0 16px 40px rgba(0,0,0,0.28), 0 0 48px rgba(111,242,192,0.2);
}

.glyph.touched:not(.active):not(.glyph-repeat):not(.component-echo) {
  background:
    radial-gradient(circle at 50% 46%, rgba(247,216,138,0.1), transparent 62%),
    rgba(255,255,255,0.035);
}

.glyph:hover,
.glyph:focus-visible,
.glyph.active {
  transform: translateY(-8px) scale(1.08);
  outline: none;
}

.glyph:hover::before,
.glyph:focus-visible::before,
.glyph.active::before,
.glyph:hover::after,
.glyph:focus-visible::after,
.glyph.active::after {
  opacity: 1;
  transform: scale(1.05) rotate(-6deg);
}

.glyph.component-echo {
  color: #fff7df;
  background:
    radial-gradient(circle at 50% 45%, rgba(111,242,192,0.15), transparent 58%),
    rgba(111,242,192,0.055);
  outline: 1px solid rgba(111,242,192,0.3);
  outline-offset: 1px;
  box-shadow:
    0 0 0 4px rgba(111,242,192,0.035),
    0 0 30px rgba(111,242,192,0.11);
}

.glyph.component-echo::before {
  opacity: 0.58;
  border-color: rgba(111,242,192,0.45);
  transform: scale(0.98) rotate(-5deg);
}

.glyph.component-echo::after {
  opacity: 0.46;
  background: radial-gradient(circle, rgba(111,242,192,0.18), transparent 70%);
  transform: scale(0.98);
}

.glyph.glyph-repeat {
  color: #fffbe8;
  text-shadow: 0 0 16px rgba(247,216,138,0.24);
  background:
    radial-gradient(circle at 50% 45%, rgba(247,216,138,0.24), transparent 58%),
    rgba(247,216,138,0.08);
  outline: 1px solid rgba(247,216,138,0.5);
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px rgba(247,216,138,0.06),
    0 16px 38px rgba(0,0,0,0.25),
    0 0 42px rgba(247,216,138,0.16);
}

.glyph.glyph-repeat::before {
  opacity: 0.82;
  border: 1px solid rgba(247,216,138,0.64);
  box-shadow: 0 0 18px rgba(247,216,138,0.16);
  transform: scale(1.01) rotate(-5deg);
}

.glyph.glyph-repeat::after {
  opacity: 0.62;
  background: radial-gradient(circle, rgba(247,216,138,0.22), rgba(111,242,192,0.06) 48%, transparent 72%);
  transform: scale(1.02);
}

.glyph.active {
  color: #fffdf0;
  text-shadow:
    0 0 18px rgba(247,216,138,0.44),
    0 0 28px rgba(111,242,192,0.2);
  background:
    radial-gradient(circle at 50% 44%, rgba(247,216,138,0.36), transparent 58%),
    linear-gradient(145deg, rgba(111,242,192,0.14), rgba(247,216,138,0.1));
  outline: 2px solid rgba(247,216,138,0.78);
  outline-offset: 5px;
  box-shadow:
    0 0 0 1px rgba(247,216,138,0.44),
    0 0 0 8px rgba(111,242,192,0.08),
    0 20px 48px rgba(0,0,0,0.32),
    0 0 56px rgba(247,216,138,0.24);
}

.glyph.active::before {
  inset: 5px;
  opacity: 1;
  border: 2px solid rgba(247,216,138,0.78);
  box-shadow:
    inset 0 0 18px rgba(247,216,138,0.14),
    0 0 20px rgba(247,216,138,0.22);
  transform: scale(1.04) rotate(-5deg);
}

.glyph.active::after {
  inset: -8px;
  opacity: 0.72;
  background: radial-gradient(circle, rgba(247,216,138,0.24), rgba(111,242,192,0.1) 48%, transparent 72%);
  transform: scale(1.04);
}

.punctuation {
  color: rgba(247,240,223,0.48);
  min-width: 0.7em;
  align-self: center;
}

.instruction {
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.insight-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  height: max-content;
  overflow-anchor: none;
  padding: 28px;
  overflow: hidden;
}

.panel-aura {
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -5rem;
  top: -4rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111,242,192,0.24), transparent 70%);
  filter: blur(6px);
}

.selected-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 8px 0 18px;
  border-radius: 38px;
  font-family: "Noto Serif CJK TC", "Songti TC", "PingFang TC", serif;
  font-size: 6.2rem;
  line-height: 1;
  color: #fff7df;
  background:
    radial-gradient(circle at 50% 35%, rgba(247,216,138,0.22), transparent 64%),
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(247,216,138,0.24);
  box-shadow: 0 22px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.14);
}

.selected-glyph.pulse {
  animation: glyphPulse 520ms ease;
}

@keyframes glyphPulse {
  0% { transform: scale(0.94) rotate(-4deg); filter: saturate(1); }
  60% { transform: scale(1.06) rotate(2deg); filter: saturate(1.3); }
  100% { transform: scale(1) rotate(0); filter: saturate(1); }
}

.selected-meta h2 {
  margin-bottom: 4px;
  font-size: 1.8rem;
}

.selected-meta p {
  margin-bottom: 22px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.meaning-block {
  margin-top: 24px;
}

.meaning-block h3 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meaning-chip,
.component-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.055);
}

.meaning-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ecfff8;
  font-size: 0.92rem;
}

.components-list {
  display: grid;
  gap: 10px;
}

.component-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.component-card:hover {
  transform: translateX(4px);
  border-color: rgba(247,216,138,0.34);
  background: rgba(247,216,138,0.07);
}

.component-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--gold);
  background: rgba(247,216,138,0.08);
  font-family: "Noto Serif CJK TC", "Songti TC", serif;
  font-size: 2rem;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.component-mark.long-mark {
  font-size: 1.42rem;
  letter-spacing: -0.08em;
}
.component-mark.paired-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.48rem;
  letter-spacing: -0.18em;
  padding-right: 0.12em;
}

.component-mark.paired-dots span {
  display: block;
  line-height: 1;
}

.component-mark.paired-dots span:first-child {
  transform: translateY(-4px) rotate(-8deg);
}

.component-mark.paired-dots span:last-child {
  transform: translateY(4px) rotate(-8deg);
}


.component-copy strong {
  display: block;
  margin-bottom: 4px;
}

.component-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.resonance-block p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.active-line-card,
.translation-card {
  margin-top: 24px;
  padding: 26px 28px;
}

.active-line-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  --active-line-nav-top-offset: 34px;
  touch-action: pan-y;
}

.active-line-kicker,
.translation-kicker {
  margin-bottom: 0;
}

.active-line-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);
}

.active-line-glyph,
.active-line-punctuation {
  font-family: "Noto Serif CJK TC", "Songti TC", "PingFang TC", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1;
}

.active-line-glyph {
  display: inline-grid;
  place-items: center;
  min-width: clamp(2.3rem, 4.6vw, 4.4rem);
  height: clamp(2.8rem, 5vw, 5rem);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  color: var(--paper);
  background: rgba(255,255,255,0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.active-line-glyph:hover,
.active-line-glyph:focus-visible,
.active-line-glyph.active {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(247,216,138,0.38);
  background: rgba(247,216,138,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 30px rgba(247,216,138,0.16);
}

.active-line-punctuation {
  color: rgba(247,240,223,0.52);
  min-width: 0.65em;
}

.translation-card {
  display: grid;
  gap: 22px;
}

.translation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lens-control {
  justify-content: flex-end;
  max-width: 520px;
}

#lineTranslation {
  margin: 0;
  color: #fff7df;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  line-height: 1.45;
}

.reflection-card {
  margin-top: 24px;
  padding: 24px 28px 28px;
}

.reflection-kicker {
  margin-bottom: 16px;
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reflection-item {
  --soft-glow: rgba(111,242,192,0.055);
  --warm-glow: rgba(247,216,138,0.045);
  --glow-x: 88%;
  --glow-y: 34%;
  --grain-angle: 118deg;
  --grain-line: rgba(247,216,138,0.025);
  position: relative;
  isolation: isolate;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(ellipse at var(--glow-x) var(--glow-y), var(--soft-glow), transparent 54%),
    radial-gradient(ellipse at 12% 12%, var(--warm-glow), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.052), rgba(255,255,255,0.026));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.reflection-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(var(--grain-angle), transparent 0 58%, var(--grain-line) 59%, transparent 70%);
  opacity: 0.58;
}

.reflection-item span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.reflection-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--paper);
  font-size: 0.96rem;
  line-height: 1.55;
}

.reflection-item.notice {
  --soft-glow: rgba(111,242,192,0.06);
  --warm-glow: rgba(247,216,138,0.026);
  --glow-x: 18%;
  --glow-y: 64%;
  --grain-angle: 96deg;
  --grain-line: rgba(111,242,192,0.024);
}

.reflection-item.practice {
  --soft-glow: rgba(111,242,192,0.036);
  --warm-glow: rgba(183,148,246,0.045);
  --glow-x: 78%;
  --glow-y: 76%;
  --grain-angle: 142deg;
  --grain-line: rgba(183,148,246,0.026);
}

.reflection-item.journal {
  --soft-glow: rgba(247,216,138,0.035);
  --warm-glow: rgba(255,149,128,0.035);
  --glow-x: 82%;
  --glow-y: 18%;
  --grain-angle: 166deg;
  --grain-line: rgba(255,149,128,0.024);
}

.legend-card {
  margin-top: 24px;
  padding: 20px 24px;
}

.legend-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tooltip {
  position: fixed;
  z-index: 10;
  width: min(330px, calc(100vw - 32px));
  pointer-events: none;
  border: 1px solid rgba(111,242,192,0.28);
  border-radius: 22px;
  padding: 16px;
  color: var(--paper);
  background: rgba(7, 15, 13, 0.92);
  box-shadow: 0 18px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 150ms ease, transform 150ms ease;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip.visible.locked {
  pointer-events: auto;
}

.tooltip.pinned {
  top: max(10px, env(safe-area-inset-top)) !important;
  transform: translateY(0) scale(1);
  border-color: rgba(247,216,138,0.36);
}

.tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tooltip h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 1.4rem;
}

.tooltip h3 span:first-child {
  font-family: "Noto Serif CJK TC", "Songti TC", serif;
  font-size: 2.3rem;
  color: var(--gold);
}

.tooltip-release {
  display: none;
  flex: 0 0 auto;
  padding: 8px 11px;
  font-size: 0.82rem;
}

.tooltip.locked .tooltip-release {
  display: inline-flex;
}

.tooltip p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.tooltip .mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tooltip .mini-chip-row span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #08110f;
  background: linear-gradient(135deg, var(--jade), var(--gold));
  font-size: 0.78rem;
  font-weight: 700;
}

.tooltip.mobile {
  max-height: min(42vh, 300px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tooltip.mobile.pinned {
  left: 12px !important;
  width: calc(100vw - 24px) !important;
}

.particle {
  position: fixed;
  z-index: 12;
  pointer-events: none;
  color: var(--gold);
  font-family: "Noto Serif CJK TC", "Songti TC", serif;
  font-size: 1rem;
  text-shadow: 0 0 18px rgba(247,216,138,0.66);
  animation: particleFloat 760ms ease-out forwards;
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  18% { opacity: 1; }
  100% {
    transform: translate3d(var(--x), var(--y), 0) scale(1.2) rotate(var(--r));
    opacity: 0;
  }
}


.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 4px;
  text-align: center;
}

.site-footer a {
  color: rgba(247,240,223,0.42);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: rgba(247,216,138,0.86);
  text-shadow: 0 0 18px rgba(247,216,138,0.2);
  outline: none;
}

.footer-note {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(247,240,223,0.36);
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .reflection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero,
  .reader-layout,
  .active-line-card {
    grid-template-columns: 1fr;
  }

  .reader-main-column {
    display: contents;
  }

  .reader-main-column > .text-card {
    grid-column: 1;
    order: 1;
  }

  .reader-layout > .insight-panel {
    grid-column: 1;
    grid-row: auto;
    order: 2;
  }

  .reader-main-column > .active-line-card {
    grid-column: 1;
    order: 3;
  }

  .reader-main-column > .translation-card {
    grid-column: 1;
    order: 4;
  }

  .reader-main-column > .reflection-card {
    grid-column: 1;
    order: 5;
  }

  .insight-panel {
    position: relative;
    top: 0;
  }

  .translation-card,
  .reflection-card,
  .active-line-card {
    gap: 14px;
  }

  .active-line-meta {
    padding-top: 0;
  }

  .translation-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .lens-control {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero-copy,
  .text-card,
  .insight-panel,
  .progress-card,
  .active-line-card,
  .translation-card,
  .reflection-card,
  .legend-card {
    border-radius: 24px;
    padding: 20px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.66rem;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 8vw, 2.35rem);
  }

  .lede {
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .controls,
  .card-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions {
    align-items: stretch;
  }

  .nav-cue {
    justify-content: space-between;
    width: 100%;
  }

  .nav-cue-label {
    min-width: 0;
  }

  .inline-toggle {
    align-self: stretch;
  }

  .active-line-card {
    margin-top: 16px;
    padding: 16px 20px;
  }

  .active-line-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .active-line-meta .line-nav {
    flex: 0 0 auto;
    width: auto;
    min-width: 148px;
  }

  .active-line-meta .nav-cue-label {
    min-width: 68px;
    letter-spacing: 0.1em;
  }

  .active-line-meta .nav-arrow {
    width: 24px;
    height: 24px;
  }

  .active-line-text {
    padding: 8px;
  }

  .active-line-glyph,
  .active-line-punctuation {
    font-size: clamp(1.85rem, 10vw, 3.2rem);
  }

  .active-line-glyph {
    min-width: clamp(2.15rem, 10vw, 3.7rem);
    height: clamp(2.55rem, 11vw, 4.1rem);
  }

  .lens-control {
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }

  .lens-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 5px;
    font-size: clamp(0.76rem, 3.45vw, 0.9rem);
  }

  .lens-button.has-variants {
    flex: 1.35 1 0;
    min-width: 76px;
    gap: 5px;
    padding-inline: 7px;
  }

  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .reflection-item {
    min-height: auto;
  }

  .tao-line {
    padding: 10px;
  }

  .glyph {
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .hero-copy {
    padding: 18px;
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  h1 {
    margin-bottom: 7px;
    font-size: clamp(1.8rem, 7.4vw, 2rem);
  }

  .lede {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.line-reference {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  height: 2.2rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(247,216,138,0.2);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(247,216,138,0.07);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.line-iast {
  flex-basis: 100%;
  margin-top: 8px;
  color: rgba(247,240,223,0.66);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.reader-yoga-sutras .tao-line {
  gap: 8px;
}

.reader-yoga-sutras .glyph,
.reader-yoga-sutras .punctuation,
.reader-yoga-sutras .active-line-glyph,
.reader-yoga-sutras .active-line-punctuation,
.reader-yoga-sutras .selected-glyph {
  font-family: "Noto Serif Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", serif;
}

.reader-yoga-sutras .glyph {
  width: auto;
  min-width: clamp(3rem, 5vw, 5rem);
  height: clamp(3rem, 5vw, 4.8rem);
  padding: 0 0.55em;
  border-radius: 19px;
  font-size: clamp(1.45rem, 2.8vw, 2.6rem);
}

.reader-yoga-sutras .glyph::before,
.reader-yoga-sutras .glyph::after {
  inset: 6px;
}

.reader-yoga-sutras .active-line-glyph {
  width: auto;
  min-width: clamp(2.6rem, 4.4vw, 4.2rem);
  height: clamp(2.7rem, 4.8vw, 4.4rem);
  padding: 0 0.58em;
  font-size: clamp(1.35rem, 2.65vw, 2.35rem);
}

.reader-yoga-sutras .selected-glyph {
  width: min(100%, 230px);
  min-height: 132px;
  height: auto;
  padding: 20px;
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  line-height: 1.15;
  text-align: center;
}

.reader-yoga-sutras .selected-meta p {
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.reader-yoga-sutras .component-mark {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  padding: 0 5px;
  text-align: center;
}

.reader-yoga-sutras .component-mark.long-mark {
  font-size: 0.82rem;
  letter-spacing: 0;
}

.reader-yoga-sutras .active-line-card {
  grid-template-columns: 170px minmax(0, 1fr);
}

@media (max-width: 760px) {
  .reader-yoga-sutras .active-line-card {
    grid-template-columns: 1fr;
  }

  .reader-yoga-sutras .glyph {
    min-width: 2.65rem;
    height: 3rem;
    font-size: 1.38rem;
  }

  .reader-yoga-sutras .active-line-glyph {
    min-width: 2.45rem;
    height: 2.8rem;
    font-size: 1.28rem;
  }
}


.reader-yoga-sutras .selected-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 150px);
  min-height: 132px;
  padding: 18px 32px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(2.05rem, 4vw, 3.6rem);
}

.reader-yoga-sutras .tooltip {
  max-width: calc(100vw - 32px);
}

.reader-yoga-sutras .tooltip-head {
  align-items: flex-start;
  gap: 14px;
}

.reader-yoga-sutras .tooltip h3 {
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1.08;
}

.reader-yoga-sutras .tooltip h3 span:first-child {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: "Noto Serif Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", serif;
  font-size: clamp(2.25rem, 5.8vw, 4.75rem);
  line-height: 1.05;
}

.reader-yoga-sutras .tooltip h3 span:last-child {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.1;
}

.reader-yoga-sutras .tooltip-release {
  align-self: flex-start;
  margin-left: auto;
}

@media (max-width: 760px) {
  .reader-yoga-sutras .selected-glyph {
    min-height: 104px;
    padding: 16px 22px;
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .reader-yoga-sutras .tooltip h3 span:first-child {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }
}

/* Yoga Sutras warm palm-leaf theme. Layout and navigation stay unchanged. */
body.reader-yoga-sutras {
  color-scheme: light;
  --ink: #2f2111;
  --ink-soft: #5f4a2b;
  --jade: #4f5e31;
  --jade-deep: #3a4524;
  --gold: #704719;
  --rose: #b66a3e;
  --sky: #687d56;
  --paper: #2f2111;
  --muted: rgba(47, 33, 17, 0.68);
  --glass: rgba(255, 244, 195, 0.76);
  --glass-strong: rgba(255, 241, 179, 0.9);
  --stroke: rgba(83, 56, 22, 0.18);
  --shadow: 0 24px 70px rgba(60, 38, 12, 0.18);
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 12%, rgba(206, 112, 42, 0.16), transparent 30rem),
    radial-gradient(circle at 10% 84%, rgba(64, 97, 51, 0.18), transparent 31rem),
    linear-gradient(145deg, #efe2ad, #d9bd76 58%, #b68a4b);
}

body.reader-yoga-sutras::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(83, 56, 22, 0.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 42px);
  background-size: auto;
  mask-image: none;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

body.reader-yoga-sutras .orb,
body.reader-yoga-sutras .mist {
  opacity: 0.46;
}

body.reader-yoga-sutras .orb-one {
  background: radial-gradient(circle, rgba(255, 242, 184, 0.45), transparent 68%);
}

body.reader-yoga-sutras .orb-two {
  background: radial-gradient(circle, rgba(78, 94, 49, 0.22), transparent 70%);
}

body.reader-yoga-sutras .orb-three {
  background: radial-gradient(circle, rgba(183, 138, 66, 0.2), transparent 70%);
}

body.reader-yoga-sutras .mist {
  background: linear-gradient(90deg, transparent, rgba(255, 248, 210, 0.28), transparent);
}

body.reader-yoga-sutras .hero-copy,
body.reader-yoga-sutras .progress-card,
body.reader-yoga-sutras .text-card,
body.reader-yoga-sutras .insight-panel,
body.reader-yoga-sutras .active-line-card,
body.reader-yoga-sutras .translation-card,
body.reader-yoga-sutras .reflection-card,
body.reader-yoga-sutras .legend-card,
body.reader-yoga-sutras .controls {
  border-color: var(--stroke);
  background:
    linear-gradient(90deg, rgba(255, 248, 210, 0.78), rgba(222, 190, 119, 0.52)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(103, 74, 35, 0.08) 35px 36px);
  box-shadow: var(--shadow);
}

body.reader-yoga-sutras h1,
body.reader-yoga-sutras .card-topline h2,
body.reader-yoga-sutras .selected-meta h2,
body.reader-yoga-sutras #lineTranslation {
  font-family: Iowan Old Style, Georgia, "Times New Roman", serif;
  color: var(--ink);
}

body.reader-yoga-sutras h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 4.2vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

body.reader-yoga-sutras .lede,
body.reader-yoga-sutras .progress-label,
body.reader-yoga-sutras #progressHint,
body.reader-yoga-sutras .toggle-row,
body.reader-yoga-sutras .instruction,
body.reader-yoga-sutras .component-copy span,
body.reader-yoga-sutras .resonance-block p,
body.reader-yoga-sutras .legend-card p,
body.reader-yoga-sutras .line-iast,
body.reader-yoga-sutras .selected-meta p {
  color: var(--muted);
}

body.reader-yoga-sutras .eyebrow,
body.reader-yoga-sutras .section-kicker,
body.reader-yoga-sutras .meaning-block h3,
body.reader-yoga-sutras .reflection-item span {
  color: var(--gold);
}

body.reader-yoga-sutras #progressCount {
  color: var(--jade);
  text-shadow: 0 0 28px rgba(79, 94, 49, 0.24);
}

body.reader-yoga-sutras .progress-track {
  background: rgba(80, 54, 20, 0.14);
  border-color: rgba(80, 54, 20, 0.08);
}

body.reader-yoga-sutras .progress-track span {
  background: linear-gradient(90deg, var(--jade), #f5df9d);
}

body.reader-yoga-sutras .nav-cue,
body.reader-yoga-sutras .lens-button,
body.reader-yoga-sutras .ghost-button,
body.reader-yoga-sutras .tooltip-release {
  color: var(--ink);
  background: rgba(255,255,255,0.28);
  border-color: rgba(80, 54, 20, 0.18);
}

body.reader-yoga-sutras .nav-cue-label {
  color: var(--ink-soft);
}

body.reader-yoga-sutras .nav-arrow {
  color: #fff2bc;
  background: var(--jade);
  border-color: transparent;
}

body.reader-yoga-sutras .nav-arrow:hover,
body.reader-yoga-sutras .nav-arrow:focus-visible,
body.reader-yoga-sutras .lens-button:hover,
body.reader-yoga-sutras .lens-button:focus-visible,
body.reader-yoga-sutras .tooltip-release:hover,
body.reader-yoga-sutras .tooltip-release:focus-visible {
  border-color: rgba(83, 56, 22, 0.32);
  background: rgba(255, 248, 210, 0.58);
}

body.reader-yoga-sutras .lens-button.active {
  color: #fff2bc;
  background: linear-gradient(145deg, var(--jade), var(--jade-deep));
}

body.reader-yoga-sutras .tao-line,
body.reader-yoga-sutras .active-line-text {
  background: rgba(255, 248, 210, 0.42);
  border-color: rgba(80, 54, 20, 0.12);
}

body.reader-yoga-sutras .tao-line.explored {
  background: linear-gradient(135deg, rgba(79, 94, 49, 0.12), rgba(245, 223, 157, 0.2));
  border-color: rgba(83, 56, 22, 0.26);
}

body.reader-yoga-sutras .glyph,
body.reader-yoga-sutras .active-line-glyph {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 248, 210, 0.9), rgba(221, 176, 89, 0.72));
  border-color: transparent;
  box-shadow: inset 0 -8px 18px rgba(90, 57, 17, 0.1), 0 12px 30px rgba(83, 54, 18, 0.14);
}

body.reader-yoga-sutras .glyph:hover,
body.reader-yoga-sutras .glyph:focus-visible,
body.reader-yoga-sutras .glyph.active,
body.reader-yoga-sutras .active-line-glyph:hover,
body.reader-yoga-sutras .active-line-glyph:focus-visible,
body.reader-yoga-sutras .active-line-glyph.active {
  color: #fff2bd;
  background: linear-gradient(145deg, var(--jade), var(--jade-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 16px 38px rgba(60, 38, 12, 0.2), 0 0 0 3px rgba(245, 223, 157, 0.24);
}

body.reader-yoga-sutras .glyph.glyph-repeat,
body.reader-yoga-sutras .glyph.component-echo {
  color: #fff2bd;
  background: linear-gradient(145deg, var(--jade), var(--jade-deep));
  outline-color: rgba(83, 56, 22, 0.36);
}

body.reader-yoga-sutras .glyph::before,
body.reader-yoga-sutras .glyph.active::before,
body.reader-yoga-sutras .glyph.glyph-repeat::before,
body.reader-yoga-sutras .glyph.component-echo::before {
  border-color: rgba(245, 223, 157, 0.46);
  box-shadow: none;
}

body.reader-yoga-sutras .glyph::after,
body.reader-yoga-sutras .glyph.active::after,
body.reader-yoga-sutras .glyph.glyph-repeat::after,
body.reader-yoga-sutras .glyph.component-echo::after {
  background: radial-gradient(circle, rgba(245, 223, 157, 0.2), transparent 70%);
}

body.reader-yoga-sutras .punctuation,
body.reader-yoga-sutras .active-line-punctuation {
  color: rgba(47, 33, 17, 0.48);
}

body.reader-yoga-sutras .line-reference {
  color: #fff2bc;
  background: var(--jade);
  border-color: transparent;
}

body.reader-yoga-sutras .selected-glyph {
  color: #fff0bb;
  background:
    radial-gradient(circle at 74% 24%, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(145deg, var(--jade), var(--jade-deep));
  border-color: rgba(255, 238, 177, 0.24);
  box-shadow: 0 22px 60px rgba(60, 38, 12, 0.22), inset 0 1px 0 rgba(255,255,255,0.16);
}

body.reader-yoga-sutras .panel-aura {
  background: radial-gradient(circle, rgba(79, 94, 49, 0.18), transparent 70%);
}

body.reader-yoga-sutras .meaning-chip {
  color: #fff2bc;
  background: var(--jade);
  border-color: transparent;
}

body.reader-yoga-sutras .component-card,
body.reader-yoga-sutras .meaning-chip,
body.reader-yoga-sutras .reflection-item {
  border-color: rgba(83, 56, 22, 0.12);
}

body.reader-yoga-sutras .component-card,
body.reader-yoga-sutras .reflection-item {
  background: rgba(255, 248, 210, 0.44);
}

body.reader-yoga-sutras .component-card:hover {
  border-color: rgba(83, 56, 22, 0.28);
  background: rgba(255, 248, 210, 0.62);
}

body.reader-yoga-sutras .component-mark {
  color: #fff2bc;
  background: var(--jade);
}

body.reader-yoga-sutras .reflection-item p {
  color: var(--ink-soft);
}

body.reader-yoga-sutras .tooltip {
  color: var(--ink);
  background: rgba(255, 248, 210, 0.96);
  border-color: rgba(83, 56, 22, 0.28);
  box-shadow: 0 18px 70px rgba(60, 38, 12, 0.28), inset 0 1px 0 rgba(255,255,255,0.4);
}

body.reader-yoga-sutras .tooltip h3 span:first-child {
  color: var(--jade);
}

body.reader-yoga-sutras .tooltip h3 span:last-child,
body.reader-yoga-sutras .tooltip p {
  color: var(--ink-soft);
}

body.reader-yoga-sutras .tooltip .mini-chip-row span {
  color: #fff2bc;
  background: var(--jade);
}

body.reader-yoga-sutras .tooltip-release {
  color: #fff2bc;
  background: var(--jade);
}

body.reader-yoga-sutras .site-footer a {
  color: rgba(47, 33, 17, 0.48);
}

body.reader-yoga-sutras .site-footer a:hover,
body.reader-yoga-sutras .site-footer a:focus-visible {
  color: var(--jade-deep);
  text-shadow: none;
}

body.reader-yoga-sutras .footer-note {
  color: rgba(47, 33, 17, 0.52);
}

/* Reader layout refinements shared by Tao and Yoga Sutras. */
.hero {
  grid-template-columns: 1fr;
}

.progress-card {
  display: none;
}

.hero-copy {
  width: 100%;
}

.reader-main-column {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.reader-main-column .active-line-card,
.reader-main-column .translation-card,
.reader-main-column .reflection-card {
  margin-top: 0;
}

.reader-main-column .reflection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.active-line-card {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  --active-line-nav-top-offset: 0px;
}

.active-line-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 0;
}

.active-line-meta .section-kicker {
  flex: 0 0 auto;
}

.active-line-meta .line-nav {
  flex: 0 1 auto;
}

.translation-card {
  gap: 18px;
}

.tooltip.pinned {
  z-index: 20;
}

body.reader-yoga-sutras .active-line-card {
  grid-template-columns: 1fr;
}

@media (max-width: 960px) {
  .reader-main-column {
    display: contents;
  }

  .reader-main-column > .text-card {
    grid-column: 1;
    order: 1;
  }

  .reader-layout > .insight-panel {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    position: relative;
    top: 0;
  }

  .reader-main-column > .active-line-card {
    grid-column: 1;
    order: 3;
  }

  .reader-main-column > .translation-card {
    grid-column: 1;
    order: 4;
  }

  .reader-main-column > .reflection-card {
    grid-column: 1;
    order: 5;
  }
}

@media (max-width: 680px) {
  .reader-main-column .reflection-grid {
    grid-template-columns: 1fr;
  }

  .active-line-meta {
    flex-direction: row;
    align-items: center;
  }
}
