/* JobStacc v78 — cross-page spacing + responsive consistency */
:root{
  --jobstacc-page-gutter:28px;
  --jobstacc-mobile-gutter:18px;
}
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}

/* Keep each page's intended max-width, but use the same horizontal gutter. */
.dashboard-shell,.results-shell,.resource-shell,.member-shell,.profile-shell,.detail-shell,
.compare-shell,.static-shell,.guide-shell,.account-shell,.agent-shell,.onboard-shell,
.stacc-report-shell,.faq-shell,.auth-status-shell{
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--jobstacc-page-gutter)!important;
  padding-right:var(--jobstacc-page-gutter)!important;
}
.stacc-report-shell{width:100%!important}
.search-hero,.intel-hero{padding-left:var(--jobstacc-page-gutter)!important;padding-right:var(--jobstacc-page-gutter)!important}
.search-hero-inner{width:100%;margin-left:auto;margin-right:auto}

/* Header/footer edges now line up with the content rhythm site-wide. */
.site-nav,.member-nav,.onboard-nav{
  padding-left:var(--jobstacc-page-gutter)!important;
  padding-right:var(--jobstacc-page-gutter)!important;
}
.global-footer-inner,.global-footer-bottom{
  width:min(1220px,calc(100% - (var(--jobstacc-page-gutter) * 2)))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Reusable vertical rhythm for primary page shells. */
.dashboard-shell,.member-shell,.resource-shell,.agent-shell,.faq-shell{padding-top:38px}
.results-shell{padding-top:26px}
.detail-shell,.profile-shell,.compare-shell,.stacc-report-shell{padding-top:30px}

/* Avoid narrow cards touching viewport edges during the member lifecycle. */
.member-page-head,.dash-welcome,.section-head,.results-top,.ci-daily-title{min-width:0}
.member-page-head>*,.dash-welcome>*,.section-head>*,.results-top>*{min-width:0}

@media (max-width:900px){
  :root{--jobstacc-page-gutter:var(--jobstacc-mobile-gutter)}
  .dashboard-shell,.results-shell,.resource-shell,.member-shell,.profile-shell,.detail-shell,
  .compare-shell,.static-shell,.guide-shell,.account-shell,.agent-shell,.onboard-shell,
  .stacc-report-shell,.faq-shell,.auth-status-shell{
    padding-left:var(--jobstacc-mobile-gutter)!important;
    padding-right:var(--jobstacc-mobile-gutter)!important;
  }
  .search-hero,.intel-hero{padding-left:var(--jobstacc-mobile-gutter)!important;padding-right:var(--jobstacc-mobile-gutter)!important}
  .site-nav,.member-nav,.onboard-nav{
    padding-left:var(--jobstacc-mobile-gutter)!important;
    padding-right:var(--jobstacc-mobile-gutter)!important;
  }
  .global-footer-inner,.global-footer-bottom{width:calc(100% - 36px)!important}
  .dashboard-shell,.member-shell,.resource-shell,.agent-shell,.faq-shell{padding-top:24px!important}
  .results-shell,.detail-shell,.profile-shell,.compare-shell,.stacc-report-shell{padding-top:22px!important}
  .dash-welcome,.member-page-head,.section-head,.results-top{gap:12px;align-items:flex-start}
  .dash-welcome h1,.member-page-head h1{font-size:clamp(28px,8vw,36px)}
}

@media (max-width:640px){
  :root{--jobstacc-mobile-gutter:16px}
  .site-nav,.member-nav,.onboard-nav{padding-left:16px!important;padding-right:16px!important}
  .global-footer-inner,.global-footer-bottom{width:calc(100% - 32px)!important}
  .searchbar{width:100%;max-width:none}
  .results-shell{gap:16px!important}
  .filter-panel{border-radius:14px}
  .dash-card,.summary-card,.job-card,.ci-insight-card{max-width:100%}
}


/* v78.2 — facet clarity + auth/about lifecycle polish */
.facet-context{
  display:block;
  margin:6px 0 9px;
  color:#7a879b;
  font-size:10px;
  line-height:1.45;
  font-weight:500;
}

/* Authentication should feel like the same product, not a full-bleed splash page. */
.auth-page{background:#f5f8fb}
.auth-page .auth-shell{
  width:min(1180px,calc(100% - 56px));
  min-height:auto;
  margin:36px auto 48px;
  grid-template-columns:minmax(320px,.85fr) minmax(420px,1.15fr);
  background:#fff;
  border:1px solid #dde6ee;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 18px 55px rgba(7,20,38,.08);
}
.auth-page .auth-brand{
  min-height:640px;
  padding:42px;
  position:relative;
  align-content:space-between;
}
.auth-page .auth-brand>a{display:inline-flex;align-self:start}
.auth-page .auth-brand img{
  position:static!important;
  width:170px!important;
  height:auto!important;
  max-width:70%;
  object-fit:contain;
}
.auth-page .auth-brand>div{align-self:end}
.auth-page .auth-brand h1{font-size:clamp(38px,4.2vw,58px);line-height:1.05;margin:22px 0}
.auth-page .auth-brand p{font-size:14px;line-height:1.7}
.auth-page .auth-form{padding:56px 48px}
.auth-page .auth-card{
  width:min(460px,100%);
  padding:30px;
  border:1px solid #e0e7ef;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 32px rgba(7,20,38,.06);
}
.auth-page .auth-card h2{margin:8px 0 10px}
.auth-page .auth-card>p{font-size:12px;line-height:1.6}
.auth-page .auth-card label{font-size:11px}
.auth-page .auth-card input{font:inherit;min-height:46px}

/* About page uses the same card/grid rhythm as the current product pages. */
.about-page{background:#f5f8fb}
.about-page .static-shell{max-width:1180px;padding-top:44px;padding-bottom:64px}
.about-page .static-hero{
  padding:40px;
  border:1px solid #dce7ef;
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff 0%,#f0fbf8 100%);
  margin-bottom:24px;
}
.about-page .static-hero h1{font-size:clamp(38px,5vw,64px);line-height:1.04;max-width:820px;margin:12px 0 18px}
.about-page .static-hero p{max-width:880px;font-size:14px;line-height:1.75}
.about-page .company-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 24px}
.about-page .company-facts article,
.about-page .static-card{
  border:1px solid #dce7ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(7,20,38,.035);
}
.about-page .company-facts article{padding:22px}
.about-page .static-card{padding:28px;margin:16px 0}
.about-page .static-card h2{font-size:22px;margin-top:0}
.about-page .static-card p,.about-page .static-card li{font-size:13px;line-height:1.75}

@media (max-width:850px){
  .auth-page .auth-shell{width:calc(100% - 32px);grid-template-columns:1fr;margin:20px auto 32px}
  .auth-page .auth-brand{display:none!important}
  .auth-page .auth-form{padding:28px 18px}
  .auth-page .auth-card{padding:24px 20px}
  .about-page .company-facts{grid-template-columns:1fr}
  .about-page .static-hero{padding:26px 22px}
  .about-page .static-card{padding:22px}
}


/* v78.4 — final lifecycle shell cleanup */
:root{
  --jobstacc-content-max:1220px;
  --jobstacc-reading-max:1180px;
}

/* One horizontal rhythm across public, member, intelligence and utility pages. */
.dashboard-shell,.results-shell,.resource-shell,.member-shell,.profile-shell,.detail-shell,
.compare-shell,.static-shell,.guide-shell,.account-shell,.agent-shell,.onboard-shell,
.stacc-report-shell,.faq-shell,.auth-status-shell,.intel-page{
  width:min(100%,var(--jobstacc-content-max))!important;
  max-width:var(--jobstacc-content-max)!important;
  box-sizing:border-box!important;
}
.static-shell,.guide-shell,.faq-shell{max-width:var(--jobstacc-reading-max)!important}
.intel-page{margin-left:auto!important;margin-right:auto!important;padding-left:var(--jobstacc-page-gutter)!important;padding-right:var(--jobstacc-page-gutter)!important}

/* Keep major page headers aligned with the cards beneath them. */
.member-page-head,.section-head,.resource-hero,.static-hero,.guide-hero,.account-page .member-page-head,
.profile-hero,.agent-hero,.compare-hero,.detail-hero{
  margin-left:0!important;
  margin-right:0!important;
}

/* Auth lifecycle: compact JobStacc card instead of a full-height splash screen. */
.auth-page{min-height:100vh;background:#f5f8fb!important}
.auth-page .auth-shell{
  display:grid!important;
  grid-template-columns:1fr!important;
  width:min(560px,calc(100% - 40px))!important;
  max-width:560px!important;
  min-height:0!important;
  margin:34px auto 46px!important;
  border:1px solid #dce6ee!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 18px 48px rgba(7,20,38,.075)!important;
  overflow:hidden!important;
}
.auth-page .auth-brand{
  display:block!important;
  min-height:0!important;
  padding:26px 30px 6px!important;
  background:#fff!important;
  color:#0b2340!important;
}
.auth-page .auth-brand>a{display:inline-flex!important;align-items:center!important}
.auth-page .auth-brand img{
  position:static!important;
  display:block!important;
  width:154px!important;
  max-width:52vw!important;
  height:auto!important;
  filter:none!important;
  object-fit:contain!important;
}
.auth-page .auth-brand>div{display:none!important}
.auth-page .auth-form{padding:8px 30px 32px!important;background:#fff!important}
.auth-page .auth-card{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
.auth-page .auth-card .eyebrow{margin-top:8px}
.auth-page .auth-card h2{font-size:clamp(25px,5vw,32px)!important;letter-spacing:-.7px!important}
.auth-page .auth-card>p{font-size:12px!important;line-height:1.65!important;color:#66778b!important}
.auth-page .auth-card label{gap:7px!important;margin-top:14px!important}
.auth-page .auth-card input{width:100%!important;min-height:48px!important;border-radius:10px!important}
.auth-page .auth-card .btn{min-height:46px!important;margin-top:16px!important}
.auth-page .global-footer{margin-top:0!important}

/* About/company page uses the same content density and card system as product pages. */
.about-page .static-shell{padding-top:34px!important;padding-bottom:56px!important}
.about-page .static-hero{margin-bottom:18px!important}
.about-page .company-facts{gap:14px!important;margin-bottom:18px!important}
.about-page .static-card{margin:14px 0!important}

/* Footer and header edge alignment. */
.site-nav,.member-nav,.onboard-nav{max-width:100%!important}
.global-footer{margin-top:52px!important}
.global-footer-nav a{line-height:1.5!important}

/* Mobile lifecycle cleanup. */
@media(max-width:760px){
  :root{--jobstacc-page-gutter:16px!important;--jobstacc-mobile-gutter:16px!important}
  .dashboard-shell,.results-shell,.resource-shell,.member-shell,.profile-shell,.detail-shell,
  .compare-shell,.static-shell,.guide-shell,.account-shell,.agent-shell,.onboard-shell,
  .stacc-report-shell,.faq-shell,.auth-status-shell,.intel-page{
    width:100%!important;
    max-width:100%!important;
    padding-left:16px!important;
    padding-right:16px!important;
  }
  .search-hero,.intel-hero{padding-left:16px!important;padding-right:16px!important}
  .site-nav,.member-nav,.onboard-nav{padding-left:14px!important;padding-right:14px!important}
  .auth-page .auth-shell{width:calc(100% - 28px)!important;margin:16px auto 28px!important;border-radius:18px!important}
  .auth-page .auth-brand{display:block!important;padding:22px 22px 5px!important}
  .auth-page .auth-brand img{width:138px!important}
  .auth-page .auth-form{padding:8px 22px 26px!important}
  .auth-page .auth-card{padding:0!important}
  .about-page .static-shell{padding-top:22px!important;padding-bottom:38px!important}
  .about-page .static-hero{padding:24px 20px!important;border-radius:18px!important}
  .about-page .static-hero h1{font-size:clamp(34px,10vw,46px)!important}
  .about-page .company-facts article,.about-page .static-card{border-radius:15px!important}
  .global-footer{margin-top:38px!important}
}

@media(max-width:390px){
  .auth-page .auth-shell{width:calc(100% - 20px)!important}
  .auth-page .auth-brand{padding-left:18px!important;padding-right:18px!important}
  .auth-page .auth-form{padding-left:18px!important;padding-right:18px!important}
}
