/*
 * Darja Rihla - Health & Performance
 * Page-specific human operating layer theme
 * Stable centered layout revision
 */

body.dr-page-health-performance,
body.dr-page-health-and-performance,
.dr-page-health {
  --hp-bg: #07110e;
  --hp-bg-2: #0b1712;
  --hp-surface: rgba(245, 232, 201, 0.055);
  --hp-surface-strong: rgba(245, 232, 201, 0.095);
  --hp-border: rgba(207, 181, 119, 0.18);
  --hp-border-soft: rgba(163, 184, 136, 0.16);
  --hp-text: #d8d0bd;
  --hp-text-soft: #aeb8aa;
  --hp-heading: #f4ead2;
  --hp-gold: #c9a85d;
  --hp-gold-soft: rgba(201, 168, 93, 0.22);
  --hp-sage: #9faf87;
  --hp-olive: #6f7f55;
  --hp-bronze: #9a6b3f;
  --hp-shadow: rgba(0, 0, 0, 0.42);
  --hp-warm-glow: rgba(201, 168, 93, 0.16);
  --hp-green-glow: rgba(139, 166, 115, 0.14);
}

body.dr-page-health-performance,
body.dr-page-health-and-performance {
  --dr-bg: var(--hp-bg);
  --dr-bg-alt: var(--hp-bg-2);
  --dr-bg-soft: #102019;
  --dr-bg-deep: #050d0a;
  --dr-panel: var(--hp-surface);
  --dr-panel-strong: var(--hp-surface-strong);
  --dr-border: var(--hp-border);
  --dr-border-soft: var(--hp-border-soft);
  --dr-text: var(--hp-text);
  --dr-text-soft: var(--hp-text-soft);
  --dr-text-muted: #98a18f;
  --dr-heading: var(--hp-heading);
  --dr-gold: var(--hp-gold);
  --dr-cyan: var(--hp-sage);
  --dr-cyan-2: var(--hp-olive);
  --dr-accent: var(--hp-gold);
  --dr-accent-2: var(--hp-sage);
  --dr-page-glow: var(--hp-green-glow);
  --dr-page-grid: rgba(163, 184, 136, 0.035);
  background:
    radial-gradient(circle at 16% 8%, var(--hp-warm-glow), transparent 29rem),
    radial-gradient(circle at 88% 14%, var(--hp-green-glow), transparent 30rem),
    linear-gradient(180deg, var(--hp-bg) 0%, var(--hp-bg-2) 52%, #050d0a 100%);
  color: var(--hp-text);
}

body.dr-page-health-performance .wp-block-post-content,
body.dr-page-health-and-performance .wp-block-post-content {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  overflow-x: clip;
}

body.dr-page-health-performance .wp-block-post-content > .dr-page-health,
body.dr-page-health-and-performance .wp-block-post-content > .dr-page-health {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.dr-page-health,
.dr-page-health *,
.dr-page-health *::before,
.dr-page-health *::after {
  box-sizing: border-box;
}

.dr-page-health {
  --dr-health-bg: var(--hp-bg);
  --dr-health-bg-soft: var(--hp-bg-2);
  --dr-health-panel: var(--hp-surface);
  --dr-health-panel-strong: var(--hp-surface-strong);
  --dr-health-text: var(--hp-text);
  --dr-health-muted: var(--hp-text-soft);
  --dr-health-heading: var(--hp-heading);
  --dr-health-gold: var(--hp-gold);
  --dr-health-bronze: var(--hp-bronze);
  --dr-health-olive: var(--hp-olive);
  --dr-health-sage: var(--hp-sage);
  --dr-health-ember: var(--hp-bronze);
  --dr-health-blood: #5c3328;
  --dr-health-border: var(--hp-border);
  --dr-health-glow: var(--hp-warm-glow);
  --dr-health-recovery-glow: var(--hp-green-glow);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(0.65rem, 2vw, 1.4rem) clamp(0.625rem, 2.6vw, 1.35rem) clamp(3rem, 8vw, 5.5rem);
  overflow-x: clip;
  color: var(--dr-health-text);
}

.dr-page-health::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: clamp(1.1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 12% 4%, rgba(154, 107, 63, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 8%, var(--dr-health-recovery-glow), transparent 30rem),
    radial-gradient(circle at 42% 47%, rgba(201, 168, 93, 0.06), transparent 42rem),
    linear-gradient(150deg, #050d0a 0%, var(--dr-health-bg) 44%, var(--dr-health-bg-soft) 100%);
  border: 1px solid var(--hp-border);
  box-shadow: 0 2rem 5.5rem var(--hp-shadow);
  pointer-events: none;
}

.dr-page-health::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: clamp(1rem, 4vw, 2.8rem);
  width: clamp(5rem, 18vw, 12rem);
  height: 2px;
  background: linear-gradient(90deg, var(--dr-health-gold), transparent);
  box-shadow: 0 0 1.35rem var(--dr-health-glow);
  pointer-events: none;
}

.dr-page-health .alignfull,
.dr-page-health .alignwide {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.dr-page-health .dr-post-header {
  position: relative;
  overflow: hidden;
  width: min(100%, 1280px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto clamp(1rem, 3vw, 1.7rem);
  padding: clamp(2.1rem, 7vw, 4.8rem) clamp(1.15rem, 6vw, 4.2rem) clamp(1.7rem, 5vw, 3.5rem);
  background:
    linear-gradient(130deg, var(--hp-surface-strong), rgba(245, 232, 201, 0.02)),
    radial-gradient(circle at 10% 100%, rgba(154, 107, 63, 0.16), transparent 40%),
    radial-gradient(circle at 93% 0%, var(--hp-green-glow), transparent 38%);
  border: 1px solid var(--dr-health-border);
  border-radius: clamp(1rem, 2.5vw, 1.55rem);
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 210, 0.065),
    0 1.2rem 3.5rem rgba(0, 0, 0, 0.17);
}

.dr-page-health .dr-post-header::after {
  content: "";
  position: absolute;
  left: clamp(1.15rem, 6vw, 4.2rem);
  bottom: 0;
  width: clamp(4.5rem, 20vw, 10rem);
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--dr-health-ember), var(--dr-health-gold), var(--dr-health-sage));
}

.dr-page-health .dr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 clamp(0.9rem, 2vw, 1.2rem);
  color: var(--dr-health-sage);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.45;
  text-transform: uppercase;
}

