/*
 * Zyrenicus Fictioneer cohesion pass.
 *
 * Purpose:
 * - bring inner Fictioneer views closer to the bespoke front-page brand language
 * - stay lightweight and CSS-led
 * - avoid front-page runtime dependencies and heavy template surgery
 *
 * Scope:
 * - story / chapter / collection titles
 * - archive and singular headings used by Fictioneer list templates
 * - taxonomy pills
 * - action/list buttons
 * - restrained story footer meta chip polish
 */

:root {
  --zy-cohesion-title: rgba(245, 238, 225, 0.96);
  --zy-cohesion-title-soft: rgba(231, 222, 208, 0.86);
  --zy-cohesion-gold: rgba(255, 214, 140, 0.82);
  --zy-cohesion-gold-border: rgba(255, 214, 140, 0.18);
  --zy-cohesion-gold-border-strong: rgba(255, 214, 140, 0.30);
  --zy-cohesion-glass-top: rgba(255, 255, 255, 0.08);
  --zy-cohesion-glass-bottom: rgba(255, 255, 255, 0.03);
  --zy-cohesion-surface: linear-gradient(180deg, rgba(44, 50, 60, 0.96), rgba(20, 24, 32, 0.96));
  --zy-cohesion-surface-hover: linear-gradient(180deg, rgba(56, 64, 77, 0.98), rgba(26, 31, 41, 0.98));
  --zy-cohesion-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --zy-cohesion-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.14);
}

:where(.main.story, .main.chapter, .main.collection, .main.singular, .main.archive) {
  --ff-story-title: "Cinzel", var(--ff-base);
  --ff-chapter-title: "Cinzel", var(--ff-base);
  --ff-card-title: "Cinzel", var(--ff-base);
}

