/* LankaLux Astro — Wellbeing & rituals (theme 1.17.0). Uses the dark
   astro-insights tokens (--llx-card, --llx-border, --llx-gold …). */

.llx-wb { display: flex; flex-direction: column; gap: 16px; }
.llx-wb > [data-llx-energy]:empty, .llx-wb > [data-llx-ground]:empty, .llx-wb > [data-llx-moon]:empty, .llx-wb > [data-llx-astroid]:empty, .llx-wb > [data-llx-sound-rec]:empty { display: none; }
.llx-how summary { cursor: pointer; color: var(--ax-gold-ink); font-weight: 600; font-size: 15px; }
.llx-how[open] summary { margin-bottom: 4px; }
.llx-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--llx-muted); cursor: pointer; line-height: 1.5; }
.llx-check input { margin-top: 3px; accent-color: var(--llx-gold); }
.llx-pill { appearance: none; border: 1px solid var(--llx-border); background: var(--ax-surface-2); color: var(--llx-ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.llx-pill[aria-pressed="true"] { background: var(--llx-gold); color: var(--ax-on-gold); border-color: var(--llx-gold); font-weight: 600; }
.llx-pill.is-rec:not([aria-pressed="true"]) { border-color: var(--llx-gold); }
.llx-pill:focus-visible, .llx-preset input:focus-visible + span { outline: 2px solid var(--llx-gold); outline-offset: 2px; }
.llx-wsteps { margin: 10px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 1.7; }
.llx-wsteps li + li { margin-top: 6px; }
.llx-wsteps b { color: var(--ax-gold-ink); }
.llx-box--warn { border-color: rgba(224, 122, 95, .55); }
.llx-box--warn h4 { color: var(--ax-bad-ink); }
.llx-science { border-left: 3px solid var(--llx-border); padding-left: 10px; }
.llx-grid--2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .llx-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Experience call-to-action */
.llx-expcta { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; text-decoration: none !important; color: var(--llx-ink) !important;
	background: linear-gradient(135deg, rgba(var(--ax-gold-rgb), .14), rgba(var(--ax-gold-rgb), .03)); border: 1px solid rgba(var(--ax-gold-rgb), .45); }
.llx-expcta:hover, .llx-expcta:focus-visible { border-color: var(--llx-gold); }
.llx-expcta__kicker { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ax-gold-ink); }
.llx-expcta b { font-size: 17px; }
.llx-expcta__text { font-size: 14px; line-height: 1.6; color: var(--llx-muted); }
.llx-expcta__go { margin-top: 4px; font-weight: 600; color: var(--ax-gold-ink); font-size: 14.5px; }

/* 1. Energy forecast */
.llx-ehead { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.llx-energy { background: var(--llx-card); border: 1px solid var(--llx-border); border-radius: 14px; padding: 18px 16px; }
.llx-energy h4 { margin: 18px 0 8px; font-size: 16px; color: var(--ax-gold-ink); }
.llx-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.llx-ring { margin: 0; position: relative; text-align: center; }
.llx-ring svg { width: 100%; max-width: 150px; display: block; margin: 0 auto; }
.llx-ring__bg { fill: none; stroke: rgba(var(--ax-veil), .08); stroke-width: 9; }
.llx-ring__fg { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.llx-ring__val { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; max-width: 150px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.llx-ring__val b { font-size: clamp(20px, 5vw, 28px); line-height: 1; color: var(--llx-ink); }
.llx-ring__val small { font-size: 12px; color: var(--llx-muted); margin-top: 4px; }
.llx-ring figcaption { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--llx-ink); }
.llx-etips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.6; }
.llx-etips li { padding-left: 14px; border-left: 3px solid var(--c); }
.llx-factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; line-height: 1.55; }
.llx-factors .is-plus span { color: var(--llx-good); font-weight: 700; }
.llx-factors .is-minus span { color: var(--llx-caution); font-weight: 700; }
.llx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px !important; font-size: 13px; color: var(--llx-muted); }
.llx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.llx-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); display: inline-block; }
.llx-week { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.llx-week li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.llx-week li.is-today { background: rgba(var(--ax-gold-rgb), .08); }
.llx-week__d b { display: block; font-size: 14px; }
.llx-week__d small { font-size: 12px; color: var(--llx-muted); }
.llx-week__bars { display: grid; gap: 2px; }
.llx-week__bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 6px; align-items: center; height: 10px; }
.llx-week__bar::before { content: ""; grid-column: 1; height: 8px; border-radius: 4px; background: rgba(var(--ax-veil), .07); }
.llx-week__bar i { position: absolute; left: 0; top: 1px; height: 8px; width: calc((100% - 32px) * var(--v) / 100); border-radius: 4px; background: var(--c); }
.llx-week__bar em { font-style: normal; font-size: 11px; color: var(--llx-muted); text-align: right; line-height: 1; }

/* 2. Astro-ID */
.llx-idcard__preview canvas { width: 100%; max-width: 300px; height: auto; aspect-ratio: 9 / 16; border-radius: 16px; box-shadow: 0 18px 40px rgba(var(--ax-shadow-rgb), calc(.35 * var(--ax-shadow-k))); }
.llx-idcard__preview.is-post canvas { aspect-ratio: 4 / 5; max-width: 340px; }
.llx-seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
@media (min-width: 760px) { .llx-idcard { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; } }

