/*
  Velvet Crown Tales - Fictioneer brand pass
  Paste into WordPress Admin -> Appearance -> Customize -> Additional CSS.
  After publishing, purge LiteSpeed Cache and Cloudflare cache.
*/

:root {
  --vct-purple: #2d1b4e;
  --vct-purple-900: #160d27;
  --vct-purple-800: #21133a;
  --vct-gold: #d4af37;
  --vct-gold-soft: #ead58a;
  --vct-cream: #f5efe0;
  --vct-bg-cream: #f6f2ef;
  --vct-bg-cream-card: #ffffff;
  --vct-text-cream: #333333;
  --vct-pink: #e8b4b8;
  --vct-oxblood: #8b1e3f;
  --vct-purple-soft: #3e2a6b;
  --vct-ink: #120c1d;
  --ff-base: Inter, "Open Sans", var(--ff-system);
  --ff-note: "Crimson Text", Georgia, serif;
  --ff-heading: "Cormorant Garamond", Georgia, serif;
  --ff-site-title: "Cormorant Garamond", Georgia, serif;
  --ff-story-title: "Cormorant Garamond", Georgia, serif;
  --ff-chapter-title: "Crimson Text", Georgia, serif;
  --body-bg-color: var(--vct-purple-900);
  --site-bg-color: var(--vct-purple-900);
  --page-bg-color: #21163a;
  --card-bg-color: #2a1a49;
  --card-footer-bg-color: #1a102d;
  --navigation-background: rgba(22, 13, 39, 0.96);
  --navigation-background-start-opacity: 1;
  --navigation-color: var(--vct-cream);
  --navigation-color-hover: var(--vct-gold-soft);
  --navigation-item-background-hover: rgba(212, 175, 55, 0.12);
  --navigation-submenu-background: #21133a;
  --inline-link-color: var(--vct-gold-soft);
  --inline-link-color-hover: #fff2bc;
  --inline-link-color-visited: var(--vct-pink);
  --layout-border-radius-large: 8px;
  --layout-border-radius-small: 6px;
  --layout-lineart-color: rgba(212, 175, 55, 0.26);
  --button-primary-background: var(--vct-gold);
  --button-primary-background-hover: var(--vct-gold-soft);
  --button-primary-color: #1a102d;
  --button-primary-color-hover: #1a102d;
  --button-secondary-border: 1px solid rgba(212, 175, 55, 0.45);
  --button-secondary-color: var(--vct-cream);
  --button-secondary-color-hover: var(--vct-gold-soft);
  --button-secondary-background-hover: rgba(212, 175, 55, 0.1);
  --font-letter-spacing-base: 0;
}

html.fictioneer-theme,
body {
  background:
    linear-gradient(180deg, rgba(22, 13, 39, 0.98), rgba(18, 12, 29, 1));
}

body {
  color: var(--vct-cream);
  letter-spacing: 0;
}

a,
button,
input,
textarea,
select {
  letter-spacing: 0;
}

.main-navigation {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.main-navigation__wrapper {
  min-height: 52px;
}

.main-navigation__left a,
.main-navigation__right a,
.main-navigation button,
.mobile-menu-button {
  color: var(--vct-cream);
}

.main-navigation__left a:hover,
.main-navigation__right a:hover,
.main-navigation button:hover,
.mobile-menu-button:hover {
  color: var(--vct-gold-soft);
}

.main-navigation__left:empty::before {
  content: "Velvet Crown Tales";
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--vct-gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.main-navigation__left:empty::after {
  content: "Where forbidden tales are told.";
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-left: 14px;
  color: rgba(245, 239, 224, 0.72);
  font-size: 0.82rem;
}

.header-background {
  background:
    linear-gradient(180deg, rgba(45, 27, 78, 0.86), rgba(22, 13, 39, 0.96)),
    var(--vct-purple);
}

.header-background._no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.16), transparent 24%, transparent 76%, rgba(139, 30, 63, 0.18)),
    repeating-linear-gradient(135deg, rgba(245, 239, 224, 0.035) 0 1px, transparent 1px 18px);
}

.singular__title,
.site-title,
.header__title {
  color: var(--vct-gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.singular__content {
  color: rgba(245, 239, 224, 0.9);
  font-family: Inter, "Open Sans", var(--ff-system);
  font-size: 1rem;
}

.singular__content h1,
.singular__content h2,
.singular__content h3 {
  color: var(--vct-gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
}

.home .header,
.home .singular__header {
  content-visibility: hidden;
  display: none;
}

.home .main {
  margin-top: 0;
}

.wp-block-button__link,
.button,
button[type="submit"] {
  border-radius: 6px;
  min-height: 42px;
  padding: 0.85rem 1rem;
  font-family: Inter, "Open Sans", var(--ff-system);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--vct-gold);
  color: #1a102d;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--vct-gold-soft);
  color: #1a102d;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--vct-cream);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--vct-gold-soft);
  color: var(--vct-gold-soft);
}

.vct-home {
  margin: -1rem -1rem 0;
}

.vct-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  min-height: 58vh;
  padding: 4.25rem 1.25rem 3rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(45, 27, 78, 0.86), rgba(18, 12, 29, 0.98)),
    repeating-linear-gradient(135deg, rgba(245, 239, 224, 0.045) 0 1px, transparent 1px 20px),
    #2d1b4e;
}

