/* CERTAINUTIES recent-picks expander */
.prediction-list-collapsed .prediction-card.prediction-overflow{display:none!important}
.prediction-expand-wrap{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:22px}
.prediction-expand-label{
  font-size:12px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;
  white-space:nowrap;color:inherit;text-shadow:0 2px 10px rgba(0,0,0,.25);
}
.prediction-expand-wrap.is-in-section{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:999;
  margin:0;
  pointer-events:none;
}
.prediction-expand-wrap.is-in-section .prediction-expand-btn{
  pointer-events:auto;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.prediction-expand-btn{
  width:56px;height:56px;min-width:56px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.24);
  background:rgba(20,32,70,.88);color:inherit;display:inline-flex;align-items:center;
  justify-content:center;cursor:pointer;font:900 30px/1 system-ui;transition:transform .2s ease,background .2s ease;
}
.prediction-expand-btn .arrow{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;line-height:1;
  transform-origin:center center;
  position:relative;top:-2px;
  transition:transform .25s ease;
}
.prediction-expand-btn:hover{background:rgba(30,48,98,.96);transform:translateY(2px)}
.prediction-expand-btn[aria-expanded="true"] .arrow{transform:rotate(180deg)}
.prediction-expand-btn[hidden]{display:none}


.join-x-btn{
  flex-basis:100%;
  width:max-content;
  max-width:100%;
  justify-content:center;
  margin-top:2px;
  border-color:rgba(255,255,255,.26);
}

/* X link sizing refinements */
.join-x-btn{
  flex-basis:auto;
  width:auto;
  max-width:none;
  padding:12px 22px;
  margin-top:0;
  justify-content:center;
  align-self:center;
}
.footer-x-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  padding:9px 15px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  white-space:nowrap;
}


.hero-certainu-name{
  font-size:1.12em;
  font-weight:900;
  letter-spacing:.01em;
}


footer .socials .footer-x-link{
  display:inline-flex !important;
  flex:0 0 auto !important;
  width:fit-content !important;
  min-width:0 !important;
  padding:7px 11px !important;
  margin:0 !important;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
footer .socials{
  display:flex;
  align-items:center;
}


/* Responsive hero-copy positioning:
   keep the headline as far left as practical so it covers less of CERTAINU artwork. */
.hero-copy-wrap{
  left:clamp(10px, calc((100vw - 1680px) / 2), 72px) !important;
  right:auto !important;
  width:clamp(300px, 27vw, 410px) !important;
  max-width:410px !important;
}
@media (min-width:1500px){
  .hero-copy-wrap{
    left:clamp(18px, calc((100vw - 1780px) / 2), 54px) !important;
    width:min(25vw,400px) !important;
  }
}
@media (min-width:1100px) and (max-width:1499px){
  .hero-copy-wrap{
    left:clamp(10px, 1.25vw, 18px) !important;
    width:min(29vw,390px) !important;
  }
}
@media (min-width:901px) and (max-width:1099px){
  .hero-copy-wrap{
    left:10px !important;
    width:min(34vw,360px) !important;
  }
}
@media (max-width:900px){
  .hero-copy-wrap{
    left:clamp(14px,3vw,24px) !important;
    right:auto !important;
    width:min(58vw,500px) !important;
  }
}
@media (max-width:600px){
  .hero-copy-wrap{
    left:14px !important;
    width:calc(100% - 28px) !important;
    max-width:520px !important;
  }
}


/* Clearer homepage artwork: reduce the overlay/veil behind hero text. */
.hero-art:after{
  background:
    linear-gradient(90deg,
      rgba(18,46,135,.70) 0%,
      rgba(18,46,135,.50) 20%,
      rgba(18,46,135,.22) 36%,
      rgba(8,25,90,.05) 52%,
      rgba(8,25,90,.02) 76%,
      rgba(8,25,90,.12) 100%) !important;
}
@media (max-width:900px){
  .hero-art:after{
    background:
      linear-gradient(90deg,
        rgba(18,46,135,.66) 0%,
        rgba(18,46,135,.42) 25%,
        rgba(18,46,135,.15) 48%,
        rgba(8,25,90,.04) 72%,
        rgba(8,25,90,.10) 100%) !important;
  }
}
@media (max-width:600px){
  .hero-art:after{
    background:
      linear-gradient(180deg,
        rgba(18,46,135,.58) 0%,
        rgba(18,46,135,.34) 30%,
        rgba(8,25,90,.08) 62%,
        rgba(5,21,76,.18) 100%) !important;
  }
}


/* Pin homepage copy to the actual left edge instead of a centered content gutter. */
.hero-copy-wrap{
  left:0 !important;
  margin-left:0 !important;
  padding-left:12px !important;
}
@media (min-width:901px){
  .hero-copy-wrap{
    left:0 !important;
    width:min(29vw,410px) !important;
    padding-left:12px !important;
  }
}
@media (max-width:900px){
  .hero-copy-wrap{
    left:0 !important;
    padding-left:14px !important;
  }
}
@media (max-width:600px){
  .hero-copy-wrap{
    left:0 !important;
    width:calc(100% - 14px) !important;
    padding-left:14px !important;
  }
}


/* CERTAINUTIES YES / NO character art */
#markets{
  position:relative;
  overflow:hidden;
}
#markets > .wrap{
  position:relative;
  z-index:3;
}
.certainuties-side-art{
  position:absolute;
  top:150px;
  width:clamp(190px,19vw,330px);
  height:clamp(270px,34vw,500px);
  z-index:1;
  pointer-events:none;
  opacity:.96;
}
.certainuties-side-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:22px;
  box-shadow:0 22px 60px rgba(3,14,56,.24);
}
.certainuties-yes{left:max(10px,calc((100vw - 1540px)/2));}
.certainuties-no{right:max(10px,calc((100vw - 1540px)/2));}

