/* =========================================================
   THOUGHTS ABOUT GOD 2026 — HOMEPAGE CRITICAL CSS
   Purpose: first-view intro + primary hero slider + immediate pathway shell.
   The complete tag-front-page.css and tag-sliders.css still load after paint.
   Keep this file intentionally small and homepage-scoped.
   ========================================================= */

.tag-front-page,
.tag-front-page * {
  box-sizing: border-box;
}

.tag-front-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #faf9f6;
}

/* Homepage introduction. */
.tag-front-intro {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 20px clamp(44px, 6vw, 72px);
  border-bottom: 1px solid rgba(63, 49, 39, 0.09);
  background:
    radial-gradient(circle at 8% 18%, rgba(64, 181, 235, 0.15), transparent 32%),
    radial-gradient(circle at 92% 82%, rgba(144, 203, 67, 0.15), transparent 32%),
    linear-gradient(135deg, #f7fcff 0%, #fffdf9 48%, #f7faef 100%);
}

.tag-front-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(63, 49, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 49, 39, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

.tag-front-intro::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -190px;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(64, 181, 235, 0.08);
  pointer-events: none;
}

.tag-front-intro__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.tag-front-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0 0 18px;
  padding: 9px 15px;
  border: 1px solid rgba(143, 31, 27, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(43, 32, 24, 0.05);
  color: #7a1f1f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag-front-intro h1 {
  display: block;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  color: #3f3127;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.tag-front-intro__description {
  display: block;
  width: min(800px, 100%);
  max-width: 780px;
  margin: 20px auto 0;
  padding: 0;
  color: #574a40;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

/* Primary homepage content shell. */
.tag-front-content-shell {
  position: relative;
  width: 100%;
  padding: 32px 20px 0;
}

.tag-front-content-shell--featured {
  padding-top: clamp(18px, 2.2vw, 28px);
  padding-bottom: 0;
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

.tag-front-main {
  display: block;
  width: min(1280px, 100%);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.tag-front-editor-content {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tag-front-editor-content > *:first-child {
  margin-top: 0;
}

.tag-front-editor-content > *:last-child {
  margin-bottom: 0;
}

.tag-front-editor-content > * {
  margin-top: 0;
}

.tag-front-editor-content > p {
  margin: 0;
}

.tag-front-editor-content p:empty {
  display: none;
}

.tag-front-editor-content img,
.tag-front-editor-content video,
.tag-front-editor-content iframe {
  max-width: 100%;
}

.tag-home-section {
  width: 100%;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0;
}

.tag-home-hero {
  padding-top: 0;
}

/* Primary hero slider geometry. */
.tag-slider-hero-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.slider-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(320px, 48vw, 600px);
  overflow: hidden;
  isolation: isolate;
  background: #3f3127;
  border-radius: 16px;
}

.slider-hero .tag-slider-items {
  position: relative;
  width: 100%;
  min-height: inherit;
  overflow: hidden;
}

.slider-hero .tag-slider-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  padding: clamp(32px, 7vw, 96px);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 500ms ease, visibility 500ms step-end;
}

.slider-hero .tag-slider-slide.is-current {
  z-index: 2;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 500ms ease, visibility 0s step-start;
}

.slider-hero .tag-slider-slide.is-before {
  transform: translate3d(-100%, 0, 0);
}

.slider-hero .tag-slider-slide.is-after {
  transform: translate3d(100%, 0, 0);
}

.tag-slider-prev,
.tag-slider-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 7vw, 96px);
  margin: 0;
  padding: 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(22, 17, 13, 0.36), transparent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.tag-slider-prev {
  left: 0;
}

.tag-slider-next {
  right: 0;
  background: linear-gradient(270deg, rgba(22, 17, 13, 0.36), transparent);
}

.tag-slider-control-icon {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
}

.tag-front-editor-content .tag-slider-slide {
  isolation: isolate;
  background: #3f3127;
}

.tag-front-editor-content .tag-slider-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transform: translateZ(0);
}

.tag-front-editor-content .tag-slider-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 15, 11, 0) 0%, rgba(20, 15, 11, 0.025) 55%, rgba(20, 15, 11, 0.10) 100%) !important;
  pointer-events: none;
}

