/* ===========================
   ZenEnergy – Room 3 Styling
   =========================== */

/* ---------- ROOT TOKENS ---------- */
:root {
  /* Background */
  --ze3-bg: #1C2330;                 /* Indigo-ink */

  /* Warm text palette (Chamber 3–style) */
  --ze3-text-main:  #F0E0BB;         /* Main body text */
  --ze3-text-muted: #C9B28A;         /* Muted / notes */

  /* Accents */
  --ze3-accent-gold:  #F5D38A;       /* Strong gold */
  --ze3-accent-cream: #F9E9C4;       /* Light cream */

  --ze3-border-soft: #3A4250;

  /* Halo */
  --ze3-halo-color: rgba(245, 223, 168, 0.4);
  --ze3-halo-radius: 520px;

  /* Typography */
  --ze3-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ze3-font-heading: "Georgia", "Times New Roman", serif;

  --ze3-font-size-base: 18px;
  --ze3-font-size-small: 15px;
  --ze3-font-size-heading: 24px;
  --ze3-font-size-subheading: 20px;
  --ze3-font-size-plaque: 22px;

  --ze3-line-height-body: 1.6;

  --ze3-page-max-width: 920px;
  --ze3-section-spacing: 3.6rem;
  --ze3-block-spacing: 1.5rem;

  /* Buttons / cards */
  --ze3-button-bg: #2C3442;
  --ze3-button-bg-hover: #383F4D;
  --ze3-button-text: #F5F2EC;
  --ze3-button-radius: 999px;

  --ze3-card-bg: rgba(13, 17, 27, 0.96);
  --ze3-card-border-radius: 18px;
  --ze3-card-padding: 1.5rem;

  --ze3-shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.35);

  /* Font scales for zoom */
  --font-scale-normal: 1;
  --font-scale-zoomed: 1.12;
}

/* Illuminated section divider */
.room3-section::after {
  content: "";
  display: block;
  width: 320px;                 /* wider */
  height: 2px;                  /* thicker */
  margin: 3rem auto 2rem;       /* more breathing room */
  border-radius: 2px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(245, 211, 138, 0.55),
    rgba(245, 211, 138, 0.9),   /* strong warm gold center */
    rgba(245, 211, 138, 0.55),
    transparent
  );

  filter: blur(0.4px);          /* softens edges very lightly */
  opacity: 0.9;
}

/* Make the divider under Foundational Identity a touch brighter and closer */
.room3-section[aria-label="Foundational Identity"]::after {
  width: 360px;
  margin: 2.6rem auto 2.1rem;
  background: linear-gradient(
    to right,
    transparent,
    rgba(245, 211, 138, 0.6),
    rgba(245, 211, 138, 0.95),
    rgba(245, 211, 138, 0.6),
    transparent
  );
}
/* Soft panel for Foundational Identity (lighter than plaque) */
.room3-foundational-panel {
  max-width: 860px;
  margin: 1.8rem auto 0;
  padding: 1.3rem 2.2rem 1.6rem;
  border-radius: 18px;

  background: radial-gradient(
    circle at top,
    rgba(245, 211, 138, 0.12),
    rgba(10, 14, 22, 0.96)
  );

  border: 1px solid rgba(245, 211, 138, 0.26);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px) saturate(110%);
}

.room3-section[aria-label="Room 3 plaque"]::after,
.room3-section[aria-label="Opening"]::after,
.room3-section[aria-label="Closing"]::after {
  display: none;
}


/* No divider under plaque or final closing */
.room3-section[aria-label="Room 3 plaque"]::after,
.room3-section[aria-label="Closing"]::after {
  display: none;
}

/* ---------- GLOBAL LAYOUT ---------- */

body.room3 {
  margin: 0;
  padding: 0;
  background-color: var(--ze3-bg);
  color: var(--ze3-text-main);
  font-family: var(--ze3-font-body);
  font-size: calc(18px * var(--font-scale-normal));
  line-height: var(--ze3-line-height-body);
}

/* When zoom is on */
body.room3.zoom-on {
  font-size: calc(18px * var(--font-scale-zoomed));
}

.room3-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.room3-main {
  width: 100%;
  max-width: var(--ze3-page-max-width);
  padding: 4.5rem 1.5rem 4rem;
  box-sizing: border-box;
}

/* ---------- TOP BAR ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.25rem;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  box-sizing: border-box;
  z-index: 10010;

  background: linear-gradient(
    to bottom,
    rgba(7, 10, 18, 0.95),
    rgba(7, 10, 18, 0.78),
    transparent
  );
}

/* ---------- SECTION TYPOGRAPHY ---------- */

