/* ============================================================
   Rites page preview-match body
   Shared site header/footer remain controlled by global styles.
   ============================================================ */

.rites-page {
  --rites-paper: #fcf7e7;
  --rites-cream: #fffaf0;
  --rites-ink: #33271f;
  --rites-muted: #62574b;
  --rites-line: rgba(106, 76, 43, .20);
  --rites-line-strong: rgba(106, 76, 43, .32);
  --rites-sage: #737d55;
  --rites-sage-deep: #59613c;
  --rites-gold: #c3a662;
  --rites-check: #aa8747;
  --rites-x: #9b6542;
  --rites-radius: 18px;
  color: var(--rites-ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(198, 169, 98, .10), transparent 21rem),
    radial-gradient(circle at 90% 12%, rgba(115, 125, 85, .07), transparent 24rem),
    var(--rites-paper);
}

.rites-page .container {
  width: min(1375px, calc(100% - 3.6rem));
}

.rites-page h1,
.rites-page h2,
.rites-page h3 {
  margin: 0;
  color: var(--rites-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.022em;
}

.rites-page p,
.rites-page li {
  color: var(--rites-muted);
}

.rites-page img {
  max-width: 100%;
}

.rites-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.72rem;
  padding: .68rem 1.28rem;
  border: 1px solid var(--rites-line-strong);
  border-radius: 999px;
  color: var(--rites-ink);
  background: rgba(255, 250, 240, .70);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rites-button:hover,
.rites-button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.rites-button--primary {
  color: #fff9ed;
  border-color: rgba(65, 70, 39, .75);
  background: linear-gradient(180deg, rgba(114, 122, 78, .98), rgba(62, 66, 37, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 11px 22px rgba(67, 71, 39, .16);
}

/* Hero */

.rites-hero {
  padding: 2.15rem 0 1rem;
}

.rites-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(470px, .94fr);
  align-items: center;
  gap: 3.5rem;
}

.rites-hero__copy {
  max-width: 42rem;
}

.rites-hero h1 {
  font-size: clamp(3.8rem, 5vw, 5.35rem);
  font-weight: 700;
  line-height: .97;
}

.rites-lead {
  max-width: 38rem;
  margin: 1.18rem 0 0;
  font-size: 1.12rem;
  line-height: 1.56;
}

.rites-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.45rem;
}

.rites-hero__art {
  margin: 0;
  border: 1px solid var(--rites-line);
  border-radius: 1.75rem;
  background: rgba(255, 249, 237, .55);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 14px 30px rgba(79, 58, 34, .055);
}

.rites-hero__art img {
  display: block;
  width: 100%;
}

.rites-hero__art figcaption {
  margin: -.15rem 0 1rem;
  color: var(--rites-muted);
  font-size: 1rem;
  font-weight: 650;
}

/* Divider */

.rites-divider {
  padding: .85rem 0 .4rem;
}

.rites-divider img {
  display: block;
  width: 100%;
  height: 4.1rem;
  object-fit: contain;
}

/* Shared panels */

.rites-panel,
.rites-principle-card,
.rites-threshold-card,
.rites-whole__panel,
.rites-consent-cta__panel {
  border: 1px solid var(--rites-line);
  border-radius: var(--rites-radius);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, .63), rgba(252, 247, 231, .45));
  box-shadow: 0 9px 24px rgba(79, 58, 34, .035);
}

/* Intro */

.rites-attention {
  padding: .15rem 0 .95rem;
}

.rites-section-heading {
  max-width: 58rem;
  margin: 0 auto .9rem;
  text-align: center;
}

.rites-section-heading h2 {
  font-size: clamp(2.3rem, 3.25vw, 3.15rem);
  line-height: 1.06;
}

.rites-section-heading p {
  max-width: 54rem;
  margin: .55rem auto 0;
  font-size: 1.04rem;
  font-weight: 550;
  line-height: 1.45;
}

.rites-section-heading--intro {
  max-width: 58rem;
  margin-bottom: 1.05rem;
}

