/* Shared editorial rhythm. Color remains controlled by the selected preset. */
:root body :is(.home-post,.rx-post-card,.rx-widget,.rx-toc){border-radius:16px;overflow-wrap:anywhere}
:root body .home-post{border:1px solid var(--color-border);box-shadow:0 5px 18px rgba(0,0,0,.09)}
:root body .home-post:hover{box-shadow:0 8px 24px rgba(0,0,0,.14)}
:root body :is(.home-post-title,.home-post h2,.home-post h3){line-height:1.4;letter-spacing:-.015em}
:root body :is(.home-post-excerpt,.home-post p){line-height:1.65}
:root body :is(a,button,input,select):focus-visible{outline:3px solid var(--color-accent);outline-offset:3px}
/* AirRX uses the editable palette, not a second set of hard-coded colors. */
body.rx-theme-airx{font-family:var(--font-main)}
:root:root:root:root body.rx-theme-airx :is(.home-post,.rx-post-card,.rx-widget,.rx-toc){backdrop-filter:blur(18px) saturate(135%)!important;-webkit-backdrop-filter:blur(18px) saturate(135%)!important;border:1px solid rgba(83,105,135,.22);border-radius:20px;box-shadow:0 8px 28px rgba(26,46,77,.10)}
:root:root:root:root body.rx-theme-airx .rx-header>.rx-nav-wrapper{backdrop-filter:var(--rx-menu-blur,none)!important;-webkit-backdrop-filter:var(--rx-menu-blur,none)!important;border-bottom:1px solid rgba(83,105,135,.24)!important}
:root body.rx-theme-airx :is(.rx-sub-menu,.rx-mega-menu){background:var(--color-surface-solid)!important;border:1px solid var(--color-border);border-radius:16px;box-shadow:0 12px 36px rgba(26,46,77,.14)}
:root body.rx-theme-airx .rx-nav-auth-btn{border-radius:999px;font-weight:650}
:root body.rx-theme-airx .rx-article{border-radius:20px}
@media(max-width:991px){:root:root:root:root body.rx-theme-airx .rx-nav-collapse.open{background:var(--color-surface-solid)!important;border:1px solid var(--color-border);border-radius:18px;box-shadow:0 12px 28px rgba(26,46,77,.15)}}
@media(prefers-reduced-motion:reduce){body :is(.home-post,.rx-post-card){transition:none!important}}

:root body:is(.rx-theme-airx,.rx-theme-lightrx,.rx-theme-summerrx,.rx-theme-springrx) .rx-logo-fallback{color:var(--color-text)!important;text-shadow:none!important}

:root body .home-post .post-data h3{height:2.8em;line-height:1.4}
:root body .home-post .post-data p{height:3.3em;line-height:1.65}

/* Solid default card surfaces; per-preset alpha controls and Crystal override these. */
:root body :is(.home-post,.cat-post-item,.rx-related-card){background:var(--color-surface)!important}

/* Distinct Mac-inspired Air: translucent toolbar, cool surfaces, window-like elevation. */
body.rx-theme-airx{--rx-card-radius:22px;--rx-card-shadow:0 10px 30px rgba(25,50,90,.16);-webkit-font-smoothing:antialiased}
body.rx-theme-lightrx{--rx-card-radius:7px;--rx-card-shadow:0 0 0 transparent}
:root:root:root:root body.rx-theme-airx .rx-header>.rx-nav-wrapper{
    width:calc(100% - 32px);max-width:1440px;margin:12px auto 18px;border-radius:22px;border:1px solid rgba(255,255,255,.76)!important;
    box-shadow:0 10px 32px rgba(25,50,90,.16),inset 0 1px 0 rgba(255,255,255,.8)!important;
}
:root body.rx-theme-airx .rx-nav-link{font-weight:600;letter-spacing:-.015em}
:root body.rx-theme-airx .navbar-nav.rx-navbar-nav>li.rx-nav-item>a.rx-nav-link{border-radius:10px;padding:8px 12px}
:root body.rx-theme-airx :is(.rx-read-more,.rx-search-btn,.rx-nav-auth-btn){border-radius:12px;font-weight:600}
:root:root:root:root body.rx-theme-airx :is(.rx-widget,.rx-toc){border-radius:22px}
:root body.rx-theme-airx .post-data h3{letter-spacing:-.025em;font-weight:650}
:root body.rx-theme-lightrx :is(.rx-widget,.rx-toc,.rx-read-more){border-radius:6px}
@media(max-width:991px){:root:root:root:root body.rx-theme-airx .rx-header>.rx-nav-wrapper{width:calc(100% - 16px);margin:8px auto 14px;border-radius:18px}}

/* Air groups existing content without adding a painted layer behind transparent cards. */
:root body.rx-theme-airx .home-columns{gap:24px;align-items:flex-start}
:root body.rx-theme-airx .home-columns>.column:has(.home-post){border:1px solid rgba(110,135,165,.26);border-radius:26px;padding:16px;box-shadow:0 16px 40px rgba(25,50,90,.09);min-width:0}
:root body.rx-theme-airx .home-columns .cat-title{display:block;border-radius:12px;padding:10px 12px;letter-spacing:.02em;font-size:12px;margin-bottom:18px}
:root body.rx-theme-airx .home-columns .cat-title-sub{margin-top:20px}
:root body.rx-theme-airx .home-columns .rx-neon-wrap--always{margin-bottom:16px}
:root body.rx-theme-airx .rx-footer{border-radius:28px 28px 0 0;border-top:1px solid rgba(110,135,165,.26)}
:root body.rx-theme-airx .rx-footer-grid{border:1px solid rgba(110,135,165,.22);border-radius:24px;padding:26px;gap:28px}
:root body.rx-theme-airx .rx-footer-title{font-weight:650;letter-spacing:-.015em}
@media(max-width:991px){:root body.rx-theme-airx .home-columns{gap:18px}:root body.rx-theme-airx .home-columns>.column:has(.home-post){padding:12px;border-radius:22px}:root body.rx-theme-airx .rx-footer-grid{padding:18px}}
