/* Generated by frontend/scripts/pagesSky.mjs; run npm run sky in frontend/; don't edit.
   The sea header's time-of-day sky on the pages Django renders (ledger/sea_sky.html),
   from the app's scene (frontend/src/components/SeaSky/scene.ts). */

/* For app.css's header, from the scene: the sea's share of the column's width (the far
   wave's crest down), which the header reaches under the text; the least sky above the
   sea, the far crest's floor under the band's top as a share of the width (HORIZON);
   and the water between the near wave and the ticket (WATER_GAP). */
:root { --sky-sea-share: 33.8462%; --sky-horizon: 0.410256; --sky-water-gap: 10px; }

/* Each phase's palette, which the sky reads, and app.css: the status strip takes the
   sky's colour and the header's captions theirs. */
html[data-sky=morning] { --sky-fill: var(--color-morning-sky); --sky-cloud: var(--color-morning-cloud); --sky-far: var(--color-sea-mid); --sky-near: var(--color-sea-light); --sky-glint: var(--color-morning-glint); --sky-glint-opacity: 0.85; --sky-caption: var(--color-foam); }
html[data-sky=midday] { --sky-fill: var(--color-sea-deep); --sky-cloud: var(--color-midday-cloud); --sky-far: var(--color-sea-mid); --sky-near: var(--color-sea-light); --sky-glint: var(--color-on-sea); --sky-glint-opacity: 0.9; --sky-caption: var(--color-foam); }
html[data-sky=sunset] { --sky-fill: var(--color-sunset-sky); --sky-cloud: var(--color-sunset-cloud); --sky-far: var(--color-sunset-far); --sky-near: var(--color-sunset-near); --sky-glint: var(--color-honey); --sky-glint-opacity: 1; --sky-caption: var(--color-on-sea); }
html[data-sky=night] { --sky-fill: var(--color-night-sky); --sky-cloud: var(--color-night-cloud); --sky-far: var(--color-night-far); --sky-near: var(--color-night-near); --sky-glint: var(--color-moonlight); --sky-glint-opacity: 0.55; --sky-caption: var(--color-foam); }

/* What moves with the phase (and the hemisphere, if the two differ): the glints sit
   under the sun or the moon. */
html[data-sky=morning] .sky-glints { left: 90.2564%; }
html[data-sky=midday] .sky-glints { left: 70.7692%; }
html[data-sky=sunset] .sky-glints { left: 92.8205%; }
html[data-sky=night] .sky-glints { left: 70.7692%; }

/* The parts only some phases have: the night's stars and moon, and each sun. */
html:not([data-sky=night]) .sky-night { display: none; }
html:not([data-sky=midday]) .sky-midday { display: none; }
html:not([data-sky=morning]) .sky-morning { display: none; }
html:not([data-sky=sunset]) .sky-sunset { display: none; }

/* Where each part sits, in percentages of the box it's in (the scene's layout
   builders, as SeaSky's styles), and its colour. */
