/* ─────────────────────────────────────────────────────────────
   SEASONS — colors for each time of year (set by js/seasons.js).
   Card colors (gold = Martin blood line, green = married in) stay the
   same all year so the legend always means the same thing.
   ───────────────────────────────────────────────────────────── */

html[data-season="winter"]{
  --hero-a:#1D3557; --hero-b:#355C8C; --hero-c:#6E9BC8;
  --page:#F2F6FB; --connector:#7FA3C9; --season-accent:#4A78A8; --season-soft:#DCEAF7;
  --tree-dark:#4F7BA8; --tree-light:#A9C8E6; --tree-deep:#355C8C;
}
html[data-season="spring"]{
  --hero-a:#3F6B34; --hero-b:#6E9A4C; --hero-c:#C4708A;
  --page:#FDF7F8; --connector:#8BBF7A; --season-accent:#C4708A; --season-soft:#FBE3EA;
  --tree-dark:#4E8A3E; --tree-light:#8CC46C; --tree-deep:#3F6B34;
}
html[data-season="summer"]{
  --hero-a:#155E4F; --hero-b:#1F8466; --hero-c:#C9862A;
  --page:#FFFBEF; --connector:#3FA36B; --season-accent:#1F8466; --season-soft:#FFF1C9;
  --tree-dark:#2E7D44; --tree-light:#4FAF5C; --tree-deep:#1E5E30;
}
html[data-season="autumn"]{
  --hero-a:#5E2A1A; --hero-b:#99461C; --hero-c:#C98330;
  --page:#FBF4EA; --connector:#C07A3A; --season-accent:#B5541F; --season-soft:#F7E3CB;
  --tree-dark:#B5541F; --tree-light:#E0942F; --tree-deep:#8A3A16;
}

html[data-season] body{background:var(--page);transition:background .4s;}
html[data-season] .hero{background:linear-gradient(160deg,var(--hero-a) 0%,var(--hero-b) 55%,var(--hero-c) 100%);}
html[data-season] .suggestion-section{background:linear-gradient(135deg,var(--hero-a) 0%,var(--hero-b) 100%);}
html[data-season] .expand-dot:not(.open){background:var(--season-accent);}
html[data-season] .root-toggle-btn:hover{border-color:var(--season-accent);color:var(--season-accent);}

/* Hero tree picture changes with the season */
.hero-tree .tree-dark{fill:var(--tree-dark,#3A7D44);}
.hero-tree .tree-light{fill:var(--tree-light,#5AA85F);}
.hero-tree .tree-deep{fill:var(--tree-deep,#2d6636);}
.hero-tree .tree-snow,.hero-tree .tree-bloom,.hero-tree .tree-fruit{display:none;}
html[data-season="winter"] .hero-tree .tree-snow{display:inline;}
html[data-season="spring"] .hero-tree .tree-bloom{display:inline;}
html[data-season="summer"] .hero-tree .tree-fruit{display:inline;}

/* Winter: the hero's bottom wave becomes snow drifts */
html[data-season="winter"] .hero-wave path:first-child{fill:rgba(255,255,255,.35);}
html[data-season="winter"] .hero-wave path:last-child{fill:rgba(255,255,255,.75);}
html[data-season="spring"] .hero-wave path:last-child{fill:rgba(251,211,222,.35);}
html[data-season="autumn"] .hero-wave path:last-child{fill:rgba(224,148,47,.25);}

.season-badge{display:inline-block;margin:0 auto 10px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);
  color:#fff;border-radius:999px;padding:4px 14px;font-size:.75rem;font-weight:700;letter-spacing:.3px;}
.season-badge:empty{display:none;}

/* Falling snow / petals / fireflies / leaves */
.season-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:60;}
@media print{.season-canvas{display:none;}}