/* Give the center prediction content breathing room from the side artwork. */
@media (min-width:1251px){
  #markets > .wrap{
    width:min(calc(100% - 620px),920px);
  }
}
@media (min-width:901px) and (max-width:1250px){
  .certainuties-side-art{
    width:220px;
    height:330px;
    top:170px;
    opacity:.88;
  }
  .certainuties-yes{left:-38px;}
  .certainuties-no{right:-38px;}
  #markets > .wrap{
    width:min(calc(100% - 330px),860px);
  }
}
@media (max-width:900px){
  .certainuties-side-art{
    display:none;
  }
  #markets > .wrap{
    width:min(100% - 28px,1180px);
  }
}


/* Keep CERTAINUTIES side mascots visible as the section is scrolled. */
@media (min-width:901px){
  .certainuties-side-art{
    position:sticky !important;
    top:clamp(92px,12vh,145px) !important;
    margin-top:150px;
    margin-bottom:40px;
  }
  .certainuties-yes{
    float:left;
    left:auto !important;
    margin-left:max(10px,calc((100vw - 1540px)/2));
  }
  .certainuties-no{
    float:right;
    right:auto !important;
    margin-right:max(10px,calc((100vw - 1540px)/2));
  }
  #markets::after{
    content:"";
    display:block;
    clear:both;
  }
}
@media (min-width:901px) and (max-width:1250px){
  .certainuties-yes{margin-left:-38px;}
  .certainuties-no{margin-right:-38px;}
}


/* CERTAINUTIES mascots: genuinely follow the viewport while inside this section. */
@media (min-width:901px){
  .certainuties-side-art.certainuties-following{
    position:fixed !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    z-index:8 !important;
  }
  .certainuties-yes.certainuties-following{
    left:max(10px,calc((100vw - 1540px)/2)) !important;
    right:auto !important;
    margin-left:0 !important;
    float:none !important;
  }
  .certainuties-no.certainuties-following{
    right:max(10px,calc((100vw - 1540px)/2)) !important;
    left:auto !important;
    margin-right:0 !important;
    float:none !important;
  }
}
@media (min-width:901px) and (max-width:1250px){
  .certainuties-yes.certainuties-following{left:-38px !important;}
  .certainuties-no.certainuties-following{right:-38px !important;}
}


