/* ===== v8 (Nov 4 2026): big topic buttons + bottom tab bar, course-site look ===== */
:root{--plum:#9E1E5C;--fu:#E84080;--gold8:#D4A85A;--goldfoil:linear-gradient(135deg,#B8893A 0%,#F3D48E 22%,#D4A85A 45%,#FFF1C9 62%,#C9963F 80%,#E9C57A 100%)}
body.v5{background-color:#FCF6EF;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23E84080' fill-opacity='.07'%3E%3Cpath d='M18 24c-4-3-7-5.4-7-8.2a3.5 3.5 0 0 1 7-.8 3.5 3.5 0 0 1 7 .8c0 2.8-3 5.2-7 8.2z'/%3E%3C/g%3E%3Cg fill='%23D4A85A' fill-opacity='.13'%3E%3Ccircle cx='54' cy='52' r='2.2'/%3E%3Ccircle cx='54' cy='46.5' r='2.2'/%3E%3Ccircle cx='54' cy='57.5' r='2.2'/%3E%3Ccircle cx='48.5' cy='52' r='2.2'/%3E%3Ccircle cx='59.5' cy='52' r='2.2'/%3E%3Cpath d='M58 14l1 3 3 1-3 1-1 3-1-3-3-1 3-1z'/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(circle at 100% 0,#F9DDE7 0,transparent 42%),radial-gradient(circle at 0 100%,#F7E6CF 0,transparent 48%);background-attachment:scroll,fixed,fixed}
/* section titles: plum + gold flourish */
.sec5 .h5,.foot5-h,.tp8-h{color:var(--plum);font-family:'Rubik','Heebo',sans-serif}
.sec5>.h5:after,.ph5 h1:after,.tp8-h:after{content:"";display:block;width:150px;height:14px;margin:10px auto 0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23D4A85A' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23D4A85A'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23D4A85A' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23D4A85A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='6' width='60' height='2' rx='1' fill='url(%23a)'/%3E%3Crect x='90' y='6' width='60' height='2' rx='1' fill='url(%23b)'/%3E%3Cg fill='%23E84080'%3E%3Ccircle cx='75' cy='3' r='2.6'/%3E%3Ccircle cx='75' cy='11' r='2.6'/%3E%3Ccircle cx='71' cy='7' r='2.6'/%3E%3Ccircle cx='79' cy='7' r='2.6'/%3E%3C/g%3E%3Ccircle cx='75' cy='7' r='1.9' fill='%23F3D48E'/%3E%3C/svg%3E") center/contain no-repeat}
.join5-in .h5:after,.courses5 .h5:after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FFF1C9' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23F3D48E'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23FFF1C9' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23F3D48E'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='6' width='60' height='2' rx='1' fill='url(%23a)'/%3E%3Crect x='90' y='6' width='60' height='2' rx='1' fill='url(%23b)'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='75' cy='3' r='2.6'/%3E%3Ccircle cx='75' cy='11' r='2.6'/%3E%3Ccircle cx='71' cy='7' r='2.6'/%3E%3Ccircle cx='79' cy='7' r='2.6'/%3E%3C/g%3E%3Ccircle cx='75' cy='7' r='1.9' fill='%23D4A85A'/%3E%3C/svg%3E") center/contain no-repeat}
/* topics grid */
.tp8{position:relative;max-width:760px;margin:0 auto;padding:30px 16px 18px;text-align:center}
.tp8-h{font-size:26px;font-weight:700;line-height:1.3;margin:0 0 4px}
.tp8-sub{color:#7A5566;margin:0 0 16px;font-size:16px}
.tp8-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;list-style:none}
.tp8-tile{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:138px;padding:16px 8px 14px;border-radius:22px;border:1.5px solid transparent;text-decoration:none;color:var(--plum);font-family:'Rubik','Heebo',sans-serif;font-weight:700;font-size:18px;line-height:1.25;box-shadow:0 6px 18px rgba(158,30,92,.10);transition:transform .25s ease,box-shadow .25s ease;-webkit-tap-highlight-color:transparent}
.tp8-tile small{display:block;font-family:'Heebo',sans-serif;font-weight:400;color:#7A5566;font-size:13.5px;margin-top:4px;line-height:1.35}
.tp8-ic{display:flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:50%;font-size:30px;line-height:1;margin-bottom:10px;background:radial-gradient(circle at 35% 30%,#fff 0,#FFF0F5 55%,#FADCE6 100%);box-shadow:0 0 0 2px #E9C57A,0 4px 12px rgba(158,30,92,.18)}
.tp8-tile:after{content:"";position:absolute;top:0;bottom:0;width:35%;left:-50%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-18deg);transition:left .7s ease;pointer-events:none}
.tp8-tile:hover:after,.tp8-tile:active:after{left:120%}
.tp8-tile:hover,.tp8-tile:active{transform:translateY(-3px);box-shadow:0 14px 28px rgba(158,30,92,.18),0 0 22px rgba(243,212,142,.55)}
.c1{background:linear-gradient(160deg,#FFE3EC,#FFF7FA) padding-box,var(--goldfoil) border-box}
.c2{background:linear-gradient(160deg,#FFE9DC,#FFF9F3) padding-box,var(--goldfoil) border-box}
.c3{background:linear-gradient(160deg,#F5E2F5,#FDF7FD) padding-box,var(--goldfoil) border-box}
.c4{background:linear-gradient(160deg,#FFF0D6,#FFFBF2) padding-box,var(--goldfoil) border-box}
.tp8-wide{grid-column:1/-1;flex-direction:row;gap:14px;min-height:84px;padding:14px 18px;background:linear-gradient(120deg,#E84080,#B8266A 55%,#9E1E5C) padding-box,var(--goldfoil) border-box;color:#fff;text-shadow:0 1px 3px rgba(70,8,36,.45)}
.tp8-wide .tp8-ic{margin:0;width:54px;height:54px;flex:0 0 54px;text-shadow:none}
.tp8-wide small{color:#FFE6EF}
.tp8-wide .tp8-tx{text-align:right}
.tp8-spark{position:absolute;inset:0;pointer-events:none}
.tp8-spark i{position:absolute;width:12px;height:12px;background:radial-gradient(circle,#F3D48E 0,#D4A85A 40%,rgba(212,168,90,0) 72%);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);animation:tw8 3.4s ease-in-out infinite;opacity:0}
.tp8-wide .tp8-spark i{background:radial-gradient(circle,#fff 0,#FFF3D6 30%,rgba(255,230,170,0) 70%)}
@keyframes tw8{0%,100%{opacity:0;transform:scale(.4) rotate(0)}50%{opacity:.95;transform:scale(1) rotate(45deg)}}
@media(min-width:700px){.tp8-grid{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){.tp8-spark i{animation:none;opacity:.6}.tp8-tile,.tp8-tile:after{transition:none}}
/* inner page headers keep their fuchsia band; add the gold-and-flower flourish + sparkles */
.ph5 h1:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FFF1C9' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23F3D48E'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23FFF1C9' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23F3D48E'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='6' width='60' height='2' rx='1' fill='url(%23a)'/%3E%3Crect x='90' y='6' width='60' height='2' rx='1' fill='url(%23b)'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='75' cy='3' r='2.6'/%3E%3Ccircle cx='75' cy='11' r='2.6'/%3E%3Ccircle cx='71' cy='7' r='2.6'/%3E%3Ccircle cx='79' cy='7' r='2.6'/%3E%3C/g%3E%3Ccircle cx='75' cy='7' r='1.9' fill='%23D4A85A'/%3E%3C/svg%3E")}
.ph5 .tp8-spark{z-index:1}
.tp8{z-index:2}
/* bottom tab bar (phones) */
.tb8{display:none}
@media(max-width:760px){
 body.has-tb8{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 .tb8{display:block;position:fixed;bottom:0;left:0;right:0;z-index:60;background:rgba(255,253,251,.97);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 -6px 20px rgba(158,30,92,.12);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
 .tb8:before{content:"";position:absolute;top:0;left:0;right:0;height:2.5px;background:linear-gradient(90deg,#E9C57A,#FFF1C9,#D4A85A,#E84080,#D4A85A,#FFF1C9,#E9C57A)}
 .tb8 ul{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(5,1fr);max-width:560px}
 .tb8 a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;text-decoration:none;color:#5A3546;font-family:'Rubik','Heebo',sans-serif;font-size:12px;font-weight:500;border-radius:14px;line-height:1.15;padding:2px;-webkit-tap-highlight-color:transparent}
 .tb8 .ic{font-size:22px;line-height:1}
 .tb8 a.on{background:linear-gradient(160deg,#F06C9E,#E84080 50%,#B8266A);color:#fff;font-weight:700;box-shadow:0 4px 12px rgba(232,64,128,.35),inset 0 0 0 1.5px rgba(255,241,201,.6)}
 .tb8 a:active{transform:scale(.94)}
 body.has-tb8 .wa-float{bottom:calc(84px + env(safe-area-inset-bottom))}
 body.has-tb8 .to-cats{bottom:calc(82px + env(safe-area-inset-bottom))}
}

/* v8.1 welcome block above the topic buttons (Raizi 17:23) */
.wl8{position:relative;margin:0 auto 22px;padding:26px 10px 22px;border-radius:26px;background:linear-gradient(160deg,#FFE3EC,#FFF9F3) padding-box,var(--goldfoil) border-box;border:1.5px solid transparent;box-shadow:0 10px 28px rgba(158,30,92,.12)}
.wl8-big{margin:0;font-family:'Rubik','Heebo',sans-serif;font-weight:800;font-size:40px;line-height:1.15;color:var(--plum)}
.wl8-g{background:linear-gradient(90deg,#9E1E5C,#E84080 55%,#9E1E5C);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.wl8-big:after{content:"";display:block;width:150px;height:14px;margin:10px auto 0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Crect x='0' y='6' width='60' height='2' rx='1' fill='%23D4A85A'/%3E%3Crect x='90' y='6' width='60' height='2' rx='1' fill='%23D4A85A'/%3E%3Cg fill='%23E84080'%3E%3Ccircle cx='75' cy='3' r='2.6'/%3E%3Ccircle cx='75' cy='11' r='2.6'/%3E%3Ccircle cx='71' cy='7' r='2.6'/%3E%3Ccircle cx='79' cy='7' r='2.6'/%3E%3C/g%3E%3Ccircle cx='75' cy='7' r='1.9' fill='%23F3D48E'/%3E%3C/svg%3E") center/contain no-repeat}
.wl8-mid{margin:14px 0 12px;font-size:21px;line-height:1.45;color:#5A3546}
.wl8-mid b{color:var(--plum);font-weight:800;font-size:23px;display:inline-block}
.wl8-chips{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 6px;margin:0 0 14px}
.wl8-chips b{display:inline-block;padding:7px 14px;border-radius:999px;background:#fff;color:var(--plum);font-family:'Rubik','Heebo',sans-serif;font-weight:700;font-size:16.5px;box-shadow:0 0 0 1.5px #E9C57A,0 3px 10px rgba(158,30,92,.10)}
.wl8-chips span{display:none}
.wl8-go{margin:0;font-family:'Rubik','Heebo',sans-serif;font-weight:800;font-size:23px;color:var(--fu)}
@media(max-width:380px){.wl8-big{font-size:34px}.wl8-mid{font-size:19px}.wl8-mid b{font-size:21px}}

/* v8.2 welcome text (Raizi 17:4x) */
.wl8-big{font-size:31px;line-height:1.25}
.wl8-name{margin:12px 0 4px;font-family:'Rubik','Heebo',sans-serif;font-weight:800;font-size:22px;color:var(--plum)}
.wl8-hl{margin:0 0 12px;font-weight:800;font-size:21px;color:var(--plum)}
.wl8-p{margin:0 0 12px;font-size:17px;line-height:1.6;color:#4A2B3A}
.wl8-p b{color:var(--plum);font-weight:800}
.wl8-p b.wl8-em{color:var(--fu);font-size:20px}
.wl8-go{font-size:22px;margin-top:4px}
@media(max-width:370px){.wl8-big{font-size:27px}.wl8-p{font-size:15.5px}}

/* v8.3 elegant welcome card (Raizi 17:47: brand colours, not childish) */
.wl8{background:#FFFDF9;border:1px solid #D4A85A;box-shadow:0 0 0 5px #FFFDF9,0 0 0 6px rgba(212,168,90,.45),0 12px 30px rgba(158,30,92,.08);padding:28px 8px 24px;margin:6px 4px 26px}
.wl8-big{font-size:29px;font-weight:700;color:#9E1E5C;letter-spacing:.2px}
.wl8-big:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Crect x='6' y='6.5' width='56' height='1' fill='%23D4A85A'/%3E%3Crect x='88' y='6.5' width='56' height='1' fill='%23D4A85A'/%3E%3Cpath d='M75 1.5l1.6 4 4 1.5-4 1.5-1.6 4-1.6-4-4-1.5 4-1.5z' fill='%23D4A85A'/%3E%3Ccircle cx='65' cy='7' r='1.3' fill='%23D4A85A'/%3E%3Ccircle cx='85' cy='7' r='1.3' fill='%23D4A85A'/%3E%3C/svg%3E");margin-top:12px}
.wl8-name,.wl8-hl,.wl8-p,.wl8-p b,.wl8-p b.wl8-em{color:#3a1a2a}
.wl8-name{font-size:20px;font-weight:700;margin:14px 0 2px}
.wl8-hl{font-size:19px;font-weight:700;margin:0 0 14px}
.wl8-p{font-size:16.5px;font-weight:400}
.wl8-p b,.wl8-p b.wl8-em{font-weight:700;font-size:16.5px}
.wl8-go{color:#E84080;font-size:21px;font-weight:700;margin-top:6px}

/* v8.4 Raizi 17:56: fuchsia, not purple — one colour for the whole card */
.wl8-big,.wl8-name,.wl8-hl,.wl8-p,.wl8-p b,.wl8-p b.wl8-em,.wl8-go{color:#E84080}
.wl8-p{font-weight:500}

/* v8.5 Raizi 17:58: more fuchsia around the card */
.wl8{background:#FFFDF9;border:3px solid #E84080;box-shadow:0 0 0 6px #FCE0EB,0 0 0 7px rgba(212,168,90,.55),0 14px 34px rgba(232,64,128,.28);margin:10px 6px 28px;padding:26px 6px 22px}
.wl8-p,.wl8-p b,.wl8-p b.wl8-em{font-size:16px!important}
.wl8-big:after{opacity:.9}
