/*
 * ASCH buttons: one look for every ASCH plugin (Comms Radar, GNIAS, Flyover, Audit Engine, Courses,
 * Uchaguzi Bila Noma, Maarifa Cloud). Pill shape, ASCH-blue gradient, soft depth, a shine and a lift on hover.
 */

/* Shared motion and shape */
.asch-tile-link,.atr-btn,.gn-btn,.fly-btn,.tca-btn,.cpr-btn,.ubn-btn,.mkmc-buy button{position:relative;overflow:hidden;isolation:isolate;border-radius:999px!important;transition:transform .18s ease,box-shadow .22s ease,background-color .22s ease,background-position .4s ease,border-color .22s ease,color .22s ease}
.asch-tile-link::before,.atr-btn::before,.gn-btn::before,.fly-btn::before,.tca-btn::before,.cpr-btn::before,.ubn-btn.primary::before,.mkmc-buy button::before{content:"";position:absolute;inset:0 auto 0 -60%;width:45%;z-index:-1;background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);transform:skewX(-20deg);transition:left .6s ease;pointer-events:none}
.asch-tile-link:hover::before,.atr-btn:hover::before,.gn-btn:hover::before,.fly-btn:hover::before,.tca-btn:hover::before,.cpr-btn:hover::before,.ubn-btn.primary:hover::before,.mkmc-buy button:hover::before{left:120%}
.asch-tile-link:hover,.atr-btn:not(:disabled):hover,.gn-btn:not(:disabled):hover,.fly-btn:not(:disabled):hover,.tca-btn:not(:disabled):hover,.cpr-btn:not(:disabled):hover,.ubn-btn:not(:disabled):hover,.mkmc-buy button:not(:disabled):hover{transform:translateY(-2px)}
.asch-tile-link:active,.atr-btn:active,.gn-btn:active,.fly-btn:active,.tca-btn:active,.cpr-btn:active,.ubn-btn:active,.mkmc-buy button:active{transform:translateY(0) scale(.98)}

