/* Curriculum (parts/kit/curriculum.php). Two systems woven together: navy beside cream, a gold
   braid line, more diagram than decoration. Ministry is always on the start side.
   --dir/--d flip the two-panel gradients and the slide directions on Kurdish/Arabic pages. */

.ks-cu{--dir:90deg;--d:1;
  --braid-h:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='20' viewBox='0 0 88 20'%3E%3Cpath d='M0 10C11 10 11 4 22 4S33 10 44 10 55 16 66 16 77 10 88 10' fill='none' stroke='%23c8993a' stroke-width='1.7'/%3E%3Cpath d='M0 10C11 10 11 16 22 16S33 10 44 10 55 4 66 4 77 10 88 10' fill='none' stroke='%23c8993a' stroke-opacity='.55' stroke-width='1.7'/%3E%3C/svg%3E");
  --braid-v:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='88' viewBox='0 0 20 88'%3E%3Cpath d='M10 0C10 11 16 11 16 22S10 33 10 44 4 55 4 66 10 77 10 88' fill='none' stroke='%23c8993a' stroke-width='1.7'/%3E%3Cpath d='M10 0C10 11 4 11 4 22S10 33 10 44 16 55 16 66 10 77 10 88' fill='none' stroke='%23c8993a' stroke-opacity='.55' stroke-width='1.7'/%3E%3C/svg%3E")}
[dir="rtl"] .ks-cu{--dir:270deg;--d:-1}
.ks-cu ul,.ks-cu ol{list-style:none;margin:0;padding:0}
.ks-cu section{position:relative}

/* ---------- 1 · Hero: two panels ---------- */
.ks-cu-hero{background:#fff}
.ks-cu-stage{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(var(--dir),var(--navy) 50%,var(--cream) 50%);padding:104px 0 0}
.ks-cu-stage::before,.ks-cu-stage::after{content:"";position:absolute;top:0;bottom:0;width:50%;z-index:-1;pointer-events:none;background-size:64px 64px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.35) 70%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.35) 70%,transparent 100%)}
.ks-cu-stage::before{inset-inline-start:0;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-position:right -1px top 0}
.ks-cu-stage::after{inset-inline-end:0;background-image:linear-gradient(rgba(6,58,97,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(6,58,97,.06) 1px,transparent 1px);background-position:left 0 top 0}
[dir="rtl"] .ks-cu-stage::before{background-position:left -1px top 0}
[dir="rtl"] .ks-cu-stage::after{background-position:right 0 top 0}
/* the seam: a gold hairline from under the title to the foot of the panels */
.ks-cu-seam{position:absolute;left:50%;top:var(--seam-top,62%);bottom:0;width:1.5px;margin-left:-.75px;background:linear-gradient(180deg,rgba(200,153,58,0),var(--gold) 18%,var(--gold));z-index:0}

.ks-cu-stage .ks-crumbs{position:relative;z-index:1}
.ks-cu-stage .ks-crumbs a{color:rgba(255,255,255,.78)}
.ks-cu-stage .ks-crumbs a:hover{color:var(--gold-l)}
.ks-cu-stage .ks-crumbs [aria-current="page"]{color:#fff}
.ks-cu-stage .ks-crumbs .ks-crumb-sep{color:rgba(255,255,255,.5)}
.ks-cu-stage .ks-crumbs a:focus-visible{outline-color:var(--gold-l);border-radius:6px}

.ks-cu-head{position:relative;z-index:1;text-align:center;margin-top:clamp(20px,2.4vw,34px)}
.ks-cu-pill{box-shadow:0 14px 34px -16px rgba(3,24,40,.55)}
.ks-cu .ks-cu-h1{font-size:clamp(50px,6vw,88px);line-height:1.04;letter-spacing:-.025em;margin:20px auto 0;text-wrap:balance;width:fit-content;max-width:100%;color:var(--navy);translate:var(--shift,0px) 0}
/* The colour cut sits in the word gap nearest the seam (--cut, set by the page script); 50% without it */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .ks-cu .ks-cu-h1{background:linear-gradient(var(--dir),#fff var(--cut,50%),var(--navy) var(--cut,50%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
  .ks-cu .ks-cu-h1 em{-webkit-text-fill-color:transparent}
}
@media (forced-colors:active){.ks-cu .ks-cu-h1{background:none;-webkit-text-fill-color:currentColor;color:CanvasText}}

/* The gold thread: "Ministry + Oxford" across the seam, a braided cord either side */
.ks-cu-thread{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;margin:clamp(22px,2.4vw,34px) 0 0;
  font-family:var(--ks-display);font-weight:600;font-size:clamp(19px,1.55vw,23px)}
.ks-cu-th{display:flex;align-items:center;gap:18px;min-width:0}
.ks-cu-braid{flex:1;height:20px;background:var(--braid-h) repeat-x;background-position:right center}
.ks-cu-th--b .ks-cu-braid{background-position:left center}
[dir="rtl"] .ks-cu-braid{background-position:left center}
[dir="rtl"] .ks-cu-th--b .ks-cu-braid{background-position:right center}
.ks-cu-w{white-space:nowrap}
.ks-cu-th--a .ks-cu-w{color:var(--gold-l)}
.ks-cu-th--b .ks-cu-w{color:var(--gold-ink)}
.ks-cu-knot{display:grid;place-items:center;width:48px;height:48px;margin:0 18px;border-radius:50%;background:var(--gold);color:var(--navy);font-family:'Mulish',system-ui,sans-serif;font-size:28px;line-height:1;font-weight:700;box-shadow:0 0 0 7px rgba(200,153,58,.2)}

/* The two panels: each system named on its own colour, both facing the seam */
.ks-cu-panels{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;margin-top:clamp(22px,2.4vw,34px);padding-bottom:clamp(40px,4vw,56px)}
.ks-cu-panel--a{padding-inline-end:clamp(34px,4.4vw,64px);text-align:end;color:#fff}
.ks-cu-panel--b{padding-inline-start:clamp(34px,4.4vw,64px);text-align:start;color:var(--navy)}
.ks-cu-name{display:block;max-width:11em;font-family:var(--ks-display);font-variation-settings:"opsz" 72;font-weight:500;font-size:clamp(30px,3.2vw,46px);line-height:1.1;letter-spacing:-.015em}
.ks-cu-panel--a .ks-cu-name{margin-inline-start:auto}

/* Under the stage: the intro, start-aligned, then the way on */
.ks-cu-strip{background:#fff;padding:clamp(36px,3.6vw,52px) 0 clamp(64px,6.4vw,96px)}
.ks-cu-strip-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(28px,5vw,88px);align-items:start}
.ks-cu-lead{font-size:clamp(18px,1.5vw,21px);line-height:1.66;color:var(--ink);max-width:31em}
.ks-cu-aside{display:flex;flex-direction:column;align-items:flex-end;gap:20px}
.ks-cu-stages{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink)}
.ks-cu-acts{display:flex;flex-wrap:wrap;gap:14px;justify-content:flex-end}

/* ---------- 2 · Two Systems, One Path: the comparison spine ---------- */
.ks-cu-sys{background:var(--cream);padding:clamp(88px,9vw,132px) 0;scroll-margin-top:80px}
.ks-cu-sys-head,.ks-cu-st-head,.ks-cu-lang-top,.ks-cu-areas-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px clamp(32px,5vw,88px);align-items:end;margin-bottom:clamp(44px,5vw,72px)}
:is(.ks-cu-sys-head,.ks-cu-st-head,.ks-cu-lang-top,.ks-cu-areas-head,.ks-cu-tech-head) .ks-x-h2{margin-top:16px}
.ks-cu-sys-intro,.ks-cu-lang-intro{font-size:18px;line-height:1.7;color:var(--ink2);max-width:34em}
.ks-cu .ks-x-body{max-width:34em}
.ks-cu .ks-x-h2{text-wrap:balance}

.ks-cu-cmp{--gap:clamp(64px,8vw,120px);position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--gap) minmax(0,1fr);grid-template-rows:repeat(5,auto)}
.ks-cu-col,.ks-cu-pts{display:contents}
.ks-cu-c{--off:16px;grid-row:var(--r);position:relative;margin:0;min-width:0}
.ks-cu-col--a .ks-cu-c{grid-column:1;text-align:end}
.ks-cu-col--b .ks-cu-c{grid-column:3}
/* the spine: a faint braid, and the gold braid drawn down it as the rows arrive (--p, set by the page script) */
.ks-cu-spine{grid-column:2;grid-row:1 / -1;justify-self:center;width:20px;position:relative;background:var(--braid-v) repeat-y center top;opacity:1}
.ks-cu-spine::before{content:"";position:absolute;inset:0;background:var(--cream);opacity:.62}
.ks-cu-spine i{position:absolute;inset-inline:0;top:0;height:calc(var(--p,1) * 100%);background:var(--braid-v) repeat-y center top}
/* rungs from each cell to the spine, and a knot on the spine for each pair */
.ks-cu-c::after{content:"";position:absolute;top:50%;height:1.5px;width:calc(var(--gap) / 2 - 10px - var(--off));background:var(--gold);transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.ks-cu-col--a .ks-cu-c::after{inset-inline-end:calc((var(--gap) / 2 - 10px) * -1);transform-origin:var(--to-a,left) center}
.ks-cu-col--b .ks-cu-c::after{inset-inline-start:calc((var(--gap) / 2 - 10px) * -1);transform-origin:var(--to-b,right) center}
[dir="rtl"] .ks-cu-cmp{--to-a:right;--to-b:left}
.ks-cu-col--a .ks-cu-c::before{content:"";position:absolute;z-index:1;top:50%;width:12px;height:12px;margin-top:-5.25px;inset-inline-end:calc(var(--gap) / -2 - 6px);border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px var(--cream);transition:transform .5s .35s cubic-bezier(.2,.7,.2,1)}

/* row 1: the two systems, on their hero colours */
.ks-cu-top{--off:0px;padding:clamp(26px,2.6vw,36px) clamp(24px,2.6vw,36px);border-radius:6px}
.ks-cu-col--a .ks-cu-top{background:var(--navy);color:rgba(255,255,255,.8)}
.ks-cu-col--b .ks-cu-top{background:var(--sand)}
.ks-cu-num{display:inline-block;font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:18px;color:var(--gold-ink);margin-inline-end:12px}
.ks-cu-col--a .ks-cu-num{color:var(--gold)}
.ks-cu-kick{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--maroon)}
.ks-cu-col--a .ks-cu-kick{color:var(--gold-l)}
.ks-cu-top h3{font-size:clamp(24px,2.3vw,32px);line-height:1.15;margin-top:12px;font-variation-settings:"opsz" 48}
.ks-cu-col--a .ks-cu-top h3{color:#fff}
/* row 2: what each is; rows 3–5: its three points, ruled, facing the spine */
.ks-cu-desc{padding:28px 0 26px;font-size:17px;line-height:1.7;color:var(--ink2)}
.ks-cu-pt{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-top:1px solid var(--rule);font-size:16.5px;line-height:1.55;color:var(--ink);font-weight:600}
.ks-cu-col--a .ks-cu-pt{flex-direction:row-reverse}
.ks-cu-pt:last-child{border-bottom:1px solid var(--rule)}
.ks-cu-chk{flex:none;width:20px;height:20px;margin-top:2px;fill:none;stroke:var(--gold-ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ks-cu-tag{display:none}

/* the 96/100 strip, now one line under the spine */
.ks-cu .ks-cu-note{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:6px 16px;margin-top:clamp(36px,4vw,52px);text-align:center;font-size:16px;line-height:1.6;color:var(--ink2)}
.ks-cu-96{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:30px;line-height:1;color:var(--navy)}
.ks-cu-96 span{font-size:.6em;color:var(--gold-ink)}
.ks-cu-note b{color:var(--navy);font-weight:800}
.ks-cu-note > span{display:inline-flex;align-items:baseline;gap:16px}
.ks-cu-note > span::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--gold);transform:translateY(-3px)}

/* Signature motion (js/pages/curriculum.js adds .ks-cu-go; never for reduced motion): each pair of
   rows slides in from its own side and meets at the spine, then the rungs and the knot join them */
.ks-cu-go .ks-cu-c{transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.ks-cu-go .ks-cu-c:not(.is-met){opacity:0}
.ks-cu-go .ks-cu-col--a .ks-cu-c:not(.is-met){transform:translateX(calc(var(--d) * -44px))}
.ks-cu-go .ks-cu-col--b .ks-cu-c:not(.is-met){transform:translateX(calc(var(--d) * 44px))}
.ks-cu-go .ks-cu-c:not(.is-met)::after{transform:scaleX(0)}
.ks-cu-go .ks-cu-c:not(.is-met)::before{transform:scale(0)}
.ks-cu-go .ks-cu-c::after{transition-delay:.3s}

/* ---------- 3 · What Each Stage Focuses On: a vertical spine, three stops ---------- */
.ks-cu-st{background:#fff;padding:clamp(88px,9vw,132px) 0}
.ks-cu-path{position:relative}
.ks-cu-path::before{content:"";position:absolute;inset-inline-start:27px;top:28px;bottom:28px;width:2px;margin-inline-start:-1px;background:linear-gradient(180deg,var(--gold),var(--gold) 85%,rgba(200,153,58,.25))}
.ks-cu-stop{position:relative;display:grid;grid-template-columns:56px minmax(0,.85fr) minmax(0,1.55fr);gap:0 clamp(24px,3.4vw,56px);padding-bottom:clamp(44px,5vw,72px)}
.ks-cu-stop:last-child{padding-bottom:0}
.ks-cu-stop + .ks-cu-stop::after{content:"";position:absolute;top:-1px;inset-inline:calc(56px + clamp(24px,3.4vw,56px)) 0;border-top:1px solid var(--rule);transform:translateY(calc(clamp(44px,5vw,72px) / -2))}
.ks-cu-dot{position:relative;z-index:1;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:var(--gold);font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:19px;box-shadow:0 0 0 7px #fff}
.ks-cu-stop-name{padding-top:6px}
.ks-cu-age{display:block;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink)}
.ks-cu-stop-name h3{font-size:clamp(30px,3vw,44px);line-height:1.08;margin-top:10px;font-variation-settings:"opsz" 72}
.ks-cu-stop-body{padding-top:10px}
.ks-cu-stop-body p{font-size:18px;line-height:1.7;color:var(--ink);max-width:36em}
.ks-cu-chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 22px !important}
.ks-cu-chips li{font-size:14.5px;font-weight:700;line-height:1.3;color:var(--navy);background:var(--mist);padding:8px 14px;border-radius:999px}

/* ---------- 4 · Languages ---------- */
.ks-cu-lang{background:var(--mist);padding:clamp(88px,9vw,132px) 0}
.ks-cu-lang-top{margin-bottom:0}
.ks-cu-film{margin:clamp(40px,4.4vw,64px) 0 0;border-radius:6px;overflow:hidden;aspect-ratio:2048/768;background:var(--navy-d);box-shadow:0 40px 80px -56px rgba(4,39,63,.7)}
.ks-cu-film img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.ks-cu-lang-body{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px clamp(32px,5vw,88px);margin-top:clamp(40px,4.4vw,60px);align-items:start}
.ks-cu-langs-k{display:block;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--maroon)}
.ks-cu-langs-v{display:block;margin-top:14px;font-family:var(--ks-display);font-weight:600;font-variation-settings:"opsz" 96;font-size:clamp(38px,4.4vw,64px);line-height:1.04;letter-spacing:-.02em;color:var(--navy)}
.ks-cu-lang-pts li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px;padding:18px 0;border-top:1px solid rgba(6,58,97,.16);font-size:17px;line-height:1.7;color:var(--ink2)}
.ks-cu-lang-pts li:last-child{border-bottom:1px solid rgba(6,58,97,.16)}
.ks-cu-lang-pts strong{color:var(--navy);font-weight:800}
.ks-cu-lang-pts .ks-cu-chk{margin-top:4px}
/* the Library: a shelf of the school's own books */
.ks-cu-books{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:24px clamp(32px,5vw,72px);align-items:end;margin-top:clamp(52px,5.6vw,80px)}
.ks-cu-booklink{order:-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:20px 0;border-top:1px solid rgba(6,58,97,.16);border-bottom:1px solid rgba(6,58,97,.16);color:var(--navy);text-decoration:none}
.ks-cu-booklink small{flex-basis:100%;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink)}
.ks-cu-booklink b{font-family:var(--ks-display);font-weight:600;font-size:clamp(22px,2vw,28px);line-height:1.2}
.ks-cu-booklink span{margin-inline-start:auto;font-size:22px;color:var(--gold-ink);transition:transform .3s ease}
.ks-cu-booklink:hover span{transform:translateX(calc(var(--d) * 4px))}
.ks-cu-shelf{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(84px,1fr);gap:clamp(12px,1.4vw,18px);align-items:end;overflow-x:auto;padding:14px 4px 22px;scrollbar-width:thin;scrollbar-color:rgba(126,95,30,.5) transparent;
  background:linear-gradient(0deg,rgba(6,58,97,.16),rgba(6,58,97,.16)) left bottom 12px / 100% 2px no-repeat}
