/* =====================================================================================================================
   The Certification and Chapter pages (views hub/programmes/*; owner, 14 Nov 2026: "a proper design in the Hub look, and an interest list").
   The Hub home's language: a navy hero with the certificate's engraved lines and a drawing on the right, white and pale-blue bands, line icons in
   navy, cards with the kit's radius and shadow, page and section headings dark grey (--ck-heading), card titles navy. Tokens only.
   ===================================================================================================================== */

/* the hero */
.ck .pg-hero{position:relative;overflow:hidden;padding:clamp(48px,6vw,88px) 0;color:var(--ck-on-navy);
  background:url("/assets/img/hub-illustrations/cert-pattern.svg") right top/cover no-repeat,
             linear-gradient(135deg,var(--ck-navy-deep) 0%,var(--ck-navy) 55%,var(--ck-navy-far) 100%)}
.ck .pg-hero__in{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:clamp(24px,5vw,72px)}
.ck .pg-badge{display:inline-block;margin:0 0 16px;padding:4px 14px;border-radius:var(--ck-radius-pill);background:var(--ck-orange);color:var(--ck-navy);
  font:700 12px/1.6 var(--ck-font-body);letter-spacing:.08em;text-transform:uppercase}
.ck .pg-hero__title{margin:0 0 16px;color:var(--ck-white);font:700 var(--ck-fs-h1)/1.1 var(--ck-font-head);letter-spacing:-.015em}
.ck .pg-hero__lead{max-width:56ch;margin:0 0 28px;color:var(--ck-on-navy);font-size:1.125rem;line-height:1.7}
.ck .pg-hero__cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:0}
.ck .pg-hero__link{color:var(--ck-white);font-weight:600;text-decoration:none}
.ck .pg-hero__link:hover{color:var(--ck-white);text-decoration:underline;text-underline-offset:.16em}
.ck .pg-hero__art{width:100%;max-width:480px;height:auto;justify-self:center}

/* the bands */
.ck .pg-sec{padding:clamp(48px,6vw,88px) 0;background:var(--ck-white)}
.ck .pg-sec--tint{background:var(--ck-light)}
.ck .pg-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:12px;color:var(--ck-blue-text-deep)}
.ck .pg-eyebrow::before{content:"";flex:0 0 auto;width:28px;height:3px;border-radius:2px;background:var(--ck-orange)}
.ck .pg-h2{max-width:30ch;margin:0 0 28px;color:var(--ck-heading);font:700 clamp(1.6rem,1.25rem + 1.2vw,2.2rem)/1.2 var(--ck-font-head)}
.ck .pg-lead{max-width:62ch;margin:-12px 0 28px;color:var(--ck-muted);font-size:1.0625rem;line-height:1.7}

/* the steps */
.ck .pg-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.ck .pg-step{position:relative;display:flex;flex-direction:column;gap:6px;padding:24px;border:1px solid var(--ck-line);border-top:3px solid var(--ck-orange);
  border-radius:var(--ck-radius);background:var(--ck-white);box-shadow:var(--ck-shadow)}
