/* ============================================================
   BELIEFS — the /beliefs/ page: three simple circles, each opens
   a centred card. Loads after page.css (masthead + footer + tokens).
   ============================================================ */

.beliefs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-xl) var(--gutter) var(--space-2xl);
  text-align: center;
}

.beliefs-h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

/* --- the three circles --- */
.orbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(var(--space-lg), 6vw, var(--space-2xl));
}

.orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

.orb__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 22vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-off-white);
  box-shadow: 0 18px 40px -16px rgba(30, 58, 95, 0.55);
  border: 3px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.orb__circle svg { width: 40%; height: 40%; }

.orb:hover .orb__circle,
.orb:focus-visible .orb__circle {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 22px 46px -14px rgba(30, 58, 95, 0.6);
}
.orb:focus-visible { outline: none; }

.orb__name {
  font-size: var(--text-lg);
  font-weight: 600;
  max-width: 12ch;
  line-height: var(--leading-snug);
}

/* ------------------------------------------------------------
   BELIEF CARD (centred dialog)
   ------------------------------------------------------------ */
.panel-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(30, 58, 95, 0.45);
  opacity: 0;
  pointer-events: none;   /* when hidden it must NOT eat clicks */
  transition: opacity var(--duration-medium) var(--ease-out);
}
.panel-backdrop.is-shown { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed;
  z-index: calc(var(--z-modal) + 1);
  top: 50%; left: 50%;
  width: min(92vw, 34rem);
  transform: translate(-50%, -46%);
  background: var(--color-off-white);
  border: 1.5px solid var(--color-text);
  border-radius: 22px;
  padding: var(--space-lg);   /* equal space all around the copy */
  box-shadow: 0 30px 60px -20px rgba(30, 58, 95, 0.5);
  text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-out),
              transform var(--duration-medium) var(--ease-out),
              visibility 0s linear var(--duration-medium);
}
.panel.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity var(--duration-medium) var(--ease-out),
              transform var(--duration-medium) var(--ease-out);
}
.panel__title {
  font-size: var(--text-xl); font-weight: 600; line-height: var(--leading-tight);
  padding-bottom: var(--space-xs); margin-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent); display: inline-block;
}
.panel p { font-size: var(--text-lg); line-height: var(--leading-body); }
/* Blank line between the two paragraphs in each belief. */
.panel p + p { margin-top: var(--space-md); }
.panel__close {
  position: absolute; top: 0.6rem; right: 0.9rem;
  width: 40px; height: 40px; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--color-text);
  opacity: 0.6; cursor: pointer;
}
.panel__close:hover { opacity: 1; }

/* ------------------------------------------------------------
   PROGRESSIVE ENHANCEMENT
   With JS the panels are hidden until opened. Without JS they render
   as plain readable cards below the circles.
   ------------------------------------------------------------ */
.js .panel { display: none; }
.js .panel.is-open,
.js .panel.is-mounted { display: block; }

.no-js .panels {
  display: grid;
  gap: var(--space-md);
  width: 100%;
  max-width: 44rem;
  text-align: left;
}
.no-js .panel {
  position: static; transform: none; opacity: 1; visibility: visible;
  pointer-events: auto; box-shadow: none;
}
.no-js .panel__close { display: none; }

/* Panels as a bottom sheet on phones */
@media (max-width: 40rem) {
  .panel {
    top: auto; bottom: 0; transform: translate(-50%, 100%);
    width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  }
  .panel.is-open { transform: translate(-50%, 0); }
}
