a {
  color: var(--veil-moonlight);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .15em;
}

a:hover {
  color: var(--veil-arcane);
  text-shadow: 0 0 6px var(--veil-glow-soft);
}
button,
.wp-block-button__link,
.ct-button {
  background: linear-gradient(
    135deg,
    var(--veil-arcane),
    var(--veil-crimson)
  );
  color: #fff;
  border-radius: 999px;
  box-shadow:
    0 8px 22px rgba(0,0,0,.45),
    0 0 18px var(--veil-glow-soft);
  transition: all .25s ease;
}

button:hover,
.wp-block-button__link:hover,
.ct-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0,0,0,.55),
    0 0 26px var(--veil-glow-hard);
}
.ct-header-menu > li > a {
  color: #e5e7eb;
  font-weight: 600;
  position: relative;
}

.ct-header-menu > li > a:hover {
  color: var(--veil-moonlight);
  text-shadow: 0 0 6px var(--veil-glow-soft);
}

/* Active item */
.ct-header-menu .current-menu-item > a {
  color: var(--veil-arcane);
  text-shadow: 0 0 10px var(--veil-glow-hard);
}
/* TEMP: readable body text on dark backgrounds */
.entry-content,
.ct-entry-content {
  color: #E6E4F2;
}
/* === Read More → Veil Button === */
.wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.15rem;

  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: #F5F3FF;
  background: linear-gradient(
    135deg,
    #4C1D95,
    #7C3AED
  );

  border-radius: 999px;
  text-decoration: none;

  box-shadow:
    0 6px 18px rgba(124,58,237,.45),
    inset 0 0 0 1px rgba(255,255,255,.12);

  transition: transform .2s ease, box-shadow .2s ease;
}

.wp-block-post-excerpt__more-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(167,139,250,.65),
    inset 0 0 0 1px rgba(255,255,255,.2);
}
.book-card-thumb img {
  width: 90px;           /* KEY CHANGE */
  max-width: 90px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.book-card:hover .book-card-thumb img {
  transform: scale(1.04);
  box-shadow: 0 12px 26px rgba(0,0,0,.55);
}

/* === Veil Tooltip System === */
.veil-term {
  position: relative;
  cursor: help;
  text-decoration: dotted underline rgba(200,170,255,.45);
  text-underline-offset: 0.25em;
}

/* Tooltip bubble */
.veil-term::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;

  background: rgba(20, 12, 35, 0.95);
  color: #EDEBFF;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;

  box-shadow:
    0 6px 18px rgba(0,0,0,.45),
    0 0 12px rgba(124,58,237,.35);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin: center;
}

/* Small arrow */
.veil-term::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 12, 35, 0.95);
  opacity: 0;
  transition: opacity .18s ease;
}
/* === Veil Tooltip System === */
.veil-term {
  position: relative;
  cursor: help;
  text-decoration: dotted underline rgba(200,170,255,.45);
  text-underline-offset: 0.25em;
}

/* Tooltip bubble */
.veil-term::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;

  background: rgba(20, 12, 35, 0.95);
  color: #EDEBFF;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;

  box-shadow:
    0 6px 18px rgba(0,0,0,.45),
    0 0 12px rgba(124,58,237,.35);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin: center;
}

/* Small arrow */
.veil-term::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 12, 35, 0.95);
  opacity: 0;
  transition: opacity .18s ease;
}

/* Reveal */
.veil-term:hover::after,
.veil-term:focus-visible::after,
.veil-term:hover::before,
.veil-term:focus-visible::before {
  opacity: 1;
}
body.veil-blood-moon .veil-term::after {
  background: rgba(40, 8, 12, 0.95);
  box-shadow:
    0 0 18px rgba(227,69,112,.65),
    0 0 32px rgba(227,69,112,.35);
}

/* ================================
   LEGAL SANCTUM – TEXT OVERRIDES
   ================================ */

