
/* R23_RESEARCH_CTA_MOBILEFIX — research CTA integration + mobile/desktop remediation + QA hardening */

/* Shared research addition styles */
body.v20d2c-public .research-release-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
body.v20d2c-public .research-release-grid .research-portal-card{
  height:100%;
}
body.v20d2c-public .research-portal-card__meta{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body.v20d2c-public .research-tag{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:#eef5fb;
  color:#355169;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.01em;
}
body.v20d2c-public .research-callout{
  padding:22px 24px;
  border-radius:24px;
  border:1px solid #dce8f2;
  background:linear-gradient(180deg,#ffffff 0%,#f4f8fc 100%);
  box-shadow:0 18px 44px rgba(9,20,36,.06);
}
body.v20d2c-public .research-callout h3,
body.v20d2c-public .research-callout h4{
  margin:0 0 10px;
}
body.v20d2c-public .research-callout p:last-child{
  margin-bottom:0;
}
body.v20d2c-public .research-proof-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
body.v20d2c-public .research-proof-card{
  padding:18px 18px 20px;
  border-radius:22px;
  background:linear-gradient(180deg,#081527 0%,#0f223d 100%);
  color:#eff7ff;
  box-shadow:0 18px 46px rgba(4,12,26,.25);
}
body.v20d2c-public .research-proof-card small{
  display:block;
  color:#95aec9;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:8px;
}
body.v20d2c-public .research-proof-card strong{
  display:block;
  color:#ffffff;
  font-size:clamp(1.35rem,2.2vw,1.85rem);
  line-height:1.05;
  margin-bottom:8px;
}
body.v20d2c-public .research-proof-card span{
  display:block;
  color:#d7e4f3;
  line-height:1.55;
  font-size:.96rem;
}
body.v20d2c-public .research-numbered-list,
body.v20d2c-public .research-note-list{
  margin:16px 0 0;
  padding-left:1.25rem;
  display:grid;
  gap:10px;
  color:#324559;
}
body.v20d2c-public .research-numbered-list li,
body.v20d2c-public .research-note-list li{
  line-height:1.62;
}
body.v20d2c-public .research-source-list{
  display:grid;
  gap:14px;
  margin-top:18px;
}
body.v20d2c-public .research-source-item{
  padding:16px 18px;
  border-radius:20px;
  border:1px solid #d9e5ef;
  background:#fff;
}
body.v20d2c-public .research-source-item strong{
  display:block;
  margin-bottom:6px;
}
body.v20d2c-public .research-source-item p{
  margin:0;
}
body.v20d2c-public .research-inline-link{
  color:#0f4860;
  font-weight:700;
}
body.v20d2c-public .research-summary-grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.v20d2c-public .research-portal-card.r23-highlight{
  border:2px solid rgba(23,101,99,.22);
  box-shadow:0 18px 38px rgba(8,24,42,.10);
}
body.v20d2c-public .research-portal-card.r23-highlight .research-portal-card__eyebrow{
  color:#0f6863;
}
body.v20d2c-public .research-portal-card.r23-highlight .research-portal-card__link{
  color:#0b4f69;
}
body.v20d2c-public .research-portal-page .page-intro .lead{
  max-width:78ch;
}

/* Desktop header consistency fix */
@media (min-width:1181px){
  body.v20d2c-public .site-header--v20d2c .container.bar,
  body.r15-utility-page .site-header--v20d2c .container.bar{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    gap:22px !important;
  }
  body.v20d2c-public .site-header--v20d2c .site-header__desktop,
  body.r15-utility-page .site-header--v20d2c .site-header__desktop{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:18px !important;
    width:100% !important;
    min-width:0 !important;
  }
  body.v20d2c-public .site-header--v20d2c .desktop-nav,
  body.r15-utility-page .site-header--v20d2c .desktop-nav{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:clamp(14px,1.8vw,24px) !important;
    min-width:0 !important;
    white-space:nowrap !important;
  }
  body.v20d2c-public .site-header--v20d2c .site-header__utility,
  body.r15-utility-page .site-header--v20d2c .site-header__utility{
    display:flex !important;
    align-items:center !important;
    justify-self:end !important;
    gap:12px !important;
    white-space:nowrap !important;
  }
}

/* Research portal right-edge overflow fix */
body.v20d2c-public.research-portal-page,
body.v20d2c-public.research-portal-page main{
  overflow-x:clip !important;
}
body.v20d2c-public .research-library-layout,
body.v20d2c-public .research-library-layout > *,
body.v20d2c-public .research-library-sidebar,
body.v20d2c-public .research-library-sidebar__inner,
body.v20d2c-public .research-library-main,
body.v20d2c-public .research-cluster-card,
body.v20d2c-public .research-portal-grid,
body.v20d2c-public .research-portal-grid--cards,
body.v20d2c-public .research-portal-card,
body.v20d2c-public .research-release-grid{
  min-width:0 !important;
  max-width:100% !important;
}
body.v20d2c-public .research-library-layout{
  grid-template-columns:minmax(260px,280px) minmax(0,1fr) !important;
  align-items:start !important;
  gap:24px !important;
}
body.v20d2c-public .research-library-main{
  display:grid;
  gap:22px;
}
body.v20d2c-public .research-cluster-card,
body.v20d2c-public .research-portal-card{
  overflow:visible !important;
}
body.v20d2c-public .research-portal-grid,
body.v20d2c-public .research-portal-grid--cards{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
}
@media (max-width:1280px){
  body.v20d2c-public .research-portal-grid,
  body.v20d2c-public .research-portal-grid--cards,
  body.v20d2c-public .research-release-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:980px){
  body.v20d2c-public .research-library-layout{
    grid-template-columns:1fr !important;
  }
  body.v20d2c-public .research-library-sidebar__inner{
    position:static !important;
  }
}
@media (max-width:760px){
  body.v20d2c-public .research-portal-grid,
  body.v20d2c-public .research-portal-grid--cards,
  body.v20d2c-public .research-release-grid,
  body.v20d2c-public .research-proof-strip,
  body.v20d2c-public .research-summary-grid{
    grid-template-columns:1fr !important;
  }
  body.v20d2c-public .research-cluster-card{
    padding:20px !important;
  }
}

/* Mobile diagram visibility and full-screen containment */
@media (max-width:767px){
  body.v20d2c-public .diagram-layout-visual,
  body.v20d2c-public .r12-diagram-shell,
  body.v20d2c-public .authority-network-card,
  body.v20d2c-public .authority-network-stage,
  body.v20d2c-public .authority-network-picture{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
  }
  body.v20d2c-public .diagram-layout-visual,
  body.v20d2c-public .r12-diagram-shell{
    padding:12px !important;
    border-radius:24px !important;
  }
  body.v20d2c-public .authority-network-card{
    padding:14px !important;
    border-radius:24px !important;
  }
  body.v20d2c-public .authority-network-stage,
  body.v20d2c-public .authority-network-stage--hero-wide,
  body.v20d2c-public .authority-network-stage--scorecard-wide,
  body.v20d2c-public .authority-network-stage--hero,
  body.v20d2c-public .authority-network-stage--mobile-wide{
    aspect-ratio:auto !important;
    min-height:calc(100svh - var(--u-fixed-header-space, 82px) - 32px) !important;
    height:auto !important;
    display:grid !important;
    place-items:center !important;
    padding:10px !important;
  }
  body.v20d2c-public .authority-network-asset,
  body.v20d2c-public .authority-network-picture img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:calc(100svh - var(--u-fixed-header-space, 82px) - 76px) !important;
    object-fit:contain !important;
    margin:0 auto !important;
  }
  body.v20d2c-public .r20-mobile-proof-head h3,
  body.v20d2c-public .r18-proof-head h3{
    color:#ffffff !important;
  }
  body.v20d2c-public .r20-mobile-proof-head p,
  body.v20d2c-public .r18-proof-head p{
    color:#d9e7f6 !important;
  }
  body.v20d2c-public .r20-mobile-proof-head .r20-definition,
  body.v20d2c-public .r18-proof-head .r18-definition,
  body.v20d2c-public .r12-subline{
    color:#edf5ff !important;
  }
}

/* Utility-page mobile cut-off fix */
body.r15-utility-page,
body.r15-utility-page main.r15-utility-main,
body.r15-utility-page .r15-locked-center{
  overflow:visible !important;
}
body.r15-utility-page .r15-locked-center{
  min-height:auto !important;
  padding:24px 18px calc(32px + env(safe-area-inset-bottom)) !important;
  align-items:flex-start !important;
}
body.r15-utility-page .r15-redirect-card,
body.r15-utility-page .r15-signin-card,
body.r15-utility-page .r15-briefing-card{
  max-height:none !important;
  overflow:visible !important;
}
@media (max-width:767px){
  body.r15-utility-page .r15-locked-center{
    padding-top:18px !important;
    padding-bottom:34px !important;
  }
  body.r15-utility-page .r15-redirect-card,
  body.r15-utility-page .r15-signin-card,
  body.r15-utility-page .r15-briefing-card{
    width:min(100%, 560px) !important;
    margin:0 auto !important;
  }
  body.r15-utility-page .actions{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  body.r15-utility-page .actions .btn{
    width:100% !important;
  }
}

/* Home/benchmark polish */
body.v20d2c-public .r19-summary-proofline a{
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
body.v20d2c-public .r16-commercial-motion .r12-actions{
  display:none !important;
}
body.v20d2c-public .enterprise-capture-list li{
  line-height:1.6;
}
