/*
 * Zyrenicus Fictioneer post-audit repair layer.
 *
 * Purpose:
 * - narrow the inner-page shell/background work to actual Fictioneer views
 * - replace the buried chapter-only starfield with a real shell overlay host
 * - provide one authoritative late-pass chapter headline block
 * - stabilise story / collection / archive shells without touching the bespoke front page
 */

:root {
  --zy-starfield-opacity: 0.68;
}

body.zy-cohesion-view #site {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

body.zy-cohesion-view :is(.main.story, .main.chapter, .main.collection, .main.archive, .main.singular, .story__header, .collection__header, .archive__header, .singular__header, .chapter__actions, .chapter__footer, .site-footer),
body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
  position: relative;
  z-index: 1;
}

body.zy-cohesion-view :is(#full-navigation, .main-navigation, .main-navigation__wrapper, .main-navigation__left, .main-navigation__right, .icon-menu, .icon-menu .menu-item, .mobile-menu-button) {
  position: relative;
}

body.zy-cohesion-view :is(#full-navigation, .main-navigation) {
  z-index: 1030;
}

body.zy-cohesion-view :is(.main-navigation__wrapper, .main-navigation__left, .main-navigation__right, .icon-menu, .icon-menu .menu-item, .mobile-menu-button) {
  z-index: 2;
}

body.zy-cohesion-view .main-navigation__background {
  z-index: -1;
}

body.zy-cohesion-view :is(.main-navigation .sub-menu, .main-navigation .alerts.sub-menu, .main-navigation .popup-menu, .icon-menu .sub-menu, .icon-menu .popup-menu) {
  z-index: 1035;
}

body.zy-cohesion-view .mobile-menu {
  z-index: 1035;
}