.ck .pg-step__ico{display:grid;place-items:center;width:56px;height:56px;margin-bottom:8px;border-radius:50%;background:var(--ck-light);color:var(--ck-navy)}
.ck .pg-step__num{color:var(--ck-muted);font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.ck .pg-step__name{color:var(--ck-navy);font:700 1.2rem/1.3 var(--ck-font-head)}
.ck .pg-step__text{color:var(--ck-text);line-height:1.6}

/* the cards */
.ck .pg-cards{display:grid;gap:20px;margin:0;padding:0;list-style:none}
.ck .pg-cards--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ck .pg-cards--5{grid-template-columns:repeat(5,minmax(0,1fr))}
.ck .pg-card{display:flex;flex-direction:column;gap:8px;height:100%;padding:22px;border:1px solid var(--ck-line);border-radius:var(--ck-radius);
  background:var(--ck-white);box-shadow:var(--ck-shadow)}
.ck .pg-card__ico{display:grid;place-items:center;width:48px;height:48px;margin-bottom:6px;border-radius:12px;background:var(--ck-light);color:var(--ck-navy)}
.ck .pg-card__title{margin:0;color:var(--ck-navy);font:700 1.1rem/1.3 var(--ck-font-head)}
.ck .pg-card__text{margin:0;color:var(--ck-muted);font-size:15px;line-height:1.6}
.ck .pg-card--link{position:relative;color:inherit;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ck .pg-card--link:hover{border-color:var(--ck-blue);box-shadow:var(--ck-shadow-lg);transform:translateY(-2px)}
.ck .pg-card__go{margin-top:auto;color:var(--ck-blue-text);font-weight:700}

/* where it stands, and the form beside it */
.ck .pg-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(28px,5vw,64px)}
.ck .pg-stages{display:grid;margin:0;padding:0;list-style:none}
.ck .pg-stage{position:relative;display:flex;flex-direction:column;gap:4px;padding:0 0 22px 36px;color:var(--ck-muted)}
.ck .pg-stage::before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:50%;border:2px solid var(--ck-line-strong);background:var(--ck-white)}
.ck .pg-stage::after{content:"";position:absolute;left:9px;top:25px;bottom:0;width:2px;background:var(--ck-line-strong)}
.ck .pg-stage:last-child::after{display:none}
.ck .pg-stage strong{color:var(--ck-text);font-size:1.0625rem}
.ck .pg-stage.is-now::before{border-color:var(--ck-orange);background:var(--ck-orange)}
.ck .pg-stage.is-now strong{color:var(--ck-navy)}
.ck .pg-stage__tag{margin-left:6px;padding:1px 8px;border-radius:var(--ck-radius-pill);background:var(--ck-orange-pale);color:var(--ck-warning-text);font-size:12px;font-weight:700}
.ck .pg-note{margin-top:8px;padding:18px 20px;border-left:3px solid var(--ck-orange);border-radius:0 var(--ck-radius) var(--ck-radius) 0;background:var(--ck-white)}
.ck .pg-note__title{margin:0 0 4px;color:var(--ck-navy);font-weight:700}
.ck .pg-note p:last-child{margin:0}
.ck .pg-form{padding:clamp(22px,3vw,32px);border:1px solid var(--ck-line);border-top:4px solid var(--ck-blue);border-radius:var(--ck-radius);
  background:var(--ck-white);box-shadow:var(--ck-shadow);scroll-margin-top:calc(var(--ck-sticky-top) + 16px)}
.ck .pg-form__title{margin:0 0 18px;color:var(--ck-heading);font:700 1.35rem/1.25 var(--ck-font-head)}
.ck .pg-form__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.ck .pg-form__field--wide{grid-column:1 / -1}
.ck .pg-form__field .ck-input{width:100%}
.ck .pg-form__choice{display:flex;flex-wrap:wrap;gap:8px 24px;margin:16px 0 0;padding:0;border:0}
.ck .pg-form__choice legend{width:100%;margin-bottom:6px}
.ck .pg-form__choice label{display:inline-flex;align-items:center;gap:8px;min-height:24px}
.ck .pg-form__foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:20px}
.ck .pg-form__foot .ck-hint{flex:1 1 220px;margin:0}
.ck .pg-form__done{display:flex;gap:14px;align-items:flex-start}
.ck .pg-form__done svg{flex:0 0 auto;color:var(--ck-success)}
.ck .pg-form__done-title{margin:0 0 4px;color:var(--ck-heading);font:700 1.25rem/1.3 var(--ck-font-head)}
.ck .pg-form__done p{margin:0;color:var(--ck-text)}

/* tablets and phones */
@media (max-width:1100px){.ck .pg-cards--5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){
  .ck .pg-hero__in,.ck .pg-split{grid-template-columns:minmax(0,1fr)}
  .ck .pg-hero__art{max-width:320px}
  .ck .pg-steps,.ck .pg-cards--4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .ck .pg-steps,.ck .pg-cards--4,.ck .pg-cards--5,.ck .pg-form__grid{grid-template-columns:minmax(0,1fr)}
  .ck .pg-hero__art{display:none}
}
@media (prefers-reduced-motion:reduce){.ck .pg-card--link{transition:none}.ck .pg-card--link:hover{transform:none}}

/* ---- 14 Nov 2026 (owner): three diagrams in place of cards ---- */

/* 1. Certification, "How it will work": a staircase. Four columns; each block taller than the one before, so their tops climb left to right; the last
   (the certificate) orange. The text of each step sits under its block. Down the page on a phone, each step indented a little more. */
.ck .pg-stairs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:14px;margin:8px 0 0;padding:0;list-style:none}
.ck .pg-stair{display:flex;flex-direction:column;gap:12px}
.ck .pg-stair__block{position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;padding:20px 20px 18px;
  border-radius:var(--ck-radius) var(--ck-radius) 4px 4px;color:var(--ck-white);background:var(--ck-navy);box-shadow:var(--ck-shadow)}
