/*
 * Public site "Soft UI" look (neomorphism) - Settings > Theme & style > Soft UI for the public site.
 * Everything is scoped to body.soft-ui. Liquid glass is switched off while it is on.
 */
body.soft-ui {
  --nm-bg: #e8edf8; --nm-dark: #c2cce2; --nm-light: #ffffff;
  --b1: #2f7bff; --b2: #12b4ff; --p1: #8a4dff; --p2: #b45cff; --k1: #ff4fa3; --k2: #ff7ab8;
  --bg: var(--nm-bg); --card-bg: var(--nm-bg); --soft: var(--nm-bg); --line: rgba(120, 135, 175, .2);
  --ink: #26324f; --muted: #566485; --radius: 14px;
  --grad: linear-gradient(135deg, var(--b1), var(--p1));
  --grad3: linear-gradient(135deg, var(--b2), var(--p1) 55%, var(--k1));
  --raise: 7px 7px 16px var(--nm-dark), -7px -7px 16px var(--nm-light);
  --raise-s: 4px 4px 10px var(--nm-dark), -4px -4px 10px var(--nm-light);
  --sunk: inset 4px 4px 9px var(--nm-dark), inset -4px -4px 9px var(--nm-light);
  --sunk-s: inset 2px 2px 5px var(--nm-dark), inset -2px -2px 5px var(--nm-light);
  background-color: var(--nm-bg);
  background-image:
    radial-gradient(900px 560px at 0% 0%, rgba(47, 123, 255, .22), transparent 60%),
    radial-gradient(800px 560px at 100% 8%, rgba(255, 79, 163, .17), transparent 60%),
    radial-gradient(900px 620px at 50% 100%, rgba(138, 77, 255, .19), transparent 60%);
  background-attachment: fixed;
}
body.soft-ui h1, body.soft-ui h2, body.soft-ui h3 { color: var(--ink); }

/* header, footer */
body.soft-ui .ws-header { background: var(--nm-bg); border: 0; box-shadow: 0 8px 18px -8px var(--nm-dark); }
body.soft-ui .ws-footer { border: 0; }
body.soft-ui .ws-logo-mark { background: var(--grad3); border-radius: 14px; box-shadow: var(--raise-s); }

/* cards */
body.soft-ui .card { border: 0; border-radius: 22px; background: var(--nm-bg); box-shadow: var(--raise); }
body.soft-ui .card.strip { box-shadow: var(--raise-s); border-radius: 18px; }
body.soft-ui .card-head h2 .chip { border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--b2), var(--b1)); box-shadow: var(--raise-s); width: 32px; height: 32px; }
body.soft-ui .ws-row:nth-child(3n+2) .card-head h2 .chip { background: linear-gradient(135deg, var(--k2), var(--k1)); }
body.soft-ui .ws-row:nth-child(3n+3) .card-head h2 .chip { background: linear-gradient(135deg, var(--p2), var(--p1)); }
body.soft-ui .card.current { box-shadow: var(--raise); border-radius: 26px; }
body.soft-ui .strip-label svg { color: var(--p1); }

