
/* v7.7 - corrección shortcuts + paleta británica comunitaria */
:root{
  --ji-bc-navy:#15337a;
  --ji-bc-royal:#2f67ff;
  --ji-bc-cobalt:#1e4fd1;
  --ji-bc-red:#cf142b;
  --ji-bc-red-dark:#ad0f23;
  --ji-bc-white:#ffffff;
  --ji-bc-soft:#f6f8ff;
  --ji-bc-line:#dbe3f6;
  --ji-bc-ink:#10244e;
}
body{background:var(--ji-bc-soft)!important;color:var(--ji-bc-ink)!important;}
body .ji-clean-header{background:linear-gradient(90deg,var(--ji-bc-navy) 0%, var(--ji-bc-royal) 100%)!important;}
body .ji-site-header--clean,
body .ji-site-header{box-shadow:0 8px 30px rgba(21,51,122,.14)!important;}
body .ji-clean-branding__text--asset-logo strong,
body .ji-clean-branding__text--asset-logo em,
body .ji-clean-search,
body .ji-clean-call,
body .ji-accessibility-toggle{color:#fff!important;}
body .ji-clean-search{background:rgba(255,255,255,.16)!important;}
body .ji-clean-call,
body .ji-btn,
body .ji-card__action,
body .ji-archive-card__action,
body .ji-person-card__action,
body .ji-short-card__action,
body .ji-cert-action--primary,
body .ji-v5-card__button,
body .ji-archive-card__button,
body .ji-person-card__button,
body .ji-short-card__button{background:var(--ji-bc-red)!important;border-color:var(--ji-bc-red)!important;color:#fff!important;}
body .ji-clean-call:hover,
body .ji-btn:hover,
body .ji-card__action:hover,
body .ji-archive-card__action:hover,
body .ji-person-card__action:hover,
body .ji-short-card__action:hover,
body .ji-cert-action--primary:hover,
body .ji-v5-card__button:hover,
body .ji-archive-card__button:hover,
body .ji-person-card__button:hover,
body .ji-short-card__button:hover{background:var(--ji-bc-red-dark)!important;border-color:var(--ji-bc-red-dark)!important;}
body .ji-clean-dashboard{background:#152b57!important;}
body .ji-clean-dashboard__pills a{border-color:#6fb5ff!important;color:#fff!important;}
body .ji-clean-dashboard__pills a:hover{background:var(--ji-bc-red)!important;border-color:var(--ji-bc-red)!important;}

/* Force 4 shortcuts in one row on desktop */
body .ji-home-shortcuts,
body .ji-home-shortcuts--v55{width:100%!important;background:var(--ji-bc-white)!important;}
body .ji-home-shortcuts .ji-home-shortcuts__grid,
body .ji-home-shortcuts--v55 .ji-home-shortcuts__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:1fr!important;
  gap:0!important;
  width:100%!important;
  background:transparent!important;
}
body .ji-home-shortcuts .ji-shortcut,
body .ji-home-shortcuts--v55 .ji-shortcut{
  min-width:0!important;
  min-height:120px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:1rem!important;
  padding:1.45rem 1.4rem!important;
  border-right:1px solid rgba(255,255,255,.14)!important;
  border-bottom:0!important;
  text-decoration:none!important;
  transform:none!important;
}
body .ji-home-shortcuts .ji-shortcut:nth-child(1),
body .ji-home-shortcuts--v55 .ji-shortcut:nth-child(1){background:linear-gradient(135deg,var(--ji-bc-navy) 0%, #114a8b 100%)!important;}
body .ji-home-shortcuts .ji-shortcut:nth-child(2),
body .ji-home-shortcuts--v55 .ji-shortcut:nth-child(2){background:linear-gradient(135deg,#0f4e96 0%, var(--ji-bc-cobalt) 100%)!important;}
body .ji-home-shortcuts .ji-shortcut:nth-child(3),
body .ji-home-shortcuts--v55 .ji-shortcut:nth-child(3){background:linear-gradient(135deg,var(--ji-bc-royal) 0%, #4e83ff 100%)!important;}
body .ji-home-shortcuts .ji-shortcut:nth-child(4),
body .ji-home-shortcuts--v55 .ji-shortcut:nth-child(4){background:linear-gradient(135deg,var(--ji-bc-red) 0%, #e23a50 100%)!important;}
body .ji-home-shortcuts .ji-shortcut:last-child,
body .ji-home-shortcuts--v55 .ji-shortcut:last-child{border-right:0!important;}
body .ji-home-shortcuts .ji-shortcut:hover,
body .ji-home-shortcuts--v55 .ji-shortcut:hover{filter:brightness(1.05);}
body .ji-home-shortcuts .ji-shortcut__text,
body .ji-home-shortcuts--v55 .ji-shortcut__text{
  color:#fff!important;
  font-size:clamp(1.02rem,1.25vw,1.25rem)!important;
  line-height:1.08!important;
  font-weight:800!important;
  max-width:none!important;
  flex:1 1 auto!important;
  letter-spacing:-.01em;
}
body .ji-home-shortcuts .ji-shortcut__icon,
body .ji-home-shortcuts--v55 .ji-shortcut__icon{width:42px!important;height:42px!important;flex:0 0 42px!important;filter:none!important;opacity:1!important;}
body .ji-home-shortcuts .ji-shortcut__icon svg,
body .ji-home-shortcuts .ji-shortcut__icon svg *,
body .ji-home-shortcuts--v55 .ji-shortcut__icon svg,
body .ji-home-shortcuts--v55 .ji-shortcut__icon svg *{stroke:#fff!important;fill:none!important;stroke-width:2.6!important;stroke-linecap:round!important;stroke-linejoin:round!important;}

/* Titles and section accents */
body .ji-section__header h2 span:first-child,
body .ji-v5-section__title span:first-child{color:var(--ji-bc-royal)!important;}
body .ji-section__header h2 span:last-child,
body .ji-v5-section__title span:last-child{color:var(--ji-bc-red)!important;}
body .ji-v5-card__kicker,
body .ji-archive-card__kicker,
body .ji-person-card__role{color:var(--ji-bc-royal)!important;}
body .ji-v5-card,
body .ji-archive-card,
body .ji-person-card,
body .ji-short-card,
body .ji-cert-verify,
body .ji-cert-result{border-color:var(--ji-bc-line)!important;box-shadow:0 14px 30px rgba(21,51,122,.08)!important;}
body .ji-v5-footer,
body .ji-footer{background:linear-gradient(135deg,var(--ji-bc-navy) 0%, #114a8b 100%)!important;}
body .ji-backtotop{left:24px!important;right:auto!important;background:var(--ji-bc-red)!important;color:#fff!important;}
body .ji-backtotop:hover{background:var(--ji-bc-red-dark)!important;}

@media (max-width: 1180px){
  body .ji-home-shortcuts .ji-shortcut__text,
  body .ji-home-shortcuts--v55 .ji-shortcut__text{font-size:1rem!important;}
}
@media (max-width: 980px){
  body .ji-home-shortcuts .ji-home-shortcuts__grid,
  body .ji-home-shortcuts--v55 .ji-home-shortcuts__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width: 640px){
  body .ji-home-shortcuts .ji-home-shortcuts__grid,
  body .ji-home-shortcuts--v55 .ji-home-shortcuts__grid{grid-template-columns:1fr!important;}
  body .ji-home-shortcuts .ji-shortcut,
  body .ji-home-shortcuts--v55 .ji-shortcut{min-height:88px!important;padding:1rem 1rem!important;}
}