:where(
  .story__identity-title,
  .chapter__title,
  .collection__title,
  .archive__heading,
  .singular__title,
  .card__title
) {
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--zy-cohesion-title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.story__identity-title,
.chapter__title,
.collection__title,
.singular__title {
  text-wrap: balance;
}

.story__identity-title,
.chapter__title,
.collection__title {
  color: rgba(248, 241, 226, 0.98);
  text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 10px 28px rgba(0,0,0,0.28), 0 0 18px rgba(255,214,140,0.08);
}

.archive__heading {
  letter-spacing: 0.075em;
}

.card__title {
  line-height: 1.2;
}

.card__title a,
.story__identity-meta a,
.chapter__story-link,
.chapter__author a {
  transition: color var(--transition-duration), opacity var(--transition-duration);
}

.story__identity-meta,
.chapter__author,
.chapter__story-link,
.archive__description {
  color: var(--zy-cohesion-title-soft);
}

.story__identity-meta,
.chapter__author {
  letter-spacing: 0.025em;
}

.story__identity-meta a:hover,
.chapter__story-link:hover,
.chapter__author a:hover,
.card__title a:hover {
  color: #fff7e7;
}

:where(.story__taxonomies, .collection__taxonomies, .card__tag-list) {
  gap: 8px;
}

:where(.story__taxonomies, .collection__taxonomies) .tag-group {
  gap: 8px;
}

:where(.story__taxonomies, .collection__taxonomies, .card__tag-list) .tag-pill {
  --tag-background: linear-gradient(180deg, var(--zy-cohesion-glass-top), var(--zy-cohesion-glass-bottom));
  --tag-background-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  --tag-color: rgba(245, 238, 225, 0.92);
  --tag-color-hover: #fff7e7;
  --tag-secondary-background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  --tag-secondary-background-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  --tag-secondary-color: rgba(241, 233, 220, 0.90);
  --tag-secondary-color-hover: #fff7e7;
  --tag-secondary-border: 1px solid var(--zy-cohesion-gold-border);
  --tag-secondary-border-hover: 1px solid var(--zy-cohesion-gold-border-strong);
  --tag-inline-color: rgba(233, 223, 208, 0.86);
  --tag-inline-color-hover: #fff4df;
  border-radius: 999px;
  box-shadow: var(--zy-cohesion-pill-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:where(.story__taxonomies, .collection__taxonomies, .card__tag-list) .tag-pill._secondary._taxonomy-content_warning {
  border-color: rgba(242, 102, 102, 0.32);
}

.story__actions > .button,
.story__actions > .button._secondary,
.chapter__actions .button,
.chapter__actions .button._secondary,
.list-button {
  --button-secondary-background: var(--zy-cohesion-surface);
  --button-secondary-background-hover: var(--zy-cohesion-surface-hover);
  --button-secondary-color: rgba(245, 238, 225, 0.94);
  --button-secondary-color-hover: #fff7e7;
  --button-secondary-border: 1px solid var(--zy-cohesion-gold-border);
  --button-secondary-border-hover: 1px solid var(--zy-cohesion-gold-border-strong);
  background: var(--zy-cohesion-surface);
  color: rgba(245, 238, 225, 0.94);
  border: 1px solid var(--zy-cohesion-gold-border);
  box-shadow: var(--zy-cohesion-shadow);
  font-family: "Lato", var(--ff-base);
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.story__actions > .button,
.story__actions > .button._secondary {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.story__actions > .button:not(.current, [disabled]):hover,
.story__actions > .button._secondary:not(.current, [disabled]):hover,
.chapter__actions .button:not(.current, [disabled]):hover,
.chapter__actions .button._secondary:not(.current, [disabled]):hover,
.list-button:not(._on):hover {
  background: var(--zy-cohesion-surface-hover);
  color: #fff7e7;
  border-color: var(--zy-cohesion-gold-border-strong);
}

.list-button {
  border-radius: 999px;
  padding: 7px 11px 6px;
  line-height: 1;
}

.list-button._text {
  letter-spacing: 0.06em;
}

.chapter__actions .button {
  min-height: 34px;
}

.chapter__actions > :not(.chapter__actions-center) > .button:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.chapter__actions > :not(.chapter__actions-center) > .button:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.story__meta {
  gap: 0.55rem;
}

.story__meta-item {
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  padding: 0 0.65rem;
  line-height: 1.2;
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 214, 140, 0.16);
  box-shadow: var(--zy-cohesion-pill-shadow);
}

.story__meta-item:not(:first-child) {
  margin-left: 0;
}

.story__meta-item:not(:first-child):not(.checkmark):before {
  content: none;
}

.story__meta-item.checkmark {
  padding: 0 0.55rem;
}

.story__meta > :is(span, label) :is(i, .icon) {
  color: rgba(255, 214, 140, 0.78);
}

.story__meta button.checkmark {
  margin-left: 0;
}

@media only screen and (max-width: 640px) {
  .story__meta {
    justify-content: flex-start;
    padding-right: 0;
    gap: 0.45rem;
  }

  .story__meta-item {
    min-height: 26px;
    padding: 0 0.55rem;
  }

  .archive__heading {
    letter-spacing: 0.05em;
  }
}


/* v1.33.2 stronger inner-page title/header graft.
 * Purpose:
 * - make story/chapter/collection/archive headers visibly match Zyrenicus brand language
 * - port the front-page gold/silver heading treatment onto inner-page identity blocks
 * - centre key reading-page titles without touching chapter body typography
 */

:root {
  --zy-cohesion-gold-2: #f3dc8a;
  --zy-cohesion-gold-3: #8a7122;
  --zy-cohesion-silver: #d7dde6;
  --zy-cohesion-silver-2: #f7fbff;
  --zy-cohesion-silver-3: #8794a6;
  --zy-cohesion-gold-metallic: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--zy-cohesion-gold-2) 30%,
    var(--zy-cohesion-gold) 58%,
    var(--zy-cohesion-gold-3) 100%
  );
  --zy-cohesion-silver-metallic: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--zy-cohesion-silver-2) 30%,
    var(--zy-cohesion-silver) 58%,
    var(--zy-cohesion-silver-3) 100%
  );
  --zy-cohesion-title-shadow-strong: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.35), 0 -1px 0 rgba(255, 255, 255, 0.10);
}

.story__header .story__identity,
.chapter__headline,
.collection__header,
.archive__header,
.singular__header {
  text-align: center;
}

.story__header .story__identity,
.chapter__headline,
.collection__header,
.archive__header {
  align-items: center;
}

.story__header .story__identity {
  margin-inline: auto;
}