.lv-legal-sanctum {
  color: var(--veil-text-main, #E6E4F2);
}

/* Headings */
.lv-legal-sanctum h1,
.lv-legal-sanctum h2,
.lv-legal-sanctum h3,
.lv-legal-sanctum h4,
.lv-legal-sanctum h5 {
  color: var(--veil-moonlight, #E9E7FF);
  text-shadow: 0 0 10px rgba(124,58,237,0.35);
}

/* Paragraphs */
.lv-legal-sanctum p,
.lv-legal-sanctum li,
.lv-legal-sanctum span {
  color: var(--veil-text-main, #E6E4F2);
}

/* Links */
.lv-legal-sanctum a {
  color: var(--veil-arcane, #A78BFA);
  text-decoration: none;
}

.lv-legal-sanctum a:hover {
  color: var(--veil-crimson, #E11D48);
  text-shadow: 0 0 6px rgba(225,29,72,0.5);
}
/* Legal cards – headings */
.lv-legal-sanctum
.elementor-widget-heading
.elementor-heading-title {
  color: #F5F7FF;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(124,58,237,0.35);
}

/* Legal cards – body text */
.lv-legal-sanctum
.elementor-widget-text-editor p {
  color: #EDEBFF;
}

/* Legal cards – links */
.lv-legal-sanctum
.elementor-widget-text-editor a {
  color: #B9A8FF;
  font-weight: 500;
  text-decoration: none;
}

.lv-legal-sanctum
.elementor-widget-text-editor a:hover {
  color: #E34570;
  text-shadow: 0 0 6px rgba(227,69,112,0.6);
}
.lv-legal-sanctum {
  --veil-text-main: #EDEBFF;
  --veil-heading-main: #F5F7FF;
}
/* ===============================
   LEGAL SANCTUM — FORCE TEXT COLOR
   =============================== */

/* Card titles (H3) */
.lv-legal-sanctum h3,
.lv-legal-sanctum .elementor-heading-title {
  color: #F8FAFF !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(124,58,237,0.35);
}

/* Card body text */
.lv-legal-sanctum p,
.lv-legal-sanctum .elementor-widget-text-editor {
  color: #EDEBFF !important;
}

/* Links inside cards */
.lv-legal-sanctum a {
  color: #B9A8FF !important;
  font-weight: 500;
  text-decoration: none;
}

.lv-legal-sanctum a:hover {
  color: #E34570 !important;
  text-shadow: 0 0 6px rgba(227,69,112,.6);
}
/* Popup base */
.veil-popup{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(10, 8, 18, .62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 99999;
}
.veil-popup.is-open{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Card */
.veil-popup__card{
  position: relative;
  width: min(680px, 94vw);
  border-radius: 18px;
  padding: 22px 20px 18px;
  background: radial-gradient(120% 150% at 50% 0%, rgba(38, 30, 64, .92), rgba(18, 14, 34, .94));
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  animation: veilFadeIn .35s ease both;
}
@keyframes veilFadeIn{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: none; opacity: 1; }
}

/* Watermark sigil */
.veil-sigil{
  position: absolute;
  inset: -40px auto auto -40px;
  width: 260px; height: 260px;
  opacity: .22;
  transform: rotate(-10deg);
  pointer-events: none;
  animation: sigilPulse 4.8s ease-in-out infinite;
}
@keyframes sigilPulse{
  0%, 100% { opacity: .20; filter: brightness(1); }
  50%      { opacity: .26; filter: brightness(1.12); }
}

.veil-popup__title{ margin: 0 0 8px; color: var(--veil-text, #EDEBFF); }
.veil-popup__text{ margin: 0 0 14px; color: rgba(237,235,255,.88); }

.veil-popup__actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 6px;
}
.veil-popup__dontshow{
  display:flex; gap:10px; align-items:center;
  margin-top: 14px;
  color: rgba(237,235,255,.80);
  font-size: .95rem;
}

/* Variant tokens */
.veil-popup[data-veil="moonlight"]{
  --sigil-stroke-1: #E9E7FF;    /* moonlight */
  --sigil-stroke-2: #A78BFA;    /* arcane violet */
  --sigil-fill:     #F4F2FF;
  --sigil-glow:     #BFA7FF;
}
.veil-popup[data-veil="bloodmoon"]{
  --sigil-stroke-1: #FFE6EF;    /* pale moon */
  --sigil-stroke-2: #E34570;    /* blood crimson */
  --sigil-fill:     #FFD6E1;
  --sigil-glow:     #E34570;
}

/* Optional: reduce motion */
@media (prefers-reduced-motion: reduce){
  .veil-popup, .veil-popup__card, .veil-sigil { animation: none !important; transition: none !important; }
}
body.veil-ascendant .veil-sigil { opacity: .28; }
body.veil-initiate  .veil-sigil { opacity: .12; }
.veil-sigil{
  position: absolute;
  top: -30px;
  left: -30px;
  width: 180px;
  height: 180px;
  opacity: .18;
  transform: rotate(-8deg);
  pointer-events: none;
}
.veil-popup[data-veil="bloodmoon"] .veil-sigil{
  width: 190px;
  height: 190px;
  opacity: .22;
  filter: drop-shadow(0 0 14px rgba(227,69,112,.45));
}
.veil-sigil{
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%) rotate(-12deg);
  opacity: .14;
}
/* Popup base */
.veil-popup{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(10, 8, 18, .62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 99999;
}
.veil-popup.is-open{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Card */
.veil-popup__card{
  position: relative;
  width: min(680px, 94vw);
  border-radius: 18px;
  padding: 22px 20px 18px;
  background: radial-gradient(120% 150% at 50% 0%, rgba(38, 30, 64, .92), rgba(18, 14, 34, .94));
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  animation: veilFadeIn .35s ease both;
}
@keyframes veilFadeIn{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: none; opacity: 1; }
}

/* Watermark sigil */
.veil-sigil{
  position: absolute;
  inset: -40px auto auto -40px;
  width: 260px; height: 260px;
  opacity: .22;
  transform: rotate(-10deg);
  pointer-events: none;
  animation: sigilPulse 4.8s ease-in-out infinite;
}
@keyframes sigilPulse{
  0%, 100% { opacity: .20; filter: brightness(1); }
  50%      { opacity: .26; filter: brightness(1.12); }
}

.veil-popup__title{ margin: 0 0 8px; color: var(--veil-text, #EDEBFF); }
.veil-popup__text{ margin: 0 0 14px; color: rgba(237,235,255,.88); }

.veil-popup__actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 6px;
}
.veil-popup__dontshow{
  display:flex; gap:10px; align-items:center;
  margin-top: 14px;
  color: rgba(237,235,255,.80);
  font-size: .95rem;
}

/* Variant tokens */
.veil-popup[data-veil="moonlight"]{
  --sigil-stroke-1: #E9E7FF;    /* moonlight */
  --sigil-stroke-2: #A78BFA;    /* arcane violet */
  --sigil-fill:     #F4F2FF;
  --sigil-glow:     #BFA7FF;
}
.veil-popup[data-veil="bloodmoon"]{
  --sigil-stroke-1: #FFE6EF;    /* pale moon */
  --sigil-stroke-2: #E34570;    /* blood crimson */
  --sigil-fill:     #FFD6E1;
  --sigil-glow:     #E34570;
}

/* Optional: reduce motion */
@media (prefers-reduced-motion: reduce){
  .veil-popup, .veil-popup__card, .veil-sigil { animation: none !important; transition: none !important; }
}
#veil-aligning {
  position: fixed;
  inset: 0;
  background: #050508;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
/* ==============================
   THE VEIL — CORE VARIABLES
================================ */
:root {
  --veil-bg: #0b0e13;
  --veil-bg-alt: #121622;
  --veil-panel: #151a2a;

  --veil-text: #e5e7eb;
  --veil-muted: #9ca3af;

  --veil-crimson: #8b1e2d;
  --veil-crimson-soft: rgba(139, 30, 45, 0.35);

  --veil-border: rgba(255,255,255,0.08);
  --veil-glow: rgba(139,30,45,0.45);
}


/* ==============================
   PAGE WRAPPER
================================ */
.veil-sanctum {
  background: radial-gradient(circle at top, #131827, var(--veil-bg));
  color: var(--veil-text);
  font-family: "Inter", system-ui, sans-serif;
}

.veil-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.veil-section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}


/* ==============================
   TYPOGRAPHY
================================ */
.veil-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  letter-spacing: 0.04em;
  margin: 0.25rem 0 0.75rem;
}

.veil-h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.veil-kicker,
.veil-subtle,
.veil-meta,
.veil-activity-time {
  font-size: 0.9rem;
  color: var(--veil-muted);
}

.veil-subtle {
  max-width: 48ch;
}

.veil-tier {
  margin: 0.5rem 0;
}

.veil-tier-value {
  color: var(--veil-text);
}


/* ==============================
   STATUS HEADER
================================ */
.veil-columns {
  display: grid;
  gap: 3rem;
}

.veil-columns-60-40 {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

@media (max-width: 900px) {
  .veil-columns-60-40 {
    grid-template-columns: 1fr;
  }
}

.veil-state {
  background: linear-gradient(145deg, var(--veil-panel), var(--veil-bg-alt));
  border: 1px solid var(--veil-border);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.veil-state-value {
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--veil-crimson);
}


/* ==============================
   ACTIVITY FEED
================================ */
.veil-activity-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.veil-activity-item {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--veil-crimson-soft);
  background: rgba(255,255,255,0.02);
}

.veil-activity-text {
  margin: 0.25rem 0 0.5rem;
}

.veil-activity-link {
  font-size: 0.9rem;
  color: var(--veil-text);
  text-decoration: none;
}

.veil-activity-link:hover {
  color: var(--veil-crimson);
}


/* ==============================
   ARCHIVE TILES
================================ */
.veil-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.veil-tile {
  display: block;
  padding: 2rem;
  border: 1px solid var(--veil-border);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--veil-panel), var(--veil-bg-alt));
  text-decoration: none;
  color: var(--veil-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.veil-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--veil-crimson-soft),
              0 10px 25px rgba(0,0,0,0.4);
}

.veil-tile-title {
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.veil-tile-desc {
  font-size: 0.9rem;
  color: var(--veil-muted);
}


/* ==============================
   ACTIVE THREADS
================================ */
.veil-threads-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.veil-thread {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--veil-border);
  background: rgba(255,255,255,0.025);
}

.veil-thread-state {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--veil-crimson);
}

.veil-thread-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--veil-text);
}

.veil-thread-link:hover {
  color: var(--veil-crimson);
}


/* ==============================
   EVENT LAYER (Blood Moon Ready)
================================ */
.veil-event {
  background: radial-gradient(circle at center,
    rgba(139,30,45,0.35),
    rgba(11,14,19,0.95)
  );
  border-top: 1px solid var(--veil-crimson-soft);
  border-bottom: 1px solid var(--veil-crimson-soft);
  text-align: center;
}

.veil-event-text {
  margin: 0.75rem auto 1.5rem;
  max-width: 40ch;
}



/* ==============================
   UTILITY FOOTER
================================ */
.veil-utility {
  padding-block: 3rem;
  border-top: 1px solid var(--veil-border);
}

.veil-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.veil-utility-links a {
  font-size: 0.85rem;
  color: var(--veil-muted);
  text-decoration: none;
}

.veil-utility-links a:hover {
  color: var(--veil-text);
}

.veil-fineprint {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--veil-muted);
}
/* ==============================
   VEIL UTILITY LINKS — PILL STYLE
================================ */
.veil-utility-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.veil-utility-links a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--veil-border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--veil-muted);
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.veil-utility-links a:hover,
.veil-utility-links a:focus {
  background: rgba(139, 30, 45, 0.15);
  border-color: var(--veil-crimson);
  color: var(--veil-text);
  box-shadow: 0 0 0 1px var(--veil-crimson-soft);
}
.veil-utility-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 12px var(--veil-glow);
  transition: opacity 0.25s ease;
}

.veil-utility-links a:hover::after {
  opacity: 0.6;
}

