/*
 * אור לשבת — the campaign page.
 *
 * Values here are the design's, verbatim. Colours are authored in oklch() with
 * a hex declaration immediately before each one, so a browser without oklch()
 * still gets the right colour and the warm tints keep their relationship to one
 * another in the browsers that do.
 *
 * The sheet is RTL-first and uses logical properties throughout — there is no
 * left/right for content anywhere, which is what lets the whole layout mirror
 * for English without a second stylesheet.
 *
 * Contents
 *   0  Fonts
 *   1  Tokens
 *   2  Base and utilities
 *   3  Buttons
 *   4  Header
 *   5  Hero, collage, candles
 *   6  Split stage
 *   7  Marquee
 *   8  Stats
 *   9  Nav cards
 *  10  Map
 *  11  Referral
 *  12  Closing and footer
 *  13  Join dialog
 *  14  Full-screen screens
 *  15  Accessibility widget and its modes
 *  16  Responsive
 *  17  Reduced motion
 *  18  Enlarged text
 */

/* ==========================================================================
   0  Fonts
   ==========================================================================

   Atlas and Gloria are licensed by the client and are not distributed with the
   theme — drop the WOFF2 files into assets/fonts/ and these pick them up. See
   assets/fonts/README.md.

   Variable weight ranges rather than one rule per weight, matching how the
   design file declared them: the same file serves 600 and 700, and asking the
   browser to synthesise the rest is what makes a missing weight look wrong
   rather than merely absent. `font-display: swap` because the copy matters more
   than the face for the first few hundred milliseconds.
   ========================================================================== */

