/* PEAK Sun – the summer edition's look (loaded only in PEAK Sun, after app.css).
   70 % clean: the same fonts, cards, spacing and navigation as PEAK Ski – mostly just other colour tokens.
   30 % summer: a wave under the header, the sun in the logo, a soft sun glow behind the hero, small emojis.
   Two themes, named in app/lang/sol/<lang>/settings.php: "Strand" (light, Sol's default) and "Nat" (dark).
   Their theme-color is in app/editions/sol.php ('theme'); pwa/offline.html repeats the main colours. */

/* Nat: the night ocean, with the sunset still glowing on the horizon. */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061f2b;
  --bg-glow: #0d4352;
  --surface: #0b2c3a;
  --surface-2: #103747;
  --surface-3: #174456;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eaf5f6;
  --muted: #9dbac3;
  --faint: #80a1ab;
  --accent: #ff8f66;
  --accent-ink: #2b0d02;
  --amber: #ffb547;
  --sun: #ffc857;
  --danger: #ff6482;
  --danger-ink: #2b0610;
  --ok: #4ade80;
  --snow: #ffffff;
  --shadow: 0 12px 32px rgba(0, 8, 14, 0.42);
  /* Sol's own */
  --sea: #3cc9c3;
  --sun-ink: var(--sun); /* the sun as text */
  --glow-sun: rgba(255, 128, 102, 0.26);
  --glow-sea: rgba(60, 201, 195, 0.13);
}

/* Strand: warm sand, a turquoise sea and the sun – deep navy text. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6e9d4;
  --bg-glow: #ffe1a1;
  --surface: #fffaf1;
  --surface-2: #f8eedc;
  --surface-3: #efe0c4;
  --border: rgba(92, 62, 20, 0.15);
  --text: #0b2a3c;
  --muted: #475a66;
  --faint: #56646c;
  --accent: #00737d;
  --accent-ink: #ffffff;
  --amber: #a04f00;
  --sun: #f5b301;
  --danger: #bf2a43;
  --danger-ink: #ffffff;
  --ok: #127a45;
  --snow: #ffffff;
  --shadow: 0 12px 30px rgba(120, 80, 20, 0.13);
  --sea: #0e9aa0;
  --sun-ink: #a86400; /* the bright sun is for drawing – as text on sand it needs a deeper gold */
  --glow-sun: rgba(255, 196, 77, 0.42);
  --glow-sea: rgba(14, 154, 160, 0.11);
}

/* The sun high up on the right, the sea on the left – light enough to never get in the way of the text. */
body {
  background:
    radial-gradient(1100px 520px at 88% -14%, var(--glow-sun), transparent 62%),
    radial-gradient(900px 520px at -12% 6%, var(--glow-sea), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- Eyebrows: a little sun ---------- */

.eyebrow::before {
  content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-right: 0.5em; vertical-align: 0.02em;
  border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 28%, transparent);
}

/* No wake-up button on a summer trip: "+1 øl" gets the whole row. */
.log-actions > :only-child { grid-column: 1 / -1; }

/* ---------- Statuses with a summer emoji (decorative: hidden from screen readers) ---------- */

.flash::before { content: "🌴 "; content: "🌴 " / ""; }
.flash-error::before { content: "🌧️ "; content: "🌧️ " / ""; }

/* Text on the danger colour: dark on Nat's bright coral-pink, white on Strand's deep red. */
.toast.error { color: var(--danger-ink); }
/* Strand: the beer heatmap's middle oranges (Oversigt) are too light for white numbers – darkened towards the text
   colour. */
:root[data-theme="light"] .b-3, :root[data-theme="light"] .b-4 { color: #2b1600; }
/* "First Class" in gold (abonnement.php) – background-image, so the text clipping from app.css stays. */
.sub-first { background-image: linear-gradient(100deg, var(--sun-ink), color-mix(in srgb, var(--sun-ink) 55%, var(--accent))); }
.sub-ticket.is-best { --band: #a86400; }

/* ---------- Boarding passes: warmer paper, a deep-sea band ---------- */

.bpass { --paper: #fff9ee; --ink: #0b2a3c; --ink-2: #566771; --rule: rgba(11, 42, 60, 0.16); }
.bp-head { background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, #05303b)); }