.rites-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rites-principle-card {
  display: grid;
  grid-template-columns: 4.9rem minmax(0, 1fr);
  align-items: center;
  min-height: 8.7rem;
  padding: 1rem 1.18rem;
  gap: .95rem;
}

.rites-principle-card img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.rites-principle-card h3 {
  font-size: 1.65rem;
  line-height: 1.04;
}

.rites-principle-card p {
  margin: .34rem 0 0;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Can / cannot */

.rites-can-cannot {
  padding: .65rem 0 .85rem;
}

.rites-can-cannot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.rites-panel--list {
  padding: 1.05rem 1.45rem 1.15rem;
  min-height: 20.8rem;
}

.rites-panel--list h2 {
  text-align: center;
  font-size: 2.25rem;
  line-height: 1.05;
}

.rites-check-list,
.rites-x-list {
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}

.rites-check-list li,
.rites-x-list li {
  position: relative;
  min-height: 2rem;
  margin: .45rem 0;
  padding-left: 2.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.rites-check-list li::before,
.rites-x-list li::before {
  position: absolute;
  left: .1rem;
  top: -.05rem;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.rites-check-list li::before {
  content: "✓";
  color: var(--rites-check);
}

.rites-x-list li::before {
  content: "×";
  color: var(--rites-x);
}

.rites-center-sprig {
  display: grid;
  place-items: center;
}

.rites-center-sprig img {
  height: 19.5rem;
  object-fit: contain;
}

/* Thresholds */

.rites-thresholds {
  padding: .15rem 0 .7rem;
}

.rites-threshold-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .78rem 1rem;
}

.rites-threshold-card {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: .75rem;
  align-items: center;
  min-height: 6.55rem;
  padding: .72rem .95rem;
}

.rites-threshold-card img {
  grid-row: 1 / 3;
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
  justify-self: center;
}

.rites-threshold-card h3 {
  font-size: 1.42rem;
  line-height: 1.05;
}

.rites-threshold-card p {
  margin: .18rem 0 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Bottom middle grids */

.rites-bottom-grids {
  padding: .55rem 0 .8rem;
}

.rites-bottom-grids__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rites-anatomy,
.rites-modes {
  min-height: 15rem;
  padding: .95rem 1.1rem 1.05rem;
  text-align: center;
}

.rites-anatomy h2,
.rites-modes h2 {
  font-size: 2.05rem;
  line-height: 1.06;
}

.rites-anatomy__path {
  display: block;
  width: 95%;
  height: 3.15rem;
  object-fit: contain;
  margin: .2rem auto -.05rem;
}

.rites-anatomy__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.rites-anatomy__steps strong {
  display: block;
  color: var(--rites-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.06;
}

.rites-anatomy__steps p {
  margin: .38rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.28;
}

.rites-modes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .8rem;
}

.rites-modes__grid img {
  display: block;
  width: 4.3rem;
  height: 4.3rem;
  object-fit: contain;
  margin: 0 auto .35rem;
}

.rites-modes__grid h3 {
  font-size: 1.28rem;
}

.rites-modes__grid p {
  margin: .25rem auto 0;
  max-width: 9rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.28;
}

/* Ethics */

.rites-ethics {
  padding: .55rem 0 .8rem;
}

.rites-ethics__panel {
  padding: .7rem 1.05rem 1rem;
  text-align: center;
}

.rites-ethics__panel h2 {
  font-size: 2.3rem;
  line-height: 1.02;
}

.rites-ethics__panel > p {
  max-width: 74rem;
  margin: .18rem auto .75rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.32;
}

.rites-ethics__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .55rem;
}

.rites-ethics__grid div {
  min-width: 0;
}

.rites-ethics__grid img {
  display: block;
  width: 3.7rem;
  height: 3.7rem;
  object-fit: contain;
  margin: 0 auto .28rem;
}

.rites-ethics__grid span {
  display: block;
  color: var(--rites-muted);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.14;
}

/* Wholeness */

.rites-whole {
  padding: .25rem 0 .7rem;
}

.rites-whole__panel {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  min-height: 8.7rem;
  padding: .7rem 1.3rem;
}

.rites-whole__panel img {
  display: block;
  width: 17rem;
  max-height: 7.6rem;
  object-fit: contain;
}

.rites-whole__panel h2 {
  text-align: center;
  font-size: 2.3rem;
  line-height: 1.05;
}

.rites-whole__panel p {
  max-width: 67rem;
  margin: .35rem auto 0;
  text-align: center;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.34;
}

/* Consent CTA */

.rites-consent-cta {
  padding: .25rem 0 1.6rem;
}

.rites-consent-cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, .82fr) minmax(35rem, 1.18fr);
  align-items: center;
  gap: 1rem;
  min-height: 7.8rem;
  padding: .95rem 1.7rem;
  overflow: hidden;
}