.chapter__headline {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.story__header .story__taxonomies,
.collection__taxonomies {
  justify-content: center;
}

.story__identity-title,
.chapter__title,
.collection__title,
.archive__heading,
.singular__title {
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  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;
  text-shadow: var(--zy-cohesion-title-shadow-strong);
}

.story__identity-title {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.1;
}

.chapter__title {
  margin-top: 0.3rem;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  line-height: 1.14;
}

.collection__title,
.singular__title {
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 1.12;
}

.archive__heading {
  margin-bottom: 0.95rem;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  line-height: 1.12;
  letter-spacing: 0.08em;
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link,
.chapter__author,
.archive__description {
  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;
  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);
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link,
.archive__description {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link {
  font-size: clamp(0.78rem, 0.28vw + 0.72rem, 0.92rem);
  font-weight: 800;
}

.chapter__author {
  margin-top: 0.1rem;
  font-size: clamp(0.76rem, 0.22vw + 0.72rem, 0.88rem);
  letter-spacing: 0.04em;
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link,
.chapter__author,
.archive__description {
  display: block;
}

.story__identity-meta a,
.chapter__headline > a,
.chapter__story-link,
.chapter__author a {
  color: inherit;
}

.story__identity-meta a,
.chapter__author a {
  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;
  text-shadow: inherit;
}

.story__identity-meta a:hover,
.chapter__author a:hover {
  filter: brightness(1.08);
}

.story__identity-meta::after,
.chapter__story-link::after,
.chapter__headline > a::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;
}

.archive__description {
  max-width: 64ch;
  margin-inline: auto;
  font-style: normal;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0.02em;
}

.collection__taxonomies {
  margin-bottom: 1.1rem;
}

@media only screen and (max-width: 640px) {
  .story__identity-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .chapter__title {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
  }

  .collection__title,
  .singular__title {
    font-size: clamp(1.65rem, 6.6vw, 2.2rem);
  }

  .archive__heading {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    letter-spacing: 0.06em;
  }

  .story__identity-meta,
  .chapter__headline > a,
  .chapter__story-link,
  .chapter__author {
    letter-spacing: 0.09em;
  }
}



/* v1.33.5 navigation + metadata + chapter-list cohesion pass.
 * Purpose:
 * - make chapter action rails feel like part of the Zyrenicus component system
 * - turn inner-page metadata into deliberate chips rather than plain text crumbs
 * - lift chapter lists / chapter index / collection entry lists out of stock-theme plainness
 */

:where(.main.story, .main.chapter, .main.collection, .main.archive, .main.singular) {
  --zy-cohesion-panel-bg: linear-gradient(180deg, rgba(40, 46, 57, 0.82), rgba(18, 22, 30, 0.90));
  --zy-cohesion-panel-border: rgba(255, 214, 140, 0.16);
  --zy-cohesion-panel-border-strong: rgba(255, 214, 140, 0.28);
  --zy-cohesion-row-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016));
  --zy-cohesion-row-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.main.chapter .chapter__actions {
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--zy-cohesion-panel-border);
  border-radius: 16px;
  background: var(--zy-cohesion-panel-bg);
  box-shadow: var(--zy-cohesion-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main.chapter .chapter__actions-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
}

.main.chapter .chapter__actions .button,
.main.chapter .chapter__actions .popup-menu-toggle,
.main.chapter .chapter__actions a.button {
  border-radius: 999px;
}

.main.chapter .chapter__actions .button._navigation {
  min-width: 7.75rem;
  justify-content: center;
}

.main.chapter .chapter__actions .anchor.button,
.main.chapter .chapter__actions .button--bookmark,
.main.chapter .chapter__actions .button--fullscreen,
.main.chapter .chapter__actions .open,
.main.chapter .chapter__actions .popup-menu-toggle {
  min-width: 2.3rem;
  min-height: 2.3rem;
}

.main.chapter .chapter__actions .popup-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.main.chapter .chapter__actions--top {
  margin-bottom: 1.15rem;
}

.main.chapter .chapter__footer.chapter__actions--bottom {
  margin-top: 1.5rem;
}

.story__meta,
.chapter-group__list-item-subrow,
.post-list-item__meta,
.card__footer-box {
  gap: 0.45rem;
}

:where(.chapter-group__list-item-subrow, .post-list-item__meta, .card__footer-box) > :is(span, time),
.card__footer-box > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 27px;
  padding: 0 0.62rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 214, 140, 0.14);
  box-shadow: var(--zy-cohesion-pill-shadow);
  line-height: 1.15;
}

:where(.chapter-group__list-item-subrow, .post-list-item__meta, .card__footer-box) > :is(span, time) :is(i, .icon),
.card__footer-box > span :is(i, .icon) {
  color: rgba(255, 214, 140, 0.76);
}

