/* Board page (BoardPage.astro, / and /dv/), prompt F and F+ ("Breathes x Tides", purple). Global on purpose: the
   lights, labels, story, list and display are rendered in the browser, so Astro scoped styles would not reach them.
   Colours are the dusk / light tokens in brand.css. Logical properties only; the few physical sides are marked
   "physical": Leaflet panes are always left to right, and labels sit on geography, which does not mirror.
   Sizes over the map follow the board's own size (container query units, cqw and cqh). */
html,body{height:100%}
body{background:var(--bg-paint,var(--bg));color:var(--text);overflow:hidden}

/* ---------- Header: over the map ---------- */
.hdr{position:fixed;top:var(--top,0px);inset-inline:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:clamp(12px,2.4vh,24px) clamp(16px,3vw,48px);pointer-events:none}
.hdr>*{pointer-events:auto}
.hdr .lockup{gap:14px}
.hdr .lockup img{height:50px}   /* the Ministry logo alone since 22-11-2026: a little larger, so its name can be read */
.hdr-nav{display:flex;align-items:center;gap:8px}
.hdr .lang{font-size:17px;text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:6px;padding:0 14px}
.hdr .lang:lang(dv){text-underline-offset:.55em;font-size:calc(17px * .85);min-width:69px;justify-content:center}   /* Rasmee reads larger: 85% matches "English" */
.hdr .add{min-height:44px;padding:0 18px;font-size:15px}
.mode-btn .moon,.mode-btn.is-light .sun{display:none}
.mode-btn.is-light .moon{display:block}

/* ---------- The board: a full-screen map with everything else over it ---------- */
.board{position:fixed;inset:0;top:var(--top,0px);container:board/size;overflow:hidden;touch-action:none}
/* a pinch over the board zooms the map, never the page (view.ts); what scrolls keeps scrolling */
.hdr{touch-action:none}
.story .s-in,.find ul{touch-action:pan-y}
.list{touch-action:pan-y pinch-zoom}   /* the list reads like a page: a pinch zooms the page there */
.map{position:absolute;inset:0;z-index:0;background:transparent;font:inherit;outline:none}
.map:focus-visible{outline:var(--focus);outline-offset:-6px}
.leaflet-container{background:transparent;font:inherit;direction:ltr}
.leaflet-container.is-live{cursor:grab}
.leaflet-dragging .leaflet-container,.leaflet-container.leaflet-dragging{cursor:grabbing}
.leaflet-control-attribution{background:transparent!important;color:var(--muted)!important;font-size:11px!important;line-height:1.4!important;padding:0 8px 4px!important}
.leaflet-control-attribution a{color:inherit!important;display:inline-block;min-height:24px;line-height:24px;padding-inline:4px}   /* a 24 px target (WCAG 2.2) */
.over{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;overflow:visible}

/* the sea (tide lines and island dots, painted on a canvas) breathes; the islands stay still */
.leaflet-sea-pane{animation:tide 11s ease-in-out infinite;will-change:opacity}
@keyframes tide{0%,100%{opacity:.72}50%{opacity:1}}
path.isl{fill:var(--isl);stroke:none;transition:fill .6s}
path.isl.near{fill:var(--near)}
path.hit{fill:transparent;stroke:none;cursor:zoom-in;transition:fill .3s}
.z-country path.hit:hover{fill:var(--hover)}
.map:not(.z-country) path.hit{cursor:inherit}
path.focusring{fill:none;stroke:var(--hi);stroke-width:1.5}

/* atoll names: muted text beside each atoll, buttons; hidden once an atoll fills the view */
.albl-wrap{background:none;border:0}
.albl{position:absolute;top:0;transform:translateY(-50%);background:none;border:0;padding:6px 4px;margin:0;color:var(--muted);font-size:12px;line-height:1.2;
  min-width:24px;min-height:24px;white-space:nowrap;cursor:pointer;border-radius:6px;text-shadow:0 0 6px var(--bg),0 0 3px var(--bg);transition:opacity .4s;
  pointer-events:auto}   /* Leaflet's marker icons take no clicks; the name inside does */
span.albl{pointer-events:none;cursor:default}
button.albl:hover,button.albl:focus-visible{color:var(--text);text-decoration:underline}
.albl:lang(dv){font-size:14.5px;line-height:1.6}
.albl-wrap.west .albl{right:var(--off,14px)}   /* physical: west is west on a map */
.albl-wrap.east .albl{left:var(--off,14px)}    /* physical: as above */
.map.is-close .albl{opacity:0;pointer-events:none;visibility:hidden}
/* before the launch, an atoll name on the "Launching ..." line fades out (view.ts clearOfPrelaunch) */
.albl.off-prelaunch{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s,visibility 0s .25s}

/* island names: placed in screen space when the map rests (map.ts), hidden while it moves */
.leaflet-ilabels-pane{pointer-events:none;transition:opacity .25s}
.map.is-moving .leaflet-ilabels-pane{opacity:0;transition:none}
.ilbl{position:absolute;top:0;white-space:nowrap;font-size:12.5px;line-height:20px;color:var(--il);transform:translateY(-50%);
  text-shadow:0 0 3px var(--bg),0 0 2px var(--bg),0 0 1px var(--bg)}
.ilbl.lit{color:var(--warm)}
.ilbl.focus{color:var(--hi);font-weight:700}
.ilbl:lang(dv){font-size:14.5px;line-height:24px}
.ilbl.focus:lang(dv){font-weight:400}

/* lights: one per commitment, the same size at every zoom; a shared place fans out by 11 px (map.ts) */
.lw{background:none;border:0;pointer-events:none}
.light{display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;pointer-events:auto;transition:opacity .5s}
.light .halo{position:absolute;left:50%;top:50%;translate:-50% -50%;width:48px;height:48px;border-radius:50%;pointer-events:none;   /* physical: centring */
  background:radial-gradient(closest-side,color-mix(in srgb,var(--glow) 85%,transparent) 0%,color-mix(in srgb,var(--orange) 30%,transparent) 38%,transparent 100%);
  animation:halo 5s ease-in-out infinite;animation-delay:calc(var(--n,0) * -.55s);will-change:transform,opacity}