/* Keep YES/NO artwork permanently inside CERTAINUTIES.
   It follows the viewport only while scrolling through the section. */
@media (min-width:901px){
  #markets .certainuties-side-art{
    display:block !important;
    position:absolute !important;
    top:150px !important;
    transform:none !important;
    margin:0 !important;
    float:none !important;
  }
  #markets .certainuties-yes{
    left:max(10px,calc((100vw - 1540px)/2)) !important;
    right:auto !important;
  }
  #markets .certainuties-no{
    right:max(10px,calc((100vw - 1540px)/2)) !important;
    left:auto !important;
  }

  #markets .certainuties-side-art.certainuties-following{
    position:fixed !important;
    top:50% !important;
    transform:translateY(-50%) !important;
  }

  #markets .certainuties-side-art.certainuties-at-bottom{
    position:absolute !important;
    top:auto !important;
    bottom:70px !important;
    transform:none !important;
  }
}
@media (min-width:901px) and (max-width:1250px){
  #markets .certainuties-yes{left:-38px !important;}
  #markets .certainuties-no{right:-38px !important;}
}


/* Hard stop for CERTAINUTIES side art at the Section 3 → Section 4 boundary. */
@media (min-width:901px){
  #markets .certainuties-side-art.certainuties-at-bottom{
    position:absolute !important;
    top:auto !important;
    bottom:24px !important;
    transform:none !important;
  }
}


/* Start CERTAINUTIES side art level with the first prediction card, not the section heading. */
@media (min-width:901px){
  #markets .certainuties-side-art{
    top:clamp(300px, 32vw, 390px) !important;
  }
  #markets .certainuties-side-art.certainuties-following{
    top:50% !important;
  }
  #markets .certainuties-side-art.certainuties-at-bottom{
    top:auto !important;
    bottom:24px !important;
  }
}


/* Fine-tune initial CERTAINUTIES mascot height to match the first prediction card. */
@media (min-width:901px){
  #markets .certainuties-side-art{
    top:455px !important;
  }
  #markets .certainuties-side-art.certainuties-following{
    top:50% !important;
  }
  #markets .certainuties-side-art.certainuties-at-bottom{
    top:auto !important;
    bottom:24px !important;
  }
}
@media (min-width:901px) and (max-width:1250px){
  #markets .certainuties-side-art{
    top:430px !important;
  }
  #markets .certainuties-side-art.certainuties-following{
    top:50% !important;
  }
  #markets .certainuties-side-art.certainuties-at-bottom{
    top:auto !important;
  }
}


/* FINAL CERTAINUTIES side-art behavior: static, no scroll following. */
@media (min-width:901px){
  #markets{
    position:relative !important;
    overflow:hidden !important;
  }
  #markets .certainuties-side-art,
  #markets .certainuties-side-art.certainuties-following,
  #markets .certainuties-side-art.certainuties-at-bottom{
    display:block !important;
    position:absolute !important;
    top:28px !important;
    bottom:auto !important;
    transform:none !important;
    margin:0 !important;
    float:none !important;
    z-index:2 !important;
  }
  #markets .certainuties-yes,
  #markets .certainuties-yes.certainuties-following,
  #markets .certainuties-yes.certainuties-at-bottom{
    left:max(14px,calc((100vw - 1540px)/2)) !important;
    right:auto !important;
  }
  #markets .certainuties-no,
  #markets .certainuties-no.certainuties-following,
  #markets .certainuties-no.certainuties-at-bottom{
    right:max(14px,calc((100vw - 1540px)/2)) !important;
    left:auto !important;
  }
}
@media (min-width:901px) and (max-width:1250px){
  #markets .certainuties-yes{left:-38px !important;}
  #markets .certainuties-no{right:-38px !important;}
}


