/* Astral Moon Magic Guide Pages
 * Scoped to .amm-guide-page so it does not affect Elementor or normal pages.
 */

.amm-guide-page {
  --amm-ink: #1f1f1f;
  --amm-muted: #5d5d5d;
  --amm-soft: #fbf7ef;
  --amm-soft-2: #f7f1e4;
  --amm-gold: #e2c78c;
  --amm-border: rgba(0,0,0,.08);
  --amm-shadow: 0 16px 42px rgba(0,0,0,.06);
  background: #fff;
  color: var(--amm-ink);
}

.amm-guide-wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.amm-guide-article {
  font-size: 17px;
  line-height: 1.82;
}

.amm-guide-article h1,
.amm-guide-article h2,
.amm-guide-article h3 {
  color: var(--amm-ink);
}

.amm-guide-article h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}

.amm-guide-article h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  margin: 0 0 18px;
}

.amm-guide-article h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
}

.amm-guide-article p {
  margin: 0 0 14px;
  color: var(--amm-muted);
}

.amm-guide-hero {
  background: linear-gradient(180deg, #fff, var(--amm-soft));
  border: 1px solid var(--amm-border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--amm-shadow);
  position: relative;
  overflow: hidden;
}

.amm-guide-hero::after {
  content: "✦";
  position: absolute;
  top: -38px;
  right: 32px;
  font-size: 180px;
  line-height: 1;
  opacity: .04;
  pointer-events: none;
}

.amm-guide-hero-image {
  margin: 0 0 26px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--amm-border);
  background: #fff;
}

.amm-guide-hero-image img {
  display: block;
  width: 100%;
  height: clamp(240px, 42vw, 430px);
  object-fit: cover;
}

.amm-guide-kicker,
.amm-guide-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(226,199,140,.95);
  border-radius: 999px;
  background: rgba(247,241,228,.84);
  color: rgba(0,0,0,.62);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.amm-guide-cta-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amm-gold);
}

.amm-guide-intro {
  max-width: 78ch;
}

.amm-guide-intro p {
  font-size: 18px;
}

.amm-guide-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
}

.amm-guide-badges li {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(247,241,228,.9);
  border: 1px solid rgba(226,199,140,.95);
  color: rgba(0,0,0,.70);
  font-size: 13px;
  font-weight: 700;
}

.amm-guide-section {
  margin-top: 70px;
}

.amm-guide-section-intro,
.amm-guide-body {
  max-width: 82ch;
}

.amm-guide-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.amm-guide-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amm-guide-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amm-guide-card,
.amm-guide-callout,
.amm-guide-faq details,
.amm-guide-definition-item {
  background: var(--amm-soft-2);
  border: 1px solid rgba(226,199,140,.95);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.amm-guide-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.amm-guide-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -66px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(226,199,140,.18);
  pointer-events: none;
}

.amm-guide-card > * {
  position: relative;
  z-index: 1;
}

.amm-guide-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amm-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(226,199,140,.95);
  font-size: 18px;
  line-height: 1;
}

.amm-guide-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--amm-muted);
}

.amm-guide-list li {
  margin: 9px 0;
}

