/*
 * Stage R05/R06 · V71 — Parinama styling only, not a second content source.
 * The existing education record/teacher/Media Library renderers stay authoritative.
 * Tune typography, organic real-photo layouts and mobile reading rhythm.
 */
article.ananda-education-detail__article:has(.ananda-parinama) {
  --parinama-cream:#fffaf3;
  --parinama-ink:#534537;
  --parinama-clay:#945b45;
  --parinama-sage:#667b5b;
  --parinama-line:#e5d5bf;
}
article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__hero {
  background: radial-gradient(ellipse at 22% 15%,#fff9e9 0,#f5ead7 58%,#f5f1e7 100%);
  border-radius:0 0 clamp(24px,5vw,76px) clamp(24px,5vw,76px);
}
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__image {
  border-radius:clamp(40px,8vw,112px) clamp(24px,5vw,80px) 22px clamp(20px,3vw,45px);
  background:transparent;
}
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__content > h1 {
  text-wrap:balance;
}
.ananda-parinama {
  --ananda-photo-cream:#fffaf3;
  color:#534537;
}
.ananda-parinama .ananda-parinama__section {
  padding-block:clamp(35px,5vw,68px);
  border-bottom:1px solid rgba(165,126,98,.22);
}
.ananda-parinama .ananda-parinama__section:has(> figure) {
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  align-items:center;
  column-gap:clamp(24px,5vw,68px);
  row-gap:14px;
}
.ananda-parinama .ananda-parinama__section:has(> figure):nth-of-type(even) {
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
}
.ananda-parinama .ananda-parinama__section:has(> figure):nth-of-type(even) > figure {
  grid-column:2;
  grid-row:1/span 5;
}
.ananda-parinama .ananda-parinama__section:has(> figure):nth-of-type(odd) > figure {
  grid-column:1;
  grid-row:1/span 5;
}
.ananda-parinama .ananda-parinama__section:has(> figure):nth-of-type(odd) > :not(figure) {grid-column:2}
.ananda-parinama .ananda-parinama__section:has(> figure):nth-of-type(even) > :not(figure) {grid-column:1}
.ananda-parinama figure > img,
.ananda-parinama .ananda-parinama__leader-grid img,
.ananda-parinama .ananda-parinama__graduation-gallery img {
  width:100%;
  height:auto;
  background:transparent;
  box-shadow:0 12px 34px rgba(86,65,44,.075);
}
.ananda-parinama .ananda-parinama__section:has(> figure) > figure {
  padding:0;
  margin:0;
  border-radius:80px 16px 68px 18px;
  overflow:hidden;
}
.ananda-parinama .ananda-parinama__module {
  background:linear-gradient(145deg,#fbf6eb,#f0f2e9);
  border-color:#ded5c4;
}
.ananda-parinama .ananda-parinama__module > summary {
  color:#48644f;
  border-radius:12px;
}
.ananda-parinama .ananda-parinama__module[open] {background:#fffaf3}
.ananda-parinama .ananda-parinama__graduation-gallery {
  gap:clamp(12px,3vw,28px);
}
.ananda-parinama .ananda-parinama__graduation-gallery img {
  object-fit:cover;
  border-radius:38px 12px 46px 12px;
}
@media(max-width:760px) {
  article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__hero {
    grid-template-columns:1fr;
    gap:18px;
    border-radius:0 0 34px 34px;
  }
  .ananda-parinama .ananda-parinama__section:has(> figure),
  .ananda-parinama .ananda-parinama__section:has(> figure):nth-of-type(even) {
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .ananda-parinama .ananda-parinama__section:has(> figure) > figure {
    width:100%;
    max-width:100%;
    border-radius:48px 15px 48px 15px;
    order:-1;
    margin-bottom:10px;
  }
  .ananda-parinama .ananda-parinama__section {padding-block:36px}
  .ananda-parinama .ananda-parinama__graduation-gallery {grid-template-columns:1fr;gap:18px}
  .ananda-parinama .ananda-parinama__module > summary {min-height:48px}
}
@media(prefers-reduced-motion:reduce) {
  .ananda-parinama * {scroll-behavior:auto}
}

