/**
 * Pagan ↔ Sanātana resonances — public comparative learning page.
 */

.pg-page {
  --pg-ink: #1a2e1f;
  --pg-muted: #4a5d52;
  --pg-panel: #f7faf6;
  --pg-line: rgba(45, 90, 60, 0.16);
  --pg-accent: #2f6b45;
  --pg-accent-soft: #e8f2ea;
  --pg-warm: #c45c26;
  --pg-earth: #5c4033;
  --pg-sky: #dfece3;
  /* Radial diagram scale — shared across pagan pages */
  --pg-ring-lg: min(100%, 540px);
  --pg-ring-md: min(100%, 480px);
  --pg-ring-sm: min(100%, 420px);
  --pg-orbit-xl: 12.5rem;
  --pg-orbit-lg: 11.25rem;
  --pg-orbit-md: 9.75rem;
  --pg-orbit-sm: 8.25rem;
  color: var(--pg-ink);
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(47, 107, 69, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 8%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #eef5ef 0%, #f7faf6 28%, #f4f1ea 100%);
  font-family: "Outfit", system-ui, sans-serif;
  min-height: 70vh;
}

.pg-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.pg-crumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--pg-muted);
}

.pg-crumb a {
  color: var(--pg-accent);
}

.pg-hero {
  margin-bottom: 1.5rem;
  max-width: 44rem;
}

.pg-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-accent);
  font-weight: 600;
}

.pg-hero h1 {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  color: var(--pg-ink);
}

.pg-lede {
  margin: 0 0 1rem;
  color: var(--pg-muted);
  line-height: 1.55;
  font-size: 1.05rem;
}

.pg-lang {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--pg-line);
}

.pg-lang a {
  text-decoration: none;
  color: var(--pg-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pg-lang a.is-active {
  background: var(--pg-accent);
  color: #fff;
}

.pg-respect {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--pg-accent) 22%, #fff);
  box-shadow: 0 8px 24px rgba(26, 46, 31, 0.05);
}

.pg-respect i {
  color: var(--pg-warm);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.pg-respect p {
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.pg-intro {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.pg-intro p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.pg-section-head {
  margin-bottom: 1.1rem;
  max-width: 40rem;
}

.pg-section-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-accent);
  font-weight: 700;
}

.pg-section-head h2 {
  margin: 0 0 0.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.pg-section-head p {
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.5;
}

/* Mandala */
.pg-diagram {
  margin: 2rem 0 2.5rem;
  padding: 2rem 1.25rem 2.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--pg-line);
  overflow-x: auto;
  overflow-y: visible;
}

.pg-mandala {
  --pg-count: 5;
  position: relative;
  width: var(--pg-ring-lg);
  min-width: 460px;
  aspect-ratio: 1;
  margin: 1rem auto 1.5rem;
  overflow: visible;
}

.pg-mandala__center {
  position: absolute;
  inset: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, var(--pg-accent-soft));
  border: 2px solid color-mix(in srgb, var(--pg-accent) 35%, #fff);
  box-shadow: 0 10px 28px rgba(47, 107, 69, 0.12);
  z-index: 2;
}

.pg-mandala__center span {
  font-size: 2rem;
  color: var(--pg-accent);
  line-height: 1;
}

.pg-mandala__center strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pg-earth);
  max-width: 7.5rem;
  line-height: 1.3;
}

.pg-petal {
  --pg-index: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7.75rem;
  margin: -3.1rem 0 0 -3.875rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 5.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--pg-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  z-index: 1;
  overflow: visible;
}

.pg-petal:hover,
.pg-petal.is-active {
  border-color: var(--pg-accent);
  box-shadow: 0 10px 22px rgba(47, 107, 69, 0.14);
  z-index: 3;
}

.pg-petal.is-active {
  background: var(--pg-accent-soft);
}

.pg-petal__glyph {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.pg-petal__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--pg-ink);
  max-width: 6.75rem;
  word-break: break-word;
}

.pg-detail {
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, #fff, var(--pg-sky));
  border: 1px solid var(--pg-line);
}

.pg-detail__bridge {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--pg-warm);
  background: rgba(255, 247, 237, 0.75);
  color: var(--pg-earth);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pg-detail__cols {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pg-detail__cols {
    grid-template-columns: 1fr 1fr;
  }
}

.pg-detail__cols h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.pg-detail__cols p {
  margin: 0;
  line-height: 1.5;
  color: var(--pg-ink);
  font-size: 0.95rem;
}

/* Table */
.pg-table-block {
  margin: 2.5rem 0;
}

.pg-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--pg-line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 46, 31, 0.06);
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.pg-table th,
.pg-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pg-line);
  line-height: 1.45;
  font-size: 0.92rem;
}