.card__footer-box > .separator-dot,
.chapter-group__list-item-subrow > .separator-dot,
.post-list-item__meta > .separator-dot {
  display: none;
}

.story__chapters .chapter-group,
.dialog-modal._chapter-index .chapter-group {
  border: 1px solid var(--zy-cohesion-panel-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(33, 38, 48, 0.78), rgba(18, 22, 29, 0.88));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  overflow: clip;
}

.story__chapters .chapter-group + .chapter-group,
.dialog-modal._chapter-index .chapter-group + .chapter-group {
  margin-top: 1rem;
}

.story__chapters .chapter-group__name,
.dialog-modal._chapter-index .chapter-group__name {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.88rem 1rem 0.84rem;
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(247, 239, 223, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid rgba(255, 214, 140, 0.12);
}

.story__chapters .chapter-group__heading-icon,
.dialog-modal._chapter-index .chapter-group__heading-icon {
  color: rgba(255, 214, 140, 0.82);
}

.story__chapters .chapter-group__list,
.dialog-modal._chapter-index .chapter-group__list {
  padding: 0.45rem;
}

.story__chapters .chapter-group__list-item,
.dialog-modal._chapter-index .chapter-group__list-item,
.card__link-list-item {
  border-radius: 14px;
  background: var(--zy-cohesion-row-bg);
  border: 1px solid transparent;
  transition: background var(--transition-duration), border-color var(--transition-duration), transform var(--transition-duration), box-shadow var(--transition-duration);
}

.story__chapters .chapter-group__list-item:hover,
.dialog-modal._chapter-index .chapter-group__list-item:hover,
.card__link-list-item:hover {
  background: var(--zy-cohesion-row-bg-hover);
  border-color: rgba(255, 214, 140, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.story__chapters .chapter-group__list-item-link,
.dialog-modal._chapter-index .chapter-group__list-item-link,
.card__link-list-link {
  color: rgba(245, 238, 225, 0.95);
  transition: color var(--transition-duration);
}

.story__chapters .chapter-group__list-item-link,
.dialog-modal._chapter-index .chapter-group__list-item-link {
  font-family: "Lato", var(--ff-base);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.story__chapters .chapter-group__list-item:hover .chapter-group__list-item-link,
.dialog-modal._chapter-index .chapter-group__list-item:hover .chapter-group__list-item-link,
.card__link-list-item:hover .card__link-list-link {
  color: #fff8ea;
}

.story__chapters .chapter-group__list-item-icon,
.dialog-modal._chapter-index .chapter-group__list-item-icon,
.card__link-list-item .fa-caret-right {
  color: rgba(255, 214, 140, 0.82);
}

.story__chapters .chapter-group__list-item-status,
.dialog-modal._chapter-index .chapter-group__list-item-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 214, 140, 0.11);
  border: 1px solid rgba(255, 214, 140, 0.18);
  color: rgba(255, 240, 208, 0.92);
  font-size: 0.76em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story__chapters .chapter-group__folding-toggle,
.dialog-modal._chapter-index .chapter-group__folding-toggle {
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 214, 140, 0.16);
  color: rgba(245, 238, 225, 0.94);
  font-family: "Lato", var(--ff-base);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story__chapters .chapter-group__folding-toggle:hover,
.dialog-modal._chapter-index .chapter-group__folding-toggle:hover {
  border-color: rgba(255, 214, 140, 0.26);
  color: #fff8ea;
}

.card__link-list {
  gap: 0.4rem;
}

.card__link-list-item {
  padding-inline: 0.55rem;
}

.card__link-list-item .card__right {
  color: rgba(228, 218, 204, 0.82);
}

.card__link-list-item .type {
  color: rgba(255, 214, 140, 0.84);
}

@media only screen and (max-width: 768px) {
  .main.chapter .chapter__actions {
    padding: 0.62rem 0.65rem;
    border-radius: 14px;
  }

  .main.chapter .chapter__actions-container {
    gap: 0.35rem;
  }

  .main.chapter .chapter__actions .button._navigation {
    min-width: 0;
  }

  :where(.chapter-group__list-item-subrow, .post-list-item__meta, .card__footer-box) > :is(span, time),
  .card__footer-box > span {
    min-height: 25px;
    padding: 0 0.5rem;
  }

  .story__chapters .chapter-group__name,
  .dialog-modal._chapter-index .chapter-group__name {
    padding-inline: 0.8rem;
    letter-spacing: 0.055em;
  }

  .card__link-list-item {
    padding-inline: 0.4rem;
  }
}



/* v1.33.9 chapter constellation refinement pass.
 * Purpose:
 * - keep the added utility buttons in the bottom reading rail
 * - rebuild the chapter constellation as a genuinely shaped star map
 * - add responsive scrolling, custom hover labels, and cleaner current-state emphasis
 */

.main.chapter .chapter__actions-center,
.main.chapter .chapter__footer .chapter__actions-container {
  flex-wrap: wrap;
}

.main.chapter .zy-extra-nav-button {
  min-width: 8.6rem;
  gap: 0.48rem;
  padding-inline: 0.95rem;
}

.main.chapter .zy-extra-nav-button__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 214, 140, 0.88);
  font-size: 0.9rem;
  line-height: 1;
}

.main.chapter .zy-extra-nav-button--vault .zy-extra-nav-button__glyph::before {
  content: "✦";
}

.main.chapter .zy-extra-nav-button--forum .zy-extra-nav-button__glyph::before {
  content: "✎";
}

.main.chapter .zy-chapter-footer-whisper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.42rem 0.65rem;
  width: 100%;
  margin: 0 0 0.72rem;
  padding: 0.56rem 0.75rem;
  border: 1px solid rgba(255, 214, 140, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.main.chapter .zy-chapter-footer-whisper__label {
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.7rem;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 234, 188, 0.92);
}

.main.chapter .zy-chapter-footer-whisper__body {
  font-size: 0.8rem;
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: rgba(239, 241, 247, 0.86);
}

.zy-chapter-constellation {
  --zy-constellation-star-size: 2.18rem;
  --zy-constellation-track-padding-inline: 0.8rem;
  --zy-constellation-track-padding-block: 1.08rem;
  --zy-constellation-node-gap: clamp(0.75rem, 1vw, 1rem);
  --zy-node-offset-scale: 1;
  --zy-constellation-line-color: rgba(255, 222, 150, 0.34);
  --zy-patreon-amber: rgba(255, 166, 76, 0.95);
  --zy-patreon-amber-soft: rgba(255, 166, 76, 0.34);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto 1.05rem;
  padding: 0.72rem 0.85rem 0.82rem;
  border: 1px solid rgba(255, 214, 140, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 22%, rgba(153, 201, 255, 0.13), transparent 22%),
    radial-gradient(circle at 82% 76%, rgba(255, 214, 140, 0.12), transparent 24%),
    radial-gradient(circle at 52% 48%, rgba(255, 214, 140, 0.06), transparent 54%),
    linear-gradient(180deg, rgba(32, 38, 48, 0.84), rgba(16, 20, 27, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.zy-chapter-constellation::before,
.zy-chapter-constellation::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zy-chapter-constellation::before {
  background:
    radial-gradient(circle at 11% 22%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 24% 70%, rgba(255, 224, 165, 0.18) 0 1px, transparent 1.7px),
    radial-gradient(circle at 48% 35%, rgba(197, 222, 255, 0.18) 0 1px, transparent 1.6px),
    radial-gradient(circle at 61% 64%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 83% 27%, rgba(255, 224, 165, 0.16) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 74%, rgba(197, 222, 255, 0.18) 0 1px, transparent 1.6px);
  opacity: 0.9;
}

.zy-chapter-constellation::after {
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}


header.chapter__headline.layout-links > .zy-chapter-constellation {
  order: -1;
  align-self: stretch;
}

.zy-chapter-constellation__viewport::before,
.zy-chapter-constellation__viewport::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.zy-chapter-constellation__viewport::before {
  inset: 0.35rem 0.55rem 0.6rem;
  background:
    radial-gradient(circle at 16% 42%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1.8px),
    radial-gradient(circle at 33% 68%, rgba(255, 224, 165, 0.13) 0 1px, transparent 1.9px),
    radial-gradient(circle at 57% 28%, rgba(197, 222, 255, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.9px);
  opacity: 0.72;
}

.zy-chapter-constellation__viewport::after {
  top: 0.9rem;
  right: 1.4rem;
  width: 4.4rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255, 235, 188, 0.9), rgba(255,255,255,0));
  transform: rotate(-16deg);
  opacity: 0.34;
  filter: blur(0.2px);
}

.zy-chapter-constellation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.42rem;
  padding-inline: 0.1rem;
}

.zy-chapter-constellation__eyebrow,
.zy-chapter-constellation__meta {
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zy-chapter-constellation__eyebrow {
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 700;
  color: rgba(247, 239, 223, 0.92);
}

.zy-chapter-constellation__meta {
  color: rgba(232, 240, 255, 0.58);
}

.zy-chapter-constellation__readout {
  min-height: 1.58rem;
  margin-bottom: 0.42rem;
  padding: 0.34rem 0.66rem;
  border: 1px solid rgba(255, 214, 140, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 226, 0.9);
  text-align: center;
}

.zy-chapter-constellation__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
  margin-bottom: 0.52rem;
}

.zy-chapter-constellation__fact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(255, 214, 140, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 238, 245, 0.74);
}

.zy-chapter-constellation__fact.is-premium {
  border-color: rgba(255, 166, 76, 0.18);
  background: rgba(255, 166, 76, 0.08);
  color: rgba(255, 218, 182, 0.88);
}

.zy-chapter-constellation__viewport {
  position: relative;
  display: grid;
  align-items: start;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-x: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-block: 0.08rem 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
}

.zy-chapter-constellation__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.zy-chapter-constellation__viewport::-webkit-scrollbar-thumb {
  background: transparent;
}

.zy-chapter-constellation__viewport::-webkit-scrollbar-track {
  background: transparent;
}

.zy-chapter-constellation__lines {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.zy-chapter-constellation__segment {
  stroke: var(--zy-constellation-line-color);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  filter: drop-shadow(0 0 5px rgba(255, 223, 162, 0.18));
  opacity: 0.96;
}

.zy-chapter-constellation__track {
  grid-area: 1 / 1;
  list-style: none;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: var(--zy-constellation-track-padding-block) var(--zy-constellation-track-padding-inline) calc(var(--zy-constellation-track-padding-block) + 0.2rem);
  display: flex;
  align-items: center;
  gap: var(--zy-constellation-node-gap);
  min-width: max-content;
}

.zy-chapter-constellation__node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(calc(var(--zy-node-offset, 0px) * var(--zy-node-offset-scale)));
}

.zy-chapter-constellation__link {
  --zy-star-core: rgba(232, 240, 255, 0.9);
  --zy-star-halo: rgba(162, 201, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--zy-constellation-star-size);
  height: var(--zy-constellation-star-size);
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.zy-chapter-constellation__link::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.zy-chapter-constellation__link:hover,
.zy-chapter-constellation__link:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
}

.zy-chapter-constellation__link:hover::before,
.zy-chapter-constellation__link:focus-visible::before {
  opacity: 1;
}

.zy-chapter-constellation__link:focus-visible {
  outline: 2px solid rgba(255, 214, 140, 0.55);
  outline-offset: 3px;
}

.zy-chapter-constellation__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(20rem, calc(100% - 1rem));
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 214, 140, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 28, 36, 0.98), rgba(13, 16, 22, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(245, 242, 234, 0.96);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.3rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 7;
}