/* raised controls */
body.soft-ui .btn, body.soft-ui .chip-btn, body.soft-ui .chip-x, body.soft-ui .pill, body.soft-ui .seg,
body.soft-ui .ws-bell, body.soft-ui .nt-mode, body.soft-ui .nt-posbtn, body.soft-ui .nt-fold, body.soft-ui .nt-actions .icon-btn,
body.soft-ui .tl-count { background: var(--nm-bg); border: 0; border-radius: 14px; box-shadow: var(--raise-s); color: var(--ink); }
body.soft-ui .chip-btn, body.soft-ui .chip-x { border-radius: 12px; }
body.soft-ui .btn:hover, body.soft-ui .chip-btn:hover, body.soft-ui .nt-mode:hover, body.soft-ui .nt-posbtn:hover, body.soft-ui .nt-fold:hover,
body.soft-ui .ws-bell:hover { background: var(--nm-bg); color: var(--p1); box-shadow: var(--raise); border: 0; }
body.soft-ui .btn:active, body.soft-ui .chip-btn:active { box-shadow: var(--sunk); }
body.soft-ui .btn.primary { background: var(--grad); color: #fff; box-shadow: 5px 5px 13px var(--nm-dark), -5px -5px 13px var(--nm-light); }
body.soft-ui .btn.primary:hover { color: #fff; filter: brightness(1.07); }
body.soft-ui .chip-btn small { color: var(--muted); }
body.soft-ui .chip-btn svg, body.soft-ui .btn svg { color: var(--p1); }
body.soft-ui .btn.primary svg { color: #fff; }
body.soft-ui .chip-btn.active { background: var(--grad); color: #fff; box-shadow: var(--raise-s); }
body.soft-ui .chip-btn.active svg, body.soft-ui .chip-btn.active small { color: #fff; }
body.soft-ui .seg { padding: 3px; gap: 2px; }
body.soft-ui .seg button { border-radius: 11px; color: var(--muted); }
body.soft-ui .seg button.on { background: var(--grad3); color: #fff; box-shadow: 3px 3px 8px var(--nm-dark), -2px -2px 6px var(--nm-light); }
body.soft-ui .nt-mode.on, body.soft-ui .nt-posbtn.on { box-shadow: var(--sunk), 0 0 0 2px rgba(138, 77, 255, .5); }
body.soft-ui .ws-bell.on svg { color: var(--k1); }
body.soft-ui .ws-bell-dot { box-shadow: 0 0 0 2px var(--nm-bg); }

/* pressed-in fields and boxes */
body.soft-ui .search-box input, body.soft-ui .map-tools select, body.soft-ui .fb-manual input, body.soft-ui .auto-update select,
body.soft-ui .cur-foot select { background: var(--nm-bg); border: 0; border-radius: 14px; box-shadow: var(--sunk); color: var(--ink); }
body.soft-ui .search-box input:focus { outline: 0; box-shadow: var(--sunk), 0 0 0 2px rgba(138, 77, 255, .45); }
body.soft-ui .wear-item, body.soft-ui .fr-card, body.soft-ui .tr-box, body.soft-ui .sk-box, body.soft-ui .ss-card, body.soft-ui .otd-rec,
body.soft-ui .gl-item, body.soft-ui .gl-status, body.soft-ui .gl-ico, body.soft-ui .pol, body.soft-ui .cmp-sum, body.soft-ui .cmp-table,
body.soft-ui .quake, body.soft-ui .storm, body.soft-ui .info-bar, body.soft-ui .map-consent, body.soft-ui .consent-opt,
body.soft-ui .wear-head, body.soft-ui .fr-banner, body.soft-ui .sk-bar, body.soft-ui .sk-aur, body.soft-ui .ss-rb, body.soft-ui .otd-line,
body.soft-ui .map-frame { background: var(--nm-bg); border: 0; border-radius: 16px; box-shadow: var(--sunk); }
body.soft-ui .hour.now, body.soft-ui .day.today { background: var(--nm-bg); box-shadow: var(--sunk-s); border-radius: 14px; }
body.soft-ui .day { border-bottom-color: rgba(120, 135, 175, .18); }
body.soft-ui .nt-screen { background: var(--nm-bg); border: 0; box-shadow: var(--sunk-s); }
body.soft-ui .cmp-head { background: transparent; }

/* floating things */
body.soft-ui .suggest, body.soft-ui .ws-toast, body.soft-ui .consent, body.soft-ui .nt-modal { background: var(--nm-bg); border: 0; border-radius: 20px; box-shadow: var(--raise); }
body.soft-ui .ws-toast { border-left: 4px solid var(--p1); }
body.soft-ui .suggest li:hover, body.soft-ui .suggest li.act { background: rgba(47, 123, 255, .1); }
body.soft-ui .ws-offline { background: #2d3a6b; }

/* the unit switch and other small colour accents stay bright */
body.soft-ui .nt-check input { accent-color: var(--p1); }
body.soft-ui a { color: #3f5fe0; }
body.soft-ui .ws-footer a { color: var(--muted); }
body.soft-ui .current h1, body.soft-ui .current h2, body.soft-ui .current h3 { color: inherit; }

/* Readability: the Current card sits on a pale soft surface, so it uses dark ink instead of white text */
body.soft-ui .card.current { background: var(--nm-bg); color: var(--ink); text-shadow: none; }
body.soft-ui .current .cur-sub, body.soft-ui .current .cur-time, body.soft-ui .current .cur-meta { color: var(--muted); opacity: 1; }
body.soft-ui .current .cur-place h2, body.soft-ui .current .big-temp, body.soft-ui .current .cur-cond { color: var(--ink); }
body.soft-ui .current .big-temp sup { color: var(--p1); }
body.soft-ui .current .cur-icon { color: var(--p1); filter: none; background: var(--nm-bg); border: 0; border-radius: 24px; box-shadow: var(--raise); }
body.soft-ui .current .cur-icon svg { color: var(--p1); }
body.soft-ui .current .cur-place h2 > svg { color: var(--p1); }
body.soft-ui .current .icon-btn { background: var(--nm-bg); color: var(--ink); border: 0; border-radius: 13px; box-shadow: var(--raise-s); }
body.soft-ui .current .icon-btn svg { color: var(--p1); }
body.soft-ui .current .icon-btn:hover { background: var(--nm-bg); color: var(--p1); box-shadow: var(--raise); }
body.soft-ui .current .icon-btn.on { background: var(--grad); color: #fff; box-shadow: var(--raise-s); }
body.soft-ui .current .icon-btn.on svg { color: #fff; }
body.soft-ui .current .tile { background: var(--nm-bg); border: 0; border-radius: 16px; box-shadow: var(--raise-s); backdrop-filter: none; color: var(--ink); }
body.soft-ui .current .tile .t-label { color: var(--muted); opacity: 1; }
body.soft-ui .current .tile .t-label svg { color: var(--p1); }
body.soft-ui .current .tile .t-val { color: var(--ink); }
body.soft-ui .current .tile .t-sub { color: var(--muted); opacity: 1; }
body.soft-ui .current .nowcast, body.soft-ui .current .nowcast.nc-soon, body.soft-ui .current .nowcast.nc-wet { background: var(--nm-bg); border: 0; border-radius: 16px; box-shadow: var(--sunk); color: var(--ink); }
body.soft-ui .current .nc-ico { background: var(--nm-bg); box-shadow: var(--raise-s); color: var(--p1); border-radius: 10px; }
body.soft-ui .current .nowcast * { color: inherit; }
body.soft-ui .current .nowcast svg { color: var(--p1); }
body.soft-ui .current .nowcast .nc-bars, body.soft-ui .current .nowcast [class*="nc-"] small, body.soft-ui .current .nowcast span[class*="lbl"] { color: var(--muted); }
body.soft-ui .current .cur-foot { color: var(--muted); opacity: 1; border-top-color: rgba(120, 135, 175, .25); }
body.soft-ui .current .cur-foot select { color: var(--ink); }
body.soft-ui .current .cur-foot select option { color: var(--ink); background: var(--nm-bg); }
body.soft-ui .current .skeleton { background: rgba(120, 135, 175, .22); }
body.soft-ui .current .nc-bar { background: linear-gradient(180deg, var(--b2), var(--p1)); opacity: 1; }
body.soft-ui .current .nc-lab { color: var(--muted); opacity: 1; }

/* Current card: always the pale soft surface (beats the sky gradient set inline/by condition) */
body.soft-ui .card.current, body.soft-ui .current { background: var(--nm-bg) !important; background-image: none !important; }
body.soft-ui .current .cur-icon { background: var(--nm-bg) !important; }

/* Clear ON state for toggles: bright gradient + pressed-in glow; OFF stays raised and neutral */
body.soft-ui .pill.on, body.soft-ui .chip-btn.active, body.soft-ui .seg button.on, body.soft-ui .nt-mode.on, body.soft-ui .nt-posbtn.on {
  background: linear-gradient(135deg, var(--b1), var(--p1) 60%, var(--k1)); color: #fff; border: 0;
  box-shadow: inset 2px 2px 6px rgba(20, 20, 90, .35), 0 0 0 2px rgba(138, 77, 255, .28), 0 4px 12px rgba(138, 77, 255, .35); }
body.soft-ui .pill.on svg, body.soft-ui .pill.on small, body.soft-ui .nt-mode.on svg, body.soft-ui .nt-posbtn.on svg { color: #fff; }
body.soft-ui .pill.on:hover, body.soft-ui .nt-mode.on:hover, body.soft-ui .nt-posbtn.on:hover { color: #fff; filter: brightness(1.06); }
body.soft-ui .pill:not(.on) { color: var(--muted); }
body.soft-ui .ss-rb.on { background: var(--nm-bg); box-shadow: var(--sunk), 0 0 0 2px rgba(138, 77, 255, .4); }
body.soft-ui .ws-cell.has-bg > .card.current { background: var(--nm-bg) !important; background-image: none !important; }

/* Soft UI: the Current card stays light in every condition - drop the dark sky overlays (overcast blanket, night shade, dark/grey clouds, dusk glow) */
body.soft-ui .current .fx-blanket, body.soft-ui .current .fx-golden, body.soft-ui .current .fx-heat { display: none; }
body.soft-ui .current .fx-night::after { background: transparent; }
body.soft-ui .current .fx-cloud.dark, body.soft-ui .current .fx-cloud.grey, body.soft-ui .current .fxk-storm .fx-cloud { background: rgba(130, 145, 190, .26); }
body.soft-ui .current .fx-fog i { background: linear-gradient(90deg, transparent, rgba(150, 165, 210, .22), transparent); }
body.soft-ui .current .fx-moon { box-shadow: 0 0 40px 10px rgba(138, 77, 255, .16); background: radial-gradient(circle at 38% 38%, #fff, #dfe4f7 60%, #c3cbe8); }

/* Weather animations on the pale Soft UI card: crisp and high-contrast (no blur; rain, snow, stars and lightning tinted blue-purple) */
body.soft-ui .current .fx canvas { filter: brightness(0) saturate(100%) invert(36%) sepia(95%) saturate(2600%) hue-rotate(228deg) brightness(.98) contrast(1.05); opacity: .95; }
body.soft-ui .current .fx-cloud { background: linear-gradient(180deg, #f4f6ff 0%, #d3dbfa 70%, #bcc7f2 100%); opacity: .8; filter: drop-shadow(0 5px 7px rgba(105, 120, 200, .28)); box-shadow: none; }
body.soft-ui .current .fx-cloud::before, body.soft-ui .current .fx-cloud::after { box-shadow: none; }
body.soft-ui .current .fx-cloud.dark, body.soft-ui .current .fx-cloud.grey, body.soft-ui .current .fxk-storm .fx-cloud { background: linear-gradient(180deg, #c5cdf0 0%, #9fabe0 70%, #8996d6 100%); opacity: .85; }
body.soft-ui .current .fx-cloud.c1, body.soft-ui .current .fx-cloud.c3, body.soft-ui .current .fx-cloud.c4 { opacity: .7; }
body.soft-ui .current .fx-fog i { filter: blur(3px); background: linear-gradient(90deg, transparent, rgba(120, 140, 220, .34), transparent); }
body.soft-ui .current .fx-glow { background: radial-gradient(circle, rgba(255, 214, 90, 1) 0 16%, rgba(255, 196, 70, .55) 34%, rgba(255, 190, 70, 0) 68%); }
body.soft-ui .current .fx-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 190, 60, .5) 0 6deg, rgba(255, 190, 60, 0) 6deg 18deg); }
body.soft-ui .current .fx-moon { background: radial-gradient(circle at 38% 38%, #fff, #e6e9fb 55%, #b9c2ea); box-shadow: 0 0 0 2px rgba(138, 77, 255, .25), 0 0 40px 10px rgba(138, 77, 255, .2); }
body.soft-ui .current .fx-wisps i { filter: blur(1px); background: linear-gradient(90deg, transparent, rgba(110, 125, 215, .6), transparent); }
body.soft-ui .current .fx-flare { display: none; }
body.soft-ui .nos-bar { box-shadow: var(--sunk-s); }

/* Wall display in Soft UI: same pale raised surface, dark ink and inset/raised shapes as the Current card */
body.soft-ui.wall-mode { background: var(--nm-bg); }
body.soft-ui .wall { background: var(--nm-bg); color: var(--ink); }
body.soft-ui .wall-top { color: var(--ink); }
body.soft-ui .wall-temp { color: var(--ink); }
body.soft-ui .wall-temp span { color: var(--p1); }
body.soft-ui .wall-cond, body.soft-ui .wall-feels { color: var(--ink); }
body.soft-ui .wall-feels { color: var(--muted); }
body.soft-ui .wall-icon { background: var(--nm-bg); border-radius: 44px; padding: 26px; box-shadow: var(--raise); filter: none; }
body.soft-ui .wall-icon svg { color: var(--p1); }
body.soft-ui .wall-hour { background: var(--nm-bg); border: 0; border-radius: 26px; box-shadow: var(--raise-s); color: var(--ink); }
body.soft-ui .wall-hour svg { color: var(--p1); }
body.soft-ui .wall-hour-p { color: var(--muted); opacity: 1; }
body.soft-ui .wall-foot { color: var(--muted); opacity: 1; }
body.soft-ui .wall-foot a { color: var(--p1); }
body.soft-ui .wall-top > span:first-child { color: var(--ink); }
body.soft-ui .wall .wall-card { border-radius: 34px; }