@font-face {
	font-family: Atlas;
	src: url("../fonts/atlas-light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Atlas;
	src: url("../fonts/atlas-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Atlas;
	src: url("../fonts/atlas-medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Atlas;
	src: url("../fonts/atlas-bold.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Atlas;
	src: url("../fonts/atlas-black.woff2") format("woff2");
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Gloria;
	src: url("../fonts/gloria-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Gloria;
	src: url("../fonts/gloria-demibold.woff2") format("woff2");
	font-weight: 500 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Gloria;
	src: url("../fonts/gloria-bold.woff2") format("woff2");
	font-weight: 700 900;
	font-style: normal;
	font-display: swap;
}
/* ==========================================================================
   1  Tokens
   ========================================================================== */

:root {
	--msl-canvas-top: #FFF9EA;
	--msl-canvas-top: oklch(0.985 0.022 82);
	--msl-canvas: #F8F2E8;
	--msl-canvas: oklch(0.962 0.014 78);
	--msl-header-bg: #FAF4EA;
	--msl-header-bg: oklch(0.968 0.014 78);
	--msl-header-border: #E5DDD0;
	--msl-header-border: oklch(0.90 0.02 78);
	--msl-surface: #FFFFFF;
	--msl-surface: oklch(1 0 0);
	--msl-surface-warm: #F6F1E9;
	--msl-surface-warm: oklch(0.96 0.012 78);
	--msl-warm: #F7E6C7;
	--msl-warm: oklch(0.93 0.045 82);
	--msl-warm-strong: #FED899;
	--msl-warm-strong: oklch(0.90 0.09 80);
	--msl-warm-hover: #FAD9A2;
	--msl-warm-hover: oklch(0.90 0.08 80);
	--msl-gold-bg: #FFD687;
	--msl-gold-bg: oklch(0.90 0.11 80);
	--msl-orange-bg: #FF945E;
	--msl-orange-bg: oklch(0.78 0.155 45);
	--msl-ink: #2D1A10;
	--msl-ink: oklch(0.24 0.035 50);
	--msl-ink-hover: #3B2214;
	--msl-ink-hover: oklch(0.28 0.045 48);
	--msl-ink-deep: #2B1307;
	--msl-ink-deep: oklch(0.22 0.045 48);
	--msl-ink-strong: #211209;
	--msl-ink-strong: oklch(0.20 0.03 50);
	--msl-ink-panel: #28160B;
	--msl-ink-panel: oklch(0.22 0.035 50);
	--msl-body: #685346;
	--msl-body: oklch(0.46 0.035 55);
	--msl-body-soft: #6E594B;
	--msl-body-soft: oklch(0.48 0.035 55);
	--msl-muted: #715F53;
	--msl-muted: oklch(0.50 0.03 55);
	--msl-muted-2: #776559;
	--msl-muted-2: oklch(0.52 0.03 55);
	--msl-muted-3: #7C6A5E;
	--msl-muted-3: oklch(0.538 0.03 55);
	--msl-eyebrow: #7E6251;
	--msl-eyebrow: oklch(0.52 0.045 52);
	--msl-rule: #DDCFBC;
	--msl-rule: oklch(0.86 0.03 74);
	--msl-border: #E9E0D3;
	--msl-border: oklch(0.91 0.02 78);
	--msl-border-soft: #E5DDD0;
	--msl-border-soft: oklch(0.90 0.02 78);
	--msl-border-active: #DB9152;
	--msl-border-active: oklch(0.72 0.12 60);
	--msl-border-hover: #E9B276;
	--msl-border-hover: oklch(0.80 0.10 68);
	--msl-border-warm: #E5AB66;
	--msl-border-warm: oklch(0.78 0.11 70);
	--msl-accent: #D55C13;
	--msl-accent: oklch(0.62 0.17 45);
	--msl-accent-text: #C24B00;
	--msl-accent-text: oklch(0.565 0.17 45);
	--msl-accent-strong: #BD4600;
	--msl-accent-strong: oklch(0.55 0.17 45);
	--msl-accent-deep: #EA6F2F;
	--msl-accent-deep: oklch(0.68 0.17 45);
	--msl-accent-light: #FFBB41;
	--msl-accent-light: oklch(0.84 0.155 76);
	--msl-accent-dot: #FFB54B;
	--msl-accent-dot: oklch(0.84 0.155 68);
	--msl-accent-gold: #FFDB7A;
	--msl-accent-gold: oklch(0.92 0.13 80);
	--msl-gold-figure: #FFE076;
	--msl-gold-figure: oklch(0.94 0.14 80);
	--msl-gold-soft: #FFE494;
	--msl-gold-soft: oklch(0.94 0.11 82);
	--msl-gold-num: #FFD474;
	--msl-gold-num: oklch(0.90 0.13 80);
	--msl-amber: #FFD374;
	--msl-amber: oklch(0.90 0.13 78);
	--msl-dark: #150902;
	--msl-dark: oklch(0.155 0.028 60);
	--msl-dark-deep: #0F0601;
	--msl-dark-deep: oklch(0.135 0.024 60);
	--msl-stage: #0F0501;
	--msl-stage: oklch(0.13 0.026 60);
	--msl-wow-bg: #110701;
	--msl-wow-bg: oklch(0.14 0.026 60);
	--msl-scrim: #070200;
	--msl-scrim: oklch(0.10 0.02 60);
	--msl-raised: #3C291E;
	--msl-raised: oklch(0.30 0.035 50);
	--msl-raised-2: #493225;
	--msl-raised-2: oklch(0.34 0.04 50);
	--msl-raised-3: #5E402F;
	--msl-raised-3: oklch(0.40 0.05 50);
	--msl-zoom-bg: #1E1006;
	--msl-zoom-bg: oklch(0.19 0.03 60);
	--msl-zoom-sep: #392A1E;
	--msl-zoom-sep: oklch(0.30 0.03 60);
	--msl-zoom-label: #A99D8A;
	--msl-zoom-label: oklch(0.70 0.03 78);
	--msl-on-dark: #FCF4E6;
	--msl-on-dark: oklch(0.97 0.02 82);
	--msl-on-dark-bright: #FFFBF4;
	--msl-on-dark-bright: oklch(0.99 0.01 82);
	--msl-on-dark-sub: #D2C9BC;
	--msl-on-dark-sub: oklch(0.84 0.02 78);
	--msl-on-dark-muted: #AFA390;
	--msl-on-dark-muted: oklch(0.72 0.03 78);
	--msl-on-dark-hint: #A99D8A;
	--msl-on-dark-hint: oklch(0.70 0.03 78);
	--msl-wow-body: #BCAF9C;
	--msl-wow-body: oklch(0.76 0.03 78);
	--msl-ghost-border: #5B4935;
	--msl-ghost-border: oklch(0.42 0.04 70);
	--msl-ghost-bg: #201308;
	--msl-ghost-bg: oklch(0.20 0.03 60);
	--msl-ghost-text: #F2EADD;
	--msl-ghost-text: oklch(0.94 0.02 80);
	--msl-ghost-hover: #321F0F;
	--msl-ghost-hover: oklch(0.26 0.04 60);
	--msl-ghost-border-hover: #A97339;
	--msl-ghost-border-hover: oklch(0.60 0.10 66);
	--msl-cta-grad-1: #FFCF6C;
	--msl-cta-grad-1: oklch(0.88 0.13 82);
	--msl-cta-grad-2: #FF964B;
	--msl-cta-grad-2: oklch(0.78 0.16 52);
	--msl-cta-ink: #2D1204;
	--msl-cta-ink: oklch(0.22 0.05 48);
	--msl-cta-body: #4B2915;
	--msl-cta-body: oklch(0.32 0.06 50);
	--msl-stat-gold-ink: #321708;
	--msl-stat-gold-ink: oklch(0.24 0.05 48);
	--msl-stat-orange-ink: #280D04;
	--msl-stat-orange-ink: oklch(0.20 0.05 40);
	--msl-chip-text: #3F2F25;
	--msl-chip-text: oklch(0.32 0.03 52);
	--msl-chip-ink: #3A2A20;
	--msl-chip-ink: oklch(0.30 0.03 52);
	--msl-cd-text: #5A3118;
	--msl-cd-text: oklch(0.36 0.07 50);
	--msl-lang-text: #45342A;
	--msl-lang-text: oklch(0.34 0.03 52);
	--msl-marquee-text: #542C11;
	--msl-marquee-text: oklch(0.34 0.07 52);
	--msl-link-label: #B3A289;
	--msl-link-label: oklch(0.72 0.04 78);
	--msl-link-value: #FFE8BE;
	--msl-link-value: oklch(0.94 0.06 82);
	--msl-track: #EFE7D9;
	--msl-track: oklch(0.93 0.02 78);
	--msl-track-soft: #F3EADD;
	--msl-track-soft: oklch(0.94 0.02 78);
	--msl-backdrop: #422616;
	--msl-backdrop: oklch(0.30 0.05 50);
	--msl-sheet: #FEF7EC;
	--msl-sheet: oklch(0.978 0.016 80);
	--msl-close-bg: #EFE7D9;
	--msl-close-bg: oklch(0.93 0.02 78);
	--msl-close-fg: #4A392E;
	--msl-close-fg: oklch(0.36 0.03 55);
	--msl-disabled-bg: #E9E0D3;
	--msl-disabled-bg: oklch(0.91 0.02 78);
	--msl-disabled-fg: #938B7F;
	--msl-disabled-fg: oklch(0.64 0.02 78);
	--msl-anon-box: #FFC062;
	--msl-anon-box: oklch(0.86 0.14 70);
	--msl-anon-box-bd: #C46016;
	--msl-anon-box-bd: oklch(0.60 0.15 50);
	--msl-pick-bg: #FCF4E6;
	--msl-pick-bg: oklch(0.97 0.02 82);
	--msl-pick-sub: #6B594E;
	--msl-pick-sub: oklch(0.48 0.03 55);
	--msl-res-label: #653C22;
	--msl-res-label: oklch(0.40 0.07 52);
	--msl-res-track: #DDBF91;
	--msl-res-track: oklch(0.82 0.07 78);
	--msl-res-fill: #71330C;
	--msl-res-fill: oklch(0.40 0.10 48);
	--msl-res-ink: #371C0D;
	--msl-res-ink: oklch(0.26 0.05 48);
	--msl-soft-hover: #F6E9D5;
	--msl-soft-hover: oklch(0.94 0.03 80);
	--msl-danger: #BE2323;
	--msl-danger: oklch(0.52 0.19 27);

	/* Motion. Every transform in the design rides the same curve. */
	--msl-ease: cubic-bezier(.2, .8, .2, 1);
	--msl-t-fast: .16s;
	--msl-t: .18s;
	--msl-t-card: .22s;
	--msl-t-slow: .3s;
	--msl-t-fade: .5s;
	--msl-t-swap: .6s;

	/* Type. Atlas and Gloria are licensed and are not shipped with the theme;
	   see assets/fonts/README.md. The fallbacks are chosen to be close in
	   metrics so an install without them is merely plainer, not broken. */
	--msl-font-text: Atlas, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--msl-font-display: Gloria, Atlas, "Segoe UI", system-ui, -apple-system, sans-serif;

	/* Layout. The 1240px column and its 40px gutter are what place the collage
	   tiles; changing either moves them. */
	--msl-shell: 1240px;
	--msl-gutter: 40px;

	/* Shadows. */
	--msl-shadow-panel: 0 30px 70px oklch(0.30 0.05 50 / 0.22);
	--msl-shadow-panel-hover: 0 40px 90px oklch(0.30 0.05 50 / 0.30);
	--msl-shadow-card: 0 16px 36px oklch(0.34 0.06 50 / 0.12);
	--msl-shadow-card-lift: 0 20px 42px oklch(0.34 0.06 50 / 0.16);
	--msl-shadow-stat: 0 20px 40px oklch(0.34 0.06 50 / 0.20);
	--msl-shadow-tile: 0 18px 40px oklch(0.34 0.06 50 / 0.20);
	--msl-shadow-tile-hover: 0 26px 58px oklch(0.34 0.06 50 / 0.34);
	--msl-shadow-cta: 0 14px 34px oklch(0.24 0.035 50 / 0.24);
	--msl-shadow-cta-hover: 0 20px 44px oklch(0.24 0.035 50 / 0.32);
	--msl-shadow-cta-active: 0 8px 20px oklch(0.24 0.035 50 / 0.26);
	--msl-shadow-warm: 0 16px 40px oklch(0.28 0.06 45 / 0.3);
	--msl-shadow-warm-hover: 0 24px 54px oklch(0.28 0.06 45 / 0.38);
	--msl-shadow-sheet: 0 40px 90px oklch(0.28 0.05 50 / 0.32);

	/* Text shadows that keep the panel overlays legible over a live canvas. */
	--msl-text-shadow: 0 2px 14px oklch(0.10 0.02 60 / 0.85);
	--msl-text-shadow-soft: 0 1px 10px oklch(0.10 0.02 60 / 0.8);

	/* The accent is a campaign setting, so the canvases and the CSS read the
	   same value; app.js overwrites this from the page's own configuration. */
	--msl-flame: #FFB25C;
}
/* ==========================================================================
   2  Base and utilities
   ========================================================================== */

.msl-page {
	margin: 0;
	overflow-x: hidden;
	background: radial-gradient(90% 50% at 50% 0%, var(--msl-canvas-top) 0%, var(--msl-canvas) 62%);
	background-attachment: fixed;
	color: var(--msl-ink);
	font-family: var(--msl-font-text);
	font-size: calc((16px) * var(--msl-scale, 1));
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.msl-page * {
	box-sizing: border-box;
}
/*
 * The browser's own `[hidden] { display: none }` is a bare attribute selector,
 * so any class that sets `display` outruns it — which meant hiding a `.msl-btn`
 * by setting `hidden` did nothing at all, silently. Every place this sheet
 * toggles `hidden` from script depends on this rule holding.
 */
.msl-page [hidden] {
	display: none !important;
}
.msl-page h1,
.msl-page h2,
.msl-page h3,
.msl-page p,
.msl-page ul,
.msl-page ol,
.msl-page figure,
.msl-page fieldset {
	margin: 0;
	padding: 0;
}
.msl-page ul,
.msl-page ol {
	list-style: none;
}
.msl-page fieldset {
	border: 0;
	min-inline-size: 0;
}
/*
 * Wrapped in :where() so it carries no specificity at all. As a plain
 * `.msl-page a` rule it beat every component that happens to be an anchor —
 * the WhatsApp button lost its dark-green label and the wordmark turned
 * accent-orange — and each of those would have needed an override.
 */
:where(.msl-page a) {
	color: inherit;
	text-decoration: none;
}
:where(.msl-page a):hover {
	text-decoration: underline;
}
/* One visible focus ring for every control, on light and on dark alike. It is
   deliberately not removed anywhere in this file. */
.msl-page :focus-visible {
	outline: 3px solid var(--msl-accent-text);
	outline-offset: 3px;
	border-radius: 6px;
}
.msl-screen :focus-visible,
.msl-panel :focus-visible {
	outline-color: var(--msl-gold-figure);
}
.msl-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.msl-skip-link {
	position: fixed;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 200;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--msl-ink);
	color: var(--msl-on-dark);
	font-family: var(--msl-font-text);
	font-weight: 700;
	transform: translateY(-200%);
	transition: transform var(--msl-t) var(--msl-ease);
}
.msl-skip-link:focus {
	transform: translateY(0);
	text-decoration: none;
}
.msl-shell {
	max-inline-size: var(--msl-shell);
	margin-inline: auto;
	padding-inline: var(--msl-gutter);
}
/*
 * The halo deliberately spills 60px past the content column on each side, and
 * the collage tiles sit 44px outside it. Above about 1280px the page has the
 * margins to absorb that; below it, the spill became a horizontal scrollbar.
 * `clip` rather than `hidden` because this must not become a scroll container —
 * that would break the sticky header inside it.
 */
.msl-main {
	overflow-x: clip;
}
.msl-heading {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((56px) * var(--msl-scale, 1));
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.msl-subheading {
	margin-block-start: 12px;
	font-size: calc((18px) * var(--msl-scale, 1));
	line-height: 1.6;
	color: var(--msl-body-soft);
	font-weight: 400;
	text-wrap: pretty;
}
/* Every figure in the design is tabular, so a ticking counter never reflows
   the words beside it. */
[data-msl-counter],
[data-msl-counter-minus-one],
[data-msl-pct],
[data-msl-refcount],
[data-msl-countries],
[data-msl-cities],
[data-msl-dedications] {
	font-variant-numeric: tabular-nums;
}
/* The honeypot: present for a script, gone for a person and for a screen
   reader. Not display:none — some bots skip hidden fields. */
.msl-honeypot {
	position: absolute;
	inset-inline-start: -9999px;
	inline-size: 1px;
	height: 1px;
	overflow: hidden;
}
/* ==========================================================================
   3  Buttons
   ========================================================================== */

.msl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	font-family: var(--msl-font-text);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
	transition:
		transform var(--msl-t) var(--msl-ease),
		box-shadow var(--msl-t) ease,
		background var(--msl-t) ease,
		border-color var(--msl-t) ease,
		color var(--msl-t) ease;
}
.msl-btn:hover {
	text-decoration: none;
}
.msl-btn[disabled] {
	cursor: default;
	background: var(--msl-disabled-bg);
	color: var(--msl-disabled-fg);
	box-shadow: none;
}
.msl-btn--ink {
	block-size: 44px;
	padding-inline: 24px;
	background: var(--msl-ink);
	color: var(--msl-on-dark);
	font-size: calc((15.5px) * var(--msl-scale, 1));
	font-weight: 800;
}
.msl-btn--ink:hover:not([disabled]) {
	transform: translateY(-2px);
	background: var(--msl-ink-hover);
	box-shadow: 0 12px 26px oklch(0.24 0.035 50 / 0.28);
}
.msl-btn--ink:active:not([disabled]) {
	transform: translateY(0);
}
/* The hero and closing call to action: the one control the whole page is for. */
.msl-btn--hero {
	block-size: 66px;
	padding-inline: 42px;
	background: var(--msl-ink);
	color: var(--msl-on-dark);
	font-size: calc((21px) * var(--msl-scale, 1));
	font-weight: 800;
	box-shadow: var(--msl-shadow-cta);
}
.msl-btn--hero:hover:not([disabled]) {
	transform: translateY(-3px);
	background: var(--msl-ink-hover);
	box-shadow: var(--msl-shadow-cta-hover);
}
.msl-btn--hero:active:not([disabled]) {
	transform: translateY(1px);
	box-shadow: var(--msl-shadow-cta-active);
}
.msl-btn--on-warm {
	padding-inline: 46px;
	background: var(--msl-ink-deep);
	box-shadow: var(--msl-shadow-warm);
}
.msl-btn--on-warm:hover:not([disabled]) {
	transform: translateY(-3px) scale(1.02);
	background: var(--msl-ink-deep);
	box-shadow: var(--msl-shadow-warm-hover);
}
.msl-btn--on-warm:active:not([disabled]) {
	transform: translateY(1px) scale(1);
}
.msl-btn--light {
	padding: 13px 26px;
	background: var(--msl-on-dark);
	color: var(--msl-ink-panel);
	font-size: calc((15px) * var(--msl-scale, 1));
	font-weight: 700;
}
.msl-btn--light:hover:not([disabled]) {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px oklch(0.05 0.02 60 / 0.5);
}
.msl-btn--light:active:not([disabled]) {
	transform: translateY(0);
}
.msl-btn--ghost {
	padding: 13px 26px;
	border: 1px solid var(--msl-ghost-border);
	background: rgb(27 15 6 / 0.7);
	background: color-mix(in oklab, var(--msl-ghost-bg) 70%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--msl-ghost-text);
	font-size: calc((15px) * var(--msl-scale, 1));
	font-weight: 600;
}
.msl-btn--ghost:hover:not([disabled]) {
	transform: translateY(-3px);
	background: rgb(41 25 12 / 0.85);
	background: color-mix(in oklab, var(--msl-ghost-hover) 85%, transparent);
	border-color: var(--msl-ghost-border-hover);
}
.msl-btn--ghost:active:not([disabled]) {
	transform: translateY(0);
}
.msl-btn--amber {
	block-size: 58px;
	background: var(--msl-amber);
	color: var(--msl-cta-ink);
	font-size: calc((18px) * var(--msl-scale, 1));
	font-weight: 800;
}
.msl-btn--amber:hover:not([disabled]) {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px oklch(0.28 0.06 45 / 0.34);
}
.msl-btn--whatsapp {
	block-size: 58px;
	inline-size: 100%;
	background: #25D366;
	color: #06301A;
	font-size: calc((18px) * var(--msl-scale, 1));
	font-weight: 800;
}
.msl-btn--whatsapp:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgb(37 211 102 / 0.34);
}
.msl-btn--whatsapp:active {
	transform: translateY(0);
}
.msl-btn--dark {
	block-size: 54px;
	background: var(--msl-raised-2);
	color: var(--msl-on-dark);
	font-size: calc((16px) * var(--msl-scale, 1));
	font-weight: 700;
}
.msl-btn--dark:hover:not([disabled]) {
	transform: translateY(-2px);
	background: var(--msl-raised-3);
}
.msl-btn--soft {
	block-size: 54px;
	background: var(--msl-sheet);
	color: var(--msl-ink-deep);
	font-size: calc((16px) * var(--msl-scale, 1));
	font-weight: 700;
}
.msl-btn--soft:hover:not([disabled]) {
	transform: translateY(-2px);
	background: var(--msl-soft-hover);
}
.msl-btn--block {
	inline-size: 100%;
	block-size: 58px;
	font-size: calc((18.5px) * var(--msl-scale, 1));
	font-weight: 800;
}
.msl-btn--wide {
	inline-size: 100%;
	max-inline-size: 340px;
}
/* The back button leans toward its own arrow on hover. In RTL the arrow points
   the other way, so the lean follows the writing direction rather than a
   hard-coded axis. */
.msl-back:hover:not([disabled]) {
	transform: translateX(4px);
	background: var(--msl-gold-soft);
	box-shadow: none;
}
.msl-page--en .msl-back:hover:not([disabled]) {
	transform: translateX(-4px);
}
.msl-textbtn {
	border: 0;
	background: none;
	color: var(--msl-muted-2);
	font-family: var(--msl-font-text);
	font-size: calc((15px) * var(--msl-scale, 1));
	font-weight: 600;
	cursor: pointer;
	padding: 10px;
	border-radius: 999px;
}
.msl-textbtn:hover {
	color: var(--msl-ink);
}
.msl-iconbtn {
	inline-size: 38px;
	block-size: 38px;
	flex: none;
	border: 0;
	border-radius: 999px;
	background: var(--msl-close-bg);
	color: var(--msl-close-fg);
	font-size: calc((17px) * var(--msl-scale, 1));
	line-height: 1;
	cursor: pointer;
	transition: background var(--msl-t-fast) ease, transform var(--msl-t-fast) ease;
}
.msl-iconbtn:hover {
	background: var(--msl-warm);
	transform: translateY(-1px);
}
/* ==========================================================================
   4  Header
   ========================================================================== */

.msl-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 30;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: rgb(250 244 234 / 0.82);
	background: color-mix(in oklab, var(--msl-header-bg) 82%, transparent);
	border-block-end: 1px solid var(--msl-header-border);
}
.msl-header__inner {
	max-inline-size: var(--msl-shell);
	margin-inline: auto;
	padding: 14px var(--msl-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.msl-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	min-inline-size: 0;
}
.msl-brand:hover {
	text-decoration: none;
}
.msl-brand__word {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((22px) * var(--msl-scale, 1));
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.msl-logo__mark {
	inline-size: var(--msl-mark-size, 28px);
	block-size: var(--msl-mark-size, 28px);
	flex: none;
	border-radius: 999px;
	background: var(--msl-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.msl-logo__mark--small {
	--msl-mark-size: 18px;
}
.msl-logo__dot {
	inline-size: 9px;
	block-size: 9px;
	border-radius: 999px;
	background: var(--msl-accent-dot);
	box-shadow: 0 0 10px var(--msl-accent-dot);
}
.msl-logo__mark--small .msl-logo__dot {
	inline-size: 6px;
	block-size: 6px;
	box-shadow: none;
}
.msl-logo__image {
	block-size: 32px;
	inline-size: auto;
	display: block;
}
.msl-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}
.msl-langtoggle {
	block-size: 40px;
	min-inline-size: 52px;
	padding-inline: 14px;
	flex: none;
	border-radius: 999px;
	border: 1px solid oklch(0.88 0.02 78);
	background: var(--msl-surface);
	color: var(--msl-lang-text);
	font-family: var(--msl-font-text);
	font-size: calc((14px) * var(--msl-scale, 1));
	font-weight: 700;
	cursor: pointer;
	transition: transform var(--msl-t-fast) ease, background var(--msl-t-fast) ease, border-color var(--msl-t-fast) ease;
}
.msl-langtoggle:hover {
	transform: translateY(-2px);
	background: var(--msl-warm);
	border-color: var(--msl-border-warm);
}
.msl-countdown {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	white-space: nowrap;
	padding: 8px 15px;
	border-radius: 999px;
	background: var(--msl-warm);
	border: 1px solid oklch(0.86 0.07 78);
	font-size: calc((14px) * var(--msl-scale, 1));
	font-weight: 600;
	color: var(--msl-cd-text);
	font-variant-numeric: tabular-nums;
	transition: background var(--msl-t-card) ease, border-color var(--msl-t-card) ease;
}
.msl-countdown:hover {
	background: var(--msl-warm-hover);
	border-color: var(--msl-border-warm);
}
.msl-countdown__dot {
	inline-size: 6px;
	block-size: 6px;
	flex: none;
	border-radius: 999px;
	background: var(--msl-accent);
	animation: msl-pulse 2.2s ease-in-out infinite;
}
@keyframes msl-pulse {
	0%, 100% { opacity: .5; }
	50% { opacity: 1; }
}
/* ==========================================================================
   5  Hero, collage, candles
   ========================================================================== */

.msl-hero {
	position: relative;
	padding-block: 74px 46px;
}
.msl-hero__halo {
	position: absolute;
	inset-inline-start: -60px;
	inset-block-start: 0;
	inline-size: calc(100% + 120px);
	block-size: calc(100% + 20px);
	pointer-events: none;
}
.msl-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
}
.msl-eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	inline-size: 100%;
	max-inline-size: 640px;
	color: var(--msl-eyebrow);
}
.msl-eyebrow__rule {
	flex: 1;
	block-size: 1px;
	background: var(--msl-rule);
}
.msl-eyebrow__label {
	flex: none;
	font-size: calc((13px) * var(--msl-scale, 1));
	font-weight: 500;
	letter-spacing: 0.14em;
	white-space: nowrap;
}
/* The candle. The flame is two stacked ellipses so the outer glow can flicker
   slower than the flame inside it — one shape reads as a blinking dot. */
.msl-candle {
	flex: none;
	overflow: visible;
}
.msl-candle__glow {
	fill: var(--msl-accent-light);
	opacity: .28;
	animation: msl-flick 2.6s ease-in-out infinite;
	transform-origin: 50% 60%;
}
.msl-candle__flame {
	fill: oklch(0.70 0.19 52);
	animation: msl-flick 1.9s ease-in-out infinite;
	transform-origin: 50% 70%;
}
.msl-candle__wick { fill: oklch(0.42 0.06 48); }
.msl-candle__body { fill: var(--msl-warm); }
.msl-candle__highlight { fill: var(--msl-on-dark); }
.msl-candle__cup { fill: oklch(0.80 0.10 68); }
.msl-candle__stem { fill: oklch(0.74 0.10 64); }
.msl-candle__stem-hl { fill: oklch(0.86 0.08 72); }
.msl-candle__knop { fill: oklch(0.78 0.10 66); }
.msl-candle__foot { fill: oklch(0.74 0.10 64); }
.msl-candle__base { fill: oklch(0.68 0.10 60); }
@keyframes msl-flick {
	0%, 100% { transform: scaleY(1) scaleX(1); opacity: 1; }
	40% { transform: scaleY(1.14) scaleX(0.92); opacity: .88; }
	70% { transform: scaleY(0.95) scaleX(1.04); opacity: .96; }
}
/* The 660px cap is load-bearing: it is what leaves the gutter the collage tiles
   sit in. Widening it without re-placing the tiles puts them over the words. */
.msl-hero__title {
	max-inline-size: 660px;
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((clamp(40px, 4.6vw, 76px)) * var(--msl-scale, 1));
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-wrap: balance;
	color: var(--msl-ink-strong);
}
.msl-hero__title span {
	display: block;
}
.msl-hero__title-accent {
	color: var(--msl-accent);
}
.msl-hero__sub {
	max-inline-size: 600px;
	font-size: calc((20px) * var(--msl-scale, 1));
	line-height: 1.6;
	color: var(--msl-body);
	font-weight: 400;
	text-wrap: pretty;
}
.msl-hero__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
	margin-block-start: 4px;
}
.msl-counterchip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--msl-surface);
	border: 1px solid var(--msl-border-soft);
}
.msl-counterchip__value {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((26px) * var(--msl-scale, 1));
	color: var(--msl-ink);
	letter-spacing: -0.02em;
}
.msl-counterchip__label {
	font-size: calc((14.5px) * var(--msl-scale, 1));
	color: var(--msl-muted);
	font-weight: 500;
}
@keyframes msl-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-11px); }
}
/* ==========================================================================
   6  Split stage
   ========================================================================== */

