/* All-courses page polish r1 (2026-11-20): field tiles with depth and hover, course chips with their picture,
   clearer stats and field filter, a gradient heading. Loaded last on courses.html (EN/FR/AR). */
html:root:not(#a1):not(#a2):not(#a3){--cp-ease:cubic-bezier(.23,1,.32,1)}
/* heading: same gradient accent as Learning paths */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-hero h1{letter-spacing:-.035em;line-height:1.02;text-wrap:balance}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-hero h1 .gx{background:linear-gradient(100deg,#5b4bd6 10%,#0F766E 90%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html[data-theme="dark"]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-hero h1 .gx{background-image:linear-gradient(100deg,#a99bff 10%,#5eead4 90%)}
/* stats: number first, accent rule */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-stat{position:relative;overflow:hidden;transition:transform .2s var(--cp-ease),box-shadow .2s var(--cp-ease)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-stat::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(#5b4bd6,#0F766E)}
[dir="rtl"] .mi-stat::before{inset:0 0 0 auto!important}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-stat b{font-variant-numeric:tabular-nums;letter-spacing:-.03em}
@media (hover:hover) and (pointer:fine){html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-stat:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px rgb(20 26 46/.35)}}
/* search: soft accent ring while typing; button press */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body form.mi-search{transition:box-shadow .2s ease}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body form.mi-search:focus-within{box-shadow:0 0 0 4px rgb(91 75 214/.16),0 14px 34px -18px rgb(20 26 46/.35)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body form.mi-search input{font-size:16px}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-go{transition:transform .14s var(--cp-ease)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-go:active{transform:scale(.95)}
/* field filter: one scrollable row that fades at its edges; clear active state; press */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-doms{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
[dir="rtl"] .mi-doms{-webkit-mask-image:linear-gradient(270deg,#000 calc(100% - 36px),transparent)!important;mask-image:linear-gradient(270deg,#000 calc(100% - 36px),transparent)!important}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-dchip{transition:transform .14s var(--cp-ease),background-color .2s ease,color .2s ease}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-dchip:active{transform:scale(.95)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-dchip.is-on{box-shadow:0 6px 16px -8px rgb(20 26 46/.5)}
/* field tiles: depth, lift on hover, the band picture zooms gently */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile{transition:transform .25s var(--cp-ease),box-shadow .25s var(--cp-ease);box-shadow:0 1px 2px rgb(0 0 0/.04),0 16px 36px -24px rgb(20 26 46/.35)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile .mi-band{overflow:hidden}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile .mi-band>*:not(.mi-badge){transition:transform .6s var(--cp-ease)}
@media (hover:hover) and (pointer:fine){
 html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgb(0 0 0/.05),0 28px 50px -24px rgb(20 26 46/.45)}
 html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile:hover .mi-band>*:not(.mi-badge){transform:scale(1.05)}
}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-title{letter-spacing:-.02em;text-wrap:balance}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-count{font-variant-numeric:tabular-nums}
/* course chips: each carries its own small picture */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-cchip.aca-has-th{display:flex!important;align-items:center;gap:9px;padding-inline-start:5px!important;min-width:0}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-cchip .aca-th{width:34px;height:20px;border-radius:6px;flex:none}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-cchip{transition:background-color .2s ease,transform .14s var(--cp-ease);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-cchip:active{transform:scale(.98)}
/* explore button: press */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body button.mi-explore{transition:transform .14s var(--cp-ease),background-color .2s ease}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body button.mi-explore:active{transform:scale(.96)}
/* the full list that opens under a tile: roomier rows */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body ul.mi-full li>a.aca-has-th{padding-block:4px}
@media (prefers-reduced-motion:reduce){html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile,html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body article.mi-tile .mi-band>*,html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-stat{transition:none!important}}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body a.mi-cchip .aca-tx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-hero h1 .gx{-webkit-text-fill-color:transparent!important;color:transparent!important;background:linear-gradient(100deg,#5b4bd6 10%,#0F766E 90%)!important;-webkit-background-clip:text!important;background-clip:text!important}
html[data-theme="dark"]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .mi-hero h1 .gx{background-image:linear-gradient(100deg,#a99bff 10%,#5eead4 90%)!important}
/* ===== r2: cards as one click target, a richer course drawer ===== */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #courseGrid article.mi-tile{cursor:pointer}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #courseGrid article.mi-tile:focus-within{outline:2px solid color-mix(in srgb,var(--c1,#5b4bd6) 60%,transparent);outline-offset:3px}
/* drawer header in the field colours */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawer>header{background:linear-gradient(135deg,color-mix(in srgb,var(--c1,#5b4bd6) 14%,transparent),color-mix(in srgb,var(--c2,#5b4bd6) 6%,transparent));border-bottom:1px solid color-mix(in srgb,currentColor 8%,transparent)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerTitle{letter-spacing:-.02em}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerCount{font-variant-numeric:tabular-nums}
/* filter box */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-filter{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;margin:4px 0 10px;padding:8px 0;background:inherit}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-filter input{flex:1;min-width:0;height:42px;padding:0 14px;border-radius:12px;border:1px solid color-mix(in srgb,currentColor 14%,transparent);background:color-mix(in srgb,currentColor 4%,transparent);color:inherit;font:inherit;font-size:16px;transition:box-shadow .2s ease,border-color .2s ease}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-filter input:focus{outline:none;border-color:color-mix(in srgb,var(--c1,#5b4bd6) 60%,transparent);box-shadow:0 0 0 4px color-mix(in srgb,var(--c1,#5b4bd6) 16%,transparent)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-fn{font-size:.8rem;opacity:.7;white-space:nowrap;font-variant-numeric:tabular-nums}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-none{opacity:.7;padding:16px 4px}
/* drawer rows: small cards with a bigger picture, hover and press */
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList{display:grid;gap:6px}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList>li{display:flex;align-items:center;gap:10px;padding:6px;border-radius:14px;transition:background-color .2s ease}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList>li[hidden]{display:none}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList>li>em{flex:none;width:22px;font-style:normal;font-size:.72rem;font-weight:700;opacity:.45;font-variant-numeric:tabular-nums}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList>li>a{flex:1;min-width:0;display:flex!important;align-items:center;gap:12px;line-height:1.3;font-weight:600;text-decoration:none}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList .aca-th{width:72px!important;height:40px!important;border-radius:10px}
@media (hover:hover) and (pointer:fine){html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList>li:hover{background:color-mix(in srgb,var(--c1,#5b4bd6) 9%,transparent)}}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body #miDrawerList>li:active{background:color-mix(in srgb,var(--c1,#5b4bd6) 14%,transparent)}
html:root:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-tag{flex:none;margin-inline-start:auto;padding:3px 8px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.02em;white-space:nowrap;color:var(--c1,#5b4bd6);background:color-mix(in srgb,var(--c1,#5b4bd6) 12%,transparent)}
html[data-theme="dark"]:not(#a1):not(#a2):not(#a3):not(#a4):not(#a5):not(#a6):not(#a7):not(#a8):not(#a9):not(#b1) body .cp-tag{color:color-mix(in srgb,var(--c1,#a99bff) 60%,#fff)}
