/* Keep Astra layout from clipping sticky */
.ast-container,
.ast-primary-header-bar,
.ast-site-header-wrap {
  overflow: visible !important;
}

/* Sticky sidebar - stays in RIGHT column */
.ast-right-sidebar #secondary {
  position: sticky;
  top: 120px;      /* adjust if needed */
  align-self: flex-start;
  z-index: 5;
}

/* Prevent sidebar from floating over content */
.ast-right-sidebar #primary {
  position: relative;
  z-index: 1;
}

/* Push content below WPFront Notification Bar */
body{
  padding-top: 60px !important;
}

/* Extra space when logged in (admin bar present) */
body.admin-bar{
  padding-top: 92px !important;
}

/* Ensure consistent height */
.main-header-menu > li {
    display: flex;
    align-items: center;
}

/* Align entire menu vertically */
.main-header-bar-navigation {
    display: flex;
    align-items: center;
}

/* Fix Get Started button size */
.ast-button,
.menu-item .ast-button {
    padding: 14px 28px !important;
    border-radius: 6px;
    font-weight: 600;
}

/* Remove uppercase from page titles */
h1, .entry-title {
    text-transform: none !important;
}

/* rat-header-fit: keep the header on one line on laptop screens (added 11 Oct 2026 with the Market Updates menu item) */
@media (min-width:922px){
  .site-header .ast-custom-button,
  .site-header .site-title{white-space:nowrap;}
}
@media (min-width:922px) and (max-width:1500px){
  .site-header .main-header-menu>.menu-item>.menu-link{padding-left:10px;padding-right:10px;font-size:15px;}
}
@media (min-width:922px) and (max-width:1200px){
  .site-header .main-header-menu>.menu-item>.menu-link{padding-left:6px;padding-right:6px;font-size:14px;}
  .site-header .site-title a{font-size:19px;}
}

/* Retail Algo Trader: scoped header typography, 14 Oct 2026 */
.site-header .site-title,
.site-header .site-title a {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
  color: #132d4b !important;
}
.site-header .site-description {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400;
  letter-spacing: 0.15px;
  color: #61768b !important;
}
@media (max-width:1200px) {
  .site-header .site-description { font-size: 12px !important; }
}

/* Small decorative trading symbol; desktop brand/menu positions unchanged */
.site-header .site-title { position: relative; }
.site-header .site-title::before {
 content: ""; position: absolute; width: 40px; height: 40px;
 left: -46px; top: 50%; transform: translateY(-50%);
 background: url("https://retailalgotrader.technology/wp-content/uploads/2026/10/Retail_Algo_Trader_Brand_Icon.png") center / contain no-repeat;
 pointer-events: none;
}
@media (max-width:921px) {
 .site-header .site-title { padding-left: 40px; }
 .site-header .site-title::before { left: 0; width: 34px; height: 34px; }
 .site-header .site-description { padding-left: 40px; }
}