/* ==========================================================================
   Header, hero & footer 2026 — Figma "Nav + Hero + Footer" (1273:6727), mobile drawer (1360:4425).
   Loaded only when the switch is On (includes/redesign-2026.php). Every rule is scoped to .ssp-r26 / .r26-*.
   ========================================================================== */

.ssp-r26 {
	--r26-ink: #1d1f2e;
	--r26-yellow: #ffee34;
	--r26-purple: #4d2467;
	--r26-purple-bg: #e5c3fb;
	--r26-green: #2d5a46;
	--r26-green-bg: #d0ffea;
	--r26-blue: #123555;
	--r26-blue-bg: #88c7ff;
	--r26-footer: #2e2d2d;
	--r26-bar-h: 50px;
}

.r26-header, .r26-header *, .r26-drawer, .r26-drawer *, .r26-hero, .r26-hero *,
.r26-cta, .r26-cta *, .r26-footer, .r26-footer * { box-sizing: border-box; }

.ssp-r26 .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------ header bar */

body.ssp-r26 #masthead.r26-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--r26-ink);
	box-shadow: none;
	padding-top: env(safe-area-inset-top, 0px);
	font-family: var(--font-family-primary);
	color: var(--r26-ink);
}
body.admin-bar.ssp-r26 #masthead.r26-header { top: 32px; }

.r26-bar {
	display: flex;
	align-items: stretch;
	height: var(--r26-bar-h);
}

.r26-logo {
	flex: 0 0 49px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--r26-yellow);
}
.r26-logo__s {
	width: 49px;
	height: 50px;
	background: url("https://shortstoryproject.com/wp-content/uploads/2025/06/yellow_logo.png") center / contain no-repeat;
}

.r26-title {
	display: flex;
	align-items: center;
	padding-inline: 26px 42px;
	font-family: var(--font-family-secondary);
	font-weight: 900;
	font-size: 22px;
	line-height: 1;
	color: var(--r26-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
}

/* Hebrew: the site's own Hebrew header type (production .header-title-text / .nav-link): Margaliot 400 (the Medium file,
   there is no 900 cut, so 900 picked the Bold file and read as a different face) 24px with 1px tracking; menu Assistant 500
   19.2px with 1px tracking. */
html[lang|="he"] .r26-title { font-weight: 400; font-size: 24px; letter-spacing: 1px; }
html[lang|="he"] .r26-nav__list > li > a { font-size: 1.2rem; letter-spacing: 1px; }

.r26-nav { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.r26-nav__list {
	display: flex;
	align-items: stretch;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.r26-nav__list > li { display: flex; align-items: stretch; margin: 0; }
.r26-nav__list > li > a {
	position: relative;
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	color: var(--r26-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
	padding: 0 1px;
}
.r26-nav__list > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 5px;
	background: #2b2b2b;
	transform: scaleX(0);
	transition: transform .2s ease;
}
.r26-nav__list > li > a:hover::after,
.r26-nav__list > li > a:focus-visible::after,
.r26-nav__list > li.current-menu-item > a::after,
.r26-nav__list > li.current-menu-ancestor > a::after,
.r26-nav__list > li.current_page_item > a::after { transform: scaleX(1); }
.r26-nav__list > li > a:hover { transform: translateY(-3px); }
.r26-nav__list > li > a:hover::after { bottom: -4px; }

.r26-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-inline-start: auto;
}

.r26-unlock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 18px;
	border-radius: 300px;
	background: linear-gradient(90deg, #f0dff1 0%, #f3e1f6 40%, #e5c3fb 100%);
	color: var(--r26-purple) !important;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter .2s ease, transform .2s ease;
}
.r26-unlock svg { width: 16px; height: 13px; flex: 0 0 auto; }
.r26-unlock:hover { filter: brightness(.96); transform: translateY(-1px); }

.r26-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--r26-ink) !important;
	cursor: pointer;
}
.r26-icon-btn svg { width: 24px; height: 24px; }

