/* Sunday supporting-page flow.
   Editorial pacing, mixed type scale, staggered compositions, and quiet
   pop-up reveals — derived from the approved homepage's language.
   Loads after supporting-cleanup.css and supporting-final-fixes.css. */

/* ---------- 1. Editorial numerals and type moments ---------- */

/* Big quiet numbers, like the homepage chapter numbers grown up. */
.content-page .feature-map article>b{
  position:absolute!important;
  right:22px!important;
  top:16px!important;
  font-family:'Albert Sans',sans-serif!important;
  font-weight:500!important;
  font-size:clamp(30px,2.6vw,40px)!important;
  letter-spacing:-.04em!important;
  line-height:1!important;
  color:#e8d2c6!important;
}

.content-page .feature-map article{position:relative!important}

.content-page .process-rail b{
  display:block;
  font-family:'Albert Sans',sans-serif!important;
  font-weight:500!important;
  font-size:clamp(34px,3vw,46px)!important;
  letter-spacing:-.05em!important;
  line-height:1!important;
  color:#dcbcae!important;
}

.content-page .research-theme-grid article>span,
.content-page .method-grid b{
  display:block;
  font-family:'Albert Sans',sans-serif;
  font-weight:500;
  font-size:clamp(26px,2.3vw,34px)!important;
  letter-spacing:-.04em;
  line-height:1;
  color:#d9bfb2!important;
}

.content-page .guide-card-top>span{
  font-family:'Albert Sans',sans-serif;
  font-weight:500;
  font-size:22px!important;
  letter-spacing:-.03em!important;
  line-height:1!important;
  color:#c9a396!important;
}

/* Statement paragraphs read a size up, like the homepage dek. */
.content-page .answer-grid>p{
  font-size:19px!important;
  line-height:1.8!important;
}

.content-page .prose-stack p:first-child{
  font-size:19px!important;
  line-height:1.72!important;
  color:#4b3f4d!important;
}

/* The prose column hangs from a fine rule, slightly offset. */
@media (min-width:1101px){
  .content-page .split-story .prose-stack{
    margin-top:54px;
    padding-left:34px;
    border-left:1px solid #e3d6dc;
  }
  .content-page .answer-grid>p{
    padding-left:34px;
    border-left:1px solid #e3d6dc;
  }
}

/* ---------- 2. Section compositions ---------- */