.light .core{position:relative;width:9.2px;height:9.2px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 1.2px var(--core-line)}
.light:hover .core,.light:focus-visible .core,.light.is-sel .core{box-shadow:0 0 0 2.5px var(--hi)}
.light:focus-visible{outline:var(--focus);outline-offset:2px}
.light.is-sel .halo{animation:swell 2.8s ease-out forwards}
@keyframes halo{0%,100%{transform:scale(.72);opacity:.7}50%{transform:scale(1.3);opacity:1}}
/* a soft ring leaves each light every few seconds, staggered so they never pulse together */
.light .core::after,.orb .core::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:1.5px solid var(--orange);opacity:0;pointer-events:none;
  animation:ping 5.2s cubic-bezier(.2,.6,.3,1) infinite;animation-delay:calc(var(--n,0) * -.77s)}
@keyframes ping{0%{transform:scale(1);opacity:.85}60%,100%{transform:scale(3.4);opacity:0}}
.light.is-off .core::after,.light.is-sel .core::after{animation:none}
@keyframes swell{0%{transform:scale(.7)}30%{transform:scale(1.6)}100%{transform:scale(1.2)}}
.map.has-sel .light:not(.is-sel),.map.has-sel .orb:not(.is-sel){opacity:.45}
/* many in one spot: one orb with the count (lights.ts); its lights are hidden until it opens into a spiral */
.lw.in-orb{display:none}
/* a spiral of many: the glow sits on the core, so each light stays inside its own 24 px target and the spiral
   reads as lights, not a blur */
.lw.bloom .light .halo{display:none}
.lw.bloom .light .core{box-shadow:0 0 0 1.2px var(--core-line),0 0 9px 2px color-mix(in srgb,var(--orange) 75%,transparent)}
.lw.bloom .light:hover .core,.lw.bloom .light:focus-visible .core{box-shadow:0 0 0 2.5px var(--hi),0 0 9px 2px color-mix(in srgb,var(--orange) 75%,transparent)}
.map.is-bloom .lw:not(.bloom) .light,.map.is-bloom .orb{opacity:.22;pointer-events:none}
.map.is-bloom .lw.bloom{z-index:1000!important}
.orb{display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;pointer-events:auto;transition:opacity .5s}
.orb .halo{position:absolute;left:50%;top:50%;translate:-50% -50%;width:190%;height:190%;border-radius:50%;pointer-events:none;   /* physical: centring */
  background:radial-gradient(closest-side,color-mix(in srgb,var(--glow) 80%,transparent) 0%,color-mix(in srgb,var(--orange) 32%,transparent) 42%,transparent 100%);
  animation:halo 5s ease-in-out infinite;animation-delay:calc(var(--n,0) * -.55s)}
.orb .core{position:relative;display:grid;place-items:center;width:64%;height:64%;border-radius:50%;background:var(--orange);
  box-shadow:0 0 0 1.5px var(--core-line),0 0 18px color-mix(in srgb,var(--orange) 70%,transparent)}
.orb b{color:#0B0B0B;font-weight:700;font-size:13px;line-height:1;font-variant-numeric:tabular-nums}
.orb:hover .core,.orb:focus-visible .core,.orb.is-sel .core{box-shadow:0 0 0 2.5px var(--hi),0 0 22px color-mix(in srgb,var(--orange) 80%,transparent)}
.orb:focus-visible{outline:var(--focus);outline-offset:3px}
.board.is-intro .orb{animation:on .7s both;animation-delay:calc(1.7s + var(--n,0) * var(--step,140ms))}
.display .orb{pointer-events:none}
.display .orb b{font-size:calc(1.6 * var(--u))}
.light.is-off{opacity:.1!important;pointer-events:none}
.light.is-off .halo{animation:none}
.light.is-new .core{box-shadow:0 0 0 2.5px var(--warm)}
/* round 3: an achieved result is a golden amber star with a soft sparkle (lights.ts); shape and colour both differ from
   the round orange light, so it reads without colour too. --gold is darker in the light colourway (3.5:1 on white). */
.light .star,.orb .ostar{display:none}
.light.is-achieved .core{width:17px;height:17px;border-radius:0;background:none;box-shadow:none}
.light.is-achieved .star{display:block;width:100%;height:100%;overflow:visible;fill:var(--gold);stroke:var(--core-line);stroke-width:1.3;stroke-linejoin:round;
  animation:sparkle 3.6s ease-in-out infinite;animation-delay:calc(var(--n,0) * -.6s)}
.light.is-achieved:hover .star,.light.is-achieved:focus-visible .star,.light.is-achieved.is-sel .star{stroke:var(--hi);stroke-width:2.4}
.light.is-achieved .halo{background:radial-gradient(closest-side,color-mix(in srgb,var(--gold-glow) 85%,transparent) 0%,color-mix(in srgb,var(--gold) 30%,transparent) 38%,transparent 100%)}
.light.is-achieved .core::after{inset:1px;border-color:var(--gold-glow)}
.lw.bloom .light.is-achieved .core{box-shadow:none}
@keyframes sparkle{0%,100%{transform:scale(1) rotate(0deg);filter:drop-shadow(0 0 1.5px var(--gold-glow))}50%{transform:scale(1.14) rotate(8deg);filter:drop-shadow(0 0 5px var(--gold-glow))}}
.orb.has-achieved .ostar{display:block;position:absolute;inset-block-start:-3px;inset-inline-end:-3px;width:15px;height:15px;pointer-events:none}
.orb.has-achieved .ostar .star{display:block;width:100%;height:100%;overflow:visible;fill:var(--gold);stroke:var(--core-line);stroke-width:1.6;stroke-linejoin:round}

/* ripple and line, in screen space: the same size at every zoom */
.over .wave,.d-over .wave{fill:none;stroke:var(--ripple);stroke-width:1.2;transform-box:fill-box;transform-origin:center;transform:scale(0);opacity:0;
  animation:wave 2.8s cubic-bezier(.15,.6,.3,1) forwards}
@keyframes wave{0%{transform:scale(.02);opacity:.95}100%{transform:scale(1);opacity:0}}
.over .link,.d-over .link{fill:none;stroke:var(--orange);stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1s .3s cubic-bezier(.3,.6,.2,1) forwards}
@keyframes draw{to{stroke-dashoffset:0}}

/* the opening moment, once per visit: islands appear, tide lines ripple out (on the canvas), then the lights */
.board.is-intro .leaflet-land-pane{animation:fade 1.4s .1s both}
.board.is-intro .light{animation:on .7s both;animation-delay:calc(1.7s + var(--n,0) * var(--step,140ms))}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes on{from{opacity:0}to{opacity:1}}

/* ---------- Title, bottom on the inline-start side ---------- */
.intro{position:absolute;z-index:10;inset-inline-start:clamp(16px,3.4cqw,56px);bottom:calc(var(--foot) + var(--sup-h,84px) + clamp(12px,2.6cqh,28px));max-width:min(35cqw,640px);transition:opacity .6s}
.title{font-weight:200;font-size:clamp(48px,11.5cqh,150px);line-height:.95;letter-spacing:-.025em}
.title .v,.title .r{display:block}
.title .r{font-weight:700;color:var(--orange-text);letter-spacing:-.03em}
/* round 5: smaller and lower, so the title leaves clear space under the Ministry logo */
.title:lang(dv){font-family:var(--font-dv-display);font-weight:400;font-size:clamp(30px,6.2cqh,74px);line-height:1.45;letter-spacing:0}
.title:lang(dv) .r{font-weight:400;letter-spacing:0}
.intro .sub{margin-block-start:22px;font-size:clamp(17px,2.6cqh,27px);line-height:1.45;color:var(--soft);max-width:24em}
.intro .sub:lang(dv){line-height:1.75}
.intro .meta{margin-block-start:16px;display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;font-size:clamp(14px,1.8cqh,19px);color:var(--muted)}
/* the campaign lockup (CampaignDays.astro): a large orange 16 beside two lines */
.days{display:flex;align-items:center;gap:14px}
.days-n{flex:none;font-weight:700;line-height:.86;letter-spacing:-.03em;color:var(--orange-text);font-variant-numeric:lining-nums}
.days-t{display:flex;flex-direction:column;gap:2px;line-height:1.3}
.days-what{color:var(--soft)}
.days-when{color:var(--muted);font-size:.88em}
.days-t:lang(dv){line-height:1.75}
.intro .days{margin-block-start:10px}
.intro .days-n{font-size:clamp(40px,6.2cqh,66px)}
.intro .days-t{font-size:clamp(14px,1.8cqh,19px)}
.intro .contact{margin-block-start:2px;font-size:clamp(14px,1.8cqh,19px);color:var(--muted)}
.intro .contact .link{color:var(--text);font-weight:400;min-height:44px;display:inline-flex;align-items:center}
.textbtn{min-height:44px;background:none;border:0;padding:0;color:var(--text);font-size:14px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--orange);cursor:pointer}
.intro .list-open{display:none}
.board.has-story .intro{opacity:.16;pointer-events:none}
.board.is-zoomed .intro{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s,visibility 0s .4s}

