/**
 * Manage Subscriptions — "night sky" giant-switch page.
 *
 * The giant switch reflects subscription status: gray "Not subscribed yet" when
 * the visitor is on none of the mapped lists, green "Subscribed" once at least
 * one card is on. Each list is an image card with its own gold switch.
 *
 * Everything is scoped under .se-subs so it never collides with the theme. The
 * star + glow layers are absolutely positioned WITHIN the section (not fixed to
 * the viewport) and use pixel top offsets, so they stay put when the optional
 * details expand and never bleed behind the site header/footer.
 */

.se-subs, .se-subs *, .se-subs *::before, .se-subs *::after { box-sizing: border-box; }

.se-subs .gs {
	--navy-deep: #00101f;
	--navy: #003057;
	--gold: #fab500;
	--gold-soft: #febf43;
	--green: #33c46a;
	--green-deep: #1f9a4e;
	--muted: #6a6a7a;

	position: relative; min-height: 100vh; overflow: hidden;
	font-family: 'Open Sans', Arial, sans-serif; color: #fff;
	background:
		radial-gradient(120% 90% at 50% 0%, #012a4a 0%, var(--navy-deep) 70%),
		linear-gradient(180deg, #00101f 0%, #012136 60%, #00253f 100%);
}

.se-subs .gs-glow {
	position: absolute; left: 50%; top: 300px; transform: translate(-50%, -50%);
	width: 96vmin; height: 62vmin; border-radius: 50%; z-index: 1; pointer-events: none;
	background: radial-gradient(closest-side, rgba(250,181,0,0.30), rgba(250,181,0,0) 72%);
	transition: background .6s ease;
}
.se-subs .gs[data-state="on"] .gs-glow, .se-subs .gs[data-state="done"] .gs-glow {
	background: radial-gradient(closest-side, rgba(51,196,106,0.36), rgba(51,196,106,0) 72%);
}

.se-subs .gs-stars { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.se-subs .gs-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .85; box-shadow: 0 0 6px 1px rgba(255,255,255,.7); animation: gs-tw 4.5s ease-in-out infinite; }
.se-subs .gs-stars i.g { background: var(--gold-soft); box-shadow: 0 0 8px 2px rgba(250,181,0,.75); }
.se-subs .gs-stars i.sm { width: 2px; height: 2px; opacity: .55; }
@keyframes gs-tw { 0%,100%{opacity:.85} 50%{opacity:.25} }
.se-subs .gs-stars i:nth-child(3n){animation-delay:1.4s}.se-subs .gs-stars i:nth-child(3n+1){animation-delay:2.6s}
.se-subs .gs-stars i:nth-child(1){left:14%;top:70px}.se-subs .gs-stars i:nth-child(2){left:24%;top:150px}.se-subs .gs-stars i:nth-child(3){left:8%;top:250px}
.se-subs .gs-stars i:nth-child(4){left:34%;top:45px}.se-subs .gs-stars i:nth-child(5){left:48%;top:95px}.se-subs .gs-stars i:nth-child(6){left:62%;top:55px}
.se-subs .gs-stars i:nth-child(7){left:78%;top:90px}.se-subs .gs-stars i:nth-child(8){left:90%;top:175px}.se-subs .gs-stars i:nth-child(9){left:70%;top:220px}
.se-subs .gs-stars i:nth-child(10){left:88%;top:330px}.se-subs .gs-stars i:nth-child(11){left:12%;top:470px}.se-subs .gs-stars i:nth-child(12){left:30%;top:620px}
.se-subs .gs-stars i:nth-child(13){left:52%;top:900px}.se-subs .gs-stars i:nth-child(14){left:72%;top:720px}.se-subs .gs-stars i:nth-child(15){left:90%;top:560px}
.se-subs .gs-stars i:nth-child(16){left:6%;top:820px}.se-subs .gs-stars i:nth-child(17){left:44%;top:460px}.se-subs .gs-stars i:nth-child(18){left:60%;top:380px}

/* ── Content ── */
.se-subs .gs-inner { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; padding: 44px 24px 72px; text-align: center; }
.se-subs .gs-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.se-subs .gs-eyebrow img { width: 16px; height: 16px; display: block; }
.se-subs .gs-title { font-family: 'Roboto Slab', Georgia, serif; font-weight: 800; font-size: clamp(28px, 6.5vw, 40px); line-height: 1.08; letter-spacing: -0.5px; color: #fff; margin: 0 0 10px; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.se-subs .gs-sub { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.72); margin: 0 auto 30px; max-width: 440px; }

/* ══ THE GIANT SWITCH (email field inside the track) ══ */
.se-subs .gs-switch {
	position: relative; width: min(620px, 100%); height: 200px; margin: 24px auto 26px;
	border-radius: 100px;
	background: linear-gradient(180deg, #2a3d52, #17293c);
	border: 2px solid rgba(255,255,255,0.16);
	box-shadow: inset 0 5px 16px rgba(0,0,0,0.45);
	transition: background .6s ease, border-color .6s ease, box-shadow .6s ease;
}
.se-subs .gs[data-state="on"] .gs-switch, .se-subs .gs[data-state="done"] .gs-switch {
	background: linear-gradient(180deg, var(--green), var(--green-deep));
	border-color: rgba(255,255,255,0.45); cursor: pointer;
	box-shadow: inset 0 5px 16px rgba(0,0,0,0.18), 0 16px 46px rgba(51,196,106,0.42);
}

/* thumb slides left → right */
.se-subs .gs-thumb {
	position: absolute; top: 14px; left: 14px; width: 172px; height: 172px; border-radius: 50%;
	background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,0.35);
	display: flex; align-items: center; justify-content: center;
	transition: left .6s cubic-bezier(.34,1.56,.5,1); z-index: 3;
}
.se-subs .gs[data-state="on"] .gs-thumb, .se-subs .gs[data-state="done"] .gs-thumb { left: calc(100% - 186px); }
.se-subs .gs-thumb-off, .se-subs .gs-thumb-on { position: absolute; transition: opacity .35s ease, transform .35s ease; }
.se-subs .gs-thumb-off { color: var(--navy); font-size: 58px; }
.se-subs .gs-thumb-on  { color: var(--green-deep); font-size: 70px; opacity: 0; transform: scale(.6); }
.se-subs .gs[data-state="on"] .gs-thumb-off, .se-subs .gs[data-state="done"] .gs-thumb-off { opacity: 0; }
.se-subs .gs[data-state="on"] .gs-thumb-on,  .se-subs .gs[data-state="done"] .gs-thumb-on  { opacity: 1; transform: scale(1); }

/* email field lives inside the track (enter state) */
.se-subs .gs-form { position: absolute; top: 0; bottom: 0; left: 202px; right: 26px; display: none; align-items: center; gap: 14px; }
.se-subs .gs-form input {
	flex: 1; min-width: 0; height: 64px; border: none; border-radius: 36px; padding: 0 26px;
	font-family: 'Open Sans', Arial, sans-serif; font-size: 17px; color: var(--navy); background: #fff;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.18);
}
.se-subs .gs-form input::placeholder { color: #9aa0a6; }
.se-subs .gs-form input:focus { outline: none; box-shadow: inset 0 1px 3px rgba(0,0,0,.18), 0 0 0 4px rgba(250,181,0,.35); }
.se-subs .gs-arrow {
	flex-shrink: 0; width: 64px; height: 64px; border: none; border-radius: 50%; cursor: pointer;
	background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--navy); font-size: 22px;
	display: flex; align-items: center; justify-content: center;
	transition: transform .08s ease, filter .18s ease;
}
.se-subs .gs-arrow:hover { filter: brightness(1.05); }
.se-subs .gs-arrow:active { transform: translateY(1px); }
.se-subs .gs-arrow.is-busy { color: transparent; position: relative; }
.se-subs .gs-arrow.is-busy::after {
	content: ""; position: absolute; width: 20px; height: 20px;
	border: 2px solid rgba(0,48,87,0.35); border-top-color: var(--navy); border-radius: 50%;
	animation: gs-spin .7s linear infinite;
}
@keyframes gs-spin { to { transform: rotate(360deg); } }

/* confirmed / not-subscribed labels */
.se-subs .gs-confirmed { position: absolute; top: 0; bottom: 0; left: 54px; right: 210px; display: none; flex-direction: column; justify-content: center; text-align: left; }
.se-subs .gs-confirmed-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 6px; }
.se-subs .gs-confirmed-email { font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: clamp(18px, 4vw, 26px); color: #fff; line-height: 1.1; word-break: break-word; }
.se-subs .gs[data-state="enter"] .gs-form { display: flex; }
.se-subs .gs-notsub { position: absolute; top: 0; bottom: 0; left: 202px; right: 26px; display: none; flex-direction: column; justify-content: center; text-align: left; }
.se-subs .gs-notsub-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.72); margin-bottom: 6px; }
.se-subs .gs-notsub-email { font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: clamp(18px, 4vw, 26px); color: #fff; line-height: 1.1; word-break: break-word; }
.se-subs .gs[data-state="off"] .gs-notsub { display: flex; }
.se-subs .gs[data-state="on"] .gs-confirmed, .se-subs .gs[data-state="done"] .gs-confirmed { display: flex; }

/* ── Subscription CARDS (image + own switch) ── */
.se-subs .gs-panel { max-width: 860px; margin: 0 auto; }
.se-subs .gs-panel-head { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0 0 16px; }
.se-subs .gs-notready { font-size: 15px; color: rgba(255,255,255,0.75); max-width: 460px; margin: 0 auto; }
.se-subs .gs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }

.se-subs .gs-card {
	position: relative; display: flex; flex-direction: column; text-align: left;
	background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer;
	border: 2.5px solid rgba(255,255,255,0.14);
	box-shadow: 0 12px 30px rgba(0,0,0,0.4);
	transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.se-subs .gs-card:hover { transform: translateY(-2px); }
.se-subs .gs-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.se-subs .gs-card:has(:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.se-subs .gs-card:has(:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250,181,0,0.28), 0 16px 34px rgba(0,0,0,0.45); }

.se-subs .gs-card-media { position: relative; aspect-ratio: 400 / 250; background: #fff; overflow: hidden; }
.se-subs .gs-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.se-subs .gs-card-bar { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; background: #fff; }
.se-subs .gs-card-text { flex: 1; min-width: 0; }
.se-subs .gs-card-foot { display: flex; justify-content: center; margin-top: 16px; }
.se-subs .gs-card-name { display: block; font-family: 'Roboto Slab', Georgia, serif; font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.se-subs .gs-card-freq { display: inline-block; margin: 6px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: #44427b; background: rgba(68,66,123,0.12); padding: 3px 10px; border-radius: 999px; }
.se-subs .gs-pop { display: inline-block; margin: 6px 0 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--navy); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); padding: 3px 10px; border-radius: 999px; }
.se-subs .gs-card-dek { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

/* the card's own gold switch */
.se-subs .gs-sw { flex-shrink: 0; position: relative; width: 46px; height: 26px; }
.se-subs .gs-track { display: block; width: 46px; height: 26px; background: #d7d2c7; border-radius: 999px; transition: background .2s ease; position: relative; }
.se-subs .gs-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.se-subs .gs-card:has(:checked) .gs-track { background: var(--gold); }
.se-subs .gs-card:has(:checked) .gs-knob { transform: translateX(20px); }

.se-subs .gs-btn { font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); border: none; border-radius: 14px; padding: 16px 24px; cursor: pointer; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); transition: transform .08s ease, filter .18s ease; }
.se-subs .gs-btn:hover { filter: brightness(1.04); }
.se-subs .gs-btn:active { transform: translateY(1px); }
.se-subs .gs-btn:disabled { opacity: 0.6; cursor: default; }
.se-subs .gs-btn--wide { width: 100%; max-width: 460px; margin: 24px auto 0; display: block; }

/* small "unsubscribe from all" */
.se-subs .gs-unsub { display: inline-block; margin: 16px auto 0; background: none; border: none; cursor: pointer;
	font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,0.55);
	text-decoration: underline; text-underline-offset: 3px; transition: color .18s ease; }
.se-subs .gs-unsub:hover { color: #ff8f8f; }

/* error line */
.se-subs .gs-error { min-height: 1em; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: #ff8f8f; }
.se-subs .gs-error:empty { margin: 0; }

/* state visibility for the sub-text + panel */
.se-subs .gs-when-enter { display: none; }
.se-subs .gs[data-state="enter"] .gs-when-enter { display: block; }
.se-subs .gs-panel-wrap { display: none; }
.se-subs .gs[data-state="off"] .gs-panel-wrap, .se-subs .gs[data-state="on"] .gs-panel-wrap, .se-subs .gs[data-state="done"] .gs-panel-wrap { display: block; animation: gs-in .45s ease both; }
.se-subs .gs-panel-wrap[data-empty="1"] { display: block; }
@keyframes gs-in { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.se-subs .gs[data-state="done"] .gs-cards, .se-subs .gs[data-state="done"] .gs-panel-head, .se-subs .gs[data-state="done"] .gs-save, .se-subs .gs[data-state="done"] .gs-details, .se-subs .gs[data-state="done"] .gs-title { display: none; }

/* optional name/birthday */
.se-subs .gs-details { max-width: 460px; margin: 20px auto 0; text-align: left; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 16px; }
.se-subs .gs-details summary { font-size: 14px; font-weight: 700; color: var(--gold); cursor: pointer; list-style: none; text-align: center; }
.se-subs .gs-details summary::-webkit-details-marker { display: none; }
.se-subs .gs-details summary::before { content: "+ "; }
.se-subs .gs-details[open] summary::before { content: "– "; }
.se-subs .gs-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.se-subs .gs-details-grid .full { grid-column: 1 / -1; }
.se-subs .gs-flabel { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 5px; }
.se-subs .gs-details input, .se-subs .gs-details select { width: 100%; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.22); border-radius: 12px; padding: 12px 14px; color: #fff; font-family: 'Open Sans', Arial, sans-serif; font-size: 15px; }
.se-subs .gs-details input::placeholder { color: rgba(255,255,255,0.5); }
.se-subs .gs-details select option { color: #2a2a3d; }
.se-subs .gs-bday { display: flex; gap: 10px; }
.se-subs .gs-bday select { flex: 1; }

/* success state */
.se-subs .gs-done { display: none; text-align: center; padding: 10px 0 4px; }
.se-subs .gs[data-state="done"] .gs-done { display: block; animation: gs-in .45s ease both; }
.se-subs .gs-done-title { font-family: 'Roboto Slab', Georgia, serif; font-weight: 800; font-size: 30px; color: #fff; margin: 0 0 10px; }
.se-subs .gs-done-summary { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 auto 20px; max-width: 400px; }
.se-subs .gs-reset { background: none; border: none; cursor: pointer; color: var(--gold); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* honeypot */
.se-subs .gs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Responsive */
@media (max-width: 760px) { .se-subs .gs-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
@media (max-width: 600px) {
	.se-subs .gs-inner { padding: 34px 16px 56px; }
	.se-subs .gs-switch { height: 150px; border-radius: 76px; }
	.se-subs .gs-thumb { width: 120px; height: 120px; top: 12px; left: 12px; }
	.se-subs .gs[data-state="on"] .gs-thumb, .se-subs .gs[data-state="done"] .gs-thumb { left: calc(100% - 132px); }
	.se-subs .gs-form { left: 138px; right: 14px; gap: 8px; }
	.se-subs .gs-notsub { left: 138px; right: 14px; }
	.se-subs .gs-form input { height: 52px; font-size: 15px; padding: 0 16px; }
	.se-subs .gs-arrow { width: 52px; height: 52px; font-size: 18px; }
	.se-subs .gs-confirmed { left: 30px; right: 138px; }
	.se-subs .gs-confirmed-eyebrow { font-size: 11px; margin-bottom: 4px; }
	.se-subs .gs-thumb-off { font-size: 42px; } .se-subs .gs-thumb-on { font-size: 50px; }
	.se-subs .gs-details-grid { grid-template-columns: 1fr; }
	.se-subs .gs-done-title { font-size: 26px; }
}
@media (max-width: 400px) {
	.se-subs .gs-switch { height: 130px; border-radius: 66px; }
	.se-subs .gs-thumb { width: 100px; height: 100px; }
	.se-subs .gs[data-state="on"] .gs-thumb, .se-subs .gs[data-state="done"] .gs-thumb { left: calc(100% - 110px); }
	.se-subs .gs-form { left: 110px; right: 12px; gap: 6px; }
	.se-subs .gs-notsub { left: 110px; right: 12px; }
	.se-subs .gs-form input { height: 46px; font-size: 14px; padding: 0 14px; }
	.se-subs .gs-arrow { width: 46px; height: 46px; font-size: 16px; }
	.se-subs .gs-confirmed { left: 22px; right: 110px; }
	.se-subs .gs-thumb-off { font-size: 34px; } .se-subs .gs-thumb-on { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.se-subs .gs-stars i, .se-subs .gs-arrow.is-busy::after { animation: none !important; }
}