.pg-table thead th {
  background: var(--pg-accent-soft);
  color: var(--pg-ink);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg-table tbody th {
  font-weight: 650;
  color: var(--pg-ink);
  white-space: nowrap;
}

.pg-table tbody th span:first-child {
  margin-right: 0.35rem;
}

.pg-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.pg-table tbody tr:hover,
.pg-table tbody tr.is-active {
  background: color-mix(in srgb, var(--pg-accent-soft) 70%, #fff);
}

.pg-table tbody tr.is-active th {
  color: var(--pg-accent);
}

/* Differences */
.pg-diff {
  margin: 2.5rem 0;
}

.pg-diff-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pg-diff-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pg-diff-card {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--pg-line);
}

.pg-diff-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}

.pg-diff-card__cols {
  display: grid;
  gap: 0.75rem;
}

.pg-diff-card__cols p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pg-muted);
}

.pg-diff-card__cols strong {
  display: block;
  color: var(--pg-accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pg-diff-card__tone {
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--pg-line);
  font-size: 0.9rem;
  color: var(--pg-earth);
  font-style: italic;
}

/* Practices */
.pg-practices {
  margin: 2.5rem 0;
}

.pg-practice-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.pg-practice-grid li {
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--pg-line);
}

.pg-practice-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--pg-ink);
}

.pg-practice-grid span {
  color: var(--pg-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Steps */
.pg-path {
  margin: 2.5rem 0;
}

.pg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pg-steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--pg-line);
}

.pg-steps__num {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pg-accent);
  color: #fff;
  font-weight: 700;
}

.pg-steps__phase {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-accent);
  font-weight: 700;
}

.pg-steps h3 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}

.pg-steps ul {
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  color: var(--pg-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pg-steps__link {
  color: var(--pg-warm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.pg-steps__link:hover {
  text-decoration: underline;
}

/* Sādhak */
.pg-sadhak {
  margin: 2.75rem 0 2rem;
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 92, 38, 0.18), transparent 55%),
    linear-gradient(165deg, #2a2118, #1c1428);
  color: #faf3ea;
}

.pg-sadhak__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8a54b;
  font-weight: 700;
}

.pg-sadhak h2 {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  color: #fff;
}

.pg-sadhak > p {
  margin: 0 0 0.85rem;
  color: rgba(250, 243, 234, 0.88);
  line-height: 1.55;
  max-width: 40rem;
}

.pg-sadhak > ul {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  color: rgba(250, 243, 234, 0.9);
  line-height: 1.5;
}

.pg-sadhak .om-sadhak-btn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.65rem;
  background: #e8a54b;
  color: #1c1428;
  font-weight: 700;
  text-decoration: none;
}

.pg-sadhak .om-sadhak-btn:hover {
  background: #f0b85c;
}

@media (max-width: 640px) {
  .pg-mandala {
    width: var(--pg-ring-md);
    min-width: 400px;
  }

  .pg-petal {
    width: 6.75rem;
    margin: -2.75rem 0 0 -3.375rem;
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  }

  .pg-petal__label {
    font-size: 0.74rem;
  }

  .pg-steps > li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-petal,
  .pg-table tbody tr,
  .pg-const-node,
  .pg-el-petal,
  .pg-season-node {
    transition: none;
  }
}

/* —— Topic atlas —— */
.pg-topics__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.pg-hero .pg-topics__jump {
  justify-content: flex-start;
}

.pg-hero .pg-topics__jump a:not(.pg-deep-link) {
  color: var(--pg-warm);
  font-weight: 600;
  text-decoration: none;
}

.pg-hero .pg-topics__jump a:not(.pg-deep-link):hover {
  text-decoration: underline;
}

.pg-deep-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pg-line);
  color: var(--pg-accent);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.pg-deep-link:hover {
  background: var(--pg-accent);
  color: #fff;
  border-color: var(--pg-accent);
}

.pg-constellation {
  --pg-count: 5;
  position: relative;
  width: var(--pg-ring-lg);
  min-width: 460px;
  aspect-ratio: 1;
  margin: 1rem auto 1.25rem;
  overflow: visible;
}

.pg-constellation__core {
  position: absolute;
  inset: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, var(--pg-accent-soft));
  border: 2px solid color-mix(in srgb, var(--pg-accent) 35%, #fff);
  box-shadow: 0 10px 28px rgba(47, 107, 69, 0.12);
  z-index: 2;
}

.pg-constellation__core span {
  font-size: 1.85rem;
  color: var(--pg-accent);
}

.pg-constellation__core strong {
  font-size: 0.82rem;
  color: var(--pg-earth);
  max-width: 7.5rem;
  line-height: 1.3;
}

.pg-const-node {
  --pg-index: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.25rem;
  margin: -3.25rem 0 0 -4.125rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 5.75rem;
  padding: 0.65rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--pg-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  z-index: 1;
  overflow: visible;
}