/* Ask Sunday earns the full row again, horizontal like a quiet banner. */
@media (min-width:1101px){
  .content-page .feature-map article.feature-wide{
    grid-column:1/-1!important;
    display:grid;
    grid-template-columns:auto minmax(0,.9fr) minmax(0,1.4fr);
    gap:26px;
    align-items:center;
    background:linear-gradient(130deg,#fffdfb 30%,#f8e9e0 100%)!important;
  }
  .content-page .feature-map article.feature-wide h3{margin:0!important;font-size:26px!important}
  .content-page .feature-map article.feature-wide p{margin:0!important}
  .content-page .feature-map article.feature-wide .icon{margin:0}
}

/* Research themes get their numbered three-across band. */
@media (min-width:1101px){
  .content-page .research-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
}
@media (min-width:761px) and (max-width:1100px){
  .content-page .research-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
}
.content-page .research-theme-grid article{
  border:1px solid #e5dbe0;
  border-radius:21px;
  background:#fffdfb;
  padding:27px;
  box-shadow:0 18px 42px -38px rgba(67,43,59,.48);
}
.content-page .research-theme-grid h3{margin-top:38px!important;font-size:22px!important}

/* Two-voice panels sit side by side instead of floating in three columns. */
@media (min-width:761px){
  .content-page .promise-grid,
  .content-page .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Dark sections carry the homepage's plum aura. */
.content-page .section-dark{position:relative;overflow:hidden}
.content-page .section-dark::before{
  content:"";
  position:absolute;
  width:820px;
  height:820px;
  top:-420px;
  left:-230px;
  background:radial-gradient(ellipse,rgba(161,114,134,.17),transparent 65%);
  pointer-events:none;
}
.content-page .section-dark>.wrap{position:relative}

/* Staggered card columns, the reference's offset rhythm. */
@media (min-width:1101px){
  .content-page .feature-map article:nth-child(3n+2):not(.feature-wide),
  .content-page .audience-grid article:nth-child(3n+2),
  .content-page .commitment-grid article:nth-child(3n+2),
  .content-page .partner-audience-grid article:nth-child(3n+2),
  .content-page .professional-outcome-grid article:nth-child(3n+2),
  .content-page .method-grid article:nth-child(3n+2),
  .content-page .scenario-grid a:nth-child(3n+2),
  .content-page .guide-card:nth-child(3n+2),
  .content-page .research-theme-grid article:nth-child(3n+2){
    margin-top:30px;
  }
  .content-page .dark-card-grid article:nth-child(even),
  .content-page .boundary-columns article:nth-child(even),
  .content-page .promise-grid article:nth-child(even),
  .content-page .related-card:nth-child(even){
    margin-top:26px;
  }
  .content-page .process-rail article:nth-child(2){margin-top:32px}
  .content-page[data-supporting-page="pricing"] .pricing-grid>article:nth-child(2){margin-top:-14px}
}
@media (min-width:761px) and (max-width:1100px){
  .content-page .feature-map article:nth-child(even):not(.feature-wide),
  .content-page .audience-grid article:nth-child(even),
  .content-page .commitment-grid article:nth-child(even),
  .content-page .partner-audience-grid article:nth-child(even),
  .content-page .professional-outcome-grid article:nth-child(even),
  .content-page .method-grid article:nth-child(even),
  .content-page .scenario-grid a:nth-child(even),
  .content-page .guide-card:nth-child(even),
  .content-page .research-theme-grid article:nth-child(even),
  .content-page .dark-card-grid article:nth-child(even),
  .content-page .boundary-columns article:nth-child(even),
  .content-page .promise-grid article:nth-child(even),
  .content-page .related-card:nth-child(even){
    margin-top:20px;
  }
}

/* ---------- 3. The closing panel, with the sun back in it ---------- */
.content-page .page-cta-inner{position:relative!important}
.content-page .page-cta-inner::before{
  content:"";
  position:absolute;
  right:44px;
  top:40px;
  width:52px;
  height:52px;
  background:url(/assets/sunday-assistant-mark.svg) center/contain no-repeat;
  pointer-events:none;
}
.content-page .page-cta-inner::after{
  content:""!important;
  display:block!important;
  position:absolute;
  right:-130px;
  bottom:-150px;
  width:430px;
  height:430px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(239,201,184,.5),transparent 68%);
  pointer-events:none;
}
.content-page .page-cta-inner>*{position:relative;z-index:1}

/* ---------- 4. Pop-up reveals ----------
   The script adds .flow-reveal, reveals with .is-flow-in, then removes both
   so revealed elements return to the ordinary cascade (hover included). */
.content-page.has-flow .flow-reveal{
  transition:opacity .58s cubic-bezier(.22,1,.36,1),transform .66s cubic-bezier(.22,1,.36,1);
}
.content-page.has-flow .flow-reveal:not(.is-flow-in){
  opacity:0;
  transform:translateY(22px)!important;
}
.content-page.has-flow .flow-pop:not(.is-flow-in){
  transform:translateY(30px) scale(.978)!important;
}

/* ---------- 5. Hover that says where you are going ---------- */
.content-page .feature-map article,
.content-page .audience-grid article,
.content-page .commitment-grid article,
.content-page .partner-audience-grid article,
.content-page .professional-outcome-grid article,
.content-page .method-grid article,
.content-page .research-theme-grid article,
.content-page .promise-grid article,
.content-page .boundary-columns article,
.content-page .dark-card-grid article,
.content-page .process-rail article,
.content-page .scenario-grid a,
.content-page .guide-card,
.content-page .related-card,
.content-page .price-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:transform .32s cubic-bezier(.22,1,.36,1),box-shadow .32s ease,border-color .32s ease;
}

.content-page .feature-map article::after,
.content-page .audience-grid article::after,
.content-page .commitment-grid article::after,
.content-page .partner-audience-grid article::after,
.content-page .professional-outcome-grid article::after,
.content-page .method-grid article::after,
.content-page .research-theme-grid article::after,
.content-page .promise-grid article::after,
.content-page .boundary-columns article::after,
.content-page .scenario-grid a::after,
.content-page .guide-card::after,
.content-page .related-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:-18%;
  bottom:-34%;
  width:80%;
  height:66%;
  background:radial-gradient(ellipse at 30% 100%,rgba(244,214,200,.6),rgba(244,214,200,.18) 55%,transparent 75%);
  opacity:0;
  transition:opacity .4s ease;
  pointer-events:none;
}

.content-page .dark-card-grid article::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:-18%;
  bottom:-34%;
  width:80%;
  height:66%;
  background:radial-gradient(ellipse at 30% 100%,rgba(161,114,134,.32),transparent 72%);
  opacity:0;
  transition:opacity .4s ease;
  pointer-events:none;
}