@media only screen and (min-width: 900px) {
  :root:not(.no-starfield) body.zy-cohesion-view.zy-starfield-enabled .zy-shell-starfield {
    display: block;
  }

  body.zy-cohesion-view .zy-shell-starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
  }

  body.zy-cohesion-view .zy-shell-starfield__nebula,
  body.zy-cohesion-view .zy-shell-starfield__haze,
  body.zy-cohesion-view .zy-shell-starfield__layer,
  body.zy-cohesion-view .zy-shell-starfield__shooting,
  body.zy-cohesion-view .zy-shell-starfield__motifs {
    position: absolute;
    inset: -8%;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__nebula {
    inset: 0;
    opacity: calc(var(--zy-starfield-opacity) * 0.96);
    background:
      radial-gradient(circle at 14% 18%, rgba(104, 88, 196, 0.30) 0, rgba(104, 88, 196, 0.15) 12%, rgba(104, 88, 196, 0.06) 26%, transparent 44%),
      radial-gradient(circle at 78% 22%, rgba(78, 132, 204, 0.26) 0, rgba(78, 132, 204, 0.12) 13%, rgba(78, 132, 204, 0.05) 28%, transparent 45%),
      radial-gradient(circle at 56% 74%, rgba(196, 103, 174, 0.17) 0, rgba(196, 103, 174, 0.08) 15%, rgba(196, 103, 174, 0.03) 28%, transparent 42%),
      radial-gradient(circle at 40% 48%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.022) 18%, transparent 38%);
    filter: saturate(1.08) brightness(1.03);
    animation: zy-shell-nebula-breathe 18s ease-in-out infinite;
  }

  body.zy-cohesion-view .zy-shell-starfield__haze {
    inset: 0;
    opacity: calc(var(--zy-starfield-opacity) * 0.34);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, transparent 20%, transparent 78%, rgba(255, 255, 255, 0.02) 100%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.012) 20%, transparent 58%);
    mix-blend-mode: screen;
    animation: zy-shell-haze-drift 42s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__layer--far {
    animation: zy-shell-starfield-drift-far 94s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__layer--mid {
    animation: zy-shell-starfield-drift-mid 134s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__layer--hero {
    animation: zy-shell-starfield-drift-hero 156s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__star {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: var(--size);
    height: var(--size);
    opacity: var(--opacity);
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    animation: zy-star-twinkle var(--twinkle-duration) ease-in-out infinite;
    animation-delay: var(--twinkle-delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__star::before,
  body.zy-cohesion-view .zy-shell-starfield__star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__star::before {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 36%, rgba(222, 236, 255, 0.65) 56%, rgba(255, 236, 198, 0.34) 70%, transparent 100%);
    box-shadow: 0 0 var(--glow-size) rgba(180, 214, 255, 0.24);
  }

  body.zy-cohesion-view .zy-shell-starfield__star::after {
    width: calc(var(--size) * 2.4);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    opacity: 0;
  }

  body.zy-cohesion-view .zy-shell-starfield__star--far::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 40%, rgba(204, 226, 255, 0.34) 68%, transparent 100%);
    box-shadow: 0 0 var(--glow-size) rgba(170, 205, 255, 0.14);
  }

  body.zy-cohesion-view .zy-shell-starfield__star--mid::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 34%, rgba(204, 226, 255, 0.54) 58%, rgba(255, 226, 171, 0.18) 74%, transparent 100%);
  }

  body.zy-cohesion-view .zy-shell-starfield__star--hero::before {
    box-shadow: 0 0 var(--glow-size) rgba(200, 227, 255, 0.34), 0 0 calc(var(--glow-size) * 1.9) rgba(180, 212, 255, 0.12);
  }

  body.zy-cohesion-view .zy-shell-starfield__star--hero::after {
    width: var(--flare-size);
    opacity: 0.52;
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star {
    position: absolute;
    left: var(--start-x);
    top: var(--start-y);
    width: var(--tail-length);
    height: 2px;
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--shoot-angle));
    transform-origin: left center;
    will-change: transform, opacity;
    animation: zy-shell-shooting-star var(--shoot-duration) linear infinite;
    animation-delay: var(--shoot-delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star::before,
  body.zy-cohesion-view .zy-shell-starfield__shooting-star::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star::before {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(217, 236, 255, 0.52) 24%, rgba(184, 213, 255, 0.18) 52%, transparent 100%);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(188, 218, 255, 0.22);
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star::after {
    width: 7px;
    height: 7px;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0 38%, rgba(207, 230, 255, 0.74) 62%, transparent 100%);
    box-shadow: 0 0 16px rgba(201, 228, 255, 0.34);
  }
}

  body.zy-cohesion-view .zy-shell-starfield__motifs {
    inset: 0;
    z-index: 1;
  }

  body.zy-cohesion-view .zy-shell-starfield__motif {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--motif-size);
    height: var(--motif-size);
    color: rgba(229, 240, 255, 0.76);
    opacity: var(--motif-opacity);
    transform: translate3d(0, 0, 0) rotate(var(--motif-rotate));
    transform-origin: center;
    filter: drop-shadow(0 0 12px rgba(178, 208, 255, 0.16)) drop-shadow(0 0 22px rgba(255, 224, 170, 0.08));
    will-change: transform, opacity;
    animation: zy-shell-motif-float var(--motif-duration) ease-in-out infinite;
    animation-delay: var(--motif-delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__motif use {
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__motif--single {
    color: rgba(255, 232, 179, 0.88);
  }

  body.zy-cohesion-view .zy-shell-starfield__motif--cluster {
    color: rgba(220, 234, 255, 0.84);
  }

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__nebula {
  opacity: calc(var(--zy-starfield-opacity) * 0.44);
  filter: saturate(0.9) brightness(0.95);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__haze {
  opacity: calc(var(--zy-starfield-opacity) * 0.22);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__star {
  opacity: calc(var(--opacity) * 0.58);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__shooting-star {
  opacity: 0;
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__motif {
  opacity: calc(var(--motif-opacity) * 0.42);
  filter: drop-shadow(0 0 8px rgba(184, 203, 234, 0.08));
}

:root[data-mode="dark"] body.zy-cohesion-view .zy-shell-starfield__nebula {
  opacity: calc(var(--zy-starfield-opacity) * 0.98);
}

:root[data-mode="dark"] body.zy-cohesion-view .zy-shell-starfield__haze {
  opacity: calc(var(--zy-starfield-opacity) * 0.36);
}

:root[data-mode="dark"] body.zy-cohesion-view .zy-shell-starfield__motif {
  opacity: calc(var(--motif-opacity) * 0.96);
}

body.zy-cohesion-view .site-settings__starfield {
  position: relative;
  gap: 0.7rem;
  padding: 0.56rem 0.85rem;
  border: 1px solid rgba(116, 138, 196, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 23, 42, 0.52), rgba(10, 16, 30, 0.34));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.zy-cohesion-view .site-settings__starfield::before {
  content: "✦";
  position: absolute;
  right: 0.8rem;
  top: 0.62rem;
  font-size: 0.94rem;
  line-height: 1;
  color: rgba(255, 233, 166, 0.8);
  text-shadow: 0 0 10px rgba(255, 233, 166, 0.22);
}

body.zy-cohesion-view .site-settings__starfield .modal__setting-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-right: 1.25rem;
  line-height: 1.24;
}

body.zy-cohesion-view .site-settings__starfield-title {
  font-weight: 700;
}

body.zy-cohesion-view .site-settings__starfield-note {
  font-size: 0.72rem;
  color: var(--fg-500);
}

body.zy-cohesion-view .site-settings__starfield.is-disabled {
  opacity: 0.62;
}

body.zy-cohesion-view .site-settings__starfield.is-disabled .modal__setting-toggle {
  cursor: not-allowed;
}

body.zy-view-story.zy-cohesion-view .story__header .story__identity,
body.zy-view-collection.zy-cohesion-view .collection__header,
body.zy-view-archive.zy-cohesion-view .archive__header,
body.zy-view-taxonomy.zy-cohesion-view .archive__header,
body.zy-cohesion-view .singular__header {
  max-width: min(68rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 1.6vw, 0.75rem);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
  display: grid;
  justify-items: center;
  width: min(100%, 56rem);
  gap: 0.34rem;
  margin: 0 auto 1.55rem;
  padding-inline: clamp(0.25rem, 1.8vw, 0.7rem);
  text-align: center;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > :is(.chapter__story-link, .chapter__title, .chapter__author) {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link {
  font-family: "Lato", var(--ff-base) !important;
  font-size: clamp(0.8rem, 0.28vw + 0.74rem, 0.94rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.11em !important;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--zy-cohesion-silver-metallic);
  background-image: var(--zy-cohesion-silver-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.30), 0 0 18px rgba(220, 230, 245, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link::after {
  content: "";
  display: block;
  width: min(68px, 44%);
  height: 1px;
  margin: 0.34rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.72), transparent);
  opacity: 0.8;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__title {
  max-width: min(20ch, 100%);
  margin-top: 0.26rem;
  font-family: "Cinzel", var(--ff-heading) !important;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
  letter-spacing: 0.04em !important;
  text-wrap: balance;
  background: var(--zy-cohesion-gold-metallic);
  background-image: var(--zy-cohesion-gold-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: var(--zy-cohesion-title-shadow-strong);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__author {
  margin-top: 0.06rem;
  font-family: "Lato", var(--ff-base) !important;
  font-size: clamp(0.76rem, 0.22vw + 0.72rem, 0.88rem) !important;
  font-style: normal;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  background: var(--zy-cohesion-silver-metallic);
  background-image: var(--zy-cohesion-silver-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.30), 0 0 18px rgba(220, 230, 245, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__author a {
  display: inline;
  background: inherit;
  background-image: inherit;
  background-size: inherit;
  background-repeat: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: inherit;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link:hover,
body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__author a:hover {
  filter: brightness(1.08);
}

@media only screen and (max-width: 640px) {
  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
    margin-bottom: 1.35rem;
  }

  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link {
    letter-spacing: 0.09em !important;
  }

  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__title {
    max-width: min(16ch, 100%);
    font-size: clamp(1.55rem, 6.2vw, 2rem) !important;
  }
}

@keyframes zy-shell-starfield-drift-far {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(22px, 14px, 0) scale(1.03);
  }
}

@keyframes zy-shell-starfield-drift-mid {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-28px, 22px, 0) scale(1.04);
  }
}

@keyframes zy-shell-starfield-drift-hero {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, -16px, 0) scale(1.02);
  }
}

@keyframes zy-shell-nebula-breathe {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1.08) brightness(1.03);
  }
  50% {
    transform: scale(1.04) translate3d(-0.7%, 0.6%, 0);
    filter: saturate(1.14) brightness(1.07);
  }
}

@keyframes zy-shell-haze-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(2%, -1.5%, 0);
  }
}

@keyframes zy-star-twinkle {
  0%,
  100% {
    opacity: calc(var(--opacity) * 0.82);
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  38% {
    opacity: calc(var(--opacity) * 1.18);
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.16);
  }
  72% {
    opacity: calc(var(--opacity) * 0.72);
    transform: translate3d(calc(var(--drift-x) * -0.42), calc(var(--drift-y) * -0.35), 0) scale(0.92);
  }
}

@keyframes zy-shell-shooting-star {
  0%,
  82%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--shoot-angle)) scaleX(0.78);
  }
  86% {
    opacity: var(--shoot-opacity);
    transform: translate3d(0, 0, 0) rotate(var(--shoot-angle)) scaleX(1);
  }
  97% {
    opacity: 0;
    transform: translate3d(var(--travel-x), var(--travel-y), 0) rotate(var(--shoot-angle)) scaleX(1.12);
  }
}