.pg-const-node:hover,
.pg-const-node.is-active {
  border-color: var(--pg-accent);
  box-shadow: 0 10px 22px rgba(47, 107, 69, 0.14);
  z-index: 3;
}

.pg-const-node.is-active {
  background: var(--pg-accent-soft);
}

.pg-const-node__glyph {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.pg-const-node__label {
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.3;
  max-width: 7rem;
  word-break: break-word;
}

.pg-const-blurb {
  margin: 0 auto;
  max-width: 32rem;
  text-align: center;
  color: var(--pg-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pg-mod-table__glyph {
  margin-right: 0.35rem;
}

.pg-mod-table__cat {
  font-weight: 600;
}

.pg-mod-table tbody tr[hidden] {
  display: none;
}

.pg-mod-detail {
  margin: 2rem 0 2.5rem;
  padding: 1.35rem 1.2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--pg-line);
}

.pg-mod-detail__sub {
  margin: 0.15rem 0 0;
  color: var(--pg-muted);
  font-size: 0.98rem;
}

.pg-mod-panel {
  display: none;
}

.pg-mod-panel.is-visible {
  display: block;
  animation: pg-fade 0.28s ease;
}

@keyframes pg-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.pg-mod-panel__synopsis {
  margin: 0 0 1.1rem;
  line-height: 1.55;
  font-size: 1.02rem;
  color: var(--pg-ink);
}

.pg-mod-panel .pg-detail__cols ul,
.pg-mod-panel__more ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--pg-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pg-mod-panel__more {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--pg-line);
}

@media (min-width: 720px) {
  .pg-mod-panel__more {
    grid-template-columns: 1fr 1fr;
  }
}

.pg-mod-panel__more h3 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.pg-symbol-diagram {
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, var(--pg-sky));
  border: 1px solid var(--pg-line);
  overflow-x: auto;
  overflow-y: visible;
}

.pg-symbol-diagram h3 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  text-align: center;
}

.pg-el-wheel {
  --pg-count: 5;
  position: relative;
  width: var(--pg-ring-sm);
  min-width: 380px;
  aspect-ratio: 1;
  margin: 0.75rem auto 1rem;
  overflow: visible;
}

.pg-el-wheel__center {
  position: absolute;
  inset: 36%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--pg-accent) 40%, #fff);
  z-index: 2;
}

.pg-el-wheel__center span {
  font-size: 1.55rem;
  color: var(--pg-accent);
}

.pg-el-wheel__center strong {
  font-size: 0.78rem;
  color: var(--pg-earth);
}

.pg-el-petal {
  --pg-index: 0;
  --pg-hue: var(--pg-accent);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6.25rem;
  margin: -2.75rem 0 0 -3.125rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-md))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5rem;
  padding: 0.55rem 0.4rem;
  border-radius: 0.95rem;
  border: 1px solid color-mix(in srgb, var(--pg-hue) 45%, #fff);
  background: #fff;
  color: var(--pg-hue);
  cursor: pointer;
  font: inherit;
  transition: box-shadow 0.15s ease, background 0.15s ease;
  overflow: visible;
}

.pg-el-petal.is-active,
.pg-el-petal:hover {
  background: color-mix(in srgb, var(--pg-hue) 12%, #fff);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pg-hue) 25%, transparent);
}

.pg-el-petal span {
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
}

.pg-el-petal em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pg-ink);
  text-align: center;
  line-height: 1.25;
  max-width: 5.5rem;
  word-break: break-word;
}

.pg-el-caption {
  margin: 0;
  text-align: center;
  color: var(--pg-earth);
  font-size: 0.92rem;
  font-weight: 600;
}

.pg-season-wheel {
  --pg-count: 8;
  position: relative;
  width: var(--pg-ring-md);
  min-width: 400px;
  aspect-ratio: 1;
  margin: 0.75rem auto 1rem;
  border-radius: 50%;
  overflow: visible;
  background:
    radial-gradient(circle at center, transparent 38%, color-mix(in srgb, var(--pg-accent) 10%, transparent) 39% 62%, transparent 63%);
}

.pg-season-node {
  --pg-index: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6.25rem;
  margin: -2.75rem 0 0 -3.125rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-lg))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 4.75rem;
  padding: 0.55rem 0.35rem;
  border-radius: 0.95rem;
  border: 1px solid var(--pg-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow: visible;
}

.pg-season-node.is-active,
.pg-season-node:hover {
  border-color: var(--pg-warm);
  background: #fff7ed;
  box-shadow: 0 8px 16px rgba(196, 92, 38, 0.12);
}

.pg-season-node span {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
}

.pg-season-node em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  max-width: 5.5rem;
  word-break: break-word;
}