.sky svg { display: block; }
.sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; }
.sky-fill { position: absolute; top: 0; right: 0; bottom: 2.5rem; left: 0; background-color: var(--sky-fill); }
.sky-box { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1.56; }
.sky-star-1 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 3.3077%; top: 5.56%; width: 0.5641%; aspect-ratio: 1; }
.sky-star-2 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 16.1795%; top: 6.04%; width: 0.4615%; aspect-ratio: 1; }
.sky-star-3 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 29.9231%; top: 5.48%; width: 0.6667%; aspect-ratio: 1; }
.sky-star-4 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 44.8718%; top: 7.6%; width: 0.5128%; aspect-ratio: 1; }
.sky-star-5 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 57.641%; top: 5.52%; width: 0.6154%; aspect-ratio: 1; }
.sky-star-6 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 81.2821%; top: 6%; width: 0.5128%; aspect-ratio: 1; }
.sky-star-7 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 96.5897%; top: 5.88%; width: 0.6667%; aspect-ratio: 1; }
.sky-star-8 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 1.7949%; top: 25.2%; width: 0.5128%; aspect-ratio: 1; }
.sky-star-9 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 50.5128%; top: 19.6%; width: 0.5128%; aspect-ratio: 1; }
.sky-star-10 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 77.7179%; top: 30.84%; width: 0.4615%; aspect-ratio: 1; }
.sky-star-11 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 89.9744%; top: 31.56%; width: 0.5641%; aspect-ratio: 1; }
.sky-star-12 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 97.1795%; top: 39.6%; width: 0.5128%; aspect-ratio: 1; }
.sky-star-13 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 37.7179%; top: 14.84%; width: 0.4615%; aspect-ratio: 1; }
.sky-star-14 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 59.7179%; top: 22.76%; width: 0.5641%; aspect-ratio: 1; }
.sky-star-15 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 23.359%; top: 21.24%; width: 0.4615%; aspect-ratio: 1; }
.sky-star-16 { position: absolute; border-radius: var(--radius-round); background-color: var(--color-on-sea); left: 85.4359%; top: 42.88%; width: 0.4103%; aspect-ratio: 1; }
.sky-moon-glow { position: absolute; left: 63.0769%; top: 5.6%; width: 15.3846%; height: 24%; }
.sky-moon-halo-outer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sky-moon-halo-outer-disc { fill: var(--color-moonlight); opacity: 0.07; }
.sky-moon-halo { position: absolute; left: 11.6667%; top: 11.6667%; width: 76.6667%; height: 76.6667%; }
.sky-moon-halo-disc { fill: var(--color-moonlight); opacity: 0.07; }
.sky-moon { position: absolute; left: 66.4103%; top: 10.8%; width: 8.7179%; height: 13.6%; }
.sky-moon-dark { fill: var(--color-moon-shadow); }
.sky-moon-lit { fill: var(--color-moonlight); }
.sky-cloud-a { position: absolute; left: 0; width: 100%; top: 5.2%; height: 6.8%; }
.sky-cloud-a-1 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-cloud); left: 43.0769%; top: 41.1765%; width: 15.3846%; height: 58.8235%; }
.sky-cloud-a-2 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-cloud); left: 46.6667%; top: 0%; width: 7.1795%; height: 82.3529%; }
.sky-cloud-b { position: absolute; left: 0; width: 100%; top: 40%; height: 5.2%; }
.sky-cloud-b-1 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-cloud); left: 48.7179%; top: 38.4615%; width: 11.2821%; height: 61.5385%; }
.sky-cloud-b-2 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-cloud); left: 51.2821%; top: 0%; width: 5.1282%; height: 84.6154%; }
.sky-sun-midday-glow { position: absolute; left: 57.4359%; top: -4.8%; width: 26.6667%; height: 41.6%; }
.sky-sun-midday-halo-outer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sky-sun-midday-halo-outer-disc { fill: var(--color-sun); opacity: 0.08; }
.sky-sun-midday-halo { position: absolute; left: 15.3846%; top: 15.3846%; width: 69.2308%; height: 69.2308%; }
.sky-sun-midday-halo-disc { fill: var(--color-sun); opacity: 0.14; }
.sky-sun-midday { position: absolute; left: 64.6154%; top: 6.4%; width: 12.3077%; height: 19.2%; }
.sky-sun-midday-disc { fill: var(--color-sun); opacity: 1; }
.sky-sea { position: absolute; bottom: 0; left: 0; width: 100%; aspect-ratio: 2.9545454545454546; }
.sky-sun-morning-glow { position: absolute; left: 71.2821%; top: -51.5152%; width: 37.9487%; height: 112.1212%; }
.sky-sun-morning-halo-outer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sky-sun-morning-halo-outer-disc { fill: var(--color-coral); opacity: 0.14; }
.sky-sun-morning-halo { position: absolute; left: 18.9189%; top: 18.9189%; width: 62.1622%; height: 62.1622%; }
.sky-sun-morning-halo-disc { fill: var(--color-sun); opacity: 0.2; }
.sky-sun-morning { position: absolute; left: 83.5897%; top: -15.1515%; width: 13.3333%; height: 39.3939%; }
.sky-sun-morning-disc { fill: var(--color-sun); opacity: 1; }
.sky-sun-sunset-glow { position: absolute; left: 74.8718%; top: -39.3939%; width: 35.8974%; height: 106.0606%; }
.sky-sun-sunset-halo-outer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sky-sun-sunset-halo-outer-disc { fill: var(--color-sun); opacity: 0.12; }
.sky-sun-sunset-halo { position: absolute; left: 18.5714%; top: 18.5714%; width: 62.8571%; height: 62.8571%; }
.sky-sun-sunset-halo-disc { fill: var(--color-honey); opacity: 0.22; }
.sky-sun-sunset { position: absolute; left: 85.641%; top: -7.5758%; width: 14.359%; height: 42.4242%; }
.sky-sun-sunset-disc { fill: var(--color-sun); opacity: 1; }
.sky-bob-far { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sky-wave-far { position: absolute; top: 0; bottom: 0; left: 0; width: 133.3333%; }
.sky-wave-far-path { fill: var(--sky-far); }
.sky-glints { position: absolute; top: 0; bottom: 0; width: 100%; opacity: var(--sky-glint-opacity); }
.sky-glint-1 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-glint); left: -4.6154%; top: 7.9545%; width: 3.0769%; height: 1.5152%; }
.sky-glint-2 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-glint); left: 0.5128%; top: 8.7121%; width: 2.3077%; height: 1.5152%; }
.sky-glint-3 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-glint); left: -2.0513%; top: 9.8485%; width: 4.1026%; height: 1.5152%; }
.sky-glint-4 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-glint); left: -6.9231%; top: 10.9848%; width: 1.7949%; height: 1.5152%; }
.sky-glint-5 { position: absolute; border-radius: var(--radius-pill); background-color: var(--sky-glint); left: 3.3333%; top: 10.6061%; width: 2.5641%; height: 1.5152%; }
.sky-bob-near { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.sky-wave-near { position: absolute; top: 0; bottom: 0; left: 0; width: 150%; }
.sky-wave-near-path { fill: var(--sky-near); }
.sky-wave-sand { position: absolute; top: 0; bottom: 0; left: 0; width: 133.3333%; }
.sky-wave-sand-path { fill: var(--color-sand); }
.sky-above { position: absolute; right: 0; bottom: 100%; left: 0; margin-bottom: -1px; height: 10rem; pointer-events: none; background-color: var(--sky-fill); }

/* Under 20rem the header's text takes the full width, so the sun, the moon and the
   stars beside the text set. */
@media (max-width: 20rem) {
  .sky-star-10, .sky-star-11, .sky-star-12, .sky-star-16, .sky-moon-glow, .sky-moon, .sky-sun-midday-glow, .sky-sun-midday, .sky-sun-morning-glow, .sky-sun-morning, .sky-sun-sunset-glow, .sky-sun-sunset { display: none; }
}

/* How each part moves (the scene's MOTION), only when the phone doesn't ask for
   reduced motion: on the compositor, by transform or opacity. */
@media (prefers-reduced-motion: no-preference) {
  .sky-drift-far { animation: sky-drift-left 16s linear infinite; }
  .sky-drift-near { animation: sky-drift-right 22s linear infinite; }
  .sky-drift-sand { animation: sky-drift-left 34s linear infinite; }
  .sky-bob-far { animation: sky-bob 3.4s ease-in-out infinite alternate; }
  .sky-bob-near { animation: sky-bob 4.2s ease-in-out infinite alternate-reverse; }
  .sky-cloud-a { animation: sky-cloud-a 70s linear -35s infinite; }
  .sky-cloud-b { animation: sky-cloud-b 50s linear -23s infinite; }
  .sky-sun-glow { animation: sky-glow 3.6s ease-in-out infinite alternate; }
  .sky-sun-halo { animation: sky-halo 3.6s ease-in-out infinite alternate; }
  .sky-sun-halo-outer { animation: sky-halo 3.6s ease-in-out -0.5s infinite alternate; }
  .sky-sun-body { animation: sky-body 3.6s ease-in-out infinite alternate; }
  .sky-moon-glow { animation: sky-glow 5s ease-in-out infinite alternate; }
  .sky-moon-halo { animation: sky-halo 5s ease-in-out infinite alternate; }
  .sky-moon-halo-outer { animation: sky-halo 5s ease-in-out -0.8s infinite alternate; }
  .sky-moon-body { animation: sky-body 5s ease-in-out infinite alternate; }
  .sky-glint-1 { animation: sky-twinkle 1.8s ease-in-out infinite alternate; }
  .sky-glint-2 { animation: sky-twinkle 1.8s ease-in-out -0.6s infinite alternate; }
  .sky-glint-3 { animation: sky-twinkle 1.8s ease-in-out -1.1s infinite alternate; }
  .sky-glint-4 { animation: sky-twinkle 1.8s ease-in-out -0.3s infinite alternate; }
  .sky-glint-5 { animation: sky-twinkle 1.8s ease-in-out -1.5s infinite alternate; }
  .sky-star-1 { animation: sky-twinkle 2.8s ease-in-out infinite alternate; }
  .sky-star-2 { animation: sky-twinkle 2.8s ease-in-out -1.2s infinite alternate; }
  .sky-star-3 { animation: sky-twinkle 2.8s ease-in-out -0.4s infinite alternate; }
  .sky-star-4 { animation: sky-twinkle 2.8s ease-in-out -2s infinite alternate; }
  .sky-star-5 { animation: sky-twinkle 2.8s ease-in-out -0.8s infinite alternate; }
  .sky-star-6 { animation: sky-twinkle 2.8s ease-in-out -1.6s infinite alternate; }
  .sky-star-7 { animation: sky-twinkle 2.8s ease-in-out -0.2s infinite alternate; }
  .sky-star-8 { animation: sky-twinkle 2.8s ease-in-out -1.4s infinite alternate; }
  .sky-star-9 { animation: sky-twinkle 2.8s ease-in-out -2.4s infinite alternate; }
  .sky-star-10 { animation: sky-twinkle 2.8s ease-in-out -0.6s infinite alternate; }
  .sky-star-11 { animation: sky-twinkle 2.8s ease-in-out -1.9s infinite alternate; }
  .sky-star-12 { animation: sky-twinkle 2.8s ease-in-out -1s infinite alternate; }
  .sky-star-13 { animation: sky-twinkle 2.8s ease-in-out -2.2s infinite alternate; }
  .sky-star-14 { animation: sky-twinkle 2.8s ease-in-out -0.5s infinite alternate; }
  .sky-star-15 { animation: sky-twinkle 2.8s ease-in-out -1.7s infinite alternate; }
  .sky-star-16 { animation: sky-twinkle 2.8s ease-in-out -2.6s infinite alternate; }
}
@keyframes sky-drift-left { to { transform: translateX(-25%); } }
@keyframes sky-drift-right { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }
@keyframes sky-bob { to { transform: translateY(1.5152%); } }
@keyframes sky-cloud-a { from { transform: translateX(61.5385%); } to { transform: translateX(-61.5385%); } }
@keyframes sky-cloud-b { from { transform: translateX(53.8462%); } to { transform: translateX(-61.5385%); } }
@keyframes sky-glow { from { opacity: 0.7; } to { opacity: 1; } }
@keyframes sky-halo { to { transform: scale(1.12); } }
@keyframes sky-body { to { transform: scale(1.04); } }
@keyframes sky-twinkle { to { opacity: 0.25; } }