.room3-section {
  margin-bottom: var(--ze3-section-spacing);
}

/* Extra breathing room between plaque and the Illumination section */
.room3-section[aria-label="Opening"] {
  margin-top: 2.2rem;
}

/* Keep Dharma Principles visually paired with Why ZenEnergy section */
.room3-section[aria-label="Dharma Principles of ZenEnergy Organization"] {
  margin-top: 2.0rem;
}
/* Give more space before the Support / Donorbox block */
.room3-section[aria-label="Support ZenEnergy Organization"] {
  margin-top: 3.8rem;
}

.room3-section h2 {
  font-family: var(--ze3-font-heading);
  font-size: var(--ze3-font-size-heading);

  /* small top margin under divider, tighter to text below */
  margin-top: 0.6rem;
  margin-bottom: 0.35rem;

  color: var(--ze3-accent-gold);
  text-align: center;
}
/* Foundational sections carry slightly more vertical air */
.room3-section[aria-label="Founding Purpose"] {
  margin-top: 2.4rem;
  margin-bottom: 3rem;
}


.room3-section h3 {
  font-family: var(--ze3-font-heading);
  font-size: var(--ze3-font-size-subheading);
  margin: 0 0 0.5rem;
  color: var(--ze3-accent-cream);
  text-align: center;
}

.room3-section p {
  margin: 0 0 0.75rem;
}

.room3-text-muted {
  color: var(--ze3-text-muted);
  font-size: var(--ze3-font-size-small);
}
/* ---------- VALUES CHARTER LIST ---------- */

.room3-values-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem auto 0;
  max-width: 820px;
}

.room3-values-list li {
  margin-bottom: 1.1rem;
  line-height: 1.55;
  color: var(--ze3-text-main);
}

.room3-values-list li strong {
  color: var(--ze3-accent-cream);
}
/* ---------- GOVERNANCE IDENTITY LIST ---------- */

.room3-governance-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem auto 0;
  max-width: 820px;
}

.room3-governance-list li {
  margin-bottom: 1.1rem;
  line-height: 1.55;
  color: var(--ze3-text-main);
}

.room3-governance-list li strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ze3-accent-cream);
}
/* ---------- NONPROFIT BOUNDARIES LIST ---------- */

.room3-boundaries-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem auto 0;
  max-width: 820px;
}

.room3-boundaries-list li {
  margin-bottom: 1.1rem;
  line-height: 1.55;
  color: var(--ze3-text-main);
}

.room3-boundaries-list li strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ze3-accent-cream);
}
/* ---------- CLARITY METHOD LIST ---------- */

.room3-method-list {
  counter-reset: clarity-step;
  list-style: none;
  padding: 0;
  margin: 1.4rem auto 0;
  max-width: 820px;
}

.room3-method-list li {
  position: relative;
  margin-bottom: 1.3rem;
  padding-left: 2.4rem;
  line-height: 1.6;
  color: var(--ze3-text-main);
}

/* Numbered steps with a small illuminated circle */
.room3-method-list li::before {
  counter-increment: clarity-step;
  content: counter(clarity-step);

  position: absolute;
  left: 0;
  top: 0.1rem;

  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
  font-weight: 600;

  color: #1c2330;
  background: radial-gradient(
    circle at top,
    rgba(245, 211, 138, 0.9),
    rgba(245, 211, 138, 0.6)
  );
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.room3-method-list li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ze3-accent-cream);
}
/* ---------- FOUNDING DOCTRINE LIST ---------- */

.room3-doctrine-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem auto 0;
  max-width: 820px;
}

.room3-doctrine-list li {
  margin-bottom: 1.15rem;
  line-height: 1.6;
  color: var(--ze3-text-main);
}

.room3-doctrine-list li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ze3-accent-cream);
}
/* ---------- FOUNDATIONAL IDENTITY LIST ---------- */

.room3-foundational-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem auto 0;
  max-width: 820px;
}

.room3-foundational-list li {
  margin-bottom: 1.15rem;
  line-height: 1.6;
  color: var(--ze3-text-main);
}

.room3-foundational-list li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ze3-accent-cream);
}

/* Extra breathing room between plaque and the Illumination section */
.room3-section[aria-label="Opening"] {
  margin-top: 1.4rem;
}

/* Pull Dharma Principles a bit closer to the Why ZenEnergy section */
.room3-section[aria-label="Dharma Principles of ZenEnergy Organization"] {
  margin-top: 1.8rem;
}
/* ---------- DHARMA PRINCIPLES LIST ---------- */

.room3-dharma-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem auto 0;
  max-width: 820px;
}