.rites-consent-cta__copy {
  position: relative;
  z-index: 2;
}

.rites-consent-cta__copy h2 {
  font-size: 2.05rem;
  line-height: 1.05;
}

.rites-consent-cta__copy p {
  max-width: 31rem;
  margin: .34rem 0 0;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.32;
}

.rites-consent-cta__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .72rem;
}

.rites-consent-cta__actions .rites-button {
  min-height: 2.55rem;
  padding: .62rem 1.1rem;
  font-size: .85rem;
}

.rites-consent-cta__flourish {
  position: absolute;
  z-index: 1;
  width: 8.2rem;
  max-width: 24%;
  pointer-events: none;
}

.rites-consent-cta__flourish--left {
  left: -2.3rem;
  bottom: -2.1rem;
}

.rites-consent-cta__flourish--right {
  right: -2rem;
  bottom: -2.4rem;
}

/* Responsive */

@media (max-width: 1180px) {
  .rites-page .container {
    width: min(1020px, calc(100% - 2rem));
  }

  .rites-hero__grid,
  .rites-can-cannot__grid,
  .rites-bottom-grids__grid,
  .rites-consent-cta__panel {
    grid-template-columns: 1fr;
  }

  .rites-center-sprig img {
    height: 12rem;
  }

  .rites-threshold-grid,
  .rites-ethics__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rites-consent-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .rites-page .container {
    width: min(100% - 1.2rem, 620px);
  }

  .rites-hero h1 {
    font-size: clamp(3rem, 13vw, 4rem);
  }

  .rites-actions,
  .rites-consent-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rites-button {
    width: 100%;
  }

  .rites-principles,
  .rites-threshold-grid,
  .rites-anatomy__steps,
  .rites-modes__grid,
  .rites-ethics__grid,
  .rites-whole__panel {
    grid-template-columns: 1fr;
  }

  .rites-principle-card,
  .rites-threshold-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rites-principle-card img,
  .rites-threshold-card img,
  .rites-whole__panel img {
    margin: 0 auto;
  }

  .rites-whole__panel {
    text-align: center;
  }

  .rites-ethics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v38 Rites rhythm polish: add breathing room between major sections and normalize rounded artwork. */
.rites-attention,
.rites-can-cannot,
.rites-thresholds,
.rites-bottom-grids,
.rites-ethics,
.rites-whole,
.rites-consent-cta {
  padding-top: clamp(1.6rem, 3vw, 2.55rem) !important;
  padding-bottom: clamp(1.6rem, 3vw, 2.55rem) !important;
}
.rites-divider {
  padding-top: clamp(1.1rem, 2.2vw, 1.8rem) !important;
  padding-bottom: clamp(.9rem, 1.8vw, 1.4rem) !important;
}
.rites-hero__art, .rites-hero__art img, .rites-whole__panel img {
  border-radius: var(--uh-image-radius, 2rem) !important;
}
.rites-principle-card img, .rites-threshold-card img, .rites-ethics__grid img, .rites-modes__grid img {
  border-radius: 999px !important;
  background: rgba(246,234,197,.58);
  border: 1px solid rgba(163,128,72,.18);
  padding: .42rem;
  box-sizing: border-box;
}