.amm-guide-callout {
  margin-top: 24px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.amm-guide-callout::after {
  content: "☽";
  position: absolute;
  right: 18px;
  top: -22px;
  font-size: 110px;
  line-height: 1;
  opacity: .06;
  pointer-events: none;
}

.amm-guide-callout p:last-child,
.amm-guide-card p:last-child,
.amm-guide-cta-text p:last-child {
  margin-bottom: 0;
}

.amm-guide-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.amm-guide-definition-item {
  padding: 18px 20px;
}

.amm-guide-definition-item strong,
.amm-guide-definition-item span {
  display: block;
}

.amm-guide-definition-item strong {
  margin-bottom: 4px;
  color: var(--amm-ink);
}

.amm-guide-definition-item span {
  color: var(--amm-muted);
}

.amm-guide-faq {
  margin-top: 22px;
}

.amm-guide-faq details {
  padding: 22px 24px;
  margin-bottom: 16px;
}

.amm-guide-faq summary {
  cursor: pointer;
  color: var(--amm-ink);
  font-size: 18px;
  font-weight: 800;
}

.amm-guide-faq-answer {
  margin-top: 14px;
}

.amm-guide-cta {
  max-width: 980px;
  margin: 72px auto 0;
  padding: 42px 36px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--amm-border);
  background: linear-gradient(180deg, #fff, var(--amm-soft));
  box-shadow: 0 25px 60px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}

.amm-guide-cta::before {
  content: "✦";
  position: absolute;
  top: -48px;
  right: 40px;
  font-size: 165px;
  line-height: 1;
  opacity: .035;
  pointer-events: none;
}

.amm-guide-cta > * {
  position: relative;
  z-index: 1;
}

.amm-guide-cta-kicker {
  margin-left: auto;
  margin-right: auto;
}

.amm-guide-cta h2 {
  margin-bottom: 14px;
}

.amm-guide-cta-text {
  max-width: 72ch;
  margin: 0 auto;
}

.amm-guide-cta-features {
  margin: 28px auto 28px;
  text-align: left;
}

.amm-guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--amm-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.amm-guide-button:hover,
.amm-guide-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  opacity: .98;
}

.amm-guide-microcopy {
  margin-top: 14px !important;
  color: rgba(0,0,0,.58) !important;
  font-size: 13px;
}

.amm-guide-fallback .amm-guide-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .amm-guide-wrap {
    width: min(100% - 28px, 1100px);
    padding: 36px 0 56px;
  }

  .amm-guide-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .amm-guide-section {
    margin-top: 48px;
  }

  .amm-guide-grid-2,
  .amm-guide-grid-3,
  .amm-guide-definition-grid {
    grid-template-columns: 1fr;
  }

  .amm-guide-card,
  .amm-guide-callout,
  .amm-guide-faq details {
    padding: 20px;
  }

  .amm-guide-cta {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .amm-guide-button {
    width: 100%;
    min-width: 0;
  }
}

/* Interactive Moon Phases widget. Scoped to AMM guide pages. */
.amm-guide-page .amm-moon-widget {
  overflow: visible;
}

.amm-guide-page .amm-moon-widget::after {
  display: none;
}

.amm-guide-page .amm-moon-lead p:first-child {
  margin-top: 0;
}

.amm-guide-page .moon-timeline {
  margin-top: 18px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.amm-guide-page .timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.amm-guide-page .timeline-head strong {
  letter-spacing: .3px;
  font-size: 18px;
  color: var(--amm-ink);
}

.amm-guide-page .timeline-head span {
  color: var(--amm-muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.amm-guide-page .rail {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.amm-guide-page .rail::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(0,0,0,.14);
  border-radius: 999px;
}

.amm-guide-page .stops {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.amm-guide-page .stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.amm-guide-page .stop-label {
  font-size: 12.5px;
  color: var(--amm-muted);
  line-height: 1.15;
  max-width: 12ch;
}

.amm-guide-page .stop.is-active .stop-label {
  color: var(--amm-ink);
  font-weight: 700;
}

.amm-guide-page .stop.is-active .mini-moon {
  border-color: rgba(226,199,140,.98);
  box-shadow: 0 12px 22px rgba(0,0,0,.06), 0 0 0 6px rgba(226,199,140,.18), 0 0 0 1px rgba(226,199,140,.35) inset;
  transform: translateY(-1px);
}

.amm-guide-page .phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.amm-guide-page details.phase {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.amm-guide-page details.phase:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.06);
}

.amm-guide-page details.phase > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  outline: none;
}

.amm-guide-page details.phase > summary::-webkit-details-marker {
  display: none;
}

.amm-guide-page .phase-heading {
  display: block;
  min-width: 0;
}

.amm-guide-page .phase-title {
  display: block;
  font-weight: 800;
  color: var(--amm-ink);
  margin: 0 0 2px;
  font-size: 14.5px;
  line-height: 1.25;
}

.amm-guide-page .phase-sub {
  display: block;
  margin: 0;
  color: var(--amm-muted);
  font-size: 13.6px;
  line-height: 1.35;
}

.amm-guide-page .phase-body {
  padding: 0 14px 14px;
  color: var(--amm-muted);
  font-size: 14.3px;
  line-height: 1.75;
}

.amm-guide-page .phase-body p {
  font-size: 14.3px;
  line-height: 1.75;
}

.amm-guide-page .phase-body .mini-hr {
  height: 1px;
  background: rgba(0,0,0,.10);
  border: 0;
  margin: 10px 0;
}

.amm-guide-page .phase-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.amm-guide-page .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #fff, var(--amm-soft));
  box-shadow: 0 10px 20px rgba(0,0,0,.04);
  font-size: 12.8px;
  color: var(--amm-muted);
  white-space: nowrap;
}

.amm-guide-page .tag b {
  color: var(--amm-ink);
  font-weight: 800;
}

.amm-guide-page .caret {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.04);
  color: rgba(0,0,0,.55);
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.amm-guide-page details.phase[open] .caret {
  transform: rotate(180deg);
}

.amm-guide-page details.phase[open] {
  border-color: rgba(226,199,140,.9);
  box-shadow: 0 16px 36px rgba(0,0,0,.07);
}

.amm-guide-page details.phase[open] > summary {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(251,247,239,.75));
}