.tag-front-editor-content .slider-hero h3,
.tag-front-editor-content .tag-slider-slide h3 {
  position: relative;
  z-index: 2;
  margin: 1.75rem auto;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.tag-slider-title {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto 26px;
  color: #fff;
  font-family: var(--tag-font-heading);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.tag-slider-link {
  position: relative;
  z-index: 3;
  color: #fff;
  text-decoration: none;
}

.tag-slider-link__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  color: #fff;
  background: rgba(63, 49, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-weight: 800;
}

/* Preserve the final production spacing/clarity guards before deferred CSS lands. */
.tag-front-page .tag-front-content-shell--featured {
  margin: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  content-visibility: visible !important;
  contain: none !important;
  contain-intrinsic-size: none !important;
}

.tag-front-page .tag-front-content-shell--featured .tag-front-main,
.tag-front-page .tag-front-content-shell--featured .tag-front-editor-content,
.tag-front-page .tag-front-content-shell--featured .tag-slider-hero-shell,
.tag-front-page .tag-front-content-shell--featured .slider-hero {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.tag-front-page .tag-front-content-shell--featured .tag-front-editor-content > p:empty,
.tag-front-page .tag-front-content-shell--featured .tag-front-editor-content > br:last-child {
  display: none !important;
}

.tag-front-page .tag-front-content-shell--featured .tag-slider-media {
  -webkit-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.tag-front-page .tag-front-content-shell--featured .tag-slider-scrim {
  background: linear-gradient(180deg, rgba(20, 15, 11, 0) 0%, rgba(20, 15, 11, 0.025) 55%, rgba(20, 15, 11, 0.10) 100%) !important;
}

/* Immediate section below the hero: include geometry to protect CLS. */
.tag-front-pathways {
  width: 100%;
  padding: clamp(46px, 7vw, 78px) 20px;
  background: #fff;
  border-bottom: 1px solid rgba(63, 49, 39, 0.09);
}

.tag-front-pathways__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.tag-front-pathways__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 24px);
}

.tag-front-pathway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: clamp(24px, 2.6vw, 34px);
  color: #57483d;
  background: #faf9f6;
  border: 1px solid rgba(63, 49, 39, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(43, 32, 24, 0.06);
  text-decoration: none;
}

.tag-front-pathway-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 24px;
  border-radius: 50%;
  color: #247ca8;
  background: rgba(50, 143, 189, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.tag-front-pathway-card h3 {
  margin: 0;
  color: #3f3127;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-transform: none;
}

.tag-front-pathway-card p {
  margin: 15px 0 24px;
  color: #6d6057;
  font-size: 15px;
  line-height: 1.65;
}

.tag-front-pathway-card__action {
  margin-top: auto;
  color: #247ca8;
  font-size: 14px;
  font-weight: 800;
}

.tag-front-pathways--compact {
  padding: clamp(.7rem, 1.6vw, 1.15rem) 20px clamp(1rem, 2vw, 1.4rem);
}

.tag-front-pathways--compact .tag-front-pathways__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 1.4vw, 1rem);
}

.tag-front-pathways--compact .tag-front-pathway-card {
  min-height: 0;
  padding: clamp(.85rem, 1.6vw, 1.15rem);
}

.tag-front-pathways--compact .tag-front-pathway-card__number {
  margin-bottom: .3rem;
}

.tag-front-pathways--compact .tag-front-pathway-card h3 {
  margin: 0 0 .35rem;
}

.tag-front-pathways--compact .tag-front-pathway-card p {
  margin: 0 0 .55rem;
  line-height: 1.5;
}

.tag-front-pathways--compact .tag-front-pathway-card__action {
  margin-top: .2rem;
}

.tag-front-page .tag-front-content-shell--featured + .tag-front-pathways--compact {
  margin-top: 0 !important;
  padding-top: 10px !important;
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

@media (max-width: 1080px) {
  .tag-front-pathways__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tag-front-pathways--compact .tag-front-pathways__grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .tag-front-intro {
    padding: 46px 16px 54px;
  }

  .tag-front-intro h1 {
    max-width: 680px;
    font-size: clamp(30px, 6.7vw, 42px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.02em;
  }

  .tag-front-intro__description {
    max-width: 620px;
    margin-top: 18px;
    font-size: 16.5px;
    line-height: 1.62;
  }

  .tag-front-content-shell {
    padding: 24px 12px 0;
  }
}

@media (max-width: 767px) {
  @supports (content-visibility: auto) {
    .tag-front-resource-overview,
    .tag-front-content-shell--continuation,
    .tag-front-content-shell--sitemap,
    .tag-front-credibility,
    .tag-front-faq,
    .tag-front-search {
      content-visibility: auto;
    }

    .tag-front-content-shell--continuation {
      contain-intrinsic-size: auto 1500px;
    }

    .tag-front-resource-overview,
    .tag-front-content-shell--sitemap {
      contain-intrinsic-size: auto 900px;
    }

    .tag-front-credibility,
    .tag-front-faq,
    .tag-front-search {
      contain-intrinsic-size: auto 620px;
    }
  }
}

@media (max-width: 767px) {
  .tag-front-intro {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .tag-front-intro::before,
  .tag-front-intro::after {
    display: none;
  }

  .tag-front-intro h1 {
    text-wrap: wrap;
  }

  .tag-front-intro__description {
    margin-top: 16px;
    line-height: 1.6;
  }

  .tag-front-page .tag-front-content-shell--featured {
    padding: 10px 14px 0 !important;
  }

  .tag-front-page .tag-front-content-shell--featured + .tag-front-pathways--compact {
    padding: 8px 14px 16px !important;
  }
}

@media (max-width: 620px) {
  .tag-front-pathways {
    padding-right: 14px;
    padding-left: 14px;
  }

  .tag-front-pathways__grid {
    grid-template-columns: 1fr;
  }

  .tag-front-pathway-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .slider-hero {
    min-height: 360px;
    border-radius: 12px;
  }

  .tag-front-page .slider-hero .tag-slider-slide {
    padding: 40px 44px;
  }
}

@media (max-width: 480px) {
  .tag-front-intro {
    padding-right: 14px;
    padding-left: 14px;
  }

  .tag-front-intro__eyebrow {
    margin-bottom: 15px;
    font-size: 11px;
  }

  .tag-front-intro h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.015em;
  }

  .tag-front-intro__description {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.58;
  }

  .tag-front-content-shell {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (min-width: 768px) {
  .tag-front-page .tag-front-content-shell--featured {
    padding-top: 16px !important;
  }

  .tag-front-page .tag-front-content-shell--featured + .tag-front-pathways--compact {
    padding-bottom: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-hero .tag-slider-slide {
    transition: none !important;
  }
}
