/*
 * JPW visual refinements
 * Loaded after jpw-visual.css so focused accessibility and layout fixes win.
 */

/* Hero: refined editorial-tech field, intentionally image-free. */
body.jpw-site .jpw-hero{
  position:relative;
  isolation:isolate;
  min-height:calc(100svh - 100px);
  background:#052d2e!important;
  overflow:hidden;
}
body.jpw-site .jpw-hero::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background-image:
    repeating-radial-gradient(circle at 78% 48%,rgba(205,244,126,.18) 0 1px,transparent 1px 76px),
    linear-gradient(rgba(213,240,205,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(213,240,205,.045) 1px,transparent 1px),
    linear-gradient(118deg,#032728 0%,#073b3a 58%,#112f2c 100%)!important;
  background-size:auto,68px 68px,68px 68px,auto!important;
  background-position:center!important;
  opacity:1!important;
  transform:none!important;
  animation:none!important;
  filter:none!important;
  z-index:-2!important;
}
body.jpw-site .jpw-hero::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 82% 42%,rgba(195,244,105,.24) 0%,rgba(195,244,105,.08) 18%,transparent 38%),
    radial-gradient(circle at 62% 82%,rgba(95,190,159,.18) 0%,transparent 34%),
    linear-gradient(90deg,rgba(1,29,30,.92) 0%,rgba(1,29,30,.56) 47%,rgba(1,29,30,.08) 100%)!important;
  opacity:1!important;
  z-index:-1!important;
}
body.jpw-site .jpw-hero .jpw-wrap{
  position:relative;
  z-index:1;
}
body.jpw-site .jpw-hero .jpw-board{
  background:rgba(7,43,42,.82)!important;
  border-color:rgba(211,238,209,.28)!important;
  box-shadow:18px 22px 0 rgba(0,18,18,.22)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* Pricing: keep long amounts and units safely inside every card. */
body.jpw-site .jpw-plan-price{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:end!important;
  gap:7px!important;
  white-space:normal!important;
  min-width:0!important;
}
body.jpw-site .jpw-plan-price strong{
  display:block!important;
  min-width:0!important;
  font-size:clamp(34px,2.8vw,44px)!important;
  line-height:1!important;
  overflow-wrap:anywhere;
}
body.jpw-site .jpw-plan-price span{
  display:block!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.45!important;
  letter-spacing:.02em!important;
}

/* Insight cards: guarantee readable overlay copy against every thumbnail. */
body.jpw-site .jpw-insight-badge{
  color:#fff!important;
  background:rgba(4,35,33,.92)!important;
  border:1px solid rgba(231,248,237,.72)!important;
  box-shadow:0 8px 24px rgba(0,17,16,.28)!important;
  text-shadow:none!important;
  font-weight:700!important;
}
body.jpw-site .jpw-insight-shade{
  background:linear-gradient(180deg,rgba(3,31,30,.72) 0%,rgba(3,31,30,.16) 38%,rgba(2,22,22,.94) 100%)!important;
}
body.jpw-site .jpw-insight-card.is-secondary .jpw-insight-shade{
  background:linear-gradient(90deg,rgba(3,31,30,.94) 0%,rgba(3,31,30,.62) 58%,rgba(3,31,30,.26) 100%)!important;
}
body.jpw-site .jpw-insight-content,
body.jpw-site .jpw-insight-content h3,
body.jpw-site .jpw-insight-content p,
body.jpw-site .jpw-insight-read{
  color:#fff!important;
}
body.jpw-site .jpw-insight-content small{
  color:#dff1e6!important;
  text-shadow:0 2px 10px rgba(0,18,18,.65)!important;
}
body.jpw-site .jpw-insight-content h3{
  text-shadow:0 2px 18px rgba(0,17,16,.62)!important;
}
body.jpw-site .jpw-insight-read{
  border-color:rgba(255,255,255,.76)!important;
}

/* Single article: show the assigned featured image before the body copy. */
body.jpw-site.single-post .jpw-article-featured{
  width:100%;
  margin:0 0 clamp(32px,5vw,56px);
  overflow:hidden;
  border-radius:18px;
  background:#e8eeea;
  box-shadow:0 18px 48px rgba(4,45,44,.14);
}
body.jpw-site.single-post .jpw-article-featured-image{
  display:block;
  width:100%;
  height:auto;
  max-height:640px;
  object-fit:cover;
}

@media(max-width:760px){
  body.jpw-site.single-post .jpw-article-featured{
    margin-bottom:28px;
    border-radius:12px;
  }
  body.jpw-site .jpw-hero{
    min-height:0;
  }
  body.jpw-site .jpw-hero::before{
    background-image:
      repeating-radial-gradient(circle at 78% 23%,rgba(205,244,126,.16) 0 1px,transparent 1px 54px),
      linear-gradient(rgba(213,240,205,.04) 1px,transparent 1px),
      linear-gradient(90deg,rgba(213,240,205,.04) 1px,transparent 1px),
      linear-gradient(145deg,#032728 0%,#073b3a 62%,#112f2c 100%)!important;
    background-size:auto,48px 48px,48px 48px,auto!important;
  }
  body.jpw-site .jpw-hero::after{
    background:
      radial-gradient(circle at 82% 24%,rgba(195,244,105,.18) 0%,transparent 35%),
      linear-gradient(180deg,rgba(1,29,30,.86) 0%,rgba(1,29,30,.48) 48%,rgba(1,29,30,.88) 100%)!important;
  }
  body.jpw-site .jpw-hero .jpw-board{
    box-shadow:9px 11px 0 rgba(0,18,18,.2)!important;
  }
  body.jpw-site .jpw-plan-price strong{
    font-size:40px!important;
    overflow-wrap:normal;
  }
}