.zy-chapter-constellation__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.zy-chapter-constellation__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--zy-star-core);
  text-shadow:
    0 0 10px rgba(170, 205, 255, 0.42),
    0 0 22px rgba(170, 205, 255, 0.2);
}

.zy-chapter-constellation__star::before {
  content: "✦";
  font-size: 1.14rem;
  line-height: 1;
}

.zy-chapter-constellation__number {
  position: absolute;
  top: calc(100% - 0.12rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(230, 235, 247, 0.55);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__link {
  --zy-star-core: var(--zy-patreon-amber);
  --zy-star-halo: var(--zy-patreon-amber-soft);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__star {
  text-shadow:
    0 0 12px rgba(255, 166, 76, 0.42),
    0 0 24px rgba(255, 166, 76, 0.18);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__number {
  color: rgba(255, 203, 150, 0.78);
}

.zy-chapter-constellation__node.is-current.is-locked .zy-chapter-constellation__link {
  background: radial-gradient(circle, rgba(255, 166, 76, 0.22), rgba(255, 166, 76, 0.06) 62%, transparent 74%);
  box-shadow:
    0 0 0 1px rgba(255, 166, 76, 0.16) inset,
    0 0 24px rgba(255, 166, 76, 0.14);
}

.zy-chapter-constellation__node.is-current.is-locked .zy-chapter-constellation__star {
  text-shadow:
    0 0 14px rgba(255, 166, 76, 0.72),
    0 0 30px rgba(255, 166, 76, 0.3),
    0 0 44px rgba(255, 166, 76, 0.18);
}

.zy-chapter-constellation__node.is-current.is-locked .zy-chapter-constellation__number {
  color: rgba(255, 223, 189, 0.96);
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__link {
  --zy-star-core: rgba(255, 228, 164, 1);
  --zy-star-halo: rgba(255, 214, 140, 0.34);
  background: radial-gradient(circle, rgba(255, 214, 140, 0.18), rgba(255, 214, 140, 0.04) 62%, transparent 74%);
  box-shadow:
    0 0 0 1px rgba(255, 214, 140, 0.12) inset,
    0 0 22px rgba(255, 214, 140, 0.12);
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__star {
  text-shadow:
    0 0 14px rgba(255, 214, 140, 0.68),
    0 0 30px rgba(255, 214, 140, 0.28),
    0 0 44px rgba(255, 214, 140, 0.18);
  animation: zy-constellation-pulse 2.7s ease-in-out infinite;
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__number {
  color: rgba(255, 232, 185, 0.9);
}

.zy-chapter-constellation[data-density="compact"] .zy-chapter-constellation__number {
  font-size: 0.54rem;
}

.zy-chapter-constellation[data-density="tight"] .zy-chapter-constellation__number {
  font-size: 0.5rem;
  letter-spacing: 0.05em;
}

.zy-chapter-constellation[data-density="tight"] .zy-chapter-constellation__segment {
  stroke-dasharray: 3 4;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .main.chapter .zy-extra-nav-button {
    min-width: 0;
    flex: 1 1 auto;
  }

  .main.chapter .zy-chapter-footer-whisper {
    padding-inline: 0.62rem;
  }

  .zy-chapter-constellation {
    --zy-constellation-star-size: 2rem;
    --zy-constellation-node-gap: 0.62rem;
    margin-top: 0;
    padding-inline: 0.72rem;
  }

  .zy-chapter-constellation__header {
    gap: 0.75rem;
    align-items: baseline;
  }

  .zy-chapter-constellation__readout {
    margin-bottom: 0.4rem;
    padding-inline: 0.56rem;
    font-size: 0.7rem;
  }

  .zy-chapter-constellation__facts {
    gap: 0.34rem;
  }

  .zy-chapter-constellation__fact {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .zy-chapter-constellation__track {
    padding-inline: 0.7rem;
  }

  .zy-chapter-constellation__tooltip {
    max-width: min(14rem, calc(100% - 0.75rem));
    font-size: 0.72rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .zy-chapter-constellation__readout {
    color: rgba(255, 244, 220, 0.96);
    border-color: rgba(255, 214, 140, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  }

  .zy-chapter-constellation__tooltip {
    display: none;
  }
}

@keyframes zy-constellation-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zy-chapter-constellation__link,
  .zy-chapter-constellation__tooltip {
    transition: none;
  }

  .zy-chapter-constellation__node.is-current .zy-chapter-constellation__star {
    animation: none;
  }
}


.main.chapter .chapter__actions--top + header.chapter__headline.layout-links > .zy-chapter-constellation {
  margin-top: 0.05rem;
}


/* v1.33.17 audited utility-lane realignment.
 * Purpose:
 * - move extra utility controls out of the parent footer action rail
 * - keep the reading footer readable on long labels and narrow screens
 * - let the parent chapter footer keep its own responsibilities
 */

.main.chapter .zy-chapter-utility-lane {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.2rem;
}

.main.chapter .zy-chapter-utility-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.main.chapter .zy-chapter-utility-actions .zy-extra-nav-button {
  min-width: 8.75rem;
  max-width: 100%;
}

.main.chapter .zy-extra-nav-button__label {
  display: inline-block;
  min-width: 0;
  white-space: normal;
  text-wrap: balance;
}

.main.chapter .zy-chapter-utility-lane + .chapter__footer.chapter__actions--bottom {
  margin-top: 1.15rem;
}

@media (max-width: 720px) {
  .main.chapter .zy-chapter-utility-lane {
    gap: 0.62rem;
  }

  .main.chapter .zy-chapter-utility-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .main.chapter .zy-chapter-utility-actions .zy-extra-nav-button {
    width: 100%;
    min-width: 0;
  }
}