.vct-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 6px;
}

.vct-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.vct-hero__art {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  background: #160d27;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.vct-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 13, 39, 0), rgba(22, 13, 39, 0.22)),
    linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent 30%, rgba(139, 30, 63, 0.18));
}

.vct-hero__art picture,
.vct-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
}

.vct-hero__art img {
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(1.04) contrast(1.02);
}

.vct-kicker {
  margin: 0 0 0.8rem;
  color: var(--vct-pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vct-hero h1 {
  margin: 0;
  color: var(--vct-gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

.vct-hero__copy {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: rgba(245, 239, 224, 0.88);
  font-family: "Crimson Text", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55;
}

.vct-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.vct-button,
.vct-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--vct-gold);
  color: #1a102d;
  font-family: Inter, "Open Sans", var(--ff-system);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.vct-button:hover {
  background: var(--vct-gold-soft);
  color: #1a102d;
  text-decoration: none;
}

.vct-button--ghost,
.vct-button--ghost:visited {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(18, 12, 29, 0.36);
  color: var(--vct-cream);
}

.vct-button--ghost:hover {
  border-color: var(--vct-gold-soft);
  background: rgba(212, 175, 55, 0.1);
  color: var(--vct-gold-soft);
}

.vct-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.vct-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border: 1px solid rgba(245, 239, 224, 0.16);
  border-radius: 999px;
  background: rgba(22, 13, 39, 0.56);
  color: rgba(245, 239, 224, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
}

.vct-badge--heat {
  border-color: rgba(139, 30, 63, 0.75);
  background: rgba(139, 30, 63, 0.36);
  color: #ffd8df;
}

.vct-section {
  margin-top: 2.5rem;
}

.vct-section h2 {
  margin-bottom: 0.9rem;
  color: var(--vct-gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.1;
}

.vct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.vct-card {
  min-height: 146px;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: rgba(22, 13, 39, 0.42);
}

.vct-card h3 {
  margin: 0 0 0.45rem;
  color: var(--vct-cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.15;
}

.vct-card p {
  margin: 0;
  color: rgba(245, 239, 224, 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
}

.vct-notice {
  padding: 1rem;
  border-left: 3px solid var(--vct-oxblood);
  border-radius: 6px;
  background: rgba(139, 30, 63, 0.16);
  color: rgba(245, 239, 224, 0.86);
}

.footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  background: #160d27;
}

.footer__wrapper {
  color: rgba(245, 239, 224, 0.72);
}

.footer__wrapper::before {
  content: "Velvet Crown Tales contains adult literary content for readers 18+. Original works and licensed translations only.";
  display: block;
  max-width: 720px;
  margin: 0 auto 1rem;
  color: rgba(245, 239, 224, 0.78);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.footer__wrapper:has(.vct-footer-block)::before {
  content: none;
  display: none;
}

.footer a {
  color: var(--vct-gold-soft);
}

.footer a:hover {
  color: var(--vct-cream);
}

.vct-footer-block {
  max-width: 760px;
  margin: 0 auto 1rem;
  color: rgba(245, 239, 224, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.vct-footer-block nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.vct-footer-block a {
  color: var(--vct-gold-soft);
  text-decoration: none;
}

.vct-footer-block a:hover {
  color: var(--vct-cream);
  text-decoration: underline;
}

pre.wp-block-preformatted {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 8px;
  background: rgba(18, 12, 29, 0.32);
  color: rgba(245, 239, 224, 0.84);
  font-family: Inter, "Open Sans", var(--ff-system) !important;
  font-size: 0.92rem;
  line-height: 1.7;
}

:root {
  --ag-form-background: rgba(22, 13, 39, 0.96) !important;
  --ag-text-color: #f5efe0 !important;
  --ag-background-color: #160d27 !important;
  --ag-blur: 2px !important;
}

.age-gate__wrapper,
.age-gate__background-color {
  background:
    linear-gradient(180deg, rgba(45, 27, 78, 0.96), rgba(18, 12, 29, 1)),
    #160d27 !important;
}

.age-gate {
  width: min(92vw, 480px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.age-gate__form {
  padding: 1.5rem;
  background: rgba(22, 13, 39, 0.98) !important;
  color: var(--vct-cream) !important;
}

.age-gate__heading-title {
  color: var(--vct-gold-soft) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  font-style: italic;
  line-height: 1.05;
}

.age-gate__heading-title::after {
  content: "You must be 18 or older to enter.";
  display: block;
  margin-top: 0.65rem;
  color: rgba(245, 239, 224, 0.78);
  font-family: Inter, "Open Sans", var(--ff-system);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}

.age-gate__subheadline:empty::before {
  content: "This site contains explicit adult literary fiction. Enter your date of birth to continue.";
  display: block;
  margin: 0.7rem 0 1rem;
  color: rgba(245, 239, 224, 0.78);
  font-size: 0.92rem;
  line-height: 1.5;
}

.age-gate__form-elements {
  gap: 0.5rem;
}

.age-gate__label {
  color: rgba(245, 239, 224, 0.76) !important;
  font-size: 0.75rem;
  font-weight: 700;
}

.age-gate__input {
  min-height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 6px !important;
  background: rgba(245, 239, 224, 0.08) !important;
  color: var(--vct-cream) !important;
  font-size: 1rem !important;
}

.age-gate__button {
  width: 100%;
  min-height: 46px;
  border-radius: 6px !important;
  background: var(--vct-gold) !important;
  color: #1a102d !important;
  font-weight: 800;
}

.age-gate__button:hover {
  background: var(--vct-gold-soft) !important;
}

.age-gate__errors {
  color: #ffd8df;
}

.chapter__content,
.chapter-formatting {
  --paragraph-spacing: 1.45em;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.78;
}

.chapter__title {
  color: var(--vct-gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
}

/* P0-1: content warnings must read differently from genre and trope tags. */
.taxonomy-fcn_content_warning a,
.fcn-tag-warning,
.tag-pill._taxonomy-content_warning,
.tag-pill._taxonomy-fcn_content_warning,
a[rel="tag"][href*="/content-warning/"],
a[href*="/content-warning/"] {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  min-height: 24px;
  padding: 3px 10px !important;
  border: 1px solid #6e1832 !important;
  border-radius: 3px !important;
  background: var(--vct-oxblood, #8b1e3f) !important;
  color: var(--vct-cream, #f5efe0) !important;
  font-family: var(--vct-font-ui, Inter, "Open Sans", var(--ff-system));
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-decoration: none !important;
  text-transform: uppercase;
}

.taxonomy-fcn_content_warning a::before,
.fcn-tag-warning::before,
.tag-pill._taxonomy-content_warning::before,
.tag-pill._taxonomy-fcn_content_warning::before,
a[rel="tag"][href*="/content-warning/"]::before,
a[href*="/content-warning/"]::before {
  content: "! ";
  font-weight: 900;
}

.taxonomy-fcn_content_warning a:hover,
.fcn-tag-warning:hover,
.tag-pill._taxonomy-content_warning:hover,
.tag-pill._taxonomy-fcn_content_warning:hover,
a[rel="tag"][href*="/content-warning/"]:hover,
a[href*="/content-warning/"]:hover {
  border-color: #a3294d !important;
  background: #a3294d !important;
  color: #fff7e8 !important;
}

/* P0-2: story status badge on covers. */
.card._story {
  position: relative;
}

.card._story .card__image {
  aspect-ratio: 2 / 3;
}

.card._story .card__image[data-vct-status]::after {
  content: attr(data-vct-status-label);
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 4px 9px;
  border-radius: 3px;
  color: #fff;
  font-family: var(--vct-font-ui, Inter, "Open Sans", var(--ff-system));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.card._story .card__image[data-vct-status="ongoing"]::after {
  background: #2e7d32;
}

.card._story .card__image[data-vct-status="hiatus"]::after {
  background: #ed6c02;
}

.card._story .card__image[data-vct-status="complete"]::after,
.card._story .card__image[data-vct-status="completed"]::after {
  background: #1565c0;
}

.card._story .card__image[data-vct-status="oneshot"]::after {
  background: #6a1b9a;
}

.card._story .card__image[data-vct-status="canceled"]::after,
.card._story .card__image[data-vct-status="cancelled"]::after,
.card._story .card__image[data-vct-status="dropped"]::after {
  background: #555;
  opacity: 0.88;
}

/* P0-5: premium story header with blurred cover art behind the identity. */
body.single-fcn_story .story__header,
body.singular-fcn_story .story__header {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(150px, 220px) minmax(0, 620px);
  grid-template-areas:
    "thumb identity"
    "tax tax";
  place-content: center;
  align-items: center;
  gap: clamp(1.4rem, 5vw, 3.25rem);
  min-height: clamp(360px, 48vh, 520px);
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}

body.single-fcn_story .story__header::before,
body.singular-fcn_story .story__header::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-image: var(--vct-story-cover-url, none);
  background-position: center;
  background-size: cover;
  filter: blur(58px) brightness(0.46) saturate(1.18);
  transform: scale(1.14);
}

body.single-fcn_story .story__header::after,
body.singular-fcn_story .story__header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 34%, rgba(212, 175, 55, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(45, 27, 78, 0.42), rgba(11, 7, 30, 0.88));
}

body.single-fcn_story .story__header > *,
body.singular-fcn_story .story__header > * {
  position: relative;
  z-index: 1;
}

body.single-fcn_story .story__thumbnail,
body.singular-fcn_story .story__thumbnail {
  grid-area: thumb;
  justify-self: center;
  align-self: center;
  width: min(100%, 220px);
  max-width: 220px;
  height: min(330px, 70vw) !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.42));
}

body.single-fcn_story .story__thumbnail a,
body.singular-fcn_story .story__thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden;
  border-radius: 6px;
}

body.single-fcn_story .story__thumbnail img,
body.single-fcn_story .story__thumbnail-image,
body.singular-fcn_story .story__thumbnail img {
  display: block;
  width: 100%;
  height: min(330px, 70vw) !important;
  object-fit: cover !important;
  border-radius: 6px;
}

body.singular-fcn_story .story__thumbnail-image {
  display: block;
  width: 100%;
  height: min(330px, 70vw) !important;
  object-fit: cover !important;
  border-radius: 6px;
}

body.single-fcn_story .story__identity,
body.singular-fcn_story .story__identity {
  grid-area: identity;
  align-self: center;
  justify-self: start;
  max-width: 620px;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

body.single-fcn_story .story__identity-title,
body.singular-fcn_story .story__identity-title {
  max-width: 18ch;
  color: var(--vct-gold-soft);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.55);
}

body.single-fcn_story .story__taxonomies,
body.singular-fcn_story .story__taxonomies {
  grid-area: tax;
  justify-content: center;
}

body.single-fcn_story .story__taxonomies-space,
body.singular-fcn_story .story__taxonomies-space {
  content-visibility: hidden;
  display: none;
}

/* P0-6: warmer Fictioneer light reader mode. */
:root[data-mode="light"] {
  --body-bg-color: var(--vct-bg-cream);
  --site-bg-color: var(--vct-bg-cream);
  --page-bg-color: var(--vct-bg-cream);
  --card-bg-color: var(--vct-bg-cream-card);
  --vct-reader-surface: var(--vct-bg-cream-card);
  --vct-reader-text: var(--vct-text-cream);
}

:root[data-mode="light"] body,
body.fcn-light-cream,
body[data-theme="cream"] {
  background: var(--vct-bg-cream);
  color: var(--vct-text-cream);
}

:root[data-mode="light"] body.single-fcn_chapter .main,
:root[data-mode="light"] body.single-fcn_chapter .chapter__content,
:root[data-mode="light"] body.single-fcn_chapter .chapter-formatting,
body.fcn-light-cream .chapter__content,
body.fcn-light-cream .chapter-formatting,
body[data-theme="cream"] .chapter__content,
body[data-theme="cream"] .chapter-formatting {
  background: var(--vct-bg-cream);
  color: var(--vct-text-cream);
}

:root[data-mode="light"] body.single-fcn_chapter .chapter-formatting {
  box-shadow: inset 0 0 0 1px rgba(45, 27, 78, 0.06);
}

/* P0-7: isolate author notes from narrative prose. */
body.single-fcn_chapter .chapter__global-note,
body.single-fcn_chapter .chapter__foreword,
body.single-fcn_chapter .chapter__afterword,
.chapter__content .author-note,
.chapter__content .note-block,
.chapter__content [data-author-note],
.chapter-formatting .author-note,
.chapter-formatting .note-block,
.chapter-formatting [data-author-note] {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--vct-gold, #d4af37);
  border-radius: 0 6px 6px 0;
  background: var(--vct-purple-soft, #3e2a6b);
  color: var(--vct-cream, #f5efe0);
  font-family: var(--vct-font-ui, Inter, "Open Sans", var(--ff-system));
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

body.single-fcn_chapter .chapter__global-note::before,
body.single-fcn_chapter .chapter__foreword::before,
body.single-fcn_chapter .chapter__afterword::before,
.chapter__content .author-note::before,
.chapter__content .note-block::before,
.chapter__content [data-author-note]::before,
.chapter-formatting .author-note::before,
.chapter-formatting .note-block::before,
.chapter-formatting [data-author-note]::before {
  content: "Author's Note";
  display: block;
  margin-bottom: 8px;
  color: var(--vct-gold, #d4af37);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

:root[data-mode="light"] body.single-fcn_chapter .chapter__global-note,
:root[data-mode="light"] body.single-fcn_chapter .chapter__foreword,
:root[data-mode="light"] body.single-fcn_chapter .chapter__afterword,
:root[data-mode="light"] .chapter__content .author-note,
:root[data-mode="light"] .chapter__content .note-block,
:root[data-mode="light"] .chapter__content [data-author-note],
body.fcn-light-cream .chapter__content .author-note,
body.fcn-light-cream .chapter__content .note-block,
body.fcn-light-cream .chapter__content [data-author-note],
body[data-theme="cream"] .chapter__content .author-note,
body[data-theme="cream"] .chapter__content .note-block,
body[data-theme="cream"] .chapter__content [data-author-note] {
  background: var(--vct-bg-sepia, #f4ecd8);
  color: var(--vct-text-cream, #333333);
}

@media only screen and (max-width: 767px) {
  .main-navigation__left:empty::before {
    font-size: 1.12rem;
  }

  .main-navigation__left:empty::after {
    content: none;
  }

  .singular__title {
    font-size: 2rem;
  }

  .vct-home {
    margin: -0.75rem -0.75rem 0;
  }

  .vct-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.25rem 1rem 1.6rem;
  }

  .vct-hero__art {
    width: min(100%, 320px);
    aspect-ratio: 4 / 5;
    justify-self: center;
    margin-top: 1.1rem;
  }

  .vct-hero h1 {
    font-size: 2.35rem;
  }

  .vct-hero__copy {
    font-size: 1.05rem;
  }

  .vct-section {
    margin-top: 1.8rem;
  }

  .vct-button {
    width: 100%;
  }

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

  .vct-card {
    min-height: auto;
  }

  pre.wp-block-preformatted {
    font-size: 0.86rem;
  }

  .age-gate__form {
    padding: 1.2rem;
  }

  .age-gate__heading-title {
    font-size: 1.85rem;
  }

  .chapter__content,
  .chapter-formatting {
    font-size: 1.12rem;
    line-height: 1.75;
  }

  /* P0-3: keep mobile story cards scannable. */
  .card._story .card__content,
  .card._story .card__link-list,
  .card._story .story-card__excerpt,
  .card._story .story-card__synopsis,
  .card._story .story-card__last-updated,
  .card._story .story-card__chapter-count,
  .card._story .story-card__word-count {
    content-visibility: hidden;
    display: none !important;
  }

  .card._story .card__footer-chapters,
  .card._story .card__footer-words,
  .card._story .card__footer-publish-date,
  .card._story .card__footer-modified-date,
  .card._story .card__footer-author,
  .card._story .card__footer-comments {
    content-visibility: hidden;
    display: none !important;
  }

  .card._story .card__footer {
    margin-top: 0.7rem;
  }

  .card._story .card__footer-box:not(._right)>span:not(:first-child) {
    margin-left: 0;
  }

  .card._story .card__tag-list {
    max-height: 3.2em;
    overflow: hidden;
  }

  .card._story .card__image[data-vct-status]::after {
    top: 6px;
    right: 6px;
    max-width: calc(100% - 12px);
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  /* P0-4: move chapter controls into the mobile thumb zone. */
  body.single-fcn_chapter .chapter__actions--top,
  body.singular-fcn_chapter .chapter__actions--top {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(45, 27, 78, 0.95);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
  }

  body.single-fcn_chapter .chapter__actions--top .chapter__actions-container,
  body.singular-fcn_chapter .chapter__actions--top .chapter__actions-container {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  body.single-fcn_chapter .chapter__actions--top .chapter__actions-left,
  body.singular-fcn_chapter .chapter__actions--top .chapter__actions-left {
    justify-content: flex-start;
  }

  body.single-fcn_chapter .chapter__actions--top .chapter__actions-center,
  body.singular-fcn_chapter .chapter__actions--top .chapter__actions-center {
    justify-content: center;
  }

  body.single-fcn_chapter .chapter__actions--top .chapter__actions-right,
  body.singular-fcn_chapter .chapter__actions--top .chapter__actions-right {
    justify-content: flex-end;
  }

  body.single-fcn_chapter .chapter__actions--top :is(button, .button),
  body.singular-fcn_chapter .chapter__actions--top :is(button, .button) {
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    border-color: rgba(212, 175, 55, 0.35);
    background: transparent;
    color: var(--vct-gold, #d4af37);
  }

  body.single-fcn_chapter .chapter__actions--top .button._navigation,
  body.singular-fcn_chapter .chapter__actions--top .button._navigation {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  body.single-fcn_chapter .chapter__actions--top .button._navigation::before,
  body.singular-fcn_chapter .chapter__actions--top .button._navigation::before {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    line-height: 1;
  }

  body.single-fcn_chapter .chapter__actions--top .button._navigation._prev::before,
  body.singular-fcn_chapter .chapter__actions--top .button._navigation._prev::before {
    content: "\2039";
  }

  body.single-fcn_chapter .chapter__actions--top .button._navigation._next::before,
  body.singular-fcn_chapter .chapter__actions--top .button._navigation._next::before {
    content: "\203a";
  }

  body.single-fcn_chapter .chapter__actions--top :is(button, .button):hover,
  body.singular-fcn_chapter .chapter__actions--top :is(button, .button):hover {
    border-color: var(--vct-gold-soft, #ead58a);
    background: rgba(212, 175, 55, 0.12);
    color: var(--vct-gold-soft, #ead58a);
  }

  body.single-fcn_chapter .chapter__actions--top .popup-menu,
  body.singular-fcn_chapter .chapter__actions--top .popup-menu {
    bottom: calc(100% + 8px);
    top: auto;
  }

  body.single-fcn_chapter .chapter__content,
  body.single-fcn_chapter .chapter-formatting,
  body.singular-fcn_chapter .chapter__content,
  body.singular-fcn_chapter .chapter-formatting {
    padding-bottom: 86px;
  }

  body.single-fcn_chapter .footer,
  body.singular-fcn_chapter .footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body.single-fcn_story .story__header,
  body.singular-fcn_story .story__header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "identity"
      "tax";
    min-height: auto;
    gap: 1.15rem;
    padding: 1.4rem 1rem 2rem;
    text-align: center;
  }

  body.single-fcn_story .story__thumbnail,
  body.singular-fcn_story .story__thumbnail {
    width: min(46vw, 170px);
    max-width: 170px;
    height: min(69vw, 255px) !important;
  }

  body.single-fcn_story .story__thumbnail img,
  body.single-fcn_story .story__thumbnail-image,
  body.singular-fcn_story .story__thumbnail img,
  body.singular-fcn_story .story__thumbnail-image {
    height: min(69vw, 255px) !important;
  }

  body.single-fcn_story .story__identity,
  body.singular-fcn_story .story__identity {
    justify-self: center;
  }

  body.single-fcn_story .story__identity-title,
  body.singular-fcn_story .story__identity-title {
    max-width: 12ch;
    font-size: 1.65rem;
    line-height: 1.08;
  }
}

/* ============================================================
   VCT — Codex P1 hint v1.0.5
   Paste this block into branding/vct-brand-ui-plugin/vct-fictioneer-brand.css
   (after existing v1.0.4 content, before any closing comment)

   Source: Claude Code Phase 13 free batch added 4 snippets (id=14-17)
   introducing new HTML classes. This CSS styles them with VCT brand palette.
   Plus retroactive styling for snippet id=11 (.vct-reading-time) and
   id=12 (.vct-resume-reading) which Phase 9-12 left unstyled.

   Mobile-first. Desktop overrides via @media (min-width: 768px).
   Brand tokens reused: --vct-purple, --vct-gold, --vct-oxblood, --vct-cream,
   --vct-cream-dim, --vct-gold-dim, --vct-font-heading, --vct-font-body, --vct-font-ui
   (Codex should already have these from v1.0.0-1.0.4.)
   ============================================================ */


/* ===== P1-1 — Reading List section (snippet id=14) =====
   HTML: <div class="vct-reading-lists">
           <section class="vct-list vct-list--reading">
             <h3>📖 Reading (N)</h3>
             <ul><li><a href="...">Story title</a></li>...</ul>
           </section>
           <section class="vct-list vct-list--plan">...</section>
           <section class="vct-list vct-list--completed">...</section>
           <section class="vct-list vct-list--on_hold">...</section>
         </div>
*/
.vct-reading-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 0;
}

.vct-list {
  background: rgba(45, 27, 78, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 20px;
}
.vct-list--reading   { border-left: 4px solid var(--vct-gold, #D4AF37); }
.vct-list--plan      { border-left: 4px solid var(--vct-pink, #E8B4B8); }
.vct-list--completed { border-left: 4px solid #2e7d32; }
.vct-list--on_hold   { border-left: 4px solid #ed6c02; }

.vct-list h3 {
  font-family: var(--vct-font-heading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  color: var(--vct-gold, #D4AF37);
  font-size: 1.4rem;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 8px;
}

.vct-list ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vct-list li a {
  display: block;
  color: var(--vct-cream, #F5EFE0);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--vct-font-body, 'Lora', Georgia, serif);
  font-size: 0.95rem;
  transition: background 200ms, color 200ms;
}

.vct-list li a:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--vct-gold, #D4AF37);
}

.vct-empty {
  color: rgba(245, 239, 224, 0.45);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}

@media (min-width: 768px) {
  .vct-reading-lists { grid-template-columns: 1fr 1fr; gap: 32px; }
}


/* ===== P1-2 — Patreon Premium Gate (snippet id=15) =====
   HTML: <div class="vct-premium-gate">
           <div class="vct-premium-teaser">First 80 words of explicit scene...</div>
           <div class="vct-premium-cta">
             <p class="vct-premium-label">🔒 Spicy scene locked</p>
             <p class="vct-premium-desc">Unlock on Patreon ($3+/month tier).</p>
             <a class="vct-cta vct-cta-primary" href="patreon-url">Unlock on Patreon</a>
           </div>
         </div>
*/
.vct-premium-gate {
  margin: 32px 0;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(45,27,78,0.5) 0%, rgba(139,30,63,0.18) 100%);
  border: 1px solid rgba(139, 30, 63, 0.4);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.vct-premium-teaser {
  font-family: var(--vct-font-body, 'Lora', Georgia, serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--vct-cream, #F5EFE0);
  margin-bottom: 24px;
  position: relative;
  max-height: 220px;
  overflow: hidden;
}

.vct-premium-teaser::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(45,27,78,0.95) 80%, var(--vct-purple, #2D1B4E) 100%);
  pointer-events: none;
}

.vct-premium-cta {
  text-align: center;
  padding: 16px 0 8px;
  position: relative;
  z-index: 2;
}

.vct-premium-label {
  font-family: var(--vct-font-ui, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vct-oxblood, #8B1E3F);
  margin: 0 0 8px;
}

.vct-premium-desc {
  font-family: var(--vct-font-heading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245, 239, 224, 0.75);
  margin: 0 0 20px;
  line-height: 1.4;
}

.vct-premium-gate--clean {
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(45,27,78,0.4) 0%, rgba(139,30,63,0.15) 100%);
}

@media (min-width: 768px) {
  .vct-premium-gate {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 40px;
  }
  .vct-premium-teaser { font-size: 1.15rem; max-height: 280px; }
}


/* ===== P1-3 — Post-chapter Recommendations (snippet id=16) =====
   HTML: <section class="vct-recommendations">
           <h3 class="vct-rec-heading">Forbidden tales you might also love</h3>
           <div class="vct-rec-grid">
             <a class="vct-rec-card" href="/story/...">
               <div class="vct-rec-cover-wrap">
                 <img class="vct-rec-cover" src="..."> OR <div class="vct-rec-cover-empty"></div>
               </div>
               <h4 class="vct-rec-title">Story Title</h4>
             </a> × 3
           </div>
         </section>
*/
.vct-recommendations {
  margin: 48px 0 32px;
  padding: 32px 0 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.vct-rec-heading {
  font-family: var(--vct-font-heading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  color: var(--vct-gold, #D4AF37);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 24px;
  text-align: center;
}

/* Mobile: Netflix-style horizontal scroll (per Inkitt audit pattern) */
.vct-rec-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}

.vct-rec-grid::-webkit-scrollbar { height: 6px; }
.vct-rec-grid::-webkit-scrollbar-track { background: transparent; }
.vct-rec-grid::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 3px; }

.vct-rec-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 200ms;
}

.vct-rec-card:hover { transform: translateY(-4px); }

.vct-rec-cover-wrap {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(62, 42, 107, 0.5);
  margin-bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.vct-rec-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.vct-rec-cover-empty {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}
.vct-rec-cover-empty::before { content: "📖"; }

.vct-rec-title {
  font-family: var(--vct-font-heading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  color: var(--vct-cream, #F5EFE0);
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .vct-rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 0;
  }
  .vct-rec-card { flex: none; }
  .vct-rec-card:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 12px 24px rgba(212, 175, 55, 0.2));
  }
  .vct-rec-cover-wrap { margin-bottom: 12px; }
  .vct-rec-title { font-size: 1.1rem; }
}


/* ===== P1-4 — Tri-state Filter Chips (snippet id=17) =====
   HTML: <div class="vct-filter-chips vct-filter-chips--heat_level">
           <span class="vct-chip-group" data-term="9">
             <a class="vct-chip vct-chip--include" href="?heat_level=9">+ Explicit</a>
             <a class="vct-chip vct-chip--exclude" href="?heat_level__not_in=9">− Explicit</a>
           </span> × N terms
         </div>
*/
.vct-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(45, 27, 78, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.vct-chip-group {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.vct-chip {
  padding: 6px 14px;
  font-family: var(--vct-font-ui, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 200ms;
  min-height: 32px;
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.vct-chip--include {
  flex: 1 1 auto;
  background: transparent;
  color: var(--vct-gold, #D4AF37);
}

.vct-chip--include:hover {
  background: var(--vct-gold, #D4AF37);
  color: var(--vct-purple-deep, #1A0F33);
}

.vct-chip--exclude {
  flex: 1 1 auto;
  background: transparent;
  color: var(--vct-oxblood, #8B1E3F);
  border-left: 1px solid rgba(212, 175, 55, 0.3);
}

.vct-chip--exclude:hover {
  background: var(--vct-oxblood, #8B1E3F);
  color: var(--vct-cream, #F5EFE0);
}

/* Active state — Codex may need PHP filter to add data-active-include/exclude attrs based on URL */
.vct-chip-group[data-active-include="true"] .vct-chip--include {
  background: var(--vct-gold, #D4AF37);
  color: var(--vct-purple-deep, #1A0F33);
  pointer-events: none;
}

.vct-chip-group[data-active-exclude="true"] .vct-chip--exclude {
  background: var(--vct-oxblood, #8B1E3F);
  color: var(--vct-cream, #F5EFE0);
  pointer-events: none;
}

@media (min-width: 768px) {
  .vct-filter-chips { padding: 16px; gap: 10px; }
  .vct-chip {
    padding: 8px 16px;
    font-size: 0.85rem;
    line-height: 1.2;
    overflow-wrap: normal;
    white-space: nowrap;
  }
}


/* ===== P1-5 — Reading Time chip (snippet id=11, retroactive) =====
   HTML: <span class="vct-reading-time" aria-label="Reading time">⏱ 4h 12m</span>
   Auto-injected on Fictioneer chapter header via fictioneer_chapter_header_meta hook
*/
.vct-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  color: var(--vct-gold, #D4AF37);
  font-family: var(--vct-font-ui, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}


/* ===== P1-6 — Resume Reading CTA (snippet id=12, retroactive) =====
   HTML: <a class="vct-cta vct-cta-primary vct-resume-reading" href="...">Resume — Chapter 7</a>
   Extends .vct-cta-primary (used by P1-2 premium gate).
   Adds a play-icon prefix + shimmer hover effect for "continue from where you left off" feel.
*/
.vct-resume-reading {
  position: relative;
  overflow: hidden;
}

.vct-resume-reading::before {
  content: "▶";
  margin-right: 8px;
  font-size: 0.8em;
  display: inline-block;
}

.vct-resume-reading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms;
  pointer-events: none;
}

.vct-resume-reading:hover::after {
  transform: translateX(100%);
}


/* ===== Shared .vct-cta base (used by P1-2, P1-6, and any future CTA) ===== */
.vct-cta {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-family: var(--vct-font-ui, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  line-height: 20px;
  transition: transform 150ms, box-shadow 150ms;
}

.vct-cta-primary {
  background: var(--vct-gold, #D4AF37);
  color: var(--vct-purple-deep, #1A0F33);
}

.vct-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.vct-cta-primary:active {
  transform: translateY(0);
}

.vct-cta-muted {
  background: transparent;
  color: rgba(245, 239, 224, 0.5);
  border: 1px solid rgba(245, 239, 224, 0.2);
  cursor: not-allowed;
}


/* ============================================================
   END VCT v1.0.5 hint
   Estimated added lines: ~250
   Estimated added gzipped weight: ~3KB
   ============================================================ */

/* ============================================================
   VCT — Codex P2 hint v1.0.6
   Append after v1.0.5 block in vct-fictioneer-brand.css

   New classes from Phase 14 (view counter + top stories ranking):
   - .vct-views (chip)
   - .vct-top-stories, .vct-top-story, .vct-rank, .vct-top-cover-wrap,
     .vct-top-cover, .vct-top-cover-empty, .vct-top-info, .vct-top-title

   Source: Claude Code Phase 14 snippets id=31 (view counter) + id=32 (top stories).
   ============================================================ */


/* ===== P2-1 — Views chip (auto-injected on chapter header) =====
   HTML: <span class="vct-views" aria-label="Total views">👁 1.2K</span>
*/
.vct-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(232, 180, 184, 0.1);
  border: 1px solid rgba(232, 180, 184, 0.3);
  border-radius: 999px;
  color: var(--vct-pink, #E8B4B8);
  font-family: var(--vct-font-ui, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: 8px;
}


/* ===== P2-2 — Top stories ranked list =====
   HTML: <ol class="vct-top-stories">
           <li class="vct-top-story" data-rank="1">
             <span class="vct-rank">#1</span>
             <div class="vct-top-cover-wrap"><img class="vct-top-cover" ...></div>
             <div class="vct-top-info">
               <a class="vct-top-title" href="...">Story Title</a>
               <span class="vct-views">👁 5.2K views</span>
             </div>
           </li> × N
         </ol>
*/
.vct-top-stories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: vct-rank;
}

.vct-top-story {
  display: grid;
  grid-template-columns: 40px 60px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: rgba(45, 27, 78, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  transition: transform 200ms, border-color 200ms;
}

.vct-top-story:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, 0.4);
}

.vct-rank {
  font-family: var(--vct-font-display, 'Cinzel', serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--vct-gold, #D4AF37);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Top 3 — extra emphasis */
.vct-top-story[data-rank="1"] .vct-rank { color: #FFD700; font-size: 1.7rem; }
.vct-top-story[data-rank="2"] .vct-rank { color: #C0C0C0; }
.vct-top-story[data-rank="3"] .vct-rank { color: #CD7F32; }

.vct-top-cover-wrap {
  aspect-ratio: 2 / 3;
  width: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(62, 42, 107, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.vct-top-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vct-top-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.3;
}
.vct-top-cover-empty::before { content: "📖"; }

.vct-top-info {
  min-width: 0; /* allow truncation */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vct-top-title {
  font-family: var(--vct-font-heading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  color: var(--vct-cream, #F5EFE0);
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vct-top-title:hover { color: var(--vct-gold, #D4AF37); }

.vct-top-info .vct-views {
  margin-left: 0;
  align-self: flex-start;
  font-size: 0.72rem;
}

@media (min-width: 768px) {
  .vct-top-story {
    grid-template-columns: 50px 80px 1fr;
    gap: 18px;
    padding: 14px;
  }
  .vct-top-cover-wrap { width: 80px; }
  .vct-top-title { font-size: 1.15rem; }
  .vct-rank { font-size: 1.75rem; }
  .vct-top-story[data-rank="1"] .vct-rank { font-size: 2rem; }
}


/* ============================================================
   END VCT v1.0.6 hint
   Estimated added: ~80 lines / ~1.5KB gzipped
   ============================================================ */

/* ============================================================
   VCT — Codex P2 hint v1.0.7
   Append after v1.0.6 block in vct-fictioneer-brand.css

   New: .vct-browse-taxonomy grid (powers /browse-genres /browse-tropes
   /browse-heat pages). Source: snippet id=33.
   ============================================================ */


/* ===== P2-3 — Browse taxonomy grid (.vct-browse-taxonomy) =====
   HTML: <div class="vct-browse-taxonomy" data-tax="fcn_genre">
           <a class="vct-browse-card" href="/genre/fae-romance/" data-count="3">
             <h3 class="vct-browse-name">Fae Romance</h3>
             <span class="vct-browse-count">3 stories</span>
             <p class="vct-browse-desc">(optional term description)</p>
           </a> × N
         </div>
*/
.vct-browse-taxonomy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

.vct-browse-card {
  display: block;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(45,27,78,0.7) 0%, rgba(62,42,107,0.4) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
  position: relative;
  overflow: hidden;
}

.vct-browse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}

.vct-browse-card:hover {
  transform: translateY(-2px);
  border-color: var(--vct-gold, #D4AF37);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.vct-browse-card:hover::before { opacity: 1; }

.vct-browse-name {
  font-family: var(--vct-font-heading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  color: var(--vct-gold, #D4AF37);
  font-size: 1.3rem;
  margin: 0 0 6px;
  line-height: 1.2;
}

.vct-browse-count {
  display: inline-block;
  font-family: var(--vct-font-ui, 'Inter', sans-serif);
  font-size: 0.78rem;
  color: var(--vct-cream-dim, rgba(245,239,224,0.6));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vct-browse-desc {
  font-family: var(--vct-font-body, 'Lora', Georgia, serif);
  font-size: 0.9rem;
  color: var(--vct-cream, #F5EFE0);
  margin: 4px 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* Empty state */
.vct-browse-card[data-count="0"] {
  opacity: 0.5;
  cursor: default;
}

.vct-browse-card[data-count="0"]:hover {
  transform: none;
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: none;
}

@media (min-width: 600px) {
  .vct-browse-taxonomy { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 992px) {
  .vct-browse-taxonomy { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .vct-browse-card { padding: 22px 24px; }
  .vct-browse-name { font-size: 1.5rem; }
}


/* ============================================================
   END VCT v1.0.7 hint
   ~50 lines / ~1KB gzipped
   ============================================================ */