.dr-page-health .dr-kicker::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, var(--dr-health-gold), var(--dr-health-sage));
}

.dr-page-health h1 {
  max-width: 13ch;
  margin: 0 0 clamp(0.9rem, 2vw, 1.25rem);
  color: var(--dr-health-heading);
  font-size: clamp(2.35rem, 9vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.dr-page-health .dr-post-intro {
  max-width: 53rem;
  margin: 0 0 clamp(0.8rem, 2vw, 1.1rem);
  color: var(--dr-health-heading);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.68;
}

.dr-page-health .dr-health-lead {
  max-width: 56rem;
  margin: 0;
  color: var(--dr-health-muted);
  font-size: clamp(0.98rem, 1.45vw, 1.06rem);
  line-height: 1.78;
}

.dr-page-health .dr-health-principles {
  display: grid;
  gap: 0.7rem;
  margin-top: clamp(1.45rem, 4vw, 2.35rem);
}

.dr-page-health .dr-health-principle {
  min-width: 0;
  padding: 0.9rem 0.95rem;
  background: rgba(7, 17, 14, 0.44);
  border: 1px solid var(--hp-border);
  border-radius: 0.7rem;
}

.dr-page-health .dr-health-principle span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dr-health-sage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dr-page-health .dr-health-principle strong {
  color: var(--dr-health-heading);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.35;
}

.dr-page-health .dr-post-body {
  width: min(100%, 1060px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.dr-page-health .dr-post-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 clamp(0.9rem, 2.2vw, 1.3rem);
  padding: clamp(1.35rem, 4vw, 2.2rem) clamp(1.05rem, 4.5vw, 2.35rem);
  background:
    linear-gradient(122deg, var(--dr-health-panel), rgba(245, 232, 201, 0.018)),
    radial-gradient(circle at 100% 0%, rgba(201, 168, 93, 0.045), transparent 36%);
  border: 1px solid var(--hp-border);
  border-radius: clamp(0.8rem, 2vw, 1.15rem);
  box-shadow: inset 0 1px 0 rgba(244, 234, 210, 0.025);
}

.dr-page-health .dr-post-section::before {
  content: "";
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.25rem);
  left: 0;
  width: 3px;
  height: clamp(1.65rem, 4vw, 2.5rem);
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--dr-health-gold), var(--dr-health-bronze));
}