@media (max-width: 640px) {
  .pg-constellation {
    width: var(--pg-ring-md);
    min-width: 400px;
  }

  .pg-const-node {
    width: 7rem;
    margin: -2.85rem 0 0 -3.5rem;
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  }

  .pg-const-node__label {
    font-size: 0.72rem;
  }
}

/* —— Deep-dive pages —— */
.pg-deep .pg-deep-block {
  margin: 2.25rem 0;
  padding: 1.35rem 1.2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--pg-line);
  overflow-x: auto;
  overflow-y: visible;
}

.pg-tradition-tags {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pg-tradition-tags li {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--pg-accent-soft);
  color: var(--pg-ink);
  border: 1px solid var(--pg-line);
}

.pg-sister {
  margin: 0 0 1.5rem;
}

.pg-sister__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pg-sister__row a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--pg-line);
  background: #fff;
  color: var(--pg-muted);
}

.pg-sister__row a:hover,
.pg-sister__row a.is-active {
  background: var(--pg-accent);
  border-color: var(--pg-accent);
  color: #fff;
}

.pg-phase-panel,
.pg-el-card,
.pg-woty-detail,
.pg-lunar-panel,
.pg-philo-panel,
.pg-arch-panel {
  display: none;
}

.pg-phase-panel.is-visible,
.pg-el-card.is-visible,
.pg-woty-detail.is-visible,
.pg-lunar-panel.is-visible,
.pg-philo-panel.is-visible,
.pg-arch-panel.is-visible {
  display: block;
  animation: pg-fade 0.28s ease;
}

.pg-moon-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.pg-moon-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--pg-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 9rem;
}

.pg-moon-phase.is-active,
.pg-moon-phase:hover {
  border-color: var(--pg-warm);
  background: #fff7ed;
  box-shadow: 0 10px 22px rgba(196, 92, 38, 0.12);
}

.pg-moon-phase__orb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #d9c4a0;
  box-shadow: inset -0.9rem 0 0 #1a2e1f;
}

.pg-moon-phase__orb--wax { box-shadow: inset -1.35rem 0 0 #1a2e1f; }
.pg-moon-phase__orb--full { background: #f3e6c8; box-shadow: none; }
.pg-moon-phase__orb--wane { box-shadow: inset 1.35rem 0 0 #1a2e1f; }

.pg-moon-phase strong { font-size: 1.05rem; }
.pg-moon-phase em { font-style: normal; font-size: 0.82rem; color: var(--pg-muted); line-height: 1.35; }

.pg-scripture {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--pg-earth);
  font-style: italic;
}

.pg-ritual-note {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: var(--pg-accent-soft);
  border-left: 3px solid var(--pg-accent);
}

.pg-ritual-note h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.pg-ritual-note p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--pg-muted);
  line-height: 1.45;
}

/* Elemental deep wheel */
.pg-el-deep-wheel {
  --pg-count: 5;
  position: relative;
  width: var(--pg-ring-md);
  min-width: 420px;
  aspect-ratio: 1;
  margin: 1.25rem auto 1.5rem;
  overflow: visible;
  border-radius: 50%;
}

.pg-el-deep-wheel__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 30%, transparent 31%),
    conic-gradient(
      from -18deg,
      rgba(47, 107, 69, 0.1),
      rgba(74, 124, 140, 0.12),
      rgba(196, 92, 38, 0.1),
      rgba(47, 107, 138, 0.12),
      rgba(92, 64, 51, 0.1),
      rgba(47, 107, 69, 0.1)
    );
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--pg-accent) 40%, #fff),
    0 0 0 2px color-mix(in srgb, var(--pg-accent) 18%, transparent),
    0 16px 36px rgba(26, 46, 31, 0.08);
}

.pg-el-deep-wheel__center {
  position: absolute;
  inset: 36%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, var(--pg-accent-soft));
  border: 2px solid color-mix(in srgb, var(--pg-accent) 40%, #fff);
  box-shadow: 0 8px 20px rgba(47, 107, 69, 0.12);
  z-index: 2;
}

.pg-el-deep-wheel__center span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  color: var(--pg-accent);
  line-height: 1;
}

.pg-el-deep-wheel__center strong {
  font-size: 0.72rem;
  color: var(--pg-earth);
  margin-top: 0.2rem;
}

.pg-el-deep-petal {
  --pg-index: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7.25rem;
  height: 7.25rem;
  margin: -3.625rem 0 0 -3.625rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-lg))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 0.55rem;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--pg-accent) 45%, #fff);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow: hidden;
  z-index: 3;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--pg-accent-soft) 85%, transparent),
    0 8px 18px rgba(26, 46, 31, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.pg-el-deep-petal.is-active,
.pg-el-deep-petal:hover {
  border-color: var(--pg-accent);
  background: var(--pg-accent-soft);
  box-shadow: 0 10px 22px rgba(47, 107, 69, 0.16);
  z-index: 4;
}

.pg-el-deep-petal.is-active {
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-lg))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
    scale(1.06);
}

