/* DSS 17A4 CAPACITY NETLIFY VISUAL SHELL V1
   Visual/navigation layer only.
   Tally remains the assessment/result/report engine. */

.capacity-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#F7F2EA;
  color:#222222;
}

.capacity-main{
  position:relative;
  flex:1 0 auto;
  overflow:hidden;
  background:
    linear-gradient(180deg,#F9F5EE 0%,#F7F2EA 100%);
}

.capacity-main::before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  right:0;
  width:min(59vw,980px);
  height:100%;
  min-height:620px;
  background-image:
    linear-gradient(
      90deg,
      rgba(249,245,238,1) 0%,
      rgba(249,245,238,.82) 15%,
      rgba(249,245,238,.48) 47%,
      rgba(249,245,238,.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(249,245,238,.12) 0%,
      rgba(249,245,238,.28) 70%,
      rgba(249,245,238,.84) 100%
    ),
    url("/assets/studio-intelligence-home-bg.jpg");
  background-size:cover;
  background-position:center right;
  background-repeat:no-repeat;
  opacity:.50;
  pointer-events:none;
}

.capacity-page-inner{
  position:relative;
  z-index:1;
  width:min(1390px,calc(100% - 64px));
  margin:0 auto;
  padding:34px 0 54px;
}

.capacity-back{
  display:inline-flex;
  align-items:center;
  margin:0 0 22px;
  color:#193C36;
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.4;
  font-weight:700;
  text-decoration:none;
}

.capacity-back:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

.capacity-back:focus-visible{
  outline:2px solid #B6AA82;
  outline-offset:4px;
  border-radius:4px;
}

.capacity-shell{
  width:100%;
  display:grid;
  grid-template-columns:minmax(350px,38fr) minmax(0,62fr);
  align-items:start;
  background:rgba(255,255,255,.965);
  border:1px solid #DDD8CF;
  border-top:5px solid #B6AA82;
  border-radius:17px;
  box-shadow:0 18px 50px rgba(49,41,27,.13);
  overflow:visible;
}

.capacity-intro{
  min-width:0;
  padding:42px 40px 44px;
}

.capacity-intro-inner{
  position:sticky;
  top:26px;
}

.capacity-tool-line{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:24px;
}

.capacity-tool-icon{
  width:72px;
  height:72px;
  flex:0 0 72px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#E8E2CE;
  color:#193C36;
}

.capacity-tool-icon svg{
  width:41px;
  height:41px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.capacity-eyebrow{
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:12px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#9C7C31;
}

.capacity-intro h1{
  max-width:500px;
  margin:0;
  font-family:Cambria,Georgia,serif;
  font-size:clamp(45px,3.3vw,61px);
  line-height:1.00;
  letter-spacing:-.025em;
  font-weight:400;
  color:#193C36;
}

.capacity-lead{
  max-width:500px;
  margin:24px 0 0;
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:18px;
  line-height:1.55;
  color:#343A37;
}

.capacity-benefit-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:11px;
  margin-top:28px;
}

.capacity-benefit-card{
  min-height:74px;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  border-radius:10px;
  background:#193C36;
  color:#FFFFFF;
  box-shadow:0 7px 18px rgba(25,60,54,.10);
}

.capacity-benefit-card strong{
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.025em;
}

.capacity-benefit-card span{
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:15px;
  line-height:1.45;
  font-weight:400;
  color:#F6F6F4;
}

.capacity-privacy{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:19px;
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  color:#7D6A3E;
}

.capacity-lock{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.capacity-lock svg{
  width:17px;
  height:17px;
  stroke:#9B7B33;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.capacity-engine{
  min-width:0;
  padding:38px 34px 44px;
  border-left:1px solid #E4E0D7;
}

.capacity-engine-top{
  min-height:32px;
  margin:0 5px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  color:#193C36;
}

.capacity-engine-top span:first-child{
  font-size:15px;
  line-height:1.3;
  font-weight:800;
}

.capacity-engine-top span:last-child{
  font-size:13px;
  line-height:1.3;
  font-weight:600;
  color:#7A7060;
}

.capacity-tally-frame{
  width:100%;
  min-width:0;
  padding:10px 12px 14px;
  background:rgba(255,255,255,.92);
  border:1px solid #E3DED5;
  border-radius:13px;
  box-shadow:0 9px 24px rgba(55,48,37,.08);
}

#dss-capacity-tally{
  display:block;
  width:100%;
  min-height:720px;
  border:0;
  background:transparent;
}

@media(max-width:1050px){
  .capacity-page-inner{
    width:min(100% - 40px,1180px);
  }

  .capacity-shell{
    grid-template-columns:1fr;
  }

  .capacity-intro{
    padding:34px 31px 31px;
  }

  .capacity-intro-inner{
    position:relative;
    top:auto;
  }

  .capacity-intro h1{
    max-width:720px;
    font-size:50px;
  }

  .capacity-lead{
    max-width:740px;
  }

  .capacity-benefit-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .capacity-engine{
    border-left:0;
    border-top:1px solid #E4E0D7;
    padding:30px 27px 38px;
  }
}

@media(max-width:760px){
  .capacity-main::before{
    width:100%;
    min-height:400px;
    height:460px;
    opacity:.36;
  }

  .capacity-page-inner{
    width:min(100% - 28px,1180px);
    padding:25px 0 42px;
  }

  .capacity-back{
    margin-bottom:17px;
    font-size:13px;
  }

  .capacity-intro{
    padding:28px 22px 25px;
  }

  .capacity-tool-line{
    gap:14px;
    margin-bottom:19px;
  }

  .capacity-tool-icon{
    width:62px;
    height:62px;
    flex-basis:62px;
  }

  .capacity-tool-icon svg{
    width:35px;
    height:35px;
  }

  .capacity-eyebrow{
    font-size:11px;
    letter-spacing:.09em;
  }

  .capacity-intro h1{
    font-size:41px;
  }

  .capacity-lead{
    margin-top:18px;
    font-size:16px;
  }

  .capacity-benefit-grid{
    grid-template-columns:1fr;
    gap:9px;
    margin-top:23px;
  }

  .capacity-benefit-card{
    min-height:68px;
    padding:14px 16px;
  }

  .capacity-benefit-card strong{
    font-size:15px;
  }

  .capacity-benefit-card span{
    font-size:14px;
  }

  .capacity-engine{
    padding:24px 16px 30px;
  }

  .capacity-engine-top{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
    margin-left:3px;
  }

  .capacity-tally-frame{
    padding:4px 3px 8px;
    border-radius:11px;
  }

  #dss-capacity-tally{
    min-height:690px;
  }
}

