/* Renewed Tech · display modes for the website (html.rt-site) and Renewed HQ (html.rt-hq).
   html[data-theme="dark"|"light"] × html[data-style="normal"|"glass"], set by js/rt-theme.js.
   Dark + normal is the original design and needs no rules here. */

/* ============ switch UI (both apps) ============ */
.rtthm-b{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:none;color:var(--fg);display:inline-grid;place-items:center;cursor:pointer;flex:none;padding:0;transition:background .2s,border-color .2s}
.rtthm-b:hover{background:var(--panel);border-color:var(--mu)}
.rtthm-b span{display:grid;place-items:center}
.rtthm-pop{position:fixed;z-index:1000;width:240px;background:var(--bg2);color:var(--fg);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 24px 60px rgba(0,0,0,.35);font-family:var(--f-b,var(--f-d,system-ui,sans-serif))}
.rtthm-p{display:flex;flex-direction:column;gap:8px}
.rtthm-l{font:600 10.5px var(--f-m,ui-monospace,monospace);letter-spacing:.14em;text-transform:uppercase;color:var(--mu);margin-top:2px}
.rtthm-seg{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border:1px solid var(--line);border-radius:99px;background:var(--bg)}
.rtthm-seg button{font:700 13px inherit;font-family:inherit;padding:8px 10px;border-radius:99px;border:0;background:none;color:var(--mu);cursor:pointer;transition:background .2s,color .2s}
.rtthm-seg button[aria-pressed="true"]{background:var(--ac);color:#fff}
.rtthm-seg button:focus-visible,.rtthm-b:focus-visible{outline:2px solid var(--ac);outline-offset:2px}

/* ============ glass background (both apps) ============ */
#rtGlassBg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
html:not([data-style="glass"]) #rtGlassBg{display:none}
#rtGlassBg i{position:absolute;border-radius:50%;filter:blur(90px);opacity:.55;will-change:transform;animation:rtfloat 26s ease-in-out infinite alternate}
#rtGlassBg i:nth-child(1){width:55vmax;height:55vmax;left:-15vmax;top:-18vmax;background:#EE4B22}
#rtGlassBg i:nth-child(2){width:50vmax;height:50vmax;right:-18vmax;top:10vh;background:#7C70FF;animation-delay:-8s}
#rtGlassBg i:nth-child(3){width:45vmax;height:45vmax;left:20vw;bottom:-25vmax;background:#3DD6C4;opacity:.38;animation-delay:-15s}
#rtGlassBg i:nth-child(4){width:30vmax;height:30vmax;left:45vw;top:30vh;background:#E06AA8;opacity:.28;animation-delay:-4s}
@keyframes rtfloat{to{transform:translate3d(6vmax,4vmax,0) scale(1.08)}}
@media (prefers-reduced-motion:reduce){#rtGlassBg i{animation:none}}
html[data-style="glass"]{background:#07070A}
html[data-style="glass"][data-theme="light"]{background:#ECEEF3}
html[data-style="glass"][data-theme="light"] #rtGlassBg i{opacity:.32}
html[data-style="glass"] body{background:transparent!important}

/* ======================================================================
   WEBSITE
   ====================================================================== */
html.rt-site[data-theme="light"]{--bg:#F5F4EF;--bg2:#ECEBE5;--panel:#FFFFFF;--line:#DCDAD3;--fg:#141412;--mu:#6B6A63;--soft:#3A3935;--ac2:#D9461C;color-scheme:light}
/* photo and video areas keep their dark look, so white text over pictures stays readable */
html.rt-site[data-theme="light"] :is(.hero,.dv,.pev,.pdh,.pdtier,.pdhome,.wsh,.vid,.pd3d,.lb,.vplay,.rtban){--bg:#0A0A0A;--bg2:#121211;--panel:#161615;--line:#272725;--fg:#F4F3EE;--mu:#8E8D86;--soft:#C8C7C0;--ac2:#FF7A45;color:var(--fg)}
html.rt-site[data-theme="light"] .hdr.solid{background:rgba(245,244,239,.82);border-bottom-color:rgba(0,0,0,.07)}
html.rt-site[data-theme="light"] .hdr nav a.nl:hover,html.rt-site[data-theme="light"] .hdr nav a.nl.on{background:rgba(0,0,0,.06)}
html.rt-site[data-theme="light"] .cta.ghost{border-color:rgba(0,0,0,.22)}
html.rt-site[data-theme="light"] .cta.ghost:hover{background:rgba(0,0,0,.04)}
html.rt-site[data-theme="light"] :is(.hero,.pdh,.pdhome,.wsh,.pdtier,.dv) .cta.ghost{border-color:rgba(255,255,255,.3)}
html.rt-site[data-theme="light"] :is(.mc,.rc):hover{border-color:#BEBCB3}
html.rt-site[data-theme="light"] .rtools{background:linear-gradient(var(--bg) 90%,rgba(245,244,239,0))}
html.rt-site[data-theme="light"] .rrow:hover{background:rgba(0,0,0,.025)}
html.rt-site[data-theme="light"] .sdx span{background:rgba(0,0,0,.03)}
html.rt-site[data-theme="light"] .sdcg .sdp{background:rgba(255,255,255,.75)}
html.rt-site[data-theme="light"] .sdcg .sdp.hot{background:linear-gradient(170deg,rgba(238,75,34,.14),rgba(255,255,255,.85) 50%)}
html.rt-site[data-theme="light"] .sdt{border-color:rgba(0,0,0,.18)}
html.rt-site[data-theme="light"] .pdstats{border-top-color:rgba(0,0,0,.14)}
html.rt-site[data-theme="light"] .pdstats>div+div,html.rt-site[data-theme="light"] .pdstats>div:nth-child(n+3){border-color:rgba(0,0,0,.1)}
html.rt-site[data-theme="light"] :is(.pdh,.pdhome) .pdstats{border-top-color:rgba(255,255,255,.18)}
html.rt-site[data-theme="light"] :is(.pdh,.pdhome) .pdstats>div+div,html.rt-site[data-theme="light"] :is(.pdh,.pdhome) .pdstats>div:nth-child(n+3){border-color:rgba(255,255,255,.12)}
html.rt-site[data-theme="light"] .cur2{border-color:rgba(0,0,0,.4)}
html.rt-site[data-theme="light"] .rvrate button{color:#CFCDC4}
html.rt-site[data-theme="light"] .sdv{background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.12)}
html.rt-site[data-theme="light"] :is(.sdb span,.sdscr){background-color:#EDECE6}
html.rt-site[data-theme="light"] .sdb i{background:#CFCDC4}
html.rt-site[data-theme="light"] .mc .ph,html.rt-site[data-theme="light"] .mdg .mdimg{background:#E4E3DD}
html.rt-site[data-theme="light"] .mdl{background:rgba(30,30,28,.45)}
/* header over a dark photo at the top of a page: light text until the bar turns solid */
html.rt-site[data-theme="light"] body.rt-darktop .hdr:not(.solid){color:#F4F3EE;--fg:#F4F3EE;--mu:#C8C7C0;--soft:#E6E5DF;--line:rgba(255,255,255,.22);--panel:rgba(255,255,255,.08)}
html.rt-site[data-theme="light"] body.rt-darktop .hdr:not(.solid) .brand img{filter:none}
html.rt-site[data-theme="light"] .hdr.solid .brand img,html.rt-site[data-theme="light"] body:not(.rt-darktop) .hdr .brand img,html.rt-site[data-theme="light"] footer img[src*="logo"]{filter:invert(1)}

/* glass: see-through panels over the colour background */
html.rt-site[data-style="glass"]{--panel:rgba(255,255,255,.055);--bg2:rgba(14,14,18,.62);--line:rgba(255,255,255,.12)}
html.rt-site[data-style="glass"][data-theme="light"]{--panel:rgba(255,255,255,.55);--bg2:rgba(250,250,252,.66);--line:rgba(255,255,255,.75);--bg:rgba(250,250,252,.72)}
html.rt-site[data-style="glass"]:not([data-theme="light"]){--bg:rgba(10,10,13,.7)}
html.rt-site[data-style="glass"] :is(.msteps>div,.mc,.wpil>div,.sdp,.menu,.menu .prev,.ac,.plan,.calbox,form.rq,.rsteps div,.rc,.rsearch,.rviews,.rzoom,.rdbuy,.rdbox,.mdl .sheet,.logos div,form.cf,.wedg figure,.wedl li,.pdm,.pdchips span,.pdteam a,.pdteam div,.hrc,.lang,.rtthm-b,.rtthm-pop,.rbag,.sdcare,.sdv){-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 12px 40px rgba(0,0,0,.16)}
html.rt-site[data-style="glass"][data-theme="light"] :is(.mc,.rc,form.rq,form.cf,.rdbox,.rdbuy,.ac,.plan,.calbox,.hrc,.msteps>div,.rsteps div,.pdm){box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 40px rgba(40,40,80,.10)}
html.rt-site[data-style="glass"] .hdr.solid{background:rgba(10,10,14,.45);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%)}
html.rt-site[data-style="glass"][data-theme="light"] .hdr.solid{background:rgba(250,250,252,.55)}
html.rt-site[data-style="glass"] .rtools{background:none;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
html.rt-site[data-style="glass"] body::before{background:transparent}
html.rt-site[data-style="glass"] :is(form.rq,form.cf,.mf) :is(input,select,textarea){-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* ======================================================================
   RENEWED HQ
   ====================================================================== */
html.rt-hq[data-theme="light"]{--bg:#F4F3EE;--bg2:#EBEAE4;--panel:#FFFFFF;--panel2:#F1F0EA;--line:#DAD8D0;--fg:#151513;--mu:#6B6A63;--soft:#3B3A35;--ok:#2E9A5E;--warn:#B57D14;--bad:#C8463F;--info:#5B4FE0;--ac2:#D9461C;color-scheme:light}
html.rt-hq[data-theme="light"] td{border-bottom-color:#E4E2DA}
html.rt-hq[data-theme="light"] .file .th,html.rt-hq[data-theme="light"] .mcard .mth{background-color:#E4E3DD}
html.rt-hq[data-theme="light"] .mbar{background:rgba(244,243,238,.88)}
html.rt-hq[data-theme="light"] .dlink .th{background:linear-gradient(135deg,#DCE4F7,#EEF1F8)!important;color:#3C5BB0}
html.rt-hq[data-theme="light"] .dlist .ico{background-color:#E4E3DD}
html.rt-hq[data-theme="light"] .pdv button:hover,html.rt-hq[data-theme="light"] .pdv a.dvx:hover{background:#E9E8E2}
html.rt-hq[data-theme="light"] :is(.pltab th,.pltab td){border-bottom-color:#E4E2DA;color:var(--fg)}
html.rt-hq[data-theme="light"] .pltab tr.plsec td{background:#EFEEE8}
/* chat */
html.rt-hq[data-theme="light"] .chat{--cbg:#F1F0EA;--cb1:#FFFFFF;--cb2:#E7E6E0;--cl:rgba(0,0,0,.09)}
html.rt-hq[data-theme="light"] :is(.chl,.chfind,.chcomp,.chinfo){background:#FAF9F6}
html.rt-hq[data-theme="light"] :is(.chpanel,.chsug,.chpop){background:#FFFFFF;box-shadow:0 18px 50px rgba(0,0,0,.14)}
html.rt-hq[data-theme="light"] :is(.chrx,.chdown){background:#E9E8E2}
html.rt-hq[data-theme="light"] :is(.chip0,.chisec,.chisave){border-bottom-color:#E7E6E0}
html.rt-hq[data-theme="light"] .chiavb{border-color:#FAF9F6}
html.rt-hq[data-theme="light"] .chseg button[aria-pressed=true]{background:#E7E6E0}

/* glass */
html.rt-hq[data-style="glass"]{--panel:rgba(255,255,255,.06);--panel2:rgba(255,255,255,.1);--bg2:rgba(14,14,18,.55);--line:rgba(255,255,255,.12);--bg:rgba(10,10,13,.6)}
html.rt-hq[data-style="glass"][data-theme="light"]{--panel:rgba(255,255,255,.58);--panel2:rgba(255,255,255,.75);--bg2:rgba(250,250,252,.6);--line:rgba(255,255,255,.8);--bg:rgba(255,255,255,.6)}
html.rt-hq[data-style="glass"] :is(.side,.card,.kpi,.search,.ev,.cal,.sheet,.banner,.rq,.howto,.mbar,.rtthm-pop,.chat,.chpanel,.chpop,.chsug){-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%)}
html.rt-hq[data-style="glass"] :is(.card,.kpi,.ev,.cal,.rq,.howto,.banner){box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 34px rgba(0,0,0,.14)}
html.rt-hq[data-style="glass"][data-theme="light"] :is(.card,.kpi,.ev,.cal,.rq,.howto,.banner){box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 10px 34px rgba(40,40,80,.09)}
html.rt-hq[data-style="glass"] .chat{--cbg:rgba(10,10,14,.35);--cb1:rgba(255,255,255,.08);--cb2:rgba(255,255,255,.12)}
html.rt-hq[data-style="glass"] :is(.chl,.chfind,.chcomp,.chinfo){background:rgba(10,10,14,.4)}
html.rt-hq[data-style="glass"][data-theme="light"] .chat{--cbg:rgba(255,255,255,.35);--cb1:rgba(255,255,255,.75);--cb2:rgba(255,255,255,.6)}
html.rt-hq[data-style="glass"][data-theme="light"] :is(.chl,.chfind,.chcomp,.chinfo){background:rgba(255,255,255,.45)}
html.rt-hq[data-style="glass"] :is(input,select,textarea){-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* website header button */
html.rt-site .hdr nav .rtthm-b{margin-left:8px;width:38px;height:38px}
html.rt-site .hdr .brand{white-space:nowrap}
@media (max-width:1400px){html.rt-site .hdr nav .rtthm-b{width:34px;height:34px;margin-left:4px}}
@media (max-width:520px){html.rt-site .hdr nav .rtthm-b{width:34px;height:34px;margin-left:4px}}
/* HQ: icon + label inside the sidebar and the phone top bar */
.sidelinks [data-rtthmopen],.mtop [data-rtthmopen]{display:inline-flex;align-items:center;gap:10px}
@media (max-width:430px){html.rt-site .hdr .brand{font-size:17px;gap:9px}html.rt-site .hdr .brand img{width:30px;height:auto}html.rt-site .hdr nav .rtthm-b{width:32px;height:32px;margin-left:2px}}
@media (min-width:1271px){html.rt-site .hdr nav a.nl{padding:7px 6px}}
@media (min-width:1271px) and (max-width:1420px){html.rt-site .hdr nav a.nl{padding:7px 5px}html.rt-site .hdr nav .rtthm-b{margin-left:2px}}
html.rt-hq[data-theme="light"] :is(.brand img,.mbar .ttl img){filter:invert(1)}
