/*
 * Jarayan 7.4 layout-density layer.
 * Loaded last so the selected density can adjust spacing without changing content templates.
 */
:root{
  --jarayan-section-space:clamp(52px,5.4vw,82px);
  --jarayan-section-head-gap:clamp(24px,3vw,34px);
  --jarayan-card-gap:clamp(12px,1.5vw,18px);
  --jarayan-content-radius:clamp(24px,2.6vw,34px);
}
body.jarayan-density-balanced{
  --jarayan-section-space:clamp(68px,7vw,105px);
  --jarayan-section-head-gap:clamp(30px,3.8vw,42px);
  --jarayan-card-gap:clamp(14px,1.8vw,21px);
}
body.jarayan-density-spacious{
  --jarayan-section-space:clamp(82px,8.8vw,136px);
  --jarayan-section-head-gap:clamp(38px,4.8vw,52px);
  --jarayan-card-gap:clamp(18px,2.2vw,26px);
}

/* Shared rhythm */
body.jarayan-v6{--v6-section-space:var(--jarayan-section-space)}
body.jarayan-v6 .section{padding-block:var(--jarayan-section-space)}
body.jarayan-v6 .v6-section-heading{margin-bottom:var(--jarayan-section-head-gap);gap:clamp(24px,4.5vw,68px)}
body.jarayan-v6 .v6-section-heading>p,
body.jarayan-v6 .v6-section-heading>div:last-child>p{line-height:1.85;margin-bottom:8px}
body.jarayan-v6 .premium-services__grid,
body.jarayan-v6 .premium-team__grid,
body.jarayan-v6 .premium-workshops__grid,
body.jarayan-v6 .home-gallery-grid,
body.jarayan-v6 .home-news-grid,
body.jarayan-v6 .premium-articles__grid{gap:var(--jarayan-card-gap)}

/* Compact is the default and deliberately removes unused vertical canvas. */
body.jarayan-density-compact .v6-hero{
  min-height:690px;
  padding-top:clamp(42px,5.2vw,72px);
}
body.jarayan-density-compact .v6-hero__layout{
  grid-template-columns:minmax(0,1.13fr) minmax(370px,.87fr);
  gap:clamp(22px,3.2vw,52px);
}
body.jarayan-density-compact .v6-hero__content{padding-block:8px}
body.jarayan-density-compact .v6-hero h1{font-size:clamp(2.65rem,5.05vw,5.05rem);margin-bottom:18px}
body.jarayan-density-compact .v6-hero__lead{margin-bottom:21px;line-height:1.9}
body.jarayan-density-compact .v6-hero__actions{margin-bottom:23px}
body.jarayan-density-compact .v6-hero__visual{max-width:515px}
body.jarayan-density-compact .v6-floating-card{min-width:172px;padding:10px 12px}
body.jarayan-density-compact .v6-metrics{margin-top:28px}
body.jarayan-density-compact .v6-metrics>div{min-height:84px;padding:13px}
body.jarayan-density-compact .v6-access__shell{padding:14px;gap:14px;box-shadow:0 22px 56px rgba(11,62,86,.075)}
body.jarayan-density-compact .v6-access__intro{padding:13px 15px}
body.jarayan-density-compact .v6-access__choices>a{padding:10px 11px}

/* Section bridges keep the page visually continuous instead of isolated islands. */
body.jarayan-density-compact .v6-pathfinder,
body.jarayan-density-compact .v7-assessments,
body.jarayan-density-compact .v6-services,
body.jarayan-density-compact .v6-team,
body.jarayan-density-compact .v6-workshops,
body.jarayan-density-compact .v6-gallery,
body.jarayan-density-compact .v6-news,
body.jarayan-density-compact .v6-faq,
body.jarayan-density-compact .v6-articles{position:relative}
body.jarayan-density-compact .v6-pathfinder::before,
body.jarayan-density-compact .v6-services::before,
body.jarayan-density-compact .v6-team::before,
body.jarayan-density-compact .v6-news::before,
body.jarayan-density-compact .v6-articles::before{
  content:"";
  position:absolute;
  top:0;
  right:50%;
  width:min(1280px,calc(100% - 48px));
  height:1px;
  transform:translateX(50%);
  background:linear-gradient(90deg,transparent,var(--v6-line),transparent);
  pointer-events:none;
}