@media(max-width:520px){
  .capacity-page-inner{
    width:min(100% - 20px,1180px);
  }

  .capacity-shell{
    border-radius:14px;
  }

  .capacity-intro{
    padding:25px 18px 23px;
  }

  .capacity-intro h1{
    font-size:36px;
  }

  .capacity-tool-icon{
    width:56px;
    height:56px;
    flex-basis:56px;
  }

  .capacity-engine{
    padding:21px 9px 26px;
  }
}

/* DSS 17A4 CAPACITY SCROLL REPORT CTA V2 FIXED
   1. Sticky left summary during long questions.
   2. Full-width report state when Tally becomes very tall.
   3. Working DSS-pink PMR CTA displayed below the Full Capacity Report. */

.capacity-main{
  overflow:visible !important;
}

.capacity-shell{
  align-items:start !important;
  overflow:visible !important;
}

.capacity-intro{
  position:sticky !important;
  top:24px !important;
  align-self:start !important;
  height:max-content !important;
}

.capacity-intro-inner{
  position:relative !important;
  top:auto !important;
}

.capacity-report-cta-wrap{
  display:none;
  width:100%;
  margin-top:22px;
}

.capacity-report-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 30px;
  border:0;
  border-radius:0;
  background:#E80B6F;
  color:#FFFFFF;
  text-decoration:none;
  font-family:"Pontano Sans","Segoe UI",Arial,Helvetica,sans-serif;
  font-size:17px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:0;
  box-shadow:none;
}

.capacity-report-cta:hover{
  background:#D30A65;
  color:#FFFFFF;
}

.capacity-report-cta:focus-visible{
  outline:2px solid #B6AA82;
  outline-offset:4px;
}

/* Full Capacity Report:
   when the Tally iframe expands beyond the report threshold,
   remove the left assessment intro and let the report use the page. */

.capacity-report-mode .capacity-page-inner{
  width:min(1500px,calc(100% - 64px)) !important;
}

.capacity-report-mode .capacity-shell{
  grid-template-columns:1fr !important;
}

.capacity-report-mode .capacity-intro{
  display:none !important;
}

.capacity-report-mode .capacity-engine{
  width:100% !important;
  padding:34px 38px 44px !important;
  border-left:0 !important;
}

.capacity-report-mode .capacity-engine-top{
  display:none !important;
}

.capacity-report-mode .capacity-tally-frame{
  width:100% !important;
  padding:12px 14px 16px !important;
}

