/* /lights · Light up your city (feature 41) — loaded by that page only, so site.css stays under its budget. The tokens
   are site.css's (the page loads both). The map's colours are variables so a palette can be switched on the section
   (data-palette="night": the warm night palette proposed 2026-11-20, off until the owner says so). */
.lights{background:var(--ink-deep);color:var(--on-dark);padding-block:28px 40px;
  --lt-sky0:#13213a;--lt-sky1:#0b1527;--lt-land:#172a44;--lt-border:#7ea2c4;--lt-home:#9ff0f5;--lt-home-glow:#16c3d1;--lt-live:#ffe08a;--lt-live-glow:#ffbe2b;--lt-arc:#16c3d1;--lt-label:#cfe3ec;--lt-you:#fff}
.lights[data-palette=night]{background:#0a1430;
  --lt-sky0:#1a2a52;--lt-sky1:#0a1430;--lt-land:#1b2f55;--lt-border:#5f8fb8;--lt-home:#ffd166;--lt-home-glow:#ff9f43;--lt-live:#9ff0f5;--lt-live-glow:#16c3d1;--lt-arc:#ff5a54;--lt-label:#f3e9d2;--lt-you:#ffd166}
.lights .wrap{max-width:1100px}
/* Yalda (time-boxed by the page, data-theme="yalda" until the instant in data-yalda-until, 2 Dey 1405): the page's title
   lives IN the banner (owner 2026-11-21) — the text on the reading side, the art beside it; on a phone the art on top */
.lt-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:8px 28px;margin:0 0 26px}
.lt-banner[hidden]{display:none}
.lt-banner .crumb,.lt-banner .crumb a{color:#9fc3c9}
.lt-banner h1{color:#fff;font-size:clamp(32px,4.6vw,54px);line-height:1.12;margin:12px 0;text-wrap:balance}
.lt-banner-line{color:#d7ebee;font-size:clamp(16px,1.7vw,19px);line-height:1.75;margin:0;max-width:36ch}
.lt-banner-art{border-radius:18px;overflow:hidden;background:#041213;box-shadow:0 18px 40px -24px rgba(0,0,0,.8)}
.lt-banner-art img{display:block;width:100%;height:auto}
@media (max-width:760px){.lt-banner{grid-template-columns:1fr;gap:10px}.lt-banner-art{order:-1}}
.lt-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.lt-btn-ico{width:28px;height:28px;flex:0 0 auto;border-radius:50%;box-shadow:0 0 0 1px rgba(255,190,43,.55)}
.lights[data-theme=yalda]{background:#0f2a30;--lt-sky0:#17383f;--lt-sky1:#0b1f24;--lt-land:#153a40;--lt-border:#5aa7b3;--lt-home:#ffd166;--lt-home-glow:#ff9f43;--lt-live:#9ff0f5;--lt-live-glow:#16c3d1;--lt-arc:#ff5a54}
.lights[data-theme=yalda] .lt-borders{stroke:#16c3d1;stroke-opacity:.85;stroke-dasharray:2 3}   /* the campaign's one outline (owner 2026-11-21) */
.lights[data-theme=yalda] .lt-mine{color:#ffd166;font-size:18px;font-weight:700}
.lights[data-theme=yalda] .lt-btn{background:linear-gradient(180deg,#e2324a,#a3102a);color:#fff;box-shadow:inset 0 0 0 2px rgba(255,190,43,.6),0 10px 26px -12px rgba(226,50,74,.8)}
.lights[data-theme=yalda] .lt-btn:hover{filter:brightness(1.06)}
.lights[data-theme=yalda] .lt-field input{background:#0b1f24;border-color:#1f4d55}
.lights[data-theme=yalda] .lt-share{border-top-color:#1f4d55}
@media (max-width:600px){.lt-yalda{margin-inline:0;border-radius:0}}
.lt-form{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;position:relative}
.lt-form[hidden],.lt-mine[hidden],.lt-cancel[hidden]{display:none}   /* after lighting the form goes; the one sentence stays */
.lt-mine .lt-change{display:block;margin:6px 0 0;font:inherit;font-size:14px;font-weight:600;background:none;border:0;padding:4px 0;color:var(--turq);text-decoration:underline;cursor:pointer;min-height:32px}
.lt-cancel{font:inherit;font-size:14px;background:none;border:0;color:var(--on-dark2);text-decoration:underline;cursor:pointer;min-height:48px;padding:0 6px}
.lt-change:focus-visible,.lt-cancel:focus-visible{outline:3px solid var(--turq);outline-offset:2px}
.lt-field{flex:1 1 240px;min-width:0;position:relative}
.lt-field label{display:block;font-size:13px;font-weight:700;color:var(--on-dark2);margin-bottom:6px}
.lt-field input{width:100%;font:inherit;font-size:16px;padding:12px 14px;border-radius:12px;border:1px solid #2b4466;background:#142339;color:#fff;min-height:48px}
.lt-field input:focus-visible{outline:3px solid var(--turq);outline-offset:2px}
.lt-list{position:absolute;inset-inline:0;top:100%;z-index:30;margin:4px 0 0;padding:6px;list-style:none;background:#fff;color:var(--ink);border-radius:12px;box-shadow:0 16px 40px -16px rgba(0,0,0,.6);max-height:300px;overflow:auto}
.lt-list[hidden]{display:none}
.lt-list li{padding:10px 12px;border-radius:8px;cursor:pointer;display:flex;justify-content:space-between;gap:12px;font-size:15px}
.lt-list li small{color:var(--ink2)}
.lt-list li[aria-selected=true],.lt-list li:hover{background:var(--brass-cream,#e7f7f6)}
.lt-list .lt-none{color:var(--ink2);cursor:default}
.lt-hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}   /* visually hidden with NO offset: a large negative left is scrollable overflow in an RTL page */
.lt-btn{min-height:48px;flex:0 0 auto}
.lt-mine{margin:14px 0 0;font-size:15px}
.lt-mine b{color:#fff}
.lt-mine button{font:inherit;background:none;border:0;color:var(--turq);text-decoration:underline;cursor:pointer;padding:0;margin-inline-start:8px}
.lt-counter{margin:14px 0 0;font-size:15px;color:var(--on-dark2)}
.lt-counter b{color:#fff;font-size:22px;font-variant-numeric:tabular-nums}
.lt-status{margin:8px 0 0;min-height:1.5em;font-size:14px;color:#ffd0ce}
.lt-status.ok{color:var(--turq)}
/* the map: one SVG (the world image, the dotted outlines, the lights, the names), zoomed and panned by its viewBox */
.lt-map{margin-top:18px;position:relative;border-radius:16px;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,var(--lt-sky0),var(--lt-sky1) 70%);direction:ltr;touch-action:none;user-select:none;-webkit-user-select:none}
.lt-lights{display:block;width:100%;height:auto;cursor:grab}
.lt-lights.dragging{cursor:grabbing}
.lt-borders{fill:none;stroke:var(--lt-border);stroke-opacity:.5;stroke-width:1;stroke-dasharray:1.5 3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.lt-gh0{stop-color:var(--lt-home-glow);stop-opacity:.95}.lt-gh1{stop-color:var(--lt-home-glow);stop-opacity:.35}.lt-gh2{stop-color:var(--lt-home-glow);stop-opacity:0}
.lt-gl0{stop-color:var(--lt-live-glow);stop-opacity:.8}.lt-gl1{stop-color:var(--lt-live-glow);stop-opacity:.25}.lt-gl2{stop-color:var(--lt-live-glow);stop-opacity:0}
.lt-arc{fill:none;stroke:var(--lt-arc);stroke-width:1;vector-effect:non-scaling-stroke}
.lt-live{fill:var(--lt-live)}
.lt-home{fill:var(--lt-home)}
.lt-you{fill:none;stroke:var(--lt-you);stroke-width:1.5;stroke-dasharray:3 2;vector-effect:non-scaling-stroke}
.lt-hit{fill:transparent;cursor:pointer}
.lt-label{fill:var(--lt-label);font-family:Vazirmatn,system-ui,sans-serif;font-weight:600;paint-order:stroke;stroke:var(--lt-sky1);stroke-width:3px;stroke-linejoin:round;pointer-events:none}
@keyframes lt-pulse{0%{transform:scale(1);opacity:1}100%{transform:scale(3);opacity:0}}
.lt-pulse{transform-box:fill-box;transform-origin:center;animation:lt-pulse 1.6s ease-out 2}
.lt-ctl{position:absolute;inset-inline-end:10px;top:10px;display:flex;flex-direction:column;gap:6px;pointer-events:none}   /* only the buttons take the pointer: the lights under the column stay hoverable */
.lt-ctl-btn{pointer-events:auto}
.lt-ctl-btn{width:40px;height:40px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(10,20,40,.72);color:#fff;font:700 20px/1 Vazirmatn,system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(4px)}
.lt-ctl-btn:hover{background:rgba(22,195,209,.35)}
.lt-ctl-btn:focus-visible{outline:3px solid var(--turq);outline-offset:2px}
.lt-ctl-reset{width:auto;padding:0 12px;font-size:13px;font-weight:600;white-space:nowrap}
.lt-tip{position:absolute;z-index:5;pointer-events:none;background:rgba(10,20,40,.9);color:#fff;font-size:13px;line-height:1.3;padding:6px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.15);white-space:nowrap;transform:translate(-50%,-130%)}
.lt-tip[hidden]{display:none}
.lt-tip b{display:block;font-size:14px}
.lt-hint{margin:8px 0 0;font-size:12px;color:var(--on-dark2)}
.lt-legend{display:flex;gap:18px;font-size:13px;color:var(--on-dark2);margin:8px 0 0;flex-wrap:wrap}
.lt-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-inline-end:6px;vertical-align:middle}
.lt-dot-home{background:var(--lt-home);box-shadow:0 0 8px var(--lt-home-glow)}.lt-dot-live{background:var(--lt-live);box-shadow:0 0 8px var(--lt-live-glow)}
.lt-share{margin-top:28px;padding-top:20px;border-top:1px solid #24344d}
.lt-share h2{color:#fff;font-size:22px;margin:0 0 4px}
.lt-share p{margin:0 0 14px;color:var(--on-dark2);font-size:14px;max-width:60ch}
.lt-share-row{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start}
.lt-card{width:270px;height:270px;max-width:100%;border-radius:12px;background:#0b1527;flex:0 0 auto}
.lt-share-actions{display:flex;flex-direction:column;gap:10px;flex:1 1 220px;max-width:320px}
.lights .btn[hidden]{display:none}   /* site.css .btn sets display and wins over [hidden] at equal weight: the Share button showed (and did nothing) where Web Share cannot share a file; "Get my code" after a sent code */
.lt-share-actions .btn-ghost{background:transparent;color:var(--on-dark);border:2px solid var(--on-dark2)}
.lt-note{margin:18px 0 0;font-size:13px;color:var(--on-dark2)}
.lt-attr{display:inline-block;margin-inline-start:6px;color:var(--on-dark2)}
@media (prefers-reduced-motion:reduce){.lt-pulse{animation:none}}
@media (max-width:600px){.lights{padding-inline:0}.lt-form{flex-direction:column;align-items:stretch}.lt-field{flex:0 0 auto}.lt-btn{width:100%}.lt-card{width:100%;height:auto;aspect-ratio:1}.lt-map{aspect-ratio:1/1.1}.lt-lights{height:100%;width:100%}.lt-ctl{top:auto;bottom:10px;flex-direction:row}.lt-ctl-btn{width:44px;height:44px}}
/* the Yalda email box (feature 41 · 5a): a dialog in the scene's night — the scene on top, the code strip in candle gold,
   the coral button; a bottom sheet on phones */
.lt-box{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:rgba(5,14,18,.72)}
.lt-box[hidden]{display:none}
.lt-box-card{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 32px);overflow:auto;background:#0f2a30;color:#e7f7f6;border:1px solid #1f4d55;border-radius:18px;padding:0 20px 18px;box-shadow:0 24px 60px -20px rgba(0,0,0,.7)}
.lt-box-scene{margin:0 -20px 14px;aspect-ratio:640/416;background:#041213}
.lt-box-scene img{display:block;width:100%;height:auto}
.lt-box h2{color:#fff;font-size:21px;line-height:1.5;margin:0 0 14px;text-wrap:balance}
.lt-box p{margin:0 0 10px;font-size:14px;line-height:1.7;color:#cfe3ec}
.lt-box .lt-box-code{margin:4px 0 10px;padding:14px;border-radius:12px;background:#0b1f24;border:1px dashed #ffbe2b;color:#ffbe2b;font-size:30px;font-weight:800;letter-spacing:6px;text-align:center}
.lt-box .lt-box-code[hidden]{display:none}
.lt-box label{display:block;font-size:13px;font-weight:700;color:#cfe3ec;margin:4px 0 6px}
.lt-box input[type=email]{width:100%;font:inherit;font-size:16px;padding:12px 14px;border-radius:12px;border:1px solid #1f4d55;background:#0b1f24;color:#fff;min-height:48px}
.lt-box .lt-box-tick{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:12px 0;line-height:1.6;cursor:pointer;min-height:48px}
.lt-box-tick input{width:22px;height:22px;flex:0 0 auto;margin:2px 0 0;accent-color:#ff5a54}
.lt-box-btns{display:flex;gap:10px;flex-wrap:wrap}.lt-box-btns[hidden],#lt-box-fields[hidden]{display:none}.lt-box-btns .btn{flex:1 1 100%}
.lt-box .btn-ghost{background:transparent;color:#e7f7f6;border:2px solid #5aa7b3}
.lt-box .btn:disabled,.lt-box .btn[aria-disabled=true]{opacity:.55;cursor:not-allowed}
.lt-box .lt-box-msg{min-height:1.4em;margin:0 0 8px;color:#ffd0ce}.lt-box .lt-box-msg.ok{color:#9ff0f5;font-weight:600}
.lt-box .lt-box-fine{font-size:12px;color:#9fb8c0;margin:12px 0 0}.lt-box-fine a{color:#16c3d1}
.lt-box-x{position:absolute;top:8px;inset-inline-end:8px;z-index:1;width:48px;height:48px;border-radius:50%;border:0;background:rgba(11,31,36,.85);color:#fff;font:400 26px/1 system-ui,sans-serif;cursor:pointer}
.lt-box input:focus-visible,.lt-box button:focus-visible,.lt-box a:focus-visible{outline:3px solid #16c3d1;outline-offset:2px}
@media (max-width:600px){.lt-box{place-items:end center;padding:0}.lt-box-card{max-width:none;border-radius:18px 18px 0 0;max-height:92vh}}