@media (hover:hover){
  .content-page .feature-map article:hover,
  .content-page .audience-grid article:hover,
  .content-page .commitment-grid article:hover,
  .content-page .partner-audience-grid article:hover,
  .content-page .professional-outcome-grid article:hover,
  .content-page .method-grid article:hover,
  .content-page .research-theme-grid article:hover,
  .content-page .promise-grid article:hover,
  .content-page .boundary-columns article:hover,
  .content-page .scenario-grid a:hover,
  .content-page .guide-card:hover,
  .content-page .related-card:hover,
  .content-page .price-card:hover{
    transform:translateY(-4px)!important;
    border-color:#c6aeba!important;
    box-shadow:0 26px 52px -34px rgba(67,43,59,.6)!important;
  }
  .content-page .dark-card-grid article:hover{
    transform:translateY(-4px)!important;
    border-color:rgba(255,255,255,.3)!important;
  }
  .content-page .feature-map article:hover::after,
  .content-page .audience-grid article:hover::after,
  .content-page .commitment-grid article:hover::after,
  .content-page .partner-audience-grid article:hover::after,
  .content-page .professional-outcome-grid article:hover::after,
  .content-page .method-grid article:hover::after,
  .content-page .research-theme-grid article:hover::after,
  .content-page .promise-grid article:hover::after,
  .content-page .boundary-columns article:hover::after,
  .content-page .dark-card-grid article:hover::after,
  .content-page .scenario-grid a:hover::after,
  .content-page .guide-card:hover::after,
  .content-page .related-card:hover::after{
    opacity:1;
  }
  .content-page .guide-card:hover .guide-card-link,
  .content-page .scenario-grid a:hover strong,
  .content-page .related-card:hover b{
    color:#b4654f!important;
  }
  .content-page .guide-card .guide-card-link .icon,
  .content-page .related-card b .icon,
  .content-page .scenario-grid a .icon:last-child{
    transition:transform .32s cubic-bezier(.22,1,.36,1);
  }
  .content-page .guide-card:hover .guide-card-link .icon,
  .content-page .related-card:hover b .icon{
    transform:translateX(5px);
  }
}

/* Keyboard focus mirrors hover for the link cards. */
.content-page .scenario-grid a:focus-visible,
.content-page .guide-card:focus-visible,
.content-page .related-card:focus-visible{
  transform:translateY(-4px)!important;
  border-color:#c6aeba!important;
  box-shadow:0 26px 52px -34px rgba(67,43,59,.6)!important;
}
.content-page .scenario-grid a:focus-visible::after,
.content-page .guide-card:focus-visible::after,
.content-page .related-card:focus-visible::after{
  opacity:1;
}

/* ---------- 6. Small screens settle back down ---------- */
@media (max-width:760px){
  .content-page .feature-map article>b{font-size:26px!important;top:14px!important;right:18px!important}
  .content-page .process-rail b{font-size:30px!important}
  .content-page .research-theme-grid article>span,
  .content-page .method-grid b{font-size:24px!important}
  .content-page .answer-grid>p,
  .content-page .prose-stack p:first-child{font-size:17px!important}
  .content-page .page-cta-inner::before{right:24px;top:22px;width:40px;height:40px}
  .content-page .page-cta-inner::after{right:-170px;bottom:-190px}
  .content-page .research-theme-grid{grid-template-columns:1fr!important}
  .content-page .research-theme-grid h3{margin-top:26px!important}
  .content-page .promise-grid,
  .content-page .related-grid{grid-template-columns:1fr!important}
}

/* ---------- 7. Reduced motion: everything simply present ---------- */
@media (prefers-reduced-motion:reduce){
  .content-page.has-flow .flow-reveal,
  .content-page.has-flow .flow-reveal:not(.is-flow-in),
  .content-page.has-flow .flow-pop:not(.is-flow-in){
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
  .content-page .feature-map article,
  .content-page .audience-grid article,
  .content-page .commitment-grid article,
  .content-page .partner-audience-grid article,
  .content-page .professional-outcome-grid article,
  .content-page .method-grid article,
  .content-page .research-theme-grid article,
  .content-page .promise-grid article,
  .content-page .boundary-columns article,
  .content-page .dark-card-grid article,
  .content-page .process-rail article,
  .content-page .scenario-grid a,
  .content-page .guide-card,
  .content-page .related-card,
  .content-page .price-card{
    transition:none!important;
  }
  .content-page .feature-map article:hover,
  .content-page .audience-grid article:hover,
  .content-page .commitment-grid article:hover,
  .content-page .partner-audience-grid article:hover,
  .content-page .professional-outcome-grid article:hover,
  .content-page .method-grid article:hover,
  .content-page .research-theme-grid article:hover,
  .content-page .promise-grid article:hover,
  .content-page .boundary-columns article:hover,
  .content-page .dark-card-grid article:hover,
  .content-page .scenario-grid a:hover,
  .content-page .guide-card:hover,
  .content-page .related-card:hover,
  .content-page .price-card:hover{
    transform:none!important;
  }
}
