/* ======================================================
   LAYOUTS
   Header, footer, sidebar, containers
   ====================================================== */

/* ======================
   CONTENT CONTAINERS
   ====================== */

.ct-container,
.content-area {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

.ct-container-narrow {
  max-width: var(--content-narrow);
}

/* ======================
   HEADER
   ====================== */

.site-header {
  background-color: var(--veil-night);
  box-shadow: none;
}

.site-header .ct-header {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* ======================
   FOOTER
   ====================== */

.site-footer {
  background-color: var(--veil-obsidian);
  box-shadow: none;
}

.site-footer .ct-footer {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* ======================
   SIDEBAR
   ====================== */

.sidebar {
  background: rgba(255,255,255,.02);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.sidebar .widget {
  margin-bottom: 2rem;
}

/* ======================
   PAGE SECTIONS
   ====================== */

section {
  margin-bottom: 3rem;
}

/* ======================
   GRID HELPERS
   ====================== */

.veil-grid {
  display: grid;
  gap: 2rem;
}

.veil-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.veil-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* =====================================
   VEIL SECTION BACKGROUNDS
   ===================================== */

.lv-home-hero,
.lv-home-books,
.lv-events,
.lv-behind-scenes,
.lv-section,
.lv-ink-wrap {
  background-color: transparent;
}
.veil-dark {
  background:
    radial-gradient(
      120% 140% at 50% -10%,
      rgba(70,50,120,.55),
      rgba(20,15,40,.85)
    );
}
/* ===========================
   FIX VERTICAL MENU / HEADERS
=========================== */

/* Main nav links */
#header-menu-1 .ct-menu-link {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  line-height: 1.2 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  max-width: none !important;
}

/* Prevent multi-line wrapping inside menu */
#header-menu-1 li {
  max-width: none !important;
}

/* Dropdown items */
#header-menu-1 .sub-menu .ct-menu-link {
  white-space: nowrap !important;
}

/* Headings site-wide (safety net) */
h1, h2, h3, h4, h5, h6 {
  word-break: normal;
  overflow-wrap: normal;
}
/* ===============================
   Fix Header & Footer Menus
   =============================== */

/* Header navigation */
.site-header nav,
.site-header .main-navigation,
.site-header ul,
.site-header li,
.site-header a {
  writing-mode: horizontal-tb;
  text-orientation: initial;
  transform: none;
}

/* Footer navigation */
.site-footer nav,
.site-footer ul,
.site-footer li,
.site-footer a {
  writing-mode: horizontal-tb;
  text-orientation: initial;
  transform: none;
}
/* =================================
   Global Heading Alignment (Veil)
   ================================= */

h1,
h2,
h3,
.lv-h1,
.lv-h2,
.lv-h3 {
  text-align: center;
}
/* =========================
   FORCE HEADER & FOOTER MENUS HORIZONTAL
   ========================= */

/* Main header menu */
.ct-header .ct-menu > ul,
.ct-header .ct-menu ul.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}

/* Footer menu */
.ct-footer .ct-menu > ul,
.ct-footer .ct-menu ul.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Prevent vertical stacking from rogue rules */
.ct-menu li {
    display: inline-flex;
}

/* Desktop only safeguard */
@media (min-width: 1000px) {
    .ct-header .ct-menu {
        flex-direction: row !important;
    }
}
/* GLOBAL HEADER NAV FIX — FORCE HORIZONTAL MENUS */
header nav ul,
header .menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
}
/* =====================================================
   VEIL LEGAL — MODERN CENTERING
===================================================== */

.veil-legal {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.veil-legal-inner {
  width: 100%;
  max-width: 900px;
}

/* Optional: center only headings */
.veil-legal h2 {
  text-align: center;
}

.veil-legal-footer {
  margin-top: 2rem;
}
/* =====================================================
   VEIL LEGAL — GRID LAYOUT
===================================================== */

.veil-legal {
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
}

.veil-legal-inner {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.75rem;
  width: 100%;
  max-width: 900px;
}

/* Headline centering only */
.veil-legal h2 {
  text-align: center;
}
/* =====================================================
   VEIL LEGAL — STICKY OPEN SUMMARY
===================================================== */

.veil-legal details[open] summary {
  position: sticky;
  top: 1rem;
  z-index: 5;
  background: inherit;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Optional: subtle separator when sticky */
.veil-legal details[open] summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0)
  );
  pointer-events: none;
}
/* =====================================================
   VEIL ACCORDION — SIGILS
===================================================== */

