/* Opt-in guide palettes. Guide pennants follow the selected accent; unthemed pages retain rust orange. */
body[data-palette]{--orange:var(--theme-accent);--rust:var(--theme-accent);--theme-hover:color-mix(in srgb,var(--theme-accent),#000 18%);--pale:var(--theme-surface);--yellow:var(--theme-soft)}
body[data-palette="tropical"]{--theme-accent:#08756c;--theme-surface:#f0f8f4;--theme-soft:#d7eee3}
body[data-palette="night"]{--theme-accent:#5350a1;--theme-surface:#f5f3fb;--theme-soft:#e4dff6}
body[data-palette="western"]{--theme-accent:#89532d;--theme-surface:#faf5ed;--theme-soft:#efdfc7}
body[data-palette="retro"]{--theme-accent:#9a397b;--theme-surface:#fcf3f9;--theme-soft:#f2dceb}
body[data-palette="school"]{--theme-accent:#275eae;--theme-surface:#f1f6fd;--theme-soft:#dce9fa}
body[data-palette] .pill,body[data-palette] .teacher-activities .activity-prompt{background:var(--theme-soft);color:var(--ink)}
body[data-palette] .section-number,body[data-palette] .intro-note>.ph-icon,body[data-palette] .activity-meta .ph-icon{color:var(--theme-accent)}
body[data-palette] .intro-note{border-bottom-color:var(--theme-soft)}
body[data-palette="school"] .guide-switcher{border-image:linear-gradient(90deg,#bd4825 0 20%,#b28018 20% 40%,#28744b 40% 60%,#275eae 60% 80%,#774c9f 80%) 1}
.social-links{display:flex;gap:16px;margin-top:16px;flex-wrap:wrap}
.social-links a{font-size:14px;text-decoration:underline;text-underline-offset:3px}

body[data-palette] .logo .ph-icon path{stroke:var(--theme-accent)}

/* Shared interaction and secondary colors must inherit the guide palette too. */
body[data-palette] :is(.orange,.btn:not(.outline)):hover,
body[data-palette] .outfit-product:hover .amazon-action,
body[data-palette] .video-poster:hover .play-circle,
body[data-palette] .outfit-hotspot:is(:hover,:focus-visible){background:var(--theme-hover);color:#fff}
body[data-palette] .logo:hover .ph-icon path{stroke:var(--theme-hover)}
body[data-palette] .logo:hover{color:var(--theme-hover)}
body[data-palette] .affiliate-strip a{color:var(--theme-accent)}
body[data-palette] :is(.diy-section,.classroom,.closet-result,.inline-tip,.closet-tip){background:var(--theme-surface)}
body[data-palette] :is(.craft-number,.materials,.tips-grid article>span,.classroom blockquote span){color:var(--theme-accent)}
body[data-palette] :is(.craft-tip,.diy-grid article,.video-tutorial,.closet-tip){border-color:var(--theme-soft)}
body[data-palette] .classroom blockquote{background:var(--theme-surface);box-shadow:5px 5px 0 var(--theme-soft)}
body[data-palette] .flyer-date-output{background:var(--theme-soft)}
body[data-palette] .outfit-product:hover{border-color:var(--theme-accent)}
body[data-palette] .share-button:hover{background:var(--theme-surface)}
body[data-palette] :focus-visible{outline-color:var(--theme-accent)}
body[data-palette] ::selection{background:var(--theme-soft);color:var(--ink)}