.msl-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 16px;
}
.msl-panel {
	position: relative;
	border-radius: 36px;
	overflow: hidden;
	background: var(--msl-dark);
	box-shadow: var(--msl-shadow-panel);
	transition: box-shadow var(--msl-t-slow) ease, transform var(--msl-t-slow) var(--msl-ease);
}
.msl-panel:hover {
	transform: translateY(-4px);
	box-shadow: var(--msl-shadow-panel-hover);
}
.msl-panel--wall {
	background: var(--msl-dark-deep);
}
.msl-panel__canvas {
	display: block;
	inline-size: 100%;
	block-size: 560px;
}
/* First thing after the canvas on purpose: everything below paints over it, so
   the overlay text stays readable whatever the canvas is doing underneath. */
.msl-panel__scrim {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 130px;
	pointer-events: none;
	background: linear-gradient(to bottom, oklch(0.10 0.02 60 / 0.78), oklch(0.10 0.02 60 / 0));
}
.msl-panel__lead {
	position: absolute;
	inset-block-start: 26px;
	inset-inline-start: 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	pointer-events: none;
}
.msl-panel__lead--end {
	inset-inline-start: auto;
	inset-inline-end: 30px;
	align-items: flex-end;
	text-align: end;
}
.msl-panel__title {
	max-inline-size: 230px;
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((24px) * var(--msl-scale, 1));
	color: var(--msl-on-dark-bright);
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-shadow: var(--msl-text-shadow);
}
.msl-panel__sub {
	font-size: calc((13px) * var(--msl-scale, 1));
	color: var(--msl-on-dark-sub);
	font-weight: 500;
	text-shadow: var(--msl-text-shadow-soft);
}
.msl-panel__figure {
	font-weight: 700;
	color: var(--msl-accent-gold);
}
.msl-panel__pct {
	position: absolute;
	inset-block-start: 26px;
	inset-inline-end: 30px;
	display: flex;
	align-items: baseline;
	gap: 7px;
	pointer-events: none;
}
.msl-panel__pct-value {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((24px) * var(--msl-scale, 1));
	color: var(--msl-gold-figure);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	text-shadow: var(--msl-text-shadow);
}
.msl-panel__pct-label {
	font-size: calc((12.5px) * var(--msl-scale, 1));
	color: var(--msl-on-dark-sub);
	font-weight: 500;
	text-shadow: var(--msl-text-shadow-soft);
}
.msl-panel__action {
	position: absolute;
	inset-block-end: 24px;
	inset-inline: 0;
	display: flex;
	justify-content: center;
}
/* ==========================================================================
   7  Marquee
   ========================================================================== */

.msl-marquee {
	margin-block-start: 14px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--msl-warm-strong);
	padding-block: 13px;
}
/* Both the track and each half are max-content, never a percentage: percentage
   widths make the two halves overlap and the loop visibly jumps. */
.msl-marquee__track {
	display: flex;
	inline-size: max-content;
	animation: msl-marquee 34s linear infinite;
}
.msl-marquee__track:hover {
	animation-play-state: paused;
}
.msl-marquee__half {
	display: flex;
	gap: 34px;
	inline-size: max-content;
	flex: none;
	padding-inline-start: 34px;
}
.msl-marquee__item {
	display: flex;
	align-items: center;
	gap: 9px;
	white-space: nowrap;
	flex: none;
	font-size: calc((14.5px) * var(--msl-scale, 1));
	font-weight: 600;
	color: var(--msl-marquee-text);
}
.msl-marquee__dot {
	inline-size: 5px;
	block-size: 5px;
	border-radius: 999px;
	background: var(--msl-accent);
	flex: none;
}
@keyframes msl-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(50%); }
}
.msl-page--en .msl-marquee__track {
	animation-name: msl-marquee-ltr;
}
@keyframes msl-marquee-ltr {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
/* ==========================================================================
   8  Stats
   ========================================================================== */

.msl-stats {
	padding-block-start: 90px;
}
.msl-stats .msl-subheading {
	margin-block: 10px 30px;
	font-size: calc((18px) * var(--msl-scale, 1));
}
.msl-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.msl-stat {
	padding: 28px 22px;
	border-radius: 26px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 0;
	transition: transform var(--msl-t-card) var(--msl-ease), box-shadow var(--msl-t-card) ease;
}
.msl-stat:hover {
	transform: translateY(-5px);
	box-shadow: var(--msl-shadow-stat);
}
.msl-stat--ink { background: var(--msl-ink); color: var(--msl-on-dark); }
.msl-stat--gold { background: var(--msl-gold-bg); color: var(--msl-stat-gold-ink); }
.msl-stat--plain { background: var(--msl-surface); color: var(--msl-ink); }
.msl-stat--orange { background: var(--msl-orange-bg); color: var(--msl-stat-orange-ink); }
.msl-stat__value {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((clamp(26px, 3.2vw, 48px)) * var(--msl-scale, 1));
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	white-space: nowrap;
}
/*
 * The design sets the label to 72% opacity. On three of the four cards that
 * still clears 4.5:1, and on the fourth it clears it by a hair — so the value
 * is kept, and the check is recorded in README rather than the opacity being
 * quietly rounded off.
 */
.msl-stat__label {
	font-size: calc((14.5px) * var(--msl-scale, 1));
	font-weight: 500;
	opacity: .72;
	text-wrap: pretty;
}
.msl-progress {
	margin-block-start: 14px;
	padding: 30px 32px;
	border-radius: 26px;
	background: var(--msl-surface);
	border: 1px solid var(--msl-border);
	transition: border-color var(--msl-t-card) ease, box-shadow var(--msl-t-card) ease;
}
.msl-progress:hover {
	border-color: var(--msl-border-hover);
	box-shadow: var(--msl-shadow-card);
}
.msl-progress__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-block-end: 18px;
}
.msl-progress__label {
	font-size: calc((18px) * var(--msl-scale, 1));
	color: oklch(0.42 0.035 55);
	font-weight: 500;
}
.msl-progress__value {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((clamp(30px, 3.4vw, 46px)) * var(--msl-scale, 1));
	letter-spacing: -0.035em;
	color: var(--msl-accent);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.msl-progress__track {
	block-size: 12px;
	border-radius: 999px;
	background: var(--msl-track);
	overflow: hidden;
}
.msl-progress__fill {
	display: block;
	block-size: 100%;
	border-radius: 999px;
	background: linear-gradient(to left, var(--msl-accent), var(--msl-accent-light));
	transition: inline-size var(--msl-t-slow) ease;
}
.msl-page--en .msl-progress__fill {
	background: linear-gradient(to right, var(--msl-accent), var(--msl-accent-light));
}
.msl-progress__note {
	margin-block-start: 16px;
	font-size: calc((15px) * var(--msl-scale, 1));
	color: var(--msl-muted-2);
	font-weight: 400;
}
/* ==========================================================================
   9  Nav cards
   ========================================================================== */

.msl-navcards {
	padding-block-start: 70px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
}
.msl-navcard {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	border-radius: 26px;
	cursor: pointer;
	text-align: start;
	font-family: var(--msl-font-text);
	background: var(--msl-surface);
	border: 1px solid var(--msl-border);
	color: inherit;
	transition: transform var(--msl-t-card) var(--msl-ease), border-color var(--msl-t-card) ease, box-shadow var(--msl-t-card) ease;
}
.msl-navcard:hover {
	transform: translateY(-4px);
	border-color: var(--msl-border-active);
	box-shadow: var(--msl-shadow-card-lift);
}
.msl-navcard__thumb {
	inline-size: 130px;
	block-size: 92px;
	flex: none;
	border-radius: 18px;
	overflow: hidden;
	background: var(--msl-dark);
}
.msl-navcard__thumb canvas {
	display: block;
	inline-size: 100%;
	block-size: 100%;
}
.msl-navcard__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 0;
}
.msl-navcard__title {
	font-family: var(--msl-font-display);
	font-size: calc((22px) * var(--msl-scale, 1));
	font-weight: 900;
	letter-spacing: -0.02em;
}
.msl-navcard__sub {
	font-size: calc((15px) * var(--msl-scale, 1));
	font-weight: 400;
	color: var(--msl-muted);
	line-height: 1.5;
}
.msl-navcard__figure {
	color: var(--msl-accent-text);
	font-weight: 700;
}
/* The chevron points along the reading direction, so it means "onward" in both
   languages rather than "left" in one of them. */
