/* RankOps shell.css — defensive nav/footer rules (linked from every hand-built page) */

/* Prevent any inner element from causing horizontal page scroll on mobile —
   which is what pushes the fixed nav hamburger off-screen. */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Belt-and-braces hamburger position on mobile — pin to right of nav so no
   sibling overflow can shove it off the viewport. */
@media (max-width: 768px) {
  nav {
    position: fixed;
    padding: 0 16px !important;
  }
  nav .hamburger {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
  }
  nav .nav-links,
  nav .nav-cta {
    display: none !important;
  }
}

/* ── footer grid ── */
footer{background:var(--deep);border-top:1px solid var(--border);padding:40px 40px 24px;}
.footer-top{display:grid;grid-template-columns:260px 1fr 1fr 1fr;gap:32px;padding-bottom:32px;border-bottom:1px solid var(--border);}
.footer-brand-name{font-size:22px;font-weight:900;color:var(--white);margin-bottom:12px;}
.footer-brand-name span{color:var(--green);}
.footer-tagline{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:14px;}
.footer-ecosystem{display:flex;flex-direction:column;gap:6px;}
.footer-ecosystem a{font-size:12px;font-weight:600;color:var(--muted);text-decoration:none;letter-spacing:0.5px;transition:color 0.2s;}
.footer-ecosystem a:hover{color:var(--green);}
.footer-col .footer-col-title{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:14px;}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:7px;}
.footer-col a{font-size:12px;color:var(--text);text-decoration:none;transition:color 0.2s;}
.footer-col a:hover{color:var(--green);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:22px;flex-wrap:wrap;gap:14px;}
.footer-copy{font-size:11px;color:var(--muted);letter-spacing:0.5px;}
.footer-disclosure{font-size:11px;color:var(--muted);max-width:480px;text-align:right;line-height:1.5;}
/* Services collapsible */
.footer-col details{width:100%;}
.footer-col details summary{list-style:none;cursor:pointer;font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:0;display:flex;align-items:center;justify-content:space-between;user-select:none;padding-right:2px;}
.footer-col details summary::-webkit-details-marker{display:none;}
.footer-col details summary::after{content:'+';font-size:13px;font-weight:400;color:var(--muted);line-height:1;}
.footer-col details[open] summary::after{content:'−';}
.footer-col details ul{margin-top:12px;}
@media(max-width:1024px){.footer-top{grid-template-columns:1fr 1fr;}}
@media(max-width:768px){.footer-top{grid-template-columns:1fr;}.footer-disclosure{text-align:left;}}

/* Blog/listing pages: keep the category bar from running flush-left on wide screens.
   Centers within page max-width without breaking the horizontal scroll behavior. */
.category-bar {
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .category-bar { padding: 0 16px !important; }
}
