/* preschool-home.css
   Copyright © 2026 LexPro. All rights reserved.

   Sunporch's home, "A sunny day" (site/lib/sites/preschool/pages/home/):
   app/lib/web/site/sections/preschool/home/sunny_hero.dart, sunny_morning,
   sunny_midday and sunny_evening, at rest. */

/* ---- The dawn (SunnyHero) ---- */
.sunny-pad--day-hero > .sunny-wrap { padding-top: 56px; padding-bottom: 40px; }
.day-hero__words .sunny-pill { margin-bottom: 22px; }
.day-hero__lede { margin-top: 22px; max-width: 560px; }
.day-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.day-hero__fine { margin-top: 22px; max-width: 520px; }
.day-hero__scene img { display: block; width: 100%; height: auto; }
@media (min-width: 981px) {
  .day-hero__row { display: grid; grid-template-columns: 10fr 11fr; gap: 40px; align-items: center; }
}
@media (max-width: 980px) {
  .sunny-pad--day-hero > .sunny-wrap { padding-top: 32px; padding-bottom: 32px; }
  .day-hero__scene { margin-top: 32px; }
}

/* The day's strip */
.day-strip { margin-top: 56px; padding: 22px 32px 26px; }
.day-strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.day-strip__hint { display: inline-flex; align-items: center; gap: 6px; color: var(--sunny-text); }
.day-strip__hint .icon { color: var(--sunny-navy); }
.day-strip__stops { position: relative; display: flex; margin-top: 22px; }
.day-strip__stops::before {
  content: ""; position: absolute; left: 40px; right: 40px; top: 24px; height: 6px;
  background: radial-gradient(circle, var(--sunny-yellow) 3px, transparent 3.5px) 0 50% / 14px 6px repeat-x;
}
.day-strip__stop { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.day-strip__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 4px solid #fff; box-sizing: border-box;
}
.day-strip__time { margin-top: 10px; font-family: var(--sunny-display); font-weight: 800; font-size: 18px; line-height: 1.1; color: var(--sunny-navy); }
.day-strip__name { margin-top: 2px; }
@media (max-width: 980px) {
  .day-strip { margin-top: 40px; padding: 22px 18px 26px; }
  .day-strip__stops { flex-wrap: wrap; gap: 20px 12px; }
  .day-strip__stops::before { display: none; }
  .day-strip__stop { flex: 0 0 calc((100% - 24px) / 3); }
}
@media (max-width: 519px) { .day-strip__stop { flex-basis: calc((100% - 12px) / 2); } }

/* ---- 12:30, the nap and the quiet jobs ---- */
.day-nap { padding: 12px; background: rgba(255, 255, 255, .7); border-radius: 40px; }
.day-nap img { display: block; width: 100%; height: auto; }
/* --cols and --gap centre a card left alone on the last row (base.css). */
.day-jobs { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; --cols: 3; --gap: 20px; }
@media (max-width: 1003px) { .day-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); --cols: 2; } }
@media (max-width: 679px) { .day-jobs { grid-template-columns: minmax(0, 1fr); --cols: 1; } }
.day-job { padding: 22px; }
.day-job__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 16px; color: var(--sunny-navy);
}
.day-job .sunny-h3 { margin-top: 14px; }
.day-job__body { margin-top: 8px; }
.day-job__picture { margin-top: 16px; }
.day-away { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.day-away__kid { display: inline-flex; align-items: center; gap: 8px; }
.day-away__kid img { width: 34px; height: 34px; }
.day-bubbles { display: flex; flex-direction: column; gap: 8px; }
.day-bubble { display: flex; flex-direction: column; max-width: 280px; padding: 10px 14px; border-radius: 18px; }
.day-bubble--mine { align-self: flex-end; }
.day-bubble__from { font-size: 12.5px; }
.day-contacts { display: flex; flex-direction: column; gap: 8px; }
.day-contact { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #D9F4E7; }
.day-contact__n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.day-contact__who { flex: 1; }
.day-contact .icon { color: #0B5E3A; }

/* ---- 6:15, the record, under the night ---- */
.day-night { background: #14244A; }
.day-record__night { position: relative; background: linear-gradient(180deg, #1C2F5E, #14244A); overflow: hidden; }
.day-record .sunny-horizon { height: 200px; }
.day-record__wrap { padding-top: 48px; padding-bottom: 96px; }
.day-record__note {
  display: flex; gap: 10px; max-width: 620px; margin: 28px 0 0 auto; color: var(--sunny-night-text);
}
.day-record__note .icon { flex: none; margin-top: 2px; color: #FFE28A; }
.day-trust__title { margin-top: 96px; }
.day-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; align-items: start; }
.day-trust__card {
  padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .16);
}
.day-trust__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; color: var(--sunny-navy);
}
.day-trust__title-3 { margin-top: 14px; font-family: var(--sunny-heading); font-weight: 800; font-size: 19px; line-height: 1.2; color: #fff; }
.day-trust__body { margin-top: 8px; font-family: var(--sunny-read); font-weight: 500; font-size: 15.5px; line-height: 1.55; color: var(--sunny-night-text); }
/* The accessibility card: the whole row wide, its link under the words. */
.day-trust__card--wide { grid-column: 1 / -1; }
.day-trust__card--wide .day-trust__body { max-width: 720px; }
.day-trust__link { margin: 6px 0 -12px -12px; }
@media (max-width: 1063px) { .day-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 623px) { .day-trust { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) {
  .day-record .sunny-horizon { height: 130px; }
  .day-record__wrap { padding-top: 32px; padding-bottom: 64px; }
  .day-record__note { margin-left: 0; }
  .day-trust__title { margin-top: 64px; }
}

/* ---- Night, and tomorrow (SunnyClosing) ---- */
.day-closing { position: relative; background: #14244A; overflow: hidden; }
.day-closing__row { position: relative; padding-top: 72px; padding-bottom: 40px; }
.day-closing__words .sunny-lede { margin-top: 16px; }
.day-closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; }
.day-closing__art img { display: block; width: 100%; max-width: 480px; height: auto; }
@media (min-width: 981px) {
  .day-closing__row { display: grid; grid-template-columns: 11fr 9fr; gap: 56px; align-items: center; }
}
@media (max-width: 980px) {
  .day-closing__row { padding-top: 56px; padding-bottom: 28px; text-align: center; }
  .day-closing__actions { justify-content: center; }
  .day-closing__art { display: flex; justify-content: center; margin-top: 36px; }
}
