/* The site's look (docs/LUMEN.md): Night, Day or Classic, chosen in the account panel and kept on the device
   (look.js). Classic is the site as it was: nothing here touches it, so going back is one tap.

   Night and Day share LUMEN's geometry: no rounded corners anywhere, except what is round in life (those are put
   back by /lumen/round.css, which is made from the site's own stylesheets). Night keeps the site's navy and neon,
   crisper, over the Club's wireframes drifting up. Day is the same site on paper: light ground, dark ink. */
html:is([data-look="night"], [data-look="day"]) *,
html:is([data-look="night"], [data-look="day"]) *::before,
html:is([data-look="night"], [data-look="day"]) *::after { border-radius: 0 !important; }
html:is([data-look="night"], [data-look="day"]) :is([style*="border-radius: 50%"], [style*="border-radius:50%"]) { border-radius: 50% !important; }

html[data-look="night"] { --bg: #040814; --panel: #0A1224; --accent: #19D3FF; --line: rgba(25, 211, 255, .2); }
html[data-look="night"] body { background: transparent; }
.lm-site-field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100lvh; pointer-events: none; }
html[data-look="classic"] .lm-site-field { display: none; }

/* Day, first version: the whole site turned from night to paper in one move (light for dark, the hues kept, warmed
   toward ivory), and the things that are pictures of the world turned back. */
