/* site switcher row in the phone menu of the exam site (the desktop menu never shows it) */
.navlinks .cteh-sites{display:none}
@media(max-width:1100px){
.navlinks.open .cteh-sites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px 0 12px}
.navlinks.open .cteh-sites a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 6px;border:0;border-radius:12px;background:#c4306c;color:#fff;font:700 14px/1.2 Poppins,Prompt,sans-serif;text-align:center}
.navlinks.open .cteh-sites a.is-here{background:#c4306c;border-color:#c4306c;color:#fff}
}

/* the same buttons in the header, next to the menu button (phone only) */
.cteh-hd{display:none}
@media(max-width:1100px){
.nav .wrap{gap:8px}
.cteh-hd{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0}
.cteh-hd a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border:0;border-radius:100px;background:#c4306c;color:#fff;font:700 12px/1 Poppins,Prompt,sans-serif;white-space:nowrap;box-shadow:0 4px 10px rgba(233,77,139,.28)}
.cteh-hd a:active{background:#d63c79}
/* the header stays at the top while the page scrolls */
header.nav{position:sticky;top:0;z-index:50}
.cteh-hd a:nth-child(3){display:none}
.menu-toggle{flex:none}
}
@media(min-width:440px) and (max-width:1100px){.cteh-hd a:nth-child(3){display:inline-flex}}

/* phone: the bar above the header shows the social links (not the phone numbers), like the other sites */
@media(max-width:700px){
.tinybar .phones{display:none}
.tinybar .social{display:flex!important;justify-content:center;gap:20px;width:100%}
.tinybar .wrap{justify-content:center}
}

/* the round icons are not used any more (the bar above the header carries the social links) */
.navlinks .cteh-soc{display:none!important}

/* tablet (701-1100px): the menu does not fit in one row, so it folds into the menu button like on a phone (the theme does that only up to 700px) */
@media(min-width:701px) and (max-width:1100px){
.nav .wrap{height:68px;justify-content:space-between}
.menu-toggle{display:block}
.nav-actions{display:none}
.navlinks{display:none;flex:none;position:absolute;left:0;right:0;top:68px;background:#fff;padding:8px 20px 18px;box-shadow:0 18px 30px #0001;max-height:calc(100vh - 100px);overflow-y:auto}
.navlinks.open{display:block}
.navlinks>ul{flex-direction:column;align-items:stretch;gap:0}
.navlinks>ul>li{padding:0}
.navlinks>ul>li>a{display:block;padding:12px 0;border-radius:0;border-bottom:1px solid #f3f3f3;background:none!important}
.navlinks .sub-menu{position:static;margin:0;padding:0 0 0 12px;box-shadow:none;max-height:none}
.navlinks .sub-menu:before{display:none}
.navlinks li:hover>.sub-menu,.navlinks li:focus-within>.sub-menu{display:none}
.navlinks li.open>.sub-menu{display:block}
}

/* ---------- main menu with a wide box (menu.php) ---------- */
.navlinks .cteh-menu>li.has-mega{position:static}
.navlinks .cteh-menu>li>a{display:block;padding:10px 14px}
.navlinks .cteh-menu .cteh-mega{display:none;position:absolute;left:50%;top:100%;transform:translateX(-50%);width:min(1180px,calc(100vw - 32px));padding:18px 20px 22px;background:#fff;border-radius:0 0 22px 22px;box-shadow:0 24px 50px #25202a26;z-index:70}
.navlinks .cteh-menu .cteh-mega:before{content:"";position:absolute;left:0;right:0;top:-26px;height:26px}
.navlinks .cteh-menu li.has-mega:hover>.cteh-mega,.navlinks .cteh-menu li.has-mega:focus-within>.cteh-mega,.navlinks .cteh-menu li.has-mega.open>.cteh-mega{display:block}
.navlinks .cteh-menu li.has-mega:hover>a,.navlinks .cteh-menu li.has-mega.open>a{background:#e0206a;color:#fff}
.cteh-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:stretch}
.cteh-col{padding:0 22px}
.cteh-col:first-child{padding-left:0}
.cteh-col:last-child{padding-right:0}
.cteh-col+.cteh-col{border-left:1px solid #f7d5e3}
.cteh-col-h{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 14px;margin-bottom:10px;border-radius:14px;background:#ffe3ee;color:#e0206a;text-align:center;font:700 16px/1.25 Poppins,Prompt,sans-serif}
.cteh-ic{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cteh-col ul{list-style:none;margin:0;padding:0}
.cteh-col li{border-bottom:1px solid #efeff2}
.navlinks .cteh-col a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 8px;border-radius:0;color:#34353a;font:400 15px/1.35 Prompt,Poppins,sans-serif;white-space:normal;border:0;background:none}
.navlinks .cteh-col a:after{content:"";width:8px;height:8px;flex:none;border:solid #e0206a;border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:3px}
.navlinks .cteh-col a:hover{background:#fff1f6;color:#e0206a}
@media(max-width:1280px){.cteh-col{padding:0 14px}.navlinks .cteh-col a{font-size:14px;padding:10px 6px}.cteh-col-h{font-size:15px}}
@media(max-width:1100px){
.navlinks .cteh-menu>li.has-mega{position:relative}
.navlinks .cteh-menu .cteh-mega{position:static;transform:none;width:auto;padding:4px 0 10px 8px;box-shadow:none;border-radius:0}
.navlinks .cteh-menu .cteh-mega:before{display:none}
.navlinks .cteh-menu li.has-mega:hover>.cteh-mega{display:none}
.navlinks .cteh-menu li.has-mega.open>.cteh-mega{display:block}
.navlinks .cteh-menu li.has-mega:hover>a{background:none;color:inherit}
.navlinks .cteh-menu li.has-mega.open>a{background:none!important;color:#e0206a}
.cteh-mega-grid{grid-template-columns:1fr;gap:12px}
.cteh-col,.cteh-col:first-child,.cteh-col:last-child{padding:0}
.cteh-col+.cteh-col{border-left:0}
.cteh-col-h{justify-content:flex-start}
}

/* phone (up to 700px): the opened menu is taller than the screen, so it scrolls inside its own box (the header stays at the top) */
@media(max-width:700px){
.navlinks.open{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
}

/* Accessibility (PageSpeed): text contrast of at least 4.5:1 */
:root,.ctx-exam,.cteh{--pink:#c4306c}
.tinybar,.tinybar a{color:#5f6877}
.floating-line{background:#05823a}
.line-bubble{color:#05823a}
.cteh .lb-line{color:#007a28}
.ctx-exam .ex-gallery{gap:10px}
.ctx-exam .ex-figure{min-width:24px;min-height:24px}
.cteh{--muted:#5f6877}
.ctx-exam{--muted:#5f6877}
.cteh .footer-cols a,.footer-cols a{padding:4px 0;min-height:24px;box-sizing:border-box}
.tinybar a,.tinybar span{display:inline-flex;align-items:center;min-height:24px;padding:2px 4px}
/* compact main menu: heading line + first 4 items per group + "View All Exams" button */
.cteh-mega-top{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0 0 14px;padding:0 4px 12px;border-bottom:1px solid #f7d5e3}
.cteh-mega-top b{font:700 20px/1.3 Prompt,Poppins,sans-serif;color:#1f2430}.cteh-mega-top span{font:400 13.5px/1.4 Prompt,Poppins,sans-serif;color:#667085}
.cteh-mega-top+.cteh-col{padding-left:0}
.cteh-col{display:flex;flex-direction:column}
.cteh-col ul{margin-bottom:14px}
.navlinks .cteh-col a.cteh-all{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;min-height:50px;padding:12px 8px;border-radius:14px;border:0;background:linear-gradient(135deg,#e0206a,#c81a5e);color:#fff;font:700 clamp(12.5px,1.2vw,16.5px)/1.2 Prompt,Poppins,sans-serif;white-space:nowrap;box-shadow:0 8px 18px rgba(224,32,106,.28);transition:transform .15s,box-shadow .15s}
.navlinks .cteh-col a.cteh-all:after{width:8px;height:8px;margin:0 0 0 2px;border-color:#fff}
.navlinks .cteh-col a.cteh-all:hover{background:linear-gradient(135deg,#ec2c78,#d11d63);color:#fff;transform:translateY(-2px);box-shadow:0 12px 22px rgba(224,32,106,.36)}
@media(max-width:1100px){.cteh-mega-top{display:none}.navlinks .cteh-col a.cteh-all{margin:6px 0 4px;min-height:48px;font-size:15px}}
