/*
  Paṇatā v2.0.0 RC4 — Positioning & Editorial Consistency
  Narrow corrective layer. Preserves the approved v2.0/RC3 visual system.
*/

/* Homepage positioning and equation hierarchy */
body.rc4-home .rc4-home-intro {
  max-width: 700px;
}

body.rc4-home .rc4-value-equation {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  transform: translateX(-2%) !important;
  color: #5f4528 !important;
  text-align: center !important;
  opacity: 1 !important;
}

body.rc4-home .rc4-value-equation .rc4-equation-line {
  font-size: clamp(15px, 1.15vw, 21px) !important;
  line-height: 1.25 !important;
  letter-spacing: .22em !important;
  opacity: .94 !important;
  white-space: nowrap !important;
}

body.rc4-home .rc4-value-equation .rc4-equation-equals {
  font-size: clamp(20px, 1.4vw, 28px) !important;
  line-height: 1 !important;
  opacity: .92 !important;
}

/* Avoid a first-screen crop while preserving the existing hero composition. */
body.rc4-home main > section:first-of-type,
body.rc4-home .v2-home-hero,
body.rc4-home .hero-body {
  scroll-margin-top: 170px;
}

/* Philosophy VII: restore the shared chapter-marker grammar. */
body.rc4-philosophy .rc4-technology-section {
  position: relative !important;
}

body.rc4-philosophy .rc4-tech-marker-original {
  display: none !important;
}

body.rc4-philosophy .rc4-tech-marker-rebuilt {
  position: absolute !important;
  z-index: 4 !important;
  top: clamp(54px, 8vh, 96px) !important;
  left: clamp(28px, 6.6vw, 118px) !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  color: #9a6b2f !important;
  font-family: var(--sans, Arial, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.rc4-philosophy .rc4-tech-marker-rebuilt::after {
  content: "";
  order: 1;
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: .78;
}

body.rc4-philosophy .rc4-tech-marker-rebuilt .rc4-marker-title {
  order: 2;
  color: #183b2c;
}

body.rc4-philosophy .rc4-tech-quote {
  font-size: .90em !important;
}

/* Manifesto: one stable numeral system on every declaration. */
body.rc4-manifesto .rc4-manifesto-declaration {
  position: relative !important;
  overflow: hidden !important;
}

body.rc4-manifesto .rc4-manifesto-number,
body.rc4-manifesto .rc4-manifesto-number-existing {
  position: absolute !important;
  z-index: 2 !important;
  top: clamp(48px, 8vh, 94px) !important;
  right: clamp(34px, 6vw, 110px) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--serif, Georgia, serif) !important;
  font-size: clamp(88px, 9vw, 152px) !important;
  font-weight: 400 !important;
  line-height: .82 !important;
  letter-spacing: -.04em !important;
  pointer-events: none !important;
  opacity: .42 !important;
  color: #b99a70 !important;
}

body.rc4-manifesto .rc4-manifesto-declaration.rc4-dark .rc4-manifesto-number,
body.rc4-manifesto .rc4-manifesto-declaration.rc4-dark .rc4-manifesto-number-existing {
  color: #a77a37 !important;
  opacity: .44 !important;
}

body.rc4-manifesto .rc4-manifesto-heading {
  max-width: calc(100% - clamp(150px, 14vw, 240px)) !important;
  font-size: clamp(54px, 5.15vw, 90px) !important;
  line-height: .99 !important;
  letter-spacing: -.025em !important;
}

body.rc4-manifesto .rc4-manifesto-support {
  opacity: .84 !important;
}

@media (max-width: 900px) {
  body.rc4-philosophy .rc4-tech-marker-rebuilt {
    position: static !important;
    margin: 30px 24px 18px !important;
  }

  body.rc4-manifesto .rc4-manifesto-number,
  body.rc4-manifesto .rc4-manifesto-number-existing {
    top: 34px !important;
    right: 24px !important;
    font-size: clamp(66px, 18vw, 104px) !important;
  }

  body.rc4-manifesto .rc4-manifesto-heading {
    max-width: calc(100% - 90px) !important;
    font-size: clamp(42px, 10vw, 66px) !important;
  }
}
