/* ============================================================
   SPO TRAINING V4.6.0 — SAFETY / DEMO TRUTH
   Loaded only on /formations/ and Training singles.
   No global HivePress restyle.
   ============================================================ */

.spo-training-demo-showcase{
  margin:18px 0 24px;
  padding:20px;
  border:1px solid #ead8a1;
  border-radius:16px;
  background:linear-gradient(135deg,#fffaf0 0%,#fff 100%);
  box-shadow:0 10px 28px rgba(15,41,66,.06);
  color:#294861;
}
.spo-training-demo-showcase__badge{
  display:inline-flex;
  margin:0 0 9px;
  padding:5px 9px;
  border:1px solid #ead8a1;
  border-radius:999px;
  background:#fff6df;
  color:#755a0a;
  font-size:10px;
  font-weight:900;
  letter-spacing:.07em;
  line-height:1.2;
  text-transform:uppercase;
}
.spo-training-demo-showcase h2{
  margin:0!important;
  color:#102a43!important;
  font-size:clamp(22px,2.6vw,30px)!important;
  font-weight:900!important;
  line-height:1.12!important;
}
.spo-training-demo-showcase__lead,
.spo-training-demo-showcase__truth{
  max-width:900px;
  margin:10px 0 0;
  color:#536d80;
  font-size:13px;
  line-height:1.58;
}
.spo-training-demo-showcase__truth{
  padding-top:10px;
  border-top:1px solid #f0e4bf;
}
.spo-training-demo-showcase__actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}
.spo-training-demo-showcase__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 14px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
  text-decoration:none!important;
}
.spo-training-demo-showcase__btn--primary{
  border:1px solid #1d5f91;
  background:#1d5f91;
  color:#fff!important;
}
.spo-training-demo-showcase__btn--secondary{
  border:1px solid #c7d8e4;
  background:#fff;
  color:#234e70!important;
}
.spo-training-demo-data-notice{
  margin:14px 0 20px;
  padding:11px 13px;
  border-left:3px solid #1d5f91;
  border-radius:0 10px 10px 0;
  background:#f8fbfd;
  color:#5d7487;
  font-size:12px;
  line-height:1.5;
}
.spo-training-card-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:0 0 7px;
  padding:4px 8px;
  border:1px solid #ead8a1;
  border-radius:999px;
  background:#fff6df;
  color:#755a0a;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1.2;
  text-transform:uppercase;
}

/* V4.6.0 safety default: all current catalogue cards are known demo content.
   Hide marketing images whose embedded text claims immediate registration/employability.
   V4.6.1/4.6.2 may later restore media conditionally for verified real listings. */
body.page-id-61189 .spo-formations-v46 .spo-formations-list :is(.hp-listing,.spo-hp-native-card) img{
  display:none!important;
}

@media(max-width:700px){
  .spo-training-demo-showcase{padding:16px}
  .spo-training-demo-showcase__actions{display:grid}
  .spo-training-demo-showcase__btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .spo-training-demo-showcase *,
  .spo-training-card-badge{transition:none!important}
}


/* ============================================================
   V4.6.0.1 — SAFETY FINISHING
   Scope remains DEMO Training only.
   ============================================================ */

.spo-training-demo-facts{
  margin:0 0 20px;
  padding:18px;
  border:1px solid #d8e4ed;
  border-radius:16px;
  background:#fff;
  box-shadow:0 9px 24px rgba(15,41,66,.05);
}
.spo-training-demo-facts__head{
  max-width:780px;
  margin-bottom:14px;
}
.spo-training-demo-facts__eyebrow{
  margin:0 0 5px!important;
  color:#1d5f91!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.spo-training-demo-facts h2{
  margin:0!important;
  color:#102a43!important;
  font-size:clamp(20px,2.3vw,27px)!important;
  font-weight:900!important;
  line-height:1.15!important;
}
.spo-training-demo-facts__head > p:last-child{
  margin:7px 0 0!important;
  color:#667f93!important;
  font-size:12.5px!important;
  line-height:1.55!important;
}
.spo-training-demo-facts__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.spo-training-demo-facts__item{
  min-width:0;
  padding:13px;
  border:1px solid #dfe8ef;
  border-radius:12px;
  background:#f8fbfd;
}
.spo-training-demo-facts__label,
.spo-training-demo-facts__item strong,
.spo-training-demo-facts__item small{
  display:block;
}
.spo-training-demo-facts__label{
  color:#667f93;
  font-size:10px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.spo-training-demo-facts__item strong{
  margin-top:4px;
  color:#102a43;
  font-size:13.5px;
  line-height:1.35;
}
.spo-training-demo-facts__item small{
  margin-top:6px;
  color:#8a6b16;
  font-size:9.5px;
  font-weight:800;
}

/* Fallback for extensions/custom code that may re-inject favorites after
   HivePress template filtering. */
body.spo-training-demo-page .hp-listing__action--favorite{
  display:none!important;
}

/* A demo must never visually look "verified" or "featured". */
body.spo-training-demo-page .hp-listing--verified,
body.spo-training-demo-page .hp-listing--featured{
  border-color:#d8e4ed!important;
  box-shadow:0 9px 24px rgba(15,41,66,.05)!important;
}
body.spo-training-demo-page [class*="verified-badge"],
body.spo-training-demo-page [class*="featured-badge"]{
  display:none!important;
}

/* Related demo cards remain useful as navigation, but operational/marketing
   information is intentionally suppressed until V4.6.2. */
body.spo-training-demo-page .hp-listing--view-block .hp-listing__image,
body.spo-training-demo-page .hp-listing--view-block .hp-listing__attributes,
body.spo-training-demo-page .hp-listing--view-block .hp-listing__actions{
  display:none!important;
}

/* Catalogue: remove the empty media shell, not just the image itself. */
body.page-id-61189 .spo-formations-v46 .spo-formations-list :is(.hp-listing,.spo-hp-native-card) .hp-listing__image{
  display:none!important;
}

@media(max-width:900px){
  .spo-training-demo-facts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .spo-training-demo-facts{padding:15px}
  .spo-training-demo-facts__grid{grid-template-columns:1fr}
}


/* ============================================================
   V4.6.0.2 — FULL TEMPLATE SAFETY FALLBACK
   Primary removal is now PHP/full-template. CSS is only a fallback.
   ============================================================ */
body.spo-training-demo-page .hp-listing__action--favorite,
body.spo-training-demo-page .hp-listing__action--report,
body.spo-training-demo-page .hp-listing__action--review {
  display:none!important;
}