.r26-user--in {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--r26-ink) !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
}
.r26-user__name { display: none; }
.r26-hero__typing-lead.r26-mobile-lead { display: none; }
.r26-user__icon { display: inline-flex; color: #c7a3e8; }
.r26-user__icon svg { width: 22px; height: 22px; }
.r26-user--login .r26-user__icon { color: var(--r26-ink); }

/* language dropdown */
.r26-lang { position: relative; display: flex; align-items: center; align-self: stretch; }
.r26-lang__btn { align-self: center; }
.r26-lang.is-open::after {
	content: "";
	position: absolute;
	inset-inline: -10px;
	bottom: -1px;
	height: 5px;
	background: #2b2b2b;
}
.r26-lang__menu {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: -40px;
	min-width: 118px;
	margin: 0;
	padding: 18px 24px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(29, 31, 46, .12);
	z-index: 5;
}
.r26-lang__menu[hidden] { display: none; }

/* Avishai QA 10/11 (desktop p.6): the account / language / search icons get the same bar as the menu links on hover,
   rising from the bottom edge of the header. */
@media (hover: hover) and (min-width: 1025px) {
	.r26-actions > .r26-user.r26-icon-btn { position: relative; align-self: stretch; height: auto; }
	.r26-actions > .r26-user.r26-icon-btn::after,
	.r26-lang.r26-desktop::before,
	.r26-search-btn::before {
		content: "";
		position: absolute;
		inset-inline: -10px;
		bottom: -1px;
		height: 5px;
		background: #2b2b2b;
		transform: scaleY(0);
		transform-origin: bottom;
		transition: transform .2s ease;
		pointer-events: none;
	}
	.r26-search-btn::before { inset-inline: 0; }
	.r26-actions > .r26-user.r26-icon-btn:hover::after,
	.r26-lang.r26-desktop:hover::before,
	.r26-search-btn:hover::before { transform: scaleY(1); }
	/* Avishai 11/11 (desktop p.5): like the text links, the icon also lifts a little while its bar shows */
	.r26-actions > .r26-user.r26-icon-btn svg,
	.r26-lang.r26-desktop .r26-lang__btn svg,
	.r26-search-btn svg { transition: transform .2s ease; }
	.r26-actions > .r26-user.r26-icon-btn:hover svg,
	.r26-lang.r26-desktop:hover .r26-lang__btn svg,
	.r26-search-btn:hover svg { transform: translateY(-3px); }
}
.r26-lang__menu li + li { margin-top: 8px; }
.r26-lang__menu a {
	color: var(--r26-ink) !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 400;
	white-space: nowrap;
}
.r26-lang__menu a.is-current { font-weight: 700; }
.r26-lang__menu a { display: inline-block; transition: transform .2s ease; }
.r26-lang__menu a:hover { text-decoration: underline !important; transform: translateY(-2px); }

/* search button + panel */
.r26-search-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 49px;
	padding: 0;
	border: 0;
	background: var(--r26-yellow);
	color: var(--r26-ink);
	cursor: pointer;
}
.r26-search-btn svg { width: 24px; height: 24px; }
.r26-search-btn[aria-expanded="true"]::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 5px;
	background: #2b2b2b;
}

.r26-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 10px; /* QA 10/11 p.8: same 10px from the edge as from the header bar */
	width: min(745px, calc(100vw - 30px));
	padding: 48px 40px calc(48px + var(--r26-dd-room, 0px));
	background: var(--r26-yellow);
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(29, 31, 46, .12);
}
.r26-search-panel[hidden] { display: none; }

.r26-search-field {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	width: 100%;
}
.r26-search-field input[type="search"] {
	width: 100%;
	height: 52px;
	padding: 0 56px 0 24px;
	padding-inline: 24px 56px;
	border: 1.5px solid var(--r26-ink);
	border-radius: 30px;
	background: #fff;
	color: var(--r26-ink);
	font-family: var(--font-family-primary);
	font-size: 20px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
/* QA 10/11 p.9: no white ring around the black stroke when focused */
.r26-search-field input[type="search"]:focus,
.r26-search-field input[type="search"]:focus-visible,
.r26-hero__search input[type="search"]:focus,
.r26-hero__search input[type="search"]:focus-visible { outline: none !important; box-shadow: none !important; }
.r26-search-field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.r26-search-field input::placeholder { color: var(--r26-ink); opacity: .9; }
.r26-search-field button {
	position: absolute;
	inset-inline-end: 18px;
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--r26-ink);
	cursor: pointer;
}
.r26-search-field button svg { width: 20px; height: 20px; }

