/*
  SPA TIME new design - the new header and footer on a page that still uses an old layout
  (rd/partials/legacy-head, legacy-top, legacy-foot). Loaded AFTER the old stylesheets and BEFORE rd.css.

  The old sheets (bootstrap, style.css / ar_style.css, responsive.css) style bare elements:
  `a{color:#000}`, `p{padding:10px 0}`, `h1-h6{padding:10px 0;color:#000}`,
  `span,p,h1-h6{font-family:'Open Sans'!important}`, `header{position:fixed;left:0;right:0;text-align:center}`,
  bootstrap's h4/p/ul margins. rd.css answers bare elements only with zero-specificity :where(.rd) resets,
  written for a page without them, so here those resets are said again at element weight. They load after
  the old sheets (so they win a tie) and before rd.css (so every rd- class rule still wins over them).
  Everything is inside .rd-chrome: nothing here reaches the page itself.
*/
/* .rd.rd-chrome (both wrappers carry both classes): beats a page that styles its own bare `.rd` (the gift redeem form sets Lato on it). */
.rd.rd-chrome{display:contents;font-family:var(--rd-sans);color:var(--txt);font-size:16px;line-height:1.6;font-weight:400;-webkit-font-smoothing:antialiased;text-align:start;letter-spacing:normal}
/* style.css: * { font-family:Lato; line-height:normal } (its margin:0;padding:0 is what rd wants anyway).
   Same weight, later sheet: this wins. Then the bare-element rules (`.login-page h1, h2, ..., p, a` is really
   a list of bare h2-h6, p and a: Open Sans 500) at element weight. */
:where(.rd-chrome) *{font-family:inherit;line-height:inherit;letter-spacing:inherit}
:where(.rd-chrome) :is(div,a,span,bdi,ul,ol,li,p,nav,header,footer,form,label,i,em,section,button,img,svg){font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;font-style:inherit}
:where(.rd-chrome) :is(strong,b,small,h1,h2,h3,h4,h5,h6){font-family:inherit;line-height:inherit;letter-spacing:inherit;font-weight:revert;font-size:revert}
:where(.rd-chrome) :is(h1,h2,h3,h4,h5,h6,p,ul,ol,li,figure,section,form,label){margin:0;padding:0;list-style:none;vertical-align:baseline}
:where(.rd-chrome) :is(h1,h2,h3,h4,h5,h6){color:inherit;line-height:inherit;font-size:revert;font-weight:revert;text-transform:none}
:where(.rd-chrome) :is(p,li,small){font-size:inherit;line-height:inherit}
:where(.rd-chrome) small{font-size:revert}
/* style.css: span,p,h1-h6 { font-family:'Open Sans' !important } - only !important answers !important. */
:where(.rd-chrome) :is(span,p,h1,h2,h3,h4,h5,h6,strong,b,small,bdi){font-family:inherit!important}
:where(.rd-chrome) a{color:inherit;text-decoration:none;vertical-align:baseline;border-radius:0}
:where(.rd-chrome) a:hover,:where(.rd-chrome) a:focus{color:inherit;text-decoration:none}
:where(.rd-chrome) button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0;margin:0;vertical-align:baseline;text-transform:none;overflow:visible}
:where(.rd-chrome) :is(img,svg){vertical-align:revert;border:0}
:where(.rd-chrome) img{display:block;max-width:100%}
:where(.rd-chrome) header{left:auto;right:auto;width:auto;padding:0;text-align:start}
:where(.rd-chrome) nav{display:revert}

/* The old layouts make <body> a column so the footer sits at the bottom of a short page;
   the old rule names `body>footer`, and the new footer sits one wrapper down. */
body.rd-legacy .rd-ftr{margin-top:auto;flex-shrink:0}
body.rd-legacy .rd-hdr{flex-shrink:0}
/* The page's own sticky side panels were set for a header that scrolled away. */
@media (min-width:992px){
  body.rd-legacy :is(.ofk-side,.ofs-side,.gv-side){top:calc(var(--hdr) + 22px)}
}

/* The page itself (outside the new chrome) in Arabic: the same font switch .rd-ar makes for the chrome,
   so the page skins (rd-skin.css) can say var(--rd-serif)/var(--rd-sans) once for both languages. */
body.rd-legacy-ar{--rd-serif:Almarai,Tahoma,sans-serif;--rd-sans:Almarai,Tahoma,sans-serif}