.capacity-report-mode #dss-capacity-tally{
  width:100% !important;
}

.capacity-report-mode .capacity-report-cta-wrap{
  display:flex !important;
  justify-content:flex-start;
}

@media(max-width:1050px){
  .capacity-intro{
    position:relative !important;
    top:auto !important;
  }

  .capacity-report-mode .capacity-page-inner{
    width:min(100% - 40px,1500px) !important;
  }
}

@media(max-width:760px){
  .capacity-report-mode .capacity-page-inner{
    width:min(100% - 28px,1500px) !important;
  }

  .capacity-report-mode .capacity-engine{
    padding:24px 16px 30px !important;
  }

  .capacity-report-cta{
    width:100%;
    min-height:52px;
    padding:0 18px;
    font-size:16px;
    text-align:center;
  }
}

@media(max-width:520px){
  .capacity-report-mode .capacity-page-inner{
    width:min(100% - 20px,1500px) !important;
  }
}

/* DSS 17A4 OUTER CTA HACKS REMOVED V5 */
/* DSS 17A4 V15 BACK TO TOP START */
.dss-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease,
    background-color 160ms ease;
}

.dss-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dss-back-to-top:hover {
  background: #193C36;
}

.dss-back-to-top:focus-visible {
  outline: 3px solid #B6AA82;
  outline-offset: 3px;
}

.dss-back-to-top svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.dss-back-to-top path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .dss-back-to-top {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .dss-back-to-top svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dss-back-to-top {
    transition: none;
  }
}
/* DSS 17A4 V15 BACK TO TOP END */
/* DSS 17A4 V16 SNAPSHOT REPORT FULL WIDTH START */

/* Both customer result states deserve the full page:
   Page 12 = Basic Snapshot
   Page 17 = Full Capacity Report */

.capacity-result-mode .capacity-page-inner {
  width: min(1500px, calc(100% - 64px)) !important;
}

.capacity-result-mode .capacity-shell {
  grid-template-columns: 1fr !important;
}

.capacity-result-mode .capacity-intro {
  display: none !important;
}

.capacity-result-mode .capacity-engine {
  width: 100% !important;
  padding: 34px 38px 44px !important;
  border-left: 0 !important;
  border-top: 0 !important;
}

.capacity-result-mode .capacity-engine-top {
  display: none !important;
}

.capacity-result-mode .capacity-tally-frame {
  width: 100% !important;
  padding: 12px 14px 16px !important;
}

.capacity-result-mode #dss-capacity-tally {
  width: 100% !important;
}

/* Keep the transition visually calm when the Tally page changes. */
.capacity-shell,
.capacity-engine,
.capacity-tally-frame {
  transition:
    width 160ms ease,
    padding 160ms ease,
    border-color 160ms ease;
}

@media (max-width: 1050px) {
  .capacity-result-mode .capacity-page-inner {
    width: min(100% - 40px, 1500px) !important;
  }
}

@media (max-width: 760px) {
  .capacity-result-mode .capacity-page-inner {
    width: min(100% - 28px, 1500px) !important;
  }

  .capacity-result-mode .capacity-engine {
    padding: 24px 16px 30px !important;
  }
}

@media (max-width: 520px) {
  .capacity-result-mode .capacity-page-inner {
    width: min(100% - 20px, 1500px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capacity-shell,
  .capacity-engine,
  .capacity-tally-frame {
    transition: none !important;
  }
}

/* DSS 17A4 V16 SNAPSHOT REPORT FULL WIDTH END */
/* DSS 17A5.20 CAPACITY PROGRESS V2 */

.dss-capacity-progress {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 14px;
  padding: 0 4px;
}

.dss-capacity-progress[hidden] {
  display: none !important;
}

.dss-capacity-progress__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.dss-capacity-progress__label,
.dss-capacity-progress__count {
  font-family: "Pontano Sans", Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.dss-capacity-progress__label {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #193C36;
}

.dss-capacity-progress__count {
  flex: 0 0 auto;
  font-weight: 700;
  color: #8A7548;
}

.dss-capacity-progress__track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 60, 54, 0.12);
}

.dss-capacity-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #193C36;
  transition: width 220ms ease;
}

@media (max-width: 640px) {
  .dss-capacity-progress {
    margin-bottom: 12px;
    padding: 0;
  }

  .dss-capacity-progress__row {
    margin-bottom: 7px;
  }

  .dss-capacity-progress__label,
  .dss-capacity-progress__count {
    font-size: 10px;
  }
}
