/* Seasonal looks (Sweden). <html data-season="key"> switches one season on, for every role in the portal.
   Inside the portal: the season's glyph beside the name, the greeting card with the stable scene on the overview.
   On the sign-in page: the slow drifting pattern and the greeting. Glyphs and patterns: static/seasons/<key>/. */

[data-season="jul"]{--glyph:url("/portal/static/seasons/jul/glyph.svg");--amb:url("/portal/static/seasons/jul/ambient.svg")}
[data-season="lucia"]{--glyph:url("/portal/static/seasons/lucia/glyph.svg");--amb:url("/portal/static/seasons/lucia/ambient.svg")}
[data-season="nyar"]{--glyph:url("/portal/static/seasons/nyar/glyph.svg");--amb:url("/portal/static/seasons/nyar/ambient.svg")}
[data-season="alla_hjartans"]{--glyph:url("/portal/static/seasons/alla_hjartans/glyph.svg");--amb:url("/portal/static/seasons/alla_hjartans/ambient.svg")}
[data-season="fettisdagen"]{--glyph:url("/portal/static/seasons/fettisdagen/glyph.svg");--amb:url("/portal/static/seasons/fettisdagen/ambient.svg")}
[data-season="pask"]{--glyph:url("/portal/static/seasons/pask/glyph.svg");--amb:url("/portal/static/seasons/pask/ambient.svg")}
[data-season="valborg"]{--glyph:url("/portal/static/seasons/valborg/glyph.svg");--amb:url("/portal/static/seasons/valborg/ambient.svg")}
[data-season="betesslapp"]{--glyph:url("/portal/static/seasons/betesslapp/glyph.svg");--amb:url("/portal/static/seasons/betesslapp/ambient.svg")}
[data-season="nationaldagen"]{--glyph:url("/portal/static/seasons/nationaldagen/glyph.svg");--amb:url("/portal/static/seasons/nationaldagen/ambient.svg")}
[data-season="midsommar"]{--glyph:url("/portal/static/seasons/midsommar/glyph.svg");--amb:url("/portal/static/seasons/midsommar/ambient.svg")}
[data-season="kanelbulle"]{--glyph:url("/portal/static/seasons/kanelbulle/glyph.svg");--amb:url("/portal/static/seasons/kanelbulle/ambient.svg")}
[data-season="allhelgona"]{--glyph:url("/portal/static/seasons/allhelgona/glyph.svg");--amb:url("/portal/static/seasons/allhelgona/ambient.svg")}
[data-season="fredagsmys"]{--glyph:url("/portal/static/seasons/fredagsmys/glyph.svg");--amb:url("/portal/static/seasons/fredagsmys/ambient.svg")}
[data-season="helg"]{--glyph:url("/portal/static/seasons/helg/glyph.svg");--amb:url("/portal/static/seasons/helg/ambient.svg")}
.season-ic[data-key="jul"]{--glyph:url("/portal/static/seasons/jul/glyph.svg")}
.season-ic[data-key="lucia"]{--glyph:url("/portal/static/seasons/lucia/glyph.svg")}
.season-ic[data-key="nyar"]{--glyph:url("/portal/static/seasons/nyar/glyph.svg")}
.season-ic[data-key="alla_hjartans"]{--glyph:url("/portal/static/seasons/alla_hjartans/glyph.svg")}
.season-ic[data-key="fettisdagen"]{--glyph:url("/portal/static/seasons/fettisdagen/glyph.svg")}
.season-ic[data-key="pask"]{--glyph:url("/portal/static/seasons/pask/glyph.svg")}
.season-ic[data-key="valborg"]{--glyph:url("/portal/static/seasons/valborg/glyph.svg")}
.season-ic[data-key="betesslapp"]{--glyph:url("/portal/static/seasons/betesslapp/glyph.svg")}
.season-ic[data-key="nationaldagen"]{--glyph:url("/portal/static/seasons/nationaldagen/glyph.svg")}
.season-ic[data-key="midsommar"]{--glyph:url("/portal/static/seasons/midsommar/glyph.svg")}
.season-ic[data-key="kanelbulle"]{--glyph:url("/portal/static/seasons/kanelbulle/glyph.svg")}
.season-ic[data-key="allhelgona"]{--glyph:url("/portal/static/seasons/allhelgona/glyph.svg")}
.season-ic[data-key="fredagsmys"]{--glyph:url("/portal/static/seasons/fredagsmys/glyph.svg")}
.season-ic[data-key="helg"]{--glyph:url("/portal/static/seasons/helg/glyph.svg")}