/* Name large; glyph + Hindu label smaller (reversed from prior) */
.pg-el-deep-petal__name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--pg-ink);
  max-width: 5.6rem;
}

.pg-el-deep-petal__glyph {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", "DejaVu Sans", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--pg-accent);
}

.pg-el-deep-petal__desc {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.2;
  max-width: 5.5rem;
  color: var(--pg-muted);
  word-break: break-word;
}

.pg-el-card {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, var(--pg-sky));
  border: 1px solid var(--pg-line);
}

.pg-el-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.pg-el-card h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }
.pg-el-card__bija {
  margin: 0;
  font-weight: 700;
  color: var(--pg-warm);
  letter-spacing: 0.04em;
}

.pg-el-meta {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.pg-el-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-accent);
  font-weight: 700;
}

.pg-el-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--pg-muted);
  line-height: 1.4;
}

.pg-protocol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pg-protocol > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--pg-line);
  background: #fff;
  cursor: pointer;
}

.pg-protocol > li.is-active {
  border-color: var(--pg-accent);
  background: var(--pg-accent-soft);
}

.pg-protocol__num {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pg-accent);
  color: #fff;
  font-weight: 700;
}

.pg-protocol h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.pg-muted { color: var(--pg-muted); font-size: 0.9rem; }
.pg-mantra {
  margin: 0.45rem 0 0;
  font-family: "Noto Sans Devanagari", "Fraunces", serif;
  font-size: 0.92rem;
  color: var(--pg-earth);
}

/* Wheel of the Year — true circle */
.pg-woty {
  --pg-count: 8;
  position: relative;
  width: var(--pg-ring-lg);
  min-width: 460px;
  aspect-ratio: 1;
  margin: 1.5rem auto 1.75rem;
  border-radius: 50%;
  overflow: visible;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.95) 0 28%, transparent 29%),
    conic-gradient(
      from -22.5deg,
      rgba(47, 107, 69, 0.12),
      rgba(196, 92, 38, 0.1),
      rgba(47, 107, 69, 0.12),
      rgba(196, 92, 38, 0.1),
      rgba(47, 107, 69, 0.12),
      rgba(196, 92, 38, 0.1),
      rgba(47, 107, 69, 0.12),
      rgba(196, 92, 38, 0.1)
    );
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--pg-accent) 25%, #fff),
    0 18px 40px rgba(26, 46, 31, 0.08);
}

