/* v2.11.02 — home content harmonisation, compact pricing flow and portal action consistency */

/* Home-page additions now inherit the established Cashbook visual rhythm. */
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance){
  padding-block:var(--pad-y,clamp(64px,8vw,116px));
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-heading{
  max-width:780px;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-kicker{
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:var(--blue,#0078d7)!important;
  font-size:12.5px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.16em;
  text-transform:uppercase;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-kicker::before{
  width:24px;
  height:2px;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-heading h2{
  max-width:22ch;
  margin-top:16px;
  color:var(--text,#0f2742);
  font-size:clamp(29px,4.1vw,46px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.028em;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-heading p{
  max-width:58ch;
  margin-top:18px;
  color:var(--text-mut,#566782);
  font-size:clamp(17px,1.85vw,19px);
  line-height:1.6;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-grid{
  gap:22px;
  margin-top:46px;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-card{
  display:flex;
  flex-direction:column;
  min-height:280px;
  padding:28px;
  border:1px solid var(--line,#e2eaf4);
  border-radius:var(--r,18px);
  background:var(--card,#fff);
  box-shadow:none;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body[data-page="home"] #cb91SectorGuidance .cb91-card{
  min-height:286px;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-card:hover{
  transform:translateY(-4px);
  border-color:#cddfec;
  box-shadow:0 24px 46px -28px rgba(15,39,66,.35);
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-card h3{
  margin-top:18px;
  color:var(--text,#0f2742);
  font-size:19px;
  font-weight:700;
  line-height:1.18;
  letter-spacing:-.01em;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-card p{
  margin-top:8px;
  color:var(--text-mut,#566782);
  font-size:15px;
  line-height:1.6;
}
body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-card-link{
  margin-top:auto;
  padding-top:20px;
  color:var(--blue,#0078d7);
  font-size:14.5px;
  font-weight:700;
}
body[data-page="home"] .cb91-home-tools .cb91-tool-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  font-size:13px;
}
body[data-page="home"] #cb91SectorGuidance .cb91-card small{
  color:var(--blue,#0078d7);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.14em;
}

/* Pricing page: treat the two closing calls-to-action as one continuous group. */
body[data-page="pricing-decisions"] .cb91-decisions-process{
  padding-bottom:28px;
}
body[data-page="pricing-decisions"] .cb91-decisions-context{
  padding-top:0;
  padding-bottom:72px;
}
body[data-page="pricing-decisions"] .cb91-decisions-context .cb91-callout{
  margin-top:0;
}

/* Portal: every primary step action uses the same desktop width. */
@media (min-width:1121px){
  body[data-page="portal"][data-portal-view="form"] .workspace-step-actions .workspace-next,
  body[data-page="portal"][data-portal-view="form"] .workspace-step-actions.workspace-step-actions--first .workspace-next,
  body[data-page="portal"][data-portal-view="form"] .send-panel.workspace-step > #portalSend{
    width:380px!important;
    min-width:380px!important;
    max-width:380px!important;
  }
  body[data-page="portal"][data-portal-view="form"] .send-panel.workspace-step > #portalSend{
    display:flex;
    margin-left:auto;
  }
}
@media (max-width:1120px){
  body[data-page="portal"][data-portal-view="form"] .send-panel.workspace-step > #portalSend{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}

@media (max-width:760px){
  body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-grid{
    margin-top:30px;
  }
  body[data-page="home"] :is(.cb91-home-tools,#cb91SectorGuidance) .cb91-card,
  body[data-page="home"] #cb91SectorGuidance .cb91-card{
    min-height:0;
    padding:24px;
  }
  body[data-page="pricing-decisions"] .cb91-decisions-process{
    padding-bottom:20px;
  }
  body[data-page="pricing-decisions"] .cb91-decisions-context{
    padding-bottom:52px;
  }
}