.ks-cu-shelf a{display:block;border-radius:2px 6px 6px 2px;overflow:hidden;box-shadow:0 18px 30px -18px rgba(4,39,63,.7),inset 0 0 0 1px rgba(255,255,255,.2);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease}
[dir="rtl"] .ks-cu-shelf a{border-radius:6px 2px 2px 6px}
.ks-cu-shelf a:hover{transform:translateY(-6px);box-shadow:0 26px 36px -20px rgba(4,39,63,.75)}
.ks-cu-shelf a:focus-visible{outline-offset:4px}
.ks-cu-cover{display:block;width:100%;height:auto;aspect-ratio:874/1240;object-fit:cover}
.ks-cu-banner{display:block;border-radius:6px;overflow:hidden}
.ks-cu-banner img{display:block;width:100%;height:auto}

/* ---------- 5 · Technology in Everyday Lessons (the one dark band) ---------- */
.ks-cu-tech{background:var(--navy-d);padding:clamp(84px,8.4vw,120px) 0;overflow:hidden}
.ks-cu-tech::before{content:"";position:absolute;top:-180px;inset-inline-end:-140px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(200,153,58,.14),transparent 64%);pointer-events:none}
.ks-cu-tech-head{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px clamp(32px,5vw,88px);align-items:end}
.ks-cu-tech-head .ks-x-btn{margin-top:26px}
.ks-cu-tech-row{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:clamp(48px,5vw,72px) !important;border-top:1px solid rgba(200,153,58,.4)}
.ks-cu-tech-row li{display:flex;flex-direction:column;align-items:flex-start;padding:32px clamp(20px,2.2vw,32px) 0;border-inline-start:1px solid rgba(255,255,255,.12)}
.ks-cu-tech-row li:first-child{border-inline-start:0;padding-inline-start:0}
.ks-cu-tech-row li:last-child{padding-inline-end:0}
.ks-cu-ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(200,153,58,.14);color:var(--gold-l);box-shadow:inset 0 0 0 1px rgba(226,191,115,.35)}
.ks-cu-ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ks-cu-tech-row h3{font-size:clamp(24px,2.1vw,30px);line-height:1.15;margin:20px 0 10px;color:var(--gold-l) !important}
.ks-cu-tech-row p{font-size:16px;line-height:1.65;color:rgba(255,255,255,.78)}
.ks-cu-tech-row .ks-x-link{margin-top:auto;padding-top:18px;font-size:15px;border:0}
.ks-cu-tech-row .ks-x-link{text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:6px}