.ck .pg-stair--1 .pg-stair__block{height:150px;background:var(--ck-blue-text)}
.ck .pg-stair--2 .pg-stair__block{height:200px;background:var(--ck-blue-deep)}
.ck .pg-stair--3 .pg-stair__block{height:250px;background:var(--ck-navy-mid)}
.ck .pg-stair--4 .pg-stair__block{height:300px;background:var(--ck-orange);color:var(--ck-navy)}
.ck .pg-stair__block::after{content:"";position:absolute;right:-14px;top:22px;width:14px;height:2px;background:var(--ck-line-strong)}
.ck .pg-stair--4 .pg-stair__block::after{display:none}
.ck .pg-stair__ico{display:grid;place-items:center;width:50px;height:50px;margin-bottom:4px;border-radius:50%;background:color-mix(in srgb,var(--ck-white) 18%,transparent)}
.ck .pg-stair--4 .pg-stair__ico{background:color-mix(in srgb,var(--ck-navy) 12%,transparent)}
.ck .pg-stair__num{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.ck .pg-stair__name{font:700 1.15rem/1.25 var(--ck-font-head)}
.ck .pg-stair__text{margin:0;color:var(--ck-text);line-height:1.55}
@media (max-width:760px){
  .ck .pg-stairs{grid-template-columns:minmax(0,1fr);gap:10px}
  .ck .pg-stair__block,.ck .pg-stair--1 .pg-stair__block,.ck .pg-stair--2 .pg-stair__block,.ck .pg-stair--3 .pg-stair__block,.ck .pg-stair--4 .pg-stair__block{height:auto}
  .ck .pg-stair--2{margin-left:16px}.ck .pg-stair--3{margin-left:32px}.ck .pg-stair--4{margin-left:48px}
  .ck .pg-stair__block::after{display:none}
}

/* 2. Certification, "Who it is for": a hub and spokes. A square stage; the CRCGS Certification circle in the middle; five round cards on a circle around it,
   joined to it by dashed spokes; each card turns over (rotateY) on hover, on keyboard focus, or when tapped (.is-flipped, hub-programmes.js). */
.ck .pg-hub{position:relative;width:min(100%,660px);aspect-ratio:1;margin:8px auto 0}
.ck .pg-hub__spokes{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ck .pg-hub__spokes line{stroke:var(--ck-blue);stroke-width:.35;stroke-dasharray:1.4 1.2;vector-effect:non-scaling-stroke}
.ck .pg-hub__spokes line{stroke-width:2;stroke-dasharray:6 6}
.ck .pg-hub__centre{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  width:31%;aspect-ratio:1;border-radius:50%;background:var(--ck-navy);color:var(--ck-white);box-shadow:0 0 0 10px var(--ck-blue-pale),var(--ck-shadow-lg);text-align:center}
.ck .pg-hub__centre-ico{color:var(--ck-orange)}
.ck .pg-hub__centre-name{max-width:80%;font:700 clamp(1.05rem,.8rem + .9vw,1.45rem)/1.2 var(--ck-font-head)}
.ck .pg-hub__spokes-list{margin:0;padding:0;list-style:none}
.ck .pg-spoke{position:absolute;width:23%;aspect-ratio:1;transform:translate(-50%,-50%);perspective:900px}
.ck .pg-spoke--0{left:50%;top:12%}.ck .pg-spoke--1{left:86.1%;top:38.3%}.ck .pg-spoke--2{left:72.3%;top:80.7%}.ck .pg-spoke--3{left:27.7%;top:80.7%}.ck .pg-spoke--4{left:13.9%;top:38.3%}
.ck .pg-spoke__card{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;
  transform-style:preserve-3d;transition:transform .6s var(--ck-ease)}
.ck .pg-spoke__face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14%;border-radius:50%;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;text-align:center;box-shadow:var(--ck-shadow)}
.ck .pg-spoke__front{background:var(--ck-white);border:2px solid var(--ck-blue);color:var(--ck-navy)}
.ck .pg-spoke__ico{display:grid;place-items:center;color:var(--ck-navy)}
.ck .pg-spoke__name{font:700 .95rem/1.2 var(--ck-font-head);color:var(--ck-navy)}
.ck .pg-spoke__back{transform:rotateY(180deg);background:var(--ck-navy);border:2px solid var(--ck-orange);color:var(--ck-white);font-size:.8rem;line-height:1.4}
@media (hover:hover){.ck .pg-spoke__card:hover{transform:rotateY(180deg)}}
.ck .pg-spoke__card:focus-visible,.ck .pg-spoke__card.is-flipped{transform:rotateY(180deg)}
.ck .pg-spoke__card:focus-visible{outline:none}
.ck .pg-spoke__card:focus-visible .pg-spoke__back{box-shadow:0 0 0 3px var(--ck-white),0 0 0 6px var(--ck-navy)}
.ck .pg-hub__hint{margin:12px 0 0;color:var(--ck-muted);font-size:14px;text-align:center}
@media (prefers-reduced-motion:reduce){
  .ck .pg-spoke__card{transition:none}
}
@media (max-width:760px){
  /* a phone: the centre circle on top, the five cards two by two under it (no spokes) */
  .ck .pg-hub{aspect-ratio:auto;display:flex;flex-direction:column;align-items:center;gap:20px}
  .ck .pg-hub__spokes{display:none}
  .ck .pg-hub__centre{position:static;transform:none;width:180px}
  .ck .pg-hub__spokes-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
  .ck .pg-spoke{position:relative;left:auto !important;top:auto !important;width:100%;max-width:170px;justify-self:center;transform:none}
  .ck .pg-spoke__name{font-size:.9rem}
  .ck .pg-spoke__back{font-size:.75rem}
  .ck .pg-spoke:last-child:nth-child(odd){grid-column:1 / -1}   /* the fifth card centred under the others */
}

/* 3. Chapters, "How chapters will be organised": a tree drawn in SVG on wider screens; the same tree as a nested list on phones (and for screen readers). */
.ck .pg-tree{margin:8px 0 0}
.ck .pg-tree__svg{display:block;width:100%;height:auto}
.ck .pg-tree__lines path{fill:none;stroke:var(--ck-line-strong);stroke-width:2}
.ck .pg-tree__lines .pg-tree__more{stroke-dasharray:4 5}
.ck .pg-tree__root{fill:var(--ck-navy)}
.ck .pg-tree__root-text{fill:var(--ck-white);font:700 17px var(--ck-font-head)}
.ck .pg-tree__country{fill:var(--ck-light);stroke:var(--ck-blue);stroke-width:1.5}
.ck .pg-tree__country.is-on{fill:var(--ck-white);stroke:var(--ck-orange);stroke-width:3}
.ck .pg-tree__city{fill:var(--ck-white);stroke:var(--ck-navy);stroke-width:1.5}
.ck .pg-tree__city.is-on{fill:var(--ck-orange-40);stroke:var(--ck-orange);stroke-width:2}
.ck .pg-tree__label{fill:var(--ck-navy);font:700 16px var(--ck-font-body)}
.ck .pg-tree__dots{fill:var(--ck-muted);font:500 14px var(--ck-font-body)}
.ck .pg-tree__point{fill:var(--ck-white);stroke:var(--ck-line);stroke-width:1.5;filter:drop-shadow(0 3px 6px rgba(3,4,94,.08))}
.ck .pg-tree__point-top{fill:var(--ck-blue)}
.ck .pg-tree__point-ico-bg{fill:var(--ck-light)}
.ck .pg-tree__point-ico path,.ck .pg-tree__point-ico circle,.ck .pg-tree__point-ico rect{fill:none;stroke:var(--ck-navy);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ck .pg-tree__point-name{fill:var(--ck-navy);font:700 17px var(--ck-font-head)}
.ck .pg-tree__point-text{fill:var(--ck-muted);font:400 14px var(--ck-font-body)}
.ck .pg-tree__note{fill:var(--ck-muted);font:italic 400 15px var(--ck-font-body)}
.ck .pg-tree-list{display:none;margin:0;padding:0;list-style:none}
.ck .pg-tree-list ul{margin:6px 0 0 10px;padding:0 0 0 18px;border-left:2px solid var(--ck-line-strong);list-style:none}
.ck .pg-tree-list li{position:relative;margin:6px 0;font-weight:600;color:var(--ck-navy)}
.ck .pg-tree-list ul > li::before{content:"";position:absolute;left:-18px;top:.75em;width:12px;height:2px;background:var(--ck-line-strong)}
.ck .pg-tree-list__points li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--ck-line);border-radius:var(--ck-radius);background:var(--ck-white);font-weight:400;color:var(--ck-text)}
.ck .pg-tree-list__ico{flex:0 0 auto;color:var(--ck-navy)}
.ck .pg-tree-list__text{display:block;color:var(--ck-muted);font-size:14px}
@media (min-width:761px){.ck .pg-tree-list{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (max-width:760px){.ck .pg-tree{display:none}.ck .pg-tree-list{display:block}}