/* ---------- Search, under the header on the inline-end side ---------- */
.find{position:absolute;z-index:30;top:calc(clamp(12px,2.4cqh,24px) + 74px);inset-inline-end:clamp(16px,3cqw,48px);width:min(300px,44cqw)}
.find input{width:100%;min-height:44px;border-radius:999px;border:1px solid color-mix(in srgb,var(--text) 22%,transparent);background:var(--field);color:var(--text);font-size:15px;padding-block:0;padding-inline:42px 18px}
/* the magnifier at the reading start (round 5): left in English, right in Dhivehi, where the text starts */
.find-icon{position:absolute;inset-inline-start:16px;top:22px;width:16px;height:16px;margin-top:-8px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.find input:dir(rtl),.find input:dir(rtl)::placeholder{text-align:start}
.find input::placeholder{color:var(--muted)}
.find input:focus-visible{outline:var(--focus);outline-offset:1px}
.find ul{list-style:none;margin-block-start:6px;padding:6px;background:var(--panel);border:1px solid var(--edge);border-radius:14px;
  max-height:340px;overflow:auto;box-shadow:var(--pshadow)}
.find li{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:4px 12px;border-radius:9px;font-size:15px;cursor:pointer}
.find li small{color:var(--muted);font-size:13px;margin-inline-start:auto}
.find li[aria-selected="true"],.find li:hover{background:color-mix(in srgb,var(--text) 8%,transparent)}
.find li .lit{width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 8px var(--orange);flex:none}
.find li.empty{color:var(--muted);cursor:default}

/* ---------- Crumb, hint, scale, zoom buttons ---------- */
.crumb{position:absolute;z-index:25;top:calc(clamp(12px,2.4cqh,24px) + 74px);inset-inline-start:clamp(16px,3cqw,48px);display:flex;align-items:center;gap:14px}
.where{font-size:17px;padding:7px 14px;border-radius:999px;background:var(--scrim);text-shadow:0 0 6px var(--bg)}
.where:empty{display:none}
.hint{position:absolute;z-index:10;bottom:clamp(14px,2.4cqh,26px);inset-inline:0;margin-inline:auto;width:max-content;max-width:90%;font-size:13px;color:var(--muted);
  pointer-events:none;text-shadow:0 0 6px var(--bg),0 0 3px var(--bg);transition:opacity .4s}
.board.is-zoomed .hint,.board.has-story .hint{opacity:0}
/* "Supported by UNFPA" and the disclaimer (Support.astro): the bottom corner at the reading start, on the hint's line,
   under the intro (which sits above it: --sup-h, measured in main.ts), inside the 30% beside the map, so it stays
   clear of the hint and the scale (the middle) and of the zoom buttons, the area filters and the OSM credit (the
   other side). Always shown, zoomed in too; it takes no clicks, so a light under it can still be chosen. */
.board{--foot:clamp(14px,2.4cqh,26px)}
.support{position:absolute;z-index:10;inset-inline-start:clamp(16px,3.4cqw,56px);bottom:var(--foot);max-width:min(440px,calc(30cqw - clamp(16px,3.4cqw,56px) - 16px));pointer-events:none;
  text-shadow:0 0 6px var(--bg),0 0 3px var(--bg),0 0 2px var(--bg)}   /* legible over tide lines and islands when zoomed in */
.display .support{display:none}
.scale{position:absolute;z-index:10;bottom:clamp(14px,2.4cqh,26px);inset-inline:0;margin-inline:auto;width:max-content;display:flex;align-items:center;gap:10px;
  font-size:12px;color:var(--muted);pointer-events:none;opacity:0;transition:opacity .4s;white-space:nowrap;background:var(--scrim);padding:4px 12px;border-radius:999px;direction:ltr}
.board.is-zoomed .scale{opacity:1}
.scale .bar{display:block;height:7px;border:1px solid var(--muted);border-block-start:0}
/* round 5: a little higher than the middle, so there is clear space between the full-screen button and the area filter */
.zoom{position:absolute;z-index:20;inset-inline-end:clamp(16px,3cqw,48px);top:41%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px}
.zoom .all{margin-block-start:8px}

/* ---------- Area filters, bottom on the inline-end side: pills under "Filter by area". Round 5: no colours (areas are
   not colour-coded; orange is only ever a commitment): the chosen pill is filled and ringed, the others outlined. The
   column never runs off the screen: it is at most a third of the board wide and a long label wraps. ---------- */
.marks{position:absolute;z-index:20;bottom:clamp(24px,6cqh,64px);inset-inline-end:clamp(16px,3cqw,48px);display:flex;flex-direction:column;align-items:flex-end;gap:6px;
  max-width:min(300px,calc(100cqw - 2 * clamp(16px,3cqw,48px)));transition:opacity .4s}
[dir="rtl"] .marks{align-items:flex-start}
.m-areas{display:flex;flex-direction:column;align-items:inherit;gap:inherit}
/* round 3: Youth, a filter of its own under the areas: a small box that fills when it is on */
.marks .m-youth{margin-block-start:6px}
.m-youth .yk{width:12px;height:12px;border-radius:3px;border:1.5px solid currentColor;flex:none}
.m-youth[aria-pressed="true"] .yk{background:var(--text);box-shadow:inset 0 0 0 2px var(--bg)}
/* round 5: the label and pills a little smaller (38 px: still well over the 24 px target size) */
.marks-h{font-size:12px;color:var(--muted);text-shadow:0 0 6px var(--bg),0 0 3px var(--bg);margin-block-end:2px}
.marks button{display:inline-flex;align-items:center;gap:9px;min-height:38px;max-width:100%;padding:5px 15px;border-radius:19px;font-size:14px;line-height:1.3;
  text-align:start;white-space:normal;overflow-wrap:anywhere;color:var(--soft);cursor:pointer;
  border:1px solid color-mix(in srgb,var(--text) 22%,transparent);background:var(--scrim);transition:border-color .2s,background-color .2s,color .2s,box-shadow .2s}
.marks button:hover{border-color:var(--text);color:var(--text)}
.marks button[aria-pressed="true"]{color:var(--text);border-color:var(--text);background:color-mix(in srgb,var(--text) 14%,var(--bg));box-shadow:inset 0 0 0 1px var(--text)}
.marks-toggle{display:none}
.board.has-story :is(.marks,.marks-toggle){opacity:.12;pointer-events:none}

/* ---------- Tooltip on a light ---------- */
.tip{position:absolute;z-index:35;max-width:260px;padding:10px 12px;background:var(--field);border:1px solid var(--story-edge);border-inline-start:2px solid var(--orange);box-shadow:var(--list-shadow);pointer-events:none;
  display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.35}
.tip b{font-weight:400;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tip span{color:var(--muted);font-size:13px}
.tip :lang(dv){line-height:1.8}

/* ---------- Story: rises beside the light, after the ripple ---------- */
.story{position:absolute;z-index:40;outline:none;filter:drop-shadow(var(--drop))}
.story .crest{display:block;width:100%;height:16px;fill:var(--panel);stroke:var(--story-edge);stroke-width:1px;vector-effect:non-scaling-stroke;overflow:visible}
.story .s-in{background:var(--panel);padding:8px 26px 20px;max-height:calc(100cqh - 150px);overflow:auto;border-radius:0 0 6px 6px;
  border:1px solid var(--story-edge);border-block-start:0;margin-block-start:-1px}
/* round 5: calmer and quicker: a small rise with a fade (about 420 ms), a short fade out, and between stories the card
   glides from light to light (View Transitions where supported; the transition layer takes no clicks) */
.story.in{animation:rise .42s .08s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
.story.out{animation:story-out .26s ease-in both;pointer-events:none}
@keyframes story-out{to{opacity:0;transform:translateY(6px)}}
.story{view-transition-name:story}
::view-transition{pointer-events:none}
::view-transition-group(story){animation-duration:.38s;animation-timing-function:cubic-bezier(.2,.7,.2,1)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.3s}
.s-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;color:var(--text);background:none;border:0;padding:0 4px;margin:0 -4px 6px;cursor:pointer}
.s-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
[dir="rtl"] .s-back svg{transform:scaleX(-1)}
.s-back:hover{color:var(--warm)}
.s-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-block-end:10px;font-size:14px;color:var(--muted)}
.s-cat{color:var(--warm)}
.tag{border:1px solid var(--line-2);border-radius:999px;padding:0 9px;font-size:12px;line-height:20px;color:var(--muted)}
.tag.new{border-color:var(--orange);color:var(--warm)}
/* round 3: "Result achieved" (with its date) beside a small golden star, in the story, the list and on the screen; Youth as a tag */
.res{display:inline-flex;align-items:center;gap:6px;color:var(--gold-text);font-weight:700}
.res .r-star{width:14px;height:14px;flex:none;fill:var(--gold);stroke:var(--core-line);stroke-width:1.3;stroke-linejoin:round;overflow:visible}
.s-res{margin-block-end:10px}
.res.big{font-size:15px} .res.big .r-star{width:18px;height:18px}
.tag.youth{border-color:color-mix(in srgb,var(--text) 45%,transparent);color:var(--soft)}
.s-title{font-weight:300;font-size:clamp(22px,3.4cqh,34px);line-height:1.2;letter-spacing:-.01em;overflow-wrap:anywhere}
.s-title.long{font-size:clamp(19px,2.6cqh,25px);line-height:1.3}
.s-title:lang(dv){font-family:var(--font-dv-display);font-weight:400;font-size:clamp(20px,3cqh,30px);line-height:1.7;letter-spacing:0}
.s-title.long:lang(dv){font-size:clamp(18px,2.4cqh,23px);line-height:1.8}
.s-who{margin-block-start:10px;font-size:16px;color:var(--soft)}
.s-who:lang(dv){line-height:1.9}
.s-dl{margin-block-start:20px;display:grid;gap:12px}
.s-dl div{display:grid;grid-template-columns:9.5em 1fr;gap:16px;border-block-start:1px solid var(--line);padding-block-start:12px}
.s-dl dt{font-size:13px;color:var(--muted);line-height:1.5}
.s-dl dd{font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.s-dl :lang(dv){line-height:1.9}
.s-note{margin-block-start:18px;font-size:13px;color:var(--muted);line-height:1.5}
.s-nav{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;margin-block-start:8px}
.s-nav button{min-height:44px;font-size:14px;background:none;border:0;padding:0;color:var(--text);text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--orange);cursor:pointer}
.s-nav span{font-size:13px;color:var(--muted)}
.story.is-sheet{inset-inline:0!important;bottom:0;top:auto!important;width:auto!important;max-height:76%}
.story.is-sheet .s-in{max-height:calc(76cqh - 16px);border-radius:0}
.story.is-sheet .s-dl div{grid-template-columns:1fr;gap:2px}

/* ---------- List: every commitment as a tide table, north to south ---------- */
/* round 5: the list slides in from the reading-start side with a fade (render.ts slide()); a sheet on phones */
.list{transition:opacity .35s ease,transform .35s cubic-bezier(.2,.7,.2,1)}
.list.off{opacity:0;transform:translateX(-28px)}
[dir="rtl"] .list.off{transform:translateX(28px)}
.list.leaving{pointer-events:none;transition-timing-function:ease,cubic-bezier(.5,0,.75,0)}
.list{position:fixed;z-index:60;top:var(--top,0px);bottom:0;inset-inline-end:0;width:min(620px,100%);color:var(--text);background:var(--panel);border-inline-start:1px solid var(--line);box-shadow:var(--list-shadow);
  overflow:auto;--lpad:22px;padding:var(--lpad) 28px 28px;outline:none}
.l-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-block-end:12px}
.l-head h2{font-weight:300;font-size:28px}
.l-head h2:lang(dv){font-family:var(--font-dv-display);font-weight:400;line-height:1.6}
.l-tools{display:grid;gap:12px;margin-block-end:8px}
.l-search{position:relative}
.l-search svg{position:absolute;inset-inline-start:15px;top:50%;width:16px;height:16px;margin-top:-8px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.l-search input{width:100%;min-height:44px;border-radius:999px;border:1px solid color-mix(in srgb,var(--text) 28%,transparent);background:var(--field);color:var(--text);
  padding-inline:42px 16px;font-size:15px}
.l-search input::placeholder{color:var(--muted)}
/* round 5: one even grid (3 columns, 2 on phones), every select the same size and on one line */
.l-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px}
.from{display:grid;grid-template-rows:auto 44px;gap:4px;min-width:0}
.from select{width:100%}
.from label{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.from select{height:44px;min-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-block:0;padding-inline:14px 40px;border-radius:14px;border:1px solid color-mix(in srgb,var(--text) 28%,transparent);
  color:var(--text);appearance:none;-webkit-appearance:none;max-width:100%;background-color:var(--field);
  /* the arrow, drawn in the muted token so it follows the colourway */
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;background-position:calc(100% - 22px) 52%,calc(100% - 16px) 52%}
[dir="rtl"] .from select{background-position:16px 52%,22px 52%}
.from select option{background:var(--panel);color:var(--text)}
.from select::picker(select){white-space:normal}
@supports (appearance: base-select) { .from select{display:flex;align-items:center} .from select selectedcontent{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0} }
.l-meta{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;font-size:13px;color:var(--muted);min-height:44px}
.l-meta .link{color:var(--text);min-height:44px;font-weight:400}
.tt{width:100%;border-collapse:collapse;font-size:15px}
.tt th{text-align:start;font-weight:400;color:var(--muted);font-size:13px;padding:8px 10px;border-block-end:1px solid var(--ring)}
.tt td{padding:12px 10px;border-block-end:1px solid var(--line);vertical-align:top;font-variant-numeric:tabular-nums}
.tt td.pl{color:var(--soft);font-size:14px;width:8.5em}
.tt td.fr{font-size:14px;color:var(--soft);width:9.5em;overflow-wrap:anywhere}
.tt td.fr.muted{color:var(--muted)}
.tt tr.grp th{position:sticky;top:calc(-1 * var(--lpad));z-index:2;background:var(--panel);padding:14px 10px 8px;border-block-end:1px solid var(--ring);color:var(--text);font-size:15px}
.tt tr.grp th .g-n{margin-inline-start:10px;font-size:13px;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;line-height:22px;padding:0 9px;border-radius:999px;border:1px solid var(--line-2);color:var(--soft)}
.tt button{display:block;text-align:start;font-size:16px;line-height:1.45;background:none;border:0;padding:0;color:var(--text);text-decoration:underline;
  text-decoration-color:var(--orange);text-underline-offset:5px;min-height:32px;cursor:pointer;overflow-wrap:anywhere}
.tt button:lang(dv){line-height:1.9;text-underline-offset:.55em}
.tt .meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-block-start:8px;font-size:13px;color:var(--muted)}
.tt .pl-m{display:none}
.l-more{display:flex;justify-content:center;padding-block:16px 4px}
.l-more:has(#more[hidden]){display:none}
.tt tr.new td{animation:arrive 2.4s ease-out 1}
@keyframes arrive{0%{background:color-mix(in srgb,var(--orange) 22%,transparent)}100%{background:transparent}}
.l-state{padding:28px 0;color:var(--muted);display:grid;gap:16px;justify-items:start}
.l-state:empty{display:none}
.l-state .big{font-size:18px;color:var(--text)}
.skel{display:grid;gap:10px;padding:14px 0;border-block-end:1px solid var(--line)}
.skel i{display:block;height:12px;border-radius:6px;background:color-mix(in srgb,var(--text) 10%,transparent)}
.skel i:nth-child(1){width:22%} .skel i:nth-child(2){width:88%;height:16px} .skel i:nth-child(3){width:60%}

/* ---------- The Dhivehi board's type scale (round 5) ----------
   AK Rasmee runs large: on the Dhivehi board every Thaana letter is drawn at 0.85x ("Rasmee Board", size-adjust 115%
   in brand.css), and lines close up a little (1.75 for 1.9), so text, space and map weigh what they do in English.
   The LED screen keeps the full size (it is read from across a room). */
html:lang(dv){--font-dv:"Rasmee Board Text","Rasmee Board","MV A Waheed",var(--font-latin)}
html:lang(dv) #display{--font-dv:"Rasmee Text","Rasmee","MV A Waheed",var(--font-latin);--font-dv-display:var(--font-dv)}
:lang(dv){line-height:1.75}
:where(#display) :lang(dv),:where(#display):lang(dv){line-height:1.9}   /* the screen keeps the default (its own rules still win) */

/* ---------- Phones and narrow windows ---------- */
@media (max-width:819px){
  .hdr{padding:10px 12px}
  .hdr .lockup{padding:6px 10px;gap:10px}
  .hdr .lockup img{height:30px}
  .hdr .list-btn{display:none}
  .hdr .add{position:fixed;inset-inline:12px;bottom:calc(12px + var(--sup-h,0px));justify-content:center;min-height:52px;z-index:55}
  .hdr .lang{padding:0 12px;font-size:15px}
  .hdr .lang:lang(dv){font-size:calc(15px * .85);min-width:60px}
  body.has-story .hdr .add,body.list-open .hdr .add{display:none}
}
@media (max-width:819px){
  .list.off,[dir="rtl"] .list.off{transform:translateY(100%)}
  .list{--lpad:16px;padding:var(--lpad) 16px 24px}
  .l-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* phones: each commitment stacked: who, the commitment, then the area, the time frame and the place */
  .tt thead{display:none}
  .tt tr.row{display:flex;flex-direction:column;padding-block:12px;border-block-end:1px solid var(--line)}
  .tt tr.row td{display:block;width:auto;border:0;padding:0}
  .tt tr.row td.pl{display:none}
  .tt td.fr{order:-1;margin-block-end:4px;font-size:13px}
  .tt .pl-m{display:inline}
  .tt tr.grp{display:block} .tt tr.grp th{display:block}
}
@container board (max-width:819px){
  .find{top:66px;inset-inline:12px;width:auto}
  .crumb{top:118px;inset-inline-start:12px}
  .intro{top:120px;bottom:auto;inset-inline-start:12px;max-width:44cqw}
  .title{font-size:11cqw}
  .title:lang(dv){font-size:8cqw}
  .intro .sub{font-size:13px;margin-block-start:12px}
  .intro .days{display:none}
  .intro .list-open{display:inline-flex;align-items:center}
  .hint,.zoom,.scale{display:none}
  /* one button with the chosen area; the four open above it in a panel */
  .marks-toggle{display:inline-flex;position:absolute;z-index:21;bottom:calc(100px + var(--sup-h,0px));inset-inline-start:12px;min-height:44px;font-size:14px;padding:0 12px 0 12px;gap:8px}
  .marks-toggle .chev{transition:transform .2s}
  .marks-toggle[aria-expanded="true"] .chev{transform:rotate(180deg)}
  .marks{display:none;bottom:calc(152px + var(--sup-h,0px));inset-inline-start:12px;inset-inline-end:auto;align-items:stretch;gap:4px;padding:8px;
    background:var(--panel);border:1px solid var(--edge);border-radius:18px;box-shadow:var(--pshadow)}
  .marks.open{display:flex}
  [dir="rtl"] .marks{align-items:stretch}
  .marks-h{display:none}
  .marks button{min-height:44px;font-size:14px;padding:6px 14px;gap:10px;background:transparent}
  .leaflet-control-attribution{margin-block-end:calc(68px + var(--sup-h,0px))!important}
  /* phones: "Supported by UNFPA" and the disclaimer are a strip along the bottom, under "Add a commitment"; the button,
     the area button, the credit and the map's whole-country view (pad() in view.ts) all sit above it */
  .support{inset-inline:0;bottom:0;max-width:none;padding:6px 14px calc(8px + env(safe-area-inset-bottom,0px));background:var(--bg);border-block-start:1px solid var(--line);text-shadow:none}
  .support .sup-by{font-size:12px}
  .support .sup-dis{font-size:11px;line-height:1.4;color:var(--dis-strip,var(--dis))}
  /* the credit in the reading-start corner, under the area pills and above the "Add a commitment" bar, clear of Addu */
  .leaflet-bottom.leaflet-right{right:auto;left:4px}                  /* physical: Leaflet's corners are left and right */
  [dir="rtl"] .leaflet-bottom.leaflet-left{left:auto;right:4px}       /* physical: Leaflet's corners are left and right */
}

/* Short phones: the intro (taller in Dhivehi) would run into the area button and the credit, so the contact line
   goes there; the form always shows it */
@container board (max-width:819px) and (max-height:819px){ .intro .contact:lang(dv){display:none} }
@container board (max-width:819px) and (max-height:699px){ .intro .contact{display:none} }

/* ---------- The tour (tour.ts): a ring round one part of the board, the rest dimmed a little, a card beside it ---------- */
.tour{position:fixed;inset:0;z-index:90;pointer-events:none}
.t-ring{position:fixed;border-radius:18px;box-shadow:0 0 0 2px var(--warm),0 0 0 9999px rgba(8,4,14,.46);transition:left .35s,top .35s,width .35s,height .35s}
.t-ring.round{border-radius:999px}
[data-theme="light"] .t-ring{box-shadow:0 0 0 2px var(--warm),0 0 0 9999px rgba(22,18,28,.26)}
.t-card{position:fixed;pointer-events:auto;width:min(340px,calc(100vw - 24px));background:var(--panel);color:var(--text);border:1px solid var(--edge);border-radius:18px;
  padding:18px 20px 16px;box-shadow:var(--pshadow);transition:left .35s,top .35s;outline:none}
.t-step{font-size:13px;color:var(--muted)}
.t-card h2{font-size:20px;font-weight:700;line-height:1.3;margin-block:4px 6px}
.t-card h2:lang(dv),:lang(dv) .t-card h2{font-family:var(--font-dv-display);font-weight:400;line-height:1.7}
.t-card p{font-size:15px;line-height:1.5;color:var(--soft)}
.t-btns{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block-start:14px}
.t-btns .link{min-height:44px;font-size:15px}
.t-btns .btn-primary{min-height:44px;padding:6px 20px;font-size:15px}
/* each step fades in (round 5); the ring and card glide between steps, or only fade under reduced motion */
.t-card.in{animation:t-in .3s ease-out both}
@keyframes t-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tour.still .t-ring,.tour.still .t-card{transition:none}
.tour.still .t-card.in{animation:t-fade .25s ease-out both}
@keyframes t-fade{from{opacity:0}to{opacity:1}}

/* ---------- Display (LED) mode: see display.ts ---------- */
body.display{overflow:hidden}
body.display .board,body.display .hdr,body.display .list{visibility:hidden}   /* nothing behind the display paints */
.display{position:fixed;inset:0;z-index:5000;background:var(--bg-paint,var(--bg));color:var(--text);container:ev/size;overflow:hidden}
.display .ev{position:absolute;inset:0;--u:min(1cqh,.5625cqw);
  /* The screen's settings (docs/EVENT-SCREEN.md): where the column starts, the title, count, QR code and "Scan" sizes in
     u (1% of the height of the largest 16:9 box that fits), and the story's smallest size: 32 px, or 3 u on a bigger screen */
  --d-col:44cqw;--d-title:5;--d-count:3.6;--d-qr:21;--d-scan:3;--d-min:max(32px,calc(3 * var(--u)))}
@container ev (orientation:portrait){.display .ev{--u:.85cqw}}
.display.idle,.display.idle *{cursor:none}
.d-map{position:absolute;inset:0;z-index:0}
.d-map .leaflet-container{cursor:default}
.d-over{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}
.d-over .link,.d-over .wave{stroke-width:max(1.2px,calc(.15 * var(--u)))}
.display .light{pointer-events:none}
.display .light .halo{width:calc(6.8 * var(--u));height:calc(6.8 * var(--u))}
.display .light .core{width:calc(1.24 * var(--u));height:calc(1.24 * var(--u))}
.display .light.is-achieved .core{width:calc(2.3 * var(--u));height:calc(2.3 * var(--u))}
.display .orb.has-achieved .ostar{width:calc(1.8 * var(--u));height:calc(1.8 * var(--u))}
.display .light:not(.is-sel){opacity:.6}
.d-brand{font-size:max(calc(var(--d-min) * 1.4),calc(var(--d-title) * var(--u)));font-weight:200;letter-spacing:-.02em;line-height:1.1;text-align:end}
.d-brand .r{font-weight:700;color:var(--orange-text)}
.d-brand:lang(dv){font-family:var(--font-dv-display);font-weight:400;letter-spacing:0;font-size:max(calc(var(--d-min) * 1.2),calc(var(--d-title) * .8 * var(--u)));line-height:1.5}
.d-brand:lang(dv) .r{font-weight:400}
/* one column beside the map (display.ts): logos and title, the lockup, the story in the rest of the height, the count and the QR code */
.d-col{position:absolute;z-index:10;inset-block:calc(4.4 * var(--u)) calc(5 * var(--u));inset-inline-start:var(--d-col);inset-inline-end:5cqw;display:flex;flex-direction:column;gap:calc(2.6 * var(--u))}
.d-top{display:flex;align-items:flex-start;justify-content:space-between;gap:calc(3 * var(--u))}
.d-story{flex:1 1 0;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.d-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:calc(3 * var(--u))}
.d-story.in{animation:rise 1.3s .3s cubic-bezier(.2,.7,.2,1) both}
.d-cat{display:flex;gap:calc(2 * var(--u));align-items:center;margin-block-end:calc(2.2 * var(--u));font-size:calc(2.8 * var(--u));color:var(--warm)}
.d-cat .tag{font-size:calc(1.7 * var(--u));line-height:1.6;padding:0 calc(1.2 * var(--u))}
.d-cat .res{font-size:calc(2.4 * var(--u));gap:calc(.8 * var(--u))} .d-cat .res .r-star{width:calc(2.6 * var(--u));height:calc(2.6 * var(--u))}
.d-text{font-weight:300;font-size:max(var(--d-min),calc(5.4 * var(--u)));line-height:1.12;letter-spacing:-.015em;overflow-wrap:anywhere;text-wrap:pretty}
.d-text.clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.d-text.short{font-size:max(var(--d-min),calc(6.6 * var(--u)));line-height:1.08}
.d-text.long{font-size:max(var(--d-min),calc(4.2 * var(--u)));line-height:1.18}
.d-text:lang(dv){font-family:var(--font-dv-display);font-weight:400;font-size:max(var(--d-min),calc(4.4 * var(--u)));line-height:1.6;letter-spacing:0}
.d-text.short:lang(dv){font-size:max(var(--d-min),calc(5.2 * var(--u)))}
.d-text.long:lang(dv){font-size:max(var(--d-min),calc(3.5 * var(--u)));line-height:1.7}
.d-meta{display:flex;flex-wrap:wrap;gap:calc(1 * var(--u)) calc(4 * var(--u));margin-block-start:calc(3 * var(--u));font-size:calc(2.7 * var(--u));color:var(--soft)}
.d-meta:lang(dv),.d-meta :lang(dv){line-height:1.7}
.d-days{align-self:flex-end;gap:calc(1.4 * var(--u))}
.d-days .days-n{font-size:calc(7 * var(--u))}
.d-days .days-t{font-size:calc(2.4 * var(--u))}
.d-cta{display:flex;gap:calc(2.4 * var(--u));align-items:center}
.d-qr{width:calc(var(--d-qr) * var(--u));height:calc(var(--d-qr) * var(--u));background:#fff;border-radius:calc(1.4 * var(--u));padding:calc(1 * var(--u));flex:none}
.d-qr svg{width:100%;height:100%;display:block}
.d-cta p{display:flex;flex-direction:column;gap:calc(.6 * var(--u));font-size:calc(var(--d-scan) * var(--u));line-height:1.25;max-width:17cqw}
.d-cta p:lang(dv){line-height:1.7}
.d-cta small{font-size:calc(1.9 * var(--u));color:var(--muted);overflow-wrap:anywhere}
/* the logo and, under it in every state, "Supported by UNFPA" (one line; the disclaimer is left off the LED screen:
   at a size that fits it is not readable from the room) */
.d-logos{display:flex;flex-direction:column;align-items:flex-start;gap:calc(1 * var(--u))}
.d-sup{font-size:calc(1.9 * var(--u));line-height:1.3;color:var(--soft);white-space:nowrap}
.d-sup:lang(dv){line-height:1.7}
.d-logos .lockup{padding:calc(.8 * var(--u)) calc(1.4 * var(--u));border-radius:calc(1 * var(--u));gap:calc(1.4 * var(--u))}
.d-logos .lockup img{height:calc(6 * var(--u))}
.d-count{font-size:max(calc(var(--d-min) * 1.12),calc(var(--d-count) * var(--u)));color:var(--soft);font-variant-numeric:tabular-nums;line-height:1.2}
.d-paused{position:absolute;z-index:10;top:calc(1 * var(--u));inset-inline-start:var(--d-col);font-size:calc(1.8 * var(--u));color:var(--warm)}
.d-ctl{position:absolute;z-index:20;top:16px;inset-inline-start:16px;display:flex;gap:8px;transition:opacity .4s}
.display.idle .d-ctl{opacity:0;pointer-events:none}
@container ev (orientation:portrait){
  .display .ev{--d-col:46cqw}
  .d-top{flex-direction:column-reverse;align-items:flex-end}
  .d-logos{align-items:flex-end}
  .d-foot{flex-direction:column;align-items:flex-end}
  .d-cta p{max-width:24cqw}
}

/* ---------- launch mode (display.ts): waiting, the reveal, the featured cards, the QR code sliding in ---------- */
.ev .d-map{transition:opacity 1.2s ease}
.ev.is-waiting .d-map{opacity:.3}
.d-wait{font-weight:300}
.ev.is-reveal .leaflet-marker-icon{animation:light-in .9s ease-out both;animation-delay:var(--d,0ms)}
@keyframes light-in{from{opacity:0}to{opacity:1}}
.d-feature{position:absolute;z-index:12;inset-inline-start:3cqw;width:37cqw;display:flex;flex-direction:column;gap:calc(1.4 * var(--u));
  padding:calc(2.6 * var(--u)) calc(3 * var(--u));background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid var(--edge);
  border-radius:calc(1.8 * var(--u));box-shadow:0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(0,0,0,.5);overflow:hidden}
.d-feature .d-cat{margin:0}
.d-feature .f-text{font-weight:300;font-size:max(var(--d-min),calc(5 * var(--u)));line-height:1.15;letter-spacing:-.01em;overflow-wrap:anywhere;text-wrap:pretty}
.d-feature .f-text:lang(dv){font-family:var(--font-dv-display);font-weight:400;font-size:max(var(--d-min),calc(4.2 * var(--u)));line-height:1.65;letter-spacing:0}
.d-feature .f-text.clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.d-feature .f-who{display:flex;flex-wrap:wrap;gap:calc(.6 * var(--u)) calc(2.4 * var(--u));font-size:calc(2.7 * var(--u));color:var(--soft)}
.d-feature .f-who b{font-weight:700;color:var(--text)}
.d-feature .f-who :lang(dv),.d-feature .f-who:lang(dv){line-height:1.7}
.d-feature.rise{animation:feature-rise 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes feature-rise{from{opacity:0;transform:translateY(calc(6 * var(--u))) scale(.96)}to{opacity:1;transform:none}}
.d-feature.settle{transition:transform .9s cubic-bezier(.55,0,.8,.2),opacity .9s ease-in;transform:translate(var(--sx),var(--sy)) scale(.03);opacity:0}
.d-feature.fade{transition:opacity .8s;opacity:0}
.ev.qr-in .d-cta{animation:qr-in 1s cubic-bezier(.2,.7,.2,1) both}
@keyframes qr-in{from{opacity:0;transform:translateX(calc(5 * var(--u)))}to{opacity:1;transform:none}}
[dir="rtl"] .ev.qr-in .d-cta{animation-name:qr-in-rtl}
@keyframes qr-in-rtl{from{opacity:0;transform:translateX(calc(-5 * var(--u)))}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .d-feature.rise{animation:light-in .8s both}
  .ev.qr-in .d-cta,[dir="rtl"] .ev.qr-in .d-cta{animation:light-in .8s both}
  .ev.is-reveal .leaflet-marker-icon{animation-duration:.5s}
}

/* a hidden tab: every animation waits (main.ts) */
.is-hidden *,.is-hidden *::before,.is-hidden *::after{animation-play-state:paused!important}

@media (prefers-reduced-motion:reduce){
  .leaflet-sea-pane,.light .halo,.light,.story,.d-story,.over .wave,.d-over .wave,.leaflet-land-pane,.orb,.orb .halo{animation:none!important;transition:none!important}
  .light .core::after,.orb .core::after{animation:none!important;display:none}
  .light .star{animation:none!important}
  .list.off,[dir="rtl"] .list.off{transform:none}   /* brand.css: under reduced motion nothing animates, so it is instant */
  .story.in,.story.out{animation:none}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .over .link,.d-over .link{animation:none;stroke-dashoffset:0}
}