/* ---------- 6 · A Broad, Balanced Education: a ruled index of the eight areas ---------- */
.ks-cu-areas{background:#fff;padding:clamp(88px,9vw,132px) 0}
.ks-cu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:2px solid var(--navy)}
.ks-cu-grid li{padding:26px clamp(18px,2vw,28px) 30px;border-bottom:1px solid var(--rule);border-inline-start:1px solid var(--rule)}
.ks-cu-grid li:nth-child(4n+1){border-inline-start:0;padding-inline-start:0}
.ks-cu-an{display:block;font-family:'Fraunces',Georgia,serif;font-weight:500;font-size:30px;line-height:1;color:var(--gold-ink)}
.ks-cu-grid h3{font-size:clamp(20px,1.7vw,23px);line-height:1.2;margin:18px 0 8px}
.ks-cu-grid p{font-size:16px;line-height:1.6;color:var(--ink2)}
.ks-cu-areas-link{margin-top:36px}

/* ---------- Kurdish/Arabic ---------- */
:lang(ckb) .ks-cu .ks-cu-h1,:lang(ar) .ks-cu .ks-cu-h1{font-size:clamp(38px,4.6vw,68px);line-height:1.3;letter-spacing:0}
:lang(ckb) .ks-cu :is(.ks-cu-name,.ks-cu-langs-v,.ks-cu-thread),:lang(ar) .ks-cu :is(.ks-cu-name,.ks-cu-langs-v,.ks-cu-thread){letter-spacing:0;font-variation-settings:normal}
:lang(ckb) .ks-cu-name,:lang(ar) .ks-cu-name{font-size:clamp(24px,2.5vw,36px);line-height:1.45;font-weight:600}
:lang(ckb) .ks-cu-langs-v,:lang(ar) .ks-cu-langs-v{font-size:clamp(30px,3.2vw,46px);line-height:1.4}
:lang(ckb) .ks-cu :is(.ks-cu-stages,.ks-cu-kick,.ks-cu-age,.ks-cu-langs-k,.ks-cu-booklink small,.ks-cu-tag),:lang(ar) .ks-cu :is(.ks-cu-stages,.ks-cu-kick,.ks-cu-age,.ks-cu-langs-k,.ks-cu-booklink small,.ks-cu-tag){letter-spacing:0;text-transform:none;font-size:14px}
:lang(ckb) .ks-cu-top h3,:lang(ar) .ks-cu-top h3{font-size:clamp(22px,2vw,28px)}
:lang(ckb) .ks-cu-stop-name h3,:lang(ar) .ks-cu-stop-name h3{font-size:clamp(26px,2.4vw,36px);line-height:1.35}
:lang(ckb) .ks-cu-booklink b,:lang(ar) .ks-cu-booklink b{font-size:clamp(20px,1.8vw,24px);line-height:1.5}
:lang(ckb) .ks-cu-tech-row h3,:lang(ar) .ks-cu-tech-row h3{font-size:clamp(22px,1.9vw,26px);line-height:1.4}
:lang(ckb) .ks-cu-grid h3,:lang(ar) .ks-cu-grid h3{font-size:clamp(18px,1.5vw,21px);line-height:1.45}
:lang(ckb) .ks-cu :is(.ks-cu-lead,.ks-cu-desc,.ks-cu-stop-body p,.ks-cu-lang-pts li),:lang(ar) .ks-cu :is(.ks-cu-lead,.ks-cu-desc,.ks-cu-stop-body p,.ks-cu-lang-pts li){line-height:1.85}

