/* Satsang Space v3.19: festival pop-up cards and in-depth festival pages */

/* ---------- triggers ---------- */
.ss-flp-trigger { cursor: pointer; border-radius: 6px; transition: color .2s; }
.ss-rc__name.ss-flp-trigger, .ss-fest__name.ss-flp-trigger, .ss-pc__in.ss-flp-trigger, .ss-pc__fname.ss-flp-trigger, .ss-fx-hero__name.ss-flp-trigger { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.ss-flp-trigger:hover { text-decoration-color: currentColor; }
.ss-flp-trigger:focus-visible { outline: 2px solid var(--ss-focus, #9A4A14); outline-offset: 3px; }
.ss-rc__date.ss-flp-trigger:hover, .ss-fest__date.ss-flp-trigger:hover { transform: translateY(-3px) rotate(-2deg); }

/* ---------- pop-up ---------- */
.ss-flp { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.ss-flp[hidden] { display: none; }
.ss-flp__back { position: absolute; inset: 0; background: rgba(30,20,36,.5); backdrop-filter: blur(6px); }
.ss-flp-open, .ss-flp-open body { overflow: hidden; }
.ss-flp__card { position: relative; width: min(620px, 100%); max-height: min(86svh, 820px); overflow: auto; overscroll-behavior: contain; border-radius: 30px; background: var(--ss-white, #fff); color: var(--ss-ink, #2A2230); box-shadow: 0 40px 100px -30px rgba(20,10,30,.6); outline: none; scrollbar-width: thin; }
[data-theme=dark] .ss-flp__card { background: #241D2C; color: #F5ECE3; }
.ss-flp__head { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 26px 26px 22px; background: var(--th-bg); color: var(--th-ink, var(--ss-ink)); isolation: isolate; }
[data-theme=dark] .ss-flp__head:not(.th-ondark) { background: var(--th-bg-d, var(--th-bg)); color: #FBF1E6; }
.ss-flp__glow { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(35% 35% at 80% 70%, rgba(255,255,255,.45), transparent 70%); animation: ss-fx-glow 8s ease-in-out infinite alternate; }
.ss-flp__head.th-ondark .ss-flp__glow { background: radial-gradient(35% 35% at 80% 70%, rgba(255,200,120,.3), transparent 70%); }
.ss-flp__x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; border: 0 !important; border-radius: 50%; background: rgba(255,255,255,.55) !important; color: inherit !important; cursor: pointer; backdrop-filter: blur(6px); transition: transform .2s; }
.th-ondark .ss-flp__x { background: rgba(255,255,255,.14) !important; }
.ss-flp__x:hover { transform: rotate(90deg); }
.ss-flp__kick { margin: 0 0 6px; font: 500 .72rem var(--ss-font-display); letter-spacing: .16em; text-transform: uppercase; opacity: .85; padding-right: 40px; }
.ss-flp__title { margin: 0; font: 500 clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem)/1.08 var(--ss-font-display); color: inherit; overflow-wrap: anywhere; }
.ss-flp__title span { display: block; margin-top: 4px; font-size: .62em; opacity: .9; }
.ss-flp__date { margin: 8px 0 0; font-size: .98rem; opacity: .92; }
.ss-flp__motif { width: 96px; height: 96px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.2)); animation: ss-fx-float 6s ease-in-out infinite; }
.ss-flp__motif svg { width: 100%; height: 100%; display: block; }
.ss-flp__body { display: grid; gap: 16px; padding: 22px 26px 26px; }
.ss-flp__body p { margin: 0; line-height: 1.6; }
.ss-flp__lead { font-size: 1.06rem; }
.ss-flp__aka { font-size: .9rem; color: var(--ss-ink-mute); }
.ss-flp__preview, .ss-fl__draft { padding: 8px 12px; border-radius: 12px; background: #FFF3D6; color: #6A4410; font-size: .86rem; }
.ss-flp__soon { padding: 14px 16px; border-radius: 16px; background: var(--ss-cream); color: var(--ss-ink-soft); }
[data-theme=dark] .ss-flp__soon, [data-theme=dark] .ss-flp__story { background: rgba(255,255,255,.06); color: #E9DFE6; }
.ss-flp__sec h3 { margin: 0 0 6px; font: 500 .74rem var(--ss-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ss-saffron-deep); }
[data-theme=dark] .ss-flp__sec h3 { color: #F6B27A; }
.ss-flp__story { padding: 16px 18px; border-radius: 18px; background: var(--ss-cream); border-left: 4px solid var(--ss-saffron); }
.ss-flp__story h3 { text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: inherit; }
.ss-flp__ticks, .ss-fl__ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ss-flp__ticks li, .ss-fl__ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ss-flp__ticks li::before, .ss-fl__ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 50%; background: var(--ss-saffron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ss-flp__chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ss-flp__chips li { padding: 6px 12px; border-radius: 999px; background: var(--ss-cream); box-shadow: inset 0 0 0 1px var(--ss-line); font-size: .9rem; }
[data-theme=dark] .ss-flp__chips li { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ss-flp__more { justify-self: start; }
.ss-flp__load { display: flex; gap: 6px; padding: 10px 0; }
.ss-flp__load span { width: 8px; height: 8px; border-radius: 50%; background: var(--ss-saffron); animation: ss-dot 1.1s infinite; }
.ss-flp__load span:nth-child(2) { animation-delay: .15s; } .ss-flp__load span:nth-child(3) { animation-delay: .3s; }
@media (max-width: 560px) {
	.ss-flp { padding: 0; align-items: end; }
	.ss-flp__card { width: 100%; max-height: 92svh; border-radius: 26px 26px 0 0; }
	.ss-flp__head { padding: 22px 18px 18px; } .ss-flp__body { padding: 18px; }
	.ss-flp__motif { width: 70px; height: 70px; }
}

/* ---------- in-depth festival page ---------- */
.ss-fl { --fl-accent: #C9682B; display: grid; gap: 28px; }
.ss-fl__hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(26px, 5vw, 56px); border-radius: 32px; background: var(--th-bg); color: var(--th-ink, var(--ss-ink)); isolation: isolate; box-shadow: 0 40px 80px -50px rgba(43,33,48,.6); }
[data-theme=dark] .ss-fl__hero:not(.th-ondark) { background: var(--th-bg-d, var(--th-bg)); color: #FBF1E6; }
.ss-fl__glow { position: absolute; inset: -30%; z-index: -1; background: radial-gradient(40% 40% at 78% 55%, rgba(255,255,255,.4), transparent 70%); animation: ss-fx-glow 9s ease-in-out infinite alternate; }
.th-ondark .ss-fl__glow { background: radial-gradient(40% 40% at 78% 55%, rgba(255,200,120,.3), transparent 70%); }
.ss-fl__kick { margin: 0 0 8px; font: 500 .78rem var(--ss-font-display); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.ss-fl__title { margin: 0; font: 500 clamp(2.2rem, 1.4rem + 3.4vw, 4rem)/1 var(--ss-font-display); color: inherit; }
.ss-fl__aka { margin: 10px 0 0; opacity: .85; }
.ss-fl__summary { margin: 16px 0 0; max-width: 58ch; font-size: 1.12rem; line-height: 1.6; opacity: .95; }
.ss-fl__motif { width: clamp(130px, 20vw, 240px); aspect-ratio: 1; filter: drop-shadow(0 20px 34px rgba(0,0,0,.25)); }
.ss-fl__motif svg { width: 100%; height: 100%; display: block; }
.ss-fl.is-ready .ss-fl__motif { animation: ss-fl-pop .9s cubic-bezier(.3,1.5,.5,1) both, ss-fx-float 6s 1s ease-in-out infinite; }
.ss-fl.is-ready .ss-fl__htext > * { animation: ss-fx-enter .7s cubic-bezier(.2,.8,.2,1) both; }
.ss-fl.is-ready .ss-fl__htext > :nth-child(2) { animation-delay: .08s; } .ss-fl.is-ready .ss-fl__htext > :nth-child(3) { animation-delay: .16s; } .ss-fl.is-ready .ss-fl__htext > :nth-child(4) { animation-delay: .24s; }
@keyframes ss-fl-pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.th-diwali .ss-fl__motif svg path:nth-child(2), .th-diwali .ss-fl__motif svg path:nth-child(3) { transform-origin: 32px 30px; animation: ss-pc-flame 1.6s ease-in-out infinite; }

.ss-fl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 28px; align-items: start; }
.ss-fl__side { display: grid; gap: 18px; position: sticky; top: calc(var(--ss-header-h, 84px) + 16px); }
.ss-fl__card { padding: 22px; border-radius: 22px; background: var(--ss-white); box-shadow: var(--ss-shadow-s); }
[data-theme=dark] .ss-fl__card, [data-theme=dark] .ss-fl__story, [data-theme=dark] .ss-fl__region { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ss-fl__card h3, .ss-fl__sec > h3 { margin: 0 0 10px; font: 500 .8rem var(--ss-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--fl-accent); }
[data-theme=dark] .ss-fl__card h3, [data-theme=dark] .ss-fl__sec > h3 { color: #F6B27A; }
.ss-fl__card p, .ss-fl__sec p { margin: 0 0 .8em; line-height: 1.65; }
.ss-fl .ss-fl__dates { margin: 14px 0 10px !important; padding: 0 !important; list-style: none !important; display: grid; gap: 6px; }
.ss-fl .ss-fl__dates li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 !important; padding: 9px 14px; border-radius: 12px; background: var(--ss-cream); font-size: .92rem; line-height: 1.35; list-style: none; }
.ss-fl .ss-fl__dates li::before, .ss-fl .ss-fl__dates li::marker { content: none; display: none; }
.ss-fl .ss-fl__dates li b { white-space: nowrap; margin-left: auto; }
[data-theme=dark] .ss-fl__dates li { background: rgba(255,255,255,.06); }
.ss-fl__small { font-size: .82rem !important; color: var(--ss-ink-mute); }
.ss-fl__days { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 10px; }
.ss-fl__days li { counter-increment: d; position: relative; display: grid; gap: 2px; padding-left: 38px; }
.ss-fl__days li::before { content: counter(d); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fl-accent); color: #fff; font: 500 .8rem var(--ss-font-display); }
.ss-fl__days b { font-weight: 500; } .ss-fl__days span { font-size: .9rem; color: var(--ss-ink-soft); }
.ss-fl__food ul, .ss-fl__join ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; line-height: 1.5; }
.ss-fl__main { display: grid; gap: 30px; min-width: 0; }
.ss-fl__sec > h3 { font-size: .86rem; }
.ss-fl__stories { display: grid; gap: 14px; }
.ss-fl__story { position: relative; padding: 22px 22px 18px 74px; border-radius: 22px; background: var(--ss-white); box-shadow: var(--ss-shadow-s); }
.ss-fl__snum { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--fl-accent) 15%, transparent); color: var(--fl-accent); font: 500 1.1rem var(--ss-font-display); }
.ss-fl__story h4 { margin: 0 0 6px; font: 500 1.2rem var(--ss-font-display); }
.ss-fl__story p:last-child { margin-bottom: 0; }
.ss-fl__ticks li::before { background-color: var(--fl-accent); }
.ss-fl__regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ss-fl__region { padding: 16px 18px; border-radius: 18px; background: var(--ss-white); box-shadow: var(--ss-shadow-s); border-top: 4px solid var(--fl-accent); }
.ss-fl__region b { display: block; margin-bottom: 4px; font: 500 1rem var(--ss-font-display); }
.ss-fl__region p { margin: 0; font-size: .94rem; color: var(--ss-ink-soft); }
.ss-fl__join { padding: 22px; border-radius: 22px; background: color-mix(in srgb, var(--fl-accent) 9%, var(--ss-white)); }
[data-theme=dark] .ss-fl__join { background: rgba(255,255,255,.05); }
.ss-fl__faq { border-top: 1px solid var(--ss-line); padding: 12px 0; }
.ss-fl__faq summary { cursor: pointer; font-weight: 500; }
.ss-fl__faq p { margin: 8px 0 0; }
.ss-fl__rel { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ss-fl__rel a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--ss-white); box-shadow: inset 0 0 0 1px var(--ss-line); color: var(--ss-ink) !important; text-decoration: none; transition: transform .2s; }
.ss-fl__rel a:hover { transform: translateY(-2px); }
.ss-fl__src ol { margin: 0 0 8px; padding-left: 1.2em; font-size: .9rem; display: grid; gap: 4px; }
.ss-fl__src a { color: var(--ss-saffron-deep); }
/* reveal */
.ss-fl-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.ss-fl-rv.is-in { opacity: 1; transform: none; }
.ss-fl-rv.is-in .ss-fl__ticks li, .ss-fl-rv.is-in .ss-fl__region { animation: ss-fx-enter .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + .1s); }
@media (max-width: 900px) {
	.ss-fl__grid { grid-template-columns: minmax(0, 1fr); }
	.ss-fl__side { position: static; order: 2; }
}
@media (max-width: 600px) {
	.ss-fl__hero { grid-template-columns: minmax(0, 1fr); }
	.ss-fl__motif { position: absolute; right: 14px; top: 14px; width: 90px; opacity: .95; }
	.ss-fl__kick, .ss-fl__title { padding-right: 96px; }
	.ss-fl__story { padding: 18px; } .ss-fl__snum { position: static; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.ss-flp__glow, .ss-flp__motif, .ss-fl__glow, .ss-fl__motif, .ss-fl.is-ready .ss-fl__htext > * { animation: none !important; }
	.ss-fl-rv { opacity: 1; transform: none; transition: none; }
	.ss-fl-rv.is-in .ss-fl__ticks li, .ss-fl-rv.is-in .ss-fl__region { animation: none; }
}
@media print { .ss-fl-rv { opacity: 1 !important; transform: none !important; } .ss-fl__side { position: static; } }

/* v3.20: keep heading colours from the festival theme (the site theme's h2 colour was winning on dark headers) */
.ss-flp .ss-flp__head .ss-flp__title, .ss-flp .ss-flp__head .ss-flp__title span,
.ss-fl .ss-fl__hero .ss-fl__title { color: inherit !important; }
.ss-flp .ss-flp__head .ss-flp__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem) !important; line-height: 1.08 !important; letter-spacing: normal; }
.ss-fl__all { margin: 8px 0 0; }
/* festival cover artwork as the hero (text sits on the open sky at the top) */
.ss-fl__hero.has-cover { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: clamp(360px, 52vw, 560px); color: #fff; background: #3B2747; }
.ss-fl__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
.ss-fl__hero.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,22,48,.72) 0%, rgba(36,22,48,.45) 45%, rgba(36,22,48,0) 75%); }
.ss-fl__hero.has-cover .ss-fl__glow { display: none; }
.ss-fl__hero.has-cover .ss-fl__htext { text-shadow: 0 1px 12px rgba(20,10,30,.45); }
.ss-fl .ss-fl__hero.has-cover .ss-fl__title { color: #fff !important; }
@media (max-width: 640px) {
	.ss-fl__hero.has-cover { --pad: 26px; min-height: 0; padding: var(--pad) var(--pad) 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #2E1F3D, #4A3058); }
	.ss-fl__hero.has-cover::before { display: none; }
	.ss-fl__hero.has-cover .ss-fl__cover { position: relative; inset: auto; z-index: 0; order: 2; width: calc(100% + var(--pad) * 2); max-width: none; height: auto; aspect-ratio: 3 / 2; margin: 22px calc(var(--pad) * -1) 0; object-position: center bottom; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
}
