/* === 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;
}

/* === 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); } /* fixed typo here */
  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;
  /* tighten space above divider */
  margin-bottom: 12px;
  padding: 0 20px 8px;
  overflow: visible;

  /* micro-rhythm without extra margins */
  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;     /* was 12px */
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding-bottom: 0;      /* removed extra pad that pushed divider down */
  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; /* tighter */
  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;
  font-size: clamp(1.5rem, 3vw, 1.75rem) !important;
}
.veil-body h2.left { text-align: left; }

.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 (tightened) === */
.veil-divider {
  height: 2px;
  width: 90%;
  max-width: 100%;
  margin: 8px auto 24px auto; /* pulled closer under subtitle */
  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 BLOCK === */
.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 Style === */
.scroll-download-btn {
  display: inline-block;
  padding: 12px 20px;      /* tighter; duplicated rule consolidated */
  min-width: auto;         /* remove forced 280px */
  border: 1px solid #c084fc;
  color: #c084fc;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;     /* keep stars + text on one line */
  overflow: hidden;
  text-overflow: ellipsis;
}
.scroll-download-btn:hover { background-color: #c084fc; color: #0d0d10; }

/* === Sparkle Animation === */
@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;
}

/* Shared buttons */
.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; }

.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; }

@media (max-width: 480px) {
  .button-link {
    font-size: 1.125rem !important;
    padding: 14px 28px !important;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 24px !important;
  }
}

.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 */
.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; }

/* Mobile-specific download button */
@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;
  }
}

/* === 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 HEADER STYLE === */
.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;
  /* match tightened header spacing */
  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;
}
.veil-body.false-thrones p { margin-bottom: 1.6em; line-height: 1.8; }

/* === FALSE THRONES DIVIDER (match Core Systems style) === */
.veil-divider.false-thrones {
  height: 2px;
  width: 90%;
  max-width: 100%;
  margin: 8px auto 24px auto; /* tight spacing, centered */
  background: linear-gradient(to right, #a78bfa, #facc15); /* purple→gold like Core Systems */
  border-radius: 4px;
  overflow-x: hidden;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25); /* subtle glow */
  opacity: 1; /* ensure visible */
  transform: none; /* no offset */
  animation: none; /* remove extra reveal animation unless desired */
}


.veil-body.false-thrones h2 {
  text-align: center;
  margin-top: 48px;
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  color: #facc15;
}

.veil-container.false-thrones { padding-top: 32px; }

/* FORCE SCROLL FOOTER LOGO VISIBILITY */
.scroll-footer img.scroll-footer-logo {
  display: block !important;
  height: clamp(96px, 18vw, 112px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  margin: 0 auto !important;
}

.scroll-form-hidden { display: none; margin-top: 32px; text-align: center; }
.scroll-form-visible { display: block; }

/* FALSE THRONES color safety */
.false-thrones h1,
.false-thrones h2,
.false-thrones p,
.false-thrones a { color: #f2f2f2; }

.false-thrones .veil-divider,
.false-thrones .scroll-footer-divider {
  background: linear-gradient(to right, #ff6666, #facc15);
  height: 2px;
  margin: 48px 0;
  opacity: 0.8;
}
.false-thrones .emoji { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 12px; }

/* Table (map) */
.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 */
.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 button fixes */
@media (max-width: 640px){
  .scroll-download-btn{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    box-sizing:border-box;
    padding:14px 16px;
    border-radius:10px;
  }
  .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;
  }
}

/* Mobile tweak for the smaller download button */
@media (max-width: 480px) {
  .scroll-download-btn {
    font-size: 0.9rem;
    padding: 12px 14px;
    white-space: normal;
    word-break: keep-all;
  }
}

/* === FINAL OVERRIDE: False Thrones divider (match Core Systems) === */
.veil-divider.false-thrones,
.false-thrones .veil-divider {
  height: 2px;
  width: 90%;
  max-width: 100%;
  margin: 8px auto 24px auto;           /* centered */
  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;
}

/* (Optional) If you also style a footer divider under False Thrones, keep it consistent */
.false-thrones .scroll-footer-divider {
  background: linear-gradient(to right, #a78bfa, #facc15) !important;
  margin: 8px auto 24px auto !important; /* centered */
}

/* === FIX: Paragraph spacing inside False Thrones body === */
.veil-body.false-thrones p {
  margin-bottom: 1.6em;   /* same rhythm as Core Systems */
  line-height: 1.8;
}

.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 */
}