.msl-navcard__chevron {
	flex: none;
	color: var(--msl-accent);
	font-size: calc((24px) * var(--msl-scale, 1));
	line-height: 1;
}
.msl-page--en .msl-navcard__chevron {
	transform: scaleX(-1);
}
/* ==========================================================================
   10  Map
   ========================================================================== */

.msl-map {
	padding-block-start: 90px;
}
.msl-map__head {
	max-inline-size: 680px;
	margin-block-end: 26px;
}
.msl-map__frame {
	position: relative;
	border-radius: 32px;
	overflow: hidden;
	background: var(--msl-dark);
	transition: box-shadow var(--msl-t-slow) ease;
}
.msl-map__frame:hover {
	box-shadow: 0 30px 70px oklch(0.30 0.05 50 / 0.26);
}
.msl-map__canvas {
	display: block;
	inline-size: 100%;
	block-size: 540px;
}
/* ==========================================================================
   11  Referral
   ========================================================================== */

.msl-referral {
	padding-block-start: 90px;
}
.msl-referral__head {
	max-inline-size: 680px;
	margin-block-end: 26px;
}
.msl-referral__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}
.msl-linkcard {
	padding: 36px 34px;
	border-radius: 32px;
	background: var(--msl-ink);
	color: var(--msl-on-dark);
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.msl-linkcard__label {
	font-size: calc((12.5px) * var(--msl-scale, 1));
	letter-spacing: 0.08em;
	color: var(--msl-link-label);
	font-weight: 600;
}
/* The link stays left-to-right in both languages — a URL read right-to-left is
   not a URL — but it still aligns to the start of the line. */
.msl-linkcard__value {
	margin-block-start: 8px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--msl-raised);
	font-size: calc((17px) * var(--msl-scale, 1));
	font-weight: 600;
	color: var(--msl-link-value);
	direction: ltr;
	text-align: start;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.msl-linkcard__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.msl-linkcard__row,
.msl-result__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
}
.msl-refcount {
	padding: 36px 34px;
	border-radius: 32px;
	background: var(--msl-surface);
	border: 1px solid var(--msl-border);
	display: flex;
	flex-direction: column;
	gap: 20px;
	transition: border-color var(--msl-t-card) ease, box-shadow var(--msl-t-card) ease;
}
.msl-refcount:hover {
	border-color: var(--msl-border-hover);
	box-shadow: var(--msl-shadow-card);
}
.msl-refcount__value {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((clamp(34px, 3.6vw, 52px)) * var(--msl-scale, 1));
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--msl-accent);
}
.msl-refcount__label {
	margin-block-start: 4px;
	font-size: calc((16px) * var(--msl-scale, 1));
	color: var(--msl-body);
	font-weight: 500;
}
.msl-refcount__bar {
	block-size: 10px;
	border-radius: 999px;
	background: var(--msl-track-soft);
	overflow: hidden;
}
.msl-refcount__fill {
	display: block;
	block-size: 100%;
	border-radius: 999px;
	background: linear-gradient(to left, var(--msl-accent), var(--msl-accent-light));
	transition: inline-size var(--msl-t-slow) ease;
}
.msl-page--en .msl-refcount__fill {
	background: linear-gradient(to right, var(--msl-accent), var(--msl-accent-light));
}
.msl-refcount__next {
	margin-block-start: 10px;
	font-size: calc((14px) * var(--msl-scale, 1));
	color: var(--msl-muted-2);
	font-weight: 500;
}
.msl-milestones {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}
/* Shared goals, deliberately not a ranking: there is no leaderboard of people
   anywhere on this site. */
.msl-milestone {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--msl-border);
	background: var(--msl-surface-warm);
	color: var(--msl-muted-3);
	font-size: calc((14.5px) * var(--msl-scale, 1));
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	transition: background var(--msl-t-card) ease, border-color var(--msl-t-card) ease, color var(--msl-t-card) ease;
}
.msl-milestone.is-reached {
	background: var(--msl-gold-bg);
	border-color: var(--msl-ink);
	color: var(--msl-stat-gold-ink);
	font-weight: 800;
}
.msl-milestone__mark {
	inline-size: 0;
	overflow: hidden;
	transition: inline-size var(--msl-t-card) ease;
}
.msl-milestone.is-reached .msl-milestone__mark {
	inline-size: 1em;
}
.msl-milestone.is-reached .msl-milestone__mark::before {
	content: "✓";
}
/* ==========================================================================
   12  Closing and footer
   ========================================================================== */

.msl-closing {
	padding-block: 70px 110px;
}
.msl-closing__inner {
	border-radius: 36px;
	padding: 80px 40px;
	text-align: center;
	background: linear-gradient(150deg, var(--msl-cta-grad-1), var(--msl-cta-grad-2));
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}
.msl-closing__title {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((62px) * var(--msl-scale, 1));
	line-height: 1;
	letter-spacing: -0.04em;
	max-inline-size: 760px;
	color: var(--msl-cta-ink);
	text-wrap: balance;
}
.msl-closing__urgency {
	max-inline-size: 540px;
	font-size: calc((18px) * var(--msl-scale, 1));
	line-height: 1.6;
	color: var(--msl-cta-body);
	font-weight: 500;
	text-wrap: pretty;
}
.msl-closing__counter {
	font-size: calc((15px) * var(--msl-scale, 1));
	color: var(--msl-cta-body);
	font-weight: 600;
}
.msl-footer {
	border-block-start: 1px solid var(--msl-border);
	background: rgb(248 242 232 / 0.6);
	background: color-mix(in oklab, var(--msl-canvas) 60%, transparent);
}
.msl-footer__inner {
	max-inline-size: var(--msl-shell);
	margin-inline: auto;
	padding: 26px var(--msl-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: calc((14px) * var(--msl-scale, 1));
	color: var(--msl-muted-3);
}
.msl-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.msl-footer__links a,
.msl-footer__credit a {
	color: var(--msl-muted-3);
}
.msl-footer__links a:hover,
.msl-footer__credit a:hover {
	color: var(--msl-ink);
}
/* ==========================================================================
   13  Join dialog
   ========================================================================== */

.msl-modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}
.msl-modal[hidden] {
	display: none;
}
.msl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(66 40 24 / 0.42);
	background: color-mix(in oklab, var(--msl-backdrop) 42%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: msl-fade .26s ease both;
	border: 0;
}
.msl-modal__sheet {
	position: relative;
	inline-size: 100%;
	max-inline-size: 560px;
	max-block-size: 92vh;
	display: flex;
	flex-direction: column;
	border-radius: 34px;
	overflow: hidden;
	background: var(--msl-sheet);
	box-shadow: var(--msl-shadow-sheet);
	animation: msl-rise .36s var(--msl-ease) both;
}
@keyframes msl-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes msl-rise {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}
.msl-join {
	display: flex;
	flex-direction: column;
	min-block-size: 0;
}
.msl-join__head {
	padding: 24px 32px 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.msl-steps {
	display: flex;
	gap: 6px;
}
.msl-steps__segment {
	inline-size: 32px;
	block-size: 4px;
	border-radius: 999px;
	background: var(--msl-border-soft);
	transition: background var(--msl-t) ease;
}
.msl-steps__segment.is-done {
	background: var(--msl-accent);
}
.msl-join__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 32px 20px;
}
.msl-join__foot {
	padding: 14px 32px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.msl-join__foot-group {
	inline-size: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.msl-join__foot-group[hidden] {
	display: none;
}
.msl-step__title {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((38px) * var(--msl-scale, 1));
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin-block-end: 6px;
}
.msl-step__sub {
	font-size: calc((16px) * var(--msl-scale, 1));
	color: var(--msl-muted);
	font-weight: 400;
	margin-block-end: 22px;
}
/* The options are checkboxes wearing the design's cards: the input carries the
   semantics and the keyboard behaviour, the label carries the look. */
.msl-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
}
.msl-option--wide {
	grid-column: span 2;
}
.msl-option__input,
.msl-chip__input,
.msl-anon__input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}
.msl-option__label {
	display: flex;
	flex-direction: column;
	gap: 16px;
	block-size: 100%;
	text-align: start;
	padding: 18px;
	border-radius: 20px;
	cursor: pointer;
	border: 1.5px solid var(--msl-border);
	background: var(--msl-surface);
	transition: transform var(--msl-t) var(--msl-ease), box-shadow var(--msl-t) ease, border-color var(--msl-t) ease, background var(--msl-t) ease;
}
.msl-option__label:hover {
	transform: translateY(-3px);
	border-color: var(--msl-border-active);
	box-shadow: 0 12px 26px oklch(0.34 0.06 50 / 0.14);
}
.msl-option__label:active {
	transform: translateY(0);
}
.msl-option__dot {
	inline-size: 10px;
	block-size: 10px;
	border-radius: 999px;
	background: var(--msl-border-soft);
	transition: background var(--msl-t) ease;
}
.msl-option__text {
	font-size: calc((17px) * var(--msl-scale, 1));
	font-weight: 500;
	color: var(--msl-chip-text);
	line-height: 1.25;
}
.msl-option__input:checked + .msl-option__label {
	border-color: var(--msl-ink);
	background: var(--msl-gold-bg);
}
.msl-option__input:checked + .msl-option__label .msl-option__dot {
	background: var(--msl-accent-strong);
}
.msl-option__input:checked + .msl-option__label .msl-option__text {
	font-weight: 800;
	color: var(--msl-ink);
}
/* Three is the cap. Rather than let a fourth click fail silently, the ones that
   are not yet chosen dim and stop responding once the cap is reached. */
.msl-options.is-full .msl-option__input:not(:checked) + .msl-option__label {
	opacity: .5;
	cursor: not-allowed;
}
.msl-options.is-full .msl-option__input:not(:checked) + .msl-option__label:hover {
	transform: none;
	border-color: var(--msl-border);
	box-shadow: none;
}
.msl-option__input:focus-visible + .msl-option__label,
.msl-chip__input:focus-visible + .msl-chip__label,
.msl-anon__input:focus-visible + .msl-anon__label {
	outline: 3px solid var(--msl-accent-text);
	outline-offset: 3px;
}
.msl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.msl-chip__label {
	display: inline-flex;
	padding: 13px 20px;
	border-radius: 999px;
	cursor: pointer;
	font-size: calc((15.5px) * var(--msl-scale, 1));
	font-weight: 500;
	border: 1.5px solid var(--msl-border);
	background: var(--msl-surface);
	color: var(--msl-chip-text);
	transition: transform var(--msl-t-fast) ease, border-color var(--msl-t-fast) ease, background var(--msl-t-fast) ease;
}
.msl-chip__label:hover {
	transform: translateY(-2px);
	border-color: var(--msl-border-active);
}
.msl-chip__input:checked + .msl-chip__label {
	border-color: var(--msl-ink);
	background: var(--msl-gold-bg);
	color: var(--msl-ink);
	font-weight: 800;
}
.msl-field {
	display: block;
	margin-block-start: 16px;
}
.msl-field__label {
	display: block;
	margin-block-end: 6px;
	font-size: calc((14px) * var(--msl-scale, 1));
	font-weight: 600;
	color: var(--msl-chip-ink);
}
.msl-field__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
}
.msl-input {
	inline-size: 100%;
	block-size: 56px;
	border-radius: 16px;
	background: var(--msl-surface);
	border: 1.5px solid var(--msl-border-soft);
	color: var(--msl-ink);
	font-family: var(--msl-font-text);
	font-size: calc((16px) * var(--msl-scale, 1));
	padding-inline: 16px;
	transition: border-color var(--msl-t-fast) ease;
}
.msl-input--area {
	block-size: 104px;
	padding: 14px 16px;
	resize: vertical;
	line-height: 1.5;
}
.msl-input:focus {
	border-color: var(--msl-accent-text);
	outline: 3px solid var(--msl-accent-text);
	outline-offset: 2px;
}
.msl-input[aria-invalid="true"] {
	border-color: var(--msl-danger);
}
.msl-field__error {
	display: none;
	margin-block-start: 6px;
	font-size: calc((13.5px) * var(--msl-scale, 1));
	font-weight: 600;
	color: var(--msl-danger);
}
.msl-field__error:not(:empty) {
	display: block;
}
.msl-note {
	margin-block-start: 12px;
	font-size: calc((13.5px) * var(--msl-scale, 1));
	color: var(--msl-muted-3);
	font-weight: 400;
	line-height: 1.5;
}
.msl-remind {
	margin-block-start: 22px;
	padding-block-start: 20px;
	border-block-start: 1px solid var(--msl-border);
}
.msl-remind__title {
	font-size: calc((17px) * var(--msl-scale, 1));
	font-weight: 700;
	color: oklch(0.26 0.035 50);
}
.msl-remind__sub {
	margin-block-start: 5px;
	font-size: calc((14px) * var(--msl-scale, 1));
	font-weight: 400;
	color: var(--msl-muted);
	line-height: 1.55;
	text-wrap: pretty;
}
.msl-anon {
	margin-block-start: 18px;
}
.msl-anon__label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 16px;
	border-radius: 16px;
	cursor: pointer;
	border: 1.5px solid var(--msl-border);
	background: var(--msl-surface);
	font-size: calc((15.5px) * var(--msl-scale, 1));
	color: var(--msl-chip-ink);
	font-weight: 500;
	transition: border-color var(--msl-t-fast) ease, background var(--msl-t-fast) ease;
}
.msl-anon__box {
	inline-size: 22px;
	block-size: 22px;
	border-radius: 7px;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: calc((13px) * var(--msl-scale, 1));
	color: oklch(0.20 0.04 48);
	border: 1.5px solid oklch(0.86 0.02 78);
	background: transparent;
	transition: background var(--msl-t-fast) ease, border-color var(--msl-t-fast) ease;
}
.msl-anon__input:checked + .msl-anon__label {
	border-color: var(--msl-ink);
	background: var(--msl-gold-bg);
}
.msl-anon__input:checked + .msl-anon__label .msl-anon__box {
	background: var(--msl-anon-box);
	border-color: var(--msl-anon-box-bd);
}
.msl-anon__input:checked + .msl-anon__label .msl-anon__box::before {
	content: "✓";
}
.msl-formerror {
	margin-block-start: 16px;
	font-size: calc((15px) * var(--msl-scale, 1));
	font-weight: 700;
	color: var(--msl-danger);
}
.msl-formerror:empty {
	display: none;
}
.msl-step[hidden] {
	display: none;
}
/* ==========================================================================
   14  Full-screen screens
   ========================================================================== */