.veil-legal summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

/* Sigil icon */
.veil-legal summary::before {
  content: attr(data-sigil);
  font-size: 1.25rem;
  opacity: 0.85;
}

/* Chevron stays at the end */
.veil-legal summary::after {
  margin-left: auto;
}

/* =====================================================
   ANIMATION PREP
===================================================== */

.veil-legal details > div {
  overflow: hidden;
}
/* =====================================================
   VEIL LEGAL — TITLE COLOR + CENTERING
===================================================== */

/* Center all text content */
.veil-legal,
.veil-legal-inner {
  text-align: center;
}

/* Keep accordion content readable */
.veil-legal details > div {
  text-align: left;
}

/* 🔴 Restore Veil-Crimson dropdown titles */
.veil-legal summary {
  color: #ca3a2e; /* Veil-Crimson */
  font-weight: 600;
}

/* Slight emphasis on hover */
.veil-legal summary:hover {
  color: #e14a3e;
}

/* Headings inside sections stay centered */
.veil-legal h2,
.veil-legal h4 {
  text-align: center;
}

/* Lists stay readable */
.veil-legal ul {
  text-align: left;
}
/* =====================================================
   VEIL LEGAL — FORCE CRIMSON SUMMARY TITLES
===================================================== */

.veil-legal details > summary {
  color: #ca3a2e !important; /* Veil-Crimson */
}

/* Hover / focus state */
.veil-legal details > summary:hover,
.veil-legal details > summary:focus {
  color: #e14a3e !important;
}

/* Keep crimson when open */
.veil-legal details[open] > summary {
  color: #ca3a2e !important;
}
/* =====================================================
   GLOBAL FIX — RESTORE BLOCKSY NAV MENUS (ALL PAGES)
===================================================== */

/* Header navigation */
.ct-header nav ul,
.ct-header-menu nav ul,
.ct-header [class*="menu"] ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  list-style: none !important;
}

/* Footer navigation */
.ct-footer nav ul,
.ct-footer [class*="menu"] ul {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  list-style: none !important;
}

/* Menu items */
.ct-header nav li,
.ct-footer nav li {
  display: inline-flex !important;
}

/* Links */
.ct-header nav a,
.ct-footer nav a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
}
.blog .entry-content p,
.single-post .entry-content p {
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.18rem);
  line-height: 1.75;
}
/* ==========================================
   CENTER POST EXCERPTS
========================================== */
.entry-excerpt {

  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.single-post .ct-breadcrumbs {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Page Hero Images
========================================== */
.page-about .veil-about-hero {
  background-image:
    linear-gradient(rgba(5,10,20,.45), rgba(5,10,20,.85)),
    url('/wp-content/uploads/about-veil-hero.png');
}

.page-books .veil-about-hero {
  background-image:
    linear-gradient(rgba(5,10,20,.45), rgba(5,10,20,.85)),
    url('/wp-content/uploads/books-veil-hero-1.png');
}

.page-blog .veil-about-hero {
  background-image:
    linear-gradient(rgba(5,10,20,.45), rgba(5,10,20,.85)),
    url('/wp-content/uploads/blog-veil-hero-1.png');
}

.page-contact .veil-about-hero {
  background-image:
    linear-gradient(rgba(5,10,20,.45), rgba(5,10,20,.85)),
    url('/wp-content/uploads/contact-veil-hero.png');
}
/* Fix unreadable WordPress Customizer */

.wp-admin,
.wp-admin body,
.customize-controls,
.customize-controls * {
  color: #111 !important;
  opacity: 1 !important;
}

.customize-controls {
  background: #fff !important;
}
.veil-legal-hero {
  background-image:
    linear-gradient(rgba(3, 8, 18, 0.72), rgba(3, 8, 18, 0.9)),
    url("/wp-content/uploads/legalhub-veil-hero-1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.legal-hub-hero {
  background-image:
    linear-gradient(rgba(4, 8, 18, 0.58), rgba(4, 8, 18, 0.88)),
    url("/wp-content/uploads/legalhub-veil-hero-1.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
body.page-template-page-legal-hub .veil-home-hero {
  background:
    linear-gradient(rgba(4, 8, 18, 0.55), rgba(4, 8, 18, 0.88)),
    url("/wp-content/uploads/legalhub-veil-hero-1.png") center center / cover no-repeat;
}