/* Pathfinder */
body.jarayan-density-compact .v6-pathfinder__layout{padding:13px;gap:13px;border-radius:27px}
body.jarayan-density-compact .v6-pathfinder__tabs{gap:8px}
body.jarayan-density-compact .v6-pathfinder__tab{padding:11px 12px;min-height:62px}
body.jarayan-density-compact .v6-pathfinder__panel{min-height:315px;padding:clamp(24px,3vw,38px);gap:clamp(20px,3vw,38px)}
body.jarayan-density-compact .v6-pathfinder__panel-visual{max-width:205px}
body.jarayan-density-compact .v6-pathfinder__panel-content h3{margin-block:6px 10px}
body.jarayan-density-compact .v6-pathfinder__panel-content p{line-height:1.82}
body.jarayan-density-compact .v6-pathfinder__panel-content>div{margin-top:16px}

/* Assessments */
body.jarayan-density-compact .v7-assessments__layout{gap:var(--jarayan-card-gap)}
body.jarayan-density-compact .v7-assessment-feature{min-height:315px;padding:clamp(20px,2.5vw,32px);grid-template-columns:155px minmax(0,1fr);border-radius:30px}
body.jarayan-density-compact .v7-assessment-feature__visual{width:140px;height:140px}
body.jarayan-density-compact .v7-assessment-feature__visual svg{width:52px;height:52px}
body.jarayan-density-compact .v7-assessment-feature__copy h3{font-size:clamp(1.45rem,2.4vw,2.15rem);margin-block:.25rem .55rem}
body.jarayan-density-compact .v7-assessment-feature__copy p{line-height:1.78}
body.jarayan-density-compact .v7-assessment-feature__copy>span{margin-top:.85rem}
body.jarayan-density-compact .v7-assessment-categories{gap:9px}
body.jarayan-density-compact .v7-assessment-categories>a{padding:.78rem .88rem}
body.jarayan-density-compact .v7-assessment-categories>a>span{width:46px;height:46px}
body.jarayan-density-compact .v7-assessment-categories__note{padding:.72rem .82rem}

/* Services and content cards */
body.jarayan-density-compact .v6-services .premium-service-card{min-height:310px!important}
body.jarayan-density-compact .v6-services .premium-service-card>a{padding:21px!important}
body.jarayan-density-compact .v6-services .premium-service-card__top{margin-bottom:17px}
body.jarayan-density-compact .v6-services .premium-service-card__icon{width:62px!important;height:62px!important;flex-basis:62px;border-radius:21px!important}
body.jarayan-density-compact .v6-services .premium-service-card__icon .jarayan-icon{width:29px!important;height:29px!important}
body.jarayan-density-compact .v6-services .premium-service-card__badge{margin-bottom:12px}
body.jarayan-density-compact .v6-services .premium-service-card h3{margin-bottom:7px!important}
body.jarayan-density-compact .v6-services .premium-service-card p{margin-bottom:16px!important;line-height:1.85!important}
body.jarayan-density-compact .premium-therapist-card .therapist-card__image{aspect-ratio:5/5.25}
body.jarayan-density-compact .v6-team .therapist-card__content{padding:15px}
body.jarayan-density-compact .v6-workshops .workshop-card__image,
body.jarayan-density-compact .v6-news .news-card__media,
body.jarayan-density-compact .v6-articles .post-card__image{aspect-ratio:16/9}
body.jarayan-density-compact .premium-event-card__content,
body.jarayan-density-compact .news-card__content,
body.jarayan-density-compact .post-card__content{padding:17px}
body.jarayan-density-compact .gallery-album-card__media{height:300px}
body.jarayan-density-compact .home-gallery-grid .gallery-album-card:first-child .gallery-album-card__media{height:100%}