.msl-screen {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--msl-stage);
	animation: msl-fade var(--msl-t-slow) ease both;
}
.msl-screen[hidden] {
	display: none;
}
.msl-screen--wow {
	z-index: 60;
	background: var(--msl-wow-bg);
}
.msl-screen--result {
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	overflow-y: auto;
	background: rgb(66 40 24 / 0.42);
	background: color-mix(in oklab, var(--msl-backdrop) 42%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.msl-screen__canvas {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	touch-action: none;
}
.msl-screen--art .msl-screen__canvas {
	cursor: grab;
}
.msl-screen--art .msl-screen__canvas:active {
	cursor: grabbing;
}
.msl-screen--wall .msl-screen__canvas {
	cursor: pointer;
}
.msl-screen__top {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	padding: 26px var(--msl-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: linear-gradient(to bottom, var(--msl-stage) 40%, transparent);
	pointer-events: none;
}
.msl-screen__top > * {
	pointer-events: auto;
}
.msl-screen__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-align: center;
}
.msl-screen__title {
	font-family: var(--msl-font-display);
	font-size: calc((22px) * var(--msl-scale, 1));
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--msl-on-dark);
}
.msl-screen__count {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((44px) * var(--msl-scale, 1));
	letter-spacing: -0.035em;
	color: var(--msl-on-dark);
}
.msl-screen__sub {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: calc((14px) * var(--msl-scale, 1));
	font-weight: 400;
	color: var(--msl-on-dark-muted);
}
.msl-screen--wall .msl-screen__sub {
	font-size: calc((13.5px) * var(--msl-scale, 1));
	font-weight: 500;
}
.msl-screen__figure {
	color: var(--msl-gold-num);
	font-weight: 700;
}
.msl-screen__spacer {
	inline-size: 100px;
	flex: none;
}
.msl-screen__bottom {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	padding: 30px var(--msl-gutter) 40px;
	background: linear-gradient(to top, var(--msl-stage) 52%, transparent);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
/*
 * "My candle" sits opposite the zoom column, at the same height: it is the
 * other way of moving the camera, and putting it in the top bar would push it
 * in among the title and the counter, where it reads as a heading rather than
 * as a control.
 */
.msl-mine {
	position: absolute;
	inset-block-start: 100px;
	inset-inline-start: var(--msl-gutter);
	z-index: 2;
}
.msl-mine[hidden] {
	display: none;
}
.msl-zoom {
	position: absolute;
	inset-block-start: 100px;
	inset-inline-end: var(--msl-gutter);
	display: flex;
	flex-direction: column;
	gap: 1px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--msl-zoom-sep);
}
.msl-zoom__btn {
	inline-size: 48px;
	block-size: 48px;
	border: 0;
	background: var(--msl-zoom-bg);
	color: oklch(0.95 0.02 80);
	font-size: calc((22px) * var(--msl-scale, 1));
	line-height: 1;
	cursor: pointer;
	font-family: var(--msl-font-text);
	transition: background var(--msl-t-fast) ease;
}
.msl-zoom__btn:hover {
	background: var(--msl-zoom-sep);
}
.msl-zoom__level {
	block-size: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--msl-zoom-bg);
	font-size: calc((12px) * var(--msl-scale, 1));
	font-weight: 600;
	color: var(--msl-zoom-label);
	font-variant-numeric: tabular-nums;
}
.msl-pick {
	inline-size: 100%;
	max-inline-size: 440px;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--msl-pick-bg);
	animation: msl-rise var(--msl-t-slow) ease both;
	display: flex;
	align-items: center;
	gap: 15px;
}
.msl-pick[hidden] {
	display: none;
}
.msl-pick--stack {
	max-inline-size: 420px;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
.msl-pick__avatar {
	inline-size: 40px;
	block-size: 40px;
	flex: none;
	border-radius: 999px;
	background: linear-gradient(160deg, var(--msl-accent-gold), var(--msl-accent-deep));
}
.msl-pick__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-inline-size: 0;
}
.msl-pick__name {
	font-size: calc((18px) * var(--msl-scale, 1));
	font-weight: 800;
	color: var(--msl-ink-panel);
}
.msl-pick__sub {
	font-size: calc((14.5px) * var(--msl-scale, 1));
	font-weight: 400;
	color: var(--msl-pick-sub);
}
.msl-hint {
	text-align: center;
	font-size: calc((14.5px) * var(--msl-scale, 1));
	font-weight: 400;
	color: var(--msl-on-dark-hint);
	max-inline-size: 540px;
	text-wrap: pretty;
}
/* --- The moment after joining --- */

