/* Effortless Math calculators hub /math-calculators/ v1.0.0 */
.emch{--ink:#15233d;--muted:#5b6678;--line:#e6e1d8;--cream:#fbf6ee;--paper:#fff;
  --green:#0f8a4f;--green-2:#e3f5ea;--orange:#f26b1d;--orange-2:#fff0e5;--blue:#2f6fde;--blue-2:#e8f0ff;
  --purple:#7b5cf0;--purple-2:#f0ecff;--pink:#e5528a;--pink-2:#ffeaf2;--teal:#11a3a3;--teal-2:#e2f7f6;
  --yellow:#e0a000;--yellow-2:#fff6db;--red:#e0483d;--red-2:#ffe9e7;--lime:#7bb52e;--lime-2:#f1f9e3;
  color:var(--ink);font-family:Roboto,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.55;background:var(--paper);overflow-x:clip;direction:ltr;text-align:left}
.emch *,.emch *::before,.emch *::after{box-sizing:border-box}
.emch h1,.emch h2,.emch h3{color:var(--ink);font-family:inherit;letter-spacing:-.01em;margin:0}
.emch p{margin:0}
.emch a{text-decoration:none}
.emch-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.emch-ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.emch .c-green{--c:var(--green);--c2:var(--green-2)}.emch .c-orange{--c:var(--orange);--c2:var(--orange-2)}.emch .c-blue{--c:var(--blue);--c2:var(--blue-2)}
.emch .c-purple{--c:var(--purple);--c2:var(--purple-2)}.emch .c-pink{--c:var(--pink);--c2:var(--pink-2)}.emch .c-teal{--c:var(--teal);--c2:var(--teal-2)}
.emch .c-yellow{--c:var(--yellow);--c2:var(--yellow-2)}.emch .c-red{--c:var(--red);--c2:var(--red-2)}.emch .c-lime{--c:var(--lime);--c2:var(--lime-2)}
.emch-wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.emch-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 18px;margin:0 0 18px}
.emch-head h2,.emch-cats h2,.emch-faq h2{font-size:clamp(24px,3vw,32px);font-weight:800}
.emch-head p{color:var(--muted)}
.emch button:focus-visible,.emch a:focus-visible,.emch input:focus-visible,.emch summary:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.emch-btn{display:inline-flex;align-items:center;gap:6px;padding:11px 20px;border-radius:12px;border:2px solid var(--orange);background:var(--orange);color:#fff;font-weight:700;font-size:15px;cursor:pointer}

/* Hero */
.emch-hero{position:relative;background:var(--cream);padding:58px 20px 50px;overflow:hidden;text-align:center}
.emch-hero-in{position:relative;z-index:2;max-width:820px;margin:0 auto}
.emch-eyebrow{display:inline-block;padding:6px 14px;border-radius:999px;background:#fff;color:var(--green);font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 2px 0 rgba(21,35,61,.06);margin-bottom:16px!important}
.emch-hero h1{font-size:clamp(34px,5.4vw,58px);line-height:1.06;font-weight:900}
.emch-sub{font-size:clamp(19px,2.4vw,24px);margin:14px 0 24px!important;color:#33405a;font-weight:600}
.emch-rot{display:inline-block;padding:0 12px;border-radius:12px;background:var(--lime);color:var(--ink);font-weight:800}
.emch-rot{cursor:pointer;transition:transform .15s,box-shadow .15s}.emch-rot:hover{transform:translateY(-1px);box-shadow:0 4px 0 rgba(21,35,61,.18)}
.emch-rot-w{display:inline-block;transition:opacity .28s,transform .28s}.emch-rot-w.out{opacity:0;transform:translateY(8px)}
.emch-search{position:relative;display:flex;align-items:center;gap:10px;max-width:660px;margin:0 auto;padding:6px 8px 6px 18px;background:#fff;border:2px solid var(--ink);border-radius:16px;box-shadow:0 10px 30px rgba(21,35,61,.12);text-align:left}
.emch-search>.emch-ic{color:var(--muted)}
.emch-search input{flex:1;min-width:0;border:0!important;outline:0;background:transparent;font:inherit;font-size:17px;padding:12px 4px!important;color:var(--ink);box-shadow:none!important}
.emch-sugg{position:absolute;left:-2px;right:-2px;top:calc(100% + 6px);list-style:none;margin:0;padding:6px;background:#fff;border:2px solid var(--ink);border-radius:14px;box-shadow:0 18px 40px rgba(21,35,61,.18);z-index:20;max-height:380px;overflow:auto}
.emch-sugg li{margin:0}
.emch-sugg a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--ink)}
.emch-sugg a small{margin-left:auto;color:var(--muted);font-size:12.5px;white-space:nowrap}
.emch-sugg a:hover,.emch-sugg a[aria-selected=true]{background:var(--green-2)}
.emch-sugg .none{padding:10px 12px;color:var(--muted)}
.emch-sugg i{width:10px;height:10px;border-radius:3px;background:var(--c);flex:0 0 auto;transform:rotate(45deg)}
.emch-pop{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:16px 0 0}
.emch-pop>span{font-weight:700;color:var(--muted);font-size:14px}
.emch-chip{padding:6px 13px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-size:13.5px;font-weight:600;cursor:pointer;transition:all .15s}
.emch-chip:hover{border-color:var(--green);color:var(--green)}
.emch-props{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;list-style:none!important;margin:26px 0 0!important;padding:0!important}
.emch-props li{display:flex;align-items:center;gap:10px;margin:0;font-size:15px}
.emch-pi{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--c2);color:var(--c)}
.emch-float{position:absolute;inset:0;z-index:1;pointer-events:none}
.emch-sh{position:absolute;display:grid;place-items:center;width:84px;height:84px;border-radius:22px;background:var(--c);color:#fff;font-weight:900;font-size:34px;font-family:Georgia,"Times New Roman",serif;transform:rotate(45deg);box-shadow:0 12px 26px rgba(21,35,61,.14);animation:emch-bob 7s ease-in-out infinite}
.emch-sh>i{font-style:normal;line-height:1;transform:rotate(-45deg)}
.emch-sh.s1{left:6%;top:16%;width:96px;height:96px}.emch-sh.s2{left:14%;top:58%;animation-delay:-2s}.emch-sh.s3{left:3%;top:78%;width:60px;height:60px;font-size:24px;animation-delay:-4s}
.emch-sh.s4{right:7%;top:14%;width:92px;height:92px;animation-delay:-1s}.emch-sh.s5{right:15%;top:56%;animation-delay:-3s}.emch-sh.s6{right:3%;top:80%;width:62px;height:62px;font-size:22px;animation-delay:-5s}
.emch-dot{position:absolute;width:18px;height:18px;border-radius:5px;background:var(--c);transform:rotate(45deg)}
.emch-dot.d1{left:24%;top:12%}.emch-dot.d2{left:27%;top:84%}.emch-dot.d3{right:25%;top:10%}.emch-dot.d4{right:27%;top:86%}
.emch-bar{position:absolute;width:12px;height:150px;border-radius:8px;background:var(--orange);opacity:.9;transform:rotate(45deg)}
.emch-bar.b1{left:-10px;top:-30px}.emch-bar.b2{right:-8px;bottom:-40px;background:var(--green)}
@keyframes emch-bob{0%,100%{translate:0 0}50%{translate:0 -10px}}
@media (prefers-reduced-motion:reduce){.emch-sh{animation:none}.emch-rot-w{transition:none}}

/* Categories */
.emch-cats{padding-top:46px}
.emch-cats h2{margin-bottom:18px}
.emch-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.emch-cat{position:relative;display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:18px;background:var(--c2);color:var(--ink);overflow:hidden;transition:transform .18s,box-shadow .18s}
.emch-cat::after{content:"";position:absolute;right:-18px;bottom:-18px;width:56px;height:56px;border-radius:14px;background:var(--c);opacity:.14;transform:rotate(45deg);transition:transform .25s}
.emch-cat:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(21,35,61,.10)}
.emch-cat:hover::after{transform:rotate(45deg) scale(1.4)}
.emch-cat-ic{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--c);color:#fff;margin-bottom:6px}
.emch-cat-t{font-weight:800;font-size:16px}
.emch-cat-n{font-size:13.5px;color:var(--muted)}

/* Featured */
.emch-feat{margin-top:50px;padding:42px 0 46px;background:linear-gradient(180deg,var(--cream),#fff)}
.emch-feat-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.emch-fcard{display:flex;flex-direction:column;border-radius:18px;background:#fff;border:1px solid var(--line);overflow:hidden;color:var(--ink);transition:transform .18s,box-shadow .18s}
.emch-fcard:hover{transform:translateY(-4px);box-shadow:0 14px 28px rgba(21,35,61,.12)}
.emch-fimg{display:block;aspect-ratio:3/2;background:var(--c2);border-bottom:4px solid var(--c)}
.emch-fimg img{display:block;width:100%;height:100%;object-fit:cover}
.emch-ft{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding:12px 14px 0;font-weight:800;font-size:15px;line-height:1.35;min-height:calc(2.7em + 12px)}
.emch-go{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding:10px 14px 14px;color:var(--c,var(--green));font-weight:700;font-size:14px}
.emch-go .emch-ic{width:16px;height:16px;transition:transform .15s}
a:hover>.emch-go .emch-ic{transform:translateX(3px)}

/* All tools */
.emch-all{padding-top:50px}
.emch-count{font-weight:700}
.emch-filter{position:sticky;top:var(--emch-top,64px);z-index:15;margin:0 0 24px;padding:12px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);box-shadow:0 6px 18px rgba(21,35,61,.06)}
.emch-fsearch{display:flex;align-items:center;gap:8px;padding:0 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--muted)}
.emch-fsearch input{flex:1;min-width:0;border:0!important;outline:0;background:transparent;font:inherit;padding:10px 0!important;box-shadow:none!important;color:var(--ink)}
.emch-tabs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
.emch-tab{flex:0 0 auto;padding:6px 12px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.emch-tab:hover{border-color:var(--c,var(--ink))}
.emch-tab[aria-pressed=true]{background:var(--c,var(--ink));border-color:var(--c,var(--ink));color:#fff}
.emch-sec{margin:0 0 34px;scroll-margin-top:190px}
.emch-sec-h{display:flex;align-items:center;gap:12px;font-size:21px!important;font-weight:800;margin:0 0 14px!important;padding-bottom:10px;border-bottom:3px solid var(--c2)}
.emch-sec-h small{padding:2px 9px;border-radius:999px;background:var(--c2);color:var(--c);font-size:13px;font-weight:800}
.emch-sec-ic{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--c);color:#fff}
.emch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.emch-card{position:relative;display:flex;flex-direction:column;gap:6px;min-height:150px;padding:16px 16px 0;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);overflow:hidden;transition:transform .15s,box-shadow .15s,border-color .15s}
.emch-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c)}
.emch-card:hover{transform:translateY(-2px);border-color:var(--c);box-shadow:0 10px 22px rgba(21,35,61,.09)}
.emch-ct{font-weight:800;font-size:15.5px;line-height:1.35}
.emch-cd{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--muted);font-size:14px;line-height:1.5}
.emch-card .emch-go{padding:6px 0 14px}
.emch-card[hidden],.emch-sec[hidden]{display:none!important}
.emch-empty{padding:28px;border:2px dashed var(--line);border-radius:18px;text-align:center}
.emch-empty p{margin-bottom:14px!important}

/* Teachers + practice + FAQ */
.emch-teach{display:flex;gap:18px;align-items:flex-start;margin-top:20px;padding-top:24px;padding-bottom:24px;border-radius:22px;background:var(--blue-2);max-width:1140px}
.emch-teach-ic{display:inline-grid;place-items:center;flex:0 0 auto;width:54px;height:54px;border-radius:16px;background:var(--blue);color:#fff}
.emch-teach h2{font-size:22px;font-weight:800;margin-bottom:6px}
.emch-teach p{color:#33405a}
.emch-practice{display:grid;grid-template-columns:1fr 1.4fr;gap:24px;align-items:center;margin-top:46px}
.emch-practice h2{font-size:26px;font-weight:800;margin-bottom:8px}
.emch-practice p{color:var(--muted)}
.emch-pr-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.emch-pr-links a{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:16px;background:var(--c2);color:var(--ink);transition:transform .15s}
.emch-pr-links a:hover{transform:translateY(-3px)}
.emch-pr-links .emch-ic{width:30px;height:30px;color:var(--c)}
.emch-pr-links b{display:block}
.emch-pr-links span{font-size:14px;color:var(--muted)}
.emch-faq{margin-top:50px;padding-bottom:60px}
.emch-faq h2{margin-bottom:14px}
.emch-faq details{border:1px solid var(--line);border-radius:14px;padding:14px 18px;margin:0 0 10px;background:#fff}
.emch-faq summary{font-weight:700;cursor:pointer}
.emch-faq details p{margin-top:8px!important;color:#33405a}
.emch-faq a{color:var(--green);text-decoration:underline}

/* Responsive */
@media (max-width:1080px){.emch-feat-row{grid-template-columns:repeat(10,minmax(220px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.emch-fcard{scroll-snap-align:start}}
@media (max-width:860px){.emch-practice{grid-template-columns:1fr}.emch-sh{opacity:.35}}
@media (max-width:640px){
  .emch-hero{padding:40px 16px 36px}
  .emch-sh.s2,.emch-sh.s5,.emch-dot{display:none}
  .emch-sh{width:56px!important;height:56px!important;font-size:22px!important}
  .emch-sh.s1{left:-14px;top:6%}.emch-sh.s4{right:-14px;top:6%}.emch-sh.s3{left:-12px}.emch-sh.s6{right:-12px}
  .emch-wrap{padding:0 16px}
  .emch-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emch-grid{grid-template-columns:1fr}
  .emch-card{min-height:0}
  .emch-pr-links{grid-template-columns:1fr}
  .emch-teach{flex-direction:column;margin-left:16px;margin-right:16px}
  .emch-props{gap:10px 18px}
}
/* Suggestions must not be clipped by the hero */
.emch-hero{overflow:visible;z-index:3}
.emch-float{overflow:hidden}
.emch-hero-in{z-index:5}
.emch-search input:focus-visible{outline:none}
.emch-search:focus-within{box-shadow:0 0 0 4px rgba(47,111,222,.25),0 10px 30px rgba(21,35,61,.12)}
.emch-fsearch input:focus-visible{outline:none}
.emch-fsearch:focus-within{border-color:var(--blue)}
/* v1.0.1: the site navbar is fixed (64px) and this template starts at the top of the page */
.emch-hero{padding-top:122px}
@media (max-width:640px){.emch-hero{padding-top:100px}}

/* v1.1.0: Math Solver spotlight */
.emch-btn.ghost{background:#fff;color:var(--ink);border-color:var(--line)}
.emch-empty-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}

/* Suggestions must sit above the Math Solver band that overlaps the hero: the hero makes no stacking layer of its own,
   so its inner box (z-index 5) can rise above the band (z-index 4) while the hero background stays below it. */
.emch .emch-hero{z-index:auto}

/* Math Solver band: the real solver in a frame (v1.3.0) */
.emch-ms{scroll-margin-top:70px;position:relative;z-index:4;overflow:hidden;padding:46px 20px 40px;background:linear-gradient(135deg,#0b6b3c 0%,#0f8a4f 55%,#2f9e63 100%);color:#fff}
.emch-ms-in{position:relative;z-index:1;max-width:1040px;margin:0 auto;text-align:center}
.emch-ms-k{display:inline-block;padding:4px 12px;border-radius:999px;background:#ffd166;color:#15233d;font-weight:800;font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;margin-bottom:10px!important}
.emch-ms h2{color:#fff;font-size:clamp(32px,4.4vw,48px);font-weight:900;line-height:1.05}
.emch-ms-sub{max-width:680px;margin:10px auto 22px!important;color:#e3f6ea;font-size:clamp(16px,1.8vw,18.5px)}
.emch-ms-card{border-radius:22px;background:#fff;padding:10px 10px 4px;box-shadow:0 26px 50px rgba(5,40,22,.35),0 0 0 6px rgba(255,255,255,.14);text-align:left}
.emch-ms-frame{display:block;width:100%;height:900px;border:0;background:#fff;border-radius:14px;transition:height .2s}
.emch-ms-nojs{padding:20px;text-align:center}.emch-ms-nojs a{color:var(--green);font-weight:800;text-decoration:underline}
.emch-ms-foot{margin-top:14px!important;font-size:14px}.emch-ms-foot a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.emch-ms-sh{position:absolute;display:grid;place-items:center;border-radius:18px;transform:rotate(45deg);box-shadow:0 12px 24px rgba(0,0,0,.18);pointer-events:none}
.emch-ms-sh i{font:900 30px/1 Georgia,serif;font-style:normal;transform:rotate(-45deg)}
.emch-ms-sh.a{left:4%;top:60px;width:74px;height:74px;background:#fff;color:#0b6b3c}
.emch-ms-sh.b{left:9%;top:200px;width:52px;height:52px;background:#ffd166;color:#15233d}.emch-ms-sh.b i{font-size:24px}
.emch-ms-sh.c{right:5%;top:70px;width:70px;height:70px;background:#ff8fab;color:#fff}
.emch-ms-sh.d{right:10%;top:210px;width:48px;height:48px;background:rgba(255,255,255,.2);color:#fff}.emch-ms-sh.d i{font-size:22px}
@media (max-width:1180px){.emch-ms-sh{display:none}}
@media (max-width:760px){.emch-ms{padding:30px 10px 26px}.emch-ms-card{padding:4px;border-radius:16px}.emch-ms-frame{height:1000px;border-radius:12px}}
.emch-ms-try{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:0 0 18px!important}
.emch-ms-try span{font-weight:800;color:#d2f0dc}
.emch-ms-try button{padding:7px 14px;border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-family:"SFMono-Regular",Menlo,Consolas,monospace;font-size:14px;cursor:pointer;transition:background .15s}
.emch-ms-try button:hover,.emch-ms-try button:focus-visible{background:#ffd166;color:#15233d;outline:0}
