/*
 * Andar Core: "From Night to Dawn" page effects (v1.2.0)
 * Everything is scoped under .andar-dawn-page, so nothing else on the site is affected.
 * Classes Kat sets in Elementor (Advanced > CSS Classes):
 *   andar-dawn-page  page wrapper (first, full width container)
 *   andar-hour       each of the hour sections
 *   andar-teaching   each teaching card (Heading = title, Text Editor = hook, Text Editor = passage, andar-date = date)
 *   andar-date       the small session date widget inside a teaching
 *   andar-reveal     anything that should fade and rise in, line by line
 *   andar-draw-deck  empty container (or Shortcode widget) where the deck is built
 * Optional helpers: andar-dawn-hero, andar-note, andar-quote, andar-kicker, andar-hour-label,
 *   andar-scroll-cue, andar-closing, andar-no-deck (keeps one teaching out of the deck),
 *   andar-deck-source (container holding the deck's teaching cards: hidden on the page, compact in the editor),
 *   andar-star-being (an Image widget that floats faintly among the stars; add andar-being-upper-right
 *   or andar-being-lower-left to place it; swap the picture in the widget any time).
 */

.andar-dawn-page {
	/* Palette for dark sky (JS switches sections to light when the sky brightens). */
	--andar-ink: #F2EDE2;
	--andar-head: #F7F3EA;
	--andar-muted: rgba(247, 243, 234, .78);
	--andar-accent: #D9B26A;
	--andar-line: rgba(196, 154, 74, .55);
	--andar-panel: rgba(8, 17, 42, .55);
	--andar-panel-border: rgba(196, 154, 74, .42);
	--andar-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 22px rgba(3, 6, 20, .7);
	position: relative;
	isolation: isolate;
	color: var(--andar-ink);
	/* Fallback sky if JS is off: deep space at the top, dawn over a blue Earth at the bottom. */
	background-color: #0A1A3C;
	background-image: linear-gradient(180deg, #030612 0%, #0A1332 24%, #14346E 46%, #2A6AB8 62%, #96CEF6 74%, #1A5E93 76%, #0A2350 100%);
	overflow-x: clip;
}
.andar-dawn-page .andar-is-dark,
.andar-dawn-page.andar-is-dark {
	--andar-ink: #F2EDE2;
	--andar-head: #F7F3EA;
	--andar-muted: rgba(247, 243, 234, .8);
	--andar-accent: #D9B26A;
	--andar-line: rgba(196, 154, 74, .55);
	--andar-panel: rgba(8, 17, 42, .55);
	--andar-panel-border: rgba(196, 154, 74, .42);
	--andar-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 22px rgba(3, 6, 20, .7);
}
.andar-dawn-page .andar-is-light {
	--andar-ink: #1A2744;
	--andar-head: #1A5A8A;
	--andar-muted: #3F4A60;
	--andar-accent: #8A6A2E;
	--andar-line: rgba(196, 154, 74, .8);
	--andar-panel: rgba(255, 253, 248, .72);
	--andar-panel-border: rgba(196, 154, 74, .6);
	--andar-shadow: none;
}

/* Content sits above the universe (star canvas) and the Earth. */
.andar-dawn-page > *:not(.andar-stars):not(.andar-earth) { position: relative; z-index: 1; }

/* The Earth seen from space: painted by JS, its horizon runs through the card stack. */
.andar-dawn-page .andar-earth {
	position: absolute; left: 0; top: 0;
	width: 100%; height: 0;
	pointer-events: none;
	z-index: 0;
}

/* Star canvas: fixed to the screen, clipped to this page by JS, fades out near dawn. */
.andar-dawn-page .andar-stars {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	transition: opacity .8s ease;
}

/* ---------- Text colors follow the sky ---------- */
.andar-dawn-page .elementor-heading-title,
.andar-dawn-page h1, .andar-dawn-page h2, .andar-dawn-page h3, .andar-dawn-page h4 {
	color: var(--andar-head);
	text-shadow: var(--andar-shadow);
	transition: color .8s ease;
}
.andar-dawn-page .elementor-widget-text-editor,
.andar-dawn-page .elementor-widget-text-editor p {
	color: var(--andar-ink);
	transition: color .8s ease;
}
.andar-dawn-page .elementor-widget-text-editor a:not(.elementor-button) { color: var(--andar-accent); }

.andar-dawn-page .andar-kicker .elementor-heading-title,
.andar-dawn-page .andar-hour-label .elementor-heading-title,
.andar-dawn-page .andar-date .elementor-heading-title,
.andar-dawn-page .andar-date,
.andar-dawn-page .andar-date p {
	color: var(--andar-accent);
	letter-spacing: .18em;
	text-transform: uppercase;
	font-size: .78rem;
	font-weight: 600;
	text-shadow: none;
}

/* Hour label with thin gold rules on both sides. */
.andar-dawn-page .andar-hour-label .elementor-heading-title {
	display: flex; align-items: center; justify-content: center; gap: 14px;
}
.andar-dawn-page .andar-hour-label .elementor-heading-title::before,
.andar-dawn-page .andar-hour-label .elementor-heading-title::after {
	content: ""; flex: 0 1 64px; height: 1px; background: var(--andar-line);
}

/* ---------- Hero ---------- */
.andar-dawn-page .andar-dawn-hero { min-height: 0; justify-content: flex-start; }
.andar-dawn-page .andar-scroll-cue p,
.andar-dawn-page .andar-scroll-cue { color: var(--andar-muted); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.andar-dawn-page .andar-scroll-cue::after {
	content: ""; display: block; width: 1px; height: 46px; margin: 14px auto 0;
	background: linear-gradient(var(--andar-accent), transparent);
	animation: andar-cue 2.6s ease-in-out infinite;
	transform-origin: top;
}
@keyframes andar-cue { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Teaching cards ---------- */
.andar-dawn-page .andar-teaching {
	width: 100%;
	max-width: 760px;
	margin-left: auto; margin-right: auto;
	background: var(--andar-panel);
	border: 1px solid var(--andar-panel-border);
	border-radius: 18px;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	transition: background-color .8s ease, border-color .8s ease;
	scroll-margin-top: 90px;
}
.andar-dawn-page .andar-teaching::before {
	content: ""; display: block; width: 56px; height: 1px; margin: 0 auto 4px;
	background: var(--andar-line);
}
.andar-dawn-page .andar-teaching .elementor-widget-text-editor:last-of-type,
.andar-dawn-page .andar-teaching .andar-passage,
.andar-dawn-page .andar-teaching .andar-passage p {
	font-family: Georgia, "Times New Roman", serif;
}
.andar-dawn-page .andar-passage p,
.andar-dawn-page .andar-passage { font-size: 1.14rem; line-height: 1.75; }
.andar-dawn-page .andar-hook p,
.andar-dawn-page .andar-hook { color: var(--andar-muted); font-style: italic; }

/* ---------- Notes and quotes ---------- */
.andar-dawn-page .andar-note {
	width: 100%; max-width: 820px; margin-left: auto; margin-right: auto;
	background: var(--andar-panel);
	border: 1px solid var(--andar-panel-border);
	border-radius: 18px;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	transition: background-color .8s ease, border-color .8s ease;
}
.andar-dawn-page .andar-quote,
.andar-dawn-page .andar-quote p {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 1.12rem;
	line-height: 1.6;
}
.andar-dawn-page .andar-quote { border-left: 2px solid var(--andar-line); padding-left: 16px; }
.andar-dawn-page .andar-quote small, .andar-dawn-page .andar-quote .andar-quote-date {
	display: block; margin-top: 4px; font-style: normal; font-family: inherit;
	font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--andar-accent);
}
.andar-dawn-page .andar-note ul { margin: 0; padding-left: 1.1em; }
.andar-dawn-page .andar-note li { margin: .35em 0; color: var(--andar-ink); }
.andar-dawn-page .andar-note li::marker { color: var(--andar-accent); }

/* ---------- Line by line reveal (only when JS is on and motion is allowed) ---------- */
.andar-dawn-page.andar-motion .andar-reveal-ready .andar-line {
	opacity: 0;
	position: relative;
	top: .7em;
	transition: opacity 1s ease, top 1s cubic-bezier(.2, .7, .2, 1);
}
.andar-dawn-page.andar-motion .andar-reveal-ready.andar-in .andar-line { opacity: 1; top: 0; }

/* ---------- Draw a message deck ---------- */
.andar-dawn-page .andar-draw-deck { width: 100%; overflow-x: clip; }
.andar-dawn-page .andar-deck { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; padding: 10px 0 6px; }
.andar-dawn-page .andar-deck__stage {
	position: relative;
	width: min(310px, 80vw);
	aspect-ratio: 5 / 7;
	perspective: 1400px;
}
.andar-dawn-page .andar-deck__card {
	position: absolute; inset: 0;
	border-radius: 16px;
	transform-style: preserve-3d;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.andar-dawn-page .andar-deck__card--decor { transform: translate(calc(var(--i) * 5px), calc(var(--i) * 4px)) rotate(calc(var(--i) * 2.2deg)); }
.andar-dawn-page .andar-deck__card--decor:nth-child(1) { --i: 3; }
.andar-dawn-page .andar-deck__card--decor:nth-child(2) { --i: 2; }
.andar-dawn-page .andar-deck__card--decor:nth-child(3) { --i: 1; }
.andar-dawn-page .andar-deck__face {
	position: absolute; inset: 0;
	border-radius: 16px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	overflow: hidden;
}
.andar-dawn-page .andar-deck__face--back,
.andar-dawn-page .andar-deck__card--decor {
	background:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.95), transparent 70%),
		radial-gradient(1.2px 1.2px at 26% 9%, rgba(255,255,255,.8), transparent 70%),
		radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.85), transparent 70%),
		radial-gradient(1.4px 1.4px at 86% 30%, rgba(255,236,200,.9), transparent 70%),
		radial-gradient(1px 1px at 8% 46%, rgba(255,255,255,.7), transparent 70%),
		radial-gradient(1px 1px at 91% 55%, rgba(255,255,255,.75), transparent 70%),
		radial-gradient(1.2px 1.2px at 16% 72%, rgba(210,225,255,.85), transparent 70%),
		radial-gradient(1px 1px at 80% 78%, rgba(255,255,255,.7), transparent 70%),
		radial-gradient(1px 1px at 34% 88%, rgba(255,255,255,.75), transparent 70%),
		radial-gradient(1.3px 1.3px at 64% 92%, rgba(255,255,255,.8), transparent 70%),
		radial-gradient(1px 1px at 44% 22%, rgba(255,255,255,.55), transparent 70%),
		radial-gradient(1px 1px at 58% 70%, rgba(255,255,255,.5), transparent 70%),
		radial-gradient(circle at 50% 46%, rgba(190, 215, 255, .28), rgba(190, 215, 255, 0) 38%),
		radial-gradient(ellipse 70% 45% at 22% 26%, rgba(118, 66, 176, .55), rgba(118, 66, 176, 0) 70%),
		radial-gradient(ellipse 65% 50% at 80% 74%, rgba(34, 118, 152, .42), rgba(34, 118, 152, 0) 70%),
		radial-gradient(ellipse 60% 40% at 70% 20%, rgba(70, 60, 160, .35), rgba(70, 60, 160, 0) 70%),
		linear-gradient(160deg, #141F52 0%, #0B1438 55%, #070C26 100%);
	box-shadow: 0 14px 34px rgba(12, 22, 48, .28), inset 0 0 0 1px rgba(196, 154, 74, .55), inset 0 0 0 7px #0A1234, inset 0 0 0 8px rgba(196, 154, 74, .5);
}
/* The Andar figure floating in the card's little universe (same picture as the star beings). */
.andar-dawn-page .andar-deck__face--back::before,
.andar-dawn-page .andar-deck__card--decor::before {
	content: "";
	position: absolute; left: 10%; right: 10%; top: 12%; bottom: 8%;
	background: url("andar-form-420.webp") center / contain no-repeat;
	opacity: .9;
	filter: drop-shadow(0 0 10px rgba(150, 200, 255, .35));
	pointer-events: none;
}
.andar-dawn-page.andar-motion .andar-deck__face--back::before { animation: andar-card-being 9s ease-in-out infinite alternate; }
@keyframes andar-card-being { from { transform: translateY(3px); } to { transform: translateY(-4px); } }
.andar-dawn-page .andar-deck__face--front {
	transform: rotateY(180deg);
	background: #FBF7EE;
	box-shadow: 0 14px 34px rgba(12, 22, 48, .22), inset 0 0 0 1px rgba(196, 154, 74, .7), inset 0 0 0 8px #FBF7EE, inset 0 0 0 9px rgba(196, 154, 74, .45);
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	text-align: center;
	padding: 26px 24px;
	gap: 10px;
	color: #1A2744;
}
.andar-dawn-page .andar-deck__date { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8A6A2E; font-weight: 600; }
.andar-dawn-page .andar-deck__title { margin: 0; font-size: 1.15rem; line-height: 1.3; color: #1A5A8A; text-shadow: none; }
.andar-dawn-page .andar-deck__text { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1rem; line-height: 1.6; color: #1A2744; overflow: auto; }
.andar-dawn-page .andar-deck__more { font-size: .8rem; color: #1E5A8A; text-decoration: underline; text-underline-offset: 3px; }
.andar-dawn-page .andar-deck__more:hover, .andar-dawn-page .andar-deck__more:focus { color: #4A8EC4; }
.andar-dawn-page .andar-deck.is-flipped .andar-deck__card--main { transform: translateY(-8px) rotateY(180deg); }
.andar-dawn-page .andar-deck.is-shuffling .andar-deck__card--decor:nth-child(1) { animation: andar-riffle-a .7s ease-in-out; }
.andar-dawn-page .andar-deck.is-shuffling .andar-deck__card--decor:nth-child(2) { animation: andar-riffle-b .7s ease-in-out; }
.andar-dawn-page .andar-deck.is-shuffling .andar-deck__card--decor:nth-child(3) { animation: andar-riffle-a .7s ease-in-out .08s; }
.andar-dawn-page .andar-deck.is-shuffling .andar-deck__card--main { animation: andar-riffle-b .7s ease-in-out .12s; }
@keyframes andar-riffle-a { 0%, 100% { translate: 0 0; } 35% { translate: -46% -2%; } 70% { translate: 8% 0; } }
@keyframes andar-riffle-b { 0%, 100% { translate: 0 0; } 35% { translate: 46% -3%; } 70% { translate: -8% 0; } }
.andar-dawn-page .andar-deck__btn {
	appearance: none; border: 0; cursor: pointer;
	background: #1E5A8A; color: #FFFFFF;
	font: inherit; font-weight: 600; letter-spacing: .02em;
	padding: 12.5px 26px; border-radius: 9999px;
	transition: background-color .25s ease;
}
.andar-dawn-page .andar-deck__btn:hover, .andar-dawn-page .andar-deck__btn:focus-visible { background: #4A8EC4; }
.andar-dawn-page .andar-deck__btn:focus-visible, .andar-dawn-page .andar-deck__more:focus-visible { outline: 2px solid #C49A4A; outline-offset: 3px; }
.andar-dawn-page .andar-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Label widgets inside the deck container are read by JS, then hidden. */
.andar-dawn-page .andar-draw-deck.andar-deck-built .andar-deck-button-label,
.andar-dawn-page .andar-draw-deck.andar-deck-built .andar-deck-again-label { display: none; }
/* In the Elementor editor the two labels stay visible (small, dashed) so they can be clicked and edited. */
body.elementor-editor-active .andar-dawn-page .andar-draw-deck.andar-deck-built .andar-deck-button-label,
body.elementor-editor-active .andar-dawn-page .andar-draw-deck.andar-deck-built .andar-deck-again-label {
	display: block; opacity: .7; font-size: .8rem; border: 1px dashed var(--andar-line); padding: 2px 8px; border-radius: 6px;
}

/* ---------- Closing ---------- */
.andar-dawn-page .andar-closing .elementor-button { transition: background-color .25s ease; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.andar-dawn-page .andar-dawn-hero { min-height: 0; }
	.andar-dawn-page .andar-deck__stage { width: min(280px, 72vw); }
	.andar-dawn-page .andar-deck__text { font-size: .95rem; }
	.andar-dawn-page .andar-passage p, .andar-dawn-page .andar-passage { font-size: 1.05rem; line-height: 1.7; }
	.andar-dawn-page .andar-teaching, .andar-dawn-page .andar-note { border-radius: 14px; }
}

/* ---------- Reduced motion: no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
	.andar-dawn-page .andar-scroll-cue::after { animation: none; }
	.andar-dawn-page .andar-deck__card { transition: none; }
	.andar-dawn-page .andar-deck.is-shuffling .andar-deck__card { animation: none !important; }
	.andar-dawn-page .andar-stars { transition: none; }
}

/* Balanced wrapping so big headings never leave one lonely word on the last line. */
.andar-dawn-page .elementor-heading-title { text-wrap: balance; }
.andar-dawn-page .andar-closing .elementor-heading-title { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Star beings: faint figures floating in the night sky ----------
 * An Elementor Image widget with the classes andar-star-being + andar-being-upper-right (or
 * andar-being-lower-left), placed inside the hero or an hour section. It is taken out of the
 * layout, sits behind the words, drifts slowly, and fades out with the stars (JS sets
 * --andar-star-op on the page from the same sky brightness the stars use).
 */
.andar-dawn-page .andar-dawn-hero,
.andar-dawn-page .andar-hour { position: relative; }
.andar-dawn-page .andar-dawn-hero > .e-con-inner > *:not(.andar-star-being),
.andar-dawn-page .andar-dawn-hero > *:not(.andar-star-being):not(.e-con-inner),
.andar-dawn-page .andar-hour > .e-con-inner > *:not(.andar-star-being),
.andar-dawn-page .andar-hour > *:not(.andar-star-being):not(.e-con-inner) { position: relative; z-index: 1; }
.andar-dawn-page .elementor-widget.andar-star-being {
	position: absolute !important;
	z-index: 0;
	margin: 0 !important;
	pointer-events: none;
	user-select: none;
	width: var(--andar-being-w, 220px) !important;
	max-width: none !important;
	opacity: calc(var(--andar-being-max, .36) * var(--andar-star-op, 1));
	transition: opacity .8s ease;
	mix-blend-mode: screen;
	mix-blend-mode: plus-lighter;
}
.andar-dawn-page .andar-star-being .elementor-widget-container { margin: 0; padding: 0; position: relative; }
.andar-dawn-page .andar-star-being img {
	display: block; position: relative; width: 100% !important; height: auto !important; max-width: none !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	/* layered glow: white core, cyan glow, wide soft blue */
	filter: drop-shadow(0 0 2px rgba(220, 240, 255, .35)) drop-shadow(0 0 22px rgba(80, 160, 255, .38));
}
/* soft outer halo behind the figure (pulses with the breath) */
.andar-dawn-page .elementor-widget.andar-star-being::before {
	content: ""; position: absolute; left: -22%; right: -22%; top: -6%; bottom: -4%;
	background: radial-gradient(ellipse 50% 46% at 50% 44%, rgba(120, 190, 255, .2), rgba(90, 150, 255, .08) 45%, rgba(90, 150, 255, 0) 72%);
	pointer-events: none;
}
/* Effects layer added by the plugin: shimmer up the strands, round chest glow, rising sparkles. */
.andar-dawn-page .andar-being-fx { position: absolute; inset: 0; pointer-events: none; }
.andar-dawn-page .andar-being-shimmer {
	position: absolute; inset: 0; overflow: hidden;
	-webkit-mask-size: 100% 100%; mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	mix-blend-mode: plus-lighter;
}
.andar-dawn-page .andar-being-shimmer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34%;
	background: linear-gradient(180deg, rgba(210, 250, 255, 0), rgba(225, 252, 255, .75) 50%, rgba(210, 250, 255, 0));
	transform: translateY(300%);
	opacity: 0;
}
.andar-dawn-page .andar-being-chest {
	position: absolute; left: 50.6%; top: 43%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 250, 230, .55) 0%, rgba(255, 233, 168, .28) 24%, rgba(246, 223, 147, .1) 48%, rgba(246, 223, 147, 0) 70%);
	mix-blend-mode: plus-lighter;
	opacity: .7;
}
.andar-dawn-page .andar-being-sparks { position: absolute; left: -18%; top: -8%; width: 136%; height: 112%; }

/* The large figure: in the right-hand margin, from about title height down past the top of the Night card. */
.andar-dawn-page .andar-being-upper-right { top: 48px; right: max(.5vw, calc(50vw - 380px - var(--andar-being-w) - 8px)); --andar-being-w: clamp(280px, 28vw, 420px); --andar-being-max: .72; }
.andar-dawn-page .andar-being-lower-left  { bottom: 5%; left: 4vw; --andar-being-w: clamp(110px, 10vw, 160px); --andar-being-max: .4; }

/* Alive: slow drift, a 5 s breath with glow pulse, strands shimmer, chest pulse. */
.andar-dawn-page.andar-motion .elementor-widget.andar-star-being { animation: andar-being-drift 19s ease-in-out infinite alternate; }
.andar-dawn-page.andar-motion .andar-being-lower-left { animation-duration: 23s; animation-delay: -6s; }
.andar-dawn-page.andar-motion .andar-star-being img,
.andar-dawn-page.andar-motion .andar-star-being .andar-being-fx { animation: andar-being-breathe 5s ease-in-out infinite; transform-origin: 50% 45%; }
.andar-dawn-page.andar-motion .elementor-widget.andar-star-being::before { animation: andar-being-halo 5s ease-in-out infinite; }
.andar-dawn-page.andar-motion .andar-being-shimmer::before { animation: andar-being-shimmer 6.5s ease-in-out infinite; }
.andar-dawn-page.andar-motion .andar-being-chest { animation: andar-being-chest 5s ease-in-out infinite; }
.andar-dawn-page.andar-motion .andar-being-lower-left img,
.andar-dawn-page.andar-motion .andar-being-lower-left .andar-being-fx,
.andar-dawn-page.andar-motion .andar-being-lower-left::before,
.andar-dawn-page.andar-motion .andar-being-lower-left .andar-being-chest { animation-delay: -2.2s; }
@keyframes andar-being-drift {
	0%   { transform: translate(0, 0) rotate(0deg); }
	50%  { transform: translate(-8px, -14px) rotate(-1.2deg); }
	100% { transform: translate(6px, -4px) rotate(.8deg); }
}
@keyframes andar-being-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes andar-being-halo { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes andar-being-chest { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.85); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes andar-being-shimmer {
	0%   { transform: translateY(300%); opacity: 0; }
	12%  { opacity: 1; }
	70%  { opacity: 1; }
	85%, 100% { transform: translateY(-110%); opacity: 0; }
}
/* Medium screens: the words take more width, so the big figure is a little smaller. */
@media (max-width: 1199px) {
	.andar-dawn-page .andar-being-upper-right { right: .5vw; --andar-being-w: clamp(200px, 22vw, 260px); --andar-being-max: .62; }
	.andar-dawn-page .andar-being-lower-left  { left: 1vw; --andar-being-w: 100px; --andar-being-max: .34; }
}
/* Phones: one figure, larger and brighter, behind the words and fading out where the text begins. */
@media (max-width: 767px) {
	.andar-dawn-page .andar-being-lower-left { display: none !important; }
	.andar-dawn-page .andar-being-upper-right { top: 8px; bottom: auto; right: 4px; --andar-being-w: 190px; --andar-being-max: .6;
		-webkit-mask-image: linear-gradient(180deg, #000 38%, rgba(0,0,0,.4) 62%, transparent 88%);
		mask-image: linear-gradient(180deg, #000 38%, rgba(0,0,0,.4) 62%, transparent 88%); }
	.andar-dawn-page .andar-star-being img { filter: drop-shadow(0 0 2px rgba(220, 240, 255, .35)) drop-shadow(0 0 14px rgba(80, 160, 255, .35)); }
}
/* Reduced motion: still, but just as bright. */
@media (prefers-reduced-motion: reduce) {
	.andar-dawn-page .elementor-widget.andar-star-being,
	.andar-dawn-page .andar-star-being img,
	.andar-dawn-page .andar-star-being .andar-being-fx,
	.andar-dawn-page .elementor-widget.andar-star-being::before,
	.andar-dawn-page .andar-being-shimmer::before,
	.andar-dawn-page .andar-being-chest { animation: none !important; }
	.andar-dawn-page .andar-being-sparks { display: none; }
}
/* Editor: keep them visible but static so they are easy to find and select. */
body.elementor-editor-active .andar-dawn-page .elementor-widget.andar-star-being { pointer-events: auto; opacity: .6; }

/* ---------- Deck cards kept only in the deck (andar-deck-source) ---------- */
body:not(.elementor-editor-active) .andar-dawn-page .andar-deck-source { display: none !important; }
body.elementor-editor-active .andar-dawn-page .andar-deck-source {
	position: relative; margin-top: 18px; padding: 40px 12px 12px !important;
	border: 1px dashed var(--andar-line); border-radius: 12px;
}
body.elementor-editor-active .andar-dawn-page .andar-deck-source::before {
	content: "Deck cards (hidden on page)"; position: absolute; top: 10px; left: 12px;
	font: 600 .75rem/1.2 Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase;
	color: var(--andar-muted); border: 1px dashed var(--andar-line); border-radius: 6px; padding: 3px 8px;
}
body.elementor-editor-active .andar-dawn-page .andar-deck-source .andar-teaching { padding: 12px 16px !important; gap: 4px !important; border-radius: 10px; }
body.elementor-editor-active .andar-dawn-page .andar-deck-source .andar-teaching::before { display: none; }
body.elementor-editor-active .andar-dawn-page .andar-deck-source .elementor-heading-title { font-size: 1rem !important; }
body.elementor-editor-active .andar-dawn-page .andar-deck-source .andar-hook p { font-size: .8rem; }
body.elementor-editor-active .andar-dawn-page .andar-deck-source .andar-passage p {
	font-size: .82rem; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Full passage panel under the deck ("Read the full teaching") */
.andar-dawn-page .andar-deck__full {
	width: 100%; max-width: 640px; box-sizing: border-box; text-align: left;
	background: #FBF6EC; color: #1A2744;
	border: 1px solid rgba(196, 154, 74, .7); border-radius: 16px;
	box-shadow: 0 14px 34px rgba(2, 8, 24, .35), inset 0 0 0 6px #FBF6EC, inset 0 0 0 7px rgba(196, 154, 74, .4);
	padding: 24px 28px;
}
.andar-dawn-page .andar-deck__full[hidden] { display: none; }
.andar-dawn-page .andar-deck__full-date { margin: 0 0 4px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #8A6A2E; font-weight: 600; text-align: center; text-shadow: none; }
body .andar-dawn-page .andar-deck__full-title { margin: 0 0 12px; text-align: center; font-size: 1.3rem; line-height: 1.3; color: #1A5A8A !important; font-family: Cinzel, Georgia, serif !important; text-transform: none !important; font-weight: 500 !important; letter-spacing: .02em !important; text-shadow: none !important; }
body .andar-dawn-page .andar-deck__full-title::before, body .andar-dawn-page .andar-deck__full-title::after { display: none !important; }
.andar-dawn-page .andar-deck__full-text { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.75; color: #1A2744; text-shadow: none; overflow-wrap: anywhere; }
@media (max-width: 767px) { .andar-dawn-page .andar-deck__full { padding: 18px 18px; } .andar-dawn-page .andar-deck__full-text { font-size: 1rem; } }

/* ---------- Universe and Earth: readability and placement ---------- */
/* Words over the sky and the Earth get a soft dark halo (set in --andar-shadow above). */
.andar-dawn-page .andar-is-dark .elementor-widget-text-editor p,
.andar-dawn-page .andar-is-dark.elementor-widget-text-editor p { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 16px rgba(3, 8, 24, .6); }
.andar-dawn-page .andar-teaching .elementor-widget-text-editor p { text-shadow: none; }
/* The closing line stands on the Earth, below the deck. */
.andar-dawn-page .andar-closing { min-height: 50vh; }
.andar-dawn-page .andar-closing > .e-con-inner,
.andar-dawn-page .andar-closing > .elementor-widget { position: relative; }
.andar-dawn-page .andar-closing .elementor-heading-title {
	background: radial-gradient(closest-side, rgba(4, 12, 34, .42), rgba(4, 12, 34, 0));
	padding: 18px 28px;
}
.andar-dawn-page .andar-deck__btn { box-shadow: 0 6px 20px rgba(2, 8, 24, .35); }
@media (max-width: 767px) { .andar-dawn-page .andar-closing { min-height: 38vh; } }

/* ---------- Beat sitewide heading overrides (blue caps) on this page ---------- */
body .andar-dawn-page .elementor-widget-heading .elementor-heading-title,
body .andar-dawn-page h1.elementor-heading-title,
body .andar-dawn-page h2.elementor-heading-title,
body .andar-dawn-page h3.elementor-heading-title {
	color: var(--andar-head) !important;
	font-family: Cinzel, Georgia, serif !important;
	text-transform: none !important;
	font-weight: 500 !important;
	letter-spacing: .02em !important;
}
body .andar-dawn-page .andar-kicker .elementor-heading-title,
body .andar-dawn-page .andar-hour-label .elementor-heading-title,
body .andar-dawn-page .andar-date .elementor-heading-title {
	color: var(--andar-accent) !important;
	font-family: Nunito, sans-serif !important;
	text-transform: uppercase !important;
	letter-spacing: .18em !important;
	font-weight: 600 !important;
}

/* ---------- Full-bleed sky inside the theme's constrained content ---------- */
/* 1.2.4: clip (not hidden) so the page is not a scroll box and the sticky header keeps working. */
body:has(.andar-dawn-page) { overflow-x: clip; }
@supports not (overflow: clip) { body:has(.andar-dawn-page) { overflow-x: hidden; } }
/* 1.2.4: Elementor's .e-con { overflow: var(--overflow) } loads later and undid the clip set at the top,
 * so the star being, its sparkles and the drift animation pushed the page wider than the screen. */
.elementor .andar-dawn-page.e-con,
.elementor .andar-dawn-page { overflow-x: clip !important; }
@supports not (overflow: clip) {
	.elementor .andar-dawn-page.e-con,
	.elementor .andar-dawn-page { overflow-x: hidden !important; }
}
.elementor .andar-dawn-page,
.andar-dawn-page.e-con,
.andar-dawn-page.elementor-section {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
/* Hide the sitewide gold title flourish on this page (keeps hour-label rules). */
body .andar-dawn-page .elementor-element:not(.andar-hour-label) .elementor-heading-title::after,
body .andar-dawn-page .elementor-element:not(.andar-hour-label) .elementor-heading-title::before {
	display: none !important;
}

/* ---------- Top of the page (1.2.2): Night rises into the hero ----------
 * No empty block under the title: about 50px (34px on phones) between the title and the Night label,
 * so the Night card shows well on the first screen. The ringed planet sits beside them on the left. */
.andar-dawn-page .andar-dawn-hero { padding-bottom: 0 !important; }
.andar-dawn-page .andar-dawn-hero + .andar-hour { padding-top: 50px !important; }
/* The Night label and heading sit over the Milky Way: a deeper halo keeps them crisp. */
body .andar-dawn-page .andar-dawn-hero + .andar-hour .andar-hour-label .elementor-heading-title,
body .andar-dawn-page .andar-dawn-hero + .andar-hour .elementor-widget-heading:not(.andar-hour-label) .elementor-heading-title {
	text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 14px rgba(3, 6, 20, .95), 0 0 30px rgba(3, 6, 20, .8);
}
@media (max-width: 767px) {
	.andar-dawn-page .andar-dawn-hero { padding-top: 56px !important; }
	.andar-dawn-page .andar-dawn-hero + .andar-hour { padding-top: 34px !important; }
}

/* 1.3.1: the Teachings page runs straight into the footer, like the cosmic pages. The theme puts its
   block gap (margin-block-start, about 20 to 27px) above the footer, and on this page that strip showed
   the cream body colour between the Earth and the gold line. Only on Night to Dawn pages. */
body.andar-dawn-body .wp-site-blocks > footer,
body:has(.andar-dawn-page) .wp-site-blocks > footer { margin-block-start: 0; }