.msl-wow__count {
	position: absolute;
	inset-block-start: 9%;
	inset-inline: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	opacity: 0;
	transition: opacity var(--msl-t-fade) ease;
}
.msl-wow__count.is-shown,
.msl-wow__text.is-shown {
	opacity: 1;
}
.msl-wow__number {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((62px) * var(--msl-scale, 1));
	color: var(--msl-gold-soft);
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.msl-wow__label {
	font-size: calc((14.5px) * var(--msl-scale, 1));
	color: var(--msl-on-dark-muted);
	font-weight: 500;
}
.msl-wow__text {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 0 24px 8%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
	background: linear-gradient(to top, var(--msl-wow-bg) 40%, transparent);
	opacity: 0;
	transition: opacity .7s ease;
}
.msl-wow__title {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((56px) * var(--msl-scale, 1));
	line-height: 1.02;
	letter-spacing: -0.04em;
	color: var(--msl-on-dark);
	text-wrap: balance;
}
.msl-wow__body {
	font-size: calc((19px) * var(--msl-scale, 1));
	line-height: 1.6;
	color: var(--msl-wow-body);
	font-weight: 400;
	max-inline-size: 580px;
	text-wrap: pretty;
}
.msl-wow__figure {
	color: var(--msl-gold-num);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.msl-wow__text .msl-btn--hero {
	margin-block-start: 4px;
	block-size: 60px;
	padding-inline: 42px;
	font-size: calc((19px) * var(--msl-scale, 1));
	background: var(--msl-on-dark);
	color: var(--msl-ink-panel);
	box-shadow: none;
}
.msl-wow__text .msl-btn--hero:hover {
	background: var(--msl-gold-soft);
}
/* --- The share card --- */

.msl-result {
	inline-size: 100%;
	max-inline-size: 520px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	animation: msl-rise .4s var(--msl-ease) both;
}
.msl-card {
	border-radius: 32px;
	overflow: hidden;
	background: var(--msl-sheet);
	box-shadow: 0 30px 70px oklch(0.28 0.05 50 / 0.3);
}
.msl-card__art {
	position: relative;
	block-size: 200px;
	background: var(--msl-dark);
}
.msl-card__art canvas {
	display: block;
	inline-size: 100%;
	block-size: 200px;
}
.msl-card__body {
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
	align-items: center;
}
.msl-card__title {
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((28px) * var(--msl-scale, 1));
	line-height: 1.15;
	letter-spacing: -0.03em;
}
.msl-card__thing {
	inline-size: 100%;
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding-block: 18px;
	border-block: 1px solid var(--msl-border);
}
.msl-card__label {
	font-size: calc((12.5px) * var(--msl-scale, 1));
	letter-spacing: 0.06em;
	color: var(--msl-muted-3);
	font-weight: 600;
}
.msl-card__value {
	font-size: calc((22px) * var(--msl-scale, 1));
	font-weight: 800;
	color: var(--msl-accent-strong);
	line-height: 1.3;
}
.msl-card__dedication {
	font-size: calc((15px) * var(--msl-scale, 1));
	color: var(--msl-muted);
	font-weight: 400;
}
.msl-card__dedication[hidden] {
	display: none;
}
.msl-card__count {
	font-size: calc((16px) * var(--msl-scale, 1));
	color: oklch(0.44 0.03 55);
	font-weight: 500;
}
.msl-card__figure {
	font-weight: 800;
	color: var(--msl-ink);
}
.msl-card__ask {
	font-size: calc((18px) * var(--msl-scale, 1));
	font-weight: 800;
	color: var(--msl-ink);
}
.msl-card__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: .8;
	font-family: var(--msl-font-display);
	font-weight: 900;
	font-size: calc((15px) * var(--msl-scale, 1));
}
.msl-result__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.msl-result__link {
	padding: 20px 22px;
	border-radius: 24px;
	background: var(--msl-warm-strong);
}
.msl-result__link-label {
	font-size: calc((12.5px) * var(--msl-scale, 1));
	letter-spacing: 0.06em;
	color: var(--msl-res-label);
	font-weight: 600;
	margin-block-end: 8px;
}
.msl-result__link-value {
	font-size: calc((16px) * var(--msl-scale, 1));
	color: var(--msl-res-ink);
	font-weight: 700;
	direction: ltr;
	text-align: start;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.msl-result__refcount {
	margin-block-start: 14px;
	font-size: calc((15px) * var(--msl-scale, 1));
	color: var(--msl-cta-body);
	font-weight: 500;
}
.msl-result__refcount span:first-child {
	font-weight: 800;
}
.msl-result__bar {
	margin-block-start: 12px;
	block-size: 6px;
	border-radius: 999px;
	background: var(--msl-res-track);
	overflow: hidden;
}
.msl-result__fill {
	display: block;
	block-size: 100%;
	border-radius: 999px;
	background: var(--msl-res-fill);
	transition: inline-size var(--msl-t-slow) ease;
}
.msl-result__next {
	margin-block-start: 9px;
	font-size: calc((12.5px) * var(--msl-scale, 1));
	color: var(--msl-res-label);
	font-weight: 600;
}
/* When a screen is open the page behind it must not scroll under the fingers. */
.msl-page.is-locked {
	overflow: hidden;
}
/* ==========================================================================
   15  Accessibility widget and its modes
   ========================================================================== */

.msl-a11y {
	position: fixed;
	inset-block-end: 22px;
	inset-inline-start: 22px;
	z-index: 90;
}
.msl-a11y__toggle {
	inline-size: 52px;
	block-size: 52px;
	border-radius: 999px;
	border: 2px solid var(--msl-on-dark);
	background: var(--msl-ink);
	color: var(--msl-on-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 26px oklch(0.24 0.035 50 / 0.34);
	transition: transform var(--msl-t) var(--msl-ease), background var(--msl-t) ease;
}
.msl-a11y__toggle:hover {
	transform: translateY(-2px);
	background: var(--msl-ink-hover);
}
.msl-a11y__panel {
	position: absolute;
	inset-block-end: 64px;
	inset-inline-start: 0;
	inline-size: 290px;
	max-block-size: min(70vh, 560px);
	overflow-y: auto;
	padding: 18px;
	border-radius: 22px;
	background: var(--msl-surface);
	border: 1px solid var(--msl-border);
	box-shadow: 0 24px 60px oklch(0.30 0.05 50 / 0.28);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.msl-a11y__panel[hidden] {
	display: none;
}
.msl-a11y__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-block-end: 4px;
}
.msl-a11y__title {
	font-size: calc((16px) * var(--msl-scale, 1));
	font-weight: 800;
	color: var(--msl-ink);
}
.msl-a11y__size {
	display: flex;
	align-items: center;
	gap: 8px;
}
.msl-a11y__size button {
	flex: 1;
}
.msl-a11y__item {
	inline-size: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 14px;
	border: 1.5px solid var(--msl-border);
	background: var(--msl-surface-warm);
	color: var(--msl-chip-ink);
	font-family: var(--msl-font-text);
	font-size: calc((14.5px) * var(--msl-scale, 1));
	font-weight: 600;
	text-align: start;
	cursor: pointer;
	transition: border-color var(--msl-t-fast) ease, background var(--msl-t-fast) ease;
}
.msl-a11y__item:hover {
	border-color: var(--msl-border-active);
}
.msl-a11y__item[aria-pressed="true"] {
	border-color: var(--msl-ink);
	background: var(--msl-gold-bg);
	color: var(--msl-stat-gold-ink);
	font-weight: 800;
}
.msl-a11y__item[aria-pressed="true"]::after {
	content: "✓";
}
.msl-a11y__note {
	font-size: calc((13px) * var(--msl-scale, 1));
	color: var(--msl-muted-3);
	font-variant-numeric: tabular-nums;
}
/* --- The adjustments themselves --- */

/*
 * "Dark contrast" is a hue inversion rather than a hand-built dark palette.
 * That is deliberate: inversion preserves every contrast ratio on the page
 * exactly, where re-mapping the tokens broke text/background pairs the first
 * time it was tried. The cost is that the warm cream turns dark and the dark
 * stages turn light — which is the point.
 */
html.msl-a11y-dark {
	filter: invert(1) hue-rotate(180deg);
	background: #1A1A1A;
}
html.msl-a11y-dark img,
html.msl-a11y-dark video,
html.msl-a11y-dark canvas {
	filter: invert(1) hue-rotate(180deg);
}
/*
 * Two colours, chosen by context rather than by element. An earlier version
 * listed which things should end up white on black and which black on white,
 * and every control it forgot — the header button, the panel button — ended up
 * black on its own dark fill at 1.26:1. Deciding by container instead means a
 * control cannot be forgotten: it takes the colours of whatever it sits in.
 *
 * The canvases are left alone. They already draw warm light on near-black, so
 * inside a black container they stay legible, and the artwork is the product —
 * blanking it would be a strange thing for an accessibility mode to do.
 */
html.msl-a11y-contrast .msl-page,
html.msl-a11y-contrast .msl-page *:not(canvas) {
	background-color: #FFFFFF !important;
	background-image: none !important;
	color: #000000 !important;
	border-color: #000000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
}
html.msl-a11y-contrast .msl-page :is(.msl-panel, .msl-screen, .msl-map__frame, .msl-linkcard, .msl-stat--ink, .msl-card__art),
html.msl-a11y-contrast .msl-page :is(.msl-panel, .msl-screen, .msl-map__frame, .msl-linkcard, .msl-stat--ink, .msl-card__art) *:not(canvas) {
	background-color: #000000 !important;
	color: #FFFFFF !important;
	border-color: #FFFFFF !important;
}
html.msl-a11y-contrast .msl-page :where(.msl-btn, .msl-input, .msl-option__label, .msl-chip__label, .msl-milestone, .msl-a11y__item, .msl-iconbtn) {
	border: 2px solid currentColor !important;
}
html.msl-a11y-links .msl-page a {
	text-decoration: underline !important;
	text-underline-offset: 3px;
	font-weight: 700;
}
html.msl-a11y-readable .msl-page,
html.msl-a11y-readable .msl-page :where(h1, h2, h3, button, input, textarea, label) {
	font-family: Arial, "Segoe UI", system-ui, sans-serif !important;
	letter-spacing: normal !important;
}
html.msl-a11y-spacing .msl-page :where(p, li, label, span) {
	line-height: 1.8 !important;
	letter-spacing: 0.06em !important;
	word-spacing: 0.16em !important;
}
html.msl-a11y-still .msl-page *,
html.msl-a11y-still .msl-page *::before,
html.msl-a11y-still .msl-page *::after {
	animation: none !important;
	transition: none !important;
}
/* ==========================================================================
   16  Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	:root {
		--msl-gutter: 28px;
	}
	.msl-heading,
	.msl-closing__title {
		font-size: calc((clamp(34px, 5.2vw, 56px)) * var(--msl-scale, 1));
	}
}
@media (max-width: 900px) {
	.msl-stage,
	.msl-referral__grid,
	.msl-navcards {
		grid-template-columns: minmax(0, 1fr);
	}
	.msl-panel__canvas {
		block-size: 420px;
	}
	.msl-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.msl-map__canvas {
		block-size: 380px;
	}
	.msl-hero {
		padding-block-start: 48px;
	}
}
@media (max-width: 720px) {
	.msl-header__inner {
		flex-wrap: wrap;
		gap: 10px;
	}
	/*
	 * flex-basis matters as much as flex-wrap here. The row is `flex: none` by
	 * default, so it sizes to its content and wrapping never triggers — it just
	 * grows past the screen. Pinning it to the full row width is what gives it
	 * something to wrap inside.
	 */
	.msl-header__actions {
		flex: 1 1 100%;
		flex-wrap: wrap;
		justify-content: center;
		min-inline-size: 0;
	}
	.msl-countdown {
		order: 3;
		flex: 1 1 100%;
		justify-content: center;
		white-space: normal;
		text-align: center;
	}
	.msl-eyebrow__label {
		white-space: normal;
	}
	.msl-hero__sub {
		font-size: calc((18px) * var(--msl-scale, 1));
	}
	.msl-btn--hero {
		block-size: 58px;
		padding-inline: 30px;
		font-size: calc((18px) * var(--msl-scale, 1));
	}
	.msl-hero__actions {
		flex-direction: column;
		inline-size: 100%;
	}
	.msl-hero__actions .msl-btn--hero {
		inline-size: 100%;
	}
	.msl-stats,
	.msl-map,
	.msl-referral {
		padding-block-start: 60px;
	}
	.msl-closing {
		padding-block: 50px 70px;
	}
	.msl-closing__inner {
		padding: 48px 24px;
	}
	.msl-linkcard,
	.msl-refcount {
		padding: 26px 22px;
	}
	.msl-screen__top,
	.msl-screen__bottom {
		padding-inline: 20px;
	}
	.msl-screen__spacer {
		display: none;
	}
	.msl-zoom {
		inset-block-start: auto;
		inset-block-end: 190px;
		inset-inline-end: 16px;
	}
	.msl-modal {
		padding: 0;
		align-items: flex-end;
	}
	.msl-modal__sheet {
		max-inline-size: none;
		max-block-size: 94vh;
		border-end-start-radius: 0;
		border-end-end-radius: 0;
	}
	.msl-join__head,
	.msl-join__body,
	.msl-join__foot {
		padding-inline: 20px;
	}
	.msl-step__title {
		font-size: calc((30px) * var(--msl-scale, 1));
	}
	.msl-wow__title {
		font-size: calc((38px) * var(--msl-scale, 1));
	}
	.msl-wow__number {
		font-size: calc((46px) * var(--msl-scale, 1));
	}
	.msl-screen--result {
		padding: 16px;
		align-items: flex-start;
	}
}
@media (max-width: 520px) {
	.msl-stats__grid,
	.msl-field__pair,
	.msl-options,
	.msl-linkcard__row,
	.msl-result__row {
		grid-template-columns: minmax(0, 1fr);
	}
	.msl-option--wide {
		grid-column: auto;
	}
	.msl-navcard {
		flex-wrap: wrap;
	}
	.msl-navcard__thumb {
		inline-size: 100%;
		block-size: 120px;
	}
	/* The two panel overlays sit in opposite top corners. On a phone-width
	   panel they meet in the middle, so both come in and come down a size. */
	.msl-panel__lead,
	.msl-panel__pct {
		inset-block-start: 18px;
	}
	.msl-panel__lead {
		inset-inline-start: 18px;
	}
	.msl-panel__lead--end {
		inset-inline-end: 18px;
	}
	.msl-panel__pct {
		inset-inline-end: 18px;
	}
	.msl-panel__title {
		font-size: calc(18px * var(--msl-scale, 1));
		max-inline-size: 9ch;
	}
	.msl-panel__pct-value {
		font-size: calc(20px * var(--msl-scale, 1));
	}
}

/*
 * Standing still.
 *
 * Everything that loops is stopped outright; the things that animate once on
 * appearing are shortened to a fade instead, in app.js.
 */
@media (prefers-reduced-motion: reduce) {
	.msl-candle__glow,
	.msl-candle__flame,
	.msl-countdown__dot,
	.msl-marquee__track {
		animation: none !important;
	}

	.msl-modal__backdrop,
	.msl-modal__sheet,
	.msl-screen,
	.msl-pick,
	.msl-result {
		animation-duration: .01ms !important;
	}
}
/* ==========================================================================
   18  Enlarged text
   ========================================================================== */

/*
 * The widget scales real text, not the page: --msl-scale multiplies every
 * font-size in this sheet. What that breaks is the controls with a fixed
 * height, so above 100% those become minimum heights with padding instead.
 * Only then — leaving them fixed at 160% clips descenders, and relaxing them
 * unconditionally moves every button by a pixel at the default size.
 */
html.msl-a11y-scaled .msl-btn,
html.msl-a11y-scaled .msl-input,
html.msl-a11y-scaled .msl-langtoggle,
html.msl-a11y-scaled .msl-iconbtn,
html.msl-a11y-scaled .msl-zoom__btn,
html.msl-a11y-scaled .msl-zoom__level {
	block-size: auto;
	min-block-size: 44px;
	padding-block: 12px;
	white-space: normal;
	height: auto;
}
html.msl-a11y-scaled .msl-input--area {
	min-block-size: 104px;
}
html.msl-a11y-scaled .msl-stat__value,
html.msl-a11y-scaled .msl-progress__value,
html.msl-a11y-scaled .msl-marquee__item,
html.msl-a11y-scaled .msl-eyebrow__label,
html.msl-a11y-scaled .msl-refcount__value,
html.msl-a11y-scaled .msl-countdown {
	white-space: normal;
}
html.msl-a11y-scaled .msl-header__inner {
	flex-wrap: wrap;
}
html.msl-a11y-scaled .msl-header__actions {
	flex: 1 1 100%;
	flex-wrap: wrap;
	justify-content: flex-end;
	min-inline-size: 0;
}
html.msl-a11y-scaled .msl-eyebrow {
	flex-wrap: wrap;
	justify-content: center;
}
html.msl-a11y-scaled .msl-hero__title {
	line-height: 1.06;
}
html.msl-a11y-scaled .msl-panel__title {
	max-inline-size: none;
}
/* ------------------------------------------------------------------
 * The account control in the header
 * --------------------------------------------------------------- */

.msl-account {
	position: relative;
}
.msl-account__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border: 1px solid var(--msl-hairline);
	border-radius: 999px;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.msl-account__btn:hover {
	background: var(--msl-gold-soft);
}
.msl-account__avatar {
	inline-size: 28px;
	block-size: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.msl-account__avatar--blank {
	background: var(--msl-gold-soft);
}
.msl-account__name {
	font-size: calc(14px * var(--msl-scale, 1));
	font-weight: 600;
	max-inline-size: 10ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.msl-account__menu {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	z-index: 70;
	min-inline-size: 220px;
	padding: 8px;
	border-radius: 18px;
	background: var(--msl-sheet);
	box-shadow: var(--msl-shadow-sheet);
}
.msl-account__menu[hidden] {
	display: none;
}
.msl-account__as {
	margin: 0 0 6px;
	padding: 6px 10px;
	font-size: calc(13px * var(--msl-scale, 1));
	color: var(--msl-muted-2);
}
.msl-account__as strong {
	display: block;
	color: inherit;
}
.msl-account__item {
	display: block;
	inline-size: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 12px;
	background: none;
	color: inherit;
	font: inherit;
	font-size: calc(14px * var(--msl-scale, 1));
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}
.msl-account__item:hover {
	background: var(--msl-gold-soft);
}
/* The header is already tight on a phone; the name is the first thing that
   can go, because the avatar alone still says who is signed in. */
@media (max-width: 720px) {
	.msl-account__name {
		display: none;
	}
}
/* ------------------------------------------------------------------
 * The invitation popup
 * --------------------------------------------------------------- */

.msl-invite {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.msl-invite[hidden] {
	display: none;
}
.msl-invite__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(66 40 24 / 0.46);
	background: color-mix(in oklab, var(--msl-backdrop) 46%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: msl-fade .26s ease both;
	border: 0;
}
.msl-invite__card {
	position: relative;
	inline-size: 100%;
	max-inline-size: 460px;
	max-block-size: 92vh;
	overflow-y: auto;
	padding: 34px 30px 24px;
	border-radius: 34px;
	background: var(--msl-sheet);
	box-shadow: var(--msl-shadow-sheet);
	text-align: center;
	animation: msl-rise .36s var(--msl-ease) both;
}
.msl-invite__close {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 16px;
	inline-size: 34px;
	block-size: 34px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--msl-muted-2);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.msl-invite__close:hover {
	background: var(--msl-gold-soft);
}
.msl-invite__flame {
	display: block;
	inline-size: 44px;
	margin: 0 auto 14px;
}
.msl-invite__title {
	margin: 0 0 10px;
	font-family: var(--msl-font-display);
	font-size: calc(26px * var(--msl-scale, 1));
	line-height: 1.2;
}
.msl-invite__body {
	margin: 0 0 20px;
	color: var(--msl-muted-2);
	font-size: calc(16px * var(--msl-scale, 1));
	line-height: 1.55;
}
.msl-invite__link {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--msl-gold-soft);
	font-weight: 700;
	/* A URL is not Hebrew, and in an RTL paragraph its slashes end up in the
	   wrong places. */
	direction: ltr;
	word-break: break-all;
}
.msl-invite__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-block-end: 8px;
}
.msl-invite__dismiss {
	inline-size: 100%;
}
.msl-linkcard__locked {
	margin: 0 0 14px;
	color: var(--msl-muted-2);
	line-height: 1.5;
}
/* ------------------------------------------------------------------
 * The site menu
 * --------------------------------------------------------------- */

.msl-menu {
	position: relative;
	margin-inline-start: 18px;
}
.msl-menu__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid var(--msl-hairline);
	border-radius: 999px;
	background: none;
	color: inherit;
	font: inherit;
	font-size: calc(14px * var(--msl-scale, 1));
	font-weight: 600;
	cursor: pointer;
}
.msl-menu__toggle:hover,
.msl-menu.is-open .msl-menu__toggle {
	background: var(--msl-gold-soft);
}
/* Three rules drawn with one element, so the button carries no extra markup. */
.msl-menu__bars {
	position: relative;
	inline-size: 16px;
	block-size: 2px;
	border-radius: 2px;
	background: currentcolor;
}
.msl-menu__bars::before,
.msl-menu__bars::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	block-size: 2px;
	border-radius: 2px;
	background: currentcolor;
}
.msl-menu__bars::before { inset-block-start: -5px; }
.msl-menu__bars::after { inset-block-start: 5px; }
.msl-menu__list {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 70;
	min-inline-size: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border-radius: 18px;
	background: var(--msl-sheet);
	box-shadow: var(--msl-shadow-sheet);
}
.msl-menu__list[hidden] {
	display: none;
}
.msl-menu__link {
	display: block;
	padding: 9px 12px;
	border-radius: 12px;
	color: inherit;
	font-size: calc(15px * var(--msl-scale, 1));
	text-decoration: none;
}
.msl-menu__link:hover {
	background: var(--msl-gold-soft);
}
/*
 * An entry that opens a window rather than going somewhere is a button, because
 * that is what it does. It is given the anchor's clothes here so the menu reads
 * as one list.
 */
.msl-page .msl-menu__link--action {
	inline-size: 100%;
	padding: 9px 12px;
	border: 0;
	background: none;
	font: inherit;
	font-size: calc(15px * var(--msl-scale, 1));
	color: inherit;
	text-align: start;
	cursor: pointer;
}
@media (max-width: 720px) {
	.msl-menu {
		margin-inline-start: 10px;
	}
	.msl-menu__word {
		display: none;
	}
}
/* ------------------------------------------------------------------
 * The "about the project" page
 *
 * A reading page, but not a bare one: it belongs to the same site as the
 * campaign and has to look like it. The warmth at the top, the quote set as a
 * card rather than a highlighted line, and the flame that marks each heading
 * are what carry the connection — not a second copy of the hero.
 * --------------------------------------------------------------- */

.msl-main--page {
	position: relative;
	padding-block: 0 88px;
}

/* One soft wash behind the opening, the same warmth the hero's halo gives —
   here as a single gradient, because a reading page should not run a canvas. */
.msl-about__head {
	position: relative;
	margin-block-end: 44px;
	padding-block: 64px 8px;
	text-align: center;
}

.msl-about__head::before {
	content: "";
	position: absolute;
	inset-block-start: -40px;
	inset-inline-start: 50%;
	inline-size: min(760px, 120vw);
	block-size: 420px;
	margin-inline-start: min(-380px, -60vw);
	background: radial-gradient(
		ellipse at 50% 42%,
		oklch(0.90 0.09 78 / 0.34) 0%,
		oklch(0.93 0.06 82 / 0.16) 38%,
		transparent 68%
	);
	pointer-events: none;
	z-index: -1;
}

.msl-about {
	position: relative;
	inline-size: min(100% - (2 * var(--msl-gutter)), 720px);
	margin-inline: auto;
}

.msl-about__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--msl-gold-soft);
	color: var(--msl-ink);
	font-size: calc(13px * var(--msl-scale, 1));
	font-weight: 700;
	letter-spacing: 0.08em;
}