.room3-dharma-list li {
  margin-bottom: 1.15rem;
  line-height: 1.6;
  color: var(--ze3-text-main);
}

.room3-dharma-list li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ze3-accent-cream);
}

/* Give more space before the Support / Donorbox block */
.room3-section[aria-label="Support ZenEnergy Organization"] {
  margin-top: 3.6rem;
}
/* More breathing room around Public Benefit and Founder Statement */

/* Increase space after Public benefit before Founder Statement */
.room3-section[aria-label="Public benefit"] {
  margin-bottom: 2.8rem;
}

/* Center Founder Statement nicely between divider and Support block */
.room3-section[aria-label="Founder Statement"] {
  margin-top: 2.4rem;
  margin-bottom: 2.6rem;
}

/* ---------- TOP LOGO ---------- */

.room3-logo-section {
  margin-bottom: 1.5rem;
}

.room3-logo-wrapper {
  text-align: center;
}

.room3-logo-top {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: inline-block;

  /* keep full-square logo, no clipping */
  border-radius: 0;
  border: 1px solid var(--ze3-border-soft);
  background-color: #000;      /* keeps the black frame solid */
  box-shadow: var(--ze3-shadow-soft);
}

/* ---------- PLAQUE + PANEL ---------- */

.room3-plaque-wrapper {
  position: relative;
  text-align: center;
  margin: 2.2rem 0 calc(var(--ze3-section-spacing) - 0.25rem);
}

/* Inner glassy plaque panel */
.room3-plaque-panel {
  display: inline-block;
  padding: 0.85rem 2.4rem 1.15rem;  /* updated padding */
  border-radius: 18px;
  border: 1px solid rgba(245, 211, 138, 0.35);
  background: radial-gradient(
    circle at top,
    rgba(245, 211, 138, 0.22),
    rgba(10, 14, 22, 0.94)
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px) saturate(115%);
}

/* Plaque title text */
.room3-plaque-text {
  position: relative;
  z-index: 1;
  font-family: var(--ze3-font-heading);
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ze3-accent-gold);
  margin-bottom: 0.75rem;
}

/* Thin plaque lines above / below */
.room3-plaque-text::before,
.room3-plaque-text::after {
  content: "";
  display: block;
  width: 140px;
  height: 1px;
  margin: 0.75rem auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(249, 233, 196, 0.8),
    transparent
  );
  opacity: 0.8;
}

/* Principles fade-in under plaque */

.room3-principles {
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
}

.room3-principle {
  margin: 0.18rem 0;
  font-size: var(--ze3-font-size-small);
  /* slightly brighter than body, but softer than plaque */
  color: rgba(249, 233, 196, 0.85);

  opacity: 0;
  transform: translateY(10px);
  animation: room3PrincipleFadeUp 1.4s ease-out forwards;
}

/* gentle stagger */
.room3-principle-1 { animation-delay: 1.6s; }
.room3-principle-2 { animation-delay: 2.0s; }
.room3-principle-3 { animation-delay: 2.4s; }

@keyframes room3PrincipleFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  50% {
    opacity: 0.6;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes room3HaloSoftPulse {
  0% {
    opacity: 0.70;
    transform: translate(-50%, -40%) scale(0.92);
  }
  25% {
    opacity: 0.82;
    transform: translate(-50%, -40%) scale(1.02);
  }
  50% {
    opacity: 0.97;
    transform: translate(-50%, -40%) scale(1.12);
  }
  75% {
    opacity: 0.82;
    transform: translate(-50%, -40%) scale(1.02);
  }
  100% {
    opacity: 0.70;
    transform: translate(-50%, -40%) scale(0.92);
  }
}

/* ---------- PROGRAM GRID ---------- */

.room3-programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ze3-block-spacing);
}

.room3-program-card {
  background-color: var(--ze3-card-bg);
  padding: var(--ze3-card-padding);
  border-radius: var(--ze3-card-border-radius);
  border: 1px solid var(--ze3-border-soft);
  box-shadow: var(--ze3-shadow-soft);
}

/* Future offering – Clarity Sessions reads a little softer */
.room3-program-card-future {
  opacity: 0.88;
  filter: saturate(0.85);
  border-color: rgba(245, 211, 138, 0.32);
}
/* Title row + badge for future offerings */

.room3-program-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.room3-program-label-row h3 {
  margin: 0;
}

/* Small soft badge */
.room3-program-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: var(--ze3-font-size-small);

  font-weight: 500;          /* <— add this */
  letter-spacing: 0.05em;    /* <— slightly more refined tracking */
  text-transform: uppercase;

  border: 1px solid rgba(245, 211, 138, 0.5);
  color: rgba(245, 211, 138, 0.85);
  background: radial-gradient(
    circle at top,
    rgba(245, 211, 138, 0.18),
    rgba(10, 14, 22, 0.95)
  );
}


