/* RightStock Learning Hub page (/learning-hub).
   Only the RightStock shell (top bar + footer) lives here — the page body is authored
   in the CMS and ships its own CSS inside the Content field, so nothing below styles
   the content itself. Shell rules are the same ones used by watchlist.css/history.css. */

:root{
  --blue:#013b6e;
  --blue-link:#1168c7;
  --ink:#1f2937;
  --line:#c4c8cf;
  --soft-blue:#eef4fb;
  --shadow:0 10px 28px rgba(7,35,67,.12);
  /* Background of the last section of the CMS body, so the footer band butts against
     it without a visible seam. */
  --cms-tail:#011f3a;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Lato",Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--cms-tail)}

.fs-topbar{background:#fff;border-bottom:1px solid var(--line);padding:14px 20px;font-family:"Lato",Segoe UI,Arial,sans-serif}
.fs-topbar-inner{max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;position:relative}
.fs-logo{display:inline-flex;align-items:center}
.fs-logo img{height:38px;width:auto;display:block}
.fs-menu-toggle{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;padding:8px 6px;background:none;border:0;cursor:pointer}
.fs-menu-toggle span{display:block;height:3px;width:100%;border-radius:2px;background:var(--blue-link);transition:transform .2s ease,opacity .2s ease}
.fs-menu-toggle.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.fs-menu-toggle.open span:nth-child(2){opacity:0}
.fs-menu-toggle.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.fs-menu{display:none;position:absolute;top:100%;right:0;margin-top:10px;min-width:200px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:10px;z-index:1500}
.fs-menu.open{display:flex;flex-direction:column;gap:4px}
.fs-menu-link{padding:8px 12px;color:var(--blue-link);text-decoration:none;border-radius:6px;font-weight:600}
.fs-menu-link:hover,.fs-menu-link:focus{background:var(--soft-blue)}
.fs-menu-link.current{background:var(--soft-blue);color:var(--blue)}
.fs-menu-name{padding:8px 12px;color:var(--ink);font-weight:700}

.fs-cms-body{display:block}

/* The CMS body is a Figma Make export that draws its own logo bar at the top and its own
   address line at the bottom; both are replaced by the RightStock shell, so they are
   hidden here. The selectors are structural because the export has no ids or stable class
   names — re-check them whenever the Learning Hub is re-exported. The durable fix is to
   export the app without its own header/footer. */
.fs-cms-body #root > div > div > div > div:first-child{display:none}
.fs-cms-body #root > div > div > div > div:last-child > div > p:last-child{display:none}

/* The CMS body ships a Tailwind preflight that zeroes margins/padding on every element,
   so the footer sets its own spacing explicitly (class selectors outrank it either way). */
.fs-footer{text-align:center;margin-top:0;font-family:"Lato",Segoe UI,Arial,sans-serif}
.fs-footer-help{font-size:.8rem;font-weight:700;color:rgba(255,255,255,.85);margin:0;padding:24px 0}
.fs-footer-help a{color:#fff;text-decoration:underline}
.fs-footer-address{background-color:rgb(56,57,59);color:#fff;padding:28px 16px}
.fs-footer-address .address{margin:0;line-height:1.6}
.fs-footer-address .phone-number{color:#fff}
.fs-footer-legal{margin-top:18px!important}

@media (max-width:768px){
  .fs-topbar{padding:12px 16px}
  .fs-logo img{height:32px}
}