/* Clinical standards and process */
body.jarayan-density-compact .v6-clinical-standard__layout{gap:clamp(30px,5vw,68px)}
body.jarayan-density-compact .v6-clinical-standard__intro p{line-height:1.9}
body.jarayan-density-compact .v6-standard-card{min-height:142px;padding:18px}
body.jarayan-density-compact .v6-process__layout{gap:clamp(30px,5vw,66px)}
body.jarayan-density-compact .v6-process__visual{min-height:430px;border-radius:30px}
body.jarayan-density-compact .v6-process__logo{width:205px}
body.jarayan-density-compact .v6-process__visual blockquote{right:18px;left:18px;bottom:18px;padding:13px}
body.jarayan-density-compact .v6-process__content h2{margin-bottom:18px}
body.jarayan-density-compact .v6-process__steps{gap:7px;margin-bottom:18px}
body.jarayan-density-compact .v6-process__steps>div{padding:10px 12px}
body.jarayan-density-compact .v6-process__steps>div>span{width:38px;height:38px}

/* Mind animation, FAQ and lower conversion blocks */
body.jarayan-density-compact .mind-motion{padding-block:var(--jarayan-section-space)}
body.jarayan-density-compact .v6-mind-motion .mind-motion__grid{padding:clamp(19px,2.6vw,32px);border-radius:30px}
body.jarayan-density-compact .v6-mind-motion .mind-motion__stage{min-height:470px}
body.jarayan-density-compact .v6-faq .faq-section__grid{padding:clamp(20px,2.8vw,34px);border-radius:29px}
body.jarayan-density-compact .faq-item button{padding-block:15px}
body.jarayan-density-compact .home-careers{padding-block:var(--jarayan-section-space)}
body.jarayan-density-compact .v6-careers .home-careers__inner{grid-template-columns:210px minmax(0,1fr) minmax(250px,.68fr);gap:28px;padding:30px;border-radius:30px}
body.jarayan-density-compact .home-careers__visual{height:190px}
body.jarayan-density-compact .home-careers__core{width:92px;height:92px}
body.jarayan-density-compact .home-careers__content h2{font-size:clamp(1.6rem,2.2vw,2.25rem);margin-bottom:9px}
body.jarayan-density-compact .home-careers__content p{margin-bottom:14px;line-height:1.85}
body.jarayan-density-compact .home-careers__requirements{gap:8px}
body.jarayan-density-compact .home-careers__requirements>div{padding:10px}
body.jarayan-density-compact .v6-final-cta{padding-bottom:var(--jarayan-section-space)}
body.jarayan-density-compact .v6-final-cta .premium-final-cta__inner{padding:clamp(24px,3vw,38px);border-radius:30px}
body.jarayan-density-compact .premium-final-cta__logo{width:92px;height:92px}
body.jarayan-density-compact .premium-final-cta__inner h2{font-size:clamp(1.7rem,2.8vw,2.75rem);margin-bottom:7px}

/* Empty states should inform, not reserve a full section-height canvas. */
body.jarayan-density-compact .content-empty,
body.jarayan-density-compact .gallery-empty-state,
body.jarayan-density-compact .jarayan-empty-state{min-height:0;padding:22px;border-radius:22px}
body.jarayan-density-compact .gallery-empty-state{display:flex;align-items:center;justify-content:center;gap:15px;text-align:right}
body.jarayan-density-compact .gallery-empty-state>span{flex:0 0 54px}
body.jarayan-density-compact .content-empty p,
body.jarayan-density-compact .gallery-empty-state p{margin-bottom:0}