.amm-guide-page .moonicon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
  position: relative;
  border: 1px solid rgba(0,0,0,.14);
  background: radial-gradient(circle at 30% 30%, #fff 0%, #fbfbfb 55%, #f2f2f2 100%);
  box-shadow: inset 0 0 0 2px rgba(226,199,140,.26), 0 10px 18px rgba(0,0,0,.05);
  overflow: hidden;
  margin-top: 1px;
}

.amm-guide-page .moonicon::before,
.amm-guide-page .mini-moon::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #111;
  opacity: .95;
}

.amm-guide-page .moonicon::after,
.amm-guide-page .mini-moon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #fff;
}

.amm-guide-page .moonicon::before,
.amm-guide-page .moonicon::after {
  inset: 6px;
}

.amm-guide-page .mini-moon::before,
.amm-guide-page .mini-moon::after {
  inset: 4px;
}

.amm-guide-page .moon--new::after,
.amm-guide-page .mini--new::after {
  opacity: 0;
}

.amm-guide-page .moon--full::before,
.amm-guide-page .mini--full::before {
  opacity: 0;
}

.amm-guide-page .moon--firstq::after {
  clip-path: inset(0 0 0 50%);
}

.amm-guide-page .moon--lastq::after {
  clip-path: inset(0 50% 0 0);
}

.amm-guide-page .moon--waxcres::after {
  transform: translateX(9px);
}

.amm-guide-page .moon--wancres::after {
  transform: translateX(-9px);
}

.amm-guide-page .moon--waxgib::after,
.amm-guide-page .moon--wangib::after {
  opacity: 1;
}

.amm-guide-page .moon--waxgib::before {
  transform: translateX(-8px);
}

.amm-guide-page .moon--wangib::before {
  transform: translateX(8px);
}

.amm-guide-page .mini-moon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.amm-guide-page .mini--firstq::after {
  clip-path: inset(0 0 0 50%);
}

.amm-guide-page .mini--lastq::after {
  clip-path: inset(0 50% 0 0);
}

.amm-guide-page .mini--waxcres::after {
  transform: translateX(6px);
}

.amm-guide-page .mini--wancres::after {
  transform: translateX(-6px);
}

.amm-guide-page .mini--waxgib::before {
  transform: translateX(-5px);
}

.amm-guide-page .mini--wangib::before {
  transform: translateX(5px);
}

.amm-guide-page .mini-moon.is-key {
  border-color: rgba(226,199,140,.95);
  box-shadow: 0 10px 18px rgba(226,199,140,.14), 0 10px 18px rgba(0,0,0,.05);
}

@media (max-width: 900px) {
  .amm-guide-page .phase-grid {
    grid-template-columns: 1fr;
  }

  .amm-guide-page .stop-label {
    max-width: 10ch;
  }

  .amm-guide-page .timeline-head span {
    white-space: normal;
  }
}