/* ---------- Narrower screens ---------- */
@media (max-width:1240px){
  .ks-cu .ks-cu-note > span{display:block;flex-basis:100%}
  .ks-cu .ks-cu-note > span::before{display:none}
}
@media (max-width:1180px) and (min-width:900px){
  .ks-cu-strip-grid{grid-template-columns:1fr;align-items:start}
  .ks-cu-aside{align-items:center;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}
}
@media (max-width:1100px){
  .ks-cu-tech-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ks-cu-tech-row li{padding:30px clamp(20px,3vw,32px) 32px;border-bottom:1px solid rgba(255,255,255,.12)}
  .ks-cu-tech-row li:nth-child(odd){border-inline-start:0;padding-inline-start:0}
  .ks-cu-tech-row li:nth-child(even){padding-inline-end:0}
  .ks-cu-tech-row li:nth-last-child(-n+2){border-bottom:0}
  .ks-cu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ks-cu-grid li{border-inline-start:1px solid var(--rule);padding-inline-start:clamp(18px,2vw,28px)}
  .ks-cu-grid li:nth-child(odd){border-inline-start:0;padding-inline-start:0}
  .ks-cu-books{grid-template-columns:1fr}
}
@media (max-width:1000px){
  .ks-cu-stop{grid-template-columns:56px minmax(0,1fr)}
  .ks-cu-stop-body{grid-column:2}
  .ks-cu-stop + .ks-cu-stop::after{inset-inline-start:calc(56px + clamp(24px,3.4vw,56px))}
}