@keyframes zy-shell-motif-float {
  0%,
  100% {
    opacity: var(--motif-opacity);
    transform: translate3d(0, 0, 0) rotate(var(--motif-rotate)) scale(1);
  }
  35% {
    opacity: calc(var(--motif-opacity) * 1.16);
    transform: translate3d(calc(var(--motif-float-x) * 0.52), calc(var(--motif-float-y) * -0.46), 0) rotate(calc(var(--motif-rotate) + 3deg)) scale(1.035);
  }
  68% {
    opacity: calc(var(--motif-opacity) * 0.92);
    transform: translate3d(var(--motif-float-x), var(--motif-float-y), 0) rotate(calc(var(--motif-rotate) - 2deg)) scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zy-cohesion-view .zy-shell-starfield__nebula,
  body.zy-cohesion-view .zy-shell-starfield__haze,
  body.zy-cohesion-view .zy-shell-starfield__layer,
  body.zy-cohesion-view .zy-shell-starfield__star,
  body.zy-cohesion-view .zy-shell-starfield__shooting-star,
  body.zy-cohesion-view .zy-shell-starfield__motif {
    animation: none !important;
    transform: none !important;
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting {
    display: none !important;
  }
}

@media print {
  body.zy-cohesion-view .zy-shell-starfield,
  body.zy-cohesion-view .zy-shell-starfield * {
    display: none !important;
    content: none !important;
  }
}


/* v1.33.24 chapter experience beauty pass.
 * Purpose:
 * - make the reading slab feel premium without harming legibility
 * - give the bottom next button a little ceremony
 * - polish the utility lane and top navigation with restrained iconography
 */

body.single-fcn_chapter.zy-cohesion-view .chapter__article {
  position: relative;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  position: relative;
  margin-top: 1.25rem;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font {
  position: relative;
  isolation: isolate;
  padding: clamp(1.15rem, 1rem + 1.05vw, 2rem);
  border: 1px solid rgba(235, 201, 119, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.90), rgba(11, 14, 21, 0.96)),
    radial-gradient(circle at top, rgba(246, 215, 139, 0.08), transparent 36%);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.36),
    0 10px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 237, 188, 0.02);
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(251, 226, 166, 0.30), rgba(255, 255, 255, 0.02) 28%, rgba(130, 164, 231, 0.10) 58%, rgba(244, 206, 112, 0.24) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.92;
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(22px - 1px);
  background: radial-gradient(circle at top center, rgba(255, 222, 155, 0.08), transparent 32%);
  pointer-events: none;
  opacity: 0.85;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font > * {
  position: relative;
  z-index: 1;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-lane {
  margin-top: 1.4rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper {
  border-color: rgba(247, 212, 138, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top, rgba(255, 223, 160, 0.07), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.16);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-actions .zy-extra-nav-button {
  position: relative;
  min-height: 42px;
  padding-inline: 1rem;
  border-color: rgba(242, 209, 132, 0.18);
  background: linear-gradient(180deg, rgba(33, 40, 52, 0.90), rgba(17, 21, 29, 0.96));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.single-fcn_chapter.zy-cohesion-view .zy-extra-nav-button:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 221, 160, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), 0 0 18px rgba(233, 196, 110, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(247, 214, 141, 0.30);
  background: linear-gradient(180deg, rgba(41, 48, 62, 0.98), rgba(18, 22, 30, 0.98));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24), 0 0 24px rgba(245, 205, 110, 0.08);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 223, 150, 0.08) 48deg, rgba(255, 223, 150, 0.88) 102deg, rgba(163, 198, 255, 0.72) 154deg, rgba(255, 255, 255, 0.04) 230deg, rgba(255, 223, 150, 0.70) 298deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: zy-next-ring 9s linear infinite;
  pointer-events: none;
  z-index: -2;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--layout-border-radius-small, 2px) + 1px);
  background: linear-gradient(180deg, rgba(34, 41, 54, 0.96), rgba(16, 20, 28, 0.98));
  z-index: -1;
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next > * {
  position: relative;
  z-index: 1;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next:hover {
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 26px rgba(250, 214, 120, 0.14);
}

body.zy-cohesion-view #full-navigation .main-navigation__list > .menu-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.78rem;
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.zy-cohesion-view #full-navigation .main-navigation__list > .menu-item > a::after {
  content: "";
  position: absolute;
  inset: 4px 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0);
  pointer-events: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.zy-cohesion-view #full-navigation .main-navigation__list > .menu-item > a:hover::after,
body.zy-cohesion-view #full-navigation .main-navigation__list > .menu-item.current-menu-item > a::after,
body.zy-cohesion-view #full-navigation .main-navigation__list > .menu-item.current_page_item > a::after {
  border-color: rgba(242, 210, 138, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 14px rgba(241, 202, 110, 0.08);
}

body.zy-cohesion-view .zy-nav-link__icon {
  position: relative;
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: rgba(248, 221, 160, 0.94);
  filter: drop-shadow(0 0 10px rgba(242, 209, 132, 0.18));
}

body.zy-cohesion-view .zy-nav-link__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

body.zy-cohesion-view .zy-nav-link__icon [data-tone=base] {
  fill: rgba(248, 221, 160, 0.92);
  stroke: rgba(248, 221, 160, 0.92);
}

body.zy-cohesion-view .zy-nav-link__icon [data-tone=accent] {
  fill: rgba(180, 209, 255, 0.82);
  stroke: rgba(180, 209, 255, 0.82);
}

body.zy-cohesion-view .zy-nav-link__text {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  body.zy-cohesion-view #full-navigation .main-navigation__list > .menu-item > a::after,
  body.zy-cohesion-view .zy-nav-link__icon {
    display: none;
  }
}



@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next::before {
    animation: none !important;
  }

  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next,
  body.single-fcn_chapter.zy-cohesion-view .zy-extra-nav-button {
    transition: none !important;
    transform: none !important;
  }
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font {
  border-color: rgba(181, 144, 65, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.94), rgba(245, 238, 225, 0.96)),
    radial-gradient(circle at top, rgba(217, 177, 96, 0.13), transparent 42%);
  box-shadow:
    0 24px 44px rgba(84, 56, 14, 0.10),
    0 8px 18px rgba(84, 56, 14, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(255, 244, 213, 0.32);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before {
  background: linear-gradient(145deg, rgba(197, 153, 64, 0.30), rgba(255, 255, 255, 0.24) 28%, rgba(143, 174, 221, 0.18) 58%, rgba(210, 171, 80, 0.24) 100%);
  opacity: 0.82;
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after {
  background: radial-gradient(circle at top center, rgba(226, 183, 92, 0.16), transparent 38%);
  opacity: 0.68;
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

@keyframes zy-next-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* v1.33.26 chapter reading slab rollback.
 * Remove the accidental inner panel treatment from the text block.
 * The chapter text should sit directly on the main reading panel.
 */
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font {
  isolation: initial;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after {
  content: none;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
  text-shadow: none;
}


/* v1.33.27 chapter UX wayfinding + shell pass.
 * Purpose:
 * - strengthen the outer reading shell without touching the user-controlled text surface
 * - add clear story / collection wayfinding on chapter pages
 * - make the bottom chapter rail feel more like a destination than a generic pager
 */
body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  position: relative;
  isolation: isolate;
  margin-top: 1.25rem;
  border-radius: 24px;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.14);
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content::before {
  content: "";
  position: absolute;
  inset: -10px -12px;
  z-index: -2;
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(247, 214, 141, 0.16), transparent 42%),
    radial-gradient(circle at 14% 38%, rgba(166, 201, 255, 0.12), transparent 34%);
  opacity: 0.78;
  pointer-events: none;
  filter: blur(6px);
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(247, 214, 141, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.72rem;
  width: 100%;
  max-width: min(42rem, 100%);
  margin: 0.35rem auto 0.2rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.46rem 0.8rem 0.5rem;
  border: 1px solid rgba(247, 214, 141, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at top, rgba(255, 224, 166, 0.06), transparent 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(0, 0, 0, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip {
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 221, 160, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.18), 0 0 18px rgba(241, 202, 110, 0.08);
  filter: brightness(1.03);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip::before {
  content: "";
  display: inline-block;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 248, 226, 0.98), rgba(255, 220, 146, 0.88) 42%, rgba(171, 204, 255, 0.72) 100%);
  box-shadow: 0 0 10px rgba(244, 209, 124, 0.22);
  flex: 0 0 auto;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip--collection::before {
  background: radial-gradient(circle at 35% 35%, rgba(232, 245, 255, 0.98), rgba(186, 218, 255, 0.86) 44%, rgba(255, 220, 146, 0.64) 100%);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__kicker {
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 225, 181, 0.92);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: rgba(239, 241, 247, 0.88);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  font-weight: 700;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.18rem;
  min-width: min(18rem, 100%);
  min-height: 3.65rem;
  padding: 0.72rem 1rem 0.78rem;
  text-align: left;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button--next {
  align-items: flex-end;
  text-align: right;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__eyebrow {
  display: block;
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 225, 181, 0.9);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__title {
  display: block;
  max-width: 22ch;
  font-size: 0.82rem;
  line-height: 1.28;
  letter-spacing: 0.02em;
  white-space: normal;
  text-wrap: balance;
  color: rgba(242, 245, 250, 0.95);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button {
  border-color: rgba(222, 228, 244, 0.16);
  background: linear-gradient(180deg, rgba(33, 39, 50, 0.94), rgba(17, 21, 28, 0.98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), 0 0 20px rgba(180, 209, 255, 0.08);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
  border-color: rgba(247, 214, 141, 0.26);
  background: linear-gradient(180deg, rgba(39, 46, 59, 0.98), rgba(18, 22, 30, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), 0 0 20px rgba(245, 205, 110, 0.08);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button::before {
  inset: -1px;
  background: conic-gradient(from 18deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 223, 150, 0.06) 58deg, rgba(255, 223, 150, 0.72) 120deg, rgba(163, 198, 255, 0.56) 180deg, rgba(255, 255, 255, 0.03) 250deg, rgba(255, 223, 150, 0.52) 320deg, rgba(255, 255, 255, 0) 360deg);
  animation-duration: 13s;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button:hover {
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26), 0 0 24px rgba(250, 214, 120, 0.12);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  box-shadow:
    0 24px 42px rgba(89, 59, 11, 0.10),
    0 8px 18px rgba(89, 59, 11, 0.06);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::before {
  background:
    radial-gradient(circle at top center, rgba(214, 174, 91, 0.18), transparent 42%),
    radial-gradient(circle at 14% 38%, rgba(143, 174, 221, 0.16), transparent 34%);
  opacity: 0.6;
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::after {
  border-color: rgba(181, 144, 65, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  border-color: rgba(181, 144, 65, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 240, 227, 0.88)),
    radial-gradient(circle at top, rgba(217, 177, 96, 0.10), transparent 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 20px rgba(89, 59, 11, 0.08);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__kicker {
  color: rgba(135, 98, 29, 0.9);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__title {
  color: rgba(53, 42, 22, 0.86);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__eyebrow {
  color: rgba(135, 98, 29, 0.84);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button {
  border-color: rgba(181, 144, 65, 0.16);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.94), rgba(244, 237, 225, 0.96));
  box-shadow: 0 12px 24px rgba(89, 59, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
  border-color: rgba(181, 144, 65, 0.22);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(244, 237, 225, 0.98));
  box-shadow: 0 14px 28px rgba(89, 59, 11, 0.09), 0 0 18px rgba(214, 174, 91, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@media (max-width: 720px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
    gap: 0.5rem;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__trail {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip,
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
    width: 100%;
  }

  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip,
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button {
    transition: none !important;
    transform: none !important;
  }
}


/* v1.33.28 chapter polish pass.
 * Purpose:
 * - keep the reading surface user-controlled while upgrading the outer shell
 * - make the wayfinding chips feel like part of a premium library UI
 * - tighten the utility lane and chapter rail with calmer, more intentional motion
 */
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font {
  isolation: initial;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after {
  content: none;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  margin-top: 1.3rem;
  border-radius: 26px;
  box-shadow:
    0 32px 68px rgba(0, 0, 0, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(247, 214, 141, 0.06);
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content::before {
  inset: -12px -14px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(247, 214, 141, 0.18), transparent 40%),
    radial-gradient(circle at 12% 36%, rgba(166, 201, 255, 0.12), transparent 30%),
    radial-gradient(circle at 86% 76%, rgba(202, 162, 255, 0.08), transparent 28%);
  opacity: 0.72;
  filter: blur(10px);
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content::after {
  border-radius: 26px;
  border-color: rgba(247, 214, 141, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  box-shadow:
    0 26px 48px rgba(89, 59, 11, 0.10),
    0 10px 22px rgba(89, 59, 11, 0.06),
    0 0 0 1px rgba(181, 144, 65, 0.08);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::before {
  background:
    radial-gradient(circle at top center, rgba(214, 174, 91, 0.16), transparent 40%),
    radial-gradient(circle at 14% 36%, rgba(143, 174, 221, 0.14), transparent 30%),
    radial-gradient(circle at 86% 76%, rgba(193, 160, 220, 0.08), transparent 28%);
  opacity: 0.56;
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::after {
  border-color: rgba(181, 144, 65, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links::after {
  content: "";
  display: block;
  width: min(220px, 48vw);
  height: 1px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(247, 214, 141, 0.08), rgba(247, 214, 141, 0.72), rgba(171, 204, 255, 0.34), rgba(247, 214, 141, 0.16), transparent);
  opacity: 0.86;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
  gap: 0.68rem 0.8rem;
  margin-top: 0.5rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__trail {
  gap: 0.72rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.58rem;
  row-gap: 0.08rem;
  min-height: 2.45rem;
  padding: 0.52rem 0.95rem 0.56rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 0.62rem;
  height: 0.62rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__kicker {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label {
  grid-column: 2;
  grid-row: 2;
  display: block;
  max-width: 20ch;
  font-size: 0.82rem;
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  position: relative;
  min-height: 2.45rem;
  padding-inline: 0.95rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact::before {
  content: "✦";
  font-size: 0.76rem;
  line-height: 1;
  color: rgba(247, 225, 181, 0.92);
  text-shadow: 0 0 12px rgba(244, 209, 124, 0.18);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-lane {
  gap: 0.9rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper {
  position: relative;
  overflow: hidden;
  padding: 0.66rem 0.9rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 22%, transparent 48%);
  transform: translateX(-100%);
  animation: zy-whisper-sheen 8.5s ease-in-out infinite;
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-actions .zy-extra-nav-button {
  min-height: 44px;
  padding-inline: 1.04rem;
  gap: 0.56rem;
  border-color: rgba(242, 209, 132, 0.2);
}

body.single-fcn_chapter.zy-cohesion-view .zy-extra-nav-button__glyph {
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 245, 216, 0.22), rgba(255, 214, 140, 0.08) 58%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 14px rgba(241, 202, 110, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view .zy-extra-nav-button__label {
  letter-spacing: 0.03em;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
  position: relative;
  overflow: hidden;
  min-width: min(18.5rem, 100%);
  padding-inline: 1.15rem;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: -0.36rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0.58;
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button::after {
  left: 0.8rem;
  transform: rotate(-135deg);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button::after {
  right: 0.8rem;
  transform: rotate(45deg);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button {
  padding-left: 2rem;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
  padding-right: 2rem;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__eyebrow {
  opacity: 0.9;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__title {
  max-width: 23ch;
  font-size: 0.86rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip,
body.single-fcn_chapter.zy-cohesion-view #chapter-content,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-lane,
body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
  animation: zy-chapter-polish-rise 460ms ease both;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  animation-delay: 40ms;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-lane {
  animation-delay: 90ms;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
  animation-delay: 120ms;
}

@keyframes zy-whisper-sheen {
  0%,
  70%,
  100% {
    transform: translateX(-115%);
    opacity: 0;
  }
  78% {
    transform: translateX(0%);
    opacity: 1;
  }
  90% {
    transform: translateX(115%);
    opacity: 0;
  }
}

@keyframes zy-chapter-polish-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 720px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip {
    max-width: none;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label {
    max-width: none;
  }

  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button,
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip,
  body.single-fcn_chapter.zy-cohesion-view #chapter-content,
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-lane,
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button,
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper::before {
    animation: none !important;
    transform: none !important;
  }
}


/* v1.33.29 chapter cleanup hotfix.
 * Purpose:
 * - remove the accidental chapter-content chrome so the text sits on a single panel
 * - drop the redundant context strip / chapter fact lane
 * - turn the next-button animation into a restrained border sheen instead of a spinning interior blob
 */
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
  display: none !important;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  position: relative;
  isolation: isolate;
  margin-top: 1.3rem;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.16), 0 8px 18px rgba(0, 0, 0, 0.10);
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content::after,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::before,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::after {
  content: none !important;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font {
  isolation: initial;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after {
  content: none !important;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6),
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
  text-shadow: none;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(247, 214, 141, 0.24);
  background: linear-gradient(180deg, rgba(39, 46, 59, 0.98), rgba(18, 22, 30, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), 0 0 20px rgba(245, 205, 110, 0.08);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 223, 150, 0.18) 40%,
    rgba(255, 223, 150, 0.90) 50%,
    rgba(171, 204, 255, 0.72) 56%,
    rgba(255, 223, 150, 0.18) 64%,
    rgba(255, 255, 255, 0) 76%,
    rgba(255, 255, 255, 0) 100%);
  background-size: 240% 100%;
  background-position: 150% 50%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: zy-next-border-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button > * {
  position: relative;
  z-index: 1;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26), 0 0 24px rgba(250, 214, 120, 0.12);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  box-shadow: 0 20px 34px rgba(89, 59, 11, 0.10), 0 8px 18px rgba(89, 59, 11, 0.06);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
  border-color: rgba(181, 144, 65, 0.22);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(244, 237, 225, 0.98));
  box-shadow: 0 14px 28px rgba(89, 59, 11, 0.09), 0 0 18px rgba(214, 174, 91, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@keyframes zy-next-border-sheen {
  0%, 100% {
    background-position: 150% 50%;
    opacity: 0.86;
  }
  45% {
    background-position: -90% 50%;
    opacity: 1;
  }
  55% {
    background-position: -90% 50%;
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button::before {
    animation: none !important;
    background-position: 50% 50%;
  }
}


/* v1.33.30 chapter surface / nav cleanup.
 * Purpose:
 * - move the chapter depth treatment off the inner reading surface
 * - restore compact bottom nav buttons with sane labels only
 * - make the utility whisper card clickable when there is a next chapter
 */
body.single-fcn_chapter.zy-cohesion-view #chapter-content,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  margin-top: 1.3rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .content-section,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .content-section,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font {
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content::after,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .content-section::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .content-section::after,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::before,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content::after,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .content-section::before,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .content-section::after,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::before,
:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view #chapter-content .resize-font::after {
  content: none !important;
  display: none !important;
}

body.single-fcn_chapter.zy-cohesion-view .main__wrapper {
  position: relative;
  z-index: 1;
  border-radius: 0;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16), 0 10px 22px rgba(0, 0, 0, 0.10);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .main__wrapper {
  box-shadow: 0 20px 38px rgba(89, 59, 11, 0.10), 0 9px 20px rgba(89, 59, 11, 0.06);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
  min-height: 44px;
  padding: 0.9rem 1.4rem;
  align-items: center;
  justify-content: center;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__title {
  display: none !important;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.1rem;
  font-size: 0.79rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 221, 160, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.18), 0 0 18px rgba(241, 202, 110, 0.08);
  filter: brightness(1.03);
}

@media (max-width: 720px) {
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
    width: 100%;
    min-width: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* v133.31 chapter-nav alignment + constellation premium pass.
 * Purpose:
 * - Match bottom prev/next labels to the parent top action language and tone.
 * - Keep footer nav compact and on one line.
 * - Add restrained twinkle/orbit polish to the chapter constellation centrepiece.
 */
body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
  min-height: 40px;
  padding: 0.7rem 1.15rem;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__eyebrow {
  min-height: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._prev.zy-chapter-nav-button,
body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .button._navigation._next.zy-chapter-nav-button {
  gap: 0.35rem;
}

.zy-chapter-constellation__node:not(.is-current) .zy-chapter-constellation__star {
  animation: zy-constellation-soft-twinkle 5.6s ease-in-out infinite;
}

.zy-chapter-constellation__node:nth-child(3n) .zy-chapter-constellation__star {
  animation-duration: 6.8s;
  animation-delay: -2.1s;
}

.zy-chapter-constellation__node:nth-child(4n) .zy-chapter-constellation__star {
  animation-duration: 7.4s;
  animation-delay: -3.4s;
}

.zy-chapter-constellation__node:nth-child(5n) .zy-chapter-constellation__star {
  animation-duration: 6.1s;
  animation-delay: -1.2s;
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__link::after {
  content: "";
  position: absolute;
  inset: -0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 227, 173, 0.26);
  box-shadow: 0 0 0 1px rgba(255, 222, 160, 0.06) inset, 0 0 18px rgba(255, 214, 140, 0.12);
  opacity: 0.75;
  animation: zy-constellation-orbit-ring 3.8s ease-in-out infinite;
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__link::before {
  opacity: 0.72;
}

.zy-chapter-constellation__viewport::after {
  animation: zy-constellation-glint 9s ease-in-out infinite;
  transform-origin: center;
}

@keyframes zy-constellation-soft-twinkle {
  0%, 100% {
    opacity: 0.78;
    transform: scale(0.98);
    filter: brightness(0.98);
  }
  45% {
    opacity: 1;
    transform: scale(1.03);
    filter: brightness(1.08);
  }
  70% {
    opacity: 0.84;
    transform: scale(0.995);
    filter: brightness(1.01);
  }
}

@keyframes zy-constellation-orbit-ring {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.46;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.88;
  }
}

@keyframes zy-constellation-glint {
  0%, 100% {
    opacity: 0.16;
    transform: translate3d(0, 0, 0) rotate(-16deg);
  }
  35% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.46;
    transform: translate3d(-0.35rem, 0.05rem, 0) rotate(-14deg);
  }
  75% {
    opacity: 0.24;
  }
}

:root[data-mode=light] .zy-chapter-constellation__node.is-current .zy-chapter-constellation__link::after {
  border-color: rgba(170, 124, 41, 0.22);
  box-shadow: 0 0 0 1px rgba(170, 124, 41, 0.04) inset, 0 0 14px rgba(170, 124, 41, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .zy-chapter-constellation__node:not(.is-current) .zy-chapter-constellation__star,
  .zy-chapter-constellation__node.is-current .zy-chapter-constellation__link::after,
  .zy-chapter-constellation__viewport::after {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button {
    min-height: 38px;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  body.single-fcn_chapter.zy-cohesion-view .chapter__footer.chapter__actions--bottom .zy-chapter-nav-button__eyebrow {
    font-size: 0.84rem;
  }
}


/* v133.32 reading progress premium pass.
 * Purpose:
 * - Refine the native top reading progress line without turning it into a dashboard widget.
 * - Give the end-of-chapter handoff a little more presence only when the reader is actually near it.
 * - Add a cleaner outer-shell highlight/shadow while leaving the inner reading surface untouched.
 */
body.single-fcn_chapter.zy-cohesion-view .progress {
  height: 5px;
  padding: 1px;
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(7px);
  background: linear-gradient(90deg, rgba(255, 230, 170, 0.07), rgba(255, 246, 225, 0.18), rgba(255, 230, 170, 0.07));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.16);
}

body.single-fcn_chapter.zy-cohesion-view .progress__bar {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 151, 78, 0.92), rgba(244, 213, 140, 0.98) 58%, rgba(255, 245, 226, 0.96));
  box-shadow: 0 0 10px rgba(244, 211, 126, 0.22);
}

body.single-fcn_chapter.zy-cohesion-view .progress__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 247, 228, 0.95) 0%, rgba(255, 222, 155, 0.44) 40%, rgba(255, 222, 155, 0.04) 72%, transparent 100%);
  transform: translateY(-50%);
  filter: blur(3px);
  opacity: 0.82;
  pointer-events: none;
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .progress {
  background: linear-gradient(90deg, rgba(170, 124, 41, 0.06), rgba(255, 247, 236, 0.82), rgba(170, 124, 41, 0.06));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(95, 63, 19, 0.10);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .progress__bar {
  background: linear-gradient(90deg, rgba(162, 112, 29, 0.88), rgba(210, 164, 80, 0.96) 56%, rgba(247, 231, 194, 0.96));
  box-shadow: 0 0 8px rgba(180, 132, 42, 0.16);
}

body.single-fcn_chapter.zy-cohesion-view .main__wrapper {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 10px 24px rgba(0, 0, 0, 0.10);
}

body.single-fcn_chapter.zy-cohesion-view .main__wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 228, 176, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .main__wrapper {
  box-shadow: 0 22px 42px rgba(89, 59, 11, 0.12), 0 10px 22px rgba(89, 59, 11, 0.06);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view .main__wrapper::before {
  border-color: rgba(162, 112, 29, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease, filter 220ms ease;
}

body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper {
  border-color: rgba(248, 221, 160, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 30px rgba(0, 0, 0, 0.20), 0 0 22px rgba(244, 213, 140, 0.08);
  filter: brightness(1.03);
}

body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper__label {
  color: rgba(255, 232, 186, 0.98);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper {
  border-color: rgba(170, 124, 41, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 14px 28px rgba(95, 63, 19, 0.10), 0 0 18px rgba(210, 164, 80, 0.06);
}

:root[data-mode=light] body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper__label {
  color: rgba(114, 74, 18, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper {
    transition: none !important;
  }
}