/* Solid: the main action */
.asch-tile-link,
.atr-btn-solid,
.gn-btn:not(.gn-btn-ghost):not(.gn-btn-light):not(.gn-btn-outline):not(.gn-btn-bad),
.fly-btn:not(.fly-btn-ghost):not(.fly-btn-light):not(.fly-btn-outline):not(.fly-btn-danger),
.tca-btn:not(.tca-btn-ghost):not(.tca-btn-light):not(.tca-btn-outline):not(.tca-btn-danger),
.cpr-btn:not(.cpr-btn-ghost),
.ubn-btn.primary,
.mkmc-buy button{background:linear-gradient(135deg,#0047AB 0%,#1E63D6 55%,#3D8BFF 100%)!important;background-size:160% 160%!important;background-position:0 0!important;border-color:transparent!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 10px 24px -10px rgba(0,71,171,.75)}
.asch-tile-link:hover,
.atr-btn-solid:hover,
.gn-btn:not(.gn-btn-ghost):not(.gn-btn-light):not(.gn-btn-outline):not(.gn-btn-bad):not(:disabled):hover,
.fly-btn:not(.fly-btn-ghost):not(.fly-btn-light):not(.fly-btn-outline):not(.fly-btn-danger):not(:disabled):hover,
.tca-btn:not(.tca-btn-ghost):not(.tca-btn-light):not(.tca-btn-outline):not(.tca-btn-danger):not(:disabled):hover,
.cpr-btn:not(.cpr-btn-ghost):not(:disabled):hover,
.ubn-btn.primary:not(:disabled):hover,
.mkmc-buy button:not(:disabled):hover{background-position:100% 100%!important;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 16px 32px -12px rgba(0,71,171,.85)}
.mkmc-buy button{border:0;font:700 16px/1 Manrope,Arial,sans-serif;min-height:50px;padding:0 26px;cursor:pointer}

/* Light: on dark or blue backgrounds */
.asch-tile-lead .asch-tile-link,.asch-tile-blue .asch-tile-link,
.atr-btn-light,.gn-btn-light,.fly-btn-light,.tca-btn-light{background:#fff!important;color:#0A1F4D!important;border-color:#fff!important;box-shadow:0 10px 26px -12px rgba(0,0,0,.55)}
.asch-tile-lead .asch-tile-link:hover,.asch-tile-blue .asch-tile-link:hover,
.atr-btn-light:hover,.gn-btn-light:hover,.fly-btn-light:hover,.tca-btn-light:hover{background:#fff!important;color:#0047AB!important;box-shadow:0 16px 34px -14px rgba(0,0,0,.6),0 0 0 4px rgba(143,182,242,.35)}

/* Ghost: the second choice on light backgrounds */
.asch-two-links .asch-tile-link+.asch-tile-link,
.atr-btn-ghost,.gn-btn-ghost,.fly-btn-ghost,.tca-btn-ghost,.cpr-btn-ghost,.ubn-btn:not(.primary){background:#fff!important;color:#0A1F4D!important;border:1.5px solid #C9D8F0!important;box-shadow:0 6px 18px -14px rgba(10,31,77,.5)}
.asch-two-links .asch-tile-link+.asch-tile-link::before,.atr-btn-ghost::before,.gn-btn-ghost::before,.fly-btn-ghost::before,.tca-btn-ghost::before,.cpr-btn-ghost::before{background:linear-gradient(100deg,transparent,rgba(0,71,171,.10),transparent)}
.asch-two-links .asch-tile-link+.asch-tile-link:hover,
.atr-btn-ghost:hover,.gn-btn-ghost:hover,.fly-btn-ghost:hover,.tca-btn-ghost:hover,.cpr-btn-ghost:hover,.ubn-btn:not(.primary):not(:disabled):hover{background:#E7EEF9!important;color:#0047AB!important;border-color:#0047AB!important;box-shadow:0 12px 26px -14px rgba(0,71,171,.55)}

/* Outline: glass on dark backgrounds */
.atr-btn-line,.gn-btn-outline,.fly-btn-outline,.tca-btn-outline{background:rgba(255,255,255,.08)!important;border:1.5px solid rgba(255,255,255,.4)!important;color:#fff!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.atr-btn-line:hover,.gn-btn-outline:hover,.fly-btn-outline:hover,.tca-btn-outline:hover{background:rgba(255,255,255,.18)!important;border-color:#fff!important;box-shadow:0 12px 28px -14px rgba(0,0,0,.6)}

/* Danger keeps its red, with the same shape and depth */
.gn-btn-bad,.fly-btn-danger,.tca-btn-danger{box-shadow:0 10px 22px -12px rgba(138,28,18,.7)}

/* Tile links become buttons */
.asch-tile-link{align-self:flex-start;min-height:48px;padding:0 22px;font-size:16px;gap:10px;text-decoration:none!important}
.asch-tile-link:hover{text-decoration:none!important}
.asch-tile-link span{display:inline-block;transition:transform .2s ease}
.asch-tile-link:hover span{transform:translateX(4px)}
.asch-two-links{gap:12px!important;align-items:center}

/* Disabled stays quiet */
.atr-btn:disabled,.gn-btn:disabled,.fly-btn:disabled,.tca-btn:disabled,.cpr-btn:disabled,.ubn-btn:disabled,.mkmc-buy button:disabled{transform:none!important;box-shadow:none!important}

@media (prefers-reduced-motion:reduce){
  .asch-tile-link,.atr-btn,.gn-btn,.fly-btn,.tca-btn,.cpr-btn,.ubn-btn,.mkmc-buy button,.asch-tile-link span{transition:none!important}
  .asch-tile-link::before,.atr-btn::before,.gn-btn::before,.fly-btn::before,.tca-btn::before,.cpr-btn::before,.ubn-btn.primary::before,.mkmc-buy button::before{display:none}
  .asch-tile-link:hover,.atr-btn:hover,.gn-btn:hover,.fly-btn:hover,.tca-btn:hover,.cpr-btn:hover,.ubn-btn:hover,.mkmc-buy button:hover,.asch-tile-link:hover span{transform:none!important}
}

/* Audit Engine header button */
.tca-nav a.tca-nav-cta{position:relative;overflow:hidden;isolation:isolate;border-radius:999px!important;background:linear-gradient(135deg,#0047AB 0%,#1E63D6 55%,#3D8BFF 100%)!important;background-size:160% 160%!important;color:#fff!important;padding:11px 22px!important;font-weight:700;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 10px 24px -10px rgba(0,71,171,.75);transition:transform .18s ease,box-shadow .22s ease,background-position .4s ease}
.tca-nav a.tca-nav-cta::before{content:"";position:absolute;inset:0 auto 0 -60%;width:45%;z-index:-1;background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);transform:skewX(-20deg);transition:left .6s ease;pointer-events:none}
.tca-nav a.tca-nav-cta:hover{transform:translateY(-2px);background-position:100% 100%!important;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 16px 32px -12px rgba(0,71,171,.85)}
.tca-nav a.tca-nav-cta:hover::before{left:120%}
@media (prefers-reduced-motion:reduce){.tca-nav a.tca-nav-cta{transition:none!important}.tca-nav a.tca-nav-cta::before{display:none}.tca-nav a.tca-nav-cta:hover{transform:none!important}}

/* Notices in ASCH colours instead of cream and yellow: a white card with an ASCH-blue edge, readable on light and dark backgrounds */
.atr-stale,.atr-notice-warn,.mkm-note,.mkm-offline{background:#fff!important;color:#0A1F4D!important;border:1px solid #C9D8F0!important;border-left:5px solid #3D8BFF!important;border-radius:12px!important;box-shadow:0 10px 26px -16px rgba(10,31,77,.55)}
.atr-stale a,.atr-notice-warn a,.mkm-note a,.mkm-offline a{color:#0047AB!important}
.atr-stale strong,.atr-notice-warn strong,.mkm-note strong{color:#0047AB}
/* Status tags that used cream: an ASCH-blue outline, so they still stand apart from the filled blue tags */
.atr-tag-warn,.atr-state-rejected,.mkm-chip.warn,.ubn-chip.yellow,.asch-g-checks li.is-pending .asch-g-state{background:#fff!important;color:#0047AB!important;border:1px solid #8FB6F2!important}
.mkm-chip.sample{background:#E7EEF9!important;color:#0047AB!important;border:1px solid #8FB6F2!important}
