/* UKAS Accreditation page. No script: the chips are plain jump links and all motion is scroll-driven CSS, off for
   reduced motion and static where scroll timelines are not supported. */

#proof,#audit,#cycle,#benefits,#appointed-person{scroll-margin-top:96px}

/* Hero: the live abstract graphic under a light veil (as the policy pages), drifting gently as the page scrolls */
.ua-hero::after{background:linear-gradient(90deg,rgba(0,23,63,.78),rgba(0,23,63,.36) 55%,rgba(0,23,63,.08))}
.ua-hero>img{object-position:50% 50%}
.ua-hero .crumbs{margin-bottom:clamp(28px,5vw,64px)}
.ua-hero .crumbs a[aria-current]{text-decoration:none;color:#fff}
.ua-hero .label{color:#fff}
.ua-hero .lead{max-width:36em}
.btn .arrow{width:15px;height:15px;flex:none}

/* Preview only: facts still to confirm (same look as the cutting page) */
.pv-todo{max-width:var(--wrap);margin:20px auto 0;padding:14px var(--gutter)}
.pv-todo strong{display:block;margin-bottom:6px;color:#7d5200;font-size:14px}
.pv-todo ul{display:flex;flex-wrap:wrap;gap:6px}
.pv-todo li{padding:4px 10px;border:1px dashed #c9a24a;border-radius:3px;background:#fff8e8;color:#7d5200;font-size:13.5px}

/* Statement + the certificate card */
.ua-proof{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,6vw,96px);align-items:start}
.ua-meta{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--muted);font-size:14px}
.ua-meta li{display:flex;align-items:center;gap:7px}
.ua-meta svg{width:17px;height:17px;flex:none;color:var(--orange)}
.ua-meta b{font-weight:600;color:var(--navy)}
.ua-cred{display:grid;gap:26px;padding:clamp(22px,2.8vw,36px);background:var(--ground);border-radius:4px}
.ua-cert{max-width:250px;width:70%;margin:6px auto 0;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.ua-cred:hover .ua-cert{transform:none;box-shadow:0 34px 60px -30px rgba(0,23,63,.7)}
.ua-cred-h{margin-bottom:8px;color:var(--navy);font-size:clamp(19px,.5vw + 17px,23px);font-weight:600;line-height:1.25}
.ua-cred-text>p:not(.ua-cred-h){color:var(--muted)}
.ua-cred .btns{margin-top:20px}

/* What each audit checks: five ticks joined by a line, ticked off one by one as the row scrolls in */
.ua-audit-head{margin-bottom:clamp(28px,3.4vw,44px)}
.ua-audit-head p{color:var(--muted)}
.ua-checks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;list-style:none;view-timeline:--checks block}
.ua-checks li{position:relative;padding-right:18px}
.ua-checks li::before{content:"";position:absolute;top:25px;left:52px;right:0;height:2px;background:var(--line)}
.ua-checks li:last-child::before{display:none}
.ua-checks b{position:relative;z-index:1;display:grid;place-items:center;width:52px;height:52px;margin-bottom:16px;border-radius:50%;background:var(--navy);transition:background .25s}
.ua-checks li:hover b{background:var(--orange)}
.ua-checks svg{width:24px;height:24px}
.ua-checks path{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.ua-checks span{display:block;color:var(--navy);font-size:clamp(19px,.6vw + 16px,24px);font-weight:600;line-height:1.2}
.ua-checks small{display:block;margin-bottom:4px;color:var(--muted);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}

/* Four-year cycle */
.ua-cycle{align-items:center}
.ua-key{display:grid;gap:12px;padding-top:6px}
.ua-key li{display:flex;align-items:center;gap:12px;color:var(--navy);font-weight:500}
.ua-key i{flex:none;width:18px;height:18px;border-radius:50%}
.ua-key .k-dot{background:var(--orange);box-shadow:0 0 0 3px #fff,0 0 0 4px var(--line)}
.ua-key .k-ring{border:4px solid var(--navy)}
.ua-ring{width:100%;max-width:400px;margin:0 auto;view-timeline:--ring block}
.ua-ring-svg{width:100%;overflow:visible}
.ua-ring .track{fill:none;stroke:var(--ground);stroke-width:14}
.ua-ring .arc{fill:none;stroke:var(--navy);stroke-width:14;stroke-linecap:butt;stroke-dasharray:1}
.ua-ring .dot{fill:var(--orange);stroke:#fff;stroke-width:4}
.ua-ring text{fill:var(--muted);font-size:14px;font-weight:600}
.ua-ring .big{fill:var(--navy);font-size:76px;font-weight:600;letter-spacing:-.03em}
.ua-ring .sub{fill:var(--navy);font-size:16px;font-weight:500}

/* Benefits: the live list as numbered cards */
.ua-ben-head{max-width:46em;margin-bottom:clamp(28px,3.4vw,44px)}
.ua-ben{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}
.ua-ben li{padding:clamp(20px,2.2vw,28px);background:#fff;border:1px solid var(--line);border-radius:4px;transition:translate .3s var(--ease),box-shadow .3s var(--ease),border-color .3s}
.ua-ben li:hover{translate:0 -4px;border-color:#cfd6e2;box-shadow:0 22px 40px -28px rgba(0,23,63,.45)}
.ua-ben-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.ua-ben-top span{color:var(--orange);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.ua-ico{width:30px;height:30px;color:var(--navy)}
.ua-ben p{color:var(--ink);font-size:15.5px;line-height:1.55}
.ua-ben strong{display:block;margin-bottom:6px;color:var(--navy);font-size:18px;font-weight:600;line-height:1.3}
/* The live sentences start in lower case after the colon; as their own line they read better capitalised (display only) */
.ua-ben strong+span{display:block}
.ua-ben strong+span::first-letter{text-transform:uppercase}

/* Appointed person: a navy contact card on white, so the band does not run into the navy footer */
.ua-ap{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(28px,6vw,96px);align-items:center}
.ua-person{display:flex;align-items:center;gap:20px;padding:clamp(22px,2.6vw,34px);border-radius:4px;background:var(--navy);box-shadow:0 30px 60px -36px rgba(0,23,63,.7)}
.ua-mono{flex:none;display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#fff;color:var(--navy);font-size:24px;font-weight:600;letter-spacing:.02em}
.ua-name{color:#fff;font-size:21px;font-weight:600;line-height:1.25}
.ua-role{margin:2px 0 10px;color:var(--on-navy)}
.ua-mail{color:#fff;font-weight:500;text-underline-offset:3px;overflow-wrap:anywhere}
.ua-mail:hover{color:var(--orange)}

@media (max-width:1024px){
  .ua-ben{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .ua-proof,.ua-ap{grid-template-columns:1fr}
  .ua-cred{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center}
  .ua-cert{width:100%;margin:0}
  .ua-checks{grid-template-columns:1fr}
  .ua-checks li{display:flex;align-items:center;gap:16px;padding:0 0 18px}
  .ua-checks li::before{top:52px;bottom:0;left:25px;right:auto;width:2px;height:auto}
  .ua-checks b{margin:0}
  .ua-ring{max-width:320px}
}
@media (max-width:640px){
  .ua-hero .btns .btn{flex:1 1 100%}
  .ua-cred{grid-template-columns:1fr}
  .ua-cert{width:58%;margin:4px auto 0}
  .ua-ben-top{margin-bottom:10px}
  .ua-cred .btns .btn{flex:1 1 100%}
  .ua-ben{grid-template-columns:1fr}
  .ua-person{gap:16px}
  .ua-mono{width:60px;height:60px;font-size:20px}
}

@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .ua-hero>img{animation:ua-drift linear both;animation-timeline:scroll(root);animation-range:0 80vh}
    .ua-checks li{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 50%}
    .ua-checks path{animation:ua-draw linear both;animation-timeline:--checks;animation-range:entry calc(40% + var(--i) * 12%) entry calc(60% + var(--i) * 12%)}
    .ua-checks b{animation:node linear both;animation-timeline:--checks;animation-range:entry calc(50% + var(--i) * 12%) entry calc(65% + var(--i) * 12%)}
    .ua-ring .arc{animation:ua-draw linear both;animation-timeline:--ring;animation-range:cover calc(8% + var(--i) * 8%) cover calc(16% + var(--i) * 8%)}
    .ua-ring .dot{transform-box:fill-box;transform-origin:center;animation:ua-pop linear both;animation-timeline:--ring;animation-range:cover calc(14% + var(--i) * 8%) cover calc(18% + var(--i) * 8%)}
    .ua-ben li,.ua-person{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
  }
}
@keyframes ua-drift{from{transform:scale(1.16)}to{transform:translateY(6%) scale(1.16)}}
@keyframes ua-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes ua-pop{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:none}}
