:root {
  --bg: #ebe5e3; --surface: #e1dad7; --ink: #2b2622; --muted: #615954;
  --accent: #0f7d45; --accent-ink: #ffffff;
  --face: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1.6rem + 5.4vw, 6.5rem);
  --gap: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
/* City worlds: the ground, the surface and the accent follow the place on screen */
body[data-world="chefchaouen"] { --bg: #e4e7ee; --surface: #d6dbe7; --accent: #2a58a8; }
body[data-world="marrakech"]   { --bg: #eee2dc; --surface: #e4d2c9; --accent: #9c3b24; }
body[data-world="fes"]         { --bg: #e2e8e6; --surface: #d3dcd9; --accent: #1c5e86; }
body[data-world="merzouga"]    { --bg: #efe6d8; --surface: #e6d8c2; --accent: #9a5a12; }
body[data-world="taghazout"]   { --bg: #e0eae9; --surface: #cfdedc; --accent: #116a73; }
body[data-world="tea"]         { --bg: #e7e8e1; --surface: #d9dccf; --accent: #0f7d45; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.45 var(--face);
  transition: background-color 1.2s var(--ease); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; line-height: 0.95; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* The stage: reading column on the left, the city window fixed on the right */
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap); }
.window { position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); background: var(--surface);
  display: grid; grid-template-rows: 1fr 56px; transition: background-color 1.2s var(--ease); order: 2; }
.arch { position: relative; margin: 6% 10% 0; overflow: hidden; clip-path: url(#arch); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 9s linear; }
.arch img.on { opacity: 1; transform: scale(1); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 0 24px; background: var(--bg);
  font-size: 15px; transition: background-color 1.2s var(--ease); }
.bar b { font-weight: 500; }
.bar span { color: var(--muted); }
.read { order: 1; min-width: 0; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 4vw, 64px); }
.mark { font-size: 28px; letter-spacing: -0.04em; text-decoration: none; font-weight: 500; }
.top nav { display: flex; gap: 22px; font-size: 16px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--accent); }

.sheet { padding: 0 clamp(20px, 4vw, 64px); }
section { padding: clamp(96px, 12vw, 180px) 0 0; }

/* Hero */
.hero { min-height: calc(100svh - 92px); display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
.hero h1 { font-size: var(--step-display); max-width: 9ch; }
.hero p { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 500; border: 0; cursor: pointer; transition: background-color 1.2s var(--ease), transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.hero .btn { margin-top: 40px; align-self: flex-start; }

/* Ways in: the live picker and the map */
.ways h2, .intro h2, .match h2, .prices h2, .slip-wrap h2, .moment h2, .faq h2, .close h2 { font-size: var(--step-head); max-width: 14ch; }
.ways > p { margin-top: 24px; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip { border: 0; background: var(--surface); padding: 12px 18px; font-size: 17px; cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), transform .2s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.mapbox { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 28px; align-items: start; }
.map { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--surface); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); transition: background-color 1.2s var(--ease); }
.map .land { fill: var(--bg); transition: fill 1.2s var(--ease); }
.map .city { fill: var(--muted); transition: r .5s var(--ease), fill .5s var(--ease); }
.map .city.lit { fill: var(--accent); }
.map .label { font-family: var(--face); font-weight: 500; fill: var(--ink); opacity: 0; transition: opacity .6s var(--ease); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.map .label.lit { opacity: 1; }
.map .route { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; transition: stroke 1.2s var(--ease); }
.plan h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; font-weight: 500; }
.plan .route-line { margin-top: 14px; font-weight: 500; }
.plan .why { margin-top: 14px; }
.plan .facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.plan .facts b { color: var(--ink); font-weight: 500; }
.plan a { display: inline-block; margin-top: 20px; color: var(--accent); }

/* Intro: the philosophy */
.intro .col { max-width: 40ch; margin-top: 32px; display: grid; gap: 18px; }
.intro .col p:first-child { font-weight: 500; font-size: var(--step-lead); line-height: 1.3; }

/* Match-up */
.match .split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.match .square { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; align-self: start; }
.match .side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tabs { display: flex; gap: 18px; font-size: 18px; }
.tab { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.score { display: grid; gap: 10px; }
.score .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.score .who { font-size: 15px; color: var(--muted); }
.score .meter { grid-column: 1 / -1; height: 10px; background: var(--surface); position: relative; }
.score .meter i { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; transition: width 1s var(--ease), background-color 1.2s var(--ease); }
.match .verdict { font-size: var(--step-lead); line-height: 1.25; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { display: flex; align-items: center; height: 64px; padding: 0 18px; text-decoration: none; font-weight: 500; transition: transform .2s var(--ease); }
.cell:hover { transform: translateY(-2px); }
.cell.ink { background: var(--ink); color: var(--bg); }
.cell.tone { background: var(--surface); }

/* Prices */
.prices .word { font-size: clamp(4.5rem, 15vw, 15rem); letter-spacing: -0.05em; line-height: 0.8; text-transform: uppercase; margin-top: 12px; }
.prices .sub { margin-top: 20px; max-width: 44ch; }
.bars { display: grid; gap: 6px; margin-top: 28px; }
.bars details { background: var(--surface); transition: background-color 1.2s var(--ease); }
.bars summary { list-style: none; display: flex; justify-content: space-between; align-items: center; height: 58px; padding: 0 18px; cursor: pointer; font-weight: 500; }
.bars summary::-webkit-details-marker { display: none; }
.bars summary::after { content: "+"; font-size: 22px; transition: transform .3s var(--ease); }
.bars details[open] summary::after { transform: rotate(45deg); }
.bars ul { list-style: none; margin: 0; padding: 4px 18px 20px; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.bars li .p { font-variant-numeric: tabular-nums; font-weight: 500; }
.bars li .range { grid-column: 1 / -1; height: 6px; background: var(--bg); position: relative; }
.bars li .range i { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.bars li .range s { position: absolute; top: -3px; width: 3px; height: 12px; background: var(--ink); text-decoration: none; }
.bars .key { font-size: 15px; color: var(--muted); }
.prices .more { display: inline-block; margin-top: 22px; }

/* Arrival slip */
.slip-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; }
.slip-wrap > p { max-width: 36ch; margin-top: 20px; }
.slipfield { background: var(--ink); padding: clamp(24px, 4vw, 56px); transition: background-color 1.2s var(--ease); }
.slip { background: var(--bg); max-width: 480px; margin: 0 auto; padding: 28px 26px 44px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px)); }
.slip h3 { font-size: 17px; font-weight: 500; letter-spacing: 0; margin-top: 26px; line-height: 1.2; }
.slip h3:first-child { margin-top: 0; }
.slip .r { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 16px; }
.slip .r .dots { flex: 1; border-bottom: 4px dotted var(--muted); transform: translateY(-4px); opacity: .5; }
.slip .total { margin-top: 26px; background: var(--ink); color: var(--bg); display: flex; justify-content: space-between; align-items: center; padding: 0 14px; min-height: 44px; font-weight: 500; }

/* Moment: photo with two figure tiles */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; margin-top: 36px; }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.tiles { display: grid; grid-template-rows: 1fr 1fr; }
.tile { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.tile b { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.75rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.9; }
.tile:first-child { background: var(--accent); color: var(--accent-ink); transition: background-color 1.2s var(--ease); }
.tile:last-child { background: var(--ink); color: var(--bg); }
.src { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.src summary { cursor: pointer; width: fit-content; }
.src a { display: block; margin-top: 6px; overflow-wrap: anywhere; }

/* FAQ as reading text */
.faq .text { margin-top: 32px; columns: 2 300px; column-gap: 48px; }
.faq .text p { break-inside: avoid; margin-bottom: 20px; line-height: 1.5; font-size: 17px; }
.faq .text b { font-weight: 500; }

/* Close */
.close { padding-bottom: 30svh; }
.close p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; margin-top: 24px; }
.close .btn { margin-top: 28px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; padding: 0 0 28px; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot .r { text-align: right; }
.credits { font-size: var(--step-small); color: var(--muted); padding-bottom: 28px; }
.credits summary { cursor: pointer; width: fit-content; }
.credits li { margin-top: 4px; }

/* Entrances */
[data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-rise].in > * { opacity: 1; transform: none; }
[data-rise].in > *:nth-child(2) { transition-delay: .08s; }
[data-rise].in > *:nth-child(3) { transition-delay: .16s; }
[data-rise].in > *:nth-child(4) { transition-delay: .24s; }
[data-rise].in > *:nth-child(n+5) { transition-delay: .32s; }
.no-js [data-rise] > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  [data-rise] > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Phone: the window comes first and stays behind the first section */
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .window { order: 0; position: sticky; top: 0; height: 58svh; z-index: 0; }
  body.inner .window { height: 34svh; }
  body.inner .arch { margin: 10px 22% 0; }
  .arch { margin: 16px 12% 0; }
  .read { position: relative; z-index: 1; background: var(--bg); transition: background-color 1.2s var(--ease); }
  .top { padding: 18px 20px; }
  .top nav { gap: 14px; font-size: 15px; }
  .top nav .hide-s { display: none; }
  .sheet { padding: 0 20px; }
  .hero { min-height: auto; padding: 40px 0 0; }
  .mapbox { grid-template-columns: 1fr; }
  .match .split { grid-template-columns: 1fr; }
  .cells { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic img { aspect-ratio: 4 / 3; }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .tile { aspect-ratio: 1; }
  .faq .text { columns: 1; }
  .foot { grid-template-columns: 1fr; gap: 8px; }
  .foot .r { text-align: left; }
}

/* Inner pages */
.crumb { font-size: 15px; color: var(--muted); }
.crumb a { text-decoration: none; }
.pricepage, .waypage { padding-top: clamp(24px, 5vw, 72px); }
.pricepage h1, .waypage h1, .prose h1 { font-size: var(--step-head); max-width: 16ch; margin-top: 10px; }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; margin-top: 24px; }
.stamp { margin-top: 18px; font-size: 15px; color: var(--muted); }
.plist { margin-top: 40px; display: grid; gap: 6px; }
.price { background: var(--surface); padding: 22px 20px; transition: background-color 1.2s var(--ease); }
.price h3 { font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.25; }
.price .amount { font-size: var(--step-lead); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price .eur { font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price .range { display: block; height: 6px; background: var(--bg); position: relative; margin: 12px 0 4px; }
.price .range i { position: absolute; top: 0; bottom: 0; background: var(--accent); transition: background-color 1.2s var(--ease); }
.price .range s { position: absolute; top: -3px; width: 3px; height: 12px; background: var(--ink); }
.price .asked { font-size: 15px; color: var(--muted); }
.price .tip { margin-top: 10px; max-width: 52ch; }
.price .meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.report { margin-top: 10px; font-size: 15px; }
.report summary { cursor: pointer; width: fit-content; color: var(--muted); }
.report form { display: grid; gap: 10px; margin-top: 12px; max-width: 420px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input { font: inherit; color: var(--ink); background: var(--bg); border: 0; padding: 12px 14px; width: 100%; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.small { height: 44px; padding: 0 20px; width: fit-content; }
.msg { font-size: 15px; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.watch .text, .next .links { margin-top: 28px; }
.watch .text p { margin-bottom: 16px; max-width: 56ch; }
.watch b { font-weight: 500; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.links a { background: var(--surface); padding: 18px; text-decoration: none; display: grid; gap: 4px; transition: transform .2s var(--ease), background-color 1.2s var(--ease); }
.links a:hover { transform: translateY(-2px); }
.links a b { font-weight: 500; font-size: 18px; }
.links a span { color: var(--muted); font-size: 15px; }
.links.big { margin-top: 36px; }
.src { margin-top: 48px; }
.src ol { padding-left: 20px; columns: 2 220px; }
.waypage .map { margin-top: 32px; max-width: 520px; }
.waypage .route-line { margin-top: 18px; font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; }
.waypage .facts { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.waypage .facts b { font-weight: 500; }
.others .chips a { text-decoration: none; }
.prose { padding-top: clamp(24px, 5vw, 72px); max-width: 60ch; }
.prose h2 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-top: 40px; }
.prose p, .prose li { margin-top: 12px; }
.signup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; max-width: 480px; }
.signup input[type=email] { flex: 1 1 220px; background: var(--surface); }
.signup .btn { margin-top: 0; }
.signup .msg { flex-basis: 100%; }
.bars li.go { display: block; }
.bars li.go a { color: var(--accent); }
.close { padding-bottom: 20svh; }

/* Language menu: compact, opens over the page, never wider than the screen */
.top nav { align-items: center; }
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; padding: 6px 10px; background: var(--surface); font-size: 15px; transition: background-color 1.2s var(--ease); }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: " ▾"; color: var(--muted); }
.langlist { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; background: var(--bg); padding: 8px; width: min(320px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 0 0 1px var(--surface); }
.langlist a { padding: 9px 10px; text-decoration: none; font-size: 15px; }
.langlist a:hover, .langlist a[aria-current] { background: var(--surface); }
.langbar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 30; background: var(--ink); color: var(--bg); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; }
.langbar[hidden] { display: none; }
.langbar a, .langbar button { color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .langmenu summary { padding: 5px 8px; } }

/* Phone: the figure tiles never push the page sideways */
@media (max-width: 860px) { .mosaic { grid-template-columns: minmax(0, 1fr); } .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tile { min-width: 0; } .tile b { font-size: clamp(2rem, 11vw, 3rem); } }

/* Arabic and Hebrew: Clash Grotesk first (it has no Arabic or Hebrew letters, so Latin words keep the brand face),
   then Alexandria for headings and IBM Plex Sans Arabic for text; Rubik for Hebrew. No negative letter-spacing:
   it breaks connected Arabic letters. Looser lines and slightly larger text. */
:lang(ar) { --face-rtl: "Clash Grotesk", "IBM Plex Sans Arabic", "Geeza Pro", "Helvetica Neue", Arial, sans-serif;
  --face-rtl-head: "Clash Grotesk", "Alexandria", "IBM Plex Sans Arabic", "Geeza Pro", sans-serif; }
:lang(he) { --face-rtl: "Clash Grotesk", "Rubik", "Arial Hebrew", "Helvetica Neue", Arial, sans-serif;
  --face-rtl-head: "Clash Grotesk", "Rubik", "Arial Hebrew", sans-serif; }
:root:is(:lang(ar), :lang(he)) { --step-body: clamp(1.125rem, 1.06rem + .3vw, 1.25rem); --step-lead: clamp(1.3rem, 1.15rem + .7vw, 1.7rem);
  --step-head: clamp(1.9rem, 1.3rem + 2.8vw, 3.6rem); --step-display: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem); }
html:is(:lang(ar), :lang(he)) body, html :is(.lang, .darija, section, div, p, li, a, button, summary):is(:lang(ar), :lang(he)) {
  font-family: var(--face-rtl); letter-spacing: 0; }
html:is(:lang(ar), :lang(he)) body, html :is(.lang, .darija):is(:lang(ar), :lang(he)) { line-height: 1.7; }
html :is(h1, h2, h3):is(:lang(ar), :lang(he)) { font-family: var(--face-rtl-head); letter-spacing: 0; line-height: 1.3; font-weight: 500; }
html :is(h1):is(:lang(ar), :lang(he)) { line-height: 1.2; }
html:is(:lang(ar), :lang(he)) .mark { font-family: var(--face); letter-spacing: -0.04em; }
.langlist a:is(:lang(ar), :lang(he)) { font-family: "IBM Plex Sans Arabic", "Rubik", "Geeza Pro", "Arial Hebrew", var(--face); }
.top nav { line-height: 1.2; }
.top nav > a, .langmenu summary { white-space: nowrap; }
@media (max-width: 400px) { html:is(:lang(ar), :lang(he)) .top nav { gap: 10px; } }


body[data-world="tangier"]    { --bg: #e6e7ee; --surface: #d7d9e6; --accent: #3a4a8c; }
body[data-world="rabat"]      { --bg: #e7e9df; --surface: #d9ddcc; --accent: #4d6a2b; }
body[data-world="casablanca"] { --bg: #e8e7e4; --surface: #dad8d3; --accent: #3e4c5c; }
body[data-world="essaouira"]  { --bg: #e1e9e5; --surface: #d0ddd7; --accent: #276d5e; }
body[data-world="dakhla"]     { --bg: #e9e6dc; --surface: #dcd7c6; --accent: #13808a; }
.citypage { padding-top: clamp(24px, 5vw, 72px); }
.citypage h1 { font-size: var(--step-head); max-width: 16ch; margin-top: 10px; }
.citypage .feel { margin-top: 14px; color: var(--muted); font-size: 17px; }
.citypage .jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 28px; font-size: 15px; }
.citypage .jump a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.cityblock { margin-top: clamp(48px, 7vw, 88px); }
.cityblock h2 { max-width: 22ch; }
.cityblock .text { margin-top: 20px; max-width: 62ch; }
.cityblock .text p { margin-top: 12px; line-height: 1.55; font-size: 17px; }
.cityblock .rows { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--surface); }
.cityblock .rows div { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--surface); }
.cityblock .rows b { font-weight: 500; }
.cityblock .rows p { line-height: 1.5; font-size: 17px; }
.cityblock ol.todo { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: todo; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.cityblock ol.todo li { counter-increment: todo; background: var(--surface); padding: 18px; display: grid; gap: 6px; align-content: start; }
.cityblock ol.todo li::before { content: counter(todo, decimal-leading-zero); color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }
.cityblock ol.todo b { font-weight: 500; font-size: 18px; }
.cityblock ol.todo span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.cityblock .note { margin-top: 18px; font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .cityblock .rows div { grid-template-columns: 1fr; } }


/* ---- community (sections/community.py, src/community.js) ---- */
.wk-acct { display: flex; align-items: center; min-height: 40px; margin-inline-start: auto; flex: none; }
.wk-signin { background: none; border: 1px solid currentColor; padding: 6px 12px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.wk-signin:hover { color: var(--accent); }
.top .wk-acct + nav, .top nav + .wk-acct { margin-left: 0; }
.wk-me { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; }
.wk-me:hover { color: var(--accent); }
.wk-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.wk-av-l { display: inline-grid; place-items: center; font-size: 14px; font-weight: 500; }
.wk-muted { color: var(--muted); font-size: var(--step-small); }
.wk-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: var(--step-small);
  text-decoration: underline; text-underline-offset: 3px; }
.wk-link:hover { color: var(--accent); }
.wk-danger:hover { color: #a3271b; }
.wk-notes { padding-top: clamp(72px, 9vw, 128px); padding-bottom: 56px; }
.wk-notes-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wk-notes h2, .wk-mepage h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
.wk-sub { margin-top: 12px; max-width: 46ch; }
.wk-save { background: transparent; border: 1px solid currentColor; padding: 10px 16px; cursor: pointer; font-size: 15px; }
.wk-save[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wk-list { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.wk-list > li { padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.wk-empty { padding: 18px 0; }
.wk-c-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wk-c-head b { font-weight: 500; }
.wk-tag { font-size: 12px; padding: 2px 8px; border: 1px solid var(--accent); color: var(--accent); }
.wk-c-text { margin-top: 10px; max-width: 60ch; overflow-wrap: anywhere; }
.wk-c-foot { margin-top: 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wk-pending .wk-c-text { opacity: .7; }
.wk-write { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }
.wk-form { display: grid; gap: 12px; width: 100%; max-width: 640px; }
.wk-who { display: flex; align-items: center; gap: 10px; }
.wk-who-big .wk-av { width: 56px; height: 56px; }
.wk-who-big div { display: grid; gap: 2px; }
.wk-kind { display: flex; gap: 18px; font-size: 15px; }
.wk-kind label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.wk-kind input { accent-color: var(--accent); margin: 0; width: auto; }
.wk-topics { display: flex; gap: 8px; flex-wrap: wrap; }
.wk-chip { background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding: 6px 12px; cursor: pointer; font-size: 14px; }
.wk-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wk-form textarea { width: 100%; font: inherit; padding: 14px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  background: var(--surface); color: var(--ink); resize: vertical; min-height: 96px; border-radius: 0; }
.wk-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.wk-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wk-form .btn { height: 44px; }
.wk-form .btn:disabled { opacity: .6; }
.wk-tabs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wk-tabs button { background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding: 8px 14px; cursor: pointer; font-size: 15px; }
.wk-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wk-commpage, .wk-mepage { padding-bottom: 56px; }
.wk-join { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.wk-mepage #wk-me { display: grid; gap: 22px; margin-top: 28px; justify-items: start; }
.wk-mepage #wk-me > * { max-width: 100%; }
.wk-mepage #wk-me > .wk-list, .wk-mepage #wk-me > .wk-saves { width: 100%; }
.wk-mepage h2 { margin-top: 24px; }
.wk-saves { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wk-saves li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.wk-acct-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.wk-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg);
  padding: 12px 18px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 50; max-width: calc(100vw - 32px); }
.wk-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .wk-me span:not(.wk-av) { display: none; }
  .wk-list > li { padding: 14px 0; }
}


/* Darija: right to left; Arabic letters are never letter-spaced (it breaks the joins) */
.darija[dir=rtl] { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, var(--face); line-height: 1.7; }
.darija[dir=rtl] h1, .darija[dir=rtl] h2, .darija[dir=rtl] h3, .darija[dir=rtl] .lead, .darija[dir=rtl] .hero p { letter-spacing: 0; line-height: 1.35; }
.darija[dir=rtl] .hero h1 { max-width: 12ch; }
.darija[dir=rtl] .hero .btn { align-self: flex-start; }
.darija[dir=rtl] .src ol { padding-left: 0; padding-right: 20px; }
.darija .dfacts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; max-width: 56ch; }
.darija .dfacts b { font-weight: 500; }
.darija .dstory { margin-top: 28px; display: grid; gap: 18px; max-width: 58ch; }
.darija .dstory h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; margin-top: 10px; }
.darija .dprices { margin-top: 28px; display: grid; gap: 6px; }
.darija .dprice { background: var(--surface); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.darija .dprice .n { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.darija .dprice .was { grid-column: 1 / -1; font-size: 15px; }
.darija .dprice small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.darija .pricepage h2 { margin-top: 36px; }
.darija .droute { margin-top: 18px; font-weight: 500; font-size: var(--step-lead); }


.ess h1 { font-size: var(--step-head); max-width: 16ch; line-height: 1.02; }
.ess h2 { font-size: var(--step-lead); font-weight: 500; margin-top: 48px; }
.ess .crumb { font-size: var(--step-small); color: var(--muted); margin-bottom: 18px; }
.ess .crumb a { color: inherit; }
.ess-tool { background: var(--surface); padding: 20px; margin-top: 32px; display: grid; gap: 14px; }
.ess-tool label { font-size: var(--step-small); color: var(--muted); display: grid; gap: 6px; }
.ess-tool select, .ess-tool input { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--muted); background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; border-radius: 0; }
.ess-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ess-out { font-size: 17px; line-height: 1.45; }
.ess-out b { font-weight: 500; }
.ess-out .big { font-size: var(--step-lead); line-height: 1.2; display: block; margin-bottom: 6px; }
.ess-out .yes { color: var(--accent); }
.ess-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; max-width: 62ch; }
.ess-list li { line-height: 1.5; }
.ess-list b { font-weight: 500; }
.ess-text p { max-width: 62ch; line-height: 1.55; margin: 0 0 14px; }
.ess-legs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.ess-legs li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; }
.ess-legs .m { font-size: var(--step-small); color: var(--muted); }
.ess-net { width: 100%; height: auto; max-width: 520px; display: block; margin-top: 8px; }
.ess-net line { stroke: var(--muted); stroke-width: 1.4; opacity: .35; }
.ess-net line.train { stroke-width: 2.4; }
.ess-net line.on { stroke: var(--accent); opacity: 1; stroke-width: 3.4; }
.ess-net circle { fill: var(--ink); }
.ess-net circle.on { fill: var(--accent); }
.ess-net text { font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.ess-key { font-size: var(--step-small); color: var(--muted); }
.ess-phr { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ess-phr td { padding: 10px 8px 10px 0; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); vertical-align: top; }
.ess-phr td:first-child { font-weight: 500; }
.ess-phr .ar { direction: rtl; text-align: right; font-size: 18px; white-space: nowrap; }
.ess-phr .en { color: var(--muted); font-size: 15px; display: block; font-weight: 400; }
.ess-months { display: flex; flex-wrap: wrap; gap: 6px; }
.ess-months button { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--muted); background: transparent; color: var(--ink); cursor: pointer; min-width: 44px; }
.ess-months button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ess-reg { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ess-reg td { padding: 8px 8px 8px 0; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); vertical-align: top; font-size: 16px; }
.ess-reg td:first-child { font-weight: 500; white-space: nowrap; }
.ess-city { margin-top: 28px; max-width: 62ch; }
.ess-city h2 { margin-top: 0; }
.ess-city ul { padding-left: 20px; margin: 10px 0 0; }
.ess-city li { margin-bottom: 8px; line-height: 1.5; }
@media (max-width: 420px) { .ess-row { grid-template-columns: 1fr; } .ess-phr .ar { white-space: normal; } }


/* Feelings: slow editorial pages. Scoped to .fl- classes. */
.flhero h1 { font-size: var(--step-display); max-width: 10ch; }
.flhero .lead { max-width: 30ch; }
.flsense h2 { font-size: var(--step-head); max-width: 13ch; }
.flsense .flbody { margin-top: 32px; display: grid; gap: 20px; max-width: 54ch; }
.flsense .flbody p { line-height: 1.6; }
.flline { font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; margin-top: 40px; color: var(--accent); transition: color 1.2s var(--ease); }
.flsense .src, .florigin .src { margin-top: 28px; }
.fleyes h2 { font-size: var(--step-head); max-width: 14ch; }
.fleyes > p { margin-top: 24px; max-width: 46ch; }
.fleyes .links { margin-top: 36px; }
.florigin h2 { font-size: var(--step-head); max-width: 16ch; }
.florigin .flbody { margin-top: 28px; display: grid; gap: 18px; max-width: 56ch; }
.florigin .flbody p { line-height: 1.6; }
.florigin .flbody h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-top: 12px; }
.flrows { margin-top: 28px; display: grid; gap: 6px; max-width: 64ch; }
.flrows > div { background: var(--surface); padding: 16px 18px; display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 18px; transition: background-color 1.2s var(--ease); }
.flrows b { font-weight: 500; }
.flrows p { line-height: 1.5; }
.flroute { margin-top: 24px; font-weight: 500; font-size: var(--step-lead); }
.flprac { margin-top: 24px; display: grid; gap: 10px; max-width: 56ch; list-style: none; padding: 0; }
.flprac b { font-weight: 500; }
.florigin .links { margin-top: 28px; }
.flnote { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 56ch; }
@media (max-width: 560px) { .flrows > div { grid-template-columns: 1fr; } }


body[data-world="her-index"]      { --bg: #ebe6df; --surface: #ddd5ca; --accent: #7a4a2a; }
body[data-world="her-amazigh"]    { --bg: #efe3d6; --surface: #e3cfbb; --accent: #a4441f; }
body[data-world="her-roman"]      { --bg: #ece7dc; --surface: #ddd5c3; --accent: #8a5a2b; }
body[data-world="her-islamic"]    { --bg: #e2e9e3; --surface: #d1ddd4; --accent: #17653f; }
body[data-world="her-andalus"]    { --bg: #e5e9ee; --surface: #d5dce6; --accent: #2d5a8c; }
body[data-world="her-jewish"]     { --bg: #e4e6ee; --surface: #d4d7e5; --accent: #3a3f86; }
body[data-world="her-portuguese"] { --bg: #e3e7e8; --surface: #d1d8da; --accent: #3d5f6b; }
body[data-world="her-saharan"]    { --bg: #f0e7d6; --surface: #e6d6b9; --accent: #9a5d10; }
.her { --e-pre: #6b6259; --e-amz: #a4441f; --e-phn: #7b3f74; --e-rom: #8a5a2b; --e-isl: #17653f; --e-idr: #2f7d5b;
  --e-amv: #8c6a1c; --e-amh: #1f5f7a; --e-mar: #6a4c93; --e-por: #3d5f6b; --e-and: #2d5a8c; --e-jew: #3a3f86;
  --e-saa: #9b2f3c; --e-ala: #0f6e5a; --e-mod: #4c5560; --e-sah: #9a5d10; }
.her h1 { font-size: var(--step-head); max-width: 15ch; line-height: 1.02; }
.her h2 { font-size: var(--step-lead); font-weight: 500; margin-top: 56px; letter-spacing: -0.02em; max-width: 30ch; }
.her .crumb { font-size: var(--step-small); color: var(--muted); margin-bottom: 18px; }
.her .crumb a { color: inherit; }
.her .her-text p { max-width: 62ch; line-height: 1.55; margin: 0 0 14px; }
.her .her-text p:first-child { margin-top: 22px; }
.her .src ol li { margin-bottom: 8px; line-height: 1.4; break-inside: avoid; }
.her .src ol a { display: inline; margin: 0; }
.her-strip { margin-top: 40px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.her-strip svg { display: block; width: 1320px; height: auto; }
.her-strip a rect { transition: transform .4s var(--ease), opacity .4s var(--ease); transform-box: fill-box; transform-origin: bottom; opacity: .78; }
.her-strip a:hover rect, .her-strip a:focus rect, .her-strip a.on rect { opacity: 1; transform: scaleY(1.18); }
.her-strip text { font-family: var(--face); fill: var(--ink); font-size: 11px; }
.her-strip text.d { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.her-strip .axis { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.her-note { font-size: var(--step-small); color: var(--muted); margin-top: 10px; max-width: 62ch; }
.her-era { padding-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: 6px 1fr; gap: 0 22px; }
.her-era .her-line { display: block; width: 6px; background: var(--c); grid-row: 1 / span 5; }
.her-era .when { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.her-era h2 { margin-top: 6px; }
.her-era p { max-width: 60ch; line-height: 1.55; margin: 14px 0 0; }
.her-era .see { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.her-era .see a, .her-era .see span { background: var(--surface); padding: 9px 14px; font-size: 15px; text-decoration: none; }
.her-era .see a { color: var(--ink); }
.her-era .see a:hover { color: var(--accent); }
.her-places { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; max-width: 70ch; }
.her-places li { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.her-places b { font-weight: 500; font-size: 18px; }
.her-places .where { color: var(--muted); font-size: 15px; }
.her-places p { margin: 4px 0 0; line-height: 1.5; }
.her-route { list-style: none; padding: 0; margin: 22px 0 0; max-width: 62ch; counter-reset: s; }
.her-route li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.her-route li::before { content: counter(s); font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 500; }
.her-route li p { margin: 4px 0 0; line-height: 1.5; }
.her-voices { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; max-width: 62ch; }
.her-voices li { line-height: 1.5; padding-left: 18px; border-left: 3px solid var(--accent); }
.her-voices a { color: var(--muted); font-size: var(--step-small); }
.her-fig { margin: 36px 0 0; max-width: 62ch; }
.her-fig img { width: 100%; height: auto; }
.her-fig figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 8px; line-height: 1.4; }
.her-draw { margin: 36px 0 0; max-width: 62ch; background: var(--surface); padding: 22px; }
.her-draw svg { display: block; width: 100%; height: auto; }
.her-draw figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 12px; line-height: 1.4; }
.her-draw .tf { font-family: "Noto Sans Tifinagh", var(--face); fill: var(--ink); font-size: 30px; text-anchor: middle; }
.her-draw .tl { font-family: var(--face); fill: var(--muted); font-size: 11px; text-anchor: middle; }
.her-draw .z1 { fill: var(--accent); } .her-draw .z2 { fill: var(--bg); } .her-draw .z3 { fill: var(--ink); opacity: .8; }
.her-draw .ln { fill: none; stroke: var(--ink); stroke-width: 2; }
.her-draw .lnd { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.her-draw .lab { font-family: var(--face); fill: var(--ink); font-size: 13px; }
.her-map { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.her-map svg { display: block; width: 100%; max-width: 560px; height: auto; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.her-map .land { fill: var(--bg); }
.her-map .site circle { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; transition: r .3s var(--ease); }
.her-map .site text { font-family: var(--face); font-size: 6px; fill: var(--accent-ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.her-map .site.on circle, .her-map .site:hover circle { r: 6.5; }
.her-sites { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: u; }
.her-sites li { background: var(--surface); padding: 14px 16px; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; transition: background-color .3s var(--ease); }
.her-sites li.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.her-sites li > :not(.n) { grid-column: 2; }
.her-sites .n { grid-row: 1 / span 4; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.her-sites b { font-weight: 500; }
.her-sites .y { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.her-sites p { margin: 4px 0 0; line-height: 1.45; font-size: 16px; }
.her-sites a { font-size: 15px; }


body[data-world="ouarzazate"] { --bg: #efe2d6; --surface: #e5d0bf; --accent: #a4462a; }
.quiz > p { margin-top: 20px; max-width: 40ch; }
.qz { margin-top: 28px; background: var(--surface); padding: clamp(22px, 4vw, 40px); max-width: 640px; min-height: 320px; transition: background-color 1.2s var(--ease); }
.qz h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; margin-top: 8px; }
.qz-step { font-size: 15px; color: var(--muted); }
.qz-opts { display: grid; gap: 6px; margin-top: 22px; }
.qz-opts button { text-align: left; border: 0; background: var(--bg); padding: 16px 18px; font-size: 17px; cursor: pointer; transition: transform .2s var(--ease), background-color .3s var(--ease); }
.qz-opts button:hover { transform: translateY(-2px); }
.qz-route { margin-top: 14px; font-weight: 500; }
.qz p:not(.qz-step) { margin-top: 12px; max-width: 46ch; }
.qz-go { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 24px; }
.qz-again { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.index .links { margin-top: 28px; }
.index h2 { font-size: var(--step-head); max-width: 14ch; }
.pagehead.hubpage { padding-top: clamp(24px, 5vw, 72px); }
.hubpage h1 { font-size: var(--step-head); max-width: 16ch; margin-top: 10px; }
.blk h2 { font-size: var(--step-head); max-width: 16ch; }
.blk .col { max-width: 44ch; margin-top: 28px; display: grid; gap: 16px; }
.blk.route .map { margin-top: 28px; max-width: 520px; }
.blk .route-line { margin-top: 18px; font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.blk .note { margin-top: 12px; max-width: 46ch; }
.blk ul.facts, .blk ol.days, .blk ol.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; max-width: 640px; }
.blk ul.facts li, .blk ol.days li, .blk ol.steps li { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; transition: background-color 1.2s var(--ease); }
.blk ul.facts b, .blk ol.days b, .blk ol.steps b { font-weight: 500; }
.blk ol.steps { counter-reset: st; }
.blk ol.steps li { counter-increment: st; grid-template-columns: 2.2em 1fr; }
.blk ol.steps li::before { content: counter(st); grid-row: span 2; font-size: var(--step-lead); color: var(--accent); }
.blk .links { margin-top: 28px; }
.blk .qa { margin-top: 28px; display: grid; gap: 6px; max-width: 680px; }
.blk .qa details { background: var(--surface); transition: background-color 1.2s var(--ease); }
.blk .qa summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 500; position: relative; }
.blk .qa summary::-webkit-details-marker { display: none; }
.blk .qa summary::after { content: "+"; position: absolute; right: 18px; top: 14px; font-size: 22px; transition: transform .3s var(--ease); }
.blk .qa details[open] summary::after { transform: rotate(45deg); }
.blk .qa details p { padding: 0 18px 18px; max-width: 60ch; }
.blk .tbl { margin-top: 28px; overflow-x: auto; }
.blk table { border-collapse: separate; border-spacing: 0 6px; width: 100%; min-width: 480px; font-size: 16px; }
.blk th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 14px 4px; }
.blk td { background: var(--surface); padding: 12px 14px; vertical-align: top; }
.blk ul.pbars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 560px; }
.blk ul.pbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.blk ul.pbars .p { font-variant-numeric: tabular-nums; font-weight: 500; }
.blk ul.pbars .range { grid-column: 1 / -1; height: 6px; background: var(--surface); position: relative; }
.blk ul.pbars .range i { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.blk ul.pbars .key { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.blk img.wide { margin-top: 28px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: url(#arch); }


/* Languages: Arabic pages read right to left; Arabic letters must never be letter-spaced (it breaks the joins) */
.lang[dir=rtl] { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, var(--face); line-height: 1.7; }
.lang[dir=rtl] h1, .lang[dir=rtl] h2, .lang[dir=rtl] h3, .lang[dir=rtl] .lead, .lang[dir=rtl] .hero p { letter-spacing: 0; line-height: 1.35; }
.lang[dir=rtl] .hero h1 { max-width: 12ch; }
.lang[dir=rtl] .src ol { padding-left: 0; padding-right: 20px; }
.lang[dir=rtl] .hero .btn { align-self: flex-start; }
.lang[dir=rtl] .lfacts { padding-right: 0; }
.lang[dir=rtl] .lprice .n { direction: ltr; unicode-bidi: isolate; }
.lang .lfacts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; max-width: 56ch; }
.lang .lfacts b { font-weight: 500; }
.lang .lstory { margin-top: 28px; display: grid; gap: 18px; max-width: 58ch; }
.lang .lstory h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-top: 10px; }
.lang .lprices { margin-top: 28px; display: grid; gap: 6px; }
.lang .lprice { background: var(--surface); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.lang .lprice .n { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lang .lprice small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.lang .lroute { margin-top: 18px; font-weight: 500; font-size: var(--step-lead); }
/* In RTL the honeypot's left: -9999px becomes scrollable width: hide it in place instead */
[dir=rtl] .hp { left: 0; right: auto; clip-path: inset(50%); overflow: hidden; pointer-events: none; }
.lang-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.lang-pick a { background: var(--surface); padding: 10px 16px; text-decoration: none; }


.l2 .daylist { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 46ch; }
.l2 .daylist b { font-weight: 500; display: block; }
.l2 .why { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 44ch; }
.l2 .why li::before { content: "·"; margin-inline-end: 8px; color: var(--accent); }
.l2 .plist2 { margin-top: 32px; display: grid; gap: 6px; }
.l2 .p2 { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.l2 .p2 h3 { font-weight: 500; font-size: 17px; }
.l2 .p2 .amount { font-size: 22px; }
.l2 .p2 .meta, .l2 .p2 .asked { color: var(--muted); font-size: 14px; }
.l2 .tparas { margin-top: 28px; display: grid; gap: 18px; max-width: 58ch; }
.l2 .tparas h2 { font-size: var(--step-lead); }
.l2 .langnote { color: var(--muted); font-size: 15px; }
.l2[dir="rtl"] { text-align: right; }
.l2[dir="rtl"] .facts, .l2[dir="rtl"] .daylist, .l2[dir="rtl"] .why { padding-right: 0; }
.l2[dir="rtl"] .src ol { padding-left: 0; padding-right: 20px; }
.l2[dir="rtl"] .amount, .l2[dir="rtl"] .route-line { unicode-bidi: plaintext; }


body[data-world="vs-bali"]      { --bg: #e3e9dc; --surface: #d3dccb; --accent: #3e7a2e; }
body[data-world="vs-istanbul"]  { --bg: #e9e3e6; --surface: #dcd2d7; --accent: #7a2c4a; }
body[data-world="vs-santorini"] { --bg: #e5e9ef; --surface: #d5dce6; --accent: #1d4f91; }
body[data-world="vs-wadirum"]   { --bg: #efe2d9; --surface: #e5cfc2; --accent: #a33f1f; }
body[data-world="vs-canaries"]  { --bg: #e8e6df; --surface: #dad6cb; --accent: #6a5a2a; }
body[data-world="vs-seville"]   { --bg: #efe6d6; --surface: #e5d6bd; --accent: #b0541a; }
body[data-world="vs-lisbon"]    { --bg: #efe9d6; --surface: #e4dbbb; --accent: #8c6a00; }
body[data-world="vs-cairo"]     { --bg: #ece6da; --surface: #dfd6c4; --accent: #7d5a1e; }
body[data-world="vs-tangier"]   { --bg: #e2e9ea; --surface: #d1dcde; --accent: #1f6477; }

.vshead h1 { font-size: var(--step-head); max-width: 14ch; }
.vshead .vsv { color: var(--accent); }
.vshead .who { margin-top: 18px; color: var(--muted); }
.vshead .lead { margin-top: 24px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.vstally { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.vstally span { background: var(--surface); padding: 12px 18px; font-variant-numeric: tabular-nums; transition: background-color 1.2s var(--ease); }
.vstally b { font-weight: 500; font-size: 1.4em; margin-left: 8px; }
.vsround .n { color: var(--muted); font-size: 16px; }
.vsround h2 { font-size: var(--step-head); margin-top: 10px; }
.vsrows { display: grid; gap: 18px; margin-top: 28px; }
.vsrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.vsrow .nm { font-weight: 500; }
.vsrow .val { font-variant-numeric: tabular-nums; text-align: right; }
.vsrow .txt { grid-column: 1 / -1; color: var(--muted); font-size: 17px; max-width: 46ch; }
.vsrow .m { grid-column: 1 / -1; height: 10px; background: var(--surface); position: relative; transition: background-color 1.2s var(--ease); }
.vsrow .m i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width 1.1s var(--ease) .2s; }
.vsrow.win .m i { background: var(--accent); }
.vsround.in .m i, .no-js .vsrow .m i { width: var(--w); }
.vsrow .wk { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.vsrow .wk span { background: var(--surface); padding: 8px 10px; font-size: 15px; font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; transition: background-color 1.2s var(--ease); }
.vsrow .wk span em { font-style: normal; color: var(--muted); }
.vsrow .wk span.hot { background: var(--accent); color: var(--accent-ink); }
.vsrow .wk span.hot em { color: inherit; opacity: .8; }
.vsverdict { margin-top: 26px; font-size: var(--step-lead); line-height: 1.25; max-width: 30ch; }
.vsverdict b { font-weight: 500; color: var(--accent); }
.vsnote { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.vsend p { margin-top: 22px; font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.vstake { margin-top: 18px; color: var(--muted); font-size: var(--step-small); max-width: 50ch; }

.tea h1 { font-size: var(--step-head); max-width: 12ch; }
.tea .lead { margin-top: 24px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.glasses { display: grid; gap: 22px; margin-top: 40px; }
.glass { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 14px; align-items: end; }
.glass .c { font-weight: 500; }
.glass .c small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.glass .cups { display: flex; gap: 3px; align-items: end; flex-wrap: wrap; min-height: 26px; }
.glass .cups i { width: 14px; height: 22px; background: var(--accent); clip-path: polygon(8% 0, 92% 0, 80% 100%, 20% 100%);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease), background-color 1.2s var(--ease); }
.glass .cups i.half { width: 7px; clip-path: polygon(16% 0, 100% 0, 100% 100%, 40% 100%); }
.glass .cups i.up { background: var(--surface); }
.tea.in .cups i, .no-js .glass .cups i { opacity: 1; transform: none; }
.glass .p { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.glass .p small { display: block; color: var(--muted); font-size: 14px; }
.teakey { margin-top: 26px; color: var(--muted); font-size: 15px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.teakey i { display: inline-block; width: 10px; height: 16px; background: var(--accent); clip-path: polygon(8% 0, 92% 0, 80% 100%, 20% 100%); margin-right: 6px; vertical-align: -2px; }
.teakey i.up { background: var(--surface); }
.teanone { margin-top: 28px; color: var(--muted); max-width: 46ch; }
.vsindex .links { margin-top: 32px; }
@media (max-width: 860px) {
  .glass { grid-template-columns: 1fr auto; }
  .glass .cups { grid-column: 1 / -1; order: 3; }
  .vsrow .wk span { flex-direction: column; }
}


.qhub .gapnote { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.qsteps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.qgroup h2 { display: flex; align-items: baseline; gap: 12px; }
.qgroup h2 span { color: var(--muted); font-size: 15px; font-weight: 400; }
.qlist { display: grid; gap: 6px; margin-top: 24px; }
.qlist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; background: var(--surface); padding: 16px 18px; text-decoration: none; transition: transform .2s var(--ease); }
.qlist a:hover { transform: translateY(-2px); }
.qlist b { font-weight: 500; font-size: 18px; }
.qlist .qmeta { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qlist .qgap { grid-column: 1 / -1; display: flex; gap: 3px; min-width: 0; }
.qlist .qgap i { display: block; height: 4px; flex: 0 1 auto; min-width: 0; background: var(--accent); opacity: .85; }
.qlist .qgap i.off { background: var(--muted); opacity: .25; }
.qpage .answer { margin-top: 28px; max-width: 60ch; }
.qpage .answer p { margin-top: 14px; line-height: 1.55; font-size: 18px; }
.qpage .wrong { margin-top: 36px; padding: 20px 22px; background: var(--surface); max-width: 60ch; }
.qpage .wrong h2 { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.qpage .wrong p { margin-top: 8px; line-height: 1.5; }
.qpage .asked { margin-top: 18px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.qpage .src a { display: block; }
.qbars { margin-top: 32px; display: grid; gap: 18px; }
.qbar { display: grid; gap: 6px; }
.qbar .qtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.qbar .qtop b { font-weight: 500; font-size: 18px; }
.qbar .qtop span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qbar .qtrack { height: 10px; background: var(--surface); }
.qbar .qfill { height: 100%; background: var(--accent); transform-origin: left; }
.qbar p { color: var(--muted); line-height: 1.45; }
.qbar p b { color: var(--ink); font-weight: 500; }
.qbar a { font-size: 15px; width: fit-content; }


.sci h1 { font-size: var(--step-head); max-width: 16ch; line-height: 1.02; }
.sci h2 { font-size: var(--step-lead); font-weight: 500; margin-top: 48px; letter-spacing: -0.02em; }
.sci .crumb { font-size: var(--step-small); color: var(--muted); margin-bottom: 18px; }
.sci .crumb a { color: inherit; }
.sci .sci-text p { max-width: 62ch; line-height: 1.55; margin: 0 0 14px; }
.sci .sci-text p:first-child { margin-top: 20px; }
.sci .sci-list { padding-left: 20px; margin: 18px 0 0; display: grid; gap: 12px; max-width: 62ch; }
.sci .sci-list li { line-height: 1.5; }
.sci .sci-grade { margin-top: 28px; background: var(--surface); padding: 18px 20px; display: grid; gap: 6px; max-width: 62ch; }
.sci .sci-grade .g { font-weight: 500; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.sci .sci-grade .g i { font-style: normal; color: var(--accent); }
.sci .sci-grade p { margin: 0; line-height: 1.5; }
.sci .sci-meter { display: flex; gap: 4px; margin-top: 2px; }
.sci .sci-meter span { width: 28px; height: 6px; background: var(--bg); }
.sci .sci-meter span.on { background: var(--accent); }
.sci .sci-try { margin-top: 18px; max-width: 62ch; line-height: 1.55; }
.sci .src ol li { margin-bottom: 8px; line-height: 1.4; break-inside: avoid; }
.sci .src ol a { display: inline; margin: 0; }
.sci-index .links a span.grade { color: var(--ink); font-size: 14px; }
.sci-scale { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; max-width: 62ch; }
.sci-scale b { font-weight: 500; }


.facts-table .tw { overflow-x: auto; margin-top: 16px; }
.facts-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); vertical-align: top; }
.facts-table td.n, .facts-table th:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