/* 3. Grounding */
.llx-ground { background: var(--llx-card); border: 1px solid var(--llx-border); border-radius: 14px; padding: 16px; }
.llx-ground__lv { display: block; font-size: 24px; color: var(--llx-ink); }
.llx-meter { display: flex; gap: 6px; float: right; margin: 4px 0 0 12px; }
.llx-meter span { width: 26px; height: 10px; border-radius: 5px; background: rgba(var(--ax-veil), .1); }
.llx-meter span.is-on { background: var(--llx-good); }
.llx-ground--1 .llx-meter span.is-on { background: var(--llx-mixed); }
.llx-ground--2 .llx-meter span.is-on { background: var(--llx-caution); }
.llx-timer { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--llx-border); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.llx-timer__label { font-weight: 600; color: var(--ax-gold-ink); width: 100%; }
.llx-timer__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.llx-timer__out { font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; min-width: 90px; }
.llx-timer .llx-note { width: 100%; margin: 0; }

/* 4. Sound */
.llx-soundrec { background: linear-gradient(135deg, rgba(var(--ax-lav-rgb), .16), rgba(var(--ax-surface-rgb), 1)); border: 1px solid var(--llx-border); border-radius: 14px; padding: 16px; }
.llx-soundrec b { font-size: 19px; }
.llx-soundrec p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; }
.llx-player__presets { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .llx-player__presets { grid-template-columns: 1fr 1fr; } }
.llx-preset { position: relative; display: block; cursor: pointer; }
.llx-preset input { position: absolute; opacity: 0; inset: 0; }
.llx-preset span { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--llx-border); border-radius: 12px; background: var(--ax-surface-2); height: 100%; box-sizing: border-box; }
.llx-preset b { font-size: 15px; }
.llx-preset small { font-size: 12.5px; line-height: 1.5; color: var(--llx-muted); }
.llx-preset input:checked + span { border-color: var(--llx-gold); box-shadow: inset 0 0 0 1px var(--llx-gold); }
.llx-preset.is-rec span::after { content: "★"; position: absolute; top: 10px; right: 12px; color: var(--ax-gold-ink); }
.llx-player__row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 14px; }
.llx-field--inline { flex-direction: row; align-items: center; margin: 0; gap: 8px; }
.llx-field--inline select { width: auto; padding: 8px 10px; }
.llx-field--inline input[type="range"] { width: 120px; accent-color: var(--llx-gold); padding: 0; background: none; border: 0; }
.llx-player__time { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; margin-left: auto; }
.llx-breath { display: flex; align-items: center; justify-content: center; gap: 16px; height: 0; overflow: hidden; transition: height .4s ease; }
.llx-breath.is-on { height: 130px; }
.llx-breath__dot { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ax-gold-rgb), .55), rgba(var(--ax-lav-rgb), .35)); box-shadow: 0 0 30px rgba(var(--ax-gold-rgb), .25); }
.llx-breath.is-on .llx-breath__dot { animation: llx-breath 10s ease-in-out infinite; }
.llx-breath__txt { font-size: 15px; color: var(--llx-muted); min-width: 110px; }
@keyframes llx-breath { 0% { transform: scale(1); } 40% { transform: scale(2.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .llx-breath.is-on .llx-breath__dot { animation: none; } }
.llx-soundcta { margin-top: 18px; }

/* 5. Moon & Poya */
.llx-poya { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.llx-poya__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--ax-surface-2); border: 1px solid var(--llx-border); }
.llx-poya__row.is-next { border-color: var(--llx-gold); }
.llx-poya__moon { color: #f4efe2; font-size: 16px; line-height: 1.4; }
.llx-poya__name b { display: block; font-size: 15.5px; }
.llx-poya__name small { font-size: 13px; color: var(--llx-muted); }
.llx-poya__full, .llx-poya__you { grid-column: 2; font-size: 13px; color: var(--llx-muted); }
.llx-poya__you:empty { display: none; }
.llx-poya__you .llx-chip { white-space: normal; text-align: left; }
@media (min-width: 760px) {
	.llx-poya__row { grid-template-columns: 22px minmax(170px, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }
	.llx-poya__full, .llx-poya__you { grid-column: auto; }
}
.llx-newmoon { margin: 12px 0 0 !important; font-weight: 600; }
.llx-moonme { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--llx-card); border: 1px solid var(--llx-border); border-radius: 14px; padding: 16px; }
.llx-moonme__disc { width: 84px; height: 84px; border-radius: 50%; background: var(--ax-moon-dark); position: relative; overflow: hidden; box-shadow: 0 0 24px rgba(244, 239, 226, .2); }
.llx-moonme__disc span { position: absolute; inset: 0; border-radius: 50%; background: #f4efe2;
	clip-path: inset(0 calc((100 - var(--illum)) * 1%) 0 0 round 50%); }
.llx-moonme__disc[style*="--wax:-1"] span { clip-path: inset(0 0 0 calc((100 - var(--illum)) * 1%) round 50%); }
.llx-moonme__type { display: block; font-size: 21px; }
.llx-moonme p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; }
.llx-facts-inline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--llx-muted); }
.llx-ritual--full h4 { color: #f4efe2; }
@media (max-width: 480px) {
	.llx-rings { gap: 4px; }
	.llx-ring figcaption { font-size: 12.5px; }
	.llx-week li { grid-template-columns: 58px minmax(0, 1fr); }
	.llx-week li .llx-chip { grid-column: 2; justify-self: start; }
	.llx-moonme { grid-template-columns: 64px minmax(0, 1fr); }
	.llx-moonme__disc { width: 64px; height: 64px; }
	.llx-player__time { margin-left: 0; }
}
[data-llx-energy] > .llx-box { margin-top: 14px; }