/* Meilisearch live dropdown (plugin ssp-meilisearch) dressed like the Figma "Search results" card */
.ssp-r26 .ssp-meili-dd {
	border: 0;
	border-radius: 24px;
	box-shadow: 0 12px 30px rgba(29, 31, 46, .14);
	font-family: var(--font-family-primary);
	padding: 8px 0;
}
.ssp-r26 .ssp-meili-dd .ssp-group { background: none; border: 0; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; color: var(--r26-ink); padding: 18px 28px 6px; }
.ssp-r26 .ssp-meili-dd .ssp-row { padding: 12px 28px; border-color: #e6e6e6; }
.ssp-r26 .ssp-meili-dd .ssp-row:hover, .ssp-r26 .ssp-meili-dd .ssp-row.active { background: #fffbd6; }
.ssp-r26 .ssp-meili-dd .ssp-title { font-size: 18px; font-weight: 500; }
.ssp-r26 .ssp-meili-dd em { background: var(--r26-yellow); }

.r26-mobile { display: none !important; }

/* ------------------------------------------------------------------ mobile bar + drawer */

.r26-drawer[hidden] { display: none; }
/* Opened by tap / click: the X gets focus for screen readers but shows no ring; from the keyboard it keeps a clear one. */
.r26-drawer.is-pointer .r26-drawer__close:focus { outline: none !important; box-shadow: none !important; }
.r26-drawer:not(.is-pointer) .r26-drawer__close:focus-visible { outline: 2px solid var(--r26-ink); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 1024px) {
	.r26-desktop, .r26-title, .r26-nav { display: none !important; }
	.r26-mobile { display: inline-flex !important; }
	body.ssp-r26 #masthead.r26-header { border-bottom: 0; background: rgba(255, 255, 255, .55); }
	/* Avishai 11/11: the bar is 50px (the yellow logo square), and its pill and icons grow with it (41 -> 50 = x1.22) */
	.ssp-r26 { --r26-bar-h: 50px; }
	.r26-logo { flex-basis: 50px; }
	.r26-logo__s { width: 50px; height: 50px; }
	.r26-actions { gap: 18px; padding-inline-end: 16px; }
	.r26-unlock { height: 34px; padding: 0 18px; font-size: 18px; }
	.r26-unlock svg { width: 18px; height: 15px; }
	/* Figma mobile 1360:4473 / 1360:4522: logged in = avatar + first name next to a crownless "Unlock all";
	   premium = no pill, avatar + "Hello <name>" (Avishai 15/11) */
	.r26-actions > .r26-user--free .r26-user__hello { display: none; }
	.r26-actions > .r26-user--free .r26-user__name { display: inline; }
	.r26-actions > .r26-user--in { font-size: 16px; gap: 6px; }
	.r26-header--in .r26-unlock svg { display: none; }
	.r26-hero__typing-lead.r26-desktop-lead { display: none; }
	.r26-hero__typing-lead.r26-mobile-lead { display: inline; }
	.r26-actions .r26-icon-btn { width: 32px; height: 32px; }
	.r26-actions .r26-icon-btn svg, .r26-burger svg { width: 28px; height: 28px; }
	.r26-actions .r26-user__icon svg { width: 26px; height: 26px; }

	.r26-drawer {
		position: fixed;
		inset: 0;
		z-index: 10002;
		font-family: var(--font-family-primary);
		color: var(--r26-ink);
	}
	.r26-drawer__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(29, 31, 46, .5);
		-webkit-backdrop-filter: blur(8px); /* QA 10/11 mobile p.12: background blur, not only darkened */
		backdrop-filter: blur(8px);
		opacity: 0;
		transition: opacity .25s ease;
	}
	.r26-drawer__panel {
		position: relative;
		z-index: 1;
		max-height: calc(100% - 60px);
		overflow-y: auto;
		padding: calc(10px + env(safe-area-inset-top, 0px)) 0 36px;
		background: #fff;
		border-end-start-radius: 30px;
		border-end-end-radius: 30px;
		transform: translateY(-100%);
		transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	}
	.r26-drawer.is-open .r26-drawer__panel { transform: none; }
	.r26-drawer.is-open .r26-drawer__backdrop { opacity: 1; }

	.r26-drawer__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 64px;
		margin-top: 16px;
		padding-inline: 30px 30px;
	}
	.r26-drawer__top-end { display: flex; align-items: center; gap: 28px; }
	.r26-drawer .r26-user { display: inline-flex; align-items: center; gap: 8px; color: var(--r26-ink) !important; text-decoration: none !important; font-size: 16px; font-weight: 500; }
	.r26-drawer .r26-lang__menu { inset-inline-end: auto; inset-inline-start: -14px; top: calc(100% + 6px); }
	.r26-drawer .r26-lang.is-open::after { inset-inline: -8px; bottom: -14px; }

	.r26-drawer__search {
		margin-top: 12px;
		padding: 22px 16px calc(22px + var(--r26-dd-room, 0px));
		background: var(--r26-yellow);
	}
	.r26-drawer__search .r26-search-field input[type="search"] { height: 52px; font-size: 16px; padding-inline: 20px 48px; }
	.r26-drawer__search-close { display: none; }

	/* Avishai 11/11 (Figma 1360:4621): tapping the drawer search turns the yellow band into a full-screen layer that
	   drops from the top; the field stays at the top, the live results open under it, and a round X at the bottom closes it.
	   (The Meilisearch dropdown lives on <body> with z-index 99999, so it shows above this layer.) */
	.r26-drawer.is-searching .r26-drawer__search {
		position: fixed;
		inset: 0;
		z-index: 5;
		margin: 0;
		padding: calc(40px + env(safe-area-inset-top, 0px)) 20px 0;
		animation: r26-search-drop .3s cubic-bezier(.2, .8, .2, 1) both;
	}
	body.admin-bar .r26-drawer.is-searching .r26-drawer__search { padding-top: 86px; }
	.r26-drawer.is-searching .r26-drawer__search-close {
		position: fixed;
		left: 50%;
		bottom: calc(32px + env(safe-area-inset-bottom, 0px));
		z-index: 100000;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		margin-left: -28px;
		padding: 0;
		border: 1.5px solid var(--r26-ink);
		border-radius: 50%;
		background: #fff;
		color: var(--r26-ink);
		cursor: pointer;
	}
	.r26-drawer.is-searching .r26-drawer__search-close svg { width: 22px; height: 22px; }
	body.r26-searching-m .ssp-meili-dd { width: calc(100vw - 40px) !important; left: 20px !important; max-height: calc(100vh - 260px); }
	@keyframes r26-search-drop { from { transform: translateY(-100%); } to { transform: none; } }

	.r26-drawer__nav { padding: 30px 38px 8px; }
	.r26-drawer__list { margin: 0; padding: 0; list-style: none; }
	.r26-drawer__list li { margin: 0 0 24px; line-height: 1.2; }
	.r26-drawer__list a {
		color: var(--r26-ink) !important;
		text-decoration: none !important;
		font-family: var(--font-family-primary);
		font-size: 20px;
		font-weight: 500;
	}
	.r26-drawer__list .current-menu-item > a { text-decoration: underline !important; text-underline-offset: 6px; }

	.r26-social--drawer { padding-inline: 32px; margin-top: 10px; }
	.r26-social--drawer a { width: 45px !important; height: 45px !important; background: #7a7a7a !important; }
	.r26-social--drawer a svg { width: 20px; height: 20px; }

	html.r26-lock, html.r26-lock body { overflow: hidden; }
	body.admin-bar .r26-drawer__panel { padding-top: 46px; }
}

/* ------------------------------------------------------------------ hero */

.r26-hero {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	min-height: 764px;
	padding: 24px 0 24px; /* Avishai 11/11: tighter so the larger slider fits one screen */
	background: var(--r26-hero-bg) center / cover no-repeat, #f3d9e8;
	display: flex;
	flex-direction: column;
	font-family: var(--font-family-primary);
	color: #000;
}
.r26-hero__globe {
	position: absolute;
	top: 30px;
	inset-inline-end: -198px;
	/* globe-2026.svg = the whole globe 1553x1554 (Avishai Drive 11/11, replaces the 10/11 top crop that ended mid-hero);
	   1297px keeps the reviewed scale, so it now runs past the bottom of the hero and the hero's overflow cuts it there */
	width: 1297px;
	height: auto;
	max-width: none;
	opacity: .8;
	pointer-events: none;
}
[dir="rtl"] .r26-hero__globe { transform: scaleX(-1); }

.r26-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-inline: 32px;
	flex: 1 1 auto;
}

