/* Desktop Credentials — horizontal certificate gallery + lift/center/flip close-up.
   Desktop only. Phone credential presentation remains unchanged. */
.credentials-desktop-certificate-gallery{display:none;}
.credentials-desktop-focus-backdrop{display:none;}

@media (min-width:761px){
  html.credentials-certificate-focus-active{overflow:hidden!important;}

  body.credentials-page .credentials-desktop-certificate-section{
    padding-top:34px;
    padding-bottom:26px;
  }

  body.credentials-page .credentials-desktop-certificate-gallery{
    display:grid;
    width:min(calc(100% - 56px),1400px);
    max-width:1400px;
    margin:0 auto;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
  }

  body.credentials-page .credentials-desktop-certificate{
    position:relative;
    min-width:0;
    aspect-ratio:1.52 / 1;
    overflow:visible;
    cursor:pointer;
    outline:none;
    isolation:isolate;
    perspective:1500px;
  }

  body.credentials-page .credentials-desktop-certificate-inner{
    position:absolute;
    inset:0;
    border:1px solid rgba(178,126,31,.84);
    border-radius:3px;
    background:
      radial-gradient(circle at 18% 12%,rgba(255,255,255,.98),transparent 31%),
      linear-gradient(135deg,#fffdf7 0%,#f8f1df 53%,#fffaf1 100%);
    box-shadow:0 12px 28px rgba(5,26,48,.11), inset 0 0 0 6px rgba(215,165,54,.075), inset 0 0 0 9px rgba(10,39,64,.055);
    transform-style:preserve-3d;
    transition:transform .62s cubic-bezier(.22,.61,.36,1), box-shadow .36s ease, border-color .3s ease;
  }

  body.credentials-page .credentials-desktop-certificate-inner::before,
  body.credentials-page .credentials-desktop-certificate-inner::after{
    content:"";
    position:absolute;
    pointer-events:none;
    z-index:5;
  }
  body.credentials-page .credentials-desktop-certificate-inner::before{
    inset:7px;
    border:1px solid rgba(215,165,54,.47);
  }
  body.credentials-page .credentials-desktop-certificate-inner::after{
    inset:10px;
    border:1px solid rgba(10,39,64,.13);
  }

  body.credentials-page .credentials-desktop-certificate:hover .credentials-desktop-certificate-inner,
  body.credentials-page .credentials-desktop-certificate:focus-visible .credentials-desktop-certificate-inner{
    border-color:#d7a536;
    box-shadow:0 16px 34px rgba(5,26,48,.15), inset 0 0 0 6px rgba(215,165,54,.095), inset 0 0 0 9px rgba(10,39,64,.055);
    transform:translateY(-2px);
  }

  body.credentials-page .credentials-desktop-certificate-face,
  body.credentials-page .credentials-desktop-certificate-detail{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    overflow:hidden;
    border-radius:3px;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
    transform-style:preserve-3d;
  }

  body.credentials-page .credentials-desktop-certificate-face{
    justify-content:center;
    padding:24px 22px 46px;
    transform:rotateY(0deg) translateZ(.1px);
  }

  body.credentials-page .credentials-desktop-certificate-detail{
    justify-content:flex-start;
    padding:28px 46px 54px;
    transform:rotateY(180deg) translateZ(.1px);
  }

  body.credentials-page .credentials-desktop-certificate-logo{
    display:block;
    width:auto;
    max-width:152px;
    height:48px;
    max-height:48px;
    object-fit:contain;
    margin:0 0 17px;
  }
  body.credentials-page .credentials-desktop-certificate-logo-microsoft{max-width:166px;}

  body.credentials-page .credentials-desktop-certificate-summary{
    min-height:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    color:#08243e;
    font-family:"Source Serif 4",Georgia,serif;
    text-align:center;
    font-weight:700;
  }
  body.credentials-page .credentials-desktop-summary-line{
    display:block;
    font-size:.79rem;
    line-height:1.16;
    letter-spacing:.018em;
  }
  body.credentials-page .credentials-desktop-summary-line-feature{
    font-size:.83rem;
  }
  body.credentials-page .credentials-desktop-summary-line > span{
    color:#b27e1f;
    padding:0 2px;
    font-size:.82em;
  }

  body.credentials-page .credentials-desktop-development-kicker{
    color:#9b701c;
    font-size:.61rem;
    font-weight:800;
    letter-spacing:.15em;
    text-transform:uppercase;
    margin-bottom:8px;
  }
  body.credentials-page .credentials-desktop-development-title{
    color:#08243e;
    font-family:"Source Serif 4",Georgia,serif;
    font-size:1.06rem;
    line-height:1.1;
    font-weight:700;
    margin-bottom:15px;
  }

  body.credentials-page .credentials-desktop-award-icon{
    width:25px;
    height:29px;
    color:#c89124;
    flex:0 0 auto;
  }
  body.credentials-page .credentials-desktop-certificate-face > .credentials-desktop-award-icon{
    position:absolute;
    left:50%;
    bottom:17px;
    transform:translateX(-50%);
  }

  body.credentials-page .credentials-desktop-certificate-cue{
    position:absolute;
    right:20px;
    bottom:18px;
    color:#8d620f;
    font-size:.57rem;
    line-height:1;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
  }

  body.credentials-page .credentials-desktop-detail-logo{
    display:block;
    width:auto;
    max-width:160px;
    height:48px;
    max-height:48px;
    object-fit:contain;
    margin:0 auto 19px;
  }
  body.credentials-page .credentials-desktop-detail-logo-microsoft{max-width:176px;}

  body.credentials-page .credentials-desktop-detail-heading{
    color:#08243e;
    font-family:"Source Serif 4",Georgia,serif;
    font-size:1.18rem;
    line-height:1.12;
    font-weight:700;
    text-align:center;
    margin:2px 0 22px;
  }

  body.credentials-page .credentials-desktop-detail-list{
    position:relative;
    width:min(100%,760px);
    margin:0 auto;
    padding:5px 0 0 28px;
    flex:1 1 auto;
    min-height:0;
  }
  body.credentials-page .credentials-desktop-detail-list::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:6px;
    width:2px;
    background:linear-gradient(180deg,rgba(215,165,54,.2),#d7a536 14%,#d7a536 86%,rgba(215,165,54,.2));
    transform:scaleY(0);
    transform-origin:top;
    transition:transform .42s cubic-bezier(.22,.61,.36,1) .22s;
  }
  body.credentials-page .credentials-desktop-detail-list p{
    position:relative;
    margin:0 0 10px;
    padding-left:11px;
    color:#30495f;
    font-size:.84rem;
    line-height:1.22;
    opacity:0;
    transform:translateX(20px);
    transition:opacity .28s ease, transform .38s cubic-bezier(.22,.61,.36,1);
  }
  body.credentials-page .credentials-desktop-detail-list p::before{
    content:"";
    position:absolute;
    left:-5px;
    top:.48em;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#d7a536;
  }
  body.credentials-page .credentials-desktop-detail-list p strong{
    display:inline;
    color:#08243e;
    font-size:.86rem;
    font-weight:800;
    letter-spacing:.01em;
    margin-right:8px;
  }
  body.credentials-page .credentials-desktop-detail-list p span{display:inline;}
  body.credentials-page .credentials-desktop-certificate-detail > .credentials-desktop-award-icon{
    position:absolute;
    left:50%;
    bottom:18px;
    width:25px;
    height:29px;
    transform:translateX(-50%);
    opacity:0;
    transition:opacity .28s ease .43s;
  }
  body.credentials-page .credentials-desktop-detail-cue{
    position:absolute;
    right:27px;
    bottom:23px;
    color:#8d620f;
    font-size:.58rem;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
    opacity:0;
    transition:opacity .25s ease .42s;
  }

  body.credentials-page .credentials-desktop-certificate.is-origin-hidden{
    visibility:hidden;
  }

  .credentials-desktop-focus-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:9000;
    background:rgba(4,20,38,.18);
    backdrop-filter:blur(1.2px);
    -webkit-backdrop-filter:blur(1.2px);
    opacity:0;
    pointer-events:none;
    transition:opacity .38s ease;
  }
  .credentials-desktop-focus-backdrop.is-visible{opacity:1;}

  body.credentials-page .credentials-desktop-focus-card{
    position:fixed!important;
    z-index:9010;
    margin:0!important;
    aspect-ratio:auto!important;
    perspective:1800px!important;
    transition:left .62s cubic-bezier(.22,.61,.36,1), top .62s cubic-bezier(.22,.61,.36,1), width .62s cubic-bezier(.22,.61,.36,1), height .62s cubic-bezier(.22,.61,.36,1), filter .45s ease;
    filter:drop-shadow(0 20px 34px rgba(3,22,47,.22));
  }
  body.credentials-page .credentials-desktop-focus-card:hover .credentials-desktop-certificate-inner{
    transform:none;
  }
  body.credentials-page .credentials-desktop-focus-card.is-in-focus .credentials-desktop-certificate-inner{
    box-shadow:0 24px 52px rgba(5,26,48,.22), inset 0 0 0 8px rgba(215,165,54,.09), inset 0 0 0 12px rgba(10,39,64,.055);
  }
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-certificate-inner{
    transform:rotateY(180deg)!important;
  }
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list::before{transform:scaleY(1);}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p{
    opacity:1;
    transform:translateX(0);
  }
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(1){transition-delay:.28s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(2){transition-delay:.32s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(3){transition-delay:.36s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(4){transition-delay:.40s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(5){transition-delay:.44s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(6){transition-delay:.48s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(7){transition-delay:.52s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-list p:nth-child(8){transition-delay:.56s;}
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-certificate-detail > .credentials-desktop-award-icon,
  body.credentials-page .credentials-desktop-focus-card.is-open .credentials-desktop-detail-cue{opacity:1;}

  body.credentials-page .credentials-desktop-certificate-section .reference-view-all-wrap{margin-top:24px;}
}

@media (min-width:761px) and (max-width:1120px){
  body.credentials-page .credentials-desktop-certificate-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(calc(100% - 48px),940px);
  }
}

@media (min-width:761px) and (max-height:760px){
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail{
    padding-top:22px;
    padding-bottom:48px;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-logo{height:40px;max-height:40px;margin-bottom:14px;}
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p{font-size:.76rem;line-height:1.16;margin-bottom:7px;}
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p strong{font-size:.79rem;}
}

@media (max-width:760px){
  body.credentials-page .credentials-desktop-certificate-gallery{display:none!important;}
  .credentials-desktop-focus-backdrop{display:none!important;}
}

@media (min-width:761px) and (prefers-reduced-motion:reduce){
  body.credentials-page .credentials-desktop-focus-card,
  body.credentials-page .credentials-desktop-certificate-inner,
  .credentials-desktop-focus-backdrop,
  body.credentials-page .credentials-desktop-detail-list::before,
  body.credentials-page .credentials-desktop-detail-list p{transition-duration:.01ms!important;}
}

/* All Credentials — desktop bright award accent.
   Reuses the certificate award motif as a true gold decorative object, not a watermark. */
@media (min-width:761px){
  body.credentials-page .credentials-inline-shell{
    position:relative;
  }

  body.credentials-page .credentials-inline-content,
  body.credentials-page .credentials-inline-kicker,
  body.credentials-page .credentials-inline-shell > h2,
  body.credentials-page .credentials-inline-close-wrap{
    position:relative;
    z-index:2;
  }

  body.credentials-page .credentials-inline-award-display{
    position:absolute;
    z-index:1;
    top:138px;
    right:clamp(34px,7.2vw,118px);
    width:clamp(132px,10.5vw,188px);
    aspect-ratio:32 / 36;
    color:#d7a536;
    pointer-events:none;
    filter:
      drop-shadow(0 8px 12px rgba(70,42,0,.10))
      drop-shadow(0 0 10px rgba(215,165,54,.24));
  }

  body.credentials-page .credentials-inline-award-display svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
  }

  body.credentials-page .credentials-inline-award-base{
    color:#d7a536;
  }

  body.credentials-page .credentials-inline-award-shine{
    color:#fff0a4;
    opacity:.92;
    clip-path:polygon(-28% 0,-5% 0,15% 100%,-8% 100%);
    animation:kjtCredentialsAwardShimmer 4.8s cubic-bezier(.45,0,.55,1) infinite;
  }

  @keyframes kjtCredentialsAwardShimmer{
    0%,24%{clip-path:polygon(-30% 0,-8% 0,12% 100%,-10% 100%);opacity:0;}
    30%{opacity:.20;}
    46%{clip-path:polygon(42% 0,60% 0,80% 100%,60% 100%);opacity:.95;}
    61%{clip-path:polygon(108% 0,130% 0,150% 100%,128% 100%);opacity:0;}
    100%{clip-path:polygon(108% 0,130% 0,150% 100%,128% 100%);opacity:0;}
  }

  @media (prefers-reduced-motion:reduce){
    body.credentials-page .credentials-inline-award-shine{
      animation:none;
      opacity:.24;
      clip-path:polygon(38% 0,55% 0,75% 100%,58% 100%);
    }
  }
}

@media (max-width:760px){
  body.credentials-page .credentials-inline-award-display{
    display:none!important;
  }
}

/* Desktop certificate-face refinement — seal + action balance only.
   Keep gallery, logos, summaries, flip/focus behavior and phone view unchanged. */
@media (min-width:761px){
  /* Make the award mark read like a real metallic certificate seal rather than line art. */
  body.credentials-page .credentials-desktop-award-icon{
    color:#d7a536;
    overflow:visible;
    filter:drop-shadow(0 1px 1px rgba(112,72,8,.24));
  }
  body.credentials-page .credentials-desktop-award-icon circle{
    fill:#d7a536 !important;
    stroke:#a86f10 !important;
    stroke-width:1.15 !important;
  }
  body.credentials-page .credentials-desktop-award-icon path:first-of-type{
    fill:#e1aa34 !important;
    stroke:#a86f10 !important;
    stroke-width:1.15 !important;
  }
  body.credentials-page .credentials-desktop-award-icon path:last-of-type{
    fill:#fff4c8 !important;
    stroke:#b67b14 !important;
    stroke-width:.7 !important;
  }

  /* Front: substantial lower-right seal, balanced by a left-anchored action. */
  body.credentials-page .credentials-desktop-certificate-face > .credentials-desktop-award-icon{
    left:auto !important;
    right:18px !important;
    bottom:12px !important;
    width:43px !important;
    height:48px !important;
    transform:none !important;
    transform-origin:50% 50%;
    animation:credentialsCertificateSealShimmer 5.2s ease-in-out infinite;
  }
  body.credentials-page .credentials-desktop-certificate-cue{
    left:20px !important;
    right:auto !important;
    bottom:20px !important;
    color:#8d620f;
    font-size:.60rem;
    letter-spacing:.075em;
    text-align:left;
    white-space:nowrap;
  }

  /* Reverse keeps the award small/discreet, but uses the same richer gold material. */
  body.credentials-page .credentials-desktop-certificate-detail > .credentials-desktop-award-icon{
    width:28px !important;
    height:32px !important;
    animation:credentialsCertificateSealShimmer 5.2s ease-in-out infinite;
  }

  @keyframes credentialsCertificateSealShimmer{
    0%,72%,100%{
      filter:drop-shadow(0 1px 1px rgba(112,72,8,.24)) brightness(1) saturate(1);
    }
    78%{
      filter:drop-shadow(0 1px 2px rgba(112,72,8,.28)) brightness(1.30) saturate(1.18);
    }
    84%{
      filter:drop-shadow(0 1px 1px rgba(112,72,8,.24)) brightness(1.06) saturate(1.05);
    }
  }

  @media (prefers-reduced-motion:reduce){
    body.credentials-page .credentials-desktop-award-icon{
      animation:none !important;
    }
  }
}


/* Desktop focused certificate refinement — smaller close-up + centered detail composition only. */
@media (min-width:761px){
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail{
    justify-content:center !important;
    padding:34px 42px 50px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-logo{
    flex:0 0 auto;
    margin:0 auto 18px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-heading{
    flex:0 0 auto;
    margin:0 auto 18px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list{
    flex:0 0 auto !important;
    width:min(100%,620px) !important;
    margin:0 auto !important;
    padding:4px 0 4px 28px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list::before{
    top:0 !important;
    bottom:0 !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p{
    margin-bottom:8px !important;
    line-height:1.19 !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p:last-child{
    margin-bottom:0 !important;
  }
}

/* Desktop Credentials front-face hierarchy refinement:
   tighten vendor-to-summary spacing and bridge it with the established gold star motif.
   Fronts only; focused reverse, phone, and interaction behavior remain unchanged. */
@media (min-width:761px){
  body.credentials-page .credentials-desktop-certificate-face > .credentials-desktop-certificate-logo{
    margin-bottom:6px !important;
  }

  body.credentials-page .credentials-desktop-certificate-summary{
    min-height:48px;
    gap:3px;
  }

  body.credentials-page .credentials-desktop-certificate-summary::before{
    content:"—  ✦  —";
    display:block;
    margin:0 0 5px;
    color:#c89124;
    font-family:Georgia,"Times New Roman",serif;
    font-size:.62rem;
    line-height:1;
    font-weight:600;
    letter-spacing:.08em;
    text-align:center;
    opacity:.88;
  }

  /* Employer-sponsored face uses a text vendor treatment rather than a logo. */
  body.credentials-page .credentials-desktop-development-title{
    margin-bottom:6px !important;
  }
}

/* Backside/focused certificate formatting refinement ONLY.
   Do not alter resting certificate faces. */
@media (min-width:761px){
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail{
    justify-content:center !important;
    align-items:center !important;
    padding:42px 58px 92px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-logo{
    flex:0 0 auto !important;
    margin:0 auto 26px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-heading{
    flex:0 0 auto !important;
    margin:0 auto 18px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list{
    flex:0 0 auto !important;
    width:min(100%,690px) !important;
    margin:0 auto !important;
    padding:8px 0 10px 34px !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list::before{
    left:0 !important;
    top:6px !important;
    bottom:10px !important;
    width:2px !important;
    background:linear-gradient(180deg,rgba(215,165,54,.10),#d7a536 18%,#efc34f 52%,#d7a536 84%,rgba(215,165,54,.10)) !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p{
    margin-bottom:12px !important;
    padding-left:14px !important;
    color:#365066 !important;
    font-size:.98rem !important;
    line-height:1.28 !important;
    text-wrap:pretty;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p::before{
    left:-7px !important;
    top:.5em !important;
    width:7px !important;
    height:7px !important;
    background:#d7a536 !important;
    box-shadow:0 0 0 1px rgba(168,111,16,.16);
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p strong{
    color:#08243e !important;
    font-size:1.02rem !important;
    font-weight:800 !important;
    margin-right:10px !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p:last-child{
    margin-bottom:0 !important;
  }

  /* Prominent, bright return seal on the enlarged BACK only. */
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail > .credentials-desktop-award-icon{
    left:auto !important;
    right:30px !important;
    bottom:48px !important;
    width:58px !important;
    height:66px !important;
    transform:none !important;
    filter:
      drop-shadow(0 2px 2px rgba(112,72,8,.24))
      drop-shadow(0 0 8px rgba(215,165,54,.32))
      brightness(1.08)
      saturate(1.1) !important;
    animation:credentialsCertificateBackSealShimmer 4.7s ease-in-out infinite !important;
  }

  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-cue{
    right:26px !important;
    bottom:18px !important;
    color:#a77416 !important;
    font-size:.72rem !important;
    font-weight:800 !important;
    letter-spacing:.085em !important;
    text-align:right !important;
    max-width:220px !important;
  }

  @keyframes credentialsCertificateBackSealShimmer{
    0%,64%,100%{
      filter:
        drop-shadow(0 2px 2px rgba(112,72,8,.24))
        drop-shadow(0 0 8px rgba(215,165,54,.26))
        brightness(1.05)
        saturate(1.08);
    }
    72%{
      filter:
        drop-shadow(0 3px 4px rgba(112,72,8,.28))
        drop-shadow(0 0 15px rgba(255,220,120,.44))
        brightness(1.34)
        saturate(1.22);
    }
    79%{
      filter:
        drop-shadow(0 2px 3px rgba(112,72,8,.25))
        drop-shadow(0 0 10px rgba(255,220,120,.30))
        brightness(1.16)
        saturate(1.12);
    }
  }
}


/* Final desktop credential-record refinement — scoped only to the focused BACK
   and Complete Credential Record section. Certificate fronts are untouched. */
@media (min-width:761px){
  /* Focused reverse: make the award a prominent return seal centered above the cue. */
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail > .credentials-desktop-award-icon{
    left:auto !important;
    right:92px !important;
    bottom:45px !important;
    width:90px !important;
    height:102px !important;
    transform:none !important;
    overflow:visible !important;
    animation:credentialsBackSealGoldPulse 4.5s cubic-bezier(.45,0,.55,1) infinite !important;
    filter:
      drop-shadow(0 3px 3px rgba(103,62,0,.28))
      drop-shadow(0 0 13px rgba(236,183,55,.34)) !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail > .credentials-desktop-award-icon circle{
    fill:#e0a72a !important;
    stroke:#9f6505 !important;
    stroke-width:1.35 !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail > .credentials-desktop-award-icon path:first-of-type{
    fill:#e5ac2e !important;
    stroke:#9f6505 !important;
    stroke-width:1.25 !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail > .credentials-desktop-award-icon path:last-of-type{
    fill:#fff1a8 !important;
    stroke:#b8740d !important;
    stroke-width:.72 !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-cue{
    right:28px !important;
    bottom:17px !important;
    max-width:220px !important;
  }

  @keyframes credentialsBackSealGoldPulse{
    0%,60%,100%{
      filter:drop-shadow(0 3px 3px rgba(103,62,0,.28)) drop-shadow(0 0 11px rgba(236,183,55,.28)) brightness(1.02) saturate(1.08);
    }
    69%{
      filter:drop-shadow(0 4px 4px rgba(103,62,0,.30)) drop-shadow(0 0 22px rgba(255,216,100,.55)) brightness(1.42) saturate(1.25);
    }
    77%{
      filter:drop-shadow(0 3px 3px rgba(103,62,0,.28)) drop-shadow(0 0 15px rgba(255,216,100,.38)) brightness(1.16) saturate(1.13);
    }
  }

  /* Complete Credential Record: much larger, farther inward, bright filled seal. */
  body.credentials-page .credentials-inline-award-display{
    top:150px !important;
    right:clamp(120px,10.5vw,190px) !important;
    width:clamp(245px,17vw,320px) !important;
    color:#e0a72a !important;
    filter:
      drop-shadow(0 10px 16px rgba(70,42,0,.13))
      drop-shadow(0 0 18px rgba(236,183,55,.34)) !important;
    animation:credentialsRecordSealGoldPulse 5.2s cubic-bezier(.45,0,.55,1) infinite;
  }
  body.credentials-page .credentials-inline-award-base circle{
    fill:#e0a72a !important;
    stroke:#9f6505 !important;
    stroke-width:1.35 !important;
  }
  body.credentials-page .credentials-inline-award-base path:first-of-type{
    fill:#e5ac2e !important;
    stroke:#9f6505 !important;
    stroke-width:1.25 !important;
  }
  body.credentials-page .credentials-inline-award-base path:last-of-type{
    fill:#fff1a8 !important;
    stroke:#b8740d !important;
    stroke-width:.72 !important;
  }
  body.credentials-page .credentials-inline-award-shine{
    color:#fff6c9 !important;
    opacity:0;
    animation:kjtCredentialsAwardShimmerStrong 5.2s cubic-bezier(.45,0,.55,1) infinite !important;
  }
  body.credentials-page .credentials-inline-award-shine circle,
  body.credentials-page .credentials-inline-award-shine path:first-of-type{
    fill:#fff6c9 !important;
    stroke:#fff6c9 !important;
  }
  body.credentials-page .credentials-inline-award-shine path:last-of-type{
    fill:#ffffff !important;
    stroke:#fff6c9 !important;
  }

  @keyframes kjtCredentialsAwardShimmerStrong{
    0%,22%{clip-path:polygon(-34% 0,-12% 0,8% 100%,-14% 100%);opacity:0;}
    30%{opacity:.18;}
    45%{clip-path:polygon(35% 0,55% 0,75% 100%,55% 100%);opacity:.92;}
    60%{clip-path:polygon(108% 0,132% 0,152% 100%,128% 100%);opacity:0;}
    100%{clip-path:polygon(108% 0,132% 0,152% 100%,128% 100%);opacity:0;}
  }
  @keyframes credentialsRecordSealGoldPulse{
    0%,58%,100%{filter:drop-shadow(0 10px 16px rgba(70,42,0,.13)) drop-shadow(0 0 16px rgba(236,183,55,.28)) brightness(1.02) saturate(1.08);}
    66%{filter:drop-shadow(0 11px 18px rgba(70,42,0,.15)) drop-shadow(0 0 29px rgba(255,216,100,.54)) brightness(1.28) saturate(1.20);}
    74%{filter:drop-shadow(0 10px 16px rgba(70,42,0,.13)) drop-shadow(0 0 20px rgba(255,216,100,.35)) brightness(1.10) saturate(1.12);}
  }

  /* Discreet upper-right exit; established lower close remains intact. */
  body.credentials-page .credentials-inline-close-corner{
    position:absolute;
    top:18px;
    right:22px;
    z-index:5;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    background:transparent;
    color:rgba(8,36,62,.58);
    font:400 29px/1 Arial,sans-serif;
    cursor:pointer;
    transition:color .2s ease, transform .2s ease, opacity .2s ease;
  }
  body.credentials-page .credentials-inline-close-corner:hover,
  body.credentials-page .credentials-inline-close-corner:focus-visible{
    color:#b27e1f;
    transform:scale(1.06);
    outline:none;
  }
}

@media (max-width:760px){
  body.credentials-page .credentials-inline-close-corner{display:none !important;}
}

@media (min-width:761px) and (prefers-reduced-motion:reduce){
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-certificate-detail > .credentials-desktop-award-icon,
  body.credentials-page .credentials-inline-award-display,
  body.credentials-page .credentials-inline-award-shine{animation:none !important;}
}

/* SAFE BACKSIDE FLOW CORRECTION — no float/shape-outside hacks.
   Resting certificate fronts are untouched. */
@media (min-width:761px){
  /* Small certificate ornament directly below the vendor on the enlarged back. */
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-flourish{
    flex:0 0 auto;
    margin:-15px auto 15px;
    color:#c89124;
    font-family:Georgia,"Times New Roman",serif;
    font-size:.70rem;
    line-height:1;
    font-weight:600;
    letter-spacing:.10em;
    text-align:center;
    opacity:.94;
  }

  /* Explicitly retain the approved full-width detail field for every certificate. */
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list{
    width:min(100%,690px) !important;
    max-width:690px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-right:0 !important;
  }
  body.credentials-page .credentials-desktop-focus-card .credentials-desktop-detail-list p{
    width:auto !important;
    max-width:none !important;
  }

  /* Microsoft's long reverse needs a top-anchored composition so the logo and
     ornament can never be pushed/clipped above the certificate. */
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-certificate-detail{
    justify-content:flex-start !important;
    padding-top:24px !important;
    padding-bottom:78px !important;
  }
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-detail-logo{
    height:42px !important;
    max-height:42px !important;
    margin:0 auto 15px !important;
  }
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-detail-flourish{
    margin:-8px auto 12px !important;
  }
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-detail-list{
    width:min(100%,660px) !important;
    max-width:660px !important;
    padding-top:2px !important;
    padding-bottom:2px !important;
  }
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-detail-list p{
    margin-bottom:8px !important;
    font-size:.91rem !important;
    line-height:1.20 !important;
  }
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-detail-list p strong{
    font-size:.95rem !important;
  }

  /* The upper Microsoft rows retain full width. ONLY the final two rows, which
     descend into the seal's vertical zone, stop before the seal. This creates
     the intended visual wrap: text on the seal's left, blank space from the
     seal through the right certificate margin. */
  body.credentials-page .credentials-desktop-focus-card.credentials-desktop-certificate-longback .credentials-desktop-detail-list p:nth-last-child(-n+2){
    width:calc(100% - 150px) !important;
    max-width:calc(100% - 150px) !important;
  }
}

/* Final desktop Credentials polish — record link placement, hero rule, and metallic center gleam only. */
@media (min-width:761px){
  /* Restore the thin gold edge beneath the Credentials hero. */
  body.credentials-page .credentials-reference-hero{
    border-bottom:1pt solid #d7a536 !important;
  }

  /* COMPLETE CREDENTIAL RECORD now acts as the visible gateway above the certificate gallery. */
  body.credentials-page .credentials-desktop-certificate-section > .reference-view-all-wrap{
    margin:0 auto 22px !important;
    text-align:center !important;
  }

  /* Keep the approved medal size, but move it diagonally up/right toward the close control. */
  body.credentials-page .credentials-inline-award-display{
    top:86px !important;
    right:clamp(64px,5.2vw,92px) !important;
    width:clamp(245px,17vw,320px) !important;
    animation:none !important;
    filter:
      drop-shadow(0 10px 16px rgba(70,42,0,.12))
      drop-shadow(0 0 12px rgba(236,183,55,.22)) !important;
  }

  /* Remove the old moving light-band shimmer completely. */
  body.credentials-page .credentials-inline-award-shine{
    display:none !important;
    animation:none !important;
  }

  /* A brief specular center gleam: light catches the medal, then disappears. */
  body.credentials-page .credentials-inline-award-display::after{
    content:"✦";
    position:absolute;
    left:50%;
    top:33.5%;
    z-index:3;
    transform:translate(-50%,-50%) scale(.28);
    transform-origin:center;
    color:#fff9dc;
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(26px,2.15vw,40px);
    line-height:1;
    opacity:0;
    text-shadow:
      0 0 4px rgba(255,255,255,.95),
      0 0 10px rgba(255,236,156,.86),
      0 0 18px rgba(255,214,85,.45);
    pointer-events:none;
    animation:kjtCredentialsCenterGleam 5.8s ease-in-out infinite;
  }

  @keyframes kjtCredentialsCenterGleam{
    0%,68%,100%{
      opacity:0;
      transform:translate(-50%,-50%) scale(.28) rotate(0deg);
    }
    72%{
      opacity:.28;
      transform:translate(-50%,-50%) scale(.62) rotate(6deg);
    }
    76%{
      opacity:1;
      transform:translate(-50%,-50%) scale(1.05) rotate(12deg);
    }
    80%{
      opacity:.22;
      transform:translate(-50%,-50%) scale(.68) rotate(18deg);
    }
    84%{
      opacity:0;
      transform:translate(-50%,-50%) scale(.34) rotate(24deg);
    }
  }
}

@media (min-width:761px) and (prefers-reduced-motion:reduce){
  body.credentials-page .credentials-inline-award-display::after{
    animation:none !important;
    opacity:.24;
    transform:translate(-50%,-50%) scale(.55);
  }
}