.pg-woty__hub {
  position: absolute;
  inset: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(165deg, #fff, #fff7ed);
  border: 2px solid color-mix(in srgb, var(--pg-warm) 35%, #fff);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(196, 92, 38, 0.12);
}

.pg-woty__hub span { font-size: 1.75rem; color: var(--pg-warm); }
.pg-woty__hub strong {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--pg-earth);
  max-width: 5.5rem;
}

.pg-woty__spoke {
  --pg-index: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6.75rem;
  margin: -2.85rem 0 0 -3.375rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5rem;
  padding: 0.55rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--pg-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  z-index: 3;
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pg-woty__spoke:hover,
.pg-woty__spoke.is-active {
  background: #fff7ed;
  border-color: var(--pg-warm);
  box-shadow: 0 10px 22px rgba(196, 92, 38, 0.16);
  z-index: 4;
}

.pg-woty__spoke.is-active {
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
    scale(1.08);
}

.pg-woty__glyph { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.pg-woty__spoke em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  max-width: 5.75rem;
  word-break: break-word;
}

.pg-woty-detail {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1px solid var(--pg-line);
}

.pg-woty-harmony {
  margin: 1rem 0 0;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--pg-warm);
  background: rgba(255, 247, 237, 0.8);
  color: var(--pg-earth);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pg-ayana {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pg-ayana { grid-template-columns: 1fr 1fr; }
}

.pg-ayana__card {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, #fff, var(--pg-accent-soft));
  border: 1px solid var(--pg-line);
}

.pg-ayana__card--dark {
  background: linear-gradient(165deg, #2a2118, #1c1428);
  color: #faf3ea;
  border-color: transparent;
}

.pg-ayana__card--dark .pg-kicker { color: #e8a54b; }
.pg-ayana__card--dark h3 { color: #fff; }
.pg-ayana__card--dark p { color: rgba(250, 243, 234, 0.88); }

.pg-lunar-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pg-lunar-chip,
.pg-philo-tab,
.pg-arch-chip {
  border: 1px solid var(--pg-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pg-muted);
  cursor: pointer;
}

.pg-lunar-chip.is-active,
.pg-philo-tab.is-active,
.pg-arch-chip.is-active,
.pg-lunar-chip:hover,
.pg-philo-tab:hover,
.pg-arch-chip:hover {
  background: var(--pg-accent);
  border-color: var(--pg-accent);
  color: #fff;
}

.pg-lunar-panel,
.pg-philo-panel,
.pg-arch-panel {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--pg-line);
}

.pg-philo-tabs,
.pg-arch-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pg-arch-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pg-arch-grid { grid-template-columns: 1fr 1fr; }
}

.pg-arch-col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.pg-deity-card {
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 0.85rem;
  background: var(--pg-panel);
  border: 1px solid var(--pg-line);
}

.pg-deity-card h4 {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}

.pg-deity-card p { margin: 0; font-size: 0.9rem; color: var(--pg-muted); line-height: 1.45; }

.pg-symbol-row {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pg-symbol-row li {
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid var(--pg-line);
}

@media (max-width: 640px) {
  .pg-woty {
    width: var(--pg-ring-md);
    min-width: 400px;
  }
  .pg-woty__spoke {
    width: 6rem;
    margin: -2.6rem 0 0 -3rem;
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  }
  .pg-woty__spoke.is-active {
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
      scale(1.06);
  }
  .pg-moon-triad { grid-template-columns: 1fr; }
}

/* ——— Pagan hub index (/pagan) ——— */

.pg-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.pg-hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.pg-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--pg-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(47, 107, 69, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-hub-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(47, 107, 69, 0.34);
  color: #fff;
}

.pg-hub-orbit {
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  animation: pgHubFloat 7s ease-in-out infinite;
}

.pg-hub-orbit__svg {
  width: 100%;
  height: auto;
  display: block;
}

.pg-hub-ring {
  transform-origin: 160px 160px;
  animation: pgHubSpin 48s linear infinite;
}

.pg-hub-ring--slow {
  animation-duration: 72s;
  animation-direction: reverse;
}

.pg-hub-orbit__glyphs text {
  animation: pgHubGlyphPulse 4.5s ease-in-out infinite;
  font-size: 26px;
}

.pg-hub-orbit__glyphs text:nth-child(2) { animation-delay: 0.4s; }
.pg-hub-orbit__glyphs text:nth-child(3) { animation-delay: 0.8s; }
.pg-hub-orbit__glyphs text:nth-child(4) { animation-delay: 1.2s; }
.pg-hub-orbit__glyphs text:nth-child(5) { animation-delay: 1.6s; }

@keyframes pgHubFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pgHubSpin {
  to { transform: rotate(360deg); }
}

@keyframes pgHubGlyphPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.pg-hub-portals {
  margin: 2.5rem 0 2.75rem;
}

.pg-hub-portals__layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
}

.pg-hub-wheel {
  --pg-count: 6;
  position: relative;
  width: var(--pg-ring-lg);
  min-width: 460px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
}

.pg-hub-wheel__core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7.5rem;
  height: 7.5rem;
  margin: -3.75rem 0 0 -3.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a2e1f, #2f6b45);
  color: #eef5ef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(26, 46, 31, 0.28);
}

.pg-hub-wheel__core span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1;
}

.pg-hub-wheel__core strong {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  opacity: 0.9;
  max-width: 5.5rem;
  line-height: 1.25;
}

.pg-hub-node {
  --pg-index: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6.5rem;
  margin: -3.25rem 0 0 -3.25rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--pg-ink);
  transition: transform 0.28s ease, color 0.2s ease;
  z-index: 1;
  overflow: visible;
}

.pg-hub-node:hover,
.pg-hub-node:focus-visible,
.pg-hub-node.is-active {
  color: var(--pg-accent);
  outline: none;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
    scale(1.08);
  z-index: 3;
}

.pg-hub-node__icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--pg-line);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(26, 46, 31, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.pg-hub-node__icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--pg-accent);
}

.pg-hub-node.is-active .pg-hub-node__icon,
.pg-hub-node:hover .pg-hub-node__icon,
.pg-hub-node:focus-visible .pg-hub-node__icon {
  background: var(--pg-accent-soft);
  border-color: color-mix(in srgb, var(--pg-accent) 45%, #fff);
  box-shadow: 0 10px 24px rgba(47, 107, 69, 0.18);
}

.pg-hub-node__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 6.25rem;
  line-height: 1.3;
  word-break: break-word;
}

.pg-hub-preview {
  padding: 1.35rem 1.4rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pg-line);
  box-shadow: 0 14px 36px rgba(26, 46, 31, 0.07);
  min-height: 11rem;
}

.pg-hub-preview__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-accent);
  font-weight: 600;
}

.pg-hub-preview h3 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.pg-hub-preview p {
  margin: 0 0 1rem;
  color: var(--pg-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.pg-hub-preview__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--pg-accent);
  text-decoration: none;
}