/* Phone and narrow tablet hero: title, then a navy band, the knot on the join, then a cream band */
@media (max-width:899px){
  .ks-cu-stage{display:flex;flex-direction:column;background:#fff;padding-top:92px}
  .ks-cu-stage::before,.ks-cu-stage::after,.ks-cu-seam{display:none}
  .ks-cu-stage .ks-crumbs a{color:#6B6353}
  .ks-cu-stage .ks-crumbs .ks-crumb-sep{color:#9A9180}
  .ks-cu-stage .ks-crumbs [aria-current="page"]{color:var(--navy)}
  .ks-cu-stage .ks-crumbs a:focus-visible{outline-color:var(--navy)}
  .ks-cu-head{text-align:start;margin-top:26px}
  .ks-cu-pill{background:var(--cream);box-shadow:none}
  .ks-cu .ks-cu-h1{background:none;-webkit-text-fill-color:currentColor;color:var(--navy);width:auto;margin:18px 0 0;font-size:clamp(42px,11.4vw,64px);line-height:1.04;translate:none}
  .ks-cu .ks-cu-h1 em{-webkit-text-fill-color:var(--gold-ink)}
  .ks-cu-panels{display:contents}
  .ks-cu-panel{padding:30px clamp(18px,5vw,72px) 32px;text-align:start}
  .ks-cu-panel--a{order:2;margin-top:30px;background:var(--navy);padding-bottom:40px}
  .ks-cu-panel--b{order:4;background:var(--cream);padding-top:40px}
  .ks-cu-panel--a .ks-cu-name{margin-inline-start:0}
  .ks-cu-name{font-size:clamp(28px,7.6vw,40px)}
  .ks-cu-thread{order:3;margin:0;background:linear-gradient(180deg,var(--navy) 50%,var(--cream) 50%);font-size:17px;padding:0 clamp(18px,5vw,72px)}
  .ks-cu-th{gap:0}
  .ks-cu-th--a .ks-cu-braid{margin-inline-end:12px}
  .ks-cu-th--b .ks-cu-braid{margin-inline-start:12px}
  .ks-cu-w,.ks-cu-knot{height:38px;display:inline-flex;align-items:center;background:var(--gold);color:var(--navy) !important}
  .ks-cu-th--a .ks-cu-w{padding-inline-start:18px;border-start-start-radius:999px;border-end-start-radius:999px}
  .ks-cu-th--b .ks-cu-w{padding-inline-end:18px;border-start-end-radius:999px;border-end-end-radius:999px}
  .ks-cu-knot{width:auto;margin:0;padding:0 9px;border-radius:0;box-shadow:none;font-size:20px}
  .ks-cu-strip{padding-top:34px}
  .ks-cu-strip-grid{grid-template-columns:1fr;gap:26px}
  .ks-cu-aside{align-items:stretch}
  .ks-cu-acts{justify-content:stretch}
  :lang(ckb) .ks-cu .ks-cu-h1,:lang(ar) .ks-cu .ks-cu-h1{font-size:clamp(34px,9vw,48px)}
  :lang(ckb) .ks-cu-name,:lang(ar) .ks-cu-name{font-size:clamp(23px,6vw,30px)}

  .ks-cu-sys-head,.ks-cu-st-head,.ks-cu-lang-top,.ks-cu-areas-head,.ks-cu-tech-head{grid-template-columns:1fr}
  .ks-cu-lang-body{grid-template-columns:1fr}
}

/* Phones: the comparison becomes one column with the spine on the start side; each pair stays
   together (Ministry, then Oxford), and every cell names its system */
@media (max-width:760px){
  .ks-cu-sys,.ks-cu-st,.ks-cu-lang,.ks-cu-areas{padding:clamp(64px,15vw,84px) 0}
  .ks-cu-tech{padding:clamp(64px,15vw,84px) 0}
  .ks-cu-cmp{--gap:40px;grid-template-columns:var(--gap) minmax(0,1fr);grid-template-rows:repeat(10,auto)}
  .ks-cu-spine{grid-column:1;justify-self:start;margin-inline-start:7px}
  .ks-cu-col--a .ks-cu-c,.ks-cu-col--b .ks-cu-c{grid-column:2;grid-row:var(--m);text-align:start}
  .ks-cu-c::after,.ks-cu-col--a .ks-cu-c::after,.ks-cu-col--b .ks-cu-c::after{inset-inline-start:calc(27px - var(--gap));inset-inline-end:auto;width:calc(var(--gap) - 27px);top:24px;transform-origin:var(--to-b,right) center}
  .ks-cu-col--a .ks-cu-c::before{inset-inline-end:auto;inset-inline-start:calc(11px - var(--gap));top:24px;margin-top:-5.25px}
  .ks-cu-top{--off:0px;margin-top:10px}
  .ks-cu-col--a .ks-cu-top{margin-top:0}
  .ks-cu-col--a .ks-cu-c:not(.ks-cu-top){margin-top:26px}
  .ks-cu-col--b .ks-cu-c:not(.ks-cu-top){margin-top:8px}
  .ks-cu-desc,.ks-cu-pt{padding:16px 18px 18px;border:0 !important;border-radius:6px;background:#fff}
  .ks-cu-col--a :is(.ks-cu-desc,.ks-cu-pt){box-shadow:inset 3px 0 0 var(--navy)}
  .ks-cu-col--b :is(.ks-cu-desc,.ks-cu-pt){box-shadow:inset 3px 0 0 var(--gold)}
  [dir="rtl"] .ks-cu-col--a :is(.ks-cu-desc,.ks-cu-pt){box-shadow:inset -3px 0 0 var(--navy)}
  [dir="rtl"] .ks-cu-col--b :is(.ks-cu-desc,.ks-cu-pt){box-shadow:inset -3px 0 0 var(--gold)}
  .ks-cu-desc{font-size:16.5px}
  .ks-cu-pt,.ks-cu-col--a .ks-cu-pt{display:block}
  .ks-cu-pt .ks-cu-chk{display:none}
  .ks-cu-tag{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
  .ks-cu-tag::before{content:"";flex:none;width:8px;height:8px;border-radius:2px}
  .ks-cu-col--a .ks-cu-tag{color:var(--navy)}
  .ks-cu-col--a .ks-cu-tag::before{background:var(--navy)}
  .ks-cu-col--b .ks-cu-tag{color:var(--gold-ink)}
  .ks-cu-col--b .ks-cu-tag::before{background:var(--gold)}
  .ks-cu-go .ks-cu-col--a .ks-cu-c:not(.is-met),.ks-cu-go .ks-cu-col--b .ks-cu-c:not(.is-met){transform:translateX(calc(var(--d) * 28px))}
  .ks-cu .ks-cu-note{justify-content:flex-start;text-align:start;gap:4px 12px}
  .ks-cu-note > span{display:block}
  .ks-cu-note > span::before{display:none}

  .ks-cu-path::before{inset-inline-start:21px;top:22px;bottom:22px}
  .ks-cu-stop{grid-template-columns:44px minmax(0,1fr);gap:0 18px;padding-bottom:48px}
  .ks-cu-dot{width:44px;height:44px;font-size:16px;box-shadow:0 0 0 6px #fff}
  .ks-cu-stop-name{padding-top:2px}
  .ks-cu-stop + .ks-cu-stop::after{inset-inline-start:62px;transform:translateY(-24px)}
  .ks-cu-stop-body p{font-size:17px}
  .ks-cu-stop-name h3{font-size:clamp(28px,7.6vw,36px)}

  .ks-cu-film{aspect-ratio:4/3;margin-inline:calc(clamp(18px,5vw,72px) * -1);border-radius:0}
  .ks-cu-film img{object-position:42% 40%}
  .ks-cu-books{margin-top:44px}
  .ks-cu-shelf{margin-inline:calc(clamp(18px,5vw,72px) * -1);padding-inline:clamp(18px,5vw,72px);background-position:left bottom 12px}
  .ks-cu-shelf{grid-auto-columns:96px}

  .ks-cu-tech-row{grid-template-columns:1fr}
  .ks-cu-tech-row li,.ks-cu-tech-row li:nth-child(odd),.ks-cu-tech-row li:nth-child(even){display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 16px;padding:24px 0;border-inline-start:0;border-bottom:1px solid rgba(255,255,255,.12)}
  .ks-cu-tech-row li:last-child{border-bottom:0;padding-bottom:0}
  .ks-cu-ic{width:44px;height:44px;grid-row:1 / span 3}
  .ks-cu-ic svg{width:22px;height:22px}
  .ks-cu-tech-row h3{margin:6px 0 8px}
  .ks-cu-tech-row .ks-x-link{grid-column:2;justify-self:start}

  .ks-cu-grid{grid-template-columns:1fr}
  .ks-cu-grid li,.ks-cu-grid li:nth-child(odd){display:grid;grid-template-columns:48px minmax(0,1fr);gap:0 14px;padding:20px 0;border-inline-start:0}
  .ks-cu-an{grid-row:1 / span 2;font-size:24px;padding-top:2px}
  .ks-cu-grid h3{margin:0 0 6px}
}
@media (max-width:560px){
  .ks-cu-acts .ks-x-btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){
  .ks-cu-c,.ks-cu-c::before,.ks-cu-c::after,.ks-cu-shelf a,.ks-cu-booklink span{transition:none !important}
}
