/* Alice/Kevin A-Z preview page only. The original A-Z library CSS is unchanged. */
/* Model-switcher strip above the toolbar. The choice popup (.al-ak-dialog*)
asks once per visit; this strip lets visitors switch Alice/Kevin after that.
.al-ak-model-btn is shared by both. */
.al-ak-switcher {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.85rem;
margin: 0 0 0.85rem;
padding: 0.45rem 0.5rem 0.45rem 0.85rem;
border: 1px solid rgba(85, 136, 106, 0.18);
border-radius: 999px;
background: color-mix(in srgb, var(--sage) 13%, rgba(255, 255, 255, 0.92));
box-shadow: 0 14px 34px -30px rgba(27, 19, 43, 0.45);
}

.al-ak-switcher__label {
font-size: 0.8rem;
font-weight: 700;
color: var(--sage-dk);
}
.al-tools {
padding-top: 0.5rem;
}
.fs-hero {
padding-bottom: clamp(0.5rem, 1.6vw, 1rem);
}
/* More horizontal room between the hero wording and the slideshow, and
nudge the slideshow slightly toward the right -- desktop only, so the
mobile stacked layout (see asana-list.css's own <=760px rules) is untouched. */
@media (min-width: 761px) {
.al-hero-grid {
gap: clamp(2.2rem, 5vw, 4rem);
}
.al-hero-art {
transform: translateX(clamp(0px, 3vw, 48px));
}
}
.al-ak-switcher__choices,
.al-ak-dialog__actions {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}

.al-ak-model-btn {
min-width: 88px;
border: 1px solid rgba(85, 136, 106, 0.24);
border-radius: 999px;
background: rgba(255, 255, 255, 0.72);
color: var(--sage-dk);
font: inherit;
font-size: 0.86rem;
font-weight: 700;
padding: 0.52rem 0.95rem;
cursor: pointer;
box-shadow: 0 8px 22px -18px rgba(27, 19, 43, 0.5);
transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.al-ak-model-btn:hover,
.al-ak-model-btn:focus-visible {
transform: translateY(-1px);
outline: none;
border-color: rgba(85, 136, 106, 0.48);
background: rgba(255, 255, 255, 0.92);
}

.al-ak-model-btn.is-on {
background: var(--sage-dk);
border-color: var(--sage-dk);
color: #fff;
}

.al-ak-dialog {
position: fixed;
inset: 0;
z-index: 30000;
display: grid;
place-items: center;
padding: 1.2rem;
background: rgba(27, 19, 43, 0.34);
backdrop-filter: blur(8px);
}

.al-ak-dialog__panel {
width: min(470px, 92vw);
display: grid;
gap: 0.75rem;
padding: clamp(1.1rem, 3vw, 1.45rem);
border: 1px solid rgba(255, 255, 255, 0.78);
border-radius: 20px;
background:
linear-gradient(180deg, rgba(255, 251, 245, 0.97), rgba(238, 248, 241, 0.99)),
radial-gradient(circle at 78% 12%, rgba(157, 216, 207, 0.24), transparent 35%);
box-shadow: 0 28px 80px rgba(18, 28, 24, 0.28);
text-align: center;
}

.al-ak-dialog__eyebrow {
margin: 0;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--sage-dk);
}

.al-ak-dialog__panel h2 {
margin: 0;
font-size: clamp(1.45rem, 4vw, 2rem);
line-height: 1.08;
color: var(--ink-900);
}

.al-ak-dialog__panel p {
margin: 0;
color: var(--text-soft);
}

.al-ak-dialog__actions {
justify-content: center;
margin-top: 0.25rem;
}

@media (max-width: 560px) {
.al-ak-switcher {
align-items: stretch;
flex-direction: column;
border-radius: 18px;
}

.al-ak-switcher__choices,
.al-ak-dialog__actions {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
}

.al-ak-model-btn {
min-width: 0;
}
}

/* ---- video loading screen: shown right after choosing Alice/Kevin, while
their photos load underneath. js/asana-list-ak.js toggles .is-open and
clears it once the hero photo is ready (or a safety timeout passes). ---- */
.al-ak-loading {
position: fixed;
inset: 0;
z-index: 29990;
overflow: hidden;
background: #0e1712;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 650ms ease;
}

.al-ak-loading.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.al-ak-loading__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

.al-ak-loading__scrim {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(14, 23, 18, 0.55) 0%, rgba(14, 23, 18, 0.35) 45%, rgba(14, 23, 18, 0.72) 100%);
}

.al-ak-loading__text {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.6rem;
text-align: center;
padding: 1.5rem;
animation: alAkFloat 3.2s ease-in-out infinite;
}

/* Title and sub line share one size so the two lines read as a pair. */
.al-ak-loading__title,
.al-ak-loading__sub {
margin: 0;
font-size: clamp(1.5rem, 4vw, 2.1rem);
text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.al-ak-loading__title {
color: #fff;
}

/* The id + !important outranks mvp.css's site-wide forced copy colour, which
otherwise turns this line dark green and unreadable over the video. */
#akLoadingSub.al-ak-loading__sub {
color: #e7f3ec !important;
}

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

@media (prefers-reduced-motion: reduce) {
.al-ak-loading__text { animation: none; }
.al-ak-loading { transition: none; }
}

/* ---- "Instructions & Benefits" card button (was a plain <a> "Learn more")
Reset the native <button> chrome so it keeps .al-card__wiki's existing
look (font-size/weight/colour, hover colour) from css/asana-list.css. ---- */
.al-card__wiki {
background: none;
border: 0;
padding: 0;
margin: 0;
font: inherit;
cursor: pointer;
text-align: left;
}

/* ---- "Instructions & Benefits" popup: one modal, reused for every pose ---- */
.al-guide-modal {
position: fixed;
inset: 0;
z-index: 30000;
display: grid;
place-items: center;
padding: clamp(0.9rem, 3vw, 2rem);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 220ms ease, visibility 220ms ease;
}

.al-guide-modal.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.al-guide-modal__backdrop {
position: absolute;
inset: 0;
border: 0;
margin: 0;
padding: 0;
background: rgba(27, 19, 43, 0.42);
backdrop-filter: blur(8px);
cursor: zoom-out;
}

.al-guide-modal__panel {
position: relative;
z-index: 1;
width: min(640px, 94vw);
max-height: min(86vh, 900px);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: clamp(1.4rem, 3vw, 2.1rem);
border: 1px solid rgba(255, 255, 255, 0.78);
border-radius: var(--radius, 20px);
background:
linear-gradient(180deg, rgba(255, 251, 245, 0.97), rgba(238, 248, 241, 0.99)),
radial-gradient(circle at 78% 8%, rgba(157, 216, 207, 0.24), transparent 38%);
box-shadow: var(--shadow, 0 28px 80px rgba(18, 28, 24, 0.34));
transform: translateY(8px) scale(0.985);
transition: transform 260ms ease;
}

.al-guide-modal.is-open .al-guide-modal__panel {
transform: translateY(0) scale(1);
}

.al-guide-modal__close {
position: sticky;
float: right;
top: 0;
margin: -0.4rem -0.4rem 0 0.6rem;
width: 44px;
height: 44px;
display: grid;
place-items: center;
border: 1px solid rgba(85, 136, 106, 0.24);
border-radius: 999px;
background: rgba(255, 255, 255, 0.92);
color: var(--ink-900, #1e4d32);
font-size: 1.3rem;
line-height: 1;
cursor: pointer;
}

.al-guide-modal__close:hover,
.al-guide-modal__close:focus-visible {
background: var(--sage-dk, #2f8055);
color: #fff;
outline: none;
}

.al-guide-modal__body { min-width: 0; }

.al-guide-modal__eyebrow {
margin: 0;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--sage-dk, #2f8055);
}

.al-guide-modal__title {
margin: 0.2rem 0 0.6rem;
font-size: clamp(1.4rem, 4vw, 1.9rem);
line-height: 1.12;
color: var(--ink-900, #1e4d32);
}

.al-guide-modal__meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 0.7rem;
}

.al-guide-modal__meta-item {
font-size: 0.78rem;
font-weight: 700;
padding: 0.3rem 0.7rem;
border-radius: 999px;
background: rgba(85, 136, 106, 0.12);
color: var(--text, #1c3a28);
}

.al-guide-modal__meta-item--sk { font-style: italic; font-weight: 600; }

.al-guide-modal__breathing-badge {
display: inline-block;
margin: 0 0 1.1rem;
padding: 0.4rem 0.9rem;
border-radius: 999px;
font-size: 0.82rem;
font-weight: 700;
background: var(--sage-dk, #2f8055);
color: #fff;
}

.al-guide-modal__breathing-badge[hidden] { display: none; }

.al-guide-modal__section { margin: 0 0 1.15rem; }
.al-guide-modal__section:last-of-type { margin-bottom: 0; }

.al-guide-modal__section-title {
margin: 0 0 0.4rem;
font-size: 0.95rem;
font-weight: 700;
color: var(--sage-dk, #2f8055);
}

.al-guide-modal__section-text {
margin: 0;
color: var(--text, #1c3a28);
line-height: 1.55;
}

.al-guide-modal__section-list {
margin: 0;
padding-left: 1.25rem;
color: var(--text, #1c3a28);
line-height: 1.55;
display: grid;
gap: 0.3rem;
}

.al-guide-modal__section--instructions .al-guide-modal__section-list { padding-left: 1.4rem; }


.al-guide-modal__disclaimer {
margin: 1rem 0 0;
padding-top: 0.9rem;
border-top: 1px solid rgba(27, 19, 43, 0.1);
font-size: 0.8rem;
color: var(--text-soft, #507060);
}

.al-guide-modal__disclaimer a { color: var(--sage-dk, #2f8055); font-weight: 700; }

@media (max-width: 640px) {
.al-guide-modal { padding: 0; align-items: flex-end; }
.al-guide-modal__panel {
width: 100%;
max-height: 92vh;
border-radius: var(--radius, 20px) var(--radius, 20px) 0 0;
}
}

@media (prefers-reduced-motion: reduce) {
.al-guide-modal,
.al-guide-modal__panel { transition: none; }
}
