/* LoveLifeCalc Redesign — optional global restyle (Settings → LLC Redesign → Global restyle).
   Written to work with most themes, with extra selectors for Astra, GeneratePress, Kadence and block themes.
   Test on a staging copy first: hand-coded calculators with light backgrounds may need small tweaks. */

/* Hide the theme header/footer when the plugin's versions are on */
.llc-rd-header #masthead,.llc-rd-header .site-header:not(.llc-header),.llc-rd-header header.wp-block-template-part,.llc-rd-header .ast-mobile-header-wrap,.llc-rd-header #ast-desktop-header{display:none!important}
.llc-rd-footer #colophon,.llc-rd-footer .site-footer:not(.llc-footer),.llc-rd-footer footer.wp-block-template-part{display:none!important}

/* Ground + type */
html body.llc-rd-global,.llc-rd-global #page,.llc-rd-global .site,.llc-rd-global .site-content,.llc-rd-global #content,.llc-rd-global .wp-site-blocks{background:var(--llc-bg)!important;color:var(--llc-text)}
.llc-rd-global,.llc-rd-global p,.llc-rd-global li,.llc-rd-global td,.llc-rd-global label,.llc-rd-global input,.llc-rd-global select,.llc-rd-global textarea,.llc-rd-global button{font-family:var(--llc-font)}
.llc-rd-global .entry-content,.llc-rd-global .entry-content p,.llc-rd-global .entry-content li{color:var(--llc-n300)}
.llc-rd-global h1,.llc-rd-global h2,.llc-rd-global h3,.llc-rd-global h4,.llc-rd-global .entry-title{font-family:var(--llc-font)!important;font-weight:500!important;letter-spacing:-.025em;color:var(--llc-text)!important}
.llc-rd-global .entry-content h1,.llc-rd-global .entry-title{font-size:clamp(36px,6vw,72px);line-height:1}
.llc-rd-global .entry-content h2{font-size:clamp(26px,3.4vw,40px);line-height:1.1}
.llc-rd-global .entry-content h3{font-size:clamp(20px,2.4vw,26px)}
.llc-rd-global a{color:var(--llc-a300)}
.llc-rd-global a:hover{color:var(--llc-a200)}
.llc-rd-global ::selection{background:color-mix(in srgb,var(--llc-accent) 35%,transparent)}

/* Theme containers go transparent so the dark ground shows through */
.llc-rd-global .ast-container,.llc-rd-global .ast-separate-container .ast-article-single,.llc-rd-global .ast-separate-container .ast-article-post,.llc-rd-global .ast-separate-container .comments-area,.llc-rd-global .ast-plain-container,.llc-rd-global .inside-article,.llc-rd-global .content-bg,.llc-rd-global .entry-content-wrap,.llc-rd-global article.post,.llc-rd-global article.page,.llc-rd-global #primary,.llc-rd-global .site-main{background:transparent!important;box-shadow:none!important}

/* Buttons: outlined accent */
.llc-rd-global .wp-block-button__link,.llc-rd-global .entry-content button:not(.llc-signs button):not(.llc-moods button),.llc-rd-global input[type=submit],.llc-rd-global input[type=button],.llc-rd-global .button,.llc-rd-global .ast-button{background:transparent!important;border:1px solid var(--llc-accent)!important;border-radius:var(--llc-r)!important;color:var(--llc-a200)!important;font:500 15px var(--llc-font)!important;min-height:44px;padding:0 16px;cursor:pointer;transition:box-shadow .2s,background .2s}
.llc-rd-global .wp-block-button__link:hover,.llc-rd-global .entry-content button:hover,.llc-rd-global input[type=submit]:hover,.llc-rd-global .button:hover{background:color-mix(in srgb,var(--llc-accent) 14%,transparent)!important;box-shadow:0 0 24px -8px var(--llc-accent)}

/* Forms */
.llc-rd-global input[type=text],.llc-rd-global input[type=number],.llc-rd-global input[type=email],.llc-rd-global input[type=date],.llc-rd-global input[type=search],.llc-rd-global select,.llc-rd-global textarea{background:var(--llc-bg)!important;border:1px solid var(--llc-n700)!important;border-radius:var(--llc-r)!important;color:var(--llc-text)!important;min-height:44px;padding:0 12px}
.llc-rd-global textarea{padding:10px 12px}
.llc-rd-global input:focus,.llc-rd-global select:focus,.llc-rd-global textarea:focus{border-color:var(--llc-accent)!important;outline:none;box-shadow:0 0 0 1px var(--llc-accent)}
.llc-rd-global input[type=radio],.llc-rd-global input[type=checkbox],.llc-rd-global input[type=range]{accent-color:var(--llc-accent)}

/* Tables, details/FAQ, blockquotes */
.llc-rd-global table{border-collapse:collapse}
.llc-rd-global th,.llc-rd-global td{border-color:var(--llc-n800)!important;background:transparent!important;color:var(--llc-n300)}
.llc-rd-global th{color:var(--llc-text)}
.llc-rd-global details{border:1px solid var(--llc-n800);border-radius:var(--llc-r);padding:12px 16px;margin:8px 0;background:var(--llc-surface)}
.llc-rd-global summary{cursor:pointer;font-weight:500;color:var(--llc-text)}
.llc-rd-global blockquote{border-left:2px solid var(--llc-accent);color:var(--llc-n200)}
.llc-rd-global hr,.llc-rd-global .wp-block-separator{border:0;height:1px;background:linear-gradient(90deg,transparent,var(--llc-divider) 48px,var(--llc-divider) calc(100% - 48px),transparent)}

/* Safety net: light cards inside hand-coded calculators keep dark text */
.llc-rd-global .entry-content [style*="background:#fff"],.llc-rd-global .entry-content [style*="background: #fff"],.llc-rd-global .entry-content [style*="background-color:#fff"],.llc-rd-global .entry-content [style*="background-color: #fff"],.llc-rd-global .entry-content [style*="background:white"],.llc-rd-global .entry-content [style*="background: white"],.llc-rd-global .entry-content [style*="background-color: white"]{background:var(--llc-surface)!important;color:var(--llc-text)!important;border-color:var(--llc-n800)!important}
