/* Shared look for every ryfoureswares.com page (the hub and the download pages).
   Each page links this file, then adds its own <style> for anything only it needs. */
@font-face{font-family:"Roboto Condensed";src:url("fonts/RobotoCondensed.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
:root{--bg:#fff;--fg:#1d1d1f;--muted:#6e6e73;--line:#e3e3e8;--barbg:#ececef;--link:#2d5bd7;
  --shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.08);
  --sans:"Roboto Condensed","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--fg);font:16px/1.55 var(--sans);
  min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
img{max-width:100%;display:block}

/* Grey top bar on the download pages, holding the "More from RyFoure" link on the right */
.top{background:var(--barbg);border-bottom:1px solid #dcdce1;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;
  display:flex;justify-content:flex-end}

/* "More from RyFoure": the link back to the homepage, top right of every page */
.more{display:inline-block;background:#fff;color:var(--fg);text-decoration:none;padding:7px 12px;font-size:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.12)}
.more:hover{filter:brightness(.94)}
.more:focus-visible{outline:2px solid var(--link);outline-offset:3px}

main{flex:1;width:100%}

/* Small privacy link pinned near the bottom of the screen */
footer{text-align:center;font-size:12px;padding:32px 16px calc(12px + env(safe-area-inset-bottom,0px))}
footer a{color:var(--muted)}

/* Bottom banner slot (footbar.js): a placeholder box until ads are switched on. While it shows, <html data-slot> is set
   and pages keep --slot-h of room at the bottom. data-flow pages (the investing tool) put it in the layout instead. */
:root{--slot-h:0px}
:root[data-slot]{--slot-h:62px}
@media (min-width:768px){:root[data-slot]{--slot-h:102px}}
:root[data-slot]:not(.slot-flow) body{padding-bottom:var(--slot-h)}
.footbar{position:fixed;left:0;right:0;bottom:calc(6px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;justify-content:center;pointer-events:none}
.footbar.flow{position:static;flex:none;padding:6px 0 calc(6px + env(safe-area-inset-bottom,0px))}
.footbar[hidden]{display:none}
.fbox{pointer-events:auto;max-width:calc(100vw - 16px);overflow:hidden;background:#f4f4f6;box-shadow:inset 0 0 0 1px var(--line)}

/* Cookie consent bar (footbar.js): Accept and Reject look equally prominent (required in the EU) */
.consent{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--slot-h) + 12px + env(safe-area-inset-bottom,0px));z-index:60;
  width:min(520px,calc(100vw - 32px));box-sizing:border-box;padding:14px 16px;background:#fff;color:var(--fg);box-shadow:0 6px 24px rgba(0,0,0,.25);font-size:15px}
.consent[hidden]{display:none}
.consent p{margin:0 0 12px}
.consent a{color:var(--link)}
.cbtns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.cbtns button{font:inherit;font-size:14px;padding:7px 18px;border:none;background:var(--barbg);color:var(--fg);cursor:pointer}
.cbtns button:hover{filter:brightness(.93)}
.cbtns button:focus-visible{outline:2px solid var(--link);outline-offset:2px}
/* "Cookie settings" next to the privacy link in page footers */
.linkbtn{font:inherit;background:none;border:none;padding:0;color:var(--muted);text-decoration:underline;cursor:pointer}
