/* === GLOBAL BASE STYLES FOR CORE SYSTEMS SCROLLS === */

/* === SATOSHI === */
@font-face {
  font-family: 'Satoshi';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-regular.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-regular.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-medium.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-medium.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-bold.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-bold.woff) format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Optional: if you add Satoshi Black, you can upgrade weights later
@font-face {
  font-family: 'Satoshi';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-black.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/satoshi-black.woff) format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
*/

/* === MANROPE === */
@font-face {
  font-family: 'Manrope';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/manrope-regular.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/manrope-regular.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/manrope-medium.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/manrope-medium.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/manrope-bold.woff2) format('woff2'),
       url(//thealignmentarchive.com/wp-content/themes/generatepress-child/fonts/manrope-bold.woff) format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base */
body { font-family: 'Manrope', sans-serif; font-weight: 400; }
h1, h2, h3 { font-family: 'Satoshi', sans-serif; font-weight: 700; }

html, body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background-color: #0d0d10 !important;
  color: #f2f2f2;
  line-height: 1.8;
  overflow-x: hidden; /* prevent accidental horizontal scroll */
}

/* === CONTAINER === */
.veil-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1  { animation-delay: 0.3s; }
.delay-2  { animation-delay: 0.6s; }
.delay-3  { animation-delay: 0.9s; }
.delay-4  { animation-delay: 1.2s; }
.delay-5  { animation-delay: 1.5s; }
.delay-6  { animation-delay: 1.8s; }
.delay-7  { animation-delay: 2.1s; }
.delay-8  { animation-delay: 2.4s; }
.delay-9  { animation-delay: 2.7s; }
.delay-10 { animation-delay: 3.0s; }
.delay-11 { animation-delay: 3.3s; }
.delay-12 { animation-delay: 3.6s; }
.delay-13 { animation-delay: 3.9s; }
.delay-14 { animation-delay: 4.2s; }
.delay-15 { animation-delay: 4.5s; }
.delay-16 { animation-delay: 4.8s; }
.delay-17 { animation-delay: 5.1s; }
.delay-18 { animation-delay: 5.4s; }
.delay-19 { animation-delay: 5.7s; }