@media (min-width: 768px) {
  .room3-programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- SUPPORT BLOCK (DONORBOX) ---------- */

.room3-support {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--ze3-card-padding);
  border-radius: var(--ze3-card-border-radius);

  background: linear-gradient(
    135deg,
    rgba(245, 223, 168, 0.08),
    rgba(12, 16, 24, 0.96)
  );

  border: 1px solid var(--ze3-border-soft);
  box-shadow: var(--ze3-shadow-soft);
}

/* Inner wrapper to center Donorbox form */
.room3-dbox-wrapper {
  max-width: 520px;
  margin: 1.5rem auto 0;
}

.room3-dbox-wrapper dbox-widget,
.room3-dbox-wrapper iframe {
  width: 100%;
}

/* ---------- FOUNDER SIGNATURE ---------- */

.room3-founder-block {
  margin-top: var(--ze3-section-spacing);
  text-align: center;
}

.room3-founder-name {
  font-family: var(--ze3-font-heading);
  font-size: var(--ze3-font-size-subheading);
}

.room3-founder-title {
  font-size: var(--ze3-font-size-small);
  color: var(--ze3-text-muted);
}

.room3-org-name {
  color: var(--ze3-accent-cream);
  font-size: var(--ze3-font-size-small);
}

/* ---------- BACK TO CHAMBERS PILL (Room 2 style) ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 10px 14px;
  min-height: 38px;
  border-radius: 999px;

  background: linear-gradient(180deg, #f8e3ba 0%, #e7bf7a 100%);
  color: #2c1a00;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.12px;

  border: 1px solid rgba(176, 108, 45, 0.35);
  box-shadow:
    0 10px 22px rgba(161, 35, 0, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(0, 0, 0, 0.06) inset;

  backdrop-filter: blur(4px) saturate(110%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Chevron prefix */
.back-link::before {
  content: "←";
  display: inline-block;
  margin-right: 0.45rem;
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Hover & active */
.back-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(161, 35, 0, 0.26),
    0 2px 0 rgba(255, 255, 255, 0.65) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset;
  filter: saturate(1.05);
}

.back-link:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(161, 35, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset;
}

.back-link:focus-visible {
  outline: 3px solid #c41219;
  outline-offset: 2px;
}

/* Mobile auto-hide */
@media (max-width: 720px) {
  .back-link {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    top: auto;
    z-index: 10006;
    transition:
      transform 0.28s cubic-bezier(0.16, 0.84, 0.44, 1),
      opacity 0.28s linear,
      box-shadow 0.2s ease;
  }
  .back-link.is-hidden {
    transform: translateY(120%);
    opacity: 0.35;
    box-shadow: none;
  }
}

@media print {
  .back-link {
    display: none !important;
  }
}

/* ---------- MAGNIFIER + ZOOM TRAY (Room 2 pattern) ---------- */

.magnifier {
  position: fixed;
  top: 70px;        /* moved down below the header bar */
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 10001;
  transition: transform 180ms ease;
}


.magnifier.is-on {
  transform: rotate(180deg);
}

/* Zoom tray */
.zoom-panel {
  position: fixed;
  top: 68px;
  right: 12px;
  width: 180px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  z-index: 10000;
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
  gap: 8px;
}

.zoom-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.zoom-label {
  text-align: center;
  font-weight: 600;
  min-width: 48px;
}

.zoom-slider {
  width: 100%;
  accent-color: #c41219;
}

.zoom-panel button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.zoom-panel button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.zoom-panel .zoom-reset {
  justify-self: center;
  padding: 6px 12px;
}

body.zoom-on .zoom-panel {
  display: grid;
}

@media (max-width: 480px) {
  .zoom-panel {
    width: 160px;
    right: 8px;
    top: 64px;
  }
}

/* ---------- AUDIO TOGGLE (Room 2 style) ---------- */

.mute-toggle,
#mute-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10005;
  transition: background 0.3s;
  pointer-events: auto;
}

.mute-toggle:hover,
#mute-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- ACCESSIBILITY HELPERS ---------- */

.zoom-panel button:focus-visible,
.zoom-panel .zoom-slider:focus-visible {
  outline: 2px solid #c41219;
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 480px) {
  .room3-main {
    padding: 4rem 1.25rem 3rem;
  }

  .room3-plaque-text {
    font-size: 20px;
  }
}