.r26-hero__text { flex: 0 1 560px; }
/* Avishai 11/11 (reverses QA 10/11 p.2): the title and subtitle sit slightly inward of the search field's edge
   (right in English, left in Hebrew), not flush with it */
/* (scoped under .r26-hero__text so the later `margin:` shorthands of the title and subtitle do not reset it) */
.r26-hero__text .r26-hero__title, .r26-hero__text .r26-hero__sub { margin-inline-start: 16px; }
.r26-hero__title {
	margin: 0 0 32px;
	font-family: var(--font-family-primary);
	font-size: 64px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	color: #000;
}
.r26-hero__sub {
	max-width: 440px;
	margin: 0 0 44px;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--r26-ink);
}

.r26-hero__search {
	position: relative;
	width: 433px;
	max-width: 100%;
	height: 52px;
}
.r26-hero__search input[type="search"] {
	width: 100%;
	height: 100%;
	padding-inline: 24px 52px;
	border: 1.5px solid var(--r26-ink);
	border-radius: 30px;
	background: rgba(255, 255, 255, .3); /* QA 10/11 p.4: translucent white, as in Figma */
	color: var(--r26-ink);
	font-family: var(--font-family-primary);
	font-size: 18px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background .2s ease, box-shadow .2s ease;
}
/* hover: a little less transparent and the stroke 1px heavier (inset, so the text does not move); never opaque white */
.r26-hero__search input[type="search"]:hover { background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px var(--r26-ink) !important; }
.r26-hero__search input[type="search"]:focus { background: rgba(255, 255, 255, .7); }
.r26-hero__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.r26-hero__typing {
	position: absolute;
	inset-inline-start: 25px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: calc(100% - 80px);
	overflow: hidden;
	white-space: nowrap;
	font-size: 18px;
	color: var(--r26-ink);
	pointer-events: none;
}
.r26-hero__typing-word { font-weight: 700; }
.r26-hero__caret {
	display: inline-block;
	width: 2px;
	height: 23px;
	margin-inline-start: -2px; /* QA 10/11 p.3: half the space between the word and the caret (5px gap - 2px) */
	background: #a24bd6;
	animation: r26-blink 1s steps(1) infinite;
}
.r26-hero__search.is-typing-off .r26-hero__typing { visibility: hidden; }
.r26-hero__search button {
	position: absolute;
	top: 50%;
	inset-inline-end: 22px;
	transform: translateY(-50%);
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--r26-ink);
	cursor: pointer;
}
.r26-hero__search button svg { width: 18px; height: 18px; }
@keyframes r26-blink { 50% { opacity: 0; } }