html[data-look="day"] { background: #040610; filter: invert(1) hue-rotate(180deg) sepia(.2) saturate(1.15); }
html[data-look="day"] :is(img, video, picture, canvas:not(.lm-site-field), .mc-welcome-disc, .pg-ball, .leaflet-marker-icon, [style*="background-image"]) { filter: invert(1) hue-rotate(180deg); }
html[data-look="day"] img img, html[data-look="day"] [style*="background-image"] img { filter: none; }

/* the switch in the account panel */
.look-switch { display: grid; gap: 8px; margin: 10px 0 2px; }
.look-switch > span { font: 700 11px/1.2 var(--ts-font); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.look-switch > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.look-switch button { appearance: none; min-height: 44px; padding: 0 8px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: 600 15px/1 var(--ts-font);
  transition: border-color .2s ease, background .2s ease, color .2s ease; }
.look-switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.look-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* pages that were daylight already (the members' directory, the Club) are not turned: they are put back as they were */
html[data-look="day"] :is(.mc-page, .club) { filter: invert(1) hue-rotate(180deg); }
html[data-look="day"] :is(.mc-page, .club) :is(img, video, picture, canvas, .mc-welcome-disc, .pg-ball, .leaflet-marker-icon, [style*="background-image"]) { filter: none; }

/* ================= the welcome, in Night and Day ================= */
/* the circles: full-strength neon, each a dark disc in a lit ring around the Club's own icon (concept D) */
/* the icon is the Club's own, as it always was, drawn in the circle's light */
/* the three doors under them: lines of light, not filled glass */
html[data-look="night"] .welcome-club-row .welcome-newsletter { background: transparent !important; border: 1.5px solid var(--accent) !important; box-shadow: 0 0 10px rgba(25, 211, 255, .28), inset 0 0 14px rgba(25, 211, 255, .07) !important; }
html[data-look="night"] .welcome-club-row .welcome-newsletter::before, html[data-look="night"] .welcome-club-row .welcome-newsletter::after { opacity: 0; }

/* ================= the ping ball (pings.css), as LUMEN draws it: a dark ball in a lit ring, its dimples in light ================= */
html:is([data-look="night"], [data-look="day"]) .pg-ball-core { background: #040814; border: 2px solid var(--b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 10px var(--b); }
html:is([data-look="night"], [data-look="day"]) .pg-ball-core::before { background-image: radial-gradient(circle, var(--b) 1.3px, transparent 1.7px), radial-gradient(circle, var(--b) 1.3px, transparent 1.7px); opacity: .9; }
html:is([data-look="night"], [data-look="day"]) .pg-ball-core::after { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .28), transparent 42%), radial-gradient(circle, transparent 50%, rgba(2, 6, 16, .75) 100%); }

/* ================= maps (widgets.js thinkerTiles): the wireframe map, crisper at Night; a paper map by Day ================= */
html[data-look="night"] .ts-map { outline: 1px solid rgba(25, 211, 255, .55); outline-offset: -1px; }
html[data-look="night"] .ts-lines { filter: drop-shadow(0 0 1.5px #19D3FF); opacity: 1; }
html[data-look="night"] .ts-map .leaflet-control-zoom { border-color: var(--accent) !important; box-shadow: none; }
html[data-look="night"] .ts-map .leaflet-control-zoom a { background: #040814 !important; color: var(--accent) !important; }
html:is([data-look="night"], [data-look="day"]) .leaflet-popup-content-wrapper { background: #040814; color: #fff; border: 1px solid var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html:is([data-look="night"], [data-look="day"]) .leaflet-popup-tip { background: #040814; border: 1px solid var(--accent); box-shadow: none; }
/* by Day the map is not turned back: its night canvases go to paper with the page (ink lines on a light ground) */
html[data-look="day"] .ts-map .ts-tile canvas, html[data-look="day"] .ts-map canvas.ts-land, html[data-look="day"] .ts-map canvas.ts-lines { filter: none; }
html[data-look="day"] .ts-map .ts-holo { display: none; }
html[data-look="day"] .ts-map { outline: 1px solid rgba(25, 211, 255, .6); outline-offset: -1px; }

/* ---------- the welcome's order (Night and Day): events as a list, then the row that slides, then a very small map in
   the bottom left; the ping ball with a short list beside it and a small frame under it. A tap on a small one opens
   the full screen. (events.js rowLink, pings.js eventsMap and paint) ---------- */
html:is([data-look="night"], [data-look="day"]) .welcome .ev-rows { display: grid; margin: 0 4px 10px; border-top: 1px solid rgba(143, 227, 255, .22); }
html:is([data-look="night"], [data-look="day"]) .ev-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 9px 2px; color: #eef4ff; text-decoration: none; text-align: left; border-bottom: 1px solid rgba(143, 227, 255, .22); transition: background .2s ease; }
html:is([data-look="night"], [data-look="day"]) .ev-row i { font: 600 12px/1.3 var(--ts-mono, ui-monospace, monospace); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--c, #19d3ff); }
html:is([data-look="night"], [data-look="day"]) .ev-row i small { display: block; font-size: 10.5px; letter-spacing: .04em; color: #9fb4c7; }
html:is([data-look="night"], [data-look="day"]) .ev-row b { display: block; font: 500 19px/1.2 var(--ts-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:is([data-look="night"], [data-look="day"]) .ev-row span small { display: block; margin-top: 3px; font: 400 14px/1.35 var(--ts-font); color: #9fb4c7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:is([data-look="night"], [data-look="day"]) .ev-row u { text-decoration: none; font: 400 17px/1 var(--ts-font); transition: transform .2s ease; }
html:is([data-look="night"], [data-look="day"]) .ev-row:is(:hover, :focus-visible) { background: rgba(25, 211, 255, .06); }
html:is([data-look="night"], [data-look="day"]) .ev-row:is(:hover, :focus-visible) u { transform: translateX(5px); }
/* the small events map, bottom left, with where it looks beside it */
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home { grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; align-items: center; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home > * { grid-column: 1 / -1; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home > .ev-home-map { grid-column: 1; grid-row: 3; width: 92px; height: 92px; margin: 0 0 0 4px; overflow: hidden; border: 1px solid #19d3ff; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home > [data-events-home-bar] { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; margin: 0; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home > [data-events-home-bar]::before { content: "Map"; font: 500 18px/1.2 var(--ts-font); color: #eef4ff; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home > [data-events-home-bar] .pg-zoomline { display: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home-map .pg-map { height: 92px !important; min-height: 0 !important; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home-map > :not(.pg-map, .ev-map-open), html:is([data-look="night"], [data-look="day"]) .welcome .ev-home-map .leaflet-control-container { display: none !important; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home-map .ev-map-open { display: block; position: absolute; inset: 0; z-index: 1200; appearance: none; border: 0; padding: 0; background: linear-gradient(135deg, transparent calc(100% - 10px), #19d3ff calc(100% - 10px)) no-repeat right bottom / 14px 14px; cursor: pointer; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home-map .ev-map-open:focus-visible { outline: 2px solid #19d3ff; outline-offset: 3px; }
/* pings: the ball and its short list; the small frame under the ball */
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: start; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(143, 227, 255, .22); }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) > * { grid-column: 1 / -1; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) > .pg-home-head, html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) > .pg-list { display: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) > .pg-shell { grid-column: 1; display: grid; justify-items: center; gap: 14px; position: static; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) > .pg-shell > .pg-ball { display: block !important; position: relative; inset: auto; order: -1; width: 76px; height: 76px; margin: 6px 0 0; transform: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-ball-word { display: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-map-wrap { position: relative; width: 62px; height: 62px; margin: 0; overflow: hidden; border: 1px solid #19d3ff; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-map-wrap .pg-map { height: 62px !important; min-height: 0 !important; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-map-wrap > :not(.pg-map, .pg-expand), html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-map-wrap .leaflet-control-container { display: none !important; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-expand { display: block !important; position: absolute; inset: 0; top: 0; z-index: 1200; width: auto; height: auto; border: 0; padding: 0; opacity: 1; background: linear-gradient(135deg, transparent calc(100% - 10px), #19d3ff calc(100% - 10px)) no-repeat right bottom / 14px 14px; box-shadow: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) .pg-expand svg { display: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .pg-home:not(.is-full) > .pg-rows { grid-column: 2; grid-row: 1; display: grid; text-align: left; }
html:is([data-look="night"], [data-look="day"]) .pg-rows-head { padding: 0 0 9px; font: 700 11px/1 var(--ts-mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase; color: #8fe3ff; border-bottom: 1px solid rgba(143, 227, 255, .22); }
html:is([data-look="night"], [data-look="day"]) .pg-row { appearance: none; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 60px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(143, 227, 255, .22); background: transparent; color: #eef4ff; text-align: left; cursor: pointer; transition: background .2s ease; }
html:is([data-look="night"], [data-look="day"]) .pg-row i { font: 600 12px/1.3 var(--ts-mono, ui-monospace, monospace); font-style: normal; color: var(--c, #19d3ff); }
html:is([data-look="night"], [data-look="day"]) .pg-row b { display: block; font: 500 17px/1.25 var(--ts-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:is([data-look="night"], [data-look="day"]) .pg-row small { display: block; margin-top: 2px; font: 400 14px/1.35 var(--ts-font); color: #9fb4c7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:is([data-look="night"], [data-look="day"]) .pg-row:is(:hover, :focus-visible) { background: rgba(25, 211, 255, .06); }
html:is([data-look="night"], [data-look="day"]) .pg-row-all span { font: 600 13px/1 var(--ts-font); letter-spacing: .12em; text-transform: uppercase; color: #8fe3ff; }
html:is([data-look="night"], [data-look="day"]) .pg-rows-none { margin: 0; padding: 12px 0; font: 400 15px/1.45 var(--ts-font); color: #9fb4c7; }
html[data-look="night"] .welcome .pg-home:not(.is-full) .pg-map-wrap.is-field .pg-map { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(1.1); }   /* the field's plain map, as a night thumbnail */

/* ---------- the welcome's icons (Night and Day): the five circles are the Club's original round discs, untouched
   (people know them as circles), side by side and never overlapping; the three doors are squares the same size;
   icons only (the names stay for screen readers). ---------- */
html:is([data-look="night"], [data-look="day"]) .welcome .mc-welcome { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html:is([data-look="night"], [data-look="day"]) .welcome .mc-welcome .mc-welcome-circle { flex: 0 0 auto; margin-left: 0 !important; transform: none; z-index: auto; }
html:is([data-look="night"], [data-look="day"]) .welcome .mc-welcome .mc-welcome-circle:is(:hover, :focus-visible) { transform: translateY(-3px); }
html:is([data-look="night"], [data-look="day"]) .welcome .mc-welcome-names, html:is([data-look="night"], [data-look="day"]) .welcome .mc-welcome .mc-welcome-label { display: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row { display: flex; justify-content: center; gap: 8px; width: auto; margin-top: 8px; }
html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row > .welcome-newsletter { position: relative; flex: 0 0 auto; width: clamp(52px, 15vw, 66px); height: clamp(52px, 15vw, 66px); min-height: 0; padding: 0; display: grid; place-items: center; }
html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row > .welcome-newsletter > span:not(.welcome-newsletter-icon, .ev-badge, [data-events-badges]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: none; }
html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row [data-events-badges] { position: absolute; top: -6px; right: -6px; }
html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row .ev-badge { top: -6px; right: -6px; }
/* the events head never runs off the side; an empty list takes no more room than its line */
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home .ev-rail-head { flex-wrap: wrap; row-gap: 8px; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home .ev-rail-mini { min-height: 0; }
html:is([data-look="night"], [data-look="day"]) .welcome .ev-home .ev-rail-empty { margin: 0; padding: 6px 4px 12px; }
html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row .welcome-newsletter-icon, html:is([data-look="night"], [data-look="day"]) .welcome .welcome-club-row .welcome-newsletter-icon svg { width: 34px; height: 34px; }

/* leaving the welcome by a door (Night and Day): it puffs away (the app shell marks it; opacity and scale only) */
html:is([data-look="night"], [data-look="day"]) #main.ts-leave { transform: scale(1.04); }
