/* ConnectHere, the Inca wall design (preview behind ?design=inca, see src/design.js).
   One wall of hand-cut granite: stones meet along 5px near-black joints, nothing floats, nothing has rounded corners or shadows.
   The wall is built in COURSES (rows). A course holds one to three stones, side by side from 900px, stacked below. Every joint is a
   clip-path polygon computed by CSS alone (no script): the course boundary is a slightly tilted line, the splits between side-by-side
   stones are slanted, and the joint is the dark page showing through between the polygons. Hebrew mirrors the polygons (--m / --sg),
   so the wall reads right to left. Fonts: Outfit (display) and Rubik (Hebrew only), self-hosted, same files as the classic design. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/outfit-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/rubik-he.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

/* ================================================================ tokens */
:root {
  color-scheme: light dark;
  --joint: #2f2b26;
  --sun: #f39a1e; --wa: #0f7a43; --wa-hover: #0b6638; --accent: #0a69b4; --teal: #0e7a66; --deep: #0f2747;
  --ink: #0f2747; --mute: #26324a; --em: #094c82; --focus: #0f2747;
  --display: "Outfit", "Rubik", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --grain: url(/img/stone-grain.webp);
  --J: 12px;        /* how far a course joint may tilt */
  --jt: 5px;        /* joint width */
  --ring: 7px;      /* chamfer ring between joint and face */
  --Sx: 0px;        /* horizontal overlap of side-by-side stones (the slant room) */
  --m: 0; --sg: 1;  /* mirror switch for right-to-left */
  --padx: 20px; --py: 12px;
}
html[dir="rtl"] { --m: 1; --sg: -1; }
@media (prefers-color-scheme: dark) { :root { --joint: #181613; } }
@media (min-width: 900px) { :root { --J: 16px; --Sx: 48px; --padx: 32px; --py: 16px; } }

/* ================================================================ base */
* { box-sizing: border-box; }
html { background: var(--joint); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; scrollbar-color: #8b8478 var(--joint); }
body { margin: 0; background: var(--joint); color: var(--ink); font: 17px/1.5 var(--sans); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
a { color: inherit; }
img { display: block; max-width: 100%; }
bdi { unicode-bidi: isolate; }
.ico-svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
::selection { background: #0f2747; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: #fff; color: #0f2747; font: 700 15px/1 var(--sans); padding: 14px 18px; text-decoration: none; }
.skip:focus { top: 12px; outline: 3px solid var(--sun); outline-offset: 2px; }
/* one text per language: the chrome the Worker injects carries all of them, the page language shows its own */
html[lang="en"] .lg:not([data-l="en"]), html[lang="es"] .lg:not([data-l="es"]), html[lang="de"] .lg:not([data-l="de"]), html[lang="he"] .lg:not([data-l="he"]), html[lang="fr"] .lg:not([data-l="fr"]) { display: none; }
[hidden] { display: none !important; }
/* Hebrew: no tracking on Hebrew letters, a little more air in the lines; arrows that mean "forward" mirror */
html[lang="he"] body *:not(.bn):not(.bn *) { letter-spacing: 0 !important; }
html[lang="he"] body { line-height: 1.55; }
html[dir="rtl"] .flip { display: inline-block; transform: scaleX(-1); }
.nowrap { white-space: nowrap; }

/* ================================================================ stone tones (warm granite) and pigments */
.stone { --face: #cfc8bd; }
.t1 { --face: #cfc8bd; } .t2 { --face: #c3bbaf; } .t3 { --face: #d6cfc4; } .t4 { --face: #bab2a5; } .t5 { --face: #cbc3b6; }
.stone.terr { --face: #7d9378; }
.stone.sage { --face: #8ca587; --ink: #0c2038; --mute: #0f2747; --em: #0c2038; }
.stone.photo { --face: #8d887f; }
.stone.wa { --face: #0f7a43; --ink: #fff; --mute: #f4fbf7; --focus: #fff; --em: #fff; }
.stone.blue { --face: #0a69b4; --ink: #fff; --mute: #f2f7fc; --focus: #fff; --em: #fff; }
.stone.teal { --face: #0e7a66; --ink: #fff; --mute: #f0faf7; --focus: #fff; --em: #fff; }
.stone.sun { --face: #f39a1e; --ink: #0f2747; --mute: #0f2747; --em: #0f2747; }
.stone.deep { --face: #0f2747; --ink: #fff; --mute: #d5e0f0; --focus: #fff; --em: #f6a93b; }
@media (prefers-color-scheme: dark) {
  .t1 { --face: #4d4943; } .t2 { --face: #45413c; } .t3 { --face: #55514a; } .t4 { --face: #3d3935; } .t5 { --face: #4b4741; }
  .t1, .t2, .t3, .t4, .t5 { --ink: #fbf8f2; --mute: #efe9df; --em: #ffc470; --focus: #fff; }
  .stone.terr { --face: #44543f; }
  .stone.photo { --face: #4a463f; }
  .stone.sage { --face: #44593f; --ink: #fbf8f2; --mute: #e6efe2; --em: #ffd08a; --focus: #fff; }
}

/* ================================================================ the wall: courses and stones */
.wall { max-width: 1600px; margin: 0 auto; position: relative; }
.course { display: flex; flex-direction: column; position: relative; --ts: 0px; --te: 0px; --bs: 0px; --be: 0px; --w1: 1; --w2: 0; }
.wall > main { display: block; margin-top: calc(var(--J) * -1); }
.wall > footer.course { margin-top: calc(var(--J) * -1); }
.wall > main > .course + .course { margin-top: calc(var(--J) * -1); }
.course > .stone + .stone { margin-top: calc(var(--J) * -1); }

/* The stone: the element is the lit chamfer ring (polygon 1), ::before is the face (polygon 2, inset by the ring). */
.stone {
  position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; text-decoration: none; color: var(--ink);
  isolation: isolate;
  --pt: calc(var(--J) + var(--ring) + var(--py)); --pb: calc(var(--J) + var(--ring) + var(--py));
  padding: var(--pt) 0 var(--pb);
  /* side room and slants of this stone (the tilt of the course boundary --ts --te --bs --be comes down from the course) */
  --lp: 0px; --rp: 0px; --lsl: 0px; --rsl: 0px; --xl: 0; --xr: 1; --ext: 0px; --lpad: 0px; --rpad: 0px;
  /* joint inset and ring thickness per side; page-border sides get no joint and a thin ring */
  --il: calc(var(--jt) / 2); --ir: calc(var(--jt) / 2); --it: calc(var(--jt) / 2); --ib: calc(var(--jt) / 2);
  --rl: var(--ring); --rr: var(--ring); --rt: var(--ring); --rb: var(--ring);
  --ilx: var(--il); --irx: var(--ir); --itx: var(--it); --ibx: var(--ib);
  background: var(--grain) 0 0 / 200px 200px, linear-gradient(135deg, rgba(255, 255, 255, .4), rgba(0, 0, 0, .4)), var(--face);
}
.stone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --ilx: calc(var(--il) + var(--rl)); --irx: calc(var(--ir) + var(--rr)); --itx: calc(var(--it) + var(--rt)); --ibx: calc(var(--ib) + var(--rb));
  background: var(--grain) 7px 11px / 200px 200px, radial-gradient(120% 95% at 16% 6%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 58%), radial-gradient(90% 90% at 100% 100%, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0) 62%), var(--face);
  filter: var(--tint, none);
}
@media (prefers-color-scheme: dark) {
  .stone::before { background: var(--grain) 7px 11px / 200px 200px, radial-gradient(120% 95% at 16% 6%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 58%), radial-gradient(90% 90% at 100% 100%, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 62%), var(--face); }
}
.stone.wa, .stone.blue, .stone.teal, .stone.sun { --tint: saturate(.86) brightness(.97); }
/* ONE polygon for every stone: a quadrilateral between its course's top and bottom lines and its two (slanted) sides.
   Logical x (start to end) is turned into screen x by --m / --sg, so right-to-left is the mirror image. */
.stone, .stone::before, .stone.free::after {
  clip-path: polygon(
    calc(var(--m) * 100% + var(--sg) * (var(--lp) + var(--lsl) + var(--ilx))) calc(var(--itx) + var(--ts) + (var(--te) - var(--ts)) * var(--xl)),
    calc(var(--m) * 100% + var(--sg) * (100% - var(--rp) + var(--rsl) - var(--irx))) calc(var(--itx) + var(--ts) + (var(--te) - var(--ts)) * var(--xr)),
    calc(var(--m) * 100% + var(--sg) * (100% - var(--rp) - var(--rsl) - var(--irx))) calc(100% - var(--ibx) - var(--bs) - (var(--be) - var(--bs)) * var(--xr)),
    calc(var(--m) * 100% + var(--sg) * (var(--lp) - var(--lsl) + var(--ilx))) calc(100% - var(--ibx) - var(--bs) - (var(--be) - var(--bs)) * var(--xl))
  );
}
/* A stone that holds a popup (the header with the language menu) is not clipped itself: ring and face are drawn behind its content. */
.stone.free { clip-path: none; background: none; pointer-events: none; }
.stone.free > .c { pointer-events: auto; }
/* the header holds the language menu: its stacking context sits above the courses that follow (they would paint over the open menu) */
.wall > header.course { z-index: 6; }
.stone.free::before { z-index: -1; }
.stone.free::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; --ilx: var(--il); --irx: var(--ir); --itx: var(--it); --ibx: var(--ib);
  background: var(--grain) 0 0 / 200px 200px, linear-gradient(135deg, rgba(255, 255, 255, .4), rgba(0, 0, 0, .4)), var(--face);
}
a.stone { transition: filter .15s; }
a.stone:hover::before { filter: var(--tint, none) brightness(1.08); }
/* keyboard focus on a stone link: the ring turns solid and the content gets an inner outline (clip-path would cut an outside outline) */
a.stone:focus-visible { outline: none; background: var(--focus); }
a.stone:focus-visible > .c { outline: 3px solid var(--focus); outline-offset: 2px; }
.c { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow-wrap: break-word;
  padding-inline: calc(var(--padx) + var(--ring) + var(--lpad)) calc(var(--padx) + var(--ring) + var(--rpad)); }

/* tilt of every course boundary, a cycle of six (a course's bottom is the next course's top); header and footer close the cycle */
.wall > header.course { --ts: 0px; --te: 0px; --bs: calc(var(--J) * .8); --be: calc(var(--J) * .15); }
.wall > header.course > .stone:first-child { --it: 0px; --rt: 2px; --pt: calc(var(--ring) + 6px); }
.wall > header.course > .stone:last-child { --pb: calc(var(--J) + var(--ring) + 6px); }
.wall > main > .course:nth-child(6n+1) { --ts: calc(var(--J) * .20); --te: calc(var(--J) * .85); --bs: calc(var(--J) * .25); --be: calc(var(--J) * .85); }
.wall > main > .course:nth-child(6n+2) { --ts: calc(var(--J) * .75); --te: calc(var(--J) * .15); --bs: calc(var(--J) * .90); --be: calc(var(--J) * .40); }
.wall > main > .course:nth-child(6n+3) { --ts: calc(var(--J) * .10); --te: calc(var(--J) * .60); --bs: calc(var(--J) * .15); --be: calc(var(--J) * .70); }
.wall > main > .course:nth-child(6n+4) { --ts: calc(var(--J) * .85); --te: calc(var(--J) * .30); --bs: calc(var(--J) * .60); --be: calc(var(--J) * .05); }
.wall > main > .course:nth-child(6n+5) { --ts: calc(var(--J) * .40); --te: calc(var(--J) * .95); --bs: calc(var(--J) * .85); --be: calc(var(--J) * .45); }
.wall > main > .course:nth-child(6n+6) { --ts: calc(var(--J) * .15); --te: calc(var(--J) * .55); --bs: calc(var(--J) * .80); --be: calc(var(--J) * .15); }
.wall > main > .course:last-child { --bs: calc(var(--J) * .65); --be: calc(var(--J) * .20); }
.wall > footer.course { --ts: calc(var(--J) * .35); --te: calc(var(--J) * .80); --bs: 0px; --be: 0px; }
.wall > footer.course > .stone:last-child { --ib: 0px; --rb: 2px; --pb: calc(var(--ring) + var(--py)); }
/* internal boundaries of a stacked course (phones): ms/me between stone 1 and 2, ns/ne between 2 and 3 */
.course:nth-child(4n+1) { --ms: calc(var(--J) * .55); --me: calc(var(--J) * .15); --ns: calc(var(--J) * .20); --ne: calc(var(--J) * .75); }
.course:nth-child(4n+2) { --ms: calc(var(--J) * .10); --me: calc(var(--J) * .70); --ns: calc(var(--J) * .65); --ne: calc(var(--J) * .20); }
.course:nth-child(4n+3) { --ms: calc(var(--J) * .80); --me: calc(var(--J) * .30); --ns: calc(var(--J) * .15); --ne: calc(var(--J) * .60); }
.course:nth-child(4n+4) { --ms: calc(var(--J) * .30); --me: calc(var(--J) * .85); --ns: calc(var(--J) * .75); --ne: calc(var(--J) * .10); }
/* slants of the splits between side-by-side stones (px), a cycle of five */
.course:nth-child(5n+1) { --sl1: 11px; --sl2: -12px; }
.course:nth-child(5n+2) { --sl1: -12px; --sl2: 9px; }
.course:nth-child(5n+3) { --sl1: 13px; --sl2: 7px; }
.course:nth-child(5n+4) { --sl1: -7px; --sl2: -13px; }
.course:nth-child(5n+5) { --sl1: 8px; --sl2: -9px; }

/* phones and small tablets: the stones of a course stack and share internal tilted boundaries; every stone touches both page edges */
@media (max-width: 899.98px) {
  .course > .stone { --il: 0px; --ir: 0px; --rl: 2px; --rr: 2px; }
  .course > .stone:nth-child(2) { --ts: var(--ms); --te: var(--me); }
  .course > .stone:nth-child(3) { --ts: var(--ns); --te: var(--ne); }
  .course > .stone:nth-child(1):not(:last-child) { --bs: calc(var(--J) - var(--ms)); --be: calc(var(--J) - var(--me)); }
  .course > .stone:nth-child(2):not(:last-child) { --bs: calc(var(--J) - var(--ns)); --be: calc(var(--J) - var(--ne)); }
}
@media (min-width: 900px) {
  .course { flex-direction: row; align-items: stretch; }
  .course > .stone { flex: none; width: calc((var(--xr) - var(--xl)) * 100% + var(--ext)); }
  .course > .stone + .stone { margin-top: 0; margin-inline-start: calc(var(--Sx) * -1); }
  .course > .stone:nth-child(1) { --xl: 0; --xr: var(--w1); --rsl: var(--sl1); }
  .course > .stone:nth-child(2) { --xl: var(--w1); --xr: calc(var(--w1) + var(--w2)); --lsl: var(--sl1); --rsl: var(--sl2); }
  .course > .stone:nth-child(3) { --xl: calc(var(--w1) + var(--w2)); --lsl: var(--sl2); }
  .course > .stone:last-child { --xr: 1; --rsl: 0px; }
  .course > .stone:first-child { --il: 0px; --rl: 2px; --lsl: 0px; }
  .course > .stone:last-child { --ir: 0px; --rr: 2px; }
  .course > .stone:first-child:not(:only-child), .course > .stone:last-child:not(:first-child) { --ext: calc(var(--Sx) / 2); }
  .course > .stone:not(:first-child):not(:last-child) { --ext: var(--Sx); }
  .course > .stone:not(:first-child) { --lp: calc(var(--Sx) / 2); --lpad: calc(var(--Sx) / 2 + 14px); }
  .course > .stone:not(:last-child) { --rp: calc(var(--Sx) / 2); --rpad: calc(var(--Sx) / 2 + 14px); }
  .wall > header.course > .stone { --it: 0px; --rt: 2px; --pt: calc(var(--ring) + 6px); --pb: calc(var(--J) + var(--ring) + 6px); }
  .wall > footer.course > .stone { --ib: 0px; --rb: 2px; --pb: calc(var(--ring) + var(--py)); }
}

/* ================================================================ type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; text-wrap: balance; margin: 0; font-weight: 700; }
h1 { font-size: clamp(34px, 9.4vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--em); }
h2 { font-size: clamp(26px, 6.6vw, 32px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.2; }
@media (min-width: 900px) { h1 { font-size: clamp(40px, 3.5vw, 56px); } h2 { font-size: clamp(30px, 2.6vw, 40px); } }
html[lang="he"] h1, html[lang="he"] h2 { line-height: 1.18; }
.lead { margin: 14px 0 0; font-size: 18px; line-height: 1.45; max-width: 26em; }
.sub { margin: 10px 0 0; color: var(--mute); font-size: 16px; line-height: 1.45; max-width: 34em; }
.eyebrow-date { margin: 8px 0 0; font: 700 15px/1.3 var(--sans); color: var(--em); text-transform: uppercase; letter-spacing: .06em; }
.fine { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--mute); }
.fine a { text-underline-offset: 3px; display: inline-block; padding-block: 12px; }
p { margin: 0; }
.tl { text-underline-offset: 3px; font-weight: 650; }
.plain-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-underline-offset: 3px; }

/* ================================================================ header (brand and language, one stone) and footer */
.hdr .c { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.brand img { width: 38px; height: 38px; }
.bn { font: 700 24px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.bn span { color: var(--em); }
@media (max-width: 420px) { .bn { font-size: 21px; } .brand img { width: 34px; height: 34px; } }
@media (min-width: 900px) { .bn { font-size: 28px; } .brand img { width: 44px; height: 44px; } }

/* the language menu (markup from src/i18n.js): a globe button and the code; no JavaScript = a row of plain links */
.ld { position: relative; flex: none; font: 700 15px/1 var(--sans); }
.ld-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; background: var(--deep); color: #fff; border: 0; font: inherit; letter-spacing: .03em; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
html[dir="rtl"] .ld-btn { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%); }
.ld-btn[hidden] { display: none; }
.ld-btn:hover, .ld.open .ld-btn { background: #17386a; }
.ld-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: -5px; }
.ld-globe { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld-menu { list-style: none; margin: 0; padding: 0; }
.ld-i { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 0 16px; color: var(--ink); text-decoration: none; font: 600 16px/1.2 var(--sans); white-space: nowrap; }
html:not(.js) .ld-menu { display: flex; flex-wrap: wrap; gap: 0; background: var(--deep); padding: 2px; }
html:not(.js) .ld-i { color: #dbe6f5; padding: 0 12px; min-height: 44px; font-size: 14px; }
html:not(.js) .ld-i[aria-current] { background: #fff; color: #0f2747; }
html.js .ld-menu { display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 70; min-width: 210px; padding: 6px; background: #d6cfc4; color: var(--ink); border: 5px solid var(--joint); text-align: start; }
html.js .ld.open .ld-menu { display: block; }
html.js .ld-i:hover, html.js .ld-i:focus-visible { background: #c3bbaf; outline: none; }
html.js .ld-i:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
html.js .ld-i[aria-checked="true"] { color: var(--em); }
html.js .ld-i[aria-checked="true"]::after { content: ""; flex: none; width: 7px; height: 12px; margin-inline-end: 2px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); }
@media (prefers-color-scheme: dark) { html.js .ld-menu { background: #55514a; } html.js .ld-i { color: #fbf8f2; } html.js .ld-i:hover, html.js .ld-i:focus-visible { background: #45413c; } html.js .ld-i[aria-checked="true"] { color: #ffc470; } html.js .ld-i:focus-visible { box-shadow: inset 0 0 0 3px #fff; } }

/* footer: three stones (desktop), stacked (phone) */
.ft .stone { --pt: calc(var(--J) + var(--ring) + 6px); --pb: calc(var(--J) + var(--ring) + 6px); }
.ft .c { gap: 6px; font-size: 15px; }
.ft .safe { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; line-height: 1.35; }
.ft .safe .ico-svg { font-size: 20px; color: var(--wa); margin-top: 1px; }
@media (prefers-color-scheme: dark) { .ft .safe .ico-svg { color: #3fbf7f; } }
.fnav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.fnav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-underline-offset: 3px; }
.ft .copy { font-size: 14px; color: var(--mute); }
.ft .fine a { display: inline-flex; align-items: center; min-height: 44px; }

/* ================================================================ buttons (flat, cut corners, no radius) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; font: 700 17px/1.2 var(--sans); text-decoration: none; text-align: center; border: 0; cursor: pointer; background: var(--deep); color: #fff;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
html[dir="rtl"] .btn { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 6px 100%); }
.btn .ico-svg { font-size: 22px; }
.btn:hover { filter: brightness(1.12); }
.btn:active { filter: brightness(.95); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sun { background: var(--sun); color: #0f2747; }
.btn-ghost { background: #fff; color: #0f2747; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid currentColor; clip-path: none; }
html[dir="rtl"] .btn-line { clip-path: none; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; filter: none; }
.stone.deep .btn-line, .stone.wa .btn-line, .stone.blue .btn-line { color: #fff; }

/* ================================================================ doors: a niche (trapezoid) + title + subtitle + arrow */
.door .c { flex-direction: row; align-items: center; gap: 14px; }
.niche { flex: none; width: 50px; height: 50px; display: grid; place-items: center; padding-top: 6px; color: #fff; font-size: 25px; clip-path: polygon(17% 0, 83% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(0, 0, 0, .46), rgba(0, 0, 0, .2)); }
@media (min-width: 900px) { .niche { width: 58px; height: 58px; font-size: 29px; } }
.tx { min-width: 0; }
.tx b { display: block; font: 700 21px/1.25 var(--sans); }
.tx small { display: block; margin-top: 3px; font-size: 15px; line-height: 1.38; color: var(--mute); }
.door.main .tx b { font-size: 23px; }
.go { margin-inline-start: auto; font-size: 24px; transition: transform .15s; }
a.stone:hover .go { transform: translateX(4px); }
html[dir="rtl"] a.stone:hover .go { transform: scaleX(-1) translateX(4px); }
@media (min-width: 900px) { .door.main .tx b { font-size: 26px; } .tx b { font-size: 22px; } }
.door.quiet .niche { background: var(--teal); }

/* ================================================================ hero and photos */
.hero .c { justify-content: center; }
.photo::before { background: var(--grain) 7px 11px / 200px 200px, linear-gradient(180deg, rgba(15, 39, 71, 0), rgba(15, 39, 71, .16)), var(--img) center / cover no-repeat, var(--face); }
.photo-valley { --img: url(/img/hero-640.webp); min-height: 150px; }
.photo-textile { --img: url(/img/textile-480.webp); min-height: 120px; }
@media (min-width: 900px) { .photo-valley { --img: url(/img/hero-1024.webp); } .photo-textile { --img: url(/img/textile-800.webp); } .hero-course > .stone { min-height: 420px; } }

/* ================================================================ event rows (home "today" and /events) */
.evs { list-style: none; margin: 0; padding: 0; }
.evs li { border-bottom: 1px solid rgba(15, 39, 71, .28); break-inside: avoid; }
.evs li:last-child { border-bottom: 0; }
.ev { display: grid; grid-template-columns: 4.1rem minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 11px 0; text-decoration: none; color: var(--ink); position: relative; min-height: 48px; }
.ev:hover .ti { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ev:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.ev .t { font: 700 15px/1.35 var(--sans); font-variant-numeric: tabular-nums; direction: ltr; text-align: start; unicode-bidi: isolate; padding-top: 2px; }
html[dir="rtl"] .ev .t { text-align: right; }
.ev .t small { display: block; font-weight: 500; font-size: 13.5px; color: var(--mute); }
.ev .w { min-width: 0; }
.ev .ti { font: 650 17px/1.3 var(--sans); overflow-wrap: anywhere; }
.ev .by, .ev .vn { display: block; font-size: 15px; line-height: 1.35; color: var(--mute); }
.ev .th { width: 56px; height: 56px; margin-top: 2px; overflow: hidden; background: #8d887f; clip-path: polygon(0 0, 100% 3px, calc(100% - 3px) 100%, 3px calc(100% - 2px)); }
.ev .th img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cf { display: inline-block; width: 9px; height: 9px; margin-inline-start: 7px; border: 2px solid var(--mute); border-radius: 50%; vertical-align: 1px; cursor: help; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--mute); border: 1px dashed currentColor; padding: 0 7px; margin-inline-start: 6px; white-space: nowrap; vertical-align: 1px; }
.tag.free { border-style: solid; background: rgba(15, 39, 71, .12); border-color: transparent; color: var(--ink); }
.town { white-space: nowrap; }
@media (prefers-color-scheme: dark) { .evs li { border-bottom-color: rgba(255, 255, 255, .2); } .tag.free { background: rgba(255, 255, 255, .14); } }
.tlist h3 { margin: 12px 0 0; font: 700 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tlist h3:first-child { margin-top: 0; }
.tlist .none { color: var(--mute); font-size: 16px; }
.tlist .more { margin-top: 6px; }
.tlist .more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 3px; }
.skel { display: block; height: 14px; margin: 10px 0; background: rgba(15, 39, 71, .16); }
.skel.s { width: 40%; } .skel.m { width: 72%; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: skel 1.4s ease-in-out infinite; } @keyframes skel { 50% { opacity: .5; } } }

/* ================================================================ how it works (three steps) */
.steps-head .c { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; }
.step .c { gap: 6px; }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; padding-top: 4px; margin-bottom: 4px; background: var(--deep); color: #fff; font: 700 21px/1 var(--display); clip-path: polygon(17% 0, 83% 0, 100% 100%, 0 100%); }
.step h3 { font-size: 21px; }
.step p { font-size: 16px; line-height: 1.45; color: var(--mute); max-width: 32em; }
.saveline { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; text-underline-offset: 3px; color: var(--ink); }
.saveline .ico-svg { font-size: 18px; color: var(--em); }

/* ================================================================ ayni, on the terraces */
.sage .c { justify-content: center; }
.ayni { display: flex; align-items: center; gap: 20px; }
.aw { flex: none; font: 700 clamp(28px, 6vw, 40px)/1 var(--display); letter-spacing: -.03em; color: var(--mute); }
.ayni span { font-size: 16.5px; line-height: 1.42; color: var(--mute); max-width: 52em; }
@media (max-width: 899.98px) { .ayni { flex-direction: column; align-items: flex-start; gap: 6px; } }
.ayni-course > .stone { --pt: calc(var(--J) + var(--ring) + 2px); --pb: calc(var(--J) + var(--ring) + 2px); }

/* ================================================================ partners and the closing door */
.partner-deep h2 { font-size: clamp(26px, 6.2vw, 34px); }
.partner-cta .c { gap: 10px; }
.final .c { flex-direction: row; justify-content: center; align-items: center; gap: 18px; }
.final .go { margin-inline-start: 0; }

/* ================================================================ the floating Ask Lulu button (one, on every page but the chat) */
body.has-fab .wall > footer.course > .stone:last-child { --pb: calc(var(--ring) + var(--py) + 62px + env(safe-area-inset-bottom, 0px)); }
.fabw { position: fixed; inset-inline-end: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; transition: transform .18s ease, opacity .18s ease; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.fab { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 5px 20px 5px 6px; background: #0f2747; color: #fff; text-decoration: none; font: 700 16px/1.15 var(--sans); border: 0; cursor: pointer;
  clip-path: polygon(14px 0, calc(100% - 6px) 0, 100% 14px, 100% 100%, 8px 100%, 0 calc(100% - 12px), 0 8px); }
html[dir="rtl"] .fab { padding: 5px 6px 5px 20px; clip-path: polygon(6px 0, calc(100% - 14px) 0, 100% 8px, 100% calc(100% - 12px), calc(100% - 8px) 100%, 0 100%, 0 14px); }
.fab img { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fff; object-fit: cover; }
.fab:hover { background: #17386a; }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.fab[hidden], .fab-menu[hidden] { display: none; }
html.js .fab-link { display: none; }
.fabw.away { opacity: 0; pointer-events: none; transform: translateY(8px); }
.fab-menu { list-style: none; margin: 0; padding: 6px; position: absolute; inset-inline-end: 0; bottom: calc(100% + 10px); z-index: 1; min-width: 232px; background: #d6cfc4; color: var(--ink); border: 5px solid var(--joint); text-align: start; }
.fab-i { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; color: var(--ink); text-decoration: none; font: 650 17px/1.2 var(--sans); white-space: nowrap; }
.fab-i .ico-svg { font-size: 22px; }
.fab-i:hover, .fab-i:focus-visible { background: #c3bbaf; outline: none; }
.fab-i:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
.fab-save { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--mute); font: 500 14.5px/1.2 var(--sans); text-decoration: none; }
.fab-save .ico-svg { font-size: 17px; }
.fab-save:hover, .fab-save:focus-visible { background: #c3bbaf; color: var(--ink); outline: none; }
.fab-save:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
@media (prefers-color-scheme: dark) { .fab-menu { background: #55514a; color: #fbf8f2; } .fab-i { color: #fbf8f2; } .fab-i:hover, .fab-i:focus-visible { background: #45413c; } .fab-save { color: #efe9df; } .fab-save:hover { background: #45413c; color: #fff; } }
@media (prefers-reduced-motion: reduce) { .fabw { transition: none; } .fabw.away { transform: none; } }
@media (max-width: 420px) { .fab { font-size: 15px; padding-inline-end: 16px; gap: 8px; } }
@media print { .fabw, .ld { display: none; } }

/* ================================================================ /events: one compact control row, a sheet for filters, one stone per day */
.evhead .c { gap: 0; }
.evhead .sub { font-size: 15px; margin-top: 8px; }
.ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; margin-top: 16px; }
.seg { display: inline-flex; background: var(--deep); padding: 3px; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
html[dir="rtl"] .seg { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 7px 100%); }
.seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 76px; padding: 0 14px; border: 0; background: transparent; color: #fff; font: 700 16px/1 var(--sans); cursor: pointer; justify-content: center; }
.seg button .ico-svg { font-size: 19px; }
.seg button[aria-pressed="true"] { background: #f4f0e8; color: #0f2747; }
.seg button:focus-visible { outline: 3px solid var(--sun); outline-offset: -4px; }
.fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; border: 0; background: var(--sun); color: #0f2747; font: 700 16px/1 var(--sans); cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
html[dir="rtl"] .fbtn { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 7px 100%); }
.fbtn .ico-svg { font-size: 20px; }
.fbtn:hover { filter: brightness(1.08); }
.fbtn:focus-visible { outline: 3px solid #0f2747; outline-offset: -6px; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: #0f2747; color: #fff; font: 700 14px/1 var(--sans); }
.fcount { margin-top: 12px; font-size: 15px; color: var(--mute); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.linkbtn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--em); font: 700 15px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:focus-visible { outline: 3px solid var(--focus); }
@media (min-width: 900px) {
  .evhead .c { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; }
  .evhead h1 { grid-column: 1; } .evhead .sub { grid-column: 1; }
  .evhead .ctrl { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; justify-content: flex-end; }
  .evhead .fcount { grid-column: 1 / -1; }
}

/* a day: a label stone (the date, big) and the list stone */
.day .daylabel .c { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-start; }
.day h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; }
.dnum { font: 700 34px/1 var(--display); letter-spacing: -.03em; order: 2; }
.dname { order: 1; } .dmon { order: 3; }
.dname { font: 700 21px/1.1 var(--display); }
.dmon { font: 600 16px/1 var(--sans); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.dtag { display: inline-block; padding: 3px 10px 2px; background: #0f2747; color: #fff; font: 700 13.5px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.dtag.now { background: var(--sun); color: #0f2747; }
html[lang="he"] .dtag, html[lang="he"] .dmon { letter-spacing: 0; text-transform: none; }
.day .none { color: var(--mute); }
@media (min-width: 900px) {
  .day .daylabel .c { flex-direction: column; align-items: flex-start; gap: 6px; }
  .day h2 { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 20px; }
  .dnum { font-size: clamp(54px, 5.4vw, 84px); order: 0; } .dname, .dmon { order: 0; }
  .dname { font-size: clamp(22px, 1.9vw, 28px); }
}
@media (min-width: 1200px) { .day .evs { column-count: 2; column-gap: 44px; } }
.msg .none { font-size: 18px; }

/* the filter sheet: a stone panel, from the bottom on a phone, centred on a desktop */
.sheet { padding: 0; border: 5px solid var(--joint); background: #d6cfc4; color: var(--ink); max-width: none; width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); margin: auto; overflow: hidden; }
.sheet::backdrop { background: rgba(24, 22, 19, .72); }
.sheet[open] { display: block; }
@media (max-width: 599.98px) { .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-inline: 0; border-bottom: 0; max-height: 90vh; } }
@media (prefers-color-scheme: dark) { .sheet { background: #55514a; color: #fbf8f2; } }
.sheet-in { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 8px 8px 20px; }
.sheet-head h2 { font-size: 26px; }
.xbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.xbtn:hover { background: rgba(15, 39, 71, .12); }
.xbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
.sheet-body { overflow-y: auto; padding: 4px 20px 16px; overscroll-behavior: contain; }
.sheet fieldset { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.sheet legend { padding: 0; margin: 0 0 8px; font: 700 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
html[lang="he"] .sheet legend { letter-spacing: 0; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; background: #f1ede6; color: #0f2747; font: 650 16px/1.1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(15, 39, 71, .35);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
html[dir="rtl"] .chip { clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 5px 100%); }
.chip:hover { box-shadow: inset 0 0 0 2px #0f2747; }
.chip[aria-pressed="true"] { background: #0f2747; color: #fff; box-shadow: none; }
.chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); margin-inline-end: 2px; }
.chip:focus-visible { outline: 3px solid #0f2747; outline-offset: -5px; }
.chip[aria-pressed="true"]:focus-visible { outline-color: var(--sun); }
.chip .cn { font-size: 13.5px; font-weight: 500; opacity: .85; }
.chip .ico-svg { font-size: 18px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 5px solid var(--joint); background: #c3bbaf; }
.sheet-foot .btn { flex: 1 1 0; min-width: 0; }
.sheet-foot .btn-line { flex: 0 0 auto; }
@media (prefers-color-scheme: dark) { .sheet-foot { background: #45413c; } .chip { background: #3d3935; color: #fbf8f2; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); } .chip:hover { box-shadow: inset 0 0 0 2px #fff; } .chip[aria-pressed="true"] { background: #fbf8f2; color: #0f2747; } .chip:focus-visible { outline-color: #fff; } .xbtn:hover { background: rgba(255, 255, 255, .12); } }

/* the map (Leaflet), framed by joints; popups are small stone panels */
.mapc .c { padding-block: 0; gap: 8px; }
#map { height: min(68vh, 560px); min-height: 360px; background: #8d887f; border: 5px solid var(--joint); }
.mapnote { font-size: 14px; color: var(--mute); min-height: 20px; }
.pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--sun); color: #0f2747; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.pin b { transform: rotate(45deg); font: 800 15px/1 var(--sans); }
.leaflet-marker-icon:focus-visible .pin, .leaflet-marker-icon:focus .pin { outline: 3px solid #0f2747; outline-offset: 3px; }
.leaflet-container { font-family: var(--sans); }
#map .leaflet-popup-content-wrapper, #map .leaflet-popup-tip { background: #d6cfc4; color: var(--ink); border-radius: 0; }
#map .leaflet-popup-content { margin: 8px 16px; }
#map a.leaflet-popup-close-button { width: 44px; height: 44px; font-size: 24px; line-height: 44px; color: var(--mute); }
.pop { margin: 12px 4px 4px; min-width: 200px; color: #0f2747; }
.pop h3 { font: 700 17px/1.2 var(--display); margin: 0 0 8px; padding-inline-end: 24px; }
.pop ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.pop li { font-size: 15px; line-height: 1.35; }
.pop li span { display: block; color: #26324a; font-size: 14px; }
#map .pop a { color: #094c82; font-weight: 700; text-underline-offset: 3px; }
.pop a.dir, .pop a.more { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: 14px; }
.pop a.more { min-height: 36px; }

/* label stones and steps start at the top, like the first row next to them */
.stone.top, .stone.step, .day > .stone { justify-content: flex-start; }
@media (min-width: 900px) { .tlist.cols { column-count: 2; column-gap: 44px; } .tlist.cols .grp { break-inside: avoid; } }
.tlist .grp h3:first-child { margin-top: 12px; }
.tlist .grp:first-child h3:first-child { margin-top: 0; }
.tlist.cols > .more, .tlist.cols > .none { column-span: all; }

/* ================================================================ /e/<id>: the event, and what to do about it */
.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--em); text-underline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; font: 700 13.5px/1 var(--sans); background: #0f2747; color: #fff; }
.pill.warn { background: var(--sun); color: #0f2747; } .pill.bad { background: #b3261e; color: #fff; } .pill.ok { background: var(--wa); color: #fff; }
.evmain h1 { font-size: clamp(32px, 8.8vw, 40px); margin: 10px 0 6px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .evmain h1 { font-size: clamp(38px, 3.4vw, 52px); } }
.evmain .by { font-size: 20px; color: var(--mute); margin: 0 0 6px; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid rgba(15, 39, 71, .28); }
.facts li:first-child { border-top: 0; }
.facts .i { width: 24px; height: 24px; fill: none; stroke: var(--em); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.facts b { display: block; font: 700 13.5px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
html[lang="he"] .facts b { letter-spacing: 0; text-transform: none; font-size: 14px; }
.facts .v { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.facts .v small { display: block; font-size: 15px; color: var(--mute); }
.facts .v .na { color: var(--mute); }
.facts a.lnk { display: inline-flex; align-items: center; min-height: 44px; color: var(--em); font-weight: 650; text-underline-offset: 3px; }
.facts .desc { white-space: pre-line; overflow-wrap: anywhere; margin: 0; font-size: 16px; }
.nw { white-space: nowrap; }
.actions { display: grid; gap: 10px; }
.actions .btn { width: 100%; min-height: 54px; }
.actions .btn .i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pic { margin: 18px auto 0; width: fit-content; max-width: 100%; border: 5px solid var(--joint); background: #8d887f; }
.actions + .pic { margin-top: 20px; }
.pic img { display: block; width: 100%; height: auto; max-height: min(78vh, 760px); object-fit: contain; margin: 0 auto; }
@media (min-width: 900px) { .pic img { max-height: 340px; } }
.evnf h1 { margin-bottom: 8px; }
.evnf .actions { max-width: 380px; margin-top: 22px; }

/* ================================================================ the monthly Table (home, only when a meetup with a date is scheduled) */
.tcard { margin-top: 18px; padding: 16px 0 0; border-top: 1px solid rgba(15, 39, 71, .28); display: grid; gap: 8px; }
.tcard[hidden] { display: none; }
.tcard .teye { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--em); }
.tcard .teye .ico-svg { font-size: 18px; }
.tcard .ttitle { font-size: 24px; margin: 0; }
.tcard .tlead { margin: 0; color: var(--mute); font-size: 15px; }
.tcard .tside { display: grid; gap: 4px; }
.tcard .twhen { font: 700 20px/1.2 var(--display); }
.tcard .tvenue { font-size: 17px; }
.tcard .tcount { font-size: 15px; }
.tcard .tact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tcard .tnote { font-size: 14px; color: var(--mute); }
.tsk { display: block; height: 16px; width: 80%; background: rgba(15, 39, 71, .16); }
.tsk.s { width: 50%; }

/* "Hi from <partner>" after a partner QR scan: one amber stripe above the wall */
.hi-strip { background: var(--sun) !important; color: #0f2747 !important; }

/* ================================================================ documents (legal pages, partner directory, 404, groups): one wide stone with readable text */
.docs .c { max-width: 820px; margin-inline: auto; width: 100%; }
.docs h1 { font-size: clamp(32px, 7.6vw, 44px); margin: 0 0 10px; }
.docs h2 { font-size: 24px; margin: 30px 0 8px; scroll-margin-top: 16px; }
.docs h3 { font-size: 19px; margin: 20px 0 6px; }
.docs p, .docs li { overflow-wrap: anywhere; }
.docs p { margin: 0 0 12px; }
.docs ul, .docs ol { padding-inline-start: 1.3em; }
.docs li { margin: 4px 0; }
.docs a:not(.btn) { color: var(--em); text-underline-offset: 3px; }
.docs .muted { color: var(--mute); font-size: 14.5px; }
.docs .toc { background: rgba(15, 39, 71, .1); padding: 12px 18px; margin: 18px 0 0; }
.docs .toc ol { margin: 6px 0 0; columns: 2 220px; }
.docs .toc a { display: inline-block; padding: 6px 0; }
.docs .note { background: rgba(10, 105, 180, .14); padding: 12px 16px; margin: 16px 0; }
.docs .tblw { overflow-x: auto; margin: 12px 0; background: rgba(255, 255, 255, .35); }
.docs .tblw:focus-visible { outline-offset: 0; }
.docs table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.docs caption { text-align: start; font-weight: 700; padding: 10px 12px 4px; }
.docs th, .docs td { text-align: start; vertical-align: top; padding: 9px 12px; border-top: 1px solid rgba(15, 39, 71, .28); }
.docs thead th { border-top: 0; color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.docs .btn-wa { color: #fff; } .docs .btn-ghost, .docs .btn-sun { color: #0f2747; }
.docs .btnrow { display: grid; gap: 10px; margin: 22px 0 0; max-width: 420px; }
@media (prefers-color-scheme: dark) { .docs .toc { background: rgba(0, 0, 0, .24); } .docs .note { background: rgba(0, 0, 0, .26); } .docs .tblw { background: rgba(0, 0, 0, .18); } .docs th, .docs td { border-top-color: rgba(255, 255, 255, .2); } }

/* ================================================================ the network pages: /, /next, a place that is not open, /feedback */
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta .btn { flex: 0 1 auto; }
@media (max-width: 899.98px) { .cta { display: grid; max-width: 420px; } }
.pcards { display: grid; gap: 14px; margin-top: 18px; }
.pcard { display: grid; gap: 12px; }
.pname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pname h3 { font-size: clamp(24px, 6vw, 32px); }
.pname .where { color: var(--mute); font-size: 15px; }
.pdoors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
@media (max-width: 899.98px) { .pdoors { display: grid; } .pdoors .btn { width: 100%; } }
.cands { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
@media (min-width: 900px) { .cands.two { grid-template-columns: 1fr 1fr; column-gap: 44px; } .cands.two .cand:nth-child(2) { border-top: 0; } }
.cand { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(15, 39, 71, .28); }
.cand:first-child { border-top: 0; }
.cand-main { display: grid; gap: 2px; min-width: 0; }
.cand-name { display: inline-flex; align-items: center; min-height: 44px; font: 700 20px/1.2 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cand-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cand-cc { color: var(--mute); font-size: 14.5px; }
.cand .bar, .soonbox .bar { height: 8px; background: rgba(15, 39, 71, .16); overflow: hidden; margin-top: 8px; max-width: 320px; }
.cand .bar i, .soonbox .bar i { display: block; height: 100%; background: var(--sun); min-width: 2px; box-shadow: inset 0 0 0 1px rgba(15, 39, 71, .5); }
.cand-n { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; margin-top: 4px; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 112px; padding: 0 16px; border: 2px solid #0f2747; background: transparent; color: #0f2747; font: 700 15px/1.1 var(--sans); cursor: pointer; }
.vbtn:hover:not(:disabled) { background: #0f2747; color: #fff; }
.vbtn[aria-pressed="true"] { background: #0f2747; color: #fff; cursor: default; }
.vbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vbtn .ico-svg { font-size: 18px; }
.say { margin: 12px 0 0; min-height: 1.4em; font-size: 15px; color: var(--mute); }
.say.ok { color: #0b5a31; font-weight: 650; }
.say.bad { color: #9b1c15; font-weight: 650; }
@media (prefers-color-scheme: dark) { .vbtn { border-color: #fbf8f2; color: #fbf8f2; } .vbtn:hover:not(:disabled), .vbtn[aria-pressed="true"] { background: #fbf8f2; color: #0f2747; } .say.ok { color: #7be0a8; } .say.bad { color: #ffb4ab; } .cand { border-top-color: rgba(255, 255, 255, .2); } .cand .bar, .soonbox .bar { background: rgba(255, 255, 255, .16); } }
.tagl { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; background: var(--wa); color: #fff; font: 700 13.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
html[lang="he"] .tagl { letter-spacing: 0; text-transform: none; }
.suggest .c { gap: 0; }
.sgrow { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .sgrow { grid-template-columns: minmax(0, 1fr) auto; } }
input[type=text], textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid #0f2747; border-radius: 0; background: #f4f0e8; color: #0f2747; font: 17px/1.3 var(--sans); }
input[type=text]::placeholder, textarea::placeholder { color: #4d5d76; opacity: 1; }
input[type=text]:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { input[type=text], textarea { background: #2b2824; color: #fbf8f2; border-color: #fbf8f2; } input[type=text]::placeholder, textarea::placeholder { color: #cfc8bd; } }
.bigline { font-size: 20px; font-weight: 650; }
.soonbox .c { gap: 12px; align-items: flex-start; }
.soonbox .vbtn { min-height: 56px; font-size: 17px; width: 100%; max-width: 360px; }
.soonlinks { gap: 4px 22px; align-items: flex-start; }
.soonlinks a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 3px; }
.fbform { display: grid; gap: 12px; max-width: 640px; }
.fbform label.l { font: 700 16px/1.2 var(--sans); }
.fbform textarea { min-height: 170px; padding: 14px 16px; resize: vertical; }
.fbform .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fbform .cnt { color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 18px 0; font-size: 19px; }
.thanks .btn { margin-top: 14px; }
.alt { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.wide { max-width: 1100px; }

/* ================================================================ partners */
.photo-plaza { --img: url(/img/plaza-480.webp); min-height: 150px; }
@media (min-width: 900px) { .photo-plaza { --img: url(/img/plaza-800.webp); } }
.ways { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 12px; }
.ways li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ways .ico-svg { font-size: 24px; color: var(--em); margin-top: 1px; }
.ways b { font-weight: 650; font-size: 17px; }
.perks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.perks li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid rgba(15, 39, 71, .28); }
.perks li:first-child { border-top: 0; }
.perks b { font: 700 19px/1.25 var(--display); }
.perks span { color: var(--mute); font-size: 16px; }
@media (min-width: 900px) { .perks { grid-template-columns: 1fr 1fr; column-gap: 56px; } .perks li:nth-child(2) { border-top: 0; } }
.levels { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.levels li { padding: 14px 16px; background: rgba(15, 39, 71, .1); }
.levels li.me { background: var(--deep); color: #fff; }
.levels b { display: block; font: 700 19px/1.2 var(--display); margin-bottom: 4px; }
.levels span { font-size: 15.5px; color: var(--mute); }
.levels li.me span { color: #d5e0f0; }
.cta-col { gap: 10px; }
.stone.deep .sub { color: var(--mute); }

/* ================================================================ chat: an app screen (header, Lulu, conversation, composer) */
body.chatpage { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.chatpage .wall { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; }
.chatpage .wall > main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chatpage .logc { flex: 1; min-height: 0; }
.chatpage .logc > .stone { flex: 1; min-height: 0; padding-block: calc(var(--J) + var(--ring) + 2px); }
.nofoot > main > .course:last-child { --bs: 0px; --be: 0px; }
.nofoot > main > .course:last-child > .stone:last-child { --ib: 0px; --rb: 2px; }
.who .c { flex-direction: row; align-items: center; gap: 12px; min-height: 48px; max-width: 820px; margin-inline: auto; width: 100%; }
.who { --pt: calc(var(--J) + var(--ring) + 2px); --pb: calc(var(--J) + var(--ring) + 2px); }
.who h1 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.who .ai { display: block; font-size: 14px; line-height: 1.3; color: var(--mute); }
.av { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: #fff; }
.logst .c.log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding-block: 4px; }
.inner { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; width: 100%; }
.msg { margin: 0; max-width: 90%; padding: 12px 16px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.out { align-self: flex-end; background: #d9f2d6; color: #0f2747; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
html[dir="rtl"] .msg.out { clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.msg.in { align-self: flex-start; background: #fff; color: #0f2747; position: relative; margin-inline-start: 38px; }
.msg.in::before { content: ""; position: absolute; inset-inline-start: -38px; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff url(/brand/lulu-96.png) center / cover no-repeat; }
.msg.err { align-self: center; background: #e3eef8; color: #0f2747; font-size: 15px; text-align: center; margin-inline-start: 0; }
.msg .ln { min-height: 1.45em; }
.msg[dir=rtl] .ln { text-align: right; } .msg[dir=ltr] .ln { text-align: left; }
.msg .ln.ttl { font-weight: 700; } .msg .ln.ttl:not(:first-child) { margin-top: 2px; }
.msg .gap { height: .6em; }
.msg a { color: #094c82; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.msg a:hover { text-decoration-thickness: 2px; }
.msg a:focus-visible { outline: 2px solid #094c82; outline-offset: 2px; }
.typing { display: inline-flex; align-items: center; gap: 10px; color: #26324a; font-size: 14px; }
.typing .dots { display: inline-flex; gap: 4px; }
.typing .dots i { width: 7px; height: 7px; border-radius: 50%; background: #26324a; animation: dotb 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .15s; } .typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotb { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.bar .c { max-width: 820px; margin-inline: auto; width: 100%; gap: 8px; }
.bar { --pt: calc(var(--J) + var(--ring) + 4px); --pb: calc(var(--ring) + 6px + env(safe-area-inset-bottom, 0px)); }
.qrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.qrow::-webkit-scrollbar { display: none; }
.qrow:empty { display: none; }
.qrow .chip { flex: none; white-space: nowrap; }
.chatpage form { display: flex; gap: 8px; }
.chatpage form input[type=text] { flex: 1; min-width: 0; }
.chatpage .send { min-height: 52px; padding: 0 22px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 16px; font-size: 14px; color: var(--mute); }
.links a { color: var(--ink); font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.links a.quiet { color: var(--mute); font-weight: 500; }
@media (max-height: 520px) { .links { display: none; } }

/* ================================================================ the group and services directories (/g, /s) and the partner's private page (/me) inside a stone */
.dir h2, .docs h2 { font-size: 26px; }
.dir h2 { margin: 24px 0 8px; } .dir h2:first-child { margin-top: 0; }
.dir .card { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(15, 39, 71, .28); }
.dir .card img { width: 56px; height: 56px; border-radius: 50%; flex: none; background: #fff; }
.dir .card b { font: 700 18px/1.25 var(--display); }
.dir .card span { display: block; color: var(--mute); font-size: 15px; }
.dir .card .go { margin-inline-start: auto; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 0 20px; min-height: 44px; display: inline-flex; align-items: center; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
html[dir="rtl"] .dir .card .go { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 6px 100%); }
.dir .links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 8px 0 0; }
.dir .links a, .dir a.lnk { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-underline-offset: 3px; color: var(--em); overflow-wrap: anywhere; }
.dir .empty { color: var(--mute); }
.dir .tools { margin: 16px 0 6px; display: grid; gap: 10px; }
.dir .sbox { position: relative; }
.dir .sbox input { width: 100%; min-height: 52px; padding-block: 0; padding-inline: 16px 52px; border: 2px solid #0f2747; border-radius: 0; background: #f4f0e8; color: #0f2747; font: 17px/1.2 var(--sans); }
.dir .sbox input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.dir .sbox input::-webkit-search-cancel-button { display: none; }
.dir .sbox button { position: absolute; inset-inline-end: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--mute); font: 700 24px/1 sans-serif; cursor: pointer; }
.dir .chips { gap: 8px; }
.dir .chip .n { font-size: 13px; font-weight: 700; opacity: .85; }
.dir .chips .sep { flex: none; width: 1px; background: rgba(15, 39, 71, .3); margin: 6px 2px; }
.dir .count { margin: 10px 0 8px; color: var(--mute); font-size: 15px; }
.dir .list { list-style: none; margin: 0; padding: 0; display: grid; }
.dir .svc { padding: 14px 0; border-top: 1px solid rgba(15, 39, 71, .28); }
.dir .svc h3 { font: 700 19px/1.25 var(--display); margin: 0; overflow-wrap: anywhere; }
.dir .svc p { margin: 6px 0 0; color: var(--mute); font-size: 15.5px; overflow-wrap: anywhere; }
.dir .svc .d { color: var(--ink); }
.dir .cp { display: inline-block; font: 600 12.5px/1 sans-serif; color: var(--mute); border: 1px solid rgba(15, 39, 71, .4); padding: 5px 9px; }
.dir .cps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.dir .none { margin: 18px 0; padding: 16px; border: 2px dashed rgba(15, 39, 71, .4); color: var(--mute); }
.dir .none button { margin-top: 8px; min-height: 44px; padding: 0 16px; border: 2px solid #0f2747; background: transparent; color: #0f2747; font: 700 15px/1 var(--sans); cursor: pointer; }
.dir .tag { display: inline-block; font: 700 12px/1 sans-serif; background: var(--sun); color: #0f2747; padding: 5px 8px; margin-inline-start: 6px; border: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-color-scheme: dark) { .dir .card, .dir .svc { border-top-color: rgba(255, 255, 255, .2); } .dir .sbox input { background: #2b2824; color: #fbf8f2; border-color: #fbf8f2; } .dir .none button { border-color: #fbf8f2; color: #fbf8f2; } }
/* the partner page (/me/<token>) was written for the classic stylesheet: give it the same words for colour and take its rounded cards flat */
.docs { --muted: var(--mute); --surface: rgba(255, 255, 255, .42); --line: rgba(15, 39, 71, .28); --accent-soft: rgba(10, 105, 180, .14); --sunk: rgba(15, 39, 71, .1); --bg: transparent; --shadow: none; --on-deep-mute: #d5e0f0; --deep: #0f2747; }
.docs .card, .docs .stat, .docs .badge, .docs .live, .docs .stk { border-radius: 0 !important; box-shadow: none !important; }
.docs svg.ico-svg { width: 1em; height: 1em; }

/* print (the partner's sticker page, an event): no wall, no chrome, plain white */
@media print {
  html, body { background: #fff !important; }
  .wall > header, .wall > footer, .fabw, .skip, .ld { display: none !important; }
  .wall > main { margin: 0 !important; }
  .course { display: block !important; margin: 0 !important; }
  .stone { clip-path: none !important; background: #fff !important; padding: 0 !important; color: #000 !important; }
  .stone::before { display: none !important; }
  .c { padding: 0 !important; max-width: none !important; }
}
.skeleton .stone { min-height: 300px; }
@media (min-width: 900px) { .skeleton .stone { min-height: 360px; } }
.skeleton .skel { background: rgba(15, 39, 71, .14); }

/* the global page: candidates stay readable and an empty progress bar says nothing; the chakana, the wall's one ornament, sits in the trust stone; the Table card has no eyebrow */
#next .cands { max-width: 760px; }
.cand-main:has(.cand-n[data-votes="0"]) .bar { display: none; }
.chakana { flex: none; width: 46px; height: 46px; fill: rgba(40, 32, 24, .36); filter: drop-shadow(0 1.5px 0 rgba(255, 255, 255, .5)); }
@media (prefers-color-scheme: dark) { .chakana { fill: rgba(255, 255, 255, .22); filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, .4)); } }
.ft .emblem .c { flex-direction: row; align-items: center; gap: 14px; }
.tcard .teye { display: none; }