.pg-hub-preview__go:hover {
  text-decoration: underline;
}

.pg-hub-cards {
  margin-bottom: 2.75rem;
}

.pg-hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.pg-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 234, 0.65)),
    #fff;
  border: 1px solid var(--pg-line);
  box-shadow: 0 10px 28px rgba(26, 46, 31, 0.05);
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pg-hub-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pg-accent);
  opacity: 0.75;
}

.pg-hub-card--resonance::before { background: #2f6b45; }
.pg-hub-card--atlas::before { background: #c45c26; }
.pg-hub-card--divine_feminine_and_earth::before { background: #8b5a6b; }
.pg-hub-card--elements_and_ritual_magic::before { background: #c45c26; }
.pg-hub-card--calendars_and_cosmic_cycles::before { background: #2f6b8a; }
.pg-hub-card--polytheism_philosophy_and_deities::before { background: #5c4033; }

.pg-hub-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pg-accent) 35%, #fff);
  box-shadow: 0 16px 36px rgba(26, 46, 31, 0.1);
  color: inherit;
}

.pg-hub-card__glyph {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.pg-hub-card__meta {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pg-accent);
  font-weight: 600;
}

.pg-hub-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.pg-hub-card > span:last-child {
  color: var(--pg-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pg-hub-mini {
  margin-bottom: 2.5rem;
}

.pg-hub-mini__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pg-hub-mini__panel {
  display: block;
  padding: 1.2rem 1.25rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--pg-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-hub-mini__panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 46, 31, 0.08);
  color: inherit;
}

.pg-hub-mini__panel h3 {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}

.pg-hub-mini__panel > p {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pg-accent);
}

.pg-hub-el-ring,
.pg-hub-season-ring {
  --pg-count: 5;
  position: relative;
  width: min(100%, 300px);
  min-width: 260px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
}

.pg-hub-el-ring__core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border-radius: 50%;
  background: var(--pg-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  z-index: 1;
}

.pg-hub-el,
.pg-hub-season {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--pg-line);
  font-size: 1.25rem;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(5.75rem)
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

.pg-hub-el {
  border-color: color-mix(in srgb, var(--pg-hue, var(--pg-accent)) 40%, #fff);
  color: var(--pg-hue, var(--pg-accent));
}

.pg-hub-el.is-pulse,
.pg-hub-season.is-pulse {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pg-accent) 18%, transparent);
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(5.75rem)
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
    scale(1.12);
}

.pg-topics__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 0.85rem;
}

@media (max-width: 900px) {
  .pg-hub-hero {
    grid-template-columns: 1fr;
  }
  .pg-hub-orbit {
    order: -1;
    width: min(100%, 340px);
  }
  .pg-hub-portals__layout {
    grid-template-columns: 1fr;
  }
  .pg-hub-mini__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pg-hub-wheel {
    width: var(--pg-ring-md);
    min-width: 400px;
  }
  .pg-hub-node {
    width: 5.75rem;
    margin: -2.85rem 0 0 -2.875rem;
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  }
  .pg-hub-node:hover,
  .pg-hub-node:focus-visible,
  .pg-hub-node.is-active {
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
      scale(1.06);
  }
  .pg-hub-node__icon {
    width: 3.75rem;
    height: 3.75rem;
  }
  .pg-hub-node__icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* ── Nature worship hub & category pages ── */

.pg-hub-nature {
  margin-top: 2.5rem;
}

.pg-hub-nature__row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.pg-hub-nature__hub-link {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(47, 107, 69, 0.12), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--pg-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-hub-nature__hub-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 46, 31, 0.08);
  color: inherit;
}

.pg-hub-nature__hub-glyph {
  font-size: 2.75rem;
  line-height: 1;
}

.pg-hub-nature__hub-link strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}

.pg-hub-nature__hub-link span:last-child {
  font-size: 0.88rem;
  color: var(--pg-muted);
}

.pg-hub-nature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.pg-hub-nature-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid color-mix(in srgb, var(--pg-hue, var(--pg-accent)) 28%, var(--pg-line));
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.pg-hub-nature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--pg-hue, var(--pg-accent)) 55%, #fff);
  box-shadow: 0 10px 24px rgba(26, 46, 31, 0.07);
  color: inherit;
}

.pg-hub-nature-card__glyph {
  font-size: 2.25rem;
  line-height: 1;
}

.pg-hub-nature-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.pg-hub-nature-card span:last-child {
  font-size: 0.82rem;
  color: var(--pg-muted);
  line-height: 1.35;
}

.pg-nature-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.pg-nature-wheel {
  --pg-count: 6;
  --pg-hue: var(--pg-accent);
  position: relative;
  width: var(--pg-ring-lg);
  min-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
}