/* Fixed wash of light that follows the reader – lowered for seal */
.room3-wash {
  position: fixed;
  left: 50%;
  top: 64%;                /* moved further down the page */
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: 0;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(245, 211, 138, 0.57),   /* was lower – stronger center now */
    rgba(245, 211, 138, 0.16) 40%, /* slightly stronger mid-ring */
    rgba(245, 211, 138, 0.04) 70%,
    rgba(245, 211, 138, 0.0) 86%
  );

  filter: blur(1.6px);
  opacity: 0.85;                  /* good baseline */
animation: room3HaloSoftPulse 16s ease-in-out infinite;

}


/* Breathing motion for the wash */
@keyframes room3WashBreath {
  0% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.9);
  }
  25% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.02);
  }
  50% {
    opacity: 1.0;
    transform: translate(-50%, -50%) scale(1.16);
  }
  75% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.02);
  }
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Small closing ZenEnergy seal */

.room3-founder-seal-wrap {
  margin-top: 0.9rem;
}

.room3-founder-seal {
  max-width: 92px;        /* similar to sig3 ZenMoon seal */
  height: auto;
  display: inline-block;

  opacity: 0.75;          /* still a bit softer than the top logo */
  filter: saturate(0.85); /* keep color, slightly restrained */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Closing section spacing tuned so it hugs the signature nicely */
.room3-section[aria-label="Closing"] {
  margin-bottom: 1.2rem;
}

/* Founder block closer to Closing */
.room3-founder-block {
  margin-top: 0.3rem;
}

/* Seal spacing tuned */
.room3-founder-seal-wrap {
  margin-top: 0.6rem;
}

/* ---------- CONTACT PANEL ---------- */

.room3-contact-panel {
  max-width: 420px;
  margin: 1.6rem auto 0;
  padding: 1.4rem 1.8rem;
  border-radius: 18px;

  background: radial-gradient(
    circle at top,
    rgba(245, 211, 138, 0.14),
    rgba(10, 14, 22, 0.96)
  );

  border: 1px solid rgba(245, 211, 138, 0.26);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px) saturate(110%);
}

.room3-contact-panel p {
  margin: 0 0 0.4rem;
}

.room3-contact-panel p:first-child {
  margin-bottom: 0.6rem;
}

.room3-contact-link {
  color: var(--ze3-accent-cream);
  text-decoration: none;
}

.room3-contact-link:hover {
  text-decoration: underline;
}

/* Room 3 layout wrapper */
.room3-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Room 3 header block */
.room3-header {
  margin: 145px auto 50px;   /* a bit closer to the top bar, still breathing */
  text-align: center;
  padding: 0 20px;
}

/* Title: strongest gold, bolder, slightly larger, single-line bias */
.room3-title {
  font-family: "Georgia", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.3rem);
  font-weight: 700;
  color: var(--ze3-accent-gold);  /* strong gold */
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.7); /* subtle depth, not glow-y */
}

/* Essence lines: softer hierarchy beneath the title */
.room3-essence {
  margin: 16px auto 0;
  max-width: 720px;  /* keeps the sentences narrow like a plaque */
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ze3-text-main);    /* main warm text, softer than title */
}

.room3-essence span {
  display: block;
  margin-top: 4px;
}

.room3-program-link {
  color: inherit;            /* use the card's heading color, not blue */
  text-decoration: none;     /* remove default underline */
}

.room3-program-link:hover,
.room3-program-link:focus {
  text-decoration: underline;  /* subtle hover/focus feedback */
}

/* Clarity Library nav row */
.room3-clarity-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 16px 0 10px;
}

/* Shared nav button style for all Room 3 program sections */
.room3-nav-button {
  border-radius: 999px;
  border: 1px solid rgba(249, 233, 196, 0.6); /* soft cream edge */
  background: rgba(0, 0, 0, 0.35);
  color: var(--ze3-text-main);
  padding: 6px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.room3-nav-button:hover,
.room3-nav-button:focus {
  background: rgba(249, 233, 196, 0.18);
  transform: translateY(-1px);
}

.room3-nav-button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.room3-entry-title {
  margin: 8px 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ze3-accent-cream);
}

.room3-clarity-card + .room3-clarity-card {
  margin-top: 30px;  /* space between entries */
}
/* Soft luminous separator between Clarity Library entries */
.room3-clarity-card:not(:last-child)::after {
  content: "";
  display: block;
  margin: 22px auto 0;
  width: 160px;
  height: 1.5px;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(249, 233, 196, 0.85),
    rgba(0, 0, 0, 0)
  );

  opacity: 0.95;
}


.room3-program-label-row {
  display: flex;
  justify-content: flex-end;
}
.room3-program-coming-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 6px;
}
.room3-program-coming-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 6px;
}