.msl-about__eyebrow::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: var(--msl-flame, var(--msl-amber));
	box-shadow: 0 0 0 4px oklch(0.90 0.13 78 / 0.28);
}

.msl-about__title {
	margin: 0 0 20px;
	font-family: var(--msl-font-display);
	font-size: clamp(32px, 7vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.msl-about__lead {
	margin: 0 auto;
	max-inline-size: 60ch;
	color: var(--msl-muted-2);
	font-size: calc(19px * var(--msl-scale, 1));
	line-height: 1.62;
}

/*
 * The verse.
 *
 * It is the one thing on the page that is not our own words, and it is set as
 * its own object rather than as a highlighted line: a card, a flame above it,
 * and the source underneath in the quiet voice the rest of the site uses for
 * captions.
 */
.msl-verse {
	position: relative;
	margin: 0 0 52px;
	padding: 46px 32px 28px;
	border-radius: 28px;
	background: var(--msl-sheet);
	box-shadow: 0 18px 44px oklch(0.45 0.06 58 / 0.10);
	text-align: center;
}

.msl-verse::before {
	content: "";
	position: absolute;
	inset-block-start: -13px;
	inset-inline-start: 50%;
	inline-size: 26px;
	block-size: 26px;
	margin-inline-start: -13px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		oklch(0.985 0.04 92) 0%,
		oklch(0.90 0.15 82) 42%,
		oklch(0.78 0.17 52 / 0.5) 68%,
		transparent 78%
	);
	box-shadow: 0 0 22px oklch(0.88 0.15 76 / 0.55);
}

.msl-verse__text {
	margin: 0 0 14px;
	font-family: var(--msl-font-display);
	font-size: calc(21px * var(--msl-scale, 1));
	line-height: 1.85;
}

.msl-verse__source {
	color: var(--msl-muted-3);
	font-size: calc(14px * var(--msl-scale, 1));
	letter-spacing: 0.04em;
}

.msl-about__block {
	margin-block-end: 38px;
	padding-block-end: 38px;
	border-block-end: 1px solid var(--msl-hairline, oklch(0.88 0.02 70));
}

.msl-about__block:last-of-type {
	border-block-end: 0;
}

/* Each heading is lit. It is the same mark the eyebrow carries, and it is what
   makes a run of three sections read as part of this site rather than as a
   chapter list. */
.msl-about__heading {
	position: relative;
	margin: 0 0 14px;
	padding-inline-start: 26px;
	font-family: var(--msl-font-display);
	font-size: calc(26px * var(--msl-scale, 1));
	line-height: 1.24;
}

.msl-about__heading::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.46em;
	inline-size: 11px;
	block-size: 11px;
	border-radius: 50%;
	background: radial-gradient(circle, oklch(0.985 0.04 92) 0%, oklch(0.90 0.15 80) 50%, oklch(0.76 0.17 50 / 0.6) 78%, transparent 88%);
	box-shadow: 0 0 14px oklch(0.88 0.15 76 / 0.6);
}

.msl-about__body p {
	margin: 0 0 15px;
	font-size: calc(17px * var(--msl-scale, 1));
	line-height: 1.78;
}

.msl-about__body p:last-child {
	margin-block-end: 0;
}

/* The way back to the campaign, given the weight of an invitation. */
.msl-about__foot {
	margin-block-start: 8px;
	padding: 36px 28px;
	border-radius: 28px;
	background: linear-gradient(
		180deg,
		oklch(0.95 0.045 82 / 0.6) 0%,
		oklch(0.97 0.02 84 / 0.35) 100%
	);
	text-align: center;
}

@media (max-width: 620px) {
	.msl-main--page {
		padding-block-end: 64px;
	}

	.msl-about__head {
		padding-block-start: 40px;
		margin-block-end: 34px;
	}

	.msl-about__lead {
		font-size: calc(17px * var(--msl-scale, 1));
	}

	.msl-page .msl-verse {
		margin-block-end: 40px;
		padding: 40px 22px 24px;
		border-radius: 24px;
	}

	.msl-verse__text {
		font-size: calc(18px * var(--msl-scale, 1));
		line-height: 1.8;
	}

	.msl-about__block {
		margin-block-end: 30px;
		padding-block-end: 30px;
	}

	.msl-page .msl-about__heading {
		font-size: calc(22px * var(--msl-scale, 1));
		padding-inline-start: 22px;
	}

	.msl-about__body p {
		font-size: calc(16px * var(--msl-scale, 1));
	}

	.msl-about__foot {
		padding: 28px 18px;
	}

	.msl-page .msl-about__eyebrow {
		padding: 5px 14px;
	}
}

/* ------------------------------------------------------------------
 * The candles in the hero
 *
 * Only the keyframes live here. Every measurement of a candle is derived from
 * that candle's own width and is written inline, because a class per candle
 * would be fourteen classes that each apply exactly once.
 * --------------------------------------------------------------- */

.msl-hero__candles {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

/* The field takes no clicks; an individual candle does. */
.msl-hero__candle {
	pointer-events: auto;
}

@keyframes msl-candle-sway {
	0%, 100% { transform: rotate(-2.5deg) scaleY(0.96); }
	50%      { transform: rotate(2.5deg) scaleY(1.07); }
}

@keyframes msl-candle-flick {
	0%, 100% { opacity: 1; transform: scaleX(1) scaleY(1); }
	28%      { opacity: 0.92; transform: scaleX(0.96) scaleY(1.04); }
	61%      { opacity: 1; transform: scaleX(1.03) scaleY(0.98); }
}

@keyframes msl-candle-glow {
	0%, 100% { transform: scale(1); filter: blur(6px); }
	50%      { transform: scale(1.09); filter: blur(7px); }
}

/* The flame's own halo breathes on the same rhythm but keeps its 3px blur —
   it is a much smaller thing than the lit marker and 6px erases it. */
@keyframes msl-candle-halo {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.09); }
}

@keyframes msl-candle-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-11px); }
}

/* Standing still: lit, in place, and not moving. */
@media (prefers-reduced-motion: reduce) {
	.msl-hero__candle,
	.msl-hero__candle * {
		animation: none !important;
	}
}


/* ==========================================================================
   19  Narrow screens: the polish pass
   ========================================================================== */

/*
 * The candles are the hero's atmosphere, and on a phone atmosphere is exactly
 * what crowds out the sentence people came to read. The field thins from the
 * inside out — the columns nearest the headline go first — and what is left is
 * held back so the words win. Nothing is resized: a candle that is legible as a
 * candle at 22px stays one.
 */
@media (max-width: 900px) {
	.msl-hero__candle[data-msl-depth="inner"] {
		display: none;
	}

	.msl-hero__candles {
		opacity: 0.85;
	}
}

@media (max-width: 620px) {
	.msl-hero__candle[data-msl-depth="mid"] {
		display: none;
	}

	.msl-hero__candles {
		opacity: 0.7;
	}
}

/*
 * Touch targets.
 *
 * A finger is not a cursor. These three were each under the 44px that a thumb
 * can reliably hit, and the menu button was the worst of them at sixteen pixels
 * tall — the only way to reach the rest of the site on a phone.
 */
.msl-menu__toggle {
	min-block-size: 44px;
	min-inline-size: 44px;
	justify-content: center;
}

.msl-brand {
	min-block-size: 44px;
	align-items: center;
}

.msl-footer__credit a {
	display: inline-block;
	padding-block: 12px;
}

/* The accessibility widget floats over whatever is at the bottom of the page.
   On a phone that is a panel with a button in it. */
@media (max-width: 620px) {
	.msl-shell > :last-child {
		padding-block-end: 16px;
	}
}

/*
 * Outranking the element reset.
 *
 * `.msl-page p`, `.msl-page h2`, `.msl-page ul` and friends zero every margin
 * and padding, and they do it at a specificity a bare class cannot reach — so
 * a rule like `.msl-countdown { padding: 8px 15px }` was being thrown away
 * without a word. The countdown pill, the counter chip, the personal-link box,
 * the menu and the headings on the about page were all sitting with their text
 * against their own edges. Repeating the page class is what buys the rule back.
 */
.msl-page .msl-countdown {
	padding: 8px 15px;
}

.msl-page .msl-counterchip {
	padding: 10px 20px;
}

.msl-page .msl-marquee__half {
	padding-inline-start: 34px;
}

.msl-page .msl-linkcard__value {
	padding: 16px 18px;
}

.msl-page .msl-menu__list {
	padding: 8px;
}

.msl-page .msl-about__eyebrow {
	padding: 6px 16px;
}

.msl-page .msl-verse {
	padding: 46px 32px 28px;
}

.msl-page .msl-about__heading {
	padding-inline-start: 26px;
}

.msl-page .msl-account__as {
	padding: 6px 10px;
}

/*
 * The same reset, the other half.
 *
 * `margin: 0` on every p, h1-h3, ul, ol and figure was eating the vertical
 * rhythm of the join form, the share card, the result screen and the about
 * page — twenty-one rules that were written, read as correct, and never
 * applied. Measured, not assumed: each of these computes to zero without the
 * page class in front of it.
 */