.pg-nature-wheel__ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--pg-hue) 24%, var(--pg-line));
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 42%, color-mix(in srgb, var(--pg-hue) 8%, #eef5ef) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.pg-nature-wheel__core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--pg-hue) 35%, var(--pg-line));
  z-index: 2;
  text-align: center;
  padding: 0.35rem;
}

.pg-nature-wheel__core span {
  font-size: 2rem;
  line-height: 1;
}

.pg-nature-wheel__core strong {
  font-size: 0.72rem;
  color: var(--pg-earth);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg-nature-node {
  --pg-index: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7.25rem;
  height: 7.25rem;
  margin: -3.625rem 0 0 -3.625rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  padding: 0.55rem;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--pg-hue, var(--pg-accent)) 30%, var(--pg-line));
  text-decoration: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.pg-nature-node__glyph {
  font-size: 2rem;
  line-height: 1;
}

.pg-nature-node__label,
.pg-nature-node__short {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pg-nature-node.is-active,
.pg-nature-node:hover,
.pg-nature-node:focus-visible {
  border-color: var(--pg-hue, var(--pg-accent));
  background: color-mix(in srgb, var(--pg-hue, var(--pg-accent)) 10%, #fff);
  box-shadow: 0 12px 26px rgba(26, 46, 31, 0.12);
  color: inherit;
}

.pg-nature-node.is-active {
  transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
    translate(var(--pg-orbit-xl))
    rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
    scale(1.06);
  z-index: 3;
}

.pg-nature-node--detail {
  width: 6.75rem;
  height: 6.75rem;
  margin: -3.375rem 0 0 -3.375rem;
}

.pg-nature-node--detail .pg-nature-node__glyph {
  font-size: 1.35rem;
}

.pg-nature-node--detail .pg-nature-node__short {
  font-size: 0.72rem;
}

.pg-nature-preview {
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--pg-line);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pg-nature-preview.is-visible {
  opacity: 1;
  transform: none;
}

.pg-nature-preview__meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.pg-nature-preview h3 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
}

.pg-nature-preview p {
  margin: 0 0 0.85rem;
  color: var(--pg-muted);
  line-height: 1.45;
}

.pg-nature-preview__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--pg-accent);
  text-decoration: none;
}

.pg-nature-hero__glyph {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pg-nature-card {
  display: none;
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pg-line);
}

.pg-nature-card.is-visible {
  display: block;
}

.pg-nature-card__head h3 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
}

.pg-nature-card__parallel,
.pg-nature-card__tradition {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--pg-muted);
}

.pg-nature-card__columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin: 1rem 0 0.85rem;
  align-items: start;
}

.pg-nature-card__col h4 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.pg-nature-card__col p {
  margin: 0;
  line-height: 1.5;
}

.pg-nature-card__bridge {
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: var(--pg-accent);
  padding-top: 1.5rem;
}

.pg-nature-card__resonance {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--pg-accent);
  background: var(--pg-accent-soft);
  border-radius: 0 0.65rem 0.65rem 0;
}

.pg-nature-card__resonance p {
  margin: 0;
  font-style: italic;
  line-height: 1.45;
}

.pg-nature-table-wrap {
  margin-top: 2rem;
}

.pg-table-scroll {
  overflow-x: auto;
}

.pg-nature-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pg-nature-table th,
.pg-nature-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--pg-line);
  vertical-align: top;
  text-align: left;
}

.pg-nature-table th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pg-earth);
  background: rgba(255, 255, 255, 0.65);
}

.pg-nature-table tbody tr {
  cursor: pointer;
  transition: background 0.2s ease;
}

.pg-nature-table tbody tr:hover,
.pg-nature-table tbody tr.is-active {
  background: var(--pg-accent-soft);
}

.pg-sister--nature .pg-sister__row {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .pg-hub-nature__row,
  .pg-nature-hub__layout {
    grid-template-columns: 1fr;
  }

  .pg-hub-nature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-nature-card__columns {
    grid-template-columns: 1fr;
  }

  .pg-nature-card__bridge {
    padding: 0.25rem 0;
  }
}

@media (max-width: 520px) {
  .pg-hub-nature-grid {
    grid-template-columns: 1fr;
  }

  .pg-nature-wheel {
    min-width: 360px;
  }

  .pg-nature-node {
    width: 6.25rem;
    height: 6.25rem;
    margin: -3.125rem 0 0 -3.125rem;
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)));
  }

  .pg-nature-node.is-active {
    transform: rotate(calc((360deg / var(--pg-count)) * var(--pg-index) - 90deg))
      translate(var(--pg-orbit-lg))
      rotate(calc(-1 * ((360deg / var(--pg-count)) * var(--pg-index) - 90deg)))
      scale(1.06);
  }
}
