/* Solid section colours (dark theme) for the Tools and Progress & Data areas.
   Each card keeps a dark background; its outline, icon, heading, text, ticks and button all wear one solid colour.
   Gym, Macros and Passive Income keep their own look. Loaded last so it wins over older per-card colours. */
html body #toolsPage #toolsLanding .tl-data{--sc:#5eead4}
html body #toolsPage #toolsLanding .tl-schedule{--sc:#f6a85b}
html body #progressPage #progressGoalsLanding .pg-progress{--sc:#f472b6}
html body #progressPage #progressGoalsLanding .pg-data{--sc:#22d3ee}
html body #homePage .home-card.progress-home{--sc:#c4b5fd}
html body #homePage .home-card.tools-home{--sc:#4ade80}
html body #toolsPage>.ly-section-hero{--sc:#4ade80}
html body #progressPage>.ly-section-hero{--sc:#c4b5fd}

/* Cards */
html:not([data-theme="light"]) body :is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage) :is(#toolsLanding .home-card,#progressGoalsLanding .home-card,.home-card.progress-home,.home-card.tools-home){
 background:linear-gradient(145deg,#1d1e23,#121316 60%,#0d0e10)!important;border:1.5px solid var(--sc)!important;box-shadow:0 18px 40px -28px rgba(0,0,0,.8)!important;color:var(--sc)!important}
html:not([data-theme="light"]) body :is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage) :is(#toolsLanding .home-card,#progressGoalsLanding .home-card,.home-card.progress-home,.home-card.tools-home) :is(h2,.ly-never){
 color:var(--sc)!important;-webkit-text-fill-color:var(--sc)!important;background:none!important}
/* Body text is white, like the Gym, Macros and Passive Income cards */
html:not([data-theme="light"]) body :is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage) :is(#toolsLanding .home-card,#progressGoalsLanding .home-card,.home-card.progress-home,.home-card.tools-home) :is(p,li,li span,.muted,small){
 color:#eef0f7!important;-webkit-text-fill-color:#eef0f7!important;background:none!important}
html:not([data-theme="light"]) body :is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage) :is(#toolsLanding .home-card,#progressGoalsLanding .home-card,.home-card.progress-home,.home-card.tools-home) .ly-card-list{--li:var(--sc)!important}
html:not([data-theme="light"]) body :is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage):is(#toolsPage,#progressPage,#homePage) :is(#toolsLanding .home-card,#progressGoalsLanding .home-card,.home-card.progress-home,.home-card.tools-home)>button{
 background:var(--sc)!important;color:#0c0d10!important;-webkit-text-fill-color:#0c0d10!important;border:0!important;box-shadow:none!important;--btn-hover-ink:var(--sc)}

/* Icons take the card colour */
html:not([data-theme="light"]) body :is(#toolsLanding .home-card,#progressGoalsLanding .home-card,#homePage .home-card.progress-home,#homePage .home-card.tools-home,#toolsPage>.ly-section-hero,#progressPage>.ly-section-hero) :is(.lyi-tile,.lyi){--c:var(--sc)!important;filter:none!important}
html:not([data-theme="light"]) body #toolsLanding .tl-schedule .tl-cal-body{fill:color-mix(in srgb,var(--sc) 14%,transparent);stroke:var(--sc)}
html:not([data-theme="light"]) body #toolsLanding .tl-schedule :is(.tl-cal-top,.tl-cal-dots circle){fill:var(--sc)}
html:not([data-theme="light"]) body #toolsLanding .tl-schedule :is(.tl-cal-rings,.tl-cal-tick){stroke:var(--sc);filter:none}

/* Page banners for the two hubs: dark, one solid colour (the Progress & Data banner only on its landing view) */
html:not([data-theme="light"]) body #toolsPage#toolsPage#toolsPage#toolsPage>.ly-section-hero,
html:not([data-theme="light"]) body:not([data-progress-area="data"],[data-progress-area="progress"]) #progressPage#progressPage#progressPage#progressPage>.ly-section-hero{
 background:linear-gradient(115deg,#1d1e23,#121316 60%,#0d0e10)!important;border:1.5px solid var(--sc)!important;box-shadow:none!important}
html:not([data-theme="light"]) body #toolsPage#toolsPage#toolsPage#toolsPage>.ly-section-hero :is(h1,p,.muted,.ly-goals-eyebrow,.eyebrow),
html:not([data-theme="light"]) body:not([data-progress-area="data"],[data-progress-area="progress"]) #progressPage#progressPage#progressPage#progressPage>.ly-section-hero h1{
 background:none!important;color:var(--sc)!important;-webkit-text-fill-color:var(--sc)!important}

html:not([data-theme="light"]) body #toolsPage#toolsPage#toolsPage#toolsPage>.ly-section-hero :is(p,.muted),
html:not([data-theme="light"]) body:not([data-progress-area="data"],[data-progress-area="progress"]) #progressPage#progressPage#progressPage#progressPage>.ly-section-hero :is(p,.muted){
 background:none!important;color:#eef0f7!important;-webkit-text-fill-color:#eef0f7!important}

/* Section buttons on Home, Tools and Progress & Data (after a "make the button pop" pattern): no outline, lifted
   with an inset shadow, and on hover a light runs around the edge (a rotating conic ring) with a soft glow
   in the card's colour. --g is the glow colour: the card's solid colour, else its own accent. */
@property --ly-glow-a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes lyGlowSpin{to{--ly-glow-a:360deg}}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button{--g:var(--sc,var(--hc,#ffffff));position:relative!important;isolation:isolate;overflow:visible!important;border:0!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -3px 6px rgba(0,0,0,.22),0 5px 12px -10px var(--g)!important;
 transition:box-shadow .3s ease,transform .15s ease!important}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button::before{content:"";position:absolute;z-index:-1;inset:-2px;padding:2px;border-radius:14px;pointer-events:none;
 background:conic-gradient(from var(--ly-glow-a),transparent 0 52%,var(--g) 68%,#ffffff 75%,var(--g) 82%,transparent 96%);
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
 opacity:0;transition:opacity .3s ease;animation:lyGlowSpin 2.2s linear infinite paused}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:is(:hover,:focus-visible)::before{opacity:.65;animation-play-state:running}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:is(:hover,:focus-visible){box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -3px 6px rgba(0,0,0,.18),0 0 10px -6px var(--g),0 6px 14px -12px var(--g)!important}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:active{transform:translateY(1px) scale(.98)}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button .home-circle svg{transition:transform .3s cubic-bezier(.2,.8,.2,1)!important}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:is(:hover,:focus-visible) .home-circle svg{transform:translate(2px,-2px)!important}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:focus-visible{outline:2px solid var(--g)!important;outline-offset:4px}
@media (prefers-reduced-motion:reduce){html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button::before{animation-duration:6s}html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button .home-circle svg{transition:none!important}}

/* Hover on a section button: it zooms in a little and glows softly in its own colour (text and arrow included). */
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:not(#_){transition:scale .18s ease-out,box-shadow .18s ease-out,filter .18s ease-out!important}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:not(#_):is(:hover,:focus-visible){scale:1.08;filter:brightness(1.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 0 0 1px color-mix(in srgb,var(--g) 60%,transparent),0 0 22px color-mix(in srgb,var(--g) 55%,transparent),0 8px 22px -8px color-mix(in srgb,var(--g) 70%,transparent)!important}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:not(#_):is(:hover,:focus-visible) :is(span,.home-circle){text-shadow:0 0 10px rgba(255,255,255,.45)}
html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:not(#_):active{scale:1.02}
@media (prefers-reduced-motion:reduce){html body :is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding):is(#homePage,#toolsLanding,#progressGoalsLanding) .home-card>button:not(#_):is(:hover,:focus-visible){scale:1}}