.shell-glyph{display:none}
[data-season] .shell-glyph{display:inline-block;width:20px;height:20px;flex:none;background-color:var(--amber);
  -webkit-mask:var(--glyph) center/contain no-repeat;mask:var(--glyph) center/contain no-repeat}
.season-ic{display:inline-block;width:18px;height:18px;vertical-align:-4px;margin-right:8px;background-color:var(--ember);
  -webkit-mask:var(--glyph) center/contain no-repeat;mask:var(--glyph) center/contain no-repeat}

/* the greeting card on the overview */
.sc-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);align-items:stretch;margin-bottom:18px;border-radius:var(--radius);
  overflow:hidden;background:var(--night);color:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.sc-text{padding:24px 28px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.sc-kicker{margin:0;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--amber)}
.sc-card h2{margin:0;font:600 clamp(24px,2.6vw,32px)/1.15 Saira,Inter,sans-serif;letter-spacing:-.01em}
.sc-card p:not(.sc-kicker){margin:0;max-width:56ch;color:rgba(255,255,255,.8)}
.sc-stage{min-height:180px}
.scene{display:block;width:100%;height:100%;min-height:180px}
.sc-day{background:#1d3b5c}
/* scene colours */
.scene .s1,.scene .s2{stop-color:#0f1838}
.sk-night .s1{stop-color:#0b1230}.sk-night .s2{stop-color:#2a2c63}
.sk-purple .s1{stop-color:#1a1230}.sk-purple .s2{stop-color:#6b3f7a}
.sk-pink .s1{stop-color:#3a1d4d}.sk-pink .s2{stop-color:#ff8fa3}
.sk-dusk .s1{stop-color:#2a1d3d}.sk-dusk .s2{stop-color:#f0702a}
.sk-day .s1{stop-color:#5fb0e3}.sk-day .s2{stop-color:#d6efff}
.scene .orb{fill:#f6f0d2}
.sk-dusk .orb{fill:#fbb040}.sk-day .orb{fill:#ffd34d}.sk-pink .orb{fill:#ffe0e6}
.scene .stars circle{fill:#fff;opacity:.8}
.scene .cloud ellipse{fill:#fff;opacity:.9}
.scene .fw path{stroke:#fbb040;stroke-width:2.2;stroke-linecap:round;fill:none}.scene .fw2 path{stroke:#ff7aa8}
.scene .hill{fill:#2c4a3a}.gr-snow .hill{fill:#cfd8e6}.gr-autumn .hill{fill:#6b5a2e}.sk-day.gr-grass .hill{fill:#6fae5e}
.scene .ground{fill:#3d5b3f}.gr-snow .ground{fill:#eef2f8}.gr-autumn .ground{fill:#7c6a34}.sk-day.gr-grass .ground{fill:#5f9d55}
.scene .fence path{stroke:#d9d2c7;stroke-width:3;stroke-linecap:round;fill:none}
.scene .roof{fill:#3a2f3f}
.scene .wall{fill:#9b2f22}
.scene .trim{stroke:#f4efe6;stroke-width:4;fill:none;stroke-linecap:round}
.scene .trim-thin{stroke:#f4efe6;stroke-width:2.5;fill:none}
.scene .win-frame{fill:#f4efe6}.scene .win{fill:#2a2338}.scene.lit .win{fill:#ffcf6e}
.scene .opening{fill:#1b1420}
.scene .door{fill:#8a2a1f}
.scene .snowcap{fill:#ffffff}
.scene .head{fill:#7a4a2c}
.scene .mane{stroke:#2b1a12;stroke-width:7;fill:none;stroke-linecap:round}
.scene .blaze{stroke:#f4efe6;stroke-width:3;fill:none;stroke-linecap:round}
.scene .eye{fill:#1b1420}
.scene .hearts path{fill:#ff5a7a}

/* the sign-in page: the drifting pattern and the greeting */
.lg{position:relative;isolation:isolate}
.lg-ambient{display:none}
[data-season] .lg-ambient{display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.7;
  background:var(--amb) 0 0/480px 480px repeat;animation:ss-fall 36s linear infinite}
[data-season="midsommar"] .lg-ambient,[data-season="betesslapp"] .lg-ambient,[data-season="alla_hjartans"] .lg-ambient,[data-season="helg"] .lg-ambient{animation-name:ss-rise;animation-duration:44s}
@keyframes ss-fall{to{background-position:0 480px}}
@keyframes ss-rise{to{background-position:0 -480px}}
.lg-greeting{display:flex;align-items:center;gap:10px;margin:16px 0 0;font-size:19px;font-weight:600;color:var(--amber)}

/* the preview bar */
.season-bar{position:fixed;right:16px;bottom:16px;z-index:400;display:flex;align-items:center;gap:14px;padding:10px 12px 10px 18px;border-radius:999px;
  background:var(--night-2);color:#fff;border:1px solid var(--ember);box-shadow:0 10px 30px rgba(10,6,20,.45);font:500 14px/1.2 Inter,sans-serif}
.season-bar a{color:#e9dcf5}
.season-bar form{margin:0}
.season-bar button{padding:8px 14px;border:0;border-radius:999px;background:var(--ember);color:#fff;font:700 11.5px Inter,sans-serif;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}

/* the switch in the sidebar */
.sb-season{padding:8px 12px 4px}
.season-toggle{width:100%;display:flex;align-items:center;text-align:left;font:500 12px Inter,sans-serif;color:rgba(239,234,247,.7);background:transparent;
  border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:8px 10px;cursor:pointer}
.season-toggle:hover{color:#fff;border-color:rgba(255,255,255,.45)}
.season-toggle .season-ic{background-color:var(--amber);margin-right:8px}
.season-toggle[aria-pressed="false"] .season-ic{background-color:rgba(239,234,247,.45)}

/* the Seasons page */
.kpis-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpi-text{font-size:22px!important;display:flex;align-items:center}
.season-table{min-width:820px}
.season-table th,.season-table td{padding-left:12px;padding-right:12px}
.season-table .status{display:block;margin-top:4px;font-weight:400}
.season-table td.name{font-weight:600;white-space:nowrap}
.season-table .actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
.season-table .chip{white-space:nowrap}
.season-table .actions form{margin:0}
.date-in{height:36px;padding:0 8px;border:1px solid var(--field-line);border-radius:8px;background:var(--field);color:var(--ink);font:14px Inter,sans-serif}
.row-check{width:18px;height:18px;accent-color:var(--ember)}
.season-add{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto auto;gap:14px;align-items:end}
.season-add .check{margin:0 0 10px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

@media (max-width:820px){
  .sc-card{grid-template-columns:1fr}
  .sc-stage{order:-1;height:170px}
  .season-add{grid-template-columns:1fr 1fr}
  .kpis-3{grid-template-columns:1fr 1fr}
  .season-bar{left:12px;right:12px;border-radius:16px;justify-content:space-between}
}
@media (prefers-reduced-motion:reduce){[data-season] .lg-ambient{animation:none}}
.season-add>*,.season-add input{min-width:0;max-width:100%}
@media (max-width:420px){.season-add{grid-template-columns:1fr}}
