/* MANZO AI / Academy Card Visual Contract
 * New courses must use the same grid, artwork height, spacing, metadata,
 * 2-tag maximum and one-line CTA alignment as the existing six cards.
 * Specificity is intentional: the release ZIP has legacy .ma-course rules.
 * These rules affect only the seventh Italian course card except the shared
 * grid's equal row sizing. See theme/ACADEMY_CARD_STANDARD.md.
 */
.ma-home-showcase .ma-home-course-grid:has([data-ma-home-course="prompt-vs-skill"]){
  grid-auto-rows:1fr;
  align-items:stretch;
}
.ma-home-showcase .ps-home-course-card{
  --ps-home-ink:#172a48;
  display:flex!important;
  flex-direction:column!important;
  width:100%;
  min-width:0;
  height:100%;
  overflow:hidden;
  border-radius:20px;
  border:1px solid #d4e1f2;
  background:#fff;
  box-shadow:0 7px 22px #1a3b6415;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.ma-home-showcase .ps-home-course-card:hover,
.ma-home-showcase .ps-home-course-card:focus-within{
  transform:translateY(-3px);
  border-color:#88a5ec;
  box-shadow:0 22px 48px #1a3b6427;
}
/* Artwork of the same height as the original Academy cards, never a tall hero */
.ma-home-showcase .ps-home-course-card .ma-course-art.ps-home-art{
  position:relative;
  isolation:isolate;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch;
  justify-content:space-between;
  flex:none;
  box-sizing:border-box;
  width:100%;
  height:clamp(132px,9vw,151px)!important;
  min-height:0!important;
  max-height:none;
  aspect-ratio:auto!important;
  padding:19px 22px!important;
  margin:0!important;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(125deg,#2e43c7 2%,#4537af 50%,#5948c5 100%);
}
.ma-home-showcase .ps-home-course-card .ps-home-art::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:67%;
  aspect-ratio:1;
  right:-6%;
  top:-58%;
  border:1.5px solid #ffffff88;
  box-shadow:0 0 0 21px #ffffff16,0 0 0 52px #ffffff0b;
  border-radius:50%;
}
.ma-home-showcase .ps-home-art-label{
  position:relative;
  z-index:1;
  color:#fff;
  font-size:.72rem;
  font-weight:820;
  letter-spacing:.13em;
  line-height:1.45;
}
.ma-home-showcase .ps-home-art-diagram{
  position:absolute;
  right:clamp(13px,2vw,25px);
  top:50%;
  transform:translateY(-54%);
  display:flex;
  align-items:center;
  gap:7px;
  color:#fff;
  font-size:clamp(1.35rem,2vw,1.95rem);
  font-weight:790;
  line-height:1;
  letter-spacing:-.04em;
}
.ma-home-showcase .ps-home-art-p,.ma-home-showcase .ps-home-art-s{
  display:grid;
  place-items:center;
  width:clamp(34px,3vw,46px);
  height:clamp(34px,3vw,46px);
  flex:none;
  border-radius:11px;
  background:#ffffffed;
  color:#243cb3;
  box-shadow:0 6px 13px #07184a22;
  transform:rotate(-7deg);
}
.ma-home-showcase .ps-home-art-s{
  background:#d2ffb3;
  color:#25347c;
  transform:rotate(7deg);
}
.ma-home-showcase .ps-home-art-arrow{color:#def1ff;font-size:.86em;font-weight:550}
.ma-home-showcase .ps-home-art-brand{
  position:relative;
  z-index:1;
  color:#fff;
  font-size:clamp(1.1rem,1.8vw,1.3rem);
  letter-spacing:-.06em;
  font-weight:780;
  line-height:1.1;
}
.ma-home-showcase .ps-home-art-brand span{color:#d9ffbe;margin-left:3px}

/* Every unit occupies the same vertical slots as the neighboring cards */
.ma-home-showcase .ps-home-course-card .ma-course-info.ps-home-info{
  display:flex!important;
  flex:1 1 auto;
  flex-direction:column!important;
  min-width:0;
  padding:24px 25px 25px!important;
  background:#fff;
  color:var(--ps-home-ink);
}
.ma-home-showcase .ps-home-kind{
  margin:0 0 13px!important;
  color:#264d7b;
  font-weight:770;
  font-size:.8rem;
  line-height:1.45;
}
.ma-home-showcase .ps-home-info h3{
  margin:0 0 12px!important;
  min-height:2.38em;
  color:#182d4e;
  font-size:clamp(1.16rem,1.4vw,1.35rem);
  line-height:1.19;
  letter-spacing:-.04em;
  font-weight:760;
}
.ma-home-showcase .ps-home-desc{
  margin:0 0 15px!important;
  color:#47617c;
  font-size:.88rem;
  font-weight:400;
  line-height:1.56;
}
.ma-home-showcase .ps-home-tags{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:0 0 15px!important;
}
.ma-home-showcase .ps-home-tags span{
  display:inline-block;
  max-width:100%;
  padding:7px 8px;
  border-radius:7px;
  background:#f0f4f9;
  color:#355875;
  font-size:.71rem;
  line-height:1.24;
  font-weight:670;
}
.ma-home-showcase .ps-home-course-card .ma-course-link.ps-home-link{
  box-sizing:border-box;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:37px;
  margin: auto 0 0!important;
  padding:14px 0 0!important;
  border-top:1px solid #d9e4f0;
  text-align:left!important;
  text-decoration:none!important;
  background:transparent!important;
  color:#2059d9!important;
  font-size:.84rem!important;
  font-weight:760!important;
  line-height:1.25!important;
  white-space:nowrap;
}
.ma-home-showcase .ps-home-course-card .ps-home-link>span:first-child{
  display:inline-block;
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
}
.ma-home-showcase .ps-home-course-card .ps-home-link-arrow{
  display:inline-grid!important;
  flex:0 0 31px!important;
  place-items:center;
  width:31px!important;
  height:31px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%;
  background:#eaf0ff;
  color:#2459d8;
  font-size:1.12rem!important;
  line-height:1!important;
  text-align:center;
}
.ma-home-showcase .ps-home-link:hover .ps-home-link-arrow{background:#dce7ff}
@media(max-width:700px){
  .ma-home-showcase .ps-home-course-card{border-radius:17px}
  .ma-home-showcase .ps-home-course-card .ma-course-art.ps-home-art{
    height:clamp(151px,39vw,175px)!important;
    padding:21px!important;
  }
  .ma-home-showcase .ps-home-art-diagram{right:24px;gap:10px}
  .ma-home-showcase .ps-home-art-p,.ma-home-showcase .ps-home-art-s{width:48px;height:48px;border-radius:13px}
  .ma-home-showcase .ps-home-course-card .ma-course-info.ps-home-info{padding:21px!important}
  .ma-home-showcase .ps-home-info h3{font-size:1.37rem}
  .ma-home-showcase .ps-home-desc{font-size:1rem}
  .ma-home-showcase .ps-home-course-card .ma-course-link.ps-home-link{font-size:.94rem!important}
}
@media(hover:none){.ma-home-showcase .ps-home-course-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){
  .ma-home-showcase .ps-home-course-card{transition:none!important}
  .ma-home-showcase .ps-home-course-card:hover{transform:none!important}
}

/* Second new course / same reviewed layout geometry, distinct visual identity */
.ma-home-showcase .mr-home-course-card .ma-course-art.ps-home-art{
 background:linear-gradient(126deg,#087a71 0%,#147b96 52%,#245fbd 100%);
}
.ma-home-showcase .mr-home-course-card .ps-home-art-p{
 background:#edffff;color:#0f6971;letter-spacing:-.09em;font-size:.83em;
}
.ma-home-showcase .mr-home-course-card .ps-home-art-s{
 background:#d6f6a7;color:#17465c;
}
.ma-home-showcase .mr-home-course-card .ps-home-art-brand span{color:#d9fcae}

/* Centroni City: same card dimensions/spacing as all Academy courses, unique civic palette */
.ma-home-showcase .cc-home-course-card .ma-course-art.ps-home-art{
 background:linear-gradient(125deg,#007c82 0%,#146b9a 53%,#2657af 100%);
}
.ma-home-showcase .cc-home-course-card .ps-home-art-p{
 background:#e7ffff;color:#0a6872;font-size:.89em;
}
.ma-home-showcase .cc-home-course-card .ps-home-art-s{
 background:#ffe4ba;color:#8a4b1f;font-size:.89em;
}
.ma-home-showcase .cc-home-course-card .ps-home-art-brand span{color:#ffe7ba}

/* Build Safely · same reviewed Academy card geometry across IT / EN / ES */
.ma-home-showcase .ma-home-course-grid:has([data-ma-home-course="build-safely"]){grid-auto-rows:1fr;align-items:stretch}
.ma-home-showcase .safe-home-course-card .ma-course-art.ps-home-art{
 background:linear-gradient(123deg,#0f7364 0%,#116e86 55%,#2757a3 100%);
}
.ma-home-showcase .safe-home-course-card .ps-home-art-p{
 background:#f0fffc;color:#086456;font-size:.82em;
}
.ma-home-showcase .safe-home-course-card .ps-home-art-s{
 background:#d8e6ff;color:#1e4f97;
}
.ma-home-showcase .safe-home-course-card .ps-home-art-brand span{color:#d0ffdb}

/* Governing Autonomy · reviewed Academy card size shared in IT / EN / ES */
.ma-home-showcase .ga-home-course-card .ma-course-art.ps-home-art{
 background:linear-gradient(124deg,#155b83 0%,#158fa5 50%,#5b65aa 100%);
}
.ma-home-showcase .ga-home-course-card .ps-home-art-p{
 background:#e5f8ff;color:#175779;font-size:.87em;
}
.ma-home-showcase .ga-home-course-card .ps-home-art-s{
 background:#ffeac3;color:#916226;font-size:.86em;
}
.ma-home-showcase .ga-home-course-card .ps-home-art-brand span{color:#e4ffe7}

/* Final two Academy courses · shared reviewed card geometry, distinct cover art */
.ma-home-showcase .ft-home-course-card .ma-course-art.ps-home-art{display:flex;flex-direction:column;min-height:inherit}
.ma-home-showcase .ft-home-compliance .ma-course-art.ps-home-art{
 background:linear-gradient(128deg,#146b86 0%,#1a9aa0 52%,#5d65ae 100%);
}
.ma-home-showcase .ft-home-augmented .ma-course-art.ps-home-art{
 background:linear-gradient(126deg,#4059b6 0%,#628bd0 48%,#3ba9a3 100%);
}
.ma-home-showcase .ft-home-compliance .ps-home-art-p{
 background:#d9f7ff;color:#176581;font-size:.88em;
}
.ma-home-showcase .ft-home-compliance .ps-home-art-s{
 background:#d9f4e4;color:#20754c;font-size:.83em;
}
.ma-home-showcase .ft-home-augmented .ps-home-art-p{
 background:#e7eaff;color:#3d50ac;font-size:.88em;
}
.ma-home-showcase .ft-home-augmented .ps-home-art-s{
 background:#dcfff2;color:#177d6a;font-size:.88em;
}
.ma-home-showcase .ft-home-course-card .ps-home-art-brand span{color:#dcfff0}

/* Native EN ES Legacy Academy · exact shared card geometry, distinct covers */
.ma-home-showcase .lgi-home-card .ma-course-art.ps-home-art{display:flex;flex-direction:column;min-height:inherit}
.ma-home-showcase .lgi-home-reliability .ma-course-art.ps-home-art{
 background:linear-gradient(130deg,#1b789b 0%,#5d8cc7 53%,#6459ac 100%)}
.ma-home-showcase .lgi-home-centroni .ma-course-art.ps-home-art{
 background:linear-gradient(129deg,#217c72 0%,#39a49a 49%,#6d92c7 100%)}
.ma-home-showcase .lgi-home-reliability .ps-home-art-p{background:#e2f2ff;color:#24668d;font-size:.88em}
.ma-home-showcase .lgi-home-reliability .ps-home-art-s{background:#f0e9ff;color:#6155a4;font-size:.84em}
.ma-home-showcase .lgi-home-centroni .ps-home-art-p{background:#e2fff0;color:#23795f;font-size:.86em}
.ma-home-showcase .lgi-home-centroni .ps-home-art-s{background:#f2f6ff;color:#326d95;font-size:.86em}
.ma-home-showcase .lgi-home-card .ps-home-art-brand span{color:#e0fff1}
