/* Ananda Parinama only. Load after the existing education/theme styles. */
article.ananda-education-detail__article:has(.ananda-parinama) {
  --parinama-cream: #fffaf1;
  --parinama-ink: #40372f;
  --parinama-clay: #98472f;
  --parinama-sage: #496350;
  --parinama-line: #e4d7c7;
  --parinama-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--parinama-ink);
  background: var(--parinama-cream);
  overflow-wrap: anywhere;
}
article.ananda-education-detail__article:has(.ananda-parinama) *,
.ananda-parinama, .ananda-parinama * { box-sizing: border-box; }
article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__hero {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%; min-width: 0; min-height: 0 !important;
  height: auto !important; max-height: none !important;
  background: linear-gradient(115deg, #fffaf1, #f4eee1);
  color: var(--parinama-ink); overflow: visible;
}
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__image {
  position: static !important; inset: auto !important; order: 2;
  display: block; width: 100% !important; max-width: 100%;
  height: auto !important; max-height: 510px; min-height: 0 !important;
  object-fit: contain !important; object-position: center;
  border-radius: 90px 90px 18px 18px; transform: none; filter: none;
}
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__veil { display: none !important; }
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__content {
  position: static !important; inset: auto !important; order: 1;
  width: 100%; max-width: none !important; min-width: 0;
  color: var(--parinama-ink) !important; text-align: left;
  text-shadow: none !important; transform: none !important;
}
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__eyebrow {
  color: var(--parinama-sage); font-weight: 650; letter-spacing: .1em;
}
article.ananda-education-detail__article:has(.ananda-parinama) .subhero__content > :is(h1,h2,h3,h4,h5,h6) {
  max-width: 100%; color: var(--parinama-clay) !important;
  font-family: var(--parinama-serif); font-weight: 500; text-shadow: none;
  letter-spacing: -.025em; text-wrap: balance;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__teaser {
  max-width: 50ch; color: var(--parinama-ink); font-size: 18px; line-height: 1.65;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__teaser strong {
  color: var(--parinama-sage); font-weight: 750;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-date strong {
  display: inline-block; padding: 6px 12px; border-radius: 8px; background: #e7eddf;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-title {
  color: var(--parinama-clay); font-family: var(--parinama-serif); font-weight: 500;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-topics { color: #65564a; }
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-rhythm { color: #496350; }
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__hero:not(:has(> img)) {
  grid-template-columns: minmax(0, 1fr);
}
article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-breadcrumb {
  display: flex; flex-wrap: wrap; width: min(1040px, calc(100% - 48px));
  max-width: 100%; gap: 8px; color: #766658;
}
article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__facts {
  width: min(1040px, calc(100% - 48px)); max-width: 100%;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-facts > div {
  min-width: 0; padding: 16px; border: 1px solid var(--parinama-line);
  border-radius: 10px; background: #f2f2e9;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-facts dt { color: var(--parinama-sage); }
article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__body {
  display: block !important; width: min(1040px, calc(100% - 48px));
  max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr);
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__body > div {
  width: 100%; min-width: 0; max-width: 100%;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__body > aside,
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__body > div > .section-kicker,
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-education-detail__body > div > :is(h1,h2,h3,h4,h5,h6),
article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-gallery { display: none !important; }
.ananda-parinama {
  min-width: 0; max-width: 100%; color: #40372f;
  font: 17px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.ananda-parinama .ananda-parinama__section {
  display: block; min-width: 0; min-height: 0 !important; max-width: 100%;
  margin: 0; padding: clamp(30px, 4vw, 52px) 0;
  border: 0; border-bottom: 1px solid #e4d7c7;
  background: transparent; box-shadow: none;
}
.ananda-parinama .ananda-parinama__section:first-child { padding-top: 0; }
.ananda-parinama .ananda-parinama__section:last-child { border-bottom: 0; }
.ananda-parinama h2 {
  max-width: 24ch; color: #98472f;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500; letter-spacing: -.02em; text-wrap: balance;
}
.ananda-parinama p { max-width: 70ch; }
.ananda-parinama p:last-child { margin-bottom: 0; }
.ananda-parinama .ananda-parinama__eyebrow {
  color: #496350; font-weight: 650; letter-spacing: .055em; text-transform: uppercase;
}
.ananda-parinama .ananda-parinama__intro > .ananda-parinama__eyebrow,
.ananda-parinama .ananda-parinama__contact > .ananda-parinama__eyebrow {
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-style: italic; letter-spacing: 0; text-transform: none;
}
.ananda-parinama .ananda-parinama__lead { color: #554437; }
.ananda-parinama .ananda-parinama__modules { display: grid; gap: 10px; margin-top: 24px; }
.ananda-parinama .ananda-parinama__module {
  min-width: 0; margin: 0; padding: 0;
  border: 1px solid #dbd9ca; border-radius: 12px; background: #f1f3ea;
}
.ananda-parinama .ananda-parinama__module > summary {
  min-height: 52px; padding: 17px 20px; border-radius: 11px;
  color: #354f3e; cursor: pointer; font-size: 17px; font-weight: 650;
  line-height: 1.4; text-transform: none; letter-spacing: normal;
  touch-action: manipulation; overflow-wrap: anywhere;
}
.ananda-parinama .ananda-parinama__module > summary::marker { color: #496350; font-size: .85em; }
.ananda-parinama .ananda-parinama__module > summary:hover { background: #e7eddf; }
.ananda-parinama .ananda-parinama__module[open] { background: #fffdf7; }
.ananda-parinama .ananda-parinama__module[open] > summary { border-radius: 11px 11px 0 0; }
.ananda-parinama .ananda-parinama__module-copy { padding: 0 20px 20px; }
.ananda-parinama .ananda-parinama__leader-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(24px, 4vw, 48px); margin-top: 24px;
}
.ananda-parinama .ananda-parinama__leader-copy { min-width: 0; }
.ananda-parinama figure { min-width: 0; max-width: 100%; margin: 0; }
.ananda-parinama img {
  position: static; display: block; width: 100%; max-width: 100%; height: auto;
  margin: 0; object-fit: contain; border-radius: 16px; background: #eee8dc;
}
.ananda-parinama .ananda-parinama__portrait { max-height: 520px; border-radius: 72px 72px 14px 14px; }
.ananda-parinama figcaption { margin-top: 10px; color: #766658; font-size: 14px; line-height: 1.5; }
.ananda-parinama .ananda-parinama__graduation-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px;
}
.ananda-parinama .ananda-parinama__contact { padding-bottom: 12px; }
.ananda-parinama a { color: #873b28; text-underline-offset: .2em; }
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-cta,
.ananda-parinama .ananda-parinama__cta {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 48px; max-width: 100%; padding: 13px 22px;
  border: 1px solid #873b28; border-radius: 8px; background: #98472f; color: #fffaf1;
  font: 650 16px/1.45 system-ui, sans-serif; letter-spacing: normal;
  text-transform: none; text-decoration: none; text-align: center; white-space: normal;
  box-shadow: none; transition: background-color .15s ease;
}
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-cta:hover,
.ananda-parinama .ananda-parinama__cta:hover { color: #fff; background: #783721; }
article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-cta:focus-visible,
.ananda-parinama :is(a,summary):focus-visible {
  outline: 3px solid #496350 !important; outline-offset: 4px;
  box-shadow: 0 0 0 3px #fffaf1;
}
.ananda-parinama .ananda-parinama__contact-details { font-size: 15px; line-height: 1.8; }
article.ananda-education-detail__article:has(.ananda-parinama) > .page-cta {
  min-height: 0; width: min(1040px, calc(100% - 48px)); max-width: 100%;
  margin: 0 auto; padding: 28px 0; border-top: 1px solid #e4d7c7;
  background: transparent; box-shadow: none;
}
[data-home-selection-value="education-yoga-lehrerin"] {
  border-color: #c3987c !important; background: #fffaf1 !important;
}
[data-home-selection-value="education-yoga-lehrerin"] .ananda-home-gallery-title {
  color: #873b28; font-family: "Palatino Linotype", Georgia, serif; font-weight: 500;
}
/* Layered important declarations outrank the existing unlayered overlay resets,
   without adding IDs or changing other education entries. */
@layer ananda-parinama {
  article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__hero {
    margin: 0 !important; padding: clamp(24px, 4vw, 56px) !important;
  }
  article.ananda-education-detail__article:has(.ananda-parinama) .subhero__content { margin: 0 !important; padding: 0 !important; }
  article.ananda-education-detail__article:has(.ananda-parinama) .subhero__content > :is(h1,h2,h3,h4,h5,h6) {
    margin: 0 0 20px !important; font-size: clamp(36px, 4.8vw, 68px) !important; line-height: 1.04 !important;
  }
  article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-intro > p {
    margin: 0 0 14px !important; font-size: 16px !important; line-height: 1.55 !important;
  }
  article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-intro > .ananda-parinama__hero-title {
    font-size: clamp(28px, 3vw, 38px) !important; line-height: 1.18 !important;
  }
  article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-intro > .ananda-parinama__hero-type { font-size: 18px !important; }
  article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-intro > .ananda-parinama__hero-action { margin: 24px 0 0 !important; }
  article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__facts { margin: 24px auto 0 !important; padding: 0 !important; }
  article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__body { margin: 36px auto 0 !important; padding: 0 !important; }
  .ananda-parinama h2 { margin: 0 0 22px !important; font-size: clamp(28px, 3.4vw, 43px) !important; line-height: 1.16 !important; }
  .ananda-parinama p { margin: 0 0 18px !important; font-size: 17px !important; line-height: 1.75 !important; }
  .ananda-parinama .ananda-parinama__eyebrow { margin-bottom: 12px !important; font-size: 13px !important; line-height: 1.5 !important; }
  .ananda-parinama .ananda-parinama__intro > .ananda-parinama__eyebrow,
  .ananda-parinama .ananda-parinama__contact > .ananda-parinama__eyebrow { font-size: 16px !important; }
  .ananda-parinama .ananda-parinama__contact-details { font-size: 15px !important; }
  .ananda-parinama .ananda-parinama__module-copy > p:last-child { margin-bottom: 0 !important; }
}
@media (max-width: 640px) {
  article.ananda-education-detail__article:has(.ananda-parinama) > .ananda-education-detail__hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  article.ananda-education-detail__article:has(.ananda-parinama) .subhero__image { max-height: 320px; border-radius: 42px 42px 12px 12px; }
  article.ananda-education-detail__article:has(.ananda-parinama) > :is(.ananda-education-breadcrumb,.ananda-education-detail__facts,.ananda-education-detail__body,.page-cta) { width: calc(100% - 32px); }
  .ananda-parinama .ananda-parinama__leader-grid,
  .ananda-parinama .ananda-parinama__graduation-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ananda-parinama .ananda-parinama__portrait { max-height: 440px; }
  .ananda-parinama .ananda-parinama__module > summary { padding: 16px; }
  .ananda-parinama .ananda-parinama__module-copy { padding: 0 16px 16px; }
  article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-cta,
  .ananda-parinama .ananda-parinama__cta { width: 100%; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  article.ananda-education-detail__article:has(.ananda-parinama) .ananda-parinama__hero-cta,
  .ananda-parinama .ananda-parinama__cta { transition: none; }
}
