/* Reference direction: expressive editorial scale, quiet product surfaces. */
:root{--surface-line:#e2e3eb;--surface-soft:#f0f2f8}
.header nav{gap:6px;background:var(--surface-soft);padding:5px;border-radius:999px}
.header nav a{padding:9px 15px;border-radius:999px;font-size:13px}
.header nav a:hover,.header nav a.active{background:white;color:var(--blue)}
.hero{padding-top:36px;padding-bottom:24px;gap:24px}
.hero-copy{min-width:0}
.hero .lead{max-width:39ch;margin:28px 0;line-height:1.65}
.hero-collage{max-height:610px;align-self:center;margin-top:0}
.hero-actions{display:flex;align-items:flex-start;flex-direction:column;gap:20px;max-width:410px}
.hero-actions>.button{min-width:280px;justify-content:space-between}
.hero-compare-entry{width:100%;margin:0;padding-top:18px;border-top:1px solid var(--surface-line);justify-content:space-between;gap:12px}
.hero-compare-entry p{font-size:13px}
.hero-compare-link{padding:12px 18px;min-height:44px}
.ribbon{margin:8px 0 24px}
.compare-section{background:linear-gradient(var(--blue) 0 245px,var(--paper) 245px);border-radius:32px 32px 0 0;overflow:hidden}
.compare-section:before{display:none}
.compare-section>.section{padding-top:48px;padding-bottom:48px}
.compare-section .section-heading{align-items:end;margin-bottom:28px;gap:24px}
.compare-section .section-heading p{max-width:27ch;margin:0;line-height:1.6}
.comparison-box{background:white;border:1px solid var(--surface-line);border-radius:20px;padding:32px}
.comparison-controls{padding-bottom:24px;border-bottom:1px solid var(--surface-line)}
.tabs{background:var(--surface-soft);padding:4px;border-radius:12px}
.tabs button{border-radius:9px;min-height:44px}
.compare-selects{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin:24px 0 28px}
.compare-selects .versus{display:none}
.compare-selects label,.compare-selects label:nth-of-type(2){padding:0;background:transparent;border-radius:0;color:var(--blue)}
.compare-selects label:nth-of-type(2){color:#963758}
.compare-selects label>span{display:block;margin-bottom:9px;font-size:13px;font-weight:600}
.compare-selects select{border:1px solid #d9deef;border-radius:12px;background:#f5f7ff;min-height:56px;padding:14px;font-size:15px}
.compare-selects label:nth-of-type(2) select{background:#fdf4f8;border-color:#eedbe4}
.compare-selects select:hover{border-color:var(--blue)}
.compare-selects label:nth-of-type(2) select:hover{border-color:#963758}
#teacher-subject-wrap{background:transparent;padding:0;border:0}
#teacher-subject-wrap select{min-height:44px;background:var(--surface-soft);border:1px solid var(--surface-line)}
.comparison-row{padding:18px 12px;border-color:#edeef3}
.comparison-row:nth-child(even){background:#f8f9fc;border-radius:8px}
.compare-price-card{border-radius:14px;box-shadow:none}
.compare-verdict-grid article{border-left-width:2px}
.method-link{min-height:44px}
.rating-catalog{background:var(--surface-soft)}
.rating-hero{padding-top:48px;padding-bottom:48px}
.rating-orbit{display:none}
.ratings-page .school-card:nth-child(n){overflow:clip;border:1px solid var(--surface-line);border-radius:18px;padding:28px}
.ratings-page .school-card:nth-child(1){background:#fff}
.ratings-page .school-grid{gap:24px}
.ratings-page .card-open{border-radius:12px}
.catalog-toolbar select{border:1px solid #d9deef;background:white;border-radius:10px;min-height:44px}
.about-project{display:grid;grid-template-columns:1fr 1.5fr;gap:24px 64px;border-top:1px solid var(--surface-line);margin-top:56px;padding-top:48px}
.about-project h2{margin:0}
.about-lead{margin:0;max-width:55ch}
.about-grid{grid-column:1/-1;gap:32px;margin-top:12px}
.about-grid article{padding-top:24px;border-top:1px solid var(--surface-line)}
.about-grid h3{margin-top:0}
.channel-section{border-radius:24px;gap:48px;padding:48px}
.channel-section:before{display:none}
.channel-copy p{max-width:48ch}
select:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #8a9aff;outline-offset:4px}
@media(min-width:701px) and (max-width:1050px){.hero{gap:8px}.hero-collage{max-height:390px;width:65%;justify-self:end;margin-top:-80px;pointer-events:none}.hero-actions{position:relative;z-index:2}.about-project{gap:24px}.how-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .hero{padding-top:30px;padding-bottom:0;gap:4px}
 .hero-actions{width:100%;max-width:none;gap:18px}
 .hero-actions>.button{width:100%;min-width:0}
 .hero-compare-entry{padding-top:16px;flex-wrap:wrap}
 .hero-collage{max-height:330px;width:90%;margin:0 auto}
 .ribbon{margin:0 0 20px}
 .compare-section{border-radius:24px 24px 0 0;background:linear-gradient(var(--blue) 0 215px,var(--paper) 215px)}
 .compare-section>.section{padding-top:32px;padding-bottom:32px}
 .compare-section .section-heading{align-items:start;gap:14px;margin-bottom:24px}
 .comparison-box{padding:16px;border-radius:16px}
 .comparison-controls{padding-bottom:16px}
 .compare-selects{gap:12px;margin:20px 0}
 .compare-selects select{font-size:12px;padding:12px 7px;min-height:52px}
 .compare-selects label>span{font-size:12px}
 .comparison-row{padding:14px 6px;font-size:12px}
 .ratings-page .school-card:nth-child(n){padding:24px}
 .channel-section{padding:32px 24px;gap:28px}
 .about-project{grid-template-columns:1fr;gap:20px;margin-top:40px;padding-top:32px}
 .about-grid{grid-template-columns:1fr;gap:20px;margin-top:0}
 .about-grid article{padding-top:20px}
}
.header nav a.active:after{display:none}
.catalog-toolbar select{color:var(--ink)}
.catalog-toolbar label:after{color:var(--blue)}
.catalog-toolbar select:hover{transform:none;box-shadow:none;border-color:var(--blue)}
.catalog-toolbar select:focus-visible{outline:3px solid #8a9aff;outline-offset:3px;box-shadow:none}

/* Centered typographic hero. Only decorative layers move, never the text. */
.hero.hero-centered{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:center;text-align:center;min-height:620px;padding:80px 24px 88px;overflow:hidden;gap:0}
.hero-centered .hero-copy{position:relative;z-index:1;max-width:1100px;width:100%}
.hero-centered h1{font-size:clamp(44px,6.15vw,88px);line-height:1.12;letter-spacing:-.055em;margin:0;text-wrap:balance}
.hero-title-line{display:block}
.hero-centered .lead{max-width:650px;margin:30px auto 34px;font-size:18px;line-height:1.65}
.hero-centered .hero-actions{flex-direction:row;justify-content:center;align-items:center;gap:16px;max-width:none;width:100%}
.hero-centered .hero-actions>.button,.hero-centered .hero-compare-link{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:space-between;gap:32px;width:auto;min-width:260px;min-height:62px;padding:20px 28px;border-radius:999px;font-size:15px;box-shadow:none}
.hero-glow{position:absolute;z-index:0;pointer-events:none;width:440px;height:440px;border-radius:50%;opacity:.65}
.hero-glow-blue{left:-170px;top:30px;background:radial-gradient(circle,#dce3ff 0%,#e9edfc80 40%,transparent 70%);animation:hero-drift 12s ease-in-out infinite alternate}
.hero-glow-pink{right:-150px;bottom:-100px;background:radial-gradient(circle,#ffd3e5 0%,#fce6ef70 42%,transparent 70%);animation:hero-drift 15s ease-in-out infinite alternate-reverse}
@keyframes hero-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(48px,-30px,0)}}
.hero-centered .hero-actions>.button:after,.hero-centered .hero-compare-link:after{content:'';position:absolute;inset:-35% auto -35% -70%;width:45%;background:linear-gradient(100deg,transparent,#ffffff50,transparent);transform:skewX(-18deg);pointer-events:none}
@media(hover:hover){.hero-centered .hero-actions>.button:hover:after,.hero-centered .hero-compare-link:hover:after{animation:button-sheen .7s ease-out both}}
@keyframes button-sheen{to{left:130%}}
.hero-centered .hero-actions>.button:active,.hero-centered .hero-compare-link:active{transform:scale(.98)}
@media(max-width:1050px){.hero.hero-centered{min-height:550px;padding:64px 16px}.hero-centered .hero-copy{max-width:100%}.hero-centered h1{font-size:clamp(44px,6.15vw,76px)}}
@media(max-width:700px){.hero.hero-centered{min-height:0;padding:52px 0 56px}.hero-centered h1{font-size:clamp(34px,8.8vw,56px);letter-spacing:-.05em;line-height:1.16}.hero-centered .lead{font-size:15px;margin:24px auto 28px;max-width:34ch}.hero-centered .hero-actions{flex-direction:column;gap:12px;max-width:360px;margin:auto}.hero-centered .hero-actions>.button,.hero-centered .hero-compare-link{width:100%;min-width:0;min-height:56px;padding:17px 24px;font-size:14px}.hero-glow{width:280px;height:280px;opacity:.5}.hero-glow-blue{left:-160px;top:0}.hero-glow-pink{right:-160px;bottom:-40px}}
@media(prefers-reduced-motion:reduce){.hero-glow{animation:none}.hero-centered .hero-actions>.button:after,.hero-centered .hero-compare-link:after{display:none}.hero-centered .hero-actions>.button:active,.hero-centered .hero-compare-link:active{transform:none}}

/* Full-bleed light has no clipped edge at the content container. */
.hero.hero-centered{width:100%;max-width:none;margin-inline:0;padding-inline:max(24px,calc((100% - 1184px)/2));overflow:hidden}
.hero-glow-blue{left:-140px}
.hero-glow-pink{right:-120px;bottom:-60px}
.hero-glow{animation-play-state:paused}
.hero-centered.motion-visible .hero-glow{animation-play-state:running}
/* Shared light sweep on actions across both pages. */
.button,.card-open,.method-pill{position:relative;isolation:isolate;overflow:hidden}
.button:after,.card-open:after,.method-pill:after{content:'';position:absolute;inset:-35% auto -35% -70%;width:45%;background:linear-gradient(100deg,transparent,#ffffff55,transparent);transform:skewX(-18deg);pointer-events:none}
@media(hover:hover){
 .button:hover:after,.card-open:hover:after,.method-pill:hover:after{animation:button-sheen .75s ease-out both}
 .ratings-page .school-card:hover:before{transform:translate(-22px,24px) scale(1.15);border-color:#ced6ff}
 .ratings-page .school-card:nth-child(even):hover:before{border-color:#f6c9dd}
 .compare-price-card:hover{border-color:#a8b5f1;box-shadow:0 8px 28px #344bd810}
 .subject:hover{box-shadow:0 0 0 4px #344bd80c}
}
.ratings-page .school-card:before{border-color:#e8ecfc;transition:transform .6s cubic-bezier(.2,.7,.2,1),border-color .6s}
.compare-price-card{transition:border-color .25s,box-shadow .25s}
.channel-section{position:relative;isolation:isolate;overflow:hidden}
.channel-section:after{display:block;content:'';position:absolute;z-index:-1;width:380px;height:380px;right:-180px;top:-150px;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 45px #ffffff05,0 0 0 90px #ffffff04;pointer-events:none;animation:channel-orbit 11s ease-in-out infinite alternate;animation-play-state:paused}
.channel-section.motion-visible:after{animation-play-state:running}
@keyframes channel-orbit{to{transform:translate(-45px,65px) scale(1.12)}}
.reviews{position:relative;isolation:isolate;overflow:hidden}
.reviews:after{width:330px;height:330px;right:-125px;top:-155px;border-width:58px;border-color:#c9d2ff;box-shadow:0 0 0 42px rgb(52 75 216/.035),0 0 0 84px rgb(255 77 141/.025);opacity:1;animation:review-orbit 10s ease-in-out infinite alternate;animation-play-state:paused;will-change:transform,border-color,box-shadow}
.reviews.motion-visible:after{animation-play-state:running}
.review-copy{align-self:center}
.review-copy>p:first-child{margin-bottom:28px}
.review-steps{margin-top:0}
@keyframes review-orbit{
 0%{transform:translate3d(0,0,0) scale(1);border-color:#c9d2ff;box-shadow:0 0 0 42px rgb(52 75 216/.035),0 0 0 84px rgb(255 77 141/.025)}
 55%{border-color:#efd0de;box-shadow:0 0 0 55px rgb(255 77 141/.04),0 0 0 96px rgb(52 75 216/.025)}
 100%{transform:translate3d(-44px,58px,0) scale(1.1);border-color:#bfcaff;box-shadow:0 0 0 48px rgb(52 75 216/.045),0 0 0 102px rgb(255 77 141/.03)}
}
.rating-next:after{top:50%;transform:translate3d(0,-50%,0);animation:rating-next-orbit 12s ease-in-out infinite alternate;animation-play-state:paused;will-change:transform}
.rating-next.motion-visible:after{animation-play-state:running}
@keyframes rating-next-orbit{
 from{transform:translate3d(0,-50%,0) scale(1)}
 to{transform:translate3d(-34px,-50%,0) scale(1.05)}
}
@media(max-width:700px){.hero.hero-centered{padding-inline:16px}.hero-glow-blue{left:-140px}.hero-glow-pink{right:-130px}.reviews:after{width:205px;height:205px;right:-92px;top:-90px;border-width:38px}.review-copy>p:first-child{margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.hero-glow,.channel-section:after,.reviews:after,.rating-next:after{animation:none!important}.rating-next:after{transform:translate3d(0,-50%,0)}.button:after,.card-open:after,.method-pill:after{display:none}.ratings-page .school-card:before,.compare-price-card{transition:none}}

/* School teacher directory: a compact secondary layer inside the existing rating flow. */
.school-card-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:8px;margin-top:auto}
.school-card-actions .card-compare{display:flex;grid-column:1/-1;min-height:40px;padding:8px 12px;align-items:center;justify-content:center;gap:7px;border:0;border-top:1px solid #e8eaf1;border-radius:0;background:transparent;color:#747a8b;font:700 11px/1 var(--font-ui);white-space:nowrap;transition:color .2s,background .2s,transform .2s}
.card-compare>span{color:var(--blue);font-size:15px;line-height:1}
.card-compare:hover{border-radius:10px;background:#f4f6ff;color:var(--blue)}
.card-compare:active{transform:translateY(1px)}
.card-compare.selected{color:var(--blue)}
.school-mark-logo{position:relative;overflow:hidden;background:white!important;border:1px solid #e5e7ef;color:var(--blue)!important}
.school-mark-logo b{font-size:14px;line-height:1}
.school-mark-logo img{position:absolute;inset:0;width:100%;height:100%;padding:6px;background:white;object-fit:contain}
.school-card-actions .card-open{margin-top:0}
.card-teachers{display:flex;min-height:48px;padding:12px 14px;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dfe3f3;border-radius:12px;background:white;color:var(--ink);font:700 12px/1 var(--font-ui);transition:border-color .2s,background .2s,transform .2s}
.card-teachers>span{display:grid;min-width:27px;height:27px;padding:0 7px;place-items:center;border-radius:9px;background:var(--blush);color:#8a3155;font-variant-numeric:tabular-nums}
.card-teachers:hover{border-color:#aeb9ec;background:#f8f9ff}
.card-teachers:active{transform:translateY(1px)}
.detail-teachers-entry{display:flex;margin-top:12px;padding:22px 24px;align-items:center;justify-content:space-between;gap:20px;border-radius:18px;background:#eef1ff}
.detail-teachers-entry>div{display:flex;flex-direction:column;gap:5px}
.detail-teachers-entry small{color:#666d84;font-size:11px}
.detail-teachers-entry strong{font:700 20px/1.2 var(--font-ui)}
.detail-teachers-entry button{display:flex;min-height:44px;padding:12px 16px;align-items:center;gap:24px;border:0;border-radius:12px;background:var(--blue);color:white;font-weight:700}
dialog:has(.teacher-directory){max-width:1080px;padding:0;overflow:auto}
.teacher-directory{padding:52px}
.teacher-directory-head{display:grid;grid-template-columns:1fr 120px;gap:32px;align-items:end}
.teacher-kicker{margin:0 0 10px;color:var(--blue);font:700 11px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase}
.teacher-directory h2{margin:0 0 14px;font-size:clamp(38px,5vw,68px);overflow-wrap:anywhere}
.teacher-directory-head>div>p:last-child{max-width:620px;margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.teacher-directory-count{display:flex;min-height:120px;padding:18px;flex-direction:column;justify-content:space-between;border-radius:18px;background:var(--blush);color:#7f2e50}
.teacher-directory-count strong{font:750 42px/1 var(--font-ui);font-variant-numeric:tabular-nums}
.teacher-directory-count span{font-size:11px}
.teacher-subjects{display:flex;gap:8px;margin:30px -4px 14px;padding:4px;overflow-x:auto;scrollbar-width:none}
.teacher-subjects::-webkit-scrollbar{display:none}
.teacher-subjects button{flex-shrink:0;padding:11px 16px;border:1px solid #dde1ef;border-radius:999px;background:white;color:#5f6473;font-size:12px;transition:background .2s,color .2s,border-color .2s}
.teacher-subjects button.active{border-color:var(--blue);background:var(--blue);color:white}
.teacher-result{margin:0 0 18px;color:#696e7d;font-size:12px}
.teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.teacher-profile{display:flex;min-width:0;padding:20px;border:1px solid #e2e4ed;border-radius:18px;background:white;flex-direction:column}
.teacher-profile-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center}
.teacher-monogram{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:#e4e9ff;color:var(--blue);font:750 19px/1 var(--font-ui)}
.teacher-profile:nth-child(even) .teacher-monogram{background:var(--blush);color:#8a3155}
.teacher-profile-head p{margin:0 0 4px;color:#6a7080;font-size:11px}
.teacher-profile-head h3{margin:0;font:700 18px/1.2 var(--font-ui);letter-spacing:-.02em;overflow-wrap:anywhere}
.teacher-profile-head>strong{color:var(--blue);font:750 22px/1 var(--font-ui);font-variant-numeric:tabular-nums}
.teacher-profile-head>.teacher-card-score{max-width:112px;font-size:13px;line-height:1.2;text-align:right}
.teacher-scale{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:17px 0}
.teacher-scale i{height:5px;border-radius:5px;background:linear-gradient(90deg,var(--blue) var(--fill),#e4e6ef var(--fill))}
.teacher-profile .teacher-scale{gap:3px}
.teacher-rating-pending{min-height:5px;margin:17px 0;color:#858a98;font-size:11px}
.teacher-description{display:-webkit-box;min-height:66px;margin:0 0 18px;overflow:hidden;color:#606574;font-size:13px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.teacher-more{display:none;margin:-8px 0 16px;padding:5px 0;align-self:flex-start;border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:700}
.teacher-more span{margin-left:5px}
.teacher-profile>a{display:flex;margin-top:auto;padding-top:14px;align-items:center;justify-content:space-between;border-top:1px solid #eceef4;color:var(--ink);font-size:12px;font-weight:700;text-decoration:none}
.teacher-profile>a span{color:var(--blue);font-size:17px}
.teacher-note{margin:22px 0 0;color:#737887;font-size:11px;line-height:1.55}
@media(max-width:700px){
 .school-card-actions{grid-template-columns:1fr}
 .detail-teachers-entry{align-items:stretch;flex-direction:column}
 .detail-teachers-entry button{justify-content:space-between}
 dialog:has(.teacher-directory){width:calc(100% - 8px);max-height:calc(100dvh - 8px);padding-top:54px;border-radius:22px}
 dialog:has(.teacher-directory) #dialog-content{padding:0;max-height:calc(100dvh - 62px)}
 dialog:has(.teacher-directory) .close{right:10px;top:8px}
 .teacher-directory{padding:0 14px 24px}
 .teacher-directory-head{grid-template-columns:1fr}
 .teacher-directory h2{font-size:36px;margin-bottom:10px}
 .teacher-directory-head>div>p:last-child{font-size:13px;line-height:1.5}
 .teacher-directory-count{min-height:58px;padding:12px 15px;display:grid;grid-template-columns:1fr auto;align-items:center;border-radius:15px}
 .teacher-directory-count strong{font-size:29px}
 .teacher-subjects{margin-top:18px}
 .teacher-grid{grid-template-columns:1fr}
 .teacher-profile{padding:16px;border-radius:16px}
 .teacher-description{min-height:0;margin-bottom:12px}
 .teacher-more{display:block}
.teacher-profile.description-open .teacher-description{display:block;overflow:visible;-webkit-line-clamp:unset}
}

/* Review and Telegram cards share the same two typographic roles. */
.reviews h2{
 font-family:var(--font-display);
 font-size:38px;
 font-weight:600;
 letter-spacing:-.045em;
 line-height:1.2;
}
.review-copy>p:first-child{
 max-width:520px;
 margin-bottom:28px;
 font-family:var(--font-ui);
 font-size:20px;
 font-weight:500;
 letter-spacing:-.35px;
 line-height:1.5;
}
@media(max-width:700px){
 .reviews h2{font-size:28px;letter-spacing:-.045em}
 .review-copy>p:first-child{margin-bottom:24px;font-size:17px;letter-spacing:-.2px;line-height:1.55}
}

/* Content never depends on animation to be readable. */
.reveal-ready{opacity:1;transform:none}
.compare-section{position:relative}
.compare-section>.section{position:relative;z-index:1}
.comparison-box{box-shadow:0 28px 80px -58px rgb(24 25 35/.34)}
.reviews{margin-top:72px;margin-bottom:72px}
.channel-section{margin-top:0;margin-bottom:72px}
.about-project{margin-bottom:24px}
@media(max-width:700px){.reviews{margin-top:48px;margin-bottom:48px}.channel-section{margin-bottom:48px}.comparison-box{box-shadow:none}}
@keyframes button-sheen{from{transform:translateX(0) skewX(-18deg)}to{transform:translateX(500%) skewX(-18deg)}}
/* Rating landing shares the homepage's type scale, alignment and light. */
.rating-centered .hero-title-line.brand-dot{display:inline-block}
.rating-centered .hero-actions>.button{min-width:280px}
@media(max-width:700px){.rating-centered .lead br{display:none}.rating-centered .hero-actions>.button{min-width:0}}

/* A calm, continuous comparison rail between the hero and the product. */
.ribbon{
 position:relative;
 isolation:isolate;
 width:min(1420px,calc(100% - 64px));
 height:62px;
 margin:10px auto 32px;
 padding:0;
 overflow:hidden;
 border:1px solid #eed4df;
 border-radius:999px;
 background:#f8e3ec;
 box-shadow:0 14px 38px rgb(118 49 78/.07),inset 0 1px 0 rgb(255 255 255/.72);
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
 mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}
.ribbon:before{
 content:'';
 position:absolute;
 z-index:0;
 inset:0;
 border-radius:inherit;
 background:linear-gradient(105deg,transparent 28%,rgb(255 255 255/.5) 45%,transparent 62%);
 transform:translateX(-70%);
 animation:ribbon-glint 9s ease-in-out infinite;
 pointer-events:none;
}
.ribbon-track{
 position:relative;
 z-index:1;
 display:flex;
 width:max-content;
 height:100%;
 align-items:center;
 animation:ribbon-loop 30s linear infinite;
 will-change:transform;
}
.ribbon-set{
 display:flex;
 flex-shrink:0;
 align-items:center;
 gap:24px;
 padding:0 12px;
}
.ribbon .ribbon-set .ribbon-word{
 color:#272735;
 font:650 12px/1 var(--font-ui);
 letter-spacing:.025em;
 white-space:nowrap;
}
.ribbon-set i{
 display:block;
 width:8px;
 height:8px;
 flex:0 0 8px;
 border-radius:50%;
 background:var(--pink);
 box-shadow:0 0 0 4px rgb(255 77 141/.1);
}
.ribbon-set i:nth-of-type(even){
 background:var(--blue);
 box-shadow:0 0 0 4px rgb(52 75 216/.09);
}
.ribbon:hover .ribbon-track{animation-play-state:paused}
@keyframes ribbon-loop{to{transform:translateX(-50%)}}
@keyframes ribbon-glint{0%,58%{transform:translateX(-70%)}82%,100%{transform:translateX(70%)}}
@media(max-width:700px){
 .ribbon{width:calc(100% - 24px);height:52px;margin:8px auto 22px}
 .ribbon-set{gap:18px;padding:0 9px}
 .ribbon-word{font-size:11px}
 .ribbon-set i{width:7px;height:7px;flex-basis:7px;box-shadow:0 0 0 3px rgb(255 77 141/.1)}
 .ribbon-set i:nth-of-type(even){box-shadow:0 0 0 3px rgb(52 75 216/.09)}
}
@media(prefers-reduced-motion:reduce){
 .ribbon-track,.ribbon:before{animation:none}
}

/* The first rating card uses the same quiet orbit as the rest of the grid. */
.ratings-page .school-card:nth-child(1):before{
 border-color:#e8ecfc;
}

/* Methodology cards explain the evidence behind every score. */
.weight-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.weight-item{display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:132px;padding:19px 20px;justify-content:initial;column-gap:14px;row-gap:8px;background:#fff}
.weight-item b{grid-row:1/3;font-size:24px}
.weight-item span{font-size:14px;font-weight:750;line-height:1.25}
.weight-item small{color:#646978;font-size:12px;line-height:1.5}

/* Every school card uses the same action hierarchy, including first place. */
.ratings-page .school-card:nth-child(1) .card-open{background:#edf0ff;color:var(--ink)}

/* Review CTA appears after the user has read the school's details. */
.detail-review-entry{display:flex;margin-top:12px;padding:22px 24px;align-items:center;justify-content:space-between;gap:24px;border:1px solid #f0cfdd;border-radius:18px;background:#fbe7ef}
.detail-review-entry>div{display:flex;min-width:0;flex-direction:column;gap:4px}
.detail-review-entry small{color:#9a4263;font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.detail-review-entry strong{font:750 18px/1.3 var(--font-ui)}
.detail-review-entry p{max-width:510px;margin:2px 0 0;color:#66616a;font-size:12px;line-height:1.55}
.detail-review-entry>a{display:flex;min-width:210px;min-height:48px;padding:13px 16px;align-items:center;justify-content:space-between;gap:20px;border-radius:12px;background:var(--ink);color:#fff;font-size:12px;font-weight:750;transition:background .2s,transform .2s}
.detail-review-entry>a:hover{background:var(--blue)}
.detail-review-entry>a:active{transform:translateY(1px)}

.review-copy .button.dark{max-width:390px;line-height:1.25;text-align:left}

@media(max-width:700px){
 .weight-grid{grid-template-columns:1fr}
 .weight-item{min-height:0;grid-template-columns:56px minmax(0,1fr);padding:16px}
 .weight-item b{font-size:21px}
 .weight-item span{font-size:13px}
 .weight-item small{font-size:11px}
 .detail-review-entry{padding:18px;align-items:stretch;flex-direction:column;gap:16px}
 .detail-review-entry>a{width:100%;min-width:0}
 .review-copy .button.dark{max-width:none;font-size:12px;gap:14px}
}

/* School details: one clear path, with supporting actions kept quiet. */
dialog:has(.detail-simple){max-width:900px}
.detail-simple{padding:46px 50px 40px}
.detail-simple .detail-hero{margin-bottom:24px;align-items:center}
.detail-simple .detail-hero h2{font-size:clamp(38px,5vw,64px)}
.detail-simple .detail-hero p{max-width:540px;margin-top:8px}
.detail-simple .detail-score{width:118px;height:118px;flex:0 0 118px}
.detail-simple .detail-score strong{font-size:38px}
.detail-subject-line{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;padding:17px 0;border-top:1px solid #e4e3e1;border-bottom:1px solid #e4e3e1;align-items:baseline}
.detail-subject-line strong{font-size:13px}
.detail-subject-line span{color:#666b79;font-size:13px;line-height:1.55}
.detail-facts{display:grid;grid-template-columns:1fr 1fr;margin-top:0;border-bottom:1px solid #e4e3e1}
.detail-facts article{min-width:0;padding:25px 28px 25px 0}
.detail-facts article+article{padding-left:28px;border-left:1px solid #e4e3e1}
.detail-facts small{display:block;margin-bottom:9px;color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.detail-facts p{margin:0;font-size:15px;line-height:1.5;text-wrap:pretty}
.detail-strength-line,.detail-weakness-line{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;padding:22px 0;align-items:center;border-bottom:1px solid #e4e3e1}
.detail-strength-line>span,.detail-weakness-line>span{color:#666b79;font-size:12px;font-weight:700}
.detail-strength-line>div,.detail-weakness-line>div{display:flex;gap:7px;flex-wrap:wrap}
.detail-strength-line b{display:flex;padding:8px 10px;align-items:center;gap:9px;border-radius:10px;background:#eff2ff;font-size:11px;font-weight:700}
.detail-strength-line em{color:var(--blue);font-style:normal;font-variant-numeric:tabular-nums}
.detail-weakness-line b{display:flex;padding:8px 10px;align-items:center;gap:9px;border-radius:10px;background:#fbe7ef;font-size:11px;font-weight:700;color:#6f2e4c}
.detail-weakness-line em{color:#b33466;font-style:normal;font-variant-numeric:tabular-nums}
.detail-more{border-bottom:1px solid #e4e3e1}
.detail-more summary{display:flex;padding:20px 0;align-items:center;justify-content:space-between;list-style:none;font-size:14px;font-weight:750;cursor:pointer}
.detail-more summary::-webkit-details-marker{display:none}
.detail-more summary span{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#eff1f8;color:var(--blue);font-size:18px;transition:transform .25s,background .25s}
.detail-more[open] summary span{background:var(--blue);color:white;transform:rotate(45deg)}
.detail-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:0 0 24px}
.detail-more-grid article+article{padding-left:28px;border-left:1px solid #e4e3e1}
.detail-more-grid h3{margin:0 0 8px;font:750 15px/1.25 var(--font-ui)}
.detail-more-grid p{margin:0;color:#626775;font-size:13px;line-height:1.6}
.detail-primary-action{margin-top:22px}
.detail-primary-action button{display:flex;width:100%;min-height:74px;padding:15px 18px 15px 20px;align-items:center;justify-content:space-between;gap:24px;border:0;border-radius:16px;background:var(--blue);color:white;text-align:left;cursor:pointer;transition:transform .22s,box-shadow .22s,background .22s}
.detail-primary-action button:hover{background:#2d43cd;box-shadow:0 12px 28px rgb(52 75 216/.2);transform:translateY(-1px)}
.detail-primary-action button:active{transform:translateY(1px)}
.detail-primary-action button:focus-visible{outline:3px solid var(--pink);outline-offset:3px}
.detail-primary-action button>span{display:flex;flex-direction:column;gap:3px}
.detail-primary-action small{color:rgb(255 255 255/.7);font-size:10px;letter-spacing:.04em}
.detail-primary-action strong{font-size:17px}
.detail-primary-action button>b{display:flex;align-items:center;gap:20px;font-size:13px}
.detail-primary-action i{font-style:normal;font-size:20px;transition:transform .22s}
.detail-primary-action button:hover i{transform:translateX(3px)}
.detail-secondary-actions{display:flex;padding:14px 0 0;align-items:center;justify-content:flex-end;gap:24px}
.detail-secondary-actions a{display:inline-flex;align-items:center;gap:8px;color:#4f5565;font-size:11px;font-weight:700;text-decoration:none;transition:color .2s}
.detail-secondary-actions a:hover{color:var(--blue)}
.detail-secondary-actions a:first-child{min-height:42px;margin-right:auto;padding:10px 14px;border:1px solid #f0cfdd;border-radius:12px;background:#fbe7ef;color:#7e2f50;font-size:12px;transition:background .2s,border-color .2s,transform .2s}
.detail-secondary-actions a:first-child:hover{border-color:#e8adc4;background:#f8dce8;color:#6f2443;transform:translateY(-1px)}
.detail-secondary-actions a:first-child:active{transform:translateY(1px)}
.detail-secondary-actions a:first-child:focus-visible{outline:3px solid rgb(255 77 141/.28);outline-offset:2px}
.detail-note{margin:22px 0 0;color:#858996;font-size:10px;line-height:1.5}
.detail-caution{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;margin:0 0 22px;padding:18px;border-radius:12px;background:#f6f7fb;color:#626775;font-size:13px;line-height:1.55}
.detail-caution strong{color:var(--ink);font-family:var(--font-ui)}

.compare-tray{position:fixed;z-index:70;left:50%;bottom:22px;width:min(760px,calc(100% - 32px));min-height:76px;padding:14px 16px 14px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #dfe3f3;border-radius:18px;background:rgb(255 255 255/.96);box-shadow:0 18px 55px rgb(22 27 55/.2);backdrop-filter:blur(16px);transform:translateX(-50%)}
.compare-tray-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.compare-tray-copy small{color:#697083;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.compare-tray-copy strong{overflow:hidden;font:750 15px/1.35 var(--font-ui);text-overflow:ellipsis;white-space:nowrap}
.compare-tray-copy strong span{padding:0 6px;color:var(--pink)}
.compare-tray-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.compare-tray-actions button{min-height:40px;padding:9px 12px;border:0;background:transparent;color:#666d7d;font-size:11px;font-weight:700}
.compare-tray-actions a{display:flex;min-height:46px;padding:12px 16px;align-items:center;justify-content:space-between;gap:28px;border-radius:12px;background:var(--blue);color:white;font-size:12px;font-weight:750}
.compare-tray-actions a span{font-size:17px}
body:has(.compare-tray){padding-bottom:108px}

@media(max-width:700px){
 dialog:has(.detail-simple){width:calc(100% - 8px);max-height:calc(100dvh - 8px);padding-top:54px;border-radius:22px}
 dialog:has(.detail-simple) #dialog-content{padding:0;max-height:calc(100dvh - 62px)}
 dialog:has(.detail-simple) .close{right:10px;top:8px}
 .detail-simple{padding:0 16px 24px}
 .detail-simple .detail-hero{grid-template-columns:minmax(0,1fr) 92px;align-items:start;gap:12px}
 .detail-simple .detail-hero h2{font-size:clamp(32px,9.5vw,38px)}
 .detail-simple .detail-hero p{font-size:13px;line-height:1.5}
 .detail-simple .detail-score{display:flex;width:92px;height:108px;min-height:108px;padding:12px;align-self:start;flex:0 0 auto;flex-direction:column;justify-content:space-between}
 .detail-simple .detail-score small{font-size:7px;line-height:1.25}
 .detail-simple .detail-score strong{font-size:30px;white-space:nowrap}
 .detail-simple .detail-score span{font-size:8px;text-align:left}
 .detail-subject-line,.detail-strength-line,.detail-weakness-line{grid-template-columns:1fr;gap:7px}
 .detail-facts{grid-template-columns:1fr}
 .detail-facts article{padding:20px 0}
 .detail-facts article+article{padding:20px 0;border-top:1px solid #e4e3e1;border-left:0}
 .detail-facts p{font-size:14px}
 .detail-more-grid{grid-template-columns:1fr;gap:18px}
 .detail-more-grid article+article{padding:18px 0 0;border-top:1px solid #e4e3e1;border-left:0}
 .detail-caution{grid-template-columns:1fr;gap:5px;padding:15px}
 .detail-primary-action button{min-height:88px;align-items:flex-start;flex-direction:column;gap:12px}
 .detail-primary-action button>b{width:100%;justify-content:space-between}
 .detail-secondary-actions{justify-content:space-between;gap:14px}
 .detail-secondary-actions a:first-child{margin-right:0}
 .school-card-actions .card-compare{min-height:44px;font-size:11px}
 .compare-tray{bottom:76px;width:calc(100% - 20px);min-height:0;padding:12px 12px 12px 15px;align-items:stretch;flex-direction:column;gap:10px;border-radius:16px}
 .compare-tray-copy strong{font-size:13px}
 .compare-tray-actions{justify-content:space-between}
 .compare-tray-actions button{padding-left:4px}
 .compare-tray-actions a{min-height:42px;padding:10px 14px;gap:24px}
 body:has(.compare-tray){padding-bottom:190px}
}

/* Practical catalog filters use explicit course metadata. */
.catalog-filters{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr auto auto auto;gap:9px;margin:0 0 10px;align-items:end}
.catalog-filters label:not(.filter-check){display:flex;min-width:0;flex-direction:column;gap:6px;color:#666d7d;font-size:10px;font-weight:700}
.catalog-filters select{width:100%;min-height:44px;padding:9px 36px 9px 12px;border:1px solid #dfe2ec;border-radius:12px;background:#fff;color:var(--ink);font-size:12px}
.filter-check{display:flex;min-height:44px;padding:9px 12px;align-items:center;gap:8px;border:1px solid #dfe2ec;border-radius:12px;background:#fff;color:#565d6d;font-size:11px;font-weight:700;white-space:nowrap}
.filter-check input{width:16px;height:16px;margin:0;accent-color:var(--blue)}
#reset-filters{min-height:44px;padding:9px 12px;border:0;background:transparent;color:#6a7080;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.filter-note{position:relative;z-index:1;margin:0 0 22px;color:#777d8b;font-size:10px;line-height:1.45}
.catalog-empty{grid-column:1/-1;padding:48px 24px;border:1px solid #dfe2ec;border-radius:20px;background:#fff;text-align:center}
.catalog-empty h3{margin:0 0 8px}.catalog-empty p{margin:0 auto 18px;color:#6b7180}.catalog-empty button{padding:11px 16px;border:0;border-radius:12px;background:#edf0ff;color:var(--blue);font-weight:750}

/* Share links are quiet secondary actions inside school and teacher cards. */
.detail-secondary-actions button{display:inline-flex;padding:0;align-items:center;gap:8px;border:0;background:transparent;color:#4f5565;font-size:11px;font-weight:700}
.detail-secondary-actions button:hover{color:var(--blue)}
.teacher-card-links{display:flex;margin-top:auto;padding-top:15px;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e6e8ef}
.teacher-card-links a,.teacher-card-links button{display:inline-flex;padding:0;align-items:center;gap:7px;border:0;background:transparent;color:#2e45d3;font-size:11px;font-weight:750}
.teacher-profile.shared-target{outline:3px solid rgb(52 75 216/.24);outline-offset:3px}

/* A teacher opens into a full decision card; the compact grid remains easy to scan. */
.teacher-card-links .teacher-open{font-size:12px}
.teacher-detail{padding:50px 54px 42px}
.teacher-detail-back{margin:0 0 30px;padding:0;border:0;background:transparent;color:#5f6576;font-size:12px;font-weight:750}
.teacher-detail-back:hover{color:var(--blue)}
.teacher-detail-head{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:34px;align-items:end}
.teacher-detail-head h2{margin:0 0 12px;font-size:clamp(42px,5vw,68px);overflow-wrap:anywhere}
.teacher-detail-head>div>p:last-child{margin:0;color:#626879;font-size:14px}
.teacher-detail-score{display:flex;min-height:150px;padding:20px;border-radius:22px;background:var(--blue);color:white;flex-direction:column;justify-content:space-between}
.teacher-detail-score small{font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.teacher-detail-score strong{font:800 48px/1 var(--font-ui)}
.teacher-detail-score span{color:#dce1ff;font-size:11px}
.teacher-detail-description{max-width:760px;margin:34px 0;color:#505666;font-size:16px;line-height:1.7}
.teacher-detail-ratings{border-top:1px solid #e0e2e9;border-bottom:1px solid #e0e2e9}
.teacher-detail-ratings-head{display:flex;padding:22px 0 16px;align-items:baseline;justify-content:space-between;gap:20px}
.teacher-detail-ratings-head h3{margin:0;font-size:22px}
.teacher-detail-ratings-head p{margin:0;color:#737989;font-size:11px}
.teacher-detail-criterion{display:grid;grid-template-columns:minmax(180px,1fr) 74px minmax(180px,1.25fr);gap:18px;padding:15px 0;align-items:center;border-top:1px solid #eceef3}
.teacher-detail-criterion>span{font-size:13px;font-weight:650}
.teacher-detail-criterion strong{color:var(--blue);font:750 19px/1 var(--font-ui)}
.teacher-detail-criterion strong small{margin-left:3px;color:#777d8d;font-size:10px}
.teacher-detail-criterion>i{height:7px;overflow:hidden;border-radius:8px;background:#e4e7f1}
.teacher-detail-criterion>i b{display:block;height:100%;border-radius:inherit;background:var(--blue)}
.teacher-detail-criterion em{grid-column:2/-1;color:#858a98;font-size:12px;font-style:normal}
.teacher-meter{grid-template-columns:repeat(5,1fr)}
.teacher-detail-actions{display:flex;margin-top:28px;align-items:center;gap:20px;flex-wrap:wrap}
.teacher-detail-actions .button{margin:0}
.teacher-detail-actions>button{padding:10px 0;border:0;background:transparent;color:#555c6d;font-size:11px;font-weight:750}
@media(max-width:700px){
 .teacher-detail{padding:0 14px 24px}
 .teacher-detail-back{margin-bottom:22px}
 .teacher-detail-head{grid-template-columns:minmax(0,1fr) 96px;gap:12px;align-items:stretch}
 .teacher-detail-head h2{font-size:30px;line-height:1.04;letter-spacing:-.04em}
 .teacher-detail-score{min-height:108px;padding:13px;border-radius:17px}
 .teacher-detail-score strong{font-size:37px}
 .teacher-detail-description{margin:24px 0;font-size:14px}
 .teacher-detail-ratings-head{display:block}.teacher-detail-ratings-head p{margin-top:6px}
 .teacher-detail-criterion{grid-template-columns:1fr auto;gap:8px 14px;padding:14px 0}
 .teacher-detail-criterion>i{grid-column:1/-1}
 .teacher-detail-criterion em{grid-column:2;text-align:right}
 .teacher-detail-actions{align-items:stretch;flex-direction:column;gap:8px}
 .teacher-detail-actions .button{width:100%;min-height:54px;padding:15px 18px}
 .teacher-detail-actions>button{align-self:flex-start}
}

/* Quiz results explain each match and keep the next actions inside the site. */
.quiz-match-reasons{margin:8px 0 10px;padding:0;list-style:none}
.quiz-match-reasons li{position:relative;margin:5px 0;padding-left:17px;color:#4f5567;font-size:12px;line-height:1.45}
.quiz-match-reasons li:before{content:'✓';position:absolute;left:0;color:var(--blue);font-weight:800}
.quiz-match-caution{padding:9px 11px;border-radius:10px;background:#edf0ff}
.quiz-card-link{display:inline-flex;margin-top:11px;align-items:center;gap:7px;color:var(--blue);font-size:11px;font-weight:750}
.quiz-result-actions{position:relative;z-index:1;display:flex;margin-top:20px;align-items:center;gap:9px;flex-wrap:wrap}
.quiz-result-actions .button{margin:0;min-height:48px;padding-top:12px;padding-bottom:12px}
.quiz-edit{min-height:44px;padding:10px 12px;border:0;background:transparent;color:#666d7d;font-size:11px;font-weight:750;text-decoration:underline;text-underline-offset:4px}

@media(max-width:900px){
 .catalog-filters{grid-template-columns:1fr 1fr}
 .catalog-filters .filter-check{white-space:normal}
 #reset-filters{justify-self:start}
}

@media(max-width:700px){
 .ribbon{-webkit-mask-image:none;mask-image:none}
 .ribbon-track{padding-left:14px;animation-duration:38s}
 .catalog-filters{grid-template-columns:1fr 1fr;margin-bottom:9px}
 .catalog-filters label:not(.filter-check){font-size:9px}
 .catalog-filters select,.filter-check{min-height:42px;font-size:10px}
 .filter-check{padding:8px 10px;white-space:normal}
 .filter-note{margin-bottom:18px;font-size:9px}
 .detail-secondary-actions{flex-wrap:wrap}
 .detail-secondary-actions a:first-child{width:100%}
 .quiz-result-actions{align-items:stretch;flex-direction:column}
 .quiz-result-actions .button,.quiz-edit{width:100%}
 .quiz-result-actions .button{font-size:11px;gap:12px}
 body:has(.compare-tray) .mobile-product-nav{display:none}
 .compare-tray{bottom:max(10px,env(safe-area-inset-bottom));min-height:64px;padding:9px 10px 9px 13px;align-items:center;flex-direction:row;gap:10px;border-radius:18px}
 .compare-tray-copy{max-width:48%;gap:2px}
 .compare-tray-copy small{font-size:8px}
 .compare-tray-copy strong{display:-webkit-box;font-size:11px;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .compare-tray-copy strong span{padding:0 3px}
 .compare-tray-actions{margin-left:auto;gap:3px}
 .compare-tray-actions button{min-height:40px;padding:7px;font-size:9px}
 .compare-tray-actions a{min-height:44px;padding:10px 12px;gap:12px}
 body:has(.compare-tray){padding-bottom:90px}
}

/* Keep the bot explanation separate from the action row. */
.quiz-result .quiz-bot-note{position:relative;z-index:1;display:block;margin:24px 0 0;padding-top:18px;border-top:1px solid #dfe3f5;max-width:640px;color:#666d7d;font-size:13px;line-height:1.65;text-align:left}
.quiz-return{display:inline-flex;align-items:center;min-height:44px;margin:0 0 20px;padding:8px 14px;border-radius:12px;background:#edf0ff;color:var(--blue);font-size:14px;font-weight:700;text-decoration:none}
main>.quiz-return{margin:20px 5% 0}
@media(max-width:700px){.quiz-result .quiz-bot-note{margin-top:20px;padding-top:16px;font-size:12px}.quiz-return{margin-bottom:16px}}

/* Live rating details */
.school-detail>.rating-breakdown {
  display:flex;
  margin:-6px 0 22px;
  padding:11px 14px;
  align-items:center;
  gap:12px;
  border:1px solid #dce1f7;
  border-radius:12px;
  background:#f1f3ff;
  color:#666b7c;
  font-size:11px;
  line-height:1.4;
}
.school-detail>.rating-breakdown b { flex:0 0 auto; color:var(--blue); font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.school-detail>.rating-breakdown span { min-width:0; }
@media (max-width:700px) {
  .school-detail>.rating-breakdown { margin:14px 0 18px; padding:10px 12px; align-items:flex-start; flex-direction:column; gap:3px; font-size:11px; }
}

/* Teacher count follows the same card geometry as the directory UI. */
.teacher-directory-head{grid-template-columns:minmax(0,1fr) 120px;align-items:end}
.teacher-directory-count{
  display:flex;
  width:120px;
  min-height:120px;
  padding:18px 14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-direction:column;
  gap:12px;
  border:0;
  border-radius:18px;
  background:var(--blush);
  color:#812a50;
  text-align:left;
}
.teacher-directory-count strong{font:800 44px/.9 var(--font-ui);font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.teacher-directory-count span{font:650 12px/1.15 var(--font-ui);letter-spacing:-.01em}

@media(max-width:700px){
  .hero-centered .hero-glow{width:340px;height:340px;opacity:.46;filter:blur(2px)}
  .hero-centered .hero-glow-blue{left:-125px;top:110px}
  .hero-centered .hero-glow-pink{right:-95px;bottom:70px;opacity:.42}
  .teacher-directory-head{grid-template-columns:minmax(0,1fr) 104px;gap:14px;align-items:end}
  .teacher-directory-count{width:104px;min-height:104px;padding:15px 13px;border-radius:16px;gap:9px;justify-self:end}
  .teacher-directory-count strong{font-size:38px}
  .teacher-directory-count span{font-size:10px}
}

/* Static criteria ribbon between the hero and comparison section. */
.criteria-ribbon{
  position:relative;
  z-index:2;
  width:100%;
  height:154px;
  margin:-38px 0 -32px;
  overflow:hidden;
  pointer-events:none;
}
.criteria-ribbon svg{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}
.criteria-ribbon-line{
  fill:none;
  stroke:var(--pink);
  stroke-width:34px;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.criteria-ribbon-copy{
  fill:var(--ink);
  font:700 12px/1 var(--font-ui);
  letter-spacing:.055em;
}
.criteria-ribbon-copy textPath{dominant-baseline:middle}

@media(max-width:700px){
  .criteria-ribbon{height:112px;margin:-20px 0 -22px}
  .criteria-ribbon svg{left:50%;width:1280px;max-width:none;transform:translateX(-50%)}
  .criteria-ribbon-line{stroke-width:24px}
  .criteria-ribbon-copy{font-size:11px;letter-spacing:.04em}
}
.criteria-ribbon-mobile{display:none!important}
@media(max-width:700px){
  .criteria-ribbon .criteria-ribbon-desktop{display:none}
  .criteria-ribbon .criteria-ribbon-mobile{display:block!important;left:0;width:100%;transform:none}
}
/* Softer brand treatment: the ribbon is calm, only its copy drifts. */
.criteria-ribbon-line{stroke:var(--blush)}
.criteria-ribbon-copy{fill:#7f2e50}
/* The loop weaves: this segment is redrawn over the lower ribbon and its copy. */
.criteria-ribbon-overpass{stroke:var(--blush)}
.criteria-ribbon-overpass-copy{fill:#7f2e50}
.criteria-ribbon-knot{fill:var(--blush)}

/* The ribbon continues as sparse fragments through key sections. */
.section-thread{
  position:absolute;
  z-index:0;
  display:block;
  overflow:visible;
  pointer-events:none;
}
.section-thread path{
  fill:none;
  stroke:var(--blush);
  stroke-width:28px;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.compare-thread{right:-72px;top:118px;width:360px;height:560px;opacity:.72}
.reviews:after{display:none!important}
.reviews-thread{right:-154px;top:-38px;width:430px;height:300px;opacity:.8}
.reviews>.review-heading,.reviews>.review-copy{position:relative;z-index:1}

@media(max-width:700px){
  .section-thread path{stroke-width:20px}
  .compare-thread{right:-155px;top:112px;width:300px;height:470px;opacity:.64}
  .reviews-thread{right:-205px;top:-24px;width:340px;height:238px;opacity:.72}
}
/* The comparison thread travels behind the card and stays visible only at the page edges. */
.compare-thread{inset:0;right:auto;top:0;width:100%;height:100%;opacity:.72}
.compare-thread use{
  fill:none;
  stroke:var(--blush);
  stroke-width:30px;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.compare-thread text{
  fill:#7f2e50;
  font:700 12px/1 var(--font-ui);
  letter-spacing:.05em;
}
.reviews-thread{display:none}
@media(max-width:700px){
  .compare-thread{display:none}
}
/* Keep every visible part of the thread at the same physical width. */
.compare-thread use,.compare-thread path{vector-effect:non-scaling-stroke}
.compare-thread use{stroke-width:34px}
.compare-thread text{font-size:8px}

/* Restore the soft animated ring in the review panel. It sits behind the copy
   and drifts just enough to keep the pale panel from feeling static. */
.reviews:after{
  display:block!important;
  content:'';
  position:absolute;
  z-index:-1;
  width:300px;
  height:300px;
  right:-116px;
  top:-132px;
  border:52px solid var(--blush);
  border-radius:50%;
  opacity:.82;
  pointer-events:none;
  animation:reviews-ring-drift 12s ease-in-out infinite;
}
@keyframes reviews-ring-drift{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg)}
  50%{transform:translate3d(-18px,16px,0) rotate(10deg)}
}
@media(max-width:700px){
  .reviews:after{
    width:190px;
    height:190px;
    right:-88px;
    top:-92px;
    border-width:34px;
    opacity:.68;
  }
}
@media(prefers-reduced-motion:reduce){
  .reviews:after{animation:none}
}
/* Permanent methodology and service pages. */
.footer-links{display:flex;align-items:center;gap:20px}
.footer-links a{font-size:12px;color:#626777;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px}
.footer-links a:hover,.footer-links a[aria-current=page]{text-decoration-color:currentColor}
.method-full-link{display:inline-flex;margin-top:22px;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px;color:var(--blue)}
.method-hero{padding-top:92px;padding-bottom:86px;position:relative;overflow:hidden}
.method-hero:after{display:none}
.method-hero h1{font-size:clamp(58px,7vw,100px)}
.method-hero .brand-dot:after{background:var(--pink)}
.method-hero .lead{max-width:650px;margin-bottom:0}
.method-school{background:var(--blue);color:white}
.method-section{padding-top:88px;padding-bottom:88px}
.method-section-head{display:grid;grid-template-columns:70px minmax(0,720px);gap:28px;margin-bottom:46px}
.method-section-head>div,.criteria-weight-list article>div{min-width:0}
.method-section-head>p{font-size:13px;font-weight:800;color:var(--pink);margin:8px 0 0}
.method-school .method-section-head>p{color:#ffc0d8}
.method-section-head h2{font-size:clamp(40px,4.2vw,62px)}
.method-section-head div>p{font-size:17px;line-height:1.7;color:#626777;margin:18px 0 0;max-width:66ch}
.method-school .method-section-head div>p{color:#dce1ff}
.method-equation{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:18px}
.method-equation article{min-height:220px;padding:28px;border-radius:24px;background:#eef0ff;color:var(--ink);display:flex;flex-direction:column}
.method-equation article.pink-card{background:var(--blush)}
.method-equation article.dark-card{background:var(--ink);color:white}
.method-equation small{font-size:12px;font-weight:700}.method-equation strong{font-size:58px;line-height:1;margin:24px 0 14px;letter-spacing:-3px}.method-equation span{font-size:13px;line-height:1.5;margin-top:auto}.method-equation>b{font-size:30px}
.method-copy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:34px}
.method-copy-grid>div{padding:28px;border-top:1px solid currentColor}
.method-copy-grid h3{font-size:20px}.method-copy-grid p{font-size:14px;line-height:1.75;color:#626777;margin-bottom:0}.method-school .method-copy-grid p{color:#dce1ff}
.criteria-weight-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.criteria-weight-list article{display:grid;grid-template-columns:90px 1fr;gap:18px;padding:28px 20px;border-bottom:1px solid var(--line)}
.criteria-weight-list article:nth-child(odd){border-right:1px solid var(--line)}
.criteria-weight-list b{font-size:28px;color:var(--blue)}.criteria-weight-list h3{font-size:18px}.criteria-weight-list p{font-size:13px;line-height:1.65;color:#626777;margin:8px 0 0}
.method-teacher{background:var(--blush)}
.teacher-method-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:22px}
.teacher-method-grid ol{list-style:none;counter-reset:teacher;display:grid;gap:10px;margin:0;padding:0}.teacher-method-grid li{counter-increment:teacher;background:var(--paper);border-radius:16px;padding:18px 22px;font-weight:700}.teacher-method-grid li:before{content:'0' counter(teacher);color:var(--pink);font-size:11px;margin-right:20px}
.teacher-method-grid>div{border-radius:22px;background:var(--blue);color:white;padding:34px;display:flex;flex-direction:column;justify-content:flex-end}.teacher-method-grid strong{font-size:28px;line-height:1.2}.teacher-method-grid p{font-size:14px;line-height:1.7;color:#dce1ff;margin:20px 0 0}
.method-trust .method-copy-grid{margin-top:0}.method-updated{font-size:12px;color:#626777;margin:34px 0 0;padding-top:24px;border-top:1px solid var(--line)}
.method-cta{margin-bottom:90px;border-radius:30px;background:var(--ink);color:white;padding:58px 64px;display:flex;align-items:center;justify-content:space-between;gap:30px}.method-cta h2{font-size:44px}
.not-found{min-height:calc(100vh - 110px);display:grid;grid-template-columns:1fr .7fr;align-items:center;gap:40px;overflow:hidden}.not-found-code{font:800 13px/1 var(--font-ui);color:var(--blue);letter-spacing:.1em}.not-found h1{font-size:clamp(58px,7vw,100px)}.not-found .lead{max-width:560px}.not-found .hero-actions{display:flex;gap:14px}.not-found-ring{width:400px;height:400px;border:72px solid var(--blush);border-radius:50%;position:relative}.not-found-ring:after{content:'';position:absolute;width:74px;height:74px;border-radius:50%;background:var(--pink);right:-22px;top:28px}
.how-it-works{padding-top:8px;padding-bottom:44px}.how-it-works .section-heading{margin-bottom:28px}.how-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.how-card{padding:26px 24px;border:1px solid var(--surface-line);border-radius:20px;background:var(--paper)}.how-number{display:block;font-family:var(--font-display);font-weight:700;font-size:22px;letter-spacing:-.5px;color:var(--pink);margin-bottom:16px}.how-card:nth-child(even) .how-number{color:var(--blue)}.how-card h3{margin:0 0 10px;font-size:17px;letter-spacing:-.02em}.how-card p{margin:0;font-size:13px;line-height:1.6;color:var(--muted)}
@media(max-width:800px){.how-it-works{padding-bottom:32px}.how-it-works .section-heading{display:block}.how-it-works .section-heading .text-link{margin-top:14px}.how-grid{grid-template-columns:1fr;gap:12px}.how-card{padding:22px 20px}.footer-links{grid-column:1/-1;justify-content:space-between;gap:10px;flex-wrap:wrap}.method-hero{padding-top:58px;padding-bottom:56px}.method-section{padding-top:58px;padding-bottom:58px;overflow:hidden}.method-section-head{display:block;margin-bottom:30px}.method-section-head>p{margin:0 0 12px}.method-section-head h2{max-width:100%;font-size:clamp(31px,9vw,38px);line-height:1.08;letter-spacing:-1.4px;overflow-wrap:anywhere}.method-section-head div>p{max-width:100%;font-size:15px;overflow-wrap:anywhere}.method-equation{grid-template-columns:1fr}.method-equation>b{text-align:center;line-height:1}.method-equation article{min-height:170px}.method-equation strong{font-size:48px}.method-copy-grid,.criteria-weight-list,.teacher-method-grid{grid-template-columns:1fr}.criteria-weight-list article:nth-child(odd){border-right:0}.criteria-weight-list article{grid-template-columns:58px minmax(0,1fr);padding:22px 8px}.criteria-weight-list b{font-size:23px}.criteria-weight-list h3,.criteria-weight-list p{overflow-wrap:anywhere}.teacher-method-grid>div{padding:28px}.method-cta{margin-bottom:60px;padding:34px 28px;display:block}.method-cta h2{font-size:34px;margin-bottom:28px}.method-cta .button{width:100%}.not-found{min-height:calc(100vh - 80px);grid-template-columns:1fr;padding-top:60px;padding-bottom:60px}.not-found .hero-actions{display:grid}.not-found .button{width:100%}.not-found-ring{display:none}}

/* Unified vertical rhythm: one gap between every homepage section. */
:root{--section-gap:96px}
@media(max-width:1050px){:root{--section-gap:72px}}
@media(max-width:700px){:root{--section-gap:56px}}
.hero.hero-centered{min-height:0;padding-bottom:56px}
.how-it-works{margin-top:0;padding-top:0;padding-bottom:0}
main>.compare-section,main>.reviews,main>.channel-section,main>.about-project{margin-top:var(--section-gap);margin-bottom:0}
.compare-section>.section{padding-top:56px;padding-bottom:0}
main>.about-project{padding-top:var(--section-gap);margin-bottom:var(--section-gap)}
@media(max-width:700px){
  .compare-section>.section{padding-top:36px}
  body{padding-bottom:88px}
  main>.reviews,main>.channel-section{width:calc(100% - 36px);padding:32px 24px}
  main>.channel-section{padding-bottom:72px}
}
@media(max-width:520px){main>.reviews,main>.channel-section{width:calc(100% - 32px)}}

/* Reviews are the primary action (blue); the Telegram channel is secondary (pale). */
.reviews{background:var(--blue);color:#fff;border:0;box-shadow:0 24px 70px rgb(52 75 216/.18)}
.reviews:before{color:rgb(255 255 255/.06)}
.reviews:after{border-color:rgb(255 255 255/.13);box-shadow:0 0 0 42px rgb(255 255 255/.03);opacity:1}
.reviews .eyebrow{color:#ffc2d9}
.reviews h2{color:#fff}
.review-mark{color:var(--pink);opacity:.9}
.review-copy>p:first-child,.review-copy .muted{color:#e6e9ff}
.review-steps span{border-color:rgb(255 255 255/.26);background:rgb(255 255 255/.1);color:#fff}
.review-steps b{color:#ffc2d9}
.review-copy .button.dark,.review-copy .button.dark:hover{background:#fff;color:var(--ink)}
.review-copy .button.dark:hover{background:var(--paper)}
.review-copy .button.dark span{background:var(--pink);color:var(--ink)}

.channel-section{min-height:0;padding:56px 64px;background:#f4f0ff;color:var(--ink);border:1px solid #dedcff;box-shadow:0 22px 65px rgb(52 75 216/.08)}
.channel-section:before{border-color:rgb(52 75 216/.07)}
.channel-section:after{color:rgb(52 75 216/.06)}
.channel-section .eyebrow{color:#a72b58}
.channel-section h2,.channel-stamp{color:var(--ink)}
.channel-section p:not(.eyebrow){color:var(--muted)}
.channel-section .button.blue,.channel-section .button.blue:hover{background:var(--blue);color:#fff}
.channel-section .button.blue span{background:var(--pink);color:var(--ink)}
.channel-stamp span,.channel-stamp strong{color:var(--blue)}

/* Calmer cards: no watermark/quote in reviews, single-color channel card. */
.reviews:before,.review-mark{display:none!important}
.channel-stamp,.channel-section:before,.channel-section:after{display:none!important}
.channel-section{grid-template-columns:1fr auto;align-items:center;gap:48px;padding:48px 56px}
.channel-section h2{font-size:clamp(28px,3vw,40px);line-height:1.15;letter-spacing:-1.2px}
.channel-section p:not(.eyebrow){margin:16px 0 0;max-width:46ch}
.channel-copy{display:contents}
.channel-copy .button.blue{grid-column:2;grid-row:1;min-width:0;white-space:nowrap}
.channel-copy h2{grid-column:1;grid-row:1}
.channel-copy p{grid-column:1;grid-row:2}
.channel-section .button.blue span{background:#fff;color:var(--blue)}
@media(max-width:700px){
  .channel-section{grid-template-columns:1fr;gap:20px}
  main>.channel-section{padding:32px 24px}
  .channel-copy .button.blue{grid-column:1;grid-row:3;width:100%;margin-top:8px}
}
.channel-section{grid-template-rows:auto auto;align-content:center;row-gap:0}
.channel-copy .button.blue{grid-row:1/3;align-self:center}
.channel-copy h2,.channel-copy p{align-self:start}
@media(max-width:700px){.channel-copy .button.blue{grid-row:3}.channel-section{row-gap:12px}}
@media(max-width:700px){main>.channel-section .channel-copy h2{font-size:26px;letter-spacing:-.8px;text-wrap:balance}}

/* FAQ */
main>.faq{margin-top:var(--section-gap);margin-bottom:var(--section-gap);display:grid;grid-template-columns:1fr 1.5fr;gap:24px 64px;align-items:start}
.faq h2{margin:0;position:sticky;top:28px;font-size:clamp(30px,3.4vw,46px);line-height:1.1;letter-spacing:-.04em}
.faq-list{display:grid;gap:12px}
.faq-item{border:1px solid var(--surface-line);border-radius:22px;background:#fff;transition:box-shadow .2s}
.faq-item[open]{box-shadow:0 14px 40px rgb(52 75 216/.08)}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;cursor:pointer;list-style:none;font:700 17px/1.4 var(--font-ui);letter-spacing:-.01em}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:22px}
.faq-icon{position:relative;flex:none;width:20px;height:20px}
.faq-icon:before,.faq-icon:after{content:'';position:absolute;left:50%;top:50%;width:18px;height:2px;margin:-1px 0 0 -9px;border-radius:2px;background:var(--blue);transition:transform .25s}
.faq-icon:after{transform:rotate(90deg)}
.faq-item[open] .faq-icon:after{transform:rotate(0)}
.faq-item p{margin:0;padding:0 26px 24px;max-width:62ch;color:var(--muted);font-size:15px;line-height:1.65}
.faq-item p a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){main>.faq{grid-template-columns:1fr;gap:24px}.faq h2{position:static}.faq-item summary{padding:18px 20px;font-size:16px}.faq-item p{padding:0 20px 20px}}
@media(prefers-reduced-motion:reduce){.faq-icon:before,.faq-icon:after,.faq-item{transition:none}}

/* Ratings CTA card */
main>.rating-next{min-height:0;margin-top:var(--section-gap);padding:56px 64px;flex-direction:row;align-items:center;justify-content:space-between;gap:40px;border:1px solid #dedcff;border-radius:28px;background:#f4f0ff;box-shadow:0 22px 65px rgb(52 75 216/.08)}
.rating-next:after{display:none}
.rating-next h2{margin:0;font-size:clamp(30px,3.6vw,48px);line-height:1.1;letter-spacing:-.04em}
.rating-next .button{flex:none;width:auto;min-width:0;white-space:nowrap}
@media(max-width:700px){main>.rating-next{flex-direction:column;align-items:stretch;gap:24px;padding:32px 24px;width:calc(100% - 36px)}.rating-next .button{width:100%}}

/* Ratings: soft band ending + blue CTA card */
.rating-catalog{border-radius:54px 54px 48px 48px}
@media(max-width:700px){.rating-catalog{border-radius:30px 30px 30px 30px}}
main>.rating-next{background:var(--blue);border-color:transparent;color:#fff;box-shadow:0 24px 70px rgb(52 75 216/.18)}
.rating-next h2{color:#fff}
.rating-next .button.pink,.rating-next .button.pink:hover{background:#fff;color:var(--ink)}
.rating-next .button.pink:hover{background:var(--paper)}
.rating-next .button.pink span{color:var(--ink)}

/* Section headings stay still on hover; how-it-works cards get a soft lift. */
.section-heading h2,.section-heading:hover h2{letter-spacing:-.05em!important;transition:none!important;transform:none!important}
.how-card{transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s,border-color .28s}
.how-number{transition:transform .28s cubic-bezier(.2,.7,.2,1)}
@media(hover:hover){
  .how-card:hover{transform:translateY(-4px);border-color:#dedcff;box-shadow:0 16px 36px rgb(52 75 216/.10)}
  .how-card:hover .how-number{transform:translateX(3px)}
}
@media(prefers-reduced-motion:reduce){.how-card,.how-number{transition:none}.how-card:hover,.how-card:hover .how-number{transform:none}}

/* Static school pages and the school links block */
.school-page{padding-top:28px}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 28px;color:var(--muted);font-size:13px}
.breadcrumbs a{color:var(--muted);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.breadcrumbs a:hover{text-decoration-color:currentColor}
.sp-hero{display:flex;align-items:center;justify-content:space-between;gap:32px}
.sp-hero h1{margin:0 0 12px;font-family:var(--font-display);font-size:clamp(36px,6vw,68px);line-height:1.05;letter-spacing:-.05em}
.sp-lead{max-width:60ch;margin:0;color:var(--muted);font-size:17px;line-height:1.6}
.sp-score{display:grid;flex:none;width:132px;height:132px;place-content:center;border-radius:50%;background:var(--blue);color:#fff;text-align:center}
.sp-score small{font-size:10px;opacity:.8}
.sp-score strong{font:700 40px/1 var(--font-display)}
.sp-score span{font-size:12px;opacity:.85}
.sp-note{max-width:70ch;margin:20px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.sp-note a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.sp-section{margin-top:48px}
.sp-section h2,.sp-facts h2,.sp-two h2{margin:0 0 16px;font-size:22px;letter-spacing:-.03em}
.sp-facts h2,.sp-two h2{font-size:18px;margin-bottom:10px}
.sp-criteria{display:grid;max-width:640px;margin:0;padding:0;gap:12px;list-style:none}
.sp-criteria li{display:grid;grid-template-columns:170px 1fr 40px;align-items:center;gap:14px;font-size:15px}
.sp-criteria i{height:8px;overflow:hidden;border-radius:99px;background:#e5e9ff}
.sp-criteria b{display:block;height:100%;border-radius:99px;background:var(--blue)}
.sp-criteria strong{text-align:right}
.sp-facts,.sp-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:48px}
.sp-facts article,.sp-two article{padding:24px;border:1px solid var(--surface-line);border-radius:20px;background:#fff}
.sp-facts p,.sp-two p{margin:0;color:var(--muted);font-size:15px;line-height:1.65}
.sp-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.sp-chips li{padding:8px 14px;border-radius:99px;background:#f0f0f5;font-size:14px}
.sp-teachers{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.sp-hint{margin:-6px 0 14px;color:var(--muted);font-size:13px}
.sp-teachers li{display:flex}
.sp-teachers button{display:flex;width:100%;flex-direction:column;gap:2px;padding:12px 16px;border:1px solid var(--surface-line);border-radius:14px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,transform .2s,box-shadow .2s}
.sp-teachers button:hover{border-color:var(--blue);transform:translateY(-2px);box-shadow:0 10px 24px rgb(52 75 216/.09)}
.sp-teachers button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.sp-teachers span{color:var(--muted);font-size:13px}
@media(prefers-reduced-motion:reduce){.sp-teachers button{transition:none}.sp-teachers button:hover{transform:none}}
.sp-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:48px}
.sp-more{display:flex;flex-wrap:wrap;gap:8px}
.sp-more a,.school-links a{padding:8px 14px;border:1px solid var(--surface-line);border-radius:99px;background:#fff;font-size:14px}
.sp-more a:hover,.school-links a:hover{border-color:var(--blue);color:var(--blue)}
.school-page-body main.school-page{padding-bottom:var(--section-gap)}
.school-links{margin-top:var(--section-gap);border:1px solid var(--surface-line);border-radius:22px;background:#fff}
.school-links summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;cursor:pointer;list-style:none;font:700 16px/1.4 var(--font-ui)}
.school-links summary::-webkit-details-marker{display:none}
.school-links summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:22px}
.school-links[open] .faq-icon:after{transform:rotate(0)}
.school-links nav{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 22px}
@media(max-width:800px){
  .school-links summary{padding:16px 20px}
  .school-links nav{padding:0 20px 18px}
  .sp-hero{align-items:flex-start;flex-direction:column;gap:20px}
  .sp-score{width:108px;height:108px}
  .sp-score strong{font-size:32px}
  .sp-facts,.sp-two{grid-template-columns:1fr}
  .sp-criteria li{grid-template-columns:120px 1fr 36px;gap:10px;font-size:14px}
  .sp-actions .button{width:100%}
}

/* Legibility, arrows and consistent inner-page heroes */
.review-steps span{font-size:12px}
@media(max-width:700px){.review-steps{display:flex;flex-wrap:wrap;gap:6px}.review-steps span{padding:8px 12px;font-size:12px}}
.quiz-match-head strong{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:22px}
.quiz-match-head strong small{color:var(--muted);font:600 12px/1 var(--font-ui)}
.hero.hero-centered.school-hero{min-height:0;padding:28px 16px 24px}
.school-hero h1{font-size:clamp(44px,6.5vw,84px);line-height:1.05}
.school-hero .lead{max-width:640px;margin:20px auto 0}
.school-hero .sp-score{margin:28px auto 0}
.sp-note{margin:8px auto 0;text-align:center}
.school-page .breadcrumbs{margin-bottom:8px}
.school-links{margin-top:0;margin-bottom:var(--section-gap);border:0;border-top:1px solid var(--surface-line);border-radius:0;background:none}
.school-links summary{padding:18px 0;color:var(--muted);font-size:14px;font-weight:600}
.school-links nav{padding:0 0 22px}
main>.faq:has(+ .school-links){margin-bottom:32px}
@media(max-width:800px){.school-links summary{padding:16px 0}.school-links nav{padding:0 0 18px}}
.school-page{overflow-x:visible}
.school-page-body{overflow-x:clip}
.hero.hero-centered.school-hero{overflow:visible}
.method-section-head>p{color:#b81f57}
.method-school .method-section-head>p{color:#ffe0ec}
.method-teacher .method-section-head div>p{color:#4a4f5e}
.how-number{color:#e0367a}
.review-steps b{font-size:12px;color:#ffd6e6}
.catalog-filters label>span,.catalog-toolbar label>span,.card-score>span,.card-compare{font-size:12px}
.catalog-filters .filter-check span{font-size:12px}
.filter-note{font-size:12px;color:#5b5f70}
.card-compare{color:#3a4fc0}
@media(max-width:700px){.quiz-match-head strong{grid-column:2;flex-direction:row;align-items:baseline;gap:8px;font-size:20px}}

/* School/teacher pages: navigation and teacher cards */
.back-row{margin:0 0 4px}
.back-link{display:inline-flex;min-height:44px;align-items:center;color:var(--muted);font-size:14px;font-weight:600;text-decoration:none}
.back-link:hover{color:var(--blue)}
.sp-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.sp-filter button{min-height:40px;padding:0 16px;border:1px solid var(--surface-line);border-radius:99px;background:#fff;color:var(--ink);font:600 14px var(--font-ui);cursor:pointer}
.sp-filter button.active{border-color:var(--blue);background:var(--blue);color:#fff}
.sp-filter button:focus-visible,.sp-teacher:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.sp-teachers li[hidden]{display:none}
.sp-teacher{display:flex;width:100%;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--surface-line);border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}
.sp-teacher:hover{border-color:var(--blue);box-shadow:0 10px 24px rgb(52 75 216/.09);transform:translateY(-2px)}
.sp-monogram{display:grid;flex:none;width:40px;height:40px;place-items:center;border-radius:50%;background:#e4e9ff;color:var(--blue);font:800 15px var(--font-ui)}
.sp-teacher-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.sp-teacher-main small{color:var(--muted);font-size:13px}
.sp-desc{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:13px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.sp-teacher i{flex:none;color:var(--blue);font-style:normal}
.teacher-kicker{margin:0 0 10px;font-size:14px;font-weight:600}
.teacher-kicker a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.sp-body{max-width:70ch;margin:0;color:var(--muted);font-size:16px;line-height:1.7}
.sp-criteria .sp-empty{grid-template-columns:170px 1fr}
.sp-criteria .sp-empty em{color:var(--muted);font-size:14px;font-style:normal}
.school-card-actions a.card-open,.school-card-actions a.card-teachers{text-decoration:none}
@media(prefers-reduced-motion:reduce){.sp-teacher{transition:none}.sp-teacher:hover{transform:none}}
@media(max-width:800px){.sp-criteria .sp-empty{grid-template-columns:120px 1fr}}
@media(max-width:800px){.sp-filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.sp-filter::-webkit-scrollbar{display:none}.sp-filter button{flex:none}}