.dr-page-health .dr-section-label {
  margin: 0 0 0.65rem;
  color: var(--dr-health-sage);
  font-size: clamp(0.68rem, 1.25vw, 0.73rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.dr-page-health .dr-post-section h2 {
  max-width: 32ch;
  margin: 0 0 clamp(0.75rem, 2vw, 1.05rem);
  color: var(--dr-health-heading);
  font-size: clamp(1.38rem, 3.8vw, 2.08rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.17;
  text-wrap: balance;
}

.dr-page-health p {
  max-width: 72ch;
  margin: 0 0 1rem;
  color: var(--dr-health-text);
  font-size: clamp(0.98rem, 1.35vw, 1.06rem);
  line-height: 1.78;
}

.dr-page-health p:last-child {
  margin-bottom: 0;
}

.dr-page-health a {
  color: var(--dr-health-gold);
  font-weight: 570;
  text-decoration-color: var(--hp-gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.dr-page-health a:hover,
.dr-page-health a:focus-visible {
  color: var(--dr-health-heading);
  text-decoration-color: var(--dr-health-sage);
}

.dr-page-health a:focus-visible {
  outline: 2px solid var(--hp-gold);
  outline-offset: 0.2rem;
  border-radius: 0.15rem;
}

.dr-page-health .dr-health-thesis {
  margin: clamp(1.2rem, 3vw, 1.65rem) 0 0;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: linear-gradient(115deg, var(--hp-gold-soft), rgba(159, 175, 135, 0.09));
  border: 1px solid var(--dr-health-border);
  border-left: 3px solid var(--dr-health-gold);
  border-radius: 0.75rem;
}

.dr-page-health .dr-health-thesis-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--dr-health-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dr-page-health .dr-health-recovery,
.dr-page-health .dr-health-rhythm {
  background:
    linear-gradient(124deg, rgba(159, 175, 135, 0.095), rgba(245, 232, 201, 0.024)),
    radial-gradient(circle at 100% 0%, var(--hp-green-glow), transparent 38%);
  border-color: var(--hp-border-soft);
}

.dr-page-health .dr-health-recovery::before,
.dr-page-health .dr-health-rhythm::before {
  background: linear-gradient(180deg, var(--dr-health-sage), var(--dr-health-olive));
}

.dr-page-health .dr-health-legacy {
  background:
    linear-gradient(122deg, rgba(201, 168, 93, 0.11), rgba(245, 232, 201, 0.025)),
    radial-gradient(circle at 100% 0%, rgba(154, 107, 63, 0.1), transparent 38%);
}

.dr-page-health .dr-post-image {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: clamp(1.3rem, 3vw, 1.8rem) 0 0;
  overflow: hidden;
  background: rgba(5, 13, 10, 0.56);
  border: 1px solid var(--hp-border);
  border-radius: clamp(0.65rem, 2vw, 0.95rem);
}

.dr-page-health .dr-post-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 37rem;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.dr-page-health .dr-post-image figcaption {
  padding: 0.75rem clamp(0.8rem, 3vw, 1.1rem) 0.82rem;
  color: var(--dr-health-muted);
  font-size: clamp(0.82rem, 1.15vw, 0.9rem);
  font-style: normal;
  line-height: 1.55;
  border-top: 1px solid var(--hp-border);
}

.dr-page-health .dr-health-route-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: clamp(1.3rem, 3vw, 1.7rem);
}

.dr-page-health .dr-health-route {
  display: block;
  min-width: 0;
  padding: clamp(0.95rem, 3vw, 1.2rem);
  color: var(--dr-health-text);
  text-decoration: none;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 0.75rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dr-page-health .dr-health-route:hover,
.dr-page-health .dr-health-route:focus-visible {
  color: var(--dr-health-text);
  background: var(--hp-surface-strong);
  border-color: var(--hp-gold-soft);
  transform: translateY(-2px);
}

.dr-page-health .dr-health-route span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dr-health-sage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dr-page-health .dr-health-route strong {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--dr-health-heading);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
}

.dr-page-health .dr-health-route p {
  color: var(--dr-health-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.dr-page-health [data-dr-section="continue-journey"],
.dr-page-health .dr-health-cta {
  margin-top: clamp(1.35rem, 4vw, 2.25rem);
  padding: clamp(1.65rem, 5vw, 3rem) clamp(1.1rem, 5vw, 2.8rem);
  background:
    linear-gradient(126deg, rgba(201, 168, 93, 0.16), rgba(159, 175, 135, 0.11)),
    radial-gradient(circle at 6% 100%, rgba(154, 107, 63, 0.15), transparent 38%),
    var(--dr-health-bg-soft);
  border-color: var(--hp-gold-soft);
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 210, 0.065),
    0 1.5rem 3.5rem rgba(0, 0, 0, 0.15);
}

.dr-page-health [data-dr-section="continue-journey"]::before,
.dr-page-health .dr-health-cta::before {
  top: 0;
  left: clamp(1.1rem, 5vw, 2.8rem);
  width: clamp(4.5rem, 18vw, 9rem);
  height: 3px;
  background: linear-gradient(90deg, var(--dr-health-gold), var(--dr-health-sage));
  border-radius: 0 0 999px 999px;
}

.dr-page-health .dr-health-cta h2 {
  font-size: clamp(1.62rem, 4.5vw, 2.42rem);
}

.dr-page-health .dr-health-cta-note {
  color: var(--dr-health-heading);
  font-weight: 600;
}

.dr-page-health .dr-health-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: clamp(1.3rem, 3vw, 1.65rem);
}

.dr-page-health .dr-health-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  color: #151911;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(130deg, var(--dr-health-gold), #dbc080);
  border: 1px solid var(--hp-gold-soft);
  border-radius: 999px;
  max-width: 100%;
}

.dr-page-health .dr-health-button:hover,
.dr-page-health .dr-health-button:focus-visible {
  color: #151911;
  background: linear-gradient(130deg, #d3b26c, #e5ca90);
  text-decoration: none;
}

.dr-page-health .dr-health-button-secondary {
  color: var(--dr-health-heading);
  background: var(--hp-surface);
  border-color: var(--hp-border);
}

.dr-page-health .dr-health-button-secondary:hover,
.dr-page-health .dr-health-button-secondary:focus-visible {
  color: var(--dr-health-heading);
  background: var(--hp-surface-strong);
}

@media (min-width: 680px) {
  .dr-page-health .dr-health-principles,
  .dr-page-health .dr-health-route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dr-page-health .dr-health-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 920px) {
  .dr-page-health {
    padding-top: 1.6rem;
    padding-inline: clamp(1.25rem, 3vw, 2.15rem);
  }

  .dr-page-health .dr-post-section {
    padding-left: 2.45rem;
    padding-right: 2.45rem;
  }
}