/* phone stage */
.r26-hero__stage {
	position: relative;
	flex: 0 0 auto;
	width: 620px;
	height: 520px;
	margin-inline-end: -40px;
}
.r26-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
}
.r26-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }

.r26-phone {
	position: absolute;
	top: 25px;
	left: 50%;
	width: 300px;
	height: 472px;
	margin-left: -150px;
	border-radius: 34px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(77, 36, 103, .16), 0 4px 14px rgba(29, 31, 46, .08);
}
.r26-phone__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.r26-phone__media--poster { object-fit: contain; background: #fff; }
.r26-phone--bare {
	top: -12px;
	width: 433px;
	height: 557px;
	margin-left: -216px;
	border-radius: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}
.r26-phone--bare .r26-phone__media--poster { background: none; }

.r26-tag {
	position: absolute;
	display: inline-flex;
	align-items: stretch;
	height: 47px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 14px 24px rgba(29, 31, 46, .18);
	transform: translateY(14px) scale(.96);
	opacity: 0;
	transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease;
}
.r26-slide.is-active .r26-tag { transform: none; opacity: 1; }
.r26-slide.is-active .r26-tag--p2 { transition-delay: .12s; }
.r26-slide.is-active .r26-tag--p3 { transition-delay: .24s; }
.r26-tag__icon { display: flex; align-items: center; justify-content: center; width: 52px; color: #fff; }
.r26-tag__icon svg { width: 24px; height: 24px; }
.r26-tag__label {
	display: flex;
	align-items: center;
	padding: 0 16px 0 14px;
	font-family: var(--font-family-secondary);
	font-style: italic;
	font-size: 24px;
	line-height: 1;
	white-space: nowrap;
}
.r26-tag--purple .r26-tag__icon { background: var(--r26-purple); }
.r26-tag--purple .r26-tag__label { background: var(--r26-purple-bg); color: var(--r26-purple); }
.r26-tag--green .r26-tag__icon { background: var(--r26-green); }
.r26-tag--green .r26-tag__label { background: var(--r26-green-bg); color: var(--r26-green); }
.r26-tag--blue .r26-tag__icon { background: var(--r26-blue); }
.r26-tag--blue .r26-tag__label { background: var(--r26-blue-bg); color: var(--r26-blue); }
.r26-tag--purple { --r26-tag-dark: var(--r26-purple); }
.r26-tag--green { --r26-tag-dark: var(--r26-green); }
.r26-tag--blue { --r26-tag-dark: var(--r26-blue); }
.r26-tag__icon svg [stroke="#fff"] { stroke: var(--r26-tag-dark); opacity: 1; }

/* tag positions around the phone, per Figma frames (desktop) */
.r26-tag--p1 { top: 95px; left: 0; }
.r26-tag--p2 { top: 55px; right: 0; }
.r26-tag--p3 { top: 330px; right: 40px; }
.r26-slide:nth-of-type(2) .r26-tag--p1 { top: 125px; left: 30px; }
.r26-slide:nth-of-type(2) .r26-tag--p2 { top: 185px; right: -10px; }
.r26-slide:nth-of-type(2) .r26-tag--p3 { top: 330px; left: 160px; right: auto; }
.r26-slide:nth-of-type(3) .r26-tag--p1 { top: 110px; left: 150px; }
.r26-slide:nth-of-type(3) .r26-tag--p2 { top: 210px; right: -10px; }
.r26-slide:nth-of-type(3) .r26-tag--p3 { top: 305px; left: 90px; right: auto; }

/* designer's <short-story-slider> (assets/hero-slider/): sits on the hero background, theme fonts per language */
/* > 600px wide = the desktop composition (734 x 747, scaled); the component switches to mobile at a 600px container */
/* Avishai 11/11: with the button row gone the slider grows ~25% (620 -> up to 780px), capped by the viewport height
   (header 50 + hero padding + chips row = ~150px) so the whole composition stays on one screen */
.r26-hero__stage--ss { width: min(780px, calc((100vh - 150px) * 734 / 747), 54vw); height: auto; }
.r26-hero__stage--ss short-story-slider {
	--ss-background: transparent;
	--ss-mobile-background: transparent;
	--ss-tag-font: var(--font-family-secondary);
	--ss-ui-font: var(--font-family-primary);
	width: 100%;
	margin: 0 auto;
}

.r26-hero__dots {
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}
.r26-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(29, 31, 46, .25);
	cursor: pointer;
	transition: width .25s ease, background .25s ease;
}
.r26-hero__dot.is-active { width: 24px; background: var(--r26-ink); }

/* genre chips: endless scroll, paused on hover / focus */
.r26-chips {
	position: relative;
	margin-top: 16px;
	overflow: hidden;
	direction: ltr;
}
.r26-chips__track {
	display: flex;
	width: max-content;
	animation: r26-marquee 80s linear infinite;
}
.r26-chips:hover .r26-chips__track,
.r26-chips:focus-within .r26-chips__track { animation-play-state: paused; }
.r26-chips__set { display: flex; gap: 10px; padding-inline-end: 10px; }
[dir="rtl"] .r26-chips__set { direction: rtl; }
.r26-chip {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 18px;
	border: 1.5px solid var(--r26-ink);
	border-radius: 30px;
	color: var(--r26-ink) !important;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .2s ease;
}
.r26-chip:hover, .r26-chip:focus-visible { background: rgba(255, 255, 255, .6); }
@keyframes r26-marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .r26-chips__track { animation-name: r26-marquee-rtl; }
@keyframes r26-marquee-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
	.r26-chips__track { animation: none; }
	.r26-chips { overflow-x: auto; }
	.r26-hero__caret { animation: none; }
	.r26-slide, .r26-tag { transition: none; }
}

