/* ==========================================================================
   Yalla — information portal design layer (v2). Loaded after main.css.
   Light, clean, content-first. Brand: logo near-black + aubergine, orange accent.
   ========================================================================== */

:root {
	--bg: #FFFFFF;
	--surface: #F6F3F8;
	--surface-2: #EEE8F2;
	--line: #E7E1EC;
	--ink: #1E2122;
	--muted: #5F5967;
	--aub: #41334A;
	--aub-deep: #2A2131;
	--teal: #2A2131;
	--orange: #E8833A;
	--orange-dark: #C9661F;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow: 0 1px 2px rgba(30, 33, 34, .06), 0 8px 24px -12px rgba(42, 33, 49, .18);
	--shadow-lg: 0 2px 6px rgba(30, 33, 34, .06), 0 24px 48px -20px rgba(42, 33, 49, .30);
	--header-h: 72px;
}
body { background: var(--bg); color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.kicker { color: var(--orange-dark); }
.kicker::before { display: none; }
.kicker { letter-spacing: .08em; font-size: .8rem; }

/* Kufic-line pattern inspired by the logo */
.phero__pattern, .phead__pattern, .community::before {
	background-image:
		repeating-linear-gradient(90deg, rgba(65,51,74,.06) 0 14px, transparent 14px 28px),
		repeating-linear-gradient(0deg, rgba(65,51,74,.04) 0 14px, transparent 14px 28px);
	mask-image: radial-gradient(70% 90% at 85% 30%, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(70% 90% at 85% 30%, #000 0%, transparent 70%);
}

/* ---------- Header: always clean white ---------- */
.site-header, .is-home .site-header:not(.is-scrolled) {
	background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.is-home .site-header { margin-bottom: 0; }
.is-home .site-header:not(.is-scrolled) .primary-nav a,
.is-home .site-header:not(.is-scrolled) .lang-switch a,
.is-home .site-header:not(.is-scrolled) .menu-toggle { color: var(--ink); }
.is-home .site-header:not(.is-scrolled) .yalla-logo { --logo-k: #1E2122; --logo-p: #41334A; }
.is-home .site-header:not(.is-scrolled) .lang-switch ul, .lang-switch ul { background: var(--surface); }
.primary-nav a { color: var(--ink); font-weight: 600; }
.primary-nav .menu > li > a { border-radius: 10px; }
.primary-nav .menu > li > a:hover { background: var(--surface); }
.primary-nav a::after { display: none; }
.primary-nav .menu > li.menu-item-has-children > a::before { content: ""; float: inline-end; width: 7px; height: 7px; margin: .55em 0 0 .45em; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
.primary-nav .sub-menu { border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 16px; min-width: 260px; }
.primary-nav .sub-menu a { font-weight: 500; font-size: .94rem; padding: .55em .8em; }
.custom-logo { max-height: 52px; }
.site-logo-link .yalla-logo { width: 46px; }

/* ---------- Portal hero ---------- */
.phero { position: relative; overflow: clip; background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.phero__pattern { position: absolute; inset: 0; pointer-events: none; }
.phero__inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--aub); margin-bottom: 22px; box-shadow: var(--shadow); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #3CB27A; box-shadow: 0 0 0 4px rgba(60,178,122,.18); animation: pulse 2.4s infinite; }
.phero__title { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: .35em; max-width: 14em; }
.phero__title .hl { color: var(--orange); position: relative; white-space: nowrap; }
.phero__title .hl::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .14em; border-radius: 4px; background: rgba(232,131,58,.22); z-index: -1; }
.phero__text { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 36em; }

.bigsearch {
	display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 26px;
	background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 18px;
	box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s;
}
.bigsearch:focus-within { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(232,131,58,.15), var(--shadow-lg); }
.bigsearch > .icon { color: var(--muted); flex: none; }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem; padding: 12px 0; color: var(--ink); }
.bigsearch input:focus { outline: none; }
.bigsearch .btn { border-radius: 12px; box-shadow: none; padding: .85em 1.4em; }
.bigsearch .btn:hover { transform: none; box-shadow: none; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.popular__label { font-weight: 700; font-size: .9rem; color: var(--muted); }
.popular .chips { margin: 0; }
.chips--light a { background: #fff; border-color: var(--line); color: var(--aub); }

.phero__visual { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.phero__logo { position: absolute; inset: 12%; display: grid; place-items: center; background: #fff; border-radius: 32px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); rotate: -3deg; }
.phero__logo .yalla-logo { width: 58%; }
.phero__logo rect { transform-origin: 0 0; animation: barIn .9s var(--ease-bounce) both; }
.phero__logo .yalla-logo__p rect:nth-child(n) { animation-delay: calc(.3s + var(--i, 0) * 1s); }
.phero__logo .yalla-logo__k rect:nth-child(2) { animation-delay: .15s; } .phero__logo .yalla-logo__p rect:nth-child(2) { animation-delay: .45s; }
.phero__logo .yalla-logo__p rect:nth-child(3) { animation-delay: .55s; } .phero__logo .yalla-logo__p rect:nth-child(4) { animation-delay: .65s; }
.phero__logo .yalla-logo__p rect:nth-child(5) { animation-delay: .75s; } .phero__logo .yalla-logo__p rect:nth-child(6) { animation-delay: .85s; }
.phero__logo .yalla-logo__p rect:nth-child(7) { animation-delay: .95s; } .phero__logo .yalla-logo__p rect:nth-child(8) { animation-delay: 1.05s; }
.phero__logo .yalla-logo__p rect:nth-child(9) { animation-delay: 1.15s; } .phero__logo .yalla-logo__k rect:nth-child(n+5) { animation-delay: 1.25s; }
.fcard {
	position: absolute; display: grid; gap: 2px; padding: 14px 18px; background: #fff; border-radius: 16px;
	border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fadeUp .8s var(--ease) both, bob 6s ease-in-out infinite;
}
.fcard__num { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--aub); }
.fcard__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.fcard__langs { display: flex; gap: 6px; }
.fcard__langs span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--surface); color: var(--aub); }
.fcard__langs span:nth-child(2) { background: var(--orange); color: #fff; }
.fcard--a { top: 4%; inset-inline-start: -2%; animation-delay: .6s, 1s; }
.fcard--b { top: 40%; inset-inline-end: -6%; animation-delay: .8s, 2s; }
.fcard--c { bottom: 2%; inset-inline-start: 8%; animation-delay: 1s, 3s; }
@media (max-width: 900px) {
	.phero__inner { grid-template-columns: 1fr; }
	.phero__visual { display: none; }
}

/* ---------- Topics grid ---------- */
.section-head--row { align-items: flex-end; }
.section-head__aside { max-width: 30em; color: var(--muted); margin: 0; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.topic {
	--tone: var(--orange); --tone-bg: #FDEEE2;
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
	transition: transform .35s var(--ease), box-shadow .3s, border-color .3s;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); }
.topic--aubergine { --tone: #6B4E80; --tone-bg: #F0E8F5; }
.topic--mint { --tone: #23946F; --tone-bg: #E1F4EC; }
.topic--sun { --tone: #B98110; --tone-bg: #FDF3D6; }
.topic--blue { --tone: #2D6FA3; --tone-bg: #E2EEF8; }
.topic--rose { --tone: #C24D6A; --tone-bg: #FBE6EB; }
.topic__head { display: flex; align-items: center; justify-content: space-between; }
.topic__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); transition: transform .4s var(--ease-bounce); }
.topic:hover .topic__icon { transform: rotate(-8deg) scale(1.08); }
.topic__count { font-size: .78rem; font-weight: 700; color: var(--tone); background: var(--tone-bg); padding: 4px 10px; border-radius: 999px; }
.topic__title { font-size: 1.25rem; margin: 4px 0 0; }
.topic__title a { color: var(--ink); text-decoration: none; }
.topic__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.topic__text { color: var(--muted); font-size: .95rem; margin: 0; }
.topic__links { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; position: relative; z-index: 1; }
.topic__links a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.topic__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); flex: none; }
.topic__links a:hover { color: var(--tone); }
.topic__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tone); font-size: .92rem; }
.topic__more .icon { width: 18px; transition: transform .3s var(--ease-bounce); }
.topic:hover .topic__more .icon { transform: translateX(4px); }
[dir="rtl"] .topic__more .icon, [dir="rtl"] .community__tiles .icon-arrow { scale: -1 1; }

/* ---------- News (magazine) ---------- */
.news { background: var(--surface); }
.btn--ghost-dark { --bg: #fff; --fg: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost-dark:hover { --bg: var(--ink); --fg: #fff; box-shadow: none; }
.mag { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(3, auto); gap: 18px; }
.mag__item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .3s; }
.mag__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mag__item--big { grid-row: 1 / span 3; }
.mag__link { display: flex; height: 100%; color: inherit; text-decoration: none; }
.mag__item--big .mag__link { flex-direction: column; }
.mag__media { flex: none; width: 150px; background: var(--surface-2); overflow: hidden; }
.mag__item--big .mag__media { width: 100%; aspect-ratio: 16 / 9; }
.mag__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mag__item:hover .mag__media img { transform: scale(1.05); }
.mag__ph { display: grid; place-items: center; height: 100%; min-height: 110px; }
.mag__ph .yalla-logo { width: 42%; max-width: 90px; opacity: .35; }
.mag__body { padding: 16px 20px; display: grid; gap: 6px; align-content: start; }
.mag__item--big .mag__body { padding: 22px 26px 26px; }
.mag__date { font-size: .8rem; font-weight: 700; color: var(--orange-dark); }
.mag__title { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.mag__item--big .mag__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.mag__excerpt { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .mag { grid-template-columns: 1fr; } .mag__item--big { grid-row: auto; } .mag__media { width: 110px; } }

/* ---------- Community band ---------- */
.community { position: relative; overflow: clip; background: var(--aub-deep); color: #fff; }
.community::before { content: ""; position: absolute; inset: 0; opacity: .9; filter: invert(1); }
.community__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.community h2 { color: #fff; }
.community p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.community__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.community__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.community__tiles a { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 700; transition: background .2s, transform .3s var(--ease); }
.community__tiles a:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); color: #fff; }
.community__tiles a > .icon:last-child { margin-inline-start: auto; width: 18px; opacity: .6; }
.community__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); }
@media (max-width: 860px) { .community__inner { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.aboutx__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aboutx__copy p { color: var(--muted); font-size: 1.06rem; }
.aboutx__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aboutx__grid li { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.aboutx__grid h3 { font-size: 1.05rem; margin: 10px 0 4px; }
.aboutx__grid p { font-size: .92rem; color: var(--muted); margin: 0; }
.aboutx__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--aub); border: 1px solid var(--line); }
@media (max-width: 860px) { .aboutx__inner, .aboutx__grid { grid-template-columns: 1fr; } }

/* Quiz + donate on the light design */
.quiz { padding-top: clamp(56px, 7vw, 96px); }
.quiz__box { background: var(--aub); }
.donate__box { background: linear-gradient(135deg, var(--aub), var(--aub-deep)); }
.btn--teal { --bg: var(--aub); }

/* ---------- Inner page header ---------- */
.phead { position: relative; overflow: clip; background: linear-gradient(180deg, var(--surface), #fff); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 44px); }
.phead__pattern { position: absolute; inset: 0; pointer-events: none; }
.phead .container { position: relative; }
.phead__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); margin: 10px 0 12px; max-width: 22em; letter-spacing: -.025em; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.phead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.phead__meta .icon { width: 16px; height: 16px; color: var(--orange); }
.breadcrumbs { color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--aub); }

/* ---------- Page layout with sidebar ---------- */
.pagewrap { padding-block: clamp(32px, 5vw, 64px); }
.pagewrap:not(.has-side) .pagewrap__main { max-width: 780px; margin-inline: auto; }
.pagewrap.has-side { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pagewrap__main { min-width: 0; max-width: 820px; }
.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.admin-bar .side { top: calc(var(--header-h) + 52px); }
.side__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.side__title { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; font-family: var(--font-head); font-weight: 750; font-size: 1.05rem; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.side__title::-webkit-details-marker { display: none; }
.side__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FDEEE2; color: var(--orange-dark); flex: none; }
.side__icon .icon { width: 18px; }
.side__list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.side__list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; line-height: 1.35; }
.side__list a:hover { background: var(--surface); }
.side__list a[aria-current="page"] { background: var(--aub); color: #fff; font-weight: 700; }
.side__help { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side__help-title { font-family: var(--font-head); font-weight: 750; margin: 0 0 4px; }
.side__help p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.side__mail { display: block; margin-top: 10px; font-size: .88rem; font-weight: 600; word-break: break-all; }
@media (max-width: 960px) {
	.pagewrap.has-side { grid-template-columns: 1fr; }
	.side { position: static; }
	.side__help { display: none; }
}
.entry-figure--inline { margin: 0 0 28px; }
.entry-figure--inline img { border-radius: var(--radius); width: 100%; display: block; }

/* Readable content */
.entry-content { font-size: 1.06rem; line-height: 1.75; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.5em; }
.entry-content a { color: var(--aub); font-weight: 600; text-decoration-color: rgba(232,131,58,.6); }
.entry-content a:hover { color: var(--orange-dark); }
.entry-content img { border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { background: var(--surface); border-inline-start-color: var(--orange); }
.entry-content .wp-caption { max-width: 100%; }
.entry-content > *:first-child { margin-top: 0; }

/* Sub-pages as clean list cards */
.subpages { margin-top: 48px; }
.subpages__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.subpage a { padding: 18px 44px 18px 18px; border: 1px solid var(--line); box-shadow: none; border-radius: 14px; }
.subpage a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange); }
.subpage__num { display: none; }
.subpage__title { font-size: 1.05rem; }
.subpage__text { font-size: .88rem; }
.subpage__arrow { top: 18px; inset-inline-end: 14px; }

/* Listing cards + footer on light design */
.card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.card__media { background: var(--surface-2); }
.site-footer { background: var(--aub-deep); }
.site-footer .wave--top { fill: #fff; }
.footer-cta__big { background-image: linear-gradient(90deg, var(--orange), #F6C453, var(--orange)); }

/* Search results / 404 */
.search-form { border: 1px solid var(--line); }

/* ==========================================================================
   Dialogue: residents & newcomers
   ========================================================================== */
.container--mid { max-width: calc(940px + 2 * var(--gutter)); }

/* Chat */
.chat { display: grid; gap: 10px; margin: 26px 0; }
.chat__row { display: flex; align-items: flex-end; gap: 10px; max-width: 88%; }
.chat__row--newcomer { margin-inline-start: auto; flex-direction: row-reverse; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--aub); }
.chat__row--newcomer .chat__avatar { background: #FDEEE2; color: var(--orange-dark); }
.chat__avatar .icon { width: 16px; height: 16px; }
.chat__bubble { display: grid; gap: 2px; padding: 10px 14px 11px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.chat__row--newcomer .chat__bubble { border-radius: 18px 18px 6px 18px; background: var(--aub); border-color: var(--aub); color: #fff; }
[dir="rtl"] .chat__bubble { border-radius: 18px 18px 6px 18px; }
[dir="rtl"] .chat__row--newcomer .chat__bubble { border-radius: 18px 18px 18px 6px; }
.chat__who { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); }
.chat__row--newcomer .chat__who { color: #F6C453; }
.chat__text { font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.chat__text:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-body); font-size: 1.1rem; }
.chat__tr { font-size: .82rem; opacity: .7; font-style: italic; }
.chat__typing { display: none; gap: 4px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; width: max-content; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.chat__typing span:nth-child(2) { animation-delay: .15s; } .chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.js .chat .chat__row { opacity: 0; transform: translateY(14px) scale(.96); }
.js .chat.is-playing .chat__row { animation: bubbleIn .5s var(--ease-bounce) forwards; animation-delay: calc(var(--n) * 1.1s); }
.js .chat.is-playing:not(.is-done) .chat__typing { display: flex; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }

/* Homepage dialogue section */
.hdialogue { background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); border-top: 1px solid var(--line); }
.hdialogue__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hdialogue__copy > p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
.hdialogue__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hdialogue__next { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--aub); font-size: .92rem; }
.hdialogue__next .icon { width: 18px; color: var(--orange); }
.hdialogue__deck-label { font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 14px; }
@media (max-width: 900px) { .hdialogue__inner { grid-template-columns: 1fr; } }

/* Deck */
.deck { display: grid; gap: 18px; justify-items: center; }
.deck__stack { position: relative; width: min(100%, 460px); aspect-ratio: 5 / 4; }
.deck--large .deck__stack { width: min(100%, 520px); }
.deck__ghost { position: absolute; inset: 0; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.deck__ghost--1 { rotate: 4deg; background: #FDEEE2; z-index: 0; }
.deck__ghost--2 { rotate: -5deg; background: var(--surface-2); z-index: 0; }
.qcard {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px;
	padding: clamp(22px, 4vw, 36px); border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
	background-image: radial-gradient(circle at 100% 0, rgba(232,131,58,.12), transparent 40%);
}
.qcard.is-active { animation: cardIn .5s var(--ease-bounce); }
.qcard.is-leaving { animation: cardOut .38s var(--ease) forwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) rotate(-3deg) scale(.95); } }
@keyframes cardOut { to { opacity: 0; transform: translateX(60%) rotate(14deg); } }
[dir="rtl"] .qcard.is-leaving { animation-name: cardOutRtl; }
@keyframes cardOutRtl { to { opacity: 0; transform: translateX(-60%) rotate(-14deg); } }
.qcard__num { position: absolute; top: 18px; inset-inline-start: 24px; margin: 0; font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: .95rem; }
.qcard__q { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; display: flex; gap: 8px; align-items: baseline; }
.qcard__q--main { font-family: var(--font-head); font-weight: 750; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.deck--large .qcard__q--main { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.qcard__q:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-body); }
.qcard__q--main:lang(ar) { font-weight: 700; }
.qcard__tag { flex: none; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--surface); color: var(--aub); }
.deck__actions { display: grid; justify-items: center; gap: 8px; text-align: center; }
.deck__hint { color: var(--muted); font-size: .88rem; max-width: 30em; margin: 0; }

/* Dialogue page hero */
.dhero { position: relative; overflow: clip; background: var(--aub-deep); color: #fff; padding: clamp(48px, 7vw, 100px) 0; }
.dhero__pattern { position: absolute; inset: 0; opacity: .5; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); mask-image: radial-gradient(60% 80% at 80% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 80% at 80% 40%, #000, transparent 75%); }
.dhero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.dhero__title { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); margin-bottom: .2em; }
.dhero__lead { font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; color: #fff; }
.dhero__lead .hl { color: var(--orange); }
.dhero__text { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 36em; }
.dhero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dhero__chat .chat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: 22px; margin: 0; }
.dhero__chat .chat__bubble { color: var(--ink); }
.dhero__chat .chat__row--newcomer .chat__bubble { background: var(--orange); border-color: var(--orange); color: #fff; }
.dhero__chat .chat__row--newcomer .chat__who { color: #fff; opacity: .85; }
@media (max-width: 900px) { .dhero__inner, .ddeck__inner { grid-template-columns: 1fr; } }

/* Steps */
.dsteps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.dstep { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.dstep:not(:last-child)::after { content: ""; position: absolute; top: 48px; inset-inline-end: -14px; width: 12px; height: 2px; background: var(--orange); }
.dstep__num { position: absolute; top: 18px; inset-inline-end: 20px; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--surface-2); }
.dstep__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #FDEEE2; color: var(--orange-dark); }
.dstep h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.dstep p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .dsteps__list { grid-template-columns: 1fr 1fr; } .dstep::after { display: none; } }
@media (max-width: 520px) { .dsteps__list { grid-template-columns: 1fr; } }

/* Deck + rules */
.ddeck { background: var(--surface); }
.ddeck__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ddeck__inner > div > p:not(.kicker) { color: var(--muted); font-size: 1.06rem; }
.ddeck__rules-title { font-size: 1.1rem; margin-top: 24px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; }
.rules__emoji { font-size: 1.3rem; }

/* Sessions */
.sessions__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.session { display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.session__date { flex: none; width: 64px; height: 68px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--aub); color: #fff; }
.session__day { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.session__month { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #F6C453; }
.session__body { flex: 1; min-width: 0; }
.session__title { font-size: 1.15rem; margin: 0 0 4px; }
.session__title a { color: var(--ink); text-decoration: none; }
.session__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.sessions__empty { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: #fff; border: 2px dashed var(--line); }
.sessions__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #FDEEE2; color: var(--orange-dark); }
.sessions__empty-title { font-family: var(--font-head); font-weight: 750; font-size: 1.2rem; margin: 0 0 4px; }
.sessions__empty p { color: var(--muted); }
@media (max-width: 600px) { .session { flex-wrap: wrap; } }

/* Voices */
.voices__wall { list-style: none; margin: 0 0 32px; padding: 0; columns: 3 260px; column-gap: 16px; }
.voice { break-inside: avoid; margin-bottom: 16px; padding: 20px 20px 16px; border-radius: 22px 22px 22px 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.voice--newcomer { background: #FFF4EA; border-color: #F7D9C0; border-radius: 22px 22px 6px 22px; }
.voice--both { background: #F3EEF7; border-color: #E2D7EA; }
.voice__text { font-size: 1.05rem; font-weight: 500; margin: 0 0 10px; }
.voice__by { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.voice__role { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--aub); color: #fff; }
.voice--newcomer .voice__role { background: var(--orange); }
.voice-form { max-width: 760px; margin-inline: auto; padding: clamp(22px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.voice-form__title { font-family: var(--font-head); font-weight: 750; font-size: 1.4rem; margin: 0; }
.voice-form__sub { color: var(--muted); margin: -6px 0 0; }
.voice-form textarea, .voice-form input[type="text"] { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.voice-form textarea { font-size: 1.1rem; resize: vertical; min-height: 96px; }
.voice-form textarea:focus, .voice-form input:focus { outline: none; border-color: var(--orange); background: #fff; }
.voice-form__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; align-items: end; }
.voice-form__who { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.voice-form__who legend { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; padding: 0; }
.voice-form__who label { cursor: pointer; }
.voice-form__who input { position: absolute; opacity: 0; }
.voice-form__who span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .88rem; }
.voice-form__who input:checked + span { background: var(--aub); border-color: var(--aub); color: #fff; }
.voice-form__who input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.voice-form__field { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.voice-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.voice-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.voice-form__count { font-weight: 700; color: var(--muted); font-size: .85rem; }
.voice-form__privacy { flex: 1; min-width: 200px; margin: 0; font-size: .82rem; color: var(--muted); }
.voice-form__status { margin: 0; font-weight: 700; }
.voice-form__status.is-ok { color: #23946F; }
.voice-form__status.is-error { color: #C24D6A; }
.voice-form.is-sent { animation: wiggle .6s var(--ease-bounce); }
@media (max-width: 760px) { .voice-form__row { grid-template-columns: 1fr; } }

/* Host CTA */
.dhost__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--orange), #F2A65A); color: #fff; }
.dhost__box h2 { color: #fff; margin-bottom: .3em; }
.dhost__box p { margin: 0; max-width: 40em; color: rgba(255,255,255,.92); }
.dhost__box .btn--orange { --bg: var(--aub-deep); }

/* ==========================================================================
   Hummingbird
   ========================================================================== */
.hummer { position: fixed; left: 0; top: 0; z-index: 90; width: var(--size, 64px); pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; }
.hummer.is-on { opacity: 1; }
.hummer__tilt { transition: transform .25s ease-out; transform-origin: 55% 50%; }
.hummer__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(42,33,49,.25)); }
.hummer__body, .hummer__head { fill: var(--aub, #41334A); }
.hummer__tail { fill: #2A2131; }
.hummer__throat { fill: var(--orange, #E8833A); }
.hummer__beak, .hummer__pupil { fill: #1E2122; }
.hummer__sheen { stroke: #7FD1B9; stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.hummer__wing path { fill: #CDB9DB; }
.hummer__wing--back path { fill: #9B86AE; }
.hummer__wing { transform-box: view-box; transform-origin: 60px 34px; animation: hummerWing .055s linear infinite alternate; }
.hummer__wing--back { animation-delay: -.02s; opacity: .75; }
@keyframes hummerWing { from { transform: rotate(-28deg) scaleY(1.05); } to { transform: rotate(38deg) scaleY(.55); } }
.hummer__bob { animation: hummerBob 1.1s ease-in-out infinite; }
@keyframes hummerBob { 50% { transform: translateY(3px); } }
.hummer.is-loop .hummer__svg { animation: hummerLoop .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes hummerLoop { 0% { transform: rotate(0); } 100% { transform: rotate(-360deg); } }
.hummer__spark { position: fixed; z-index: 91; pointer-events: none; color: var(--orange, #E8833A); font-size: 14px; animation: hummerSpark 1.1s ease-out forwards; }
.hummer__spark:nth-of-type(odd) { color: #F6C453; }
@keyframes hummerSpark { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--sx, 10px), -36px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .hummer { display: none; } }
@media print { .hummer { display: none; } }

/* ==========================================================================
   Route map: "Where are you on your journey?"
   ========================================================================== */
.route { position: relative; overflow: clip; }
.route::before { content: ""; position: absolute; inset: 8% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(246,196,83,.18), transparent 65%); pointer-events: none; }
.route__map { --dot: 64px; --vertical: 0; position: relative; }

.route__phases { display: grid; grid-template-columns: calc(var(--a) / var(--n) * 100%) 1fr; gap: 6px; margin-bottom: 52px; }
.route__phase { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 7px 12px; border-radius: 999px; transition: opacity .4s, transform .4s var(--ease); }
.route__phase--asylum { background: #FCE7D2; color: #8A4513; }
.route__phase--status { background: #D9F2EA; color: #1F6450; }
.route__map.is-status .route__phase--asylum, .route__map:not(.is-status) .route__phase--status { opacity: .55; transform: scale(.97); }

.route__rail { position: relative; }
.route__track, .route__progress { position: absolute; top: calc(var(--dot) / 2 - 3px); height: 6px; border-radius: 6px; inset-inline-start: calc(100% / var(--n) / 2); }
.route__track { inset-inline-end: calc(100% / var(--n) / 2); background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); transform: scaleX(0); transform-origin: left center; transition: transform 1.2s var(--ease); }
[dir="rtl"] .route__track { transform-origin: right center; }
.route__progress { width: var(--len, 0px); background: repeating-linear-gradient(90deg, var(--orange) 0 14px, var(--sun) 14px 22px); background-size: 44px 6px; animation: routeFlow 1.4s linear infinite; transition: width .9s var(--ease); opacity: 0; }
@keyframes routeFlow { to { background-position: 44px 0; } }
[dir="rtl"] .route__progress { animation-direction: reverse; }
.route__map.is-visible .route__track { transform: none; }
.route__map.is-visible .route__progress { opacity: 1; }

.route__stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.route__item { display: flex; justify-content: center; opacity: 0; transform: translateY(18px) scale(.9); transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms + .3s); }
.route__map.is-visible .route__item { opacity: 1; transform: none; }
.route__station { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 4px 6px; border-radius: 18px; max-width: 100%; }
.route__station:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.route__dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 3px solid #F3C9A4; color: var(--teal); box-shadow: var(--shadow); transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s; }
.route__item--status .route__dot { border-color: #A9DFCF; }
.route__dot .icon { width: 26px; height: 26px; }
.route__station:hover .route__dot { transform: translateY(-5px); }
.route__item.is-done .route__dot { background: #FFF1E3; border-color: var(--orange); }
.route__item--status.is-done .route__dot { background: #E9F8F3; border-color: var(--mint); }
.route__item.is-active .route__dot { background: var(--orange); border-color: var(--orange); color: var(--white); transform: scale(1.14); }
.route__item--status.is-active .route__dot { background: #2E9C7E; border-color: #2E9C7E; }
.route__item.is-active .route__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid currentColor; color: var(--orange); opacity: 0; animation: routePulse 1.8s var(--ease) infinite; }
.route__item--status.is-active .route__dot::after { color: #2E9C7E; }
@keyframes routePulse { 0% { opacity: .6; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.route__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.route__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(.8rem, .68rem + .32vw, 1rem); line-height: 1.2; color: var(--ink, #1E2122); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.route__place { font-size: .76rem; color: var(--muted); }
.route__item.is-active .route__name { color: var(--orange-dark); }
.route__item--status.is-active .route__name { color: #1F6450; }

.route__traveler { position: absolute; z-index: 3; left: var(--tx, 0); top: var(--ty, 0); display: flex; flex-direction: column; align-items: center; pointer-events: none; transform: translate(-50%, calc(-100% - var(--dot) / 2 - 6px)); transition: left .9s var(--ease), top .9s var(--ease); opacity: 0; }
.route__map.is-visible .route__traveler { opacity: 1; transition: left .9s var(--ease), top .9s var(--ease), opacity .4s 1.1s; }
.route__traveler-label { order: -1; white-space: nowrap; background: var(--teal); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 2px; }
.route__traveler-pin { color: var(--orange); animation: routeBob 1.6s ease-in-out infinite; display: grid; }
.route__traveler-pin .icon { width: 30px; height: 30px; fill: var(--sun); }
.route__map.is-status .route__traveler-pin { color: #2E9C7E; }
@keyframes routeBob { 50% { transform: translateY(-5px); } }
.route__map.is-playing .route__traveler-pin { animation-duration: .5s; }

.route__panels { position: relative; margin-top: 34px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); border-top: 6px solid var(--orange); transition: border-color .4s; }
.route__map.is-status .route__panels { border-top-color: var(--mint); }
.route__panel { outline: none; }
.route__panel[hidden] { display: none; }
.route__panel.is-in { animation: routeIn .55s var(--ease) both; }
@keyframes routeIn { from { opacity: 0; transform: translateY(14px); } }
.route__panel-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.5vw, 28px); align-items: start; margin-bottom: 22px; }
.route__panel-icon { width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; background: #FFF1E3; color: var(--orange-dark); }
.route__panel--status .route__panel-icon { background: #E9F8F3; color: #1F6450; }
.route__panel-icon .icon { width: 46%; height: 46%; }
.route__panel h3 { margin: 0 0 .25em; }
.route__panel .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: .4rem; }
.route__badge { font-size: .72rem; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: #FCE7D2; color: #8A4513; }
.route__panel--status .route__badge { background: #D9F2EA; color: #1F6450; }
.route__lead { font-size: 1.1em; color: var(--muted); margin: 0; }
.route__cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); }
.route__cols h4 { font-size: 1rem; margin: 0 0 .7em; }
.route__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.route__checks li { position: relative; padding-inline-start: 36px; line-height: 1.5; }
.route__checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--orange); color: var(--white); }
.route__panel--status .route__checks li::before { background: #2E9C7E; }
.route__panel.is-in .route__checks li { animation: routeIn .5s var(--ease) both; animation-delay: calc(var(--j) * 90ms + .15s); }
.route__pages { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.route__pages a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--sand, #FFF7EE); color: inherit; text-decoration: none; font-weight: 600; transition: transform .25s var(--ease), background .25s; }
.route__pages a .icon { width: 18px; height: 18px; flex: none; color: var(--orange); transition: transform .25s var(--ease); }
[dir="rtl"] .route__pages a .icon { transform: scaleX(-1); }
.route__pages a:hover { background: #FCE7D2; transform: translateX(4px); }
[dir="rtl"] .route__pages a:hover { transform: translateX(-4px); }
.route__links .chips { margin: 0; }
.route__controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.route__play { color: var(--teal); }
.route__play::before { content: "▶"; font-size: .7em; margin-inline-end: 8px; }
.route__map.is-playing .route__play::before { content: "■"; }
.route__nav { display: flex; gap: 10px; }
[dir="rtl"] .route__nav .icon { transform: scaleX(-1); }

@media (max-width: 960px) {
	.route__map { --dot: 52px; }
	.route__dot .icon { width: 22px; height: 22px; }
	.route__place { display: none; }
	.route__cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.route__map { --dot: 48px; --vertical: 1; }
	.route__phases { display: none; }
	.route__stations { grid-template-columns: 1fr; gap: 10px; }
	.route__item { justify-content: flex-start; }
	.route__station { flex-direction: row; text-align: start; gap: 14px; padding: 0; }
	.route__place { display: block; }
	.route__track, .route__progress { top: calc(var(--dot) / 2); width: 6px; height: auto; inset-inline-start: calc(var(--dot) / 2 - 3px); inset-inline-end: auto; }
	.route__track { bottom: calc(var(--dot) / 2); background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); transform: scaleY(0); transform-origin: center top; }
	[dir="rtl"] .route__track { transform-origin: center top; }
	.route__progress { height: var(--len, 0px); background: repeating-linear-gradient(180deg, var(--orange) 0 14px, var(--sun) 14px 22px); background-size: 6px 44px; animation-name: routeFlowV; transition: height .9s var(--ease); }
	@keyframes routeFlowV { to { background-position: 0 44px; } }
	.route__traveler { transform: translate(-50%, -50%); }
	.route__traveler-label { display: none; }
	.route__traveler-pin { display: none; }
	.route__panel-head { grid-template-columns: 1fr; }
	.route__controls { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	.route__item, .route__track, .route__progress, .route__traveler, .route__panel.is-in, .route__panel.is-in .route__checks li { transition: none !important; animation: none !important; opacity: 1; transform: none; }
}

/* ==========================================================================
   "For municipalities" page blocks (usable in any page content)
   ========================================================================== */
.entry-content .y-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); }
.entry-content .y-why, .entry-content .y-services, .entry-content .y-steps { list-style: none; margin: 1.2em 0 2em; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.entry-content .y-why li { padding: 20px 22px; border-radius: 22px; background: var(--sand); border-inline-start: 5px solid var(--orange); }
.entry-content .y-why strong { display: block; font-family: var(--font-head); font-size: 1.08rem; margin-bottom: .2em; }
.entry-content .y-services li { position: relative; padding: 24px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); border-top: 5px solid var(--mint); transition: transform .3s var(--ease); }
.entry-content .y-services li:nth-child(3n+2) { border-top-color: var(--orange); }
.entry-content .y-services li:nth-child(3n) { border-top-color: var(--sun); }
.entry-content .y-services li:hover { transform: translateY(-4px); }
.entry-content .y-services h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.entry-content .y-services p { margin: 0 0 .8em; }
.entry-content .y-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.entry-content .y-tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E9F8F3; color: #1F6450; }
.entry-content .y-timeline { list-style: none; margin: 1.2em 0 2em; padding: 0; position: relative; }
.entry-content .y-timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 11px; width: 4px; border-radius: 4px; background: linear-gradient(var(--orange), var(--mint)); }
.entry-content .y-timeline > li { position: relative; padding-inline-start: 46px; margin-bottom: 22px; }
.entry-content .y-timeline > li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--orange); }
.entry-content .y-year { display: inline-block; font-family: var(--font-head); font-weight: 800; color: var(--orange-dark); margin-inline-end: 8px; }
.entry-content .y-timeline h3 { display: inline; font-size: 1.12rem; }
.entry-content .y-timeline p { margin: .35em 0 0; }
.entry-content .y-steps { counter-reset: ystep; }
.entry-content .y-steps li { counter-increment: ystep; padding: 20px 22px 20px 22px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.entry-content .y-steps li::before { content: counter(ystep); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--white); font-family: var(--font-head); font-weight: 800; margin-bottom: 10px; }
.entry-content .y-cta { margin: 2.5em 0 1em; padding: clamp(24px, 4vw, 40px); border-radius: 30px; background: var(--teal); color: var(--white); }
.entry-content .y-cta h2 { color: var(--white); margin-top: 0; }
.entry-content .y-cta a { color: var(--sun); font-weight: 700; }
.entry-content .y-todo { background: #FFF3B0; padding: 0 4px; border-radius: 4px; }

/* ==========================================================================
   Partnership Yalla × DeSpiegel
   ========================================================================== */
.partner { position: relative; overflow: clip; background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); }
.venn { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-block: 10px clamp(48px, 7vw, 80px); }
.venn__circle { position: relative; z-index: 1; aspect-ratio: 1; max-width: 440px; width: 100%; border-radius: 50%; padding: clamp(36px, 6%, 64px) clamp(40px, 13%, 78px); display: flex; flex-direction: column; justify-content: center; text-align: center; transition: transform 1.1s var(--ease); }
.venn__circle--yalla { justify-self: end; background: radial-gradient(circle at 35% 30%, rgba(232,131,58,.24), rgba(232,131,58,.1) 70%); border: 3px solid rgba(232,131,58,.55); margin-inline-end: -70px; }
.venn__circle--spiegel { justify-self: start; background: radial-gradient(circle at 65% 30%, rgba(46,156,126,.22), rgba(46,156,126,.08) 70%); border: 3px solid rgba(46,156,126,.5); margin-inline-start: -70px; }
.js .venn:not(.is-visible) .venn__circle--yalla { transform: translateX(-60px); }
.js .venn:not(.is-visible) .venn__circle--spiegel { transform: translateX(60px); }
.js[dir="rtl"] .venn:not(.is-visible) .venn__circle--yalla { transform: translateX(60px); }
.js[dir="rtl"] .venn:not(.is-visible) .venn__circle--spiegel { transform: translateX(-60px); }
.venn__logo { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 18px; background: var(--orange); color: #fff; }
.venn__circle--spiegel .venn__logo { background: #2E9C7E; }
.venn__logo .icon { width: 26px; height: 26px; }
.venn__circle h3 { margin: 0; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); }
.venn__sub { margin: 2px 0 12px; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); }
.venn__circle--spiegel .venn__sub { color: #1F6450; }
.venn__circle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: clamp(.82rem, .76rem + .25vw, .98rem); }
.venn__circle li { opacity: 1; transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(.9s + var(--j) * 90ms); }
.js .venn:not(.is-visible) .venn__circle li { opacity: 0; transform: translateY(8px); }
.venn__center { position: relative; z-index: 2; width: clamp(130px, 15vw, 170px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; background: var(--teal); color: #fff; box-shadow: 0 20px 40px -18px rgba(42,33,49,.7); transform: scale(1); transition: transform .7s var(--ease-bounce, cubic-bezier(.34,1.56,.64,1)) .8s; }
.js .venn:not(.is-visible) .venn__center { transform: scale(0); }
.venn__center strong { font-family: var(--font-head); font-size: clamp(.82rem, .74rem + .3vw, 1rem); line-height: 1.2; }
.venn__center-icon { color: var(--sun); }
.venn__center-icon .icon { width: 30px; height: 30px; }
.venn__pulse { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--sun); opacity: 0; animation: vennPulse 2.6s var(--ease) infinite 2s; }
@keyframes vennPulse { 0% { opacity: .7; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.3); } }

.cycle__title { text-align: center; margin-bottom: 26px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; position: relative; counter-reset: c; }
.cycle::before { content: ""; position: absolute; top: 27px; inset-inline: 8%; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--orange) 0 12px, transparent 12px 20px); opacity: .5; }
.cycle__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.cycle__num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); color: var(--orange-dark); font: 800 1.2rem var(--font-head); box-shadow: var(--shadow); transition: transform .35s var(--ease), background .3s, color .3s; }
.cycle__step--b .cycle__num { border-color: #2E9C7E; color: #1F6450; }
.cycle__step:hover .cycle__num { transform: translateY(-5px) scale(1.06); background: var(--orange); color: #fff; }
.cycle__step--b:hover .cycle__num { background: #2E9C7E; }
.cycle__step strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.2; margin-top: 6px; }
.cycle__step span:last-child { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.cycle__step::after { content: ""; position: absolute; top: 20px; inset-inline-end: -12px; width: 10px; height: 10px; border-top: 3px solid var(--orange); border-inline-end: 3px solid var(--orange); transform: rotate(45deg); opacity: .7; }
[dir="rtl"] .cycle__step::after { transform: rotate(-135deg); }
.cycle__step:last-child::after { display: none; }
.partner__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
.partner__ext { color: var(--teal); }
.partner__ext::after { content: "↗"; margin-inline-start: 6px; }

@media (max-width: 960px) {
	.cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
	.cycle::before, .cycle__step::after { display: none; }
}
@media (max-width: 760px) {
	.venn { grid-template-columns: 1fr; justify-items: center; }
	.venn__circle { max-width: 340px; padding: 44px 40px; }
	.venn__circle--yalla { justify-self: center; margin: 0 0 -46px; }
	.venn__circle--spiegel { justify-self: center; margin: -46px 0 0; }
	.js .venn:not(.is-visible) .venn__circle--yalla { transform: translateY(-40px); }
	.js .venn:not(.is-visible) .venn__circle--spiegel { transform: translateY(40px); }
	.cycle { grid-template-columns: 1fr; row-gap: 18px; }
	.cycle__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: start; align-items: start; }
	.cycle__num { grid-row: span 2; }
	.cycle__step strong { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.venn__circle, .venn__center, .venn__circle li { transition: none !important; transform: none !important; opacity: 1 !important; }
	.venn__pulse { animation: none; }
}

/* ---------- 1.6: tidy header on medium screens, quiz word breaks ---------- */
.primary-nav a { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1181px) {
	.site-nav { gap: 14px; }
	.primary-nav .menu { gap: 0; }
	.primary-nav a { padding: .5em .6em; font-size: .92rem; }
}
.quiz__answer { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* ==========================================================================
   Collaboration illustration (Yalla × DeSpiegel)
   ========================================================================== */
.collab { margin: 0 0 clamp(44px, 6vw, 72px); }
.collab__scroll { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg, 0 30px 60px -20px rgba(42,33,49,.35)); background: #FFF7EE; }
.collab__svg { display: block; width: 100%; height: auto; direction: ltr; font-family: var(--font-head); }
.collab__caption { margin-top: 16px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); color: var(--teal); }
.collab__svg text { font-weight: 700; font-size: 20px; fill: #2A2131; }
.collab__svg .cs-small { font-size: 15px; font-weight: 800; }
.collab__svg .cs-pill-text { font-size: 14px; fill: #fff; }
.collab__svg .cs-num { fill: #fff; font-size: 17px; font-weight: 800; }
.collab__svg .cs-num--dark { fill: #2A2131; }
.collab__svg .cs-step-text { font-size: 19px; font-weight: 800; paint-order: stroke; stroke: #FFF7EE; stroke-width: 6px; stroke-linejoin: round; }
.collab__svg .cs-badge-title { font-size: 19px; font-weight: 800; fill: #fff; }
.collab__svg .cs-badge-sub { font-size: 13px; font-weight: 600; fill: #fff; opacity: .92; }
.cs-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.cs-path--top { stroke: #E8833A; }
.cs-path--back { stroke: #2E9C7E; }

/* Gentle life */
.cs-person { animation: csBob 3.2s ease-in-out infinite; transform-box: fill-box; }
.cs-person--b { animation-delay: -1.6s; }
@keyframes csBob { 50% { transform: translateY(-4px); } }
.cs-bubble { transform-box: fill-box; transform-origin: 30% 100%; opacity: 0; animation: csBubble 8s var(--ease) infinite; }
.cs-bubble--2 { animation-delay: 2s; }
.cs-bubble--3 { animation-delay: 4s; }
.cs-bubble--4 { animation-delay: 6s; }
@keyframes csBubble { 0% { opacity: 0; transform: scale(.4); } 6%, 30% { opacity: 1; transform: scale(1); } 38%, 100% { opacity: 0; transform: scale(.9); } }
.cs-window { animation: csLight 6s ease-in-out infinite; }
.cs-window--2 { animation-delay: -2s; }
.cs-window--3 { animation-delay: -4s; }
@keyframes csLight { 50% { fill: #FFE9A8; } }
.cs-ring { transform-box: fill-box; transform-origin: center; animation: csBreathe 4s ease-in-out infinite; }
.cs-ring--a { --dx: 8px; }
.cs-ring--b { --dx: -8px; animation-delay: -2s; }
@keyframes csBreathe { 50% { transform: translateX(var(--dx)) scale(1.04); } }
.cs-heart { transform-box: fill-box; transform-origin: center; animation: csBeat 1.6s ease-in-out infinite; }
@keyframes csBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.cs-bar { transform-box: fill-box; transform-origin: bottom; animation: csGrow 6s var(--ease) infinite; }
.cs-bar--2 { animation-delay: .25s; }
.cs-bar--3 { animation-delay: .5s; }
.cs-bar--4 { animation-delay: .75s; }
@keyframes csGrow { 0% { transform: scaleY(.15); } 25%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
.cs-shine { animation: csShine 5s ease-in-out infinite; }
@keyframes csShine { 0% { transform: rotate(18deg) translateX(-180px); } 60%, 100% { transform: rotate(18deg) translateX(320px); } }
.cs-lens { transform-box: fill-box; transform-origin: center; animation: csLens 7s ease-in-out infinite; }
@keyframes csLens { 50% { transform: translate(40px, 30px); } }
.cs-mirror-dash { animation: csSpin 30s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes csSpin { to { stroke-dashoffset: -280; } }
.cs-flag { transform-box: fill-box; transform-origin: left center; animation: csFlag 1.4s ease-in-out infinite alternate; }
@keyframes csFlag { to { transform: skewY(8deg) scaleX(.85); } }
.cs-sun { transform-box: fill-box; transform-origin: center; animation: csSun 9s ease-in-out infinite; }
@keyframes csSun { 50% { transform: scale(1.08); } }
.cs-path { animation: csDash 1.6s linear infinite; }
@keyframes csDash { to { stroke-dashoffset: -28; } }

/* Entrance: steps appear one by one when the figure scrolls into view */
.js .collab:not(.is-visible) .cs-step, .js .collab:not(.is-visible) .cs-badge, .js .collab:not(.is-visible) .cs-pill { opacity: 0; }
.cs-step, .cs-badge, .cs-pill { transition: opacity .6s ease; }
.cs-step--1 { transition-delay: .3s; }
.cs-step--2 { transition-delay: .7s; }
.cs-step--3 { transition-delay: 1.1s; }
.cs-step--4 { transition-delay: 1.5s; }
.cs-pill { transition-delay: 1s; }

/* Small screens: keep it readable by letting the illustration scroll sideways */
@media (max-width: 760px) {
	.collab__scroll { overflow-x: auto; border-radius: 22px; -webkit-overflow-scrolling: touch; }
	.collab__svg { width: 820px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.collab__svg * { animation: none !important; }
	.cs-bubble { opacity: 1; }
}
