/*
 * Slever Lab — shared non-calculator UI layer
 *
 * Calculator layout/design lives in calculator.css.
 * This file intentionally contains no calculator-specific compatibility rules.
 */

:root{
  --owner-home-width:1080px;
}

/* =========================================================
   Canonical home page
   ========================================================= */
body.slever-owner-ui.home-v2 .site-header{
  padding-left:max(16px, calc((100vw - var(--owner-home-width)) / 2)) !important;
  padding-right:max(16px, calc((100vw - var(--owner-home-width)) / 2)) !important;
}

body.slever-owner-ui.home-v2 .home-hero-inner,
body.slever-owner-ui.home-v2 .home-catalog{
  width:min(calc(100% - 32px), var(--owner-home-width)) !important;
}

body.slever-owner-ui.home-v2 .home-hero h1{
  font-size:32px !important;
  line-height:1.1 !important;
}

@media (min-width:641px){
  body.slever-owner-ui.home-v2 .home-hero{
    min-height:auto !important;
    height:auto !important;
    padding:12px 24px 0 !important;
    display:block !important;
    align-items:initial !important;
  }

  body.slever-owner-ui.home-v2 .home-catalog{
    margin-top:0 !important;
    padding-top:18px !important;
  }

  body.slever-owner-ui.home-v2 .home-section-title{
    margin:0 0 18px !important;
  }
}

@media (max-width:640px){
  body.slever-owner-ui.home-v2 .site-header{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  body.slever-owner-ui.home-v2 .home-hero-inner,
  body.slever-owner-ui.home-v2 .home-catalog{
    width:min(calc(100% - 24px), var(--owner-home-width)) !important;
  }

  body.slever-owner-ui.home-v2 .home-hero h1{
    font-size:32px !important;
  }
}


/* =========================================================
   v399 — canonical mobile navigation
   Kept in the current shared layer so it does not depend on a
   stale historical style.css cache.
   ========================================================= */
.mobile-nav{
  display:none;
}

@media (max-width:760px){
  .site-header .desktop-nav{
    display:none !important;
  }

  .site-header .mobile-nav{
    display:block !important;
    margin-left:auto;
  }

  .site-header .mobile-menu-dropdown{
    position:relative;
  }

  .site-header .mobile-menu-dropdown > summary{
    list-style:none;
    display:flex;
    align-items:center;
    gap:6px;
    margin:0;
    padding:8px 0;
    border-radius:0;
    background:transparent !important;
    color:inherit;
    font:inherit;
    font-size:16px;
    line-height:1.2;
    font-weight:700;
    cursor:pointer;
    user-select:none;
  }

  .site-header .mobile-menu-dropdown > summary::-webkit-details-marker{
    display:none;
  }

  .site-header .mobile-menu-dropdown > summary::after{
    content:"▾";
    font-size:11px;
    opacity:.72;
  }

  .site-header .mobile-menu-dropdown[open] > summary::after{
    content:"▴";
  }

  .site-header .mobile-menu-panel{
    position:absolute;
    z-index:100;
    right:0 !important;
    left:auto !important;
    top:calc(100% + 7px) !important;
    width:min(292px, calc(100vw - 36px)) !important;
    padding:8px !important;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    color:var(--text);
    box-shadow:0 14px 40px rgba(0,0,0,.14);
    white-space:normal;
  }

  .site-header .mobile-menu-panel > a,
  .site-header .mobile-submenu > summary,
  .site-header .mobile-submenu-links a{
    color:var(--text) !important;
    text-decoration:none !important;
  }

  .site-header .mobile-menu-panel > a{
    display:block;
    padding:10px 12px;
    border-radius:9px;
    font-size:17px;
    line-height:1.3;
    font-weight:600;
  }

  .site-header .mobile-submenu{
    border:0;
  }

  .site-header .mobile-submenu > summary{
    list-style:none;
    padding:10px 12px;
    border-radius:9px;
    background:transparent;
    font-size:17px;
    line-height:1.3;
    font-weight:600;
    cursor:pointer;
  }

  .site-header .mobile-submenu > summary::-webkit-details-marker{
    display:none;
  }

  .site-header .mobile-submenu > summary::after{
    content:"▾";
    float:right;
    opacity:.52;
  }

  .site-header .mobile-submenu[open] > summary::after{
    content:"▴";
  }

  .site-header .mobile-submenu-links{
    padding:2px 0 6px 10px;
  }

  .site-header .mobile-submenu-links a{
    display:block;
    padding:8px 12px;
    border-radius:8px;
    font-size:16px;
    line-height:1.3;
    font-weight:500;
  }

  .site-header .calculator-mobile-links .dropdown-group-title{
    font-size:13px;
  }

  .site-header .mobile-auth-section > a{
    font-size:17px;
  }

  .site-header .mobile-auth-caption{
    font-size:14px;
    line-height:1.35;
  }

  .site-header .mobile-menu-panel > a:hover,
  .site-header .mobile-submenu > summary:hover,
  .site-header .mobile-submenu[open] > summary,
  .site-header .mobile-submenu-links a:hover,
  .site-header .mobile-menu-panel [aria-current="page"]{
    background:var(--green-soft) !important;
    color:var(--green-dark) !important;
  }
}
