/* The season decoration (BP-123, the redesign's slice K2) — ONE generic sheet. Every season and pack is data the management writes (the
   owner's ⑦, B-326): the theme engine marks <html data-season="<id>" data-season-level="discreet|moderate|full"> and sets --season-color,
   --season-band and --season-corner from /theme. Nothing here names a season.
   The decoration lies OVER the page's background and UNDER all of its content: while a season shows, <body> is a stacking context of its own
   (isolation), and the two pictures are its ::before and ::after at z-index -1 — painted after body's background, before every bar, card
   and line of text; only the thin line in the pack's colour stands above. On <html> all of it lay under body's own opaque background, and
   nothing showed (measured 01-12-2026 in the new design).
   They take no click and do not move — so «bevægelse» and the phone's «reduce motion» have nothing to stop. Never a status colour. */

[data-season] {
  --season-strength: 0;
  /* The pictures' strength: the season's, but never above «diskret» on any surface (the owner's «Ja, også A» 02-12-2026, NY-174) — the
     band and the corner lie under text where no card covers it. The line in the pack's colour keeps the chosen strength. */
  --season-picture: min(var(--season-strength), 0.35);
}
[data-season-level="discreet"] {
  --season-strength: 0.35;
}
[data-season-level="moderate"] {
  --season-strength: 0.65;
}
[data-season-level="full"] {
  --season-strength: 1;
}

/* The line in the pack's colour along the very top edge: the one part ABOVE the page, so it shows also where a bar stands at the top
   (Min side's header) and when a season has no pictures yet. It is thinner than any surface's top padding and sits at the top of the
   DOCUMENT, not the screen: it scrolls away with the page, so no text ever passes under it. */
[data-season]::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: calc(var(--space-1) * var(--season-strength));
  background: var(--season-color, transparent);
  pointer-events: none;
  z-index: 1;
}

[data-season] body {
  isolation: isolate;
}

/* The band along the top edge: the pack's band picture repeated across, under every bar and card. */
[data-season] body::before {
  content: "";
  position: fixed;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: calc(var(--space-6) * 2 * var(--season-picture));
  background-image: var(--season-band, none);
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: var(--season-picture);
  pointer-events: none;
  z-index: -1;
}

/* The moment (the owner's «Ja, korte øjeblikke» 01-12-2026): one short picture the engine lays in and takes away again, behind every card
   like the band and the corner. Never under calm — the phone's, the centre's or the person's (their «no» already removes the season). */
.app-season-moment {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--season-strength, 1);
}
.app-season-moment img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .app-season-moment {
    display: none;
  }
}
[data-bevaegelse="rolig"] .app-season-moment {
  display: none;
}

/* The corner: the pack's corner picture in the lower inline-end corner. */
[data-season] body::after {
  content: "";
  position: fixed;
  inset-inline-end: 0;
  inset-block-end: 0;
  inline-size: calc(var(--space-6) * 5 * var(--season-picture));
  block-size: calc(var(--space-6) * 5 * var(--season-picture));
  background-image: var(--season-corner, none);
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: contain;
  opacity: var(--season-picture);
  pointer-events: none;
  z-index: -1;
}
/* The website takes its corner away on a phone itself, in assets/app-site.css (NY-174): this sheet names no surface. */

/* The mark (design point 25, «diskret pynt»): the pack's small picture beside a surface's logo. A surface places an empty `.app-season-mark`
   in the line beside its logo, and it shows only while today's pack has a mark (the engine sets data-season-mark). A mask filled with the
   text's own colour, so it follows light and dark and is never a status colour; it stands in the line, never over text, takes no click
   and does not move. */
.app-season-mark {
  display: none;
}
[data-season-mark] .app-season-mark {
  display: inline-block;
  flex: none;
  inline-size: var(--space-4);
  block-size: var(--space-4);
  background-color: currentColor;
  -webkit-mask: var(--season-mark) center / contain no-repeat;
  mask: var(--season-mark) center / contain no-repeat;
  pointer-events: none;
}