/* Balanced and spacious retain their original visual scale. */
body.jarayan-density-balanced .v6-hero{min-height:760px;padding-top:clamp(58px,6.8vw,94px)}
body.jarayan-density-balanced .v6-process__visual{min-height:490px}
body.jarayan-density-balanced .v6-services .premium-service-card{min-height:350px!important}
body.jarayan-density-spacious .v6-hero{min-height:830px}

@media (max-width:1100px){
  body.jarayan-density-compact .v6-hero{min-height:auto}
  body.jarayan-density-compact .v6-hero__layout{grid-template-columns:1fr 420px}
  body.jarayan-density-compact .v6-careers .home-careers__inner{grid-template-columns:190px 1fr}
  body.jarayan-density-compact .home-careers__requirements{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}
}
@media (max-width:980px){
  body.jarayan-density-compact .v6-hero__layout{grid-template-columns:1fr}
  body.jarayan-density-compact .v6-hero__content{max-width:820px;margin-inline:auto;text-align:center}
  body.jarayan-density-compact .v6-hero__actions,
  body.jarayan-density-compact .v6-hero__trust{justify-content:center;margin-inline:auto}
  body.jarayan-density-compact .v6-hero__visual{max-width:430px;min-height:410px}
  body.jarayan-density-compact .v6-process__visual{min-height:410px}
  body.jarayan-density-compact .v7-assessment-feature{min-height:285px}
}
@media (max-width:720px){
  :root{--jarayan-section-space:50px;--jarayan-section-head-gap:24px;--jarayan-card-gap:11px}
  body.jarayan-density-balanced{--jarayan-section-space:60px}
  body.jarayan-density-spacious{--jarayan-section-space:72px}
  body.jarayan-v6 .v6-section-heading{gap:12px}
  body.jarayan-density-compact .v6-hero{padding-top:28px}
  body.jarayan-density-compact .v6-hero h1{font-size:clamp(2.15rem,10vw,3.2rem);margin-bottom:13px}
  body.jarayan-density-compact .v6-hero__lead{margin-bottom:17px}
  body.jarayan-density-compact .v6-hero__visual{min-height:330px;max-width:355px}
  body.jarayan-density-compact .v6-metrics{margin-top:18px}
  body.jarayan-density-compact .v6-metrics>div{min-height:72px;padding:9px}
  body.jarayan-density-compact .v6-access__shell{padding:9px}
  body.jarayan-density-compact .v6-pathfinder__panel{padding:20px 16px}
  body.jarayan-density-compact .v7-assessment-feature{padding:3.5rem 16px 20px;grid-template-columns:1fr}
  body.jarayan-density-compact .v7-assessment-feature__visual{width:120px;height:120px}
  body.jarayan-density-compact .v6-services .premium-service-card{min-height:280px!important}
  body.jarayan-density-compact .v6-services .premium-service-card>a{padding:17px!important}
  body.jarayan-density-compact .v6-process__visual{min-height:350px}
  body.jarayan-density-compact .v6-process__logo{width:165px}
  body.jarayan-density-compact .v6-mind-motion .mind-motion__stage{min-height:410px}
  body.jarayan-density-compact .v6-careers .home-careers__inner{grid-template-columns:1fr;padding:20px 15px;gap:18px}
  body.jarayan-density-compact .home-careers__visual{height:165px}
  body.jarayan-density-compact .home-careers__requirements{grid-template-columns:1fr;gap:7px}
  body.jarayan-density-compact .v6-final-cta .premium-final-cta__inner{padding:22px 16px}
  body.jarayan-density-compact .gallery-empty-state{align-items:flex-start}
}
@media (max-width:390px){
  :root{--jarayan-section-space:44px;--jarayan-section-head-gap:21px}
  body.jarayan-density-compact .v6-hero__visual{min-height:295px}
  body.jarayan-density-compact .v6-services .premium-service-card{min-height:258px!important}
  body.jarayan-density-compact .v6-process__visual{min-height:330px}
  body.jarayan-density-compact .v6-mind-motion .mind-motion__stage{min-height:390px}
}