.msl-page .msl-visually-hidden {
	margin: -1px;
}

.msl-page .msl-progress__note {
	margin-block-start: 16px;
}

.msl-page .msl-linkcard__value {
	margin-block-start: 8px;
}

.msl-page .msl-refcount__label {
	margin-block-start: 4px;
}

.msl-page .msl-refcount__next {
	margin-block-start: 10px;
}

.msl-page .msl-step__title {
	margin-block-end: 6px;
}

.msl-page .msl-step__sub {
	margin-block-end: 22px;
}

.msl-page .msl-field {
	margin-block-start: 16px;
}

.msl-page .msl-note {
	margin-block-start: 12px;
}

.msl-page .msl-remind__sub {
	margin-block-start: 5px;
}

.msl-page .msl-formerror {
	margin-block-start: 16px;
}

.msl-page .msl-result__link-label {
	margin-block-end: 8px;
}

.msl-page .msl-result__refcount {
	margin-block-start: 14px;
}

.msl-page .msl-result__next {
	margin-block-start: 9px;
}

.msl-page .msl-invite__title {
	margin: 0 0 10px;
}

.msl-page .msl-invite__body {
	margin: 0 0 20px;
}

.msl-page .msl-about__eyebrow {
	margin: 0 0 14px;
}

.msl-page .msl-about__title {
	margin: 0 0 20px;
}

.msl-page .msl-about__lead {
	margin: 0 auto;
}

.msl-page .msl-verse {
	margin: 0 0 52px;
}

.msl-page .msl-about__heading {
	margin: 0 0 14px;
}

/* ------------------------------------------------------------------
 * Narrow screens, continued
 * --------------------------------------------------------------- */

/*
 * The options.
 *
 * In the design they are a two-column grid, and stacking the dot above the
 * label is what makes a square card read. On a phone the grid is one column, so
 * that same card becomes a full-width block 85px tall holding one short line —
 * nine of them is a lot of scrolling for a list you are meant to skim. One
 * column gets one row: dot and label on the same line.
 */
@media (max-width: 620px) {
	.msl-option__label {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 15px 16px;
	}

	.msl-option__dot {
		flex: 0 0 auto;
	}
}

/*
 * The accessibility widget floats over the bottom corner, and the sheets put
 * their one action in exactly that corner. On a phone the two met, and the
 * widget was sitting on the button. While something is open the widget steps
 * up out of the way — moved rather than hidden, because hiding the
 * accessibility control when a dialog opens is the opposite of the point.
 */
@media (max-width: 620px) {
	.msl-page.is-locked .msl-a11y {
		inset-block-end: 88px;
	}
}

/*
 * "You can skip all of it."
 *
 * Nothing on this step is required, and a form that does not say so is a form
 * people fill in out of habit — or abandon. Set as a quiet aside rather than a
 * warning: it is permission, not an instruction.
 */
.msl-page .msl-optional {
	margin-block: -14px 20px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--msl-gold-soft);
	color: var(--msl-ink);
	font-size: calc(14px * var(--msl-scale, 1));
	line-height: 1.5;
}

/* ==========================================================================
   20  Coming into view
   ========================================================================== */

/*
 * Sections settle in as they are reached.
 *
 * Deliberately small: eighteen pixels and a fade. A page about candles being
 * lit one at a time should feel like things arriving, not like things being
 * thrown at the screen — and anything larger fights the scroll on a phone,
 * where the whole section is already in view by the time it starts.
 *
 * The hidden state only ever exists once the script has confirmed it can undo
 * it. Without JavaScript, nothing here applies and the page is simply visible.
 */
.msl-js [data-msl-rise] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.7s var(--msl-ease, cubic-bezier(.2, .8, .2, 1)),
		transform 0.7s var(--msl-ease, cubic-bezier(.2, .8, .2, 1));
	will-change: opacity, transform;
}

.msl-js [data-msl-rise].is-in {
	opacity: 1;
	transform: none;
}

/* Children of a group arrive in order rather than all at once. The stagger is
   capped: past the sixth the eye reads it as a delay, not as a sequence. */
.msl-js [data-msl-rise-group] > * {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.6s var(--msl-ease, cubic-bezier(.2, .8, .2, 1)),
		transform 0.6s var(--msl-ease, cubic-bezier(.2, .8, .2, 1));
}

.msl-js [data-msl-rise-group].is-in > * {
	opacity: 1;
	transform: none;
}

.msl-js [data-msl-rise-group].is-in > :nth-child(1) { transition-delay: 0ms; }
.msl-js [data-msl-rise-group].is-in > :nth-child(2) { transition-delay: 70ms; }
.msl-js [data-msl-rise-group].is-in > :nth-child(3) { transition-delay: 140ms; }
.msl-js [data-msl-rise-group].is-in > :nth-child(4) { transition-delay: 210ms; }
.msl-js [data-msl-rise-group].is-in > :nth-child(5) { transition-delay: 280ms; }
.msl-js [data-msl-rise-group].is-in > :nth-child(n+6) { transition-delay: 340ms; }

@media (prefers-reduced-motion: reduce) {
	.msl-js [data-msl-rise],
	.msl-js [data-msl-rise-group] > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* What the personal link has actually brought in. The number is the point, so
   it carries the weight and the label sits under it. */
.msl-page .msl-invite__count {
	margin: 0 0 18px;
	padding: 14px;
	border-radius: 16px;
	background: oklch(0.95 0.03 82 / 0.55);
	text-align: center;
}

.msl-invite__count-value {
	display: block;
	font-family: var(--msl-font-display);
	font-size: calc(32px * var(--msl-scale, 1));
	line-height: 1.1;
	color: var(--msl-ink);
}

.msl-invite__count-label {
	display: block;
	margin-block-start: 4px;
	color: var(--msl-muted-2);
	font-size: calc(14px * var(--msl-scale, 1));
}

/* A section reached from the menu has to stop below the sticky header, not
   behind it. One line per anchor in MSL_Theme::NAV_TARGETS. */
#msl-stage,
#msl-zmanim,
#msl-stats,
#msl-map,
#msl-referral {
	scroll-margin-block-start: 96px;
}

@media (max-width: 720px) {
	#msl-stage,
	#msl-zmanim,
	#msl-stats,
	#msl-map,
	#msl-referral {
		scroll-margin-block-start: 150px;
	}
}

/* ------------------------------------------------------------------
 * The reminder window
 *
 * Shares the invitation window's frame, because it is the same object on the
 * page in a different moment. What it adds is a form.
 * --------------------------------------------------------------- */

.msl-page .msl-remindbox__chosen {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--msl-gold-soft);
	font-size: calc(15px * var(--msl-scale, 1));
}

.msl-remindbox__chosen strong {
	margin-inline-start: 6px;
}

.msl-remindbox {
	text-align: start;
}

.msl-page .msl-remindbox .msl-field {
	margin-block-start: 12px;
}

.msl-page .msl-remindbox__done {
	margin: 4px 0 8px;
	padding: 14px;
	border-radius: 14px;
	background: var(--msl-gold-soft);
	font-size: calc(15px * var(--msl-scale, 1));
	line-height: 1.55;
}

/* The trap field: present for a script, gone for a person. */
.msl-honeypot {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/*
 * The Shabbat times card.
 *
 * Four facts read off a calendar, so it is laid out as one: a row of columns on
 * a wide screen, a two-column grid on a phone, and a pair of rules between them
 * rather than four separate cards — these values belong to each other, and four
 * boxes would say they do not.
 *
 * Every margin here repeats `.msl-page` for the reason recorded above the
 * remediation block: the element reset outranks a bare class.
 */
.msl-zmanim {
	margin-block-start: 60px;
	padding: 26px 30px;
	border-radius: 26px;
	background: var(--msl-surface);
	border: 1px solid var(--msl-border);
	box-shadow: var(--msl-shadow-card);
}
.msl-zmanim__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 16px;
	margin-block-end: 18px;
}
.msl-page .msl-zmanim__title {
	margin: 0;
	font-family: var(--msl-font-display);
	font-weight: 800;
	font-size: calc(19px * var(--msl-scale, 1));
	letter-spacing: -0.02em;
	color: var(--msl-ink);
}
.msl-zmanim__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px 20px;
	margin: 0;
}
.msl-zmanim__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-inline-size: 0;
	padding-inline-start: 16px;
	border-inline-start: 2px solid var(--msl-warm);
}
.msl-page .msl-zmanim__label {
	margin: 0;
	font-size: calc(13.5px * var(--msl-scale, 1));
	font-weight: 500;
	color: var(--msl-muted);
}
.msl-page .msl-zmanim__value {
	margin: 0;
	font-family: var(--msl-font-display);
	font-weight: 800;
	font-size: calc(clamp(18px, 2vw, 22px) * var(--msl-scale, 1));
	line-height: 1.25;
	color: var(--msl-ink);
	/*
	 * The two times are compared with each other at a glance, so their digits
	 * have to sit in the same columns.
	 */
	font-variant-numeric: tabular-nums;
	text-wrap: balance;
}
.msl-page .msl-zmanim__holiday {
	margin: 16px 0 0;
	padding: 7px 14px;
	border-radius: 999px;
	display: inline-block;
	background: var(--msl-gold-soft);
	color: var(--msl-ink);
	font-size: calc(14px * var(--msl-scale, 1));
	font-weight: 600;
}
.msl-page .msl-zmanim__note {
	margin: 14px 0 0;
	font-size: calc(13.5px * var(--msl-scale, 1));
	line-height: 1.5;
	color: var(--msl-muted-2);
}

/*
 * Values that come from an API rather than from a content field. The language
 * toggle has no dictionary entry to swap them with, so both are rendered and
 * the page class decides which one is seen.
 */
.msl-page--he [data-msl-only="en"],
.msl-page--en [data-msl-only="he"] {
	display: none;
}

@media (max-width: 860px) {
	.msl-zmanim {
		margin-block-start: 44px;
		padding: 22px;
		border-radius: 22px;
	}
	.msl-zmanim__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 380px) {
	.msl-zmanim__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * Choosing a city.
 *
 * A <details> so it opens and closes without a line of script, and so the form
 * inside it is a working GET when the script never runs. The marker is replaced
 * with our own chevron: `display: inline-flex` on a summary drops the native
 * triangle in some browsers and keeps it in others, and a disclosure that looks
 * different per browser reads as broken.
 */
.msl-placepick {
	position: relative;
}
.msl-placepick__toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--msl-border);
	background: var(--msl-surface-warm);
	color: var(--msl-body);
	font-size: calc(13.5px * var(--msl-scale, 1));
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	/* Comfortably past the 24px minimum, and past 40px once the padding counts. */
	min-block-size: 40px;
	box-sizing: border-box;
}
.msl-placepick__toggle::-webkit-details-marker {
	display: none;
}
.msl-placepick__toggle::after {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	/*
	 * Physical borders on purpose. A caret for a panel that opens downwards
	 * means the same thing in both directions, and the logical pair tilts it
	 * the other way in RTL for no reason anyone reading it would understand.
	 */
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .55;
}
.msl-placepick[open] .msl-placepick__toggle::after {
	transform: translateY(1px) rotate(225deg);
}
.msl-placepick__toggle:hover {
	background: var(--msl-warm);
	color: var(--msl-ink);
}
.msl-placepick__form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 10px;
	margin-block-start: 12px;
	padding: 14px;
	border-radius: 18px;
	background: var(--msl-surface-warm);
	border: 1px solid var(--msl-border);
}
.msl-page .msl-placepick__label {
	display: block;
	margin: 0 0 5px;
	font-size: calc(13px * var(--msl-scale, 1));
	color: var(--msl-muted);
}
.msl-placepick__select {
	min-inline-size: 190px;
	min-block-size: 44px;
	padding: 9px 12px;
	border-radius: 12px;
	border: 1px solid var(--msl-border);
	background: var(--msl-surface);
	color: var(--msl-ink);
	font: inherit;
	font-size: calc(15px * var(--msl-scale, 1));
}
.msl-page .msl-placepick__apply {
	min-block-size: 44px;
	padding-inline: 18px;
	font-size: calc(14.5px * var(--msl-scale, 1));
}

/*
 * Above phone width the panel floats under its own button instead of sitting in
 * the flow. Two reasons: opening it no longer reflows the card underneath, and
 * the <details> keeps the width of its summary, so the button stays where the
 * header put it rather than stretching across the card.
 */
@media (min-width: 521px) {
	.msl-placepick__form {
		position: absolute;
		inset-block-start: calc(100% + 8px);
		inset-inline-end: 0;
		z-index: 4;
		margin-block-start: 0;
		flex-wrap: nowrap;
		min-inline-size: 320px;
		background: var(--msl-surface);
		box-shadow: var(--msl-shadow-card);
	}
}

@media (max-width: 520px) {
	.msl-zmanim__head {
		align-items: stretch;
	}
	.msl-placepick__form,
	.msl-placepick__select,
	.msl-page .msl-placepick__apply {
		inline-size: 100%;
	}
	.msl-placepick__select {
		min-inline-size: 0;
	}
}