@media (max-width: 1200px) {
	.r26-hero__title { font-size: 54px; }
	.r26-hero__stage { transform: scale(.85); transform-origin: center; margin-inline-end: -60px; }
	.r26-hero__stage--ss { transform: none; margin-inline-end: -40px; } /* sized by its width rule instead */
}

@media (max-width: 1024px) {
	.r26-hero {
		min-height: 0;
		/* Avishai 11/11: top padding doubled (48 -> 96) */
		padding: 96px 0 calc(90px + env(safe-area-inset-bottom, 0px));
		background: var(--r26-hero-bg-m) center top / cover no-repeat, #f1d3dc;
	}
	.r26-hero__globe { display: none; }
	/* Avishai 11/11: 20px side margins, everything a size up, the slider as wide as the margins allow */
	.r26-hero__inner { flex-direction: column; align-items: stretch; gap: 26px; padding-inline: 20px; }
	.r26-hero__text { flex: none; }
	.r26-hero__text .r26-hero__title, .r26-hero__text .r26-hero__sub { margin-inline-start: 12px; }
	.r26-hero__title { font-size: 50px; line-height: 1; margin-bottom: 20px; overflow-wrap: break-word; }
	.r26-hero__sub { font-size: 24px; line-height: 1.29; margin-bottom: 24px; max-width: 380px; }
	.r26-hero__search { width: 100%; max-width: 500px; height: 58px; }
	.r26-hero__search input[type="search"], .r26-hero__typing { font-size: 17px; }
	.r26-hero__typing { max-width: calc(100% - 64px); }
	.r26-hero__stage { width: 100%; max-width: 360px; height: 450px; margin: 0 auto; transform: none; }
	.r26-hero__stage--ss { width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
	.r26-phone { width: 240px; height: 400px; margin-left: -120px; top: 20px; border-radius: 30px; }
	.r26-phone--bare { width: 320px; height: 412px; margin-left: -160px; top: 10px; border-radius: 0; }
	.r26-tag { height: 47px; }
	.r26-tag__label { font-size: 24px; padding: 0 14px 0 12px; }
	.r26-slide .r26-tag--p1, .r26-slide:nth-of-type(n) .r26-tag--p1 { top: 200px; left: 0; right: auto; }
	.r26-slide .r26-tag--p2, .r26-slide:nth-of-type(n) .r26-tag--p2 { top: 85px; right: 0; left: auto; }
	.r26-slide .r26-tag--p3, .r26-slide:nth-of-type(n) .r26-tag--p3 { top: 315px; right: 0; left: auto; }
	.r26-chips { margin-top: 12px; }
	.r26-chip { font-size: 14px; height: 28px; padding: 0 14px; }
}

/* ------------------------------------------------------------------ CTA band */

/* Figma 1288:6381: band 368px tall, avatars 59px above it, title 103px under the band top, text Assistant 400 24/31.4,
   button 36px under the text and 101px above the footer. */
.r26-cta {
	position: relative;
	box-sizing: border-box;
	min-height: 368px;
	margin-top: 120px;
	padding: 0 20px 101px;
	background: var(--r26-cta-bg) center / cover no-repeat, #f2dbe6;
	text-align: center;
	font-family: var(--font-family-primary);
}
.r26-cta__inner { position: relative; max-width: 720px; margin: 0 auto; }
.r26-cta__avatars {
	display: block;
	width: 342px;
	max-width: 90%;
	height: auto;
	margin: -59px auto 0;
}
.r26-cta__title {
	margin: 57px 0 4px; /* avatars image 342×105 */
	font-family: var(--font-family-primary);
	font-size: 32px;
	font-weight: 700;
	line-height: 39px;
	color: #333;
}
.r26-cta__text { margin: 0 0 36px; font-family: "Assistant", sans-serif; font-size: 24px; font-weight: 400; line-height: 31.4px; color: #333; }
.r26-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 316px;
	max-width: 100%;
	height: 54px;
	border-radius: 300px;
	background: #333;
	color: #faf5f7 !important;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.36px;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}
.r26-cta__btn:hover { background: #1d1f2e; transform: translateY(-2px); }

/* ------------------------------------------------------------------ footer */

/* Figma 1288:6381 (desktop) / 1288:5459 (mobile). Text colour = the Figma fill (white 79%) under the layer's 80% opacity,
   i.e. white 63% as rendered in the Figma export (measured #b2b2b2 on #2e2d2d); the newsletter title has no layer opacity. */
.r26-footer {
	--r26-footer-text: rgba(255, 255, 255, .632);
	background: var(--r26-footer);
	color: var(--r26-footer-text);
	font-family: var(--font-family-primary);
	overflow-x: clip;
}
.r26-footer a { color: var(--r26-footer-text) !important; text-decoration: none !important; }
.r26-footer a:hover { color: #fff !important; }

.r26-footer__main {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	max-width: 1264px;
	margin: 0 auto;
	padding: 102px 32px 80px; /* hairline 99px under "Sign me up" (the Ninja Forms wrapper adds ~19px) */
}
.r26-footer__cols { display: grid; grid-template-columns: 185px 174px auto; align-items: start; }
.r26-footer__head {
	margin: 0 0 25px;
	font-family: var(--font-family-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 28.8px;
	letter-spacing: -.64px;
	color: var(--r26-footer-text);
}
.r26-footer__col ul { margin: 0; padding: 0; list-style: none; }
.r26-footer__col li { margin: 0; font-size: 16px; font-weight: 400; line-height: 28.8px; letter-spacing: -.64px; }

.r26-footer__news { flex: 0 1 432px; }
.r26-footer__news-title {
	margin: 0 0 26px;
	font-family: var(--font-family-secondary);
	font-style: italic;
	font-weight: 500;
	font-size: 22px;
	line-height: 39.6px;
	color: rgba(255, 255, 255, .79);
}
/* Ninja Forms newsletter, restyled: underline field + yellow pill */
.r26-footer__form .nf-form-title, .r26-footer__form .nf-before-form-content, .r26-footer__form .nf-field-label { display: none !important; }
.r26-footer__form .nf-form-content { padding: 0 !important; max-width: none !important; }
.r26-footer__form nf-fields-wrap { display: block; }
.r26-footer__form .nf-field-container { margin-bottom: 19px !important; }
.r26-footer__form input[type="email"], .r26-footer__form input[type="text"] {
	width: 100% !important;
	height: 38px !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .79) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font-family: var(--font-family-primary) !important;
	font-size: 18px !important;
	letter-spacing: -.72px;
	box-shadow: none !important;
}
.r26-footer__form input::placeholder { color: rgba(255, 255, 255, .474) !important; }
/* "Sign me up": Figma Assistant 700 16, -0.32 tracking, 149×38 */
.r26-footer__form input[type="submit"], .r26-footer__form button[type="submit"] {
	height: 38px !important;
	min-width: 149px;
	padding: 0 35px !important;
	border: 0 !important;
	border-radius: 300px !important;
	background: var(--r26-yellow) !important;
	color: #1c1f2e !important;
	font-family: "Assistant", sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: -.32px;
	text-transform: uppercase;
	cursor: pointer;
	width: auto !important;
}
.r26-footer__form .nf-response-msg { color: #fff; }
.r26-footer__form .nf-error-msg, .r26-footer__form .nf-error-required-msg { color: #ffb4b4 !important; }

/* bottom row: full-width hairline, social circles 58px (gap 15), legal lines under the newsletter column */
.r26-footer__bottom {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	max-width: 1264px;
	margin: 0 auto;
	padding: 25px 32px 179px;
}
.r26-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	border-top: 1px solid rgba(255, 255, 255, .2);
}
.r26-social { display: flex; gap: 15px; }
.r26-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .19);
	color: #fff !important;
	transition: background .2s ease, transform .2s ease;
}
.r26-social a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.r26-social a svg { width: 26px; height: 26px; }
.r26-footer__legal {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex: 0 1 432px;
	margin-top: 39px;
	font-size: 14px;
	line-height: 25.2px;
	letter-spacing: -.56px;
}
.r26-footer__legal p { margin: 0; }

@media (max-width: 1024px) {
	/* Figma 1288:5459: title 32/39, text 22, button 34px under the text, 83px band bottom */
	.r26-cta { min-height: 0; margin-top: 110px; padding: 0 16px 83px; }
	.r26-cta__avatars { margin-top: -50px; }
	.r26-cta__title { margin-top: 54px; margin-bottom: 14px; font-size: 32px; line-height: 39px; }
	.r26-cta__text { font-size: 22px; line-height: 27px; max-width: 310px; margin-inline: auto; margin-bottom: 34px; }
	.r26-footer__main { flex-direction: column-reverse; gap: 80px; padding: 69px 20px 59px; }
	.r26-footer__cols { grid-template-columns: minmax(0, 224px) minmax(0, 1fr); row-gap: 20px; }
	.r26-footer__news { flex: none; }
	.r26-footer__news-title { font-size: 21px; line-height: 37.8px; }
	.r26-footer__bottom {
		flex-direction: column;
		align-items: center;
		gap: 54px;
		padding: 62px 20px calc(110px + env(safe-area-inset-bottom, 0px));
	}
	.r26-footer__bottom > .r26-social { opacity: .65; }
	.r26-footer__legal { flex: none; flex-direction: column; gap: 3px; margin-top: 0; text-align: center; }
}

/* ------------------------------------------------------------------ mobile bottom nav, light (Figma mobile frames) */

@media (max-width: 1024px) {
	.ssp-r26 .pwa-bottom-nav { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(29, 31, 46, .08); }
	.ssp-r26 .pwa-bottom-nav .pwa-nav-item { color: rgba(29, 31, 46, .5); font-weight: 700; /* QA 10/11 mobile p.11 */ }
	.ssp-r26 .pwa-bottom-nav .pwa-nav-item.active { color: var(--r26-ink); }
	.ssp-r26 .pwa-bottom-nav .pwa-nav-item img { filter: brightness(0); opacity: .45; }
	.ssp-r26 .pwa-bottom-nav .pwa-nav-item img[src$=".svg"] { height: 34px; width: 34px; } /* Avishai Drive 10/11: 34x34 frame, 26px glyph = the old PNG size */
	.ssp-r26 .pwa-bottom-nav .pwa-nav-item.active img { opacity: 1; }
	/* Avishai 11/11: hidden at the top of the page, slides up from the bottom once the visitor scrolls
	   (redesign-2026.js sets html.r26-scrolled; a page too short to scroll keeps it visible) */
	.ssp-r26 .pwa-bottom-nav { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
	html.r26-nav-idle .ssp-r26 .pwa-bottom-nav { transform: translateY(110%); }
	/* Avishai 15/11: the accessibility circle (pojo toggle, 20px above the bottom nav) is hidden with the nav at the top
	   and rises together with it to its usual place once scrolling starts. `translate` adds to the plugin's transforms. */
	.ssp-r26 #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { transition: translate .3s cubic-bezier(.2, .8, .2, 1); }
	html.r26-nav-idle .ssp-r26 #pojo-a11y-toolbar:not(.pojo-a11y-toolbar-open) .pojo-a11y-toolbar-toggle {
		translate: -20px calc(100% + 64px + 40px + env(safe-area-inset-bottom, 0px));
	}
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
	.ssp-r26 .pwa-bottom-nav { transition: none; }
	.ssp-r26 #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { transition: none; }
}