/* Scroll-triggered system */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* === HEADERS === */
.veil-header {
  text-align: center;
  margin-bottom: 12px;
  padding: 0 20px 8px;
  overflow: visible;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.veil-header h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  background: linear-gradient(to right, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding-bottom: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.veil-header p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #cccccc;
  max-width: 90vw;
  margin: 0 auto 6px auto;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  padding: 0 16px;
}

/* === BODY H2 / LISTS / LINKS === */
.veil-body h2 {
  text-align: center !important;
  color: #c084fc !important;
  margin-top: 56px !important;
  margin-bottom: 16px !important;

  /* Stronger visual weight + refined size */
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  font-weight: 700; /* pairs well with Satoshi/Manrope */
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.veil-body h2.left {
  text-align: left !important;
}

/* Subhead H3 used inline in sections (bigger than body, below H2) */
.scroll-subhead {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #cfe8ff;
  margin: 1.1em 0 0.65em;
  line-height: 1.35;
}

.veil-body ul {
  padding-left: 24px;
  margin-top: 32px;
  margin-bottom: 40px;
}
.veil-body ul li { margin-bottom: 20px; line-height: 1.8; }

.veil-body a {
  color: #facc15;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.veil-body a:hover { border-color: #facc15; }

/* === DIVIDER === */
.veil-divider {
  height: 2px;
  width: 90%;
  max-width: 100%;
  /* spacing tuned to feel right with heavier H2s */
  margin: 12px auto 28px auto;
  background: linear-gradient(to right, #a78bfa, #facc15);
  border-radius: 4px;
  overflow-x: hidden;
}

/* === BODY TEXT === */
.veil-body {
  font-size: clamp(1.15rem, 2.5vw, 1.25rem);
  line-height: 1.8;
  color: #dddddd;
  margin-top: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.veil-body p { margin-bottom: 1.6em; }

.veil-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* === PDF DOWNLOAD / NAV BUTTONS === */
.scroll-download-block {
  text-align: center;
  margin-top: 64px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 1.1s;
}
.scroll-download-block p {
  font-size: 1.05rem;
  color: #cccccc;
  margin-bottom: 12px;
}

/* Shared Button */
.scroll-download-btn{
  display:inline-block;
  padding:12px 28px;
  border:1px solid #c084fc;
  border-radius:10px;
  background:transparent;
  color:#c084fc;
  text-decoration:none;
  transition:all .25s ease;
  margin-bottom:8px; /* ensures rounded bottom never touches container edge */
  white-space: nowrap;
}
.scroll-download-btn:hover { background-color: #c084fc; color: #0d0d10; }

/* Sparkle Animation (if used) */
@keyframes sparkle { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.2)} }
.scroll-download-btn:hover .sparkle { animation: sparkle 1.2s ease-in-out infinite; }

/* === Button Stack Wrapper === */
.button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
}

/* Gradient CTA */
.scroll-btn {
  display: inline-block;
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: 10px 20px;
  color: #0d0d10;
  background: linear-gradient(to right, #c084fc, #facc15);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.scroll-btn:hover { opacity: 0.9; }

/* Outline CTA */
.button-link {
  display: inline-block;
  padding: 12px 28px;
  margin-top: 40px;
  border: 1px solid #facc15;
  border-radius: 6px;
  color: #facc15;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.button-link:hover { background-color: #facc15; color: #0d0d10; }

/* Mobile buttons */
@media (max-width: 640px){
  .scroll-download-btn,
  .scroll-btn,
  .button-link{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    box-sizing:border-box;
  }
  .scroll-download-btn{
    font-size: 0.95rem;
    padding: 14px 16px;
    border-radius:10px;
  }
}
@media (max-width: 480px) {
  .mobile-download-btn {
    font-size: 1.125rem !important;
    padding: 14px 28px !important;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }
}

/* Back button variant */
.scroll-back-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  border: 2px solid #a78bfa;
  background-color: transparent;
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}
.scroll-back-btn:hover { background-color: #a78bfa; color: #0d0d10; }

/* === LINK STYLING === */
a.cta-link { color: #facc15 !important; text-decoration: none !important; font-weight: 500; }
a.cta-link:hover { color: #ffe873 !important; text-decoration: underline !important; }

/* === DONATION CTA BLOCK === */
.donation-cta {
  text-align: center;
  margin: 64px auto 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1.3s;
}
.donation-cta a {
  font-size: 1rem;
  color: #0d0d10;
  background: #facc15;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.donation-cta a:hover { background: #ffe873; color: #0d0d10; }

/* === SCRIPTURE BOX === */
.core-scripture-box {
  margin: 32px 0;
  padding: 20px 24px;
  background-color: #1a1a1d;
  border-left: 4px solid #c084fc;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: #e5e5e5;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.05);
  font-style: italic;
}
.core-scripture-box strong {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #aaaaaa;
  font-style: normal;
  letter-spacing: 0.5px;
}
.scripture-break { display: block; margin-top: 12px; }

/* === TABLES (Core) === */
.veil-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 32px;
}
.veil-body th, .veil-body td {
  border: 1px solid #333333;
  padding: 12px;
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.125rem);
}
.veil-body th { background-color: #111111; color: #f2f2f2; }

/* === FOOTER === */
.scroll-footer {
  width: 100%;
  background-color: transparent !important;
  padding: 40px 0;
  text-align: center;
}
.scroll-footer-logo {
  height: clamp(96px, 18vw, 112px);
  opacity: 1 !important;
  display: block;
  visibility: visible;
  filter: none;
  margin: 0 auto;
}
.scroll-footer-logo:hover { opacity: 1; filter: drop-shadow(0 0 8px rgba(192,132,252,.45)); }
.scroll-footer-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #a78bfa, #facc15);
  margin: 40px auto 0 auto;
}

/* === FALSE THRONES THEME VARIANT === */
.emoji {
  font-size: clamp(2.2rem, 5.5vw, 2.75rem);
  margin-bottom: 16px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.emoji:hover { text-shadow: 0 0 8px rgba(250,204,21,.4); transition: text-shadow .3s ease; cursor: default; }

.veil-header.false-thrones {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.false-thrones .emoji { font-size: clamp(2.2rem, 5.5vw, 2.75rem); margin-bottom: 16px; display: block; }
.false-thrones h1 {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #c084fc, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.false-thrones p {
  font-size: clamp(1.15rem, 2.5vw, 1.25rem);
  color: #cccccc;
  max-width: 720px;
  margin: 0 auto;
}

/* Synced H2 for False Thrones (size/weight matches core, golden accent) */
.veil-body.false-thrones h2 {
  text-align: center !important;
  margin-top: 56px !important;
  margin-bottom: 16px !important;
  font-size: clamp(1.8rem, 3.8vw, 2.2rem) !important;
  font-weight: 800 !important; /* set to 900 if you add Satoshi Black */
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: #facc15 !important;
}

/* Paragraph rhythm in FT body */
.veil-body.false-thrones p { margin-bottom: 1.6em; line-height: 1.8; }

/* Divider tuned to match new H2 density */
.veil-divider.false-thrones,
.false-thrones .veil-divider {
  height: 2px;
  width: 90%;
  max-width: 100%;
  margin: 12px auto 28px auto;
  background: linear-gradient(to right, #a78bfa, #facc15) !important;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(250,204,21,.25);
  opacity: 1;
  transform: none;
  animation: none;
}

/* FT Map table */
.false-thrones-map {
  width: 100%;
  max-width: 880px;
  margin: 40px auto;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.8;
}
.false-thrones-map th, .false-thrones-map td {
  padding: 16px 12px;
  border-bottom: 1px solid #333;
}
.false-thrones-map thead {
  background: linear-gradient(to right, #c084fc, #facc15);
  color: #0d0d10;
}
.false-thrones-map tbody tr:hover { background-color: #1a1a1a; }
.false-thrones-map td:first-child { font-weight: 600; }
.map-summary {
  text-align: center;
  margin-top: 48px;
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

/* Buttons (FT flavor) */
.btn-outline-purple {
  display: inline-block;
  padding: 12px 24px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  border: 2px solid #a78bfa;
  background-color: transparent;
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}
.btn-outline-purple:hover { background-color: #a78bfa; color: #0d0d10; }

/* Inline Titles (mini-headings styled like callouts) */
.scroll-inline-title {
  display: block;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  margin: 20px 0 10px;
  letter-spacing: 0.25px;
}

/* === MOBILE TWEAKS (buttons) === */
@media (max-width: 640px){
  .scroll-btn,
  .button-link{
    display:block;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}
@media (max-width: 480px) {
  .scroll-download-btn {
    font-size: 0.9rem;
    padding: 12px 14px;
    white-space: normal;
    word-break: keep-all;
  }
}

/* === FINAL DESCENDER/CLIPPING FIXES (leave last) === */
.veil-header h1{
  font-weight: 700 !important;  /* use loaded weight */
  line-height: 1.18 !important; /* a touch more room for g/y/p */
  padding-bottom: 4px !important;
  display: inline-block;
  -webkit-box-decoration-break: initial;
  box-decoration-break: initial;
}
.veil-header,
.veil-header.scroll-animate{
  overflow: visible !important; /* never clip the descenders */
  transform: translateZ(0);     /* guard against WebKit paint bugs */
}
.veil-header h1,
.veil-header p{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==== OVERRIDES (Global button unification & page utilities) ==== */
/* Never clip rounded buttons/descenders; give floor space */
.veil-container,
.veil-body {
  overflow: visible !important;
}
.veil-container { padding-bottom: 96px; }

/* Unify back/download button to all-purple outline variant */
.scroll-download-btn{
  padding:12px 28px;
  border:2px solid #a78bfa !important;
  border-radius:16px !important;
  background:transparent !important;
  color:#a78bfa !important;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  margin-bottom:10px;
  white-space:nowrap;
}
.scroll-download-btn:hover,
.scroll-download-btn:focus{
  background:rgba(167,139,250,.10) !important;
  color:#a78bfa !important;
  outline:none;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(167,139,250,.18);
}

/* Utility: hide TOC “pills” when body has .hide-toc */
.hide-toc .toc{ display:none !important; }

.core-scripture-box hr {
  border: none;
  border-top: 1px solid rgba(192,132,252,0.25); /* faint purple line */
  margin: 18px 0;
}