/* Tutor May – Coral & Sunshine brand (from TM_BrandKit_1) */
:root{
  --navy:#1A3A5C; --cream:#FFF6EA; --coral:#FF9F80; --rust:#C2431A;
  --sun:#FFD166; --mint:#BFE8DC; --green:#2E9E70; --red:#E5484D;
  --card:#FFFFFF; --line:#F1DFC8; --radius:20px;
  --shadow:0 8px 24px rgba(26,58,92,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--navy);
  font-family:"Fredoka","Aptos","Segoe UI",system-ui,sans-serif;font-size:18px;line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--rust)}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;font-weight:600}
h1{font-size:clamp(2.1rem,6vw,3.4rem)}
h2{font-size:clamp(1.6rem,4vw,2.2rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
.skip{position:absolute;left:-999px}.skip:focus{left:10px;top:10px;background:#fff;padding:8px 12px;z-index:9}

header.site{position:sticky;top:0;z-index:5;background:rgba(255,246,234,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--navy);font-weight:600;font-size:1.25rem}
.brand img{height:60px;width:auto}
nav a{margin-left:18px;text-decoration:none;color:var(--navy);font-weight:500}
nav a:hover,nav a[aria-current]{color:var(--rust)}
nav a.btn{margin-left:18px}

.btn{display:inline-block;background:var(--navy);color:#fff!important;text-decoration:none;font-weight:600;
  padding:.8em 1.4em;border-radius:999px;border:0;font:inherit;font-weight:600;cursor:pointer;box-shadow:0 4px 0 rgba(26,58,92,.25);transition:transform .1s}
.btn:hover{transform:translateY(-2px)}
.btn.sun{background:var(--sun);color:var(--navy)!important}
.btn.ghost{background:transparent;color:var(--navy)!important;border:2px solid var(--navy);box-shadow:none}
.btn.sm{padding:.5em 1.1em;font-size:.95rem}

.hero{padding:34px 0 24px}
.hero .wrap{display:grid;grid-template-columns:1.4fr .6fr;gap:28px;align-items:center}
.hero .tag{display:inline-block;background:var(--mint);padding:.25em .9em;border-radius:999px;font-weight:500;font-size:.95rem;margin-bottom:14px}
.hero h1 em{font-style:normal;color:var(--rust);background:linear-gradient(transparent 62%,var(--sun) 62%)}
.hero p.lead{font-size:1.2rem;max-width:34em}
.hero .cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.hero img{display:block;margin:0 auto;max-width:300px;width:100%}
.hero h1{text-wrap:balance}
.hero .cta .btn{white-space:nowrap}

section{padding:48px 0}
section.alt{background:#FFEBD3}
section.mint{background:#E4F5EF}
.center{text-align:center}
.grid{display:grid;gap:18px}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--card);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);border:1px solid var(--line)}
.card .ico{font-size:1.8rem;display:block;margin-bottom:6px}
.steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
.steps li{counter-increment:s;background:#fff;border-radius:var(--radius);padding:22px 22px 22px 22px;border:1px solid var(--line);box-shadow:var(--shadow)}
.steps li::before{content:counter(s);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--sun);font-weight:700;margin-bottom:10px}
.split{display:grid;grid-template-columns:.7fr 1.3fr;gap:30px;align-items:center}
.split img{max-width:280px;display:block;margin:0 auto}

/* forms */
form.enq{display:grid;gap:14px;max-width:620px;margin:0 auto;text-align:left}
label{font-weight:500;display:block;margin-bottom:4px}
input,select,textarea{width:100%;font:inherit;padding:.7em .9em;border-radius:12px;border:2px solid var(--line);background:#fff;color:var(--navy)}
input:focus,select:focus,textarea:focus{outline:3px solid var(--sun);border-color:var(--navy)}
.hp{position:absolute;left:-9999px}
.small{font-size:.9rem;opacity:.85}
.alert{background:#fff;border-left:6px solid var(--coral);padding:14px 16px;border-radius:12px}

footer{background:var(--navy);color:#fff;padding:32px 0;margin-top:0}
footer a{color:var(--sun)}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}

/* resources & quizzes */
.res-list{display:grid;gap:14px}
.res{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.res h3{margin:0}.res p{margin:.2em 0 0;opacity:.85}
.flag{vertical-align:-3px;margin-left:2px;border-radius:2px}
.pill{display:inline-block;background:var(--mint);border-radius:999px;padding:.1em .8em;font-size:.85rem;margin-left:8px;font-weight:500}
.qcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px;box-shadow:var(--shadow)}
.qcard .stem{font-weight:500;margin-bottom:10px}
.opt{display:block;padding:.6em .9em;border:2px solid var(--line);border-radius:12px;margin-bottom:8px;cursor:pointer;font-weight:400}
.opt:hover{border-color:var(--navy)}
.opt input{width:auto;margin-right:8px}
.opt.picked{border-color:var(--navy);background:#FFF1D6}
.opt.right{border-color:var(--green);background:#E3F6EC}
.opt.wrong{border-color:var(--red);background:#FDE7E8}
.why{margin-top:10px;padding:10px 12px;background:#FFF6EA;border-radius:12px;font-size:.95rem}
.score{font-size:1.4rem;font-weight:600}
.hidden{display:none!important}

@media (max-width:760px){
  body{font-size:17px}
  .hero .wrap,.split{grid-template-columns:1fr}
  .hero img{max-width:240px;order:-1}
  .g3,.g2,.steps{grid-template-columns:1fr}
  nav a:not(.btn){display:none}
  section{padding:36px 0}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* FAQ */
details.faq{margin-bottom:12px;padding:0}
details.faq summary{cursor:pointer;font-weight:600;padding:16px 22px;list-style:none;display:flex;justify-content:space-between;gap:12px}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--rust)}
details.faq[open] summary::after{content:"–"}
details.faq p{margin:0;padding:0 22px 18px}

/* classes board */
.cls h3{margin-bottom:.3em}
.dots{display:flex;gap:6px;flex-wrap:wrap}
.dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--navy);background:#fff}
.dot.on{background:var(--coral)}
/* weekly timeline */
.tl{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tl li{text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.tl img{width:90px;height:90px;object-fit:contain}
.tl h3{font-size:1.05rem;margin:.4em 0 .3em}
.tl p{margin:0;font-size:.95rem}
@media (max-width:760px){.tl{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.tl{grid-template-columns:1fr}}

/* reef guide picker */
.reefpick{background:#fff;border:3px solid var(--navy);border-radius:10px;padding:4px 8px;font:inherit;font-size:.8rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px}
.reefpick[aria-pressed=true]{background:var(--sun);box-shadow:0 3px 0 var(--navy)}
#reefnote:not(.hidden){display:flex}

/* "Try one fix": the farmer and his speech bubble */
.fixtalk{display:flex;align-items:flex-end;gap:14px;margin:6px 0 16px}
.fixwho{flex:0 0 auto;text-align:center;font-size:.8rem;font-weight:600}
.fixwho img{display:block;margin:0 auto 2px;height:auto}
.fixbubble{position:relative;flex:1;background:#fff;border:2px solid var(--navy);border-radius:18px;padding:12px 16px;font-size:.98rem;line-height:1.45;margin-bottom:26px}
.fixbubble::before{content:"";position:absolute;left:-11px;bottom:22px;width:18px;height:18px;background:#fff;border-left:2px solid var(--navy);border-bottom:2px solid var(--navy);transform:rotate(45deg);border-radius:0 0 0 4px}
@media (max-width:480px){.fixtalk{gap:10px}.fixwho img{width:120px}.fixbubble{font-size:.92rem;padding:10px 12px}}

/* Testimonial cards: a different soft pastel each, repeating after six */
#storylist .card:nth-child(6n+1){background:#DDF3EA}
#storylist .card:nth-child(6n+2){background:#E8E2F8}
#storylist .card:nth-child(6n+3){background:#FFF3BF}
#storylist .card:nth-child(6n+4){background:#DAEEFB}
#storylist .card:nth-child(6n+5){background:#FBDDE3}
#storylist .card:nth-child(6n+6){background:#E4F1D5}

/* Get in touch: bigger, rust, gently pulsing */
.btn.touch{background:var(--rust);color:#fff!important;font-size:1.05rem;padding:.7em 1.5em;box-shadow:0 4px 0 rgba(110,30,10,.35),0 0 0 0 rgba(194,67,26,.45);animation:touchpulse 3.4s ease-in-out infinite}
@keyframes touchpulse{0%,70%,100%{box-shadow:0 4px 0 rgba(110,30,10,.35),0 0 0 0 rgba(194,67,26,0)}85%{box-shadow:0 4px 0 rgba(110,30,10,.35),0 0 0 9px rgba(194,67,26,.28)}}
@media (prefers-reduced-motion:reduce){.btn.touch{animation:none}}

/* Home: sticky row of jump pills under the header */
section[id]{scroll-margin-top:calc(var(--hh,76px) + 60px)}
.jump{position:sticky;top:var(--hh,76px);z-index:4;background:rgba(255,246,234,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.jump .wrap{display:flex;gap:8px;overflow-x:auto;padding:8px 16px;white-space:nowrap;scrollbar-width:none}
.jump .wrap::-webkit-scrollbar{display:none}
.jump a{flex:0 0 auto;text-decoration:none;color:var(--navy);background:#fff;border:2px solid var(--line);border-radius:999px;padding:.38em 1em;font-size:.95rem;font-weight:500}
.jump a:hover{border-color:var(--navy)}
.jump a.v{background:var(--sun);border-color:var(--sun);font-weight:600}
.jump a.go{background:var(--rust);border-color:var(--rust);color:#fff;font-weight:600}
@media (min-width:900px){.jump .wrap{justify-content:safe center}}

/* Phone menu */
.menubtn{display:none;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;border:2px solid var(--navy);background:#fff;color:var(--navy);font:inherit;font-size:1.4rem;line-height:1;cursor:pointer}
.mpanel{display:none;position:absolute;left:0;right:0;top:100%;background:var(--cream);border-bottom:1px solid var(--line);box-shadow:0 10px 20px rgba(26,58,92,.12)}
.mpanel.open{display:block}
.mpanel a{display:block;padding:14px 20px;border-top:1px solid var(--line);color:var(--navy);text-decoration:none;font-weight:500;font-size:1.05rem}
.mpanel a[aria-current]{color:var(--rust)}
@media (max-width:760px){
  .menubtn{display:inline-flex}
  .brand{font-size:.98rem;white-space:nowrap;gap:6px}.brand img{height:42px}
  .btn.touch{font-size:.9rem;padding:.55em .95em;white-space:nowrap}
  nav a.btn.touch{margin-left:0}
  header.site .wrap{gap:8px}
}

/* Small popup (privacy text over the form) */
dialog.popup{width:min(640px,92vw);max-height:84vh;padding:0;border:3px solid var(--navy);border-radius:18px;background:var(--cream);color:var(--navy);box-shadow:0 20px 50px rgba(26,58,92,.35);overflow:hidden}
dialog.popup[open]{display:flex;flex-direction:column}
dialog.popup::backdrop{background:rgba(26,58,92,.55)}
.popbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);background:#fff;font-size:1.1rem}
.popx{width:40px;height:40px;border-radius:10px;border:2px solid var(--navy);background:#fff;color:var(--navy);font:inherit;font-size:1.1rem;cursor:pointer}
.popbody{padding:6px 20px 14px;overflow:auto;font-size:.98rem;line-height:1.5}
.popbody h2{font-size:1.1rem!important;margin:1em 0 .3em!important}
.popfoot{padding:12px 16px;border-top:1px solid var(--line);background:#fff;text-align:center}

/* Lesson clip chooser */
.clippick{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.clippick button{font:inherit;font-weight:600;color:var(--navy);background:#fff;border:2px solid var(--navy);border-radius:999px;padding:.45em 1em;cursor:pointer;min-height:44px}
.clippick button span{font-weight:400;font-size:.85em;opacity:.75;margin-left:4px}
.clippick button[aria-pressed=true]{background:var(--navy);color:#fff}
.clippick button:focus-visible{outline:3px solid var(--sun);outline-offset:2px}

/* Trial Pass and Quiz Pass cards */
#passlist .card:nth-child(1){background:#DAEEFB}
#passlist .card:nth-child(2){background:#FFF3BF}

/* Try one fix: story chooser and the wider scene pictures */
.storypick{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.storypick button{font:inherit;font-weight:600;color:var(--navy);background:#fff;border:2px solid var(--navy);border-radius:999px;padding:.35em 1em;cursor:pointer;min-height:44px}
.storypick button[aria-pressed=true]{background:var(--navy);color:#fff}
.storypick button:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.fixwho img.scene{width:210px;border-radius:12px}
@media (max-width:480px){.fixwho img.scene{width:128px}}

/* Speech bubble: centred beside the picture, tail on the straight edge (not on a rounded corner) */
.fixtalk{align-items:center}
.fixbubble{margin-bottom:0}
.fixbubble::before{bottom:auto;top:50%;margin-top:-9px}

/* Fix it in a story: compact, so the question and all options fit on one screen */
#fixcard{padding-top:16px;padding-bottom:16px}
#fixcard h3{margin:0 0 .1em}
#fixcard .storypick{align-items:center;margin:4px 0 8px;gap:6px}
#fixcard .storypick button{min-height:38px;padding:.2em .8em;font-size:.92rem}
#fixprog{margin:0 0 0 auto;white-space:nowrap}
#fixcard .fixtalk{margin:2px 0 8px;gap:12px}
#fixcard .fixwho{font-size:.75rem}
#fixcard .fixwho img{width:128px}
#fixcard .fixwho img.scene{width:150px}
#fixcard .fixbubble{padding:8px 12px;font-size:.92rem;line-height:1.35}
.fixopts{display:grid;gap:8px;grid-template-columns:1fr 1fr}
.fixopts.cols3{grid-template-columns:repeat(3,1fr)}
.fixopts.cols4{grid-template-columns:repeat(4,1fr)}
.fixopts .btn{min-height:44px;padding:.4em .6em;text-align:center;box-shadow:none;min-width:0;white-space:normal;line-height:1.25}
#fixfb{margin-top:8px!important}
@media (max-width:620px){.fixopts.cols4{grid-template-columns:1fr 1fr}}
@media (max-width:480px){#fixcard .fixwho img{width:84px}#fixcard .fixwho img.scene{width:96px}#fixcard .fixbubble{font-size:.85rem;padding:7px 10px}.fixopts .btn{font-size:.9rem;padding:.3em .3em}#fixprog{width:100%;margin:0}#fixcard .storypick button{flex:1 1 28%;font-size:.8rem;padding:.2em .35em;line-height:1.15;border-radius:14px}}

/* Speech bubble tail, redrawn with two triangles (navy outline, white fill) so the outline never breaks */
.fixbubble::before,.fixbubble::after{content:"";position:absolute;top:50%;margin-top:-10px;width:0;height:0;background:none;transform:none;border-radius:0;border-style:solid;border-width:10px 14px 10px 0;border-left:0;border-top-color:transparent;border-bottom-color:transparent}
.fixbubble::before{left:-16px;bottom:auto;border-right-color:var(--navy)}
.fixbubble::after{left:-13px;border-right-color:#fff}

/* Fix it in a story: its own highlighted section, wide card */
#fixcard{border:3px solid var(--navy);box-shadow:0 10px 30px rgba(26,58,92,.16);padding:22px 28px}
#fixcard h3{font-size:1.5rem}
#fixcard .fixwho img{width:150px}
#fixcard .fixwho img.scene{width:190px}
#fixcard .fixbubble{font-size:1.02rem;padding:10px 16px}
#fixcard .fixopts .btn{font-size:1rem}
#fix>.wrap>h2{margin-bottom:.4em}
@media (max-width:620px){#fixcard{padding:16px 14px}#fixcard h3{font-size:1.25rem}#fixcard .fixwho img{width:96px}#fixcard .fixwho img.scene{width:110px}#fixcard .fixbubble{font-size:.88rem}}

/* Fix it in a story: picture and speech bubble centred, at the earlier (640 px) width */
#fixcard .fixtalk{max-width:640px;margin:2px auto 10px;justify-content:center}
#fixcard .fixbubble{text-align:center}

/* Result mascot: a short pop, then a gentle loop (still on if the visitor prefers reduced motion) */
#fixmascot{width:150px;height:auto}
@keyframes fixpop{0%{transform:scale(.5) rotate(-8deg);opacity:0}60%{transform:scale(1.12) rotate(4deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@keyframes fixbob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(-3deg)}}
@keyframes fixsway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
#fixmascot.fixm-high{animation:fixpop .7s ease-out both,fixbob 1.6s ease-in-out .7s infinite}
#fixmascot.fixm-low{animation:fixpop .7s ease-out both,fixsway 2.6s ease-in-out .7s infinite;transform-origin:50% 90%}
@media (prefers-reduced-motion:reduce){#fixmascot.fixm-high,#fixmascot.fixm-low{animation:none}}

.card .icoimg{display:block;margin:0 0 8px;height:auto;max-width:100%}

/* Fix it in a story: answers review at the end (no Next button; a click is the final choice) */
.fixreviewbox{text-align:left;margin:10px 0 14px;background:#fff;border:2px solid var(--navy);border-radius:14px;padding:8px 14px}
.fixreviewbox summary{font-weight:700;cursor:pointer;min-height:32px;display:flex;align-items:center}
.fixreview{list-style:none;margin:6px 0 4px;padding:0;display:grid;gap:8px}
.fixreview li{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:10px;line-height:1.4}
.fixreview li.ok{background:#E3F6EC}.fixreview li.no{background:#FDE7E8}
.fixreview .rvm{font-weight:800;flex:0 0 1.2em}.fixreview li.ok .rvm{color:#2E9E70}.fixreview li.no .rvm{color:#E5484D}
.fixreview small{font-size:.9rem;color:#3d5570}
.fixreview .sr{position:absolute;left:-9999px}

/* Compact page opener (Student resources): short intro, small mascot, so the login box is on screen at once */
.hero.minihero{padding:22px 0 4px}
.minihero .wrap{grid-template-columns:1fr auto}
.minihero h1{margin:.1em 0 .2em}
.minihero img{width:110px;max-width:110px;margin:0}
.minihero p.lead{font-size:1.05rem;max-width:none;margin:0}
@media (max-width:600px){.minihero .wrap{grid-template-columns:1fr}.minihero img{display:none}}

/* Footer links: spaced out, wrapping neatly */
footer .wrap>.small{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:flex-end;font-size:.95rem}
@media (max-width:700px){footer .wrap>.small{justify-content:flex-start;gap:10px 20px}}

/* Testimonials: filter pills sit on a light card row, tighter on phones */
#tfilter{margin:0 0 18px}

/* Home clips: subject buttons above the clip buttons (Round 77) */
#clipsubj{justify-content:center;margin:14px 0 0}
#clipsubj+.clippick{margin-top:10px}

/* Round 85 (preview): smaller hero mascot on phones so the headline and main buttons show on the first screen */
@media (max-width:480px){.hero img{max-width:150px}.hero{padding-top:18px}}

/* Round 86 (preview): compact two/three-column enquiry form on computers; one column on phones (unchanged) */
form.enq.wide{max-width:900px}
@media (min-width:760px){
  form.enq.wide{grid-template-columns:repeat(6,1fr);column-gap:16px;row-gap:12px;align-items:start}
  form.enq.wide>*{grid-column:1/-1}
  form.enq.wide>.c2{grid-column:span 2}
  form.enq.wide>.c3{grid-column:span 3}
  form.enq.wide .small{display:block;margin-top:2px}
  form.enq.wide button.btn{justify-self:start}
}


/* Round 87 (v4): one enquiry form. Only name and email are needed; the rest sits in two optional panels. */
details.more{border:1px solid rgba(0,0,0,.14);border-radius:14px;background:#fff}
details.more summary{cursor:pointer;font-weight:600;padding:14px 18px;list-style:none;display:flex;justify-content:space-between;gap:12px}
details.more summary::-webkit-details-marker{display:none}
details.more summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--rust)}
details.more[open] summary::after{content:"–"}
details.more .enq-in{display:grid;gap:14px;padding:4px 18px 18px}
#workmsg{color:#C2431A}
@media (min-width:760px){
  form.enq.wide>details.more{grid-column:1/-1}
  .enq-in{grid-template-columns:repeat(6,1fr);column-gap:16px;row-gap:12px;align-items:start}
  .enq-in>*{grid-column:1/-1}
  .enq-in>.c2{grid-column:span 2}
  .enq-in>.c3{grid-column:span 3}
  .enq-in .small{display:block;margin-top:2px}
}

/* v7: "Why am I asking about timing?" note inside the enquiry form */
details.why{margin:0;padding:0;border:0;background:none}
details.why summary{cursor:pointer;font-size:.95rem;color:var(--rust);text-decoration:underline;list-style:none;padding:4px 0}
details.why summary::-webkit-details-marker{display:none}
details.why .why-body{margin-top:8px;padding:14px 18px;background:#FFF6EA;border-radius:12px;font-size:.98rem;line-height:1.65}
details.why .why-body p{margin:0 0 .8em}
details.why .why-body p:last-child{margin-bottom:0}
/* v9: needed fields carry a rust asterisk; everything else is optional */
label.is-req::after,label.is-one::after,label.is-req-in::after{content:" *";color:var(--rust);font-weight:700}
.reqkey{margin:0 0 4px;font-size:.92rem;color:#555}
.reqkey b{color:var(--rust)}
details.more .enq-in label{white-space:nowrap}
details.more .enq-in .c3 label{overflow:hidden;text-overflow:ellipsis}
/* v11: language switch in the header */
.langsw{display:inline-flex;border:2px solid var(--navy);border-radius:999px;overflow:hidden;margin-left:10px;vertical-align:middle;flex:none}
.langsw button{font:inherit;font-size:.92rem;background:transparent;border:0;padding:.3em .85em;min-height:36px;cursor:pointer;color:var(--navy)}
.langsw button[aria-pressed="true"]{background:var(--navy);color:#fff}
.langsw button:focus-visible{outline:3px solid var(--sun);outline-offset:-3px}

/* v14: the pill sits on the same row as the menu (header) or beside the heading (in the page) */
header.site .wrap nav{margin-left:auto}
.langsw-head{margin-left:14px}
.rowpill{display:flex;align-items:center;justify-content:space-between;gap:14px}
.rowpill>:first-child{flex:1;min-width:0}
.rowpill .langsw{margin-left:0}
@media (max-width:560px){.langsw button{font-size:.85rem;padding:.25em .65em;min-height:34px}.langsw-head{margin-left:8px}.rowpill{align-items:flex-start}}
/* v17: header keeps the tab size; only "Get in touch" is narrowed. The tabs shrink only when the window is too narrow. */
.langsw button{font-weight:400}
.langsw button[aria-pressed="true"]{font-weight:700}
@media (min-width:761px){
  header.site nav{display:flex;align-items:center;flex-wrap:nowrap}
  header.site nav a{white-space:nowrap}
  header.site nav a.btn.touch{margin-left:16px;font-size:.88rem;padding:.4em .6em;line-height:1.12;text-align:center;white-space:normal;width:4.4em}
  header.site .wrap{gap:8px}
  .langsw-head{margin-left:12px}
}
@media (min-width:761px) and (max-width:1180px){
  header.site nav a:not(.btn){margin-left:clamp(6px,1.2vw,18px);font-size:clamp(.82rem,1.45vw,1rem)}
  header.site nav a.btn.touch{margin-left:clamp(6px,1.2vw,16px)}
  .brand{font-size:clamp(.9rem,1.7vw,1.1rem)}.brand img{height:clamp(44px,5vw,60px);width:auto}
}

/* v19: list of attached files on the enquiry form */
.filelist{list-style:none;margin:.5em 0 .2em;padding:0}
.filelist:empty{display:none}
.filelist li{display:flex;align-items:center;gap:.6em;padding:.45em .7em;margin:.3em 0;background:#f1f8f2;border:1px solid #bcdcc2;border-radius:10px;font-size:.95rem}
.filelist .tick{color:#1c7a34;font-weight:700}
.filelist .fname{flex:1;min-width:0;overflow-wrap:anywhere}
.filelist .fremove{background:none;border:1px solid #C2431A;color:#C2431A;border-radius:999px;padding:.15em .8em;font:inherit;font-size:.85rem;cursor:pointer}
.filelist .fremove:hover{background:#C2431A;color:#fff}
.filelist li.ftotal{background:none;border:0;padding:.1em 0;color:inherit;font-size:.88rem}
.labtag{display:table;margin:0 auto .5em;background:var(--navy);color:#fff;border-radius:999px;padding:.3em 1.1em;font-size:.9rem;font-weight:600;letter-spacing:.03em}
.labnote{max-width:700px;margin:.9em auto 0;font-weight:500}

/* v26: coloured highlight pills, press effect, private Student resources pill */
.jump a{transition:transform .12s ease,box-shadow .12s ease,background .15s ease;font-weight:600}
.jump a.c-lab{background:var(--coral);border-color:#F0805B}
.jump a.v{background:var(--sun);border-color:#F2B93B}
.jump a.c-test{background:var(--mint);border-color:#7FCDB6}
.jump a.c-tips{background:#CFE3F5;border-color:#8FB9DE}
.jump a:hover{transform:translateY(-2px);box-shadow:0 4px 0 rgba(26,58,92,.18);border-color:var(--navy)}
.jump a:active{transform:translateY(2px) scale(.95);box-shadow:inset 0 3px 6px rgba(26,58,92,.3)}
.jump a[aria-current]{outline:3px solid var(--navy);outline-offset:2px}
.jump a.pop{animation:jpop .45s ease-out}
@keyframes jpop{0%{transform:scale(.92);box-shadow:0 0 0 0 rgba(26,58,92,.45)}60%{transform:scale(1.07);box-shadow:0 0 0 10px rgba(26,58,92,0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(26,58,92,0)}}
.jump a.vip{position:relative;margin-left:22px;background:linear-gradient(135deg,#12294a,#1A3A5C 55%,#27507f);color:#FFD166;border:2px solid #FFD166;letter-spacing:.02em;box-shadow:0 0 0 1px rgba(255,209,102,.35),0 3px 10px rgba(26,58,92,.35);overflow:hidden}
.jump a.vip::before{content:"";position:absolute;left:-22px;top:18%;height:64%;border-left:2px dotted rgba(26,58,92,.35)}
.jump a.vip::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);animation:vipshine 4.5s ease-in-out infinite}
@keyframes vipshine{0%,60%{left:-60%}100%{left:130%}}
.jump a.vip:hover{border-color:#fff;color:#fff}
.jump a.vip[aria-current]{outline-color:#FFD166}
@media (prefers-reduced-motion:reduce){.jump a,.jump a.pop,.jump a.vip::after{animation:none!important;transition:none!important}}

/* v27: hero buttons in the second-row colours; Lessons tag */
.hero .cta .btn.rust{background:var(--rust);color:#fff!important;border:2px solid var(--rust);box-shadow:0 4px 0 rgba(110,30,10,.35)}
.hero .cta .btn.c-lab{background:var(--coral);color:var(--navy)!important;border:2px solid #F0805B;box-shadow:none}
.hero .cta .btn.sun{border:2px solid #F2B93B;box-shadow:none}
.labtag.lessons{background:var(--green)}

/* v28: in-person classes note */
.card.inperson{display:flex;gap:16px;align-items:flex-start;margin-top:18px;border:2px solid var(--green);background:#F2FBF7}
.card.inperson .ico{font-size:2rem;line-height:1}
.card.inperson h3{margin:.1em 0 .3em}
.card.inperson p{margin:.2em 0 0}
.newtag{display:inline-block;background:var(--green);color:#fff;border-radius:999px;padding:.15em .8em;font-size:.82rem;font-weight:600;margin:0 0 .3em!important}

/* v32: headings used as link targets clear the sticky bars */
h2[id],h3[id],div[id]{scroll-margin-top:calc(var(--hh,76px) + 70px)}

/* v33: grouped contact details and tick-box choices in the Home enquiry form */
fieldset.grp{border:2px solid var(--line);border-radius:16px;padding:10px 18px 18px;margin:0;background:#fff;min-width:0}
fieldset.grp legend{font-weight:600;padding:0 8px}
fieldset.grp .cgrid{display:grid;gap:12px}
@media (min-width:760px){
  fieldset.grp .cgrid{grid-template-columns:repeat(6,1fr);column-gap:16px}
  fieldset.grp .cgrid>*{grid-column:1/-1}
  fieldset.grp .cgrid>.c3{grid-column:span 3}
}
.opts{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.opts .lbl{font-weight:500;margin-right:4px}
.opts label{display:flex;align-items:center;gap:8px;font-weight:400;margin:0;cursor:pointer;background:var(--cream);border:2px solid var(--line);border-radius:999px;padding:.35em .95em}
.opts label:has(input:checked){border-color:var(--navy);background:#E4F5EF;font-weight:500}
.opts input{width:auto;padding:0;margin:0;accent-color:var(--navy)}
#asknote{margin-top:10px}

/* v34: start-date follow-up and the days-and-times picker */
.followup{margin:-4px 0 0 14px;padding:2px 0 2px 16px;border-left:3px solid var(--coral)}
.followup label::before{content:"\21B3  ";color:var(--rust);font-weight:700}
.slotpicker .lbl{display:block;font-weight:500;margin-bottom:2px}
.slotscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
table.slots{border-collapse:separate;border-spacing:4px;width:100%;min-width:600px}
table.slots th{font-weight:500;font-size:.78rem;line-height:1.25;text-align:center;padding:0;white-space:nowrap}
table.slots th[scope=row]{text-align:left;width:3.2em}
table.slots button{font:inherit;font-size:.85rem;font-weight:600;color:var(--navy);background:#fff;border:2px solid var(--line);border-radius:10px;padding:.3em .5em;cursor:pointer;width:100%}
table.slots button:hover{border-color:var(--navy)}
table.slots th.am button{background:#FFF6EA;border-color:var(--sun)}
td .slot{position:relative;display:block;margin:0;cursor:pointer}
td .slot input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
td .slot span{display:block;height:36px;border-radius:8px;border:2px solid var(--line);background:#fff;transition:background .12s,border-color .12s}
td.am .slot span{background:#FFF6EA;border-color:#F2D58A}
td .slot:hover span{border-color:var(--navy)}
td .slot input:checked+span{background:var(--green);border-color:var(--green)}
td .slot input:checked+span::after{content:"\2713";display:block;text-align:center;color:#fff;font-weight:700;line-height:32px}
td .slot input:focus-visible+span{outline:3px solid var(--sun);outline-offset:1px}
.slotline{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:6px 0 0}
#slotsum{font-weight:500;color:var(--navy)}
.slotclear{font:inherit;font-size:.85rem;color:var(--rust);background:none;border:0;text-decoration:underline;cursor:pointer;padding:0}
details.more .enq-in .slotpicker label{white-space:normal}

/* v35: names group, hint lines */
.hintline{margin:0;color:#555}
#whogrp .opts{margin-top:2px}

/* v36: "Tell me more" stays open; greyed-out items; trial and one-off forms share the Home layout */
details.more.locked>summary{cursor:default;pointer-events:none}
details.more.locked>summary::after{display:none}
.na{opacity:.5}
.na label,.na legend,.na .lbl{color:#6b6b6b}
.na input,.na select,.na textarea,.na button{background:#EDEDED;cursor:not-allowed}
.na .slot,.na .slot input{cursor:not-allowed}
.nanote{font-style:italic;color:#555}

/* v39: thank-you page summary */
.sentlist{margin:0;display:grid;gap:4px}
.sentlist div{display:grid;grid-template-columns:minmax(120px,38%) 1fr;gap:10px;padding:3px 0;border-bottom:1px dotted #E7D3B6}
.sentlist dt{font-weight:500;color:#555;font-size:.95rem}
.sentlist dd{margin:0;overflow-wrap:anywhere}
.sentlist .key dd{font-weight:600;color:var(--navy)}

/* v41: story animations (all switched off for people who prefer reduced motion) */
@keyframes fxSlide{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@keyframes fxPop{from{opacity:0;transform:scale(.6) translateY(8px)}60%{transform:scale(1.05)}to{opacity:1;transform:none}}
@keyframes fxRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes fxCorrect{0%{transform:scale(1)}40%{transform:scale(1.07)}100%{transform:scale(1)}}
@keyframes fxShake{0%,100%{transform:none}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@keyframes fxBounce{0%{transform:scale(.5) translateY(30px);opacity:0}55%{transform:scale(1.12) translateY(-8px);opacity:1}80%{transform:scale(.97)}100%{transform:none;opacity:1}}
@keyframes fxFall{0%{transform:translate(0,-10px) rotate(0);opacity:1}100%{transform:translate(var(--dx),230px) rotate(var(--rot));opacity:0}}
@keyframes fxGlow{0%{box-shadow:0 0 0 0 rgba(46,158,112,.55)}100%{box-shadow:0 0 0 14px rgba(46,158,112,0)}}
.fx-scene .fixwho img.scene{animation:fxSlide .45s ease-out both}
.fx-scene .fixwho span{animation:fxRise .4s .12s ease-out both}
.fx-scene .fixbubble{animation:fxPop .45s .18s cubic-bezier(.2,.9,.3,1.2) both}
.fx-scene #fixq{animation:fxRise .4s .3s ease-out both}
.fx-scene .fixopts .btn{animation:fxRise .35s ease-out both}
.fx-scene .fixopts .btn:nth-child(1){animation-delay:.38s}.fx-scene .fixopts .btn:nth-child(2){animation-delay:.46s}
.fx-scene .fixopts .btn:nth-child(3){animation-delay:.54s}.fx-scene .fixopts .btn:nth-child(4){animation-delay:.62s}
.fixopts .btn{transition:background .2s,border-color .2s,opacity .25s,transform .15s}
.fixopts .btn:not(:disabled):hover{transform:translateY(-2px)}
.fixopts .btn.fx-ok{animation:fxCorrect .5s ease-out,fxGlow .8s ease-out}
.fixopts .btn.fx-no{animation:fxShake .45s ease-out}
#fixfb.fx-fb{animation:fxRise .35s ease-out both}
#fixbar{height:6px;background:#E3E8EE;border-radius:99px;overflow:hidden;margin:2px 0 8px}
#fixbar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#FFD966,#2E9E70);border-radius:99px;transition:width .5s ease}
#fixmascot.fixm-high,#fixmascot.fixm-low{animation:fxBounce .7s cubic-bezier(.2,.9,.3,1.1) both}
#fixdone{position:relative;overflow:hidden}
.fx-conf{position:absolute;top:0;width:9px;height:14px;border-radius:2px;pointer-events:none;animation:fxFall 2.1s ease-in forwards}
@media (prefers-reduced-motion:reduce){.fx-scene *,.fixopts .btn,#fixfb,#fixmascot,.fx-conf{animation:none!important;transition:none!important}.fx-conf{display:none}}

/* v49: fact cards (animal stories): a wide photo above a "Did you know?" card, no speech bubble */
#fixcard.fx-fact .fixtalk{flex-direction:column;align-items:stretch;gap:8px}
#fixcard.fx-fact .fixwho{font-size:.85rem}
#fixcard.fx-fact .fixwho img,#fixcard.fx-fact .fixwho img.scene{width:100%;max-width:560px;aspect-ratio:3/2;object-fit:cover;border-radius:12px;margin:0 auto 4px}
#fixcard.fx-fact #fixcredit{display:block;font-size:.68rem;font-weight:400;color:#5b6b7b;line-height:1.3}
#fixcard.fx-fact .fixbubble{background:#FFF8DC;border:2px solid var(--navy);border-radius:14px;padding:10px 14px;font-size:.95rem;margin:0}
#fixcard.fx-fact .fixbubble::before{content:"Did you know?";position:static;display:block;width:auto;height:auto;margin:0 0 3px;border:0;font-weight:700;font-size:.8rem;color:var(--navy);text-transform:uppercase;letter-spacing:.04em}
#fixcard.fx-fact .fixbubble::after{display:none}
/* v49 fact cards, second pass: photo beside the fact on wide screens so the question stays in view */
@media (min-width:700px){
#fixcard.fx-fact .fixtalk{flex-direction:row;align-items:center;gap:16px}
#fixcard.fx-fact .fixwho{flex:0 0 320px}
#fixcard.fx-fact .fixwho img,#fixcard.fx-fact .fixwho img.scene{max-width:320px;margin:0 0 4px}
#fixcard.fx-fact .fixbubble{flex:1}
}
@media (max-width:699px){#fixcard.fx-fact .fixwho img,#fixcard.fx-fact .fixwho img.scene{max-width:300px;aspect-ratio:16/10}}

/* v50: narrator line above the speech bubble (optional, set per question) */
#fixnarr{margin:0 0 10px;padding:8px 14px;background:#F3EEFB;border-left:4px solid #6B4FA0;border-radius:10px;color:#3F2D6B;font-size:.95rem;line-height:1.4;font-style:italic}
#fixnarr.hidden{display:none}

/* v56: when the speaker stands on the LEFT of the picture, the bubble goes on the left too, tail pointing right */
#fixtalk.fx-left{flex-direction:row-reverse}
#fixtalk.fx-left .fixbubble::before,#fixtalk.fx-left .fixbubble::after{left:auto;border-width:10px 0 10px 14px;border-style:solid;border-right-color:transparent;border-top-color:transparent;border-bottom-color:transparent}
#fixtalk.fx-left .fixbubble::before{right:-16px;border-left-color:var(--navy)}
#fixtalk.fx-left .fixbubble::after{right:-13px;border-left-color:#fff}

/* v57: narrator-only question: no speech bubble, picture centred under the narrator box */
#fixtalk.fx-nobubble .fixbubble{display:none}
#fixtalk.fx-nobubble{justify-content:center}

/* v73: "put the words in order" question (Fix it in a story, animal facts harder set) */
.fixopts.ord{display:block}
.ord-slots{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:56px;padding:10px;border:2px dashed var(--navy);border-radius:14px;background:#fff;margin-bottom:10px}
.ord-hint{color:#5b6b7b;font-size:.9rem}
.ord-tiles{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.fixopts.ord .btn.ord-tile,.fixopts.ord .btn.ord-slot{min-height:44px;padding:.4em 1em;font-size:1.05rem}
.ord-tile.ord-used{visibility:hidden}
.ord-actions{display:flex;gap:8px;flex-wrap:wrap}
.ord-actions .btn[disabled]{opacity:.5;cursor:not-allowed}
