/* Math Tutor Team — "bright desk" skin (2026-11-21), palette C: white page, sky blue + navy + bright blue (the --yellow/--coral names are kept from the first palette), big search, pill buttons.
   Bootstrap 5 / Material Kit (vendor/material-kit) still provides the grid, navbar collapse and reset; everything visual is set here. */
:root {
  --ink: #0b1f4d;
  --ink-2: #34446e;
  --muted: #66739a;
  --hair: #e3e8f3;
  --hair-2: #cdd6e8;
  --yellow: #cfe2ff;
  --yellow-soft: #e8f1ff;
  --coral: #1f5eff;
  --blue: #1f5eff;
  --info: var(--blue);
  --g-dark: linear-gradient(var(--ink), var(--ink));
  /* names used by tools.css and inline styles */
  --paper: #f5f8ff;
  --paper-2: #eaf0fb;
  --card: #fff;
  --tomato: #ff5c39;
  --tomato-d: #d63f1f;
  --sun: var(--yellow-soft);
  --mint: #12b886;
  --sky: var(--blue);
  --pink: #ffe0ea;
  --lilac: #e8e4ff;
  --teal: #d3f5ec;
  --line: 1px solid var(--hair);
  --shadow: 0 1px 2px rgba(11, 31, 77, .05), 0 8px 24px -14px rgba(11, 31, 77, .22);
  --shadow-lg: 0 2px 4px rgba(11, 31, 77, .05), 0 26px 48px -22px rgba(11, 31, 77, .32);
  --r: 20px;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bs-body-font-family: var(--body);
  --bs-heading-color: var(--ink);
}
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink-2); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; font-weight: 400; line-height: 1.6; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.material-symbols-rounded { font-size: 1.25rem; line-height: 1; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- navbar ---------- */
.site-head .navbar { background: #fff; border: var(--line); border-radius: 22px; box-shadow: var(--shadow); padding-inline: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo small { display: block; margin-top: 4px; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-head .navbar .nav-link { color: var(--ink); font-size: .92rem; font-weight: 600 !important; border-radius: 999px; padding: .5rem .9rem; white-space: nowrap; transition: background-color .15s; }
.site-head .navbar .nav-link:hover { background: var(--yellow-soft); }
.site-head .navbar .nav-link[aria-current] { background: var(--ink); color: #fff; }
.cart-btn, .cart-btn.bg-gradient-dark { display: inline-flex; align-items: center; gap: 7px; background: var(--coral) !important; background-image: none !important; color: #fff !important; border: 0; border-radius: 999px; padding: .55rem 1rem; font-size: .88rem; font-weight: 700; box-shadow: none !important; }
.cart-btn:hover { background: #1549d6 !important; }
.cart-btn .material-symbols-rounded { font-size: 1.15rem; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count[data-n="0"] { display: none; }
.navbar-toggler-icon .navbar-toggler-bar { background: var(--ink); height: 2px; }
@media (max-width: 420px) { .cart-label { display: none; } .logo small { display: none; } }

/* ---------- page shape ---------- */
.mk-band { height: 104px; }
.mk-sheet { padding: 0; }
.hero, .page-head, .tool-hero {
  position: relative; margin: 0 12px; border-radius: 0 0 36px 36px; padding: 128px 0 48px; color: var(--ink);
  background-color: var(--yellow-soft);
  background-image: linear-gradient(rgba(11, 31, 77, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 77, .055) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center top;
}
.hero h1 em { font-style: normal; background: var(--yellow); border-radius: 12px; padding: 0 .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.page-head p, .tool-hero p { margin: 0; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.mk-sheet > .wrap, .mk-sheet > main { padding-top: 32px; }

/* home hero */
.home-hero { background-color: var(--yellow); padding: 132px 0 112px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.home-hero h1 { margin: 18px 0 .35em; }
.home-hero h1 mark { background: #fff; color: var(--ink); border-radius: 14px; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.home-hero .lead { max-width: 33em; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 14px 7px 10px; font-size: .8rem; font-weight: 700; }
.pill .material-symbols-rounded { color: var(--yellow); font-size: 1.1rem; }
.big-search { display: flex; align-items: center; gap: 10px; margin: 26px 0 16px; padding: 8px 8px 8px 22px; max-width: 600px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 10px 0 -4px rgba(11, 31, 77, .14), var(--shadow-lg); }
.big-search svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.big-search input[type=search] { flex: 1; min-width: 0; border: 0; padding: 12px 4px; font-size: 1.05rem; font-weight: 500; background: transparent; box-shadow: none; border-radius: 0; }
.big-search input[type=search]:focus { box-shadow: none; border: 0; }
.big-search .btn { padding: .95em 1.6em; font-size: 1rem; flex: none; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.chip { text-decoration: none; background: rgba(255, 255, 255, .6); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-weight: 700; color: var(--ink); transition: background-color .15s, transform .15s; }
.chip:hover { background: #fff; transform: translateY(-2px); color: var(--ink); }
.alt-path { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.alt-path:hover { color: var(--ink); text-decoration-color: var(--coral); }
.hero-stack { position: relative; height: 460px; }
.hero-stack a { position: absolute; width: 56%; border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid var(--ink); box-shadow: 0 22px 40px -18px rgba(11, 31, 77, .5); transition: transform .4s var(--ease); }
.hero-stack img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-stack a:hover { z-index: 5; }
.hero-stack a:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.hero-stack a:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.hero-stack a:nth-child(3) { left: 23%; top: 164px; transform: rotate(-1deg); z-index: 3; }
.hero-stack a:nth-child(1):hover { transform: rotate(-3deg) translateY(-10px); }
.hero-stack a:nth-child(2):hover { transform: rotate(2deg) translateY(-10px); }
.hero-stack a:nth-child(3):hover { transform: rotate(0) translateY(-10px); }
.sticker { position: absolute; z-index: 6; right: -4px; bottom: 6px; display: grid; place-content: center; text-align: center; width: 124px; height: 124px; border-radius: 50%; background: var(--coral); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.2; transform: rotate(10deg); box-shadow: 0 14px 26px -10px rgba(31, 94, 255, .7); }
.sticker b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-hero { padding: 116px 0 52px; }
  .hero-stack { height: auto; aspect-ratio: 1 / .93; max-width: 430px; width: 100%; margin: 8px auto 0; }
  .hero-stack a:nth-child(1) { top: 9%; } .hero-stack a:nth-child(3) { top: 38%; }
  .hero, .page-head, .tool-hero { margin: 0 6px; border-radius: 0 0 26px 26px; padding-top: 112px; }
  .sticker { width: 104px; height: 104px; } .sticker b { font-size: 1.55rem; }
}
@media (max-width: 520px) {
  .big-search { padding-left: 16px; } .big-search .btn { padding: .9em 1.1em; }
}

/* 3 steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 18px 0 8px; }
.how-step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 20px 22px; border: var(--line); border-radius: var(--r); background: #fff; }
.step-n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.step-ic { display: none; }
.how-step h3 { margin: 2px 0 2px; font-size: 1.15rem; }
.how-step p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- buttons, tags, cards ---------- */
.btn { margin: 0; text-transform: none; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--body); font-size: .95rem; font-weight: 700; line-height: 1; padding: .85em 1.4em; border-radius: 999px;
  background: #fff; background-image: none; color: var(--ink); border: 1.5px solid var(--hair-2); box-shadow: none;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); box-shadow: none; }
.btn:active { transform: translateY(0); }
.btn .material-symbols-rounded { font-size: 1.1rem; }
.btn-hot { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-hot:hover { background: #1549d6; border-color: #1549d6; color: #fff; box-shadow: 0 12px 22px -12px rgba(31, 94, 255, .9); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #17306b; border-color: #17306b; color: #fff; box-shadow: 0 12px 22px -12px rgba(11, 31, 77, .8); }
.btn-sun { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-mint, .add.in { background: var(--mint) !important; border-color: var(--mint) !important; color: #fff !important; }
.btn-paypal { background: #ffc439; border-color: #ffc439; color: #111; }
.btn-lg { font-size: 1.02rem; padding: 1.05em 1.7em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.tag { display: inline-block; padding: .5em .85em; font-size: .68rem; font-weight: 800; line-height: 1; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.tag-ok { background: var(--mint); color: #fff; }
.tag-warn { background: var(--yellow); color: var(--ink); }
.tag-hot { background: var(--coral); color: #fff; }
.card { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: none; }
.pad { padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; }
.note { background: var(--yellow-soft); border-radius: 14px; padding: 12px 16px; font-weight: 600; color: var(--ink); }
.err { color: var(--tomato-d); font-weight: 700; }
.kicker { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { margin: 0; max-width: 40em; }
.alt { background: var(--paper); }
.grid-bg { background-color: var(--yellow-soft); }
.strip { display: none; }
@media (max-width: 760px) { .section { padding: 48px 0; } }

/* collections */
.colls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coll { --tint: var(--paper-2); display: flex; flex-direction: column; min-height: 214px; padding: 20px; border-radius: 24px; background: var(--tint); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.coll:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); color: var(--ink); }
.coll-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--ink); margin-bottom: 14px; }
.coll-ic .material-symbols-rounded { font-size: 1.45rem; }
.coll h3 { font-size: 1.3rem; margin-bottom: .3em; }
.coll p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.coll .meta { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 700; }
.coll .arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.1rem; transition: transform .25s var(--ease); }
.coll:hover .arrow { transform: translateX(4px); }
.c-njsla { --tint: #cfe2ff; } .c-isee { --tint: #ffd3df; } .c-private { --tint: #dcd6ff; } .c-state { --tint: #bfeedd; }
.c-map { --tint: #cfe1ff; } .c-g68 { --tint: #ffd9c7; } .c-prealg { --tint: #d4f3c0; } .c-alg1 { --tint: #ffe9a8; }
.c-geo { --tint: #ffd3ee; } .c-alg2 { --tint: #cfe1ff; } .c-assess { --tint: #ffdfae; } .c-free { --tint: #bfeedd; }
@media (max-width: 1100px) { .colls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .colls { grid-template-columns: 1fr; } .coll { min-height: 0; } }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }
.pcard { background: #fff; border: var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.pcard .thumb { display: block; position: relative; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .thumb img { transform: scale(1.04); }
.pcard .thumb .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .t { font-weight: 700; line-height: 1.32; letter-spacing: -.015em; color: var(--ink); text-decoration: none; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .t:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard .sub { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.price s { font-size: .84rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price.free { color: var(--mint); }
.add { padding: .7em 1.05em; font-size: .84rem; }
.pcard .add:not(.btn-mint):not(.in) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcard .add:not(.btn-mint):not(.in):hover { background: var(--coral); border-color: var(--coral); }

/* why + features */
.whys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: var(--line); border-radius: var(--r); }
.why > .material-symbols-rounded { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-size: 1.4rem; }
.why h3 { font-size: 1.05rem; margin-bottom: .3em; }
.why p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 1100px) { .whys { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .whys { grid-template-columns: 1fr; } }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; background: var(--yellow) !important; color: var(--ink) !important; }
.feat h3 { font-size: 1.1rem; }
.feat p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 1000px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* tool cards */
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-card { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: 28px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tc-a { background: var(--yellow); } .tc-b { background: #fff1c9; }
.tool-card h3 { font-size: 1.45rem; margin-bottom: .3em; }
.tool-card p { font-size: .95rem; color: var(--ink-2); }
.tc-art { aspect-ratio: 1; display: grid; place-content: center; text-align: center; gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 20px; color: var(--ink); transform: rotate(-4deg); transition: transform .35s var(--ease); }
.tool-card:hover .tc-art { transform: rotate(2deg) scale(1.04); }
.tc-art b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.tc-art i { font-style: normal; font-weight: 600; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .tool-cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tool-card { grid-template-columns: 1fr; } .tc-art { width: 130px; } }

/* cta + tutoring */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--ink); }
.cta-band h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-band p { color: #c9cce0; margin: 0; }
.cta-band .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.tutor { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tutor-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tutor-list > div { background: var(--paper); border-radius: var(--r); padding: 18px 20px; font-weight: 700; color: var(--ink); }
.tutor-list .material-symbols-rounded { display: block; font-size: 1.6rem; margin-bottom: 8px; color: var(--coral); }
.tutor-list span:not(.material-symbols-rounded) { display: block; margin-top: 3px; font-weight: 500; font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .tutor { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .tutor-list { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--paper); margin-top: 0 !important; overflow-x: clip; }
.site-foot .nav-link { color: var(--ink-2); padding-left: 1rem; white-space: normal; overflow-wrap: anywhere; font-size: .9rem; }
.site-foot .nav-link:hover { color: var(--coral); }
.site-foot h6 { font-weight: 800; color: var(--ink); margin-bottom: .75rem; }
.legal { border-top: var(--line); margin: 24px 0 0; padding: 20px 0 24px; color: var(--muted); }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--hair-2); border-radius: 8px; padding: 3px 8px; font-size: .68rem; font-weight: 700; color: var(--ink-2); background: #fff; }

/* ---------- nav dropdowns ---------- */
.site-head .nav-drop { display: inline-flex; align-items: center; gap: 2px; }
.site-head .nav-drop .caret { font-size: 1.15rem; transition: transform .2s; }
.site-head .nav-drop[aria-expanded="true"] .caret { transform: rotate(180deg); }
.site-head .dropdown-toggle::after, .site-head .dropdown .dropdown-menu::before { display: none !important; content: none !important; }
.site-head .dropdown-menu { display: none; opacity: 1; transform: none !important; pointer-events: auto; margin-top: 12px !important; padding: 10px; border: var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); background: #fff; min-width: 290px; transition: none; }
.site-head .dropdown-menu.show { display: block; }
.site-head .dropdown-menu.mega { min-width: 640px; left: auto; right: -120px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.2fr; gap: 6px 14px; }
.site-head .dropdown-menu h6 { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 8px 12px 6px; }
.site-head .dropdown-item { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; font-size: .92rem; font-weight: 600 !important; color: var(--ink) !important; white-space: nowrap; }
.site-head .dropdown-item:hover, .site-head .dropdown-item:focus { background: var(--yellow-soft); color: var(--ink); }
.site-head .dropdown-item .material-symbols-rounded { font-size: 1.2rem; color: var(--coral); }
.site-head .dropdown-item.rich { align-items: flex-start; padding: 10px 12px; }
.site-head .dropdown-item.rich .material-symbols-rounded { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); color: var(--ink); flex: none; }
.site-head .dropdown-item.rich b { display: block; font-weight: 800; }
.site-head .dropdown-item.rich small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
@media (max-width: 991px) {
  .site-head .dropdown-menu, .site-head .dropdown-menu.mega { position: static !important; min-width: 0; margin: 4px 0 8px !important; border: 0; box-shadow: none; background: var(--paper); right: auto; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-grid > div:last-child { grid-column: 1 / -1; }
  .site-head .dropdown-item { white-space: normal; }
}

/* ---------- finder (course -> topic -> lesson) ---------- */
.finder { padding: 18px; display: grid; gap: 14px; border: 2px solid var(--ink); border-radius: 24px; }
.finder-main { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 12px; align-items: end; }
#home-finder .finder-main { grid-template-columns: 1fr 1.3fr 1.3fr auto; }
.finder label > span { display: flex; align-items: center; gap: 8px; }
.fnum { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; }
.finder select { width: 100%; border-radius: 14px; font-weight: 600; padding: .85rem 1rem; text-overflow: ellipsis; }
.finder select:disabled { background: var(--paper); color: var(--muted); cursor: not-allowed; }
.finder-more { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 14px; border-top: var(--line); }
.finder-more select { width: auto; border-radius: 999px; padding: .7rem 1rem; font-size: .9rem; }
.finder-more .search { flex: 1 1 260px; }
.finder-more .btn { padding: .8em 1.2em; }
.shopx { padding: 28px 0 72px; }
.shopx .count { margin: 18px 4px 14px; }
.home-finder { padding: 28px 0 0; }
.home-finder .finder { box-shadow: var(--shadow-lg); margin-top: -64px; position: relative; z-index: 3; background: #fff; }
#home-finder .btn { height: 52px; }
@media (max-width: 900px) {
  .finder-main, #home-finder .finder-main { grid-template-columns: 1fr; }
  .home-finder .finder { margin-top: -36px; }
  .finder-more select { flex: 1 1 140px; }
}

/* ---------- shop ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0 72px; align-items: start; }
.filters { position: sticky; top: 104px; display: grid; gap: 20px; padding: 20px; max-height: calc(100vh - 124px); overflow: auto; }
.filters h4 { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.flist { display: grid; gap: 2px; }
.flist button { display: flex; justify-content: space-between; gap: 8px; text-align: left; width: 100%; font: 600 .9rem var(--body);
  background: none; border: 0; border-radius: 12px; padding: 8px 12px; cursor: pointer; color: var(--ink); transition: background-color .15s; }
.flist button:hover { background: var(--yellow-soft); }
.flist button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.flist button span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.flist button[aria-pressed="true"] span { color: #c9cce0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 600 .8rem var(--body); border: 1.5px solid var(--hair-2); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--ink); transition: border-color .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; display: block; }
.search input { width: 100%; padding-left: 46px !important; border-radius: 999px !important; }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--ink); }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], select, textarea {
  font: 500 .97rem/1.4 var(--body); border: 1.5px solid var(--hair-2); border-radius: 14px; padding: .8rem 1rem; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s; appearance: auto;
}
input[type=text]:focus, input[type=email]:focus, input[type=search]:focus, input[type=password]:focus, input[type=number]:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft);
}
select { width: auto; cursor: pointer; border-radius: 999px; }
label { font-weight: 700; font-size: .88rem; color: var(--ink); display: grid; gap: 6px; margin: 0; }
.count { color: var(--muted); font-size: .9rem; font-weight: 500; margin-bottom: 14px; }
.more { display: flex; justify-content: center; margin-top: 40px; }
.empty { padding: 48px; text-align: center; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}

/* ---------- product page ---------- */
.crumbs { font-size: .85rem; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 20px 0 56px; align-items: start; }
.gallery .main { border: var(--line); border-radius: 24px; overflow: hidden; background: #fff; aspect-ratio: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.gallery .thumbs button { padding: 0; border: 2px solid var(--hair); border-radius: 14px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 1; opacity: .65; transition: opacity .2s, border-color .2s; }
.gallery .thumbs button:hover { opacity: 1; }
.gallery .thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 108px; }
.buybox h1 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; }
.buybox .price { font-size: 2.4rem; margin: 8px 0 20px; display: block; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.buy-actions .btn { padding: 1.1em 1em; font-size: 1rem; }
.buy-actions .btn:not(.btn-hot):not(.in) { border: 2px solid var(--ink); }
.facts { list-style: none; padding: 2px 18px; margin: 0 0 20px; border-radius: var(--r); background: var(--paper); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: var(--line); font-size: .92rem; }
.facts li:first-child { border-top: 0; }
.facts li b { text-align: right; font-weight: 700; color: var(--ink); }
.assure { display: grid; gap: 8px; font-size: .9rem; font-weight: 500; }
.assure span { display: flex; gap: 8px; align-items: flex-start; }
.assure span::before { content: "check_circle"; font-family: "Material Symbols Rounded"; font-size: 1.15rem; line-height: 1.25; color: var(--mint); flex: none; }
.upsell { display: flex; flex-direction: row; gap: 14px; align-items: center; padding: 14px; margin: 20px 0; background: var(--yellow-soft); border: 0; }
.upsell img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.upsell a { font-weight: 800; color: var(--ink); }
.desc { background: var(--paper); border: 0; }
.desc h3 { margin-top: 1.6em; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.desc ul { padding-left: 1.2em; margin: 0 0 1em; }
.desc li { margin: .3em 0; }
.free-files { display: grid; gap: 10px; margin-bottom: 18px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } .buybox { position: static; } }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 390px; gap: 32px; padding: 32px 0 72px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.citem { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px; flex-direction: unset; }
.citem img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.citem a { font-weight: 700; color: var(--ink); text-decoration: none; }
.citem .rm { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 4px 0; font-size: .84rem; font-weight: 500; }
.citem .rm:hover { color: var(--tomato-d); }
.citem .warn { color: var(--tomato-d); font-size: .84rem; font-weight: 700; }
.summary { position: sticky; top: 104px; padding: 26px; border: 2px solid var(--ink); }
.summary .rowx { display: flex; justify-content: space-between; margin: 8px 0; font-weight: 600; }
.summary .total { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); border-top: var(--line); padding-top: 14px; margin-top: 12px; }
.summary form { display: grid; gap: 14px; margin-top: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.paybtns { display: grid; gap: 10px; }
.demo-box { border: 1.5px dashed var(--ink); border-radius: 16px; padding: 14px; font-size: .88rem; background: var(--yellow-soft); color: var(--ink); }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- thanks / admin / prose ---------- */
.thanks { padding: 32px 0 72px; }
.thanks .card { position: relative; }
.stamp { position: absolute; right: 24px; top: 24px; background: var(--mint); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .6em 1em; border-radius: 999px; }
.dl-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-radius: 16px; padding: 14px 16px; flex-wrap: wrap; background: var(--paper); }
.dl-list li div { display: grid; min-width: 0; flex: 1 1 260px; }
.dl-list b { word-break: break-all; font-weight: 700; color: var(--ink); }
.prose { padding: 40px 0 72px; }
.prose h2 { margin-top: 1.7em; font-size: 1.4rem; }
.prose li { margin: .3em 0; }
.prose a { color: var(--blue); }
.faq details { border: var(--line); border-radius: 16px; background: #fff; padding: 0 20px; margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: 17px 30px 17px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "add"; font-family: "Material Symbols Rounded"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ink); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; }
.admin { padding: 32px 0 72px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats .card { display: grid; gap: 4px; }
.stats b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.checks { list-style: none; padding: 0; display: grid; gap: 6px; }
.checks .ok { color: #0c8a63; } .checks .bad { color: var(--tomato-d); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.orders { width: 100%; border-collapse: collapse; font-size: .88rem; }
.orders th { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.orders th, .orders td { text-align: left; padding: 10px 8px; border-bottom: var(--line); vertical-align: top; }
.orders td:nth-child(4) { max-width: 320px; }
.acts form { display: flex; gap: 6px; }
.acts button { font: 600 .78rem var(--body); border: 1.5px solid var(--hair-2); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.acts button:hover { border-color: var(--ink); }
.narrow-box { max-width: 420px; margin: 24px auto; }
.narrow-box form { display: grid; gap: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.mtt-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 1100; transition: transform .35s var(--ease);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 22px; font-size: .92rem; font-weight: 600; display: flex; gap: 16px; align-items: center;
  box-shadow: var(--shadow-lg); max-width: calc(100% - 32px);
}
.mtt-toast.show { transform: translate(-50%, 0); }
.mtt-toast a { color: var(--yellow); white-space: nowrap; font-weight: 800; }

@media print {
  .site-head, .site-foot, .mk-band, .mtt-toast { display: none !important; }
  html, body { background: #fff !important; }
  .mk-sheet { margin: 0 !important; padding: 0 !important; }
}

/* ================= review fixes (2026-11-21): contrast, phone layout, tap targets ================= */
:root { --muted: #56638a; --mint: #0a7d5a; }
.logo small { font-size: .75rem; letter-spacing: .04em; }
.pcard .sub, .tag { font-size: .75rem; }
.desc, .desc p, .desc li { color: var(--ink-2); }
.desc h2 { font-size: 1.6rem; }
.desc > * { max-width: 72ch; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
.home-hero h1 mark { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; }
.btn.add { min-height: 40px; }
.more .btn { border-color: var(--ink); }

/* trust lines on the product page */
.trust { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: var(--line); border-radius: 16px; font-size: .88rem; }
.trust > .material-symbols-rounded { font-size: 1.5rem; color: var(--coral); flex: none; }
.trust b { display: block; color: var(--ink); }
.trust span { color: var(--ink-2); }
.trust a { color: var(--blue); }

/* nav menus */
.site-head .dropdown-menu { min-width: 340px; }
.site-head .dropdown-item.rich small { white-space: normal; }
@media (max-width: 991px) {
  .site-head .navbar .nav-link { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; }
  .site-head .dropdown-menu, .site-head .dropdown-menu.mega { margin: 0 0 8px !important; }
  .site-head .dropdown-item { min-height: 44px; }
}

/* shop: extra filters fold away on phones */
.finder-toggle { display: none; }
@media (max-width: 900px) {
  .finder-toggle { display: inline-flex; }
  .finder-more select, .finder-more #reset { display: none; }
  .finder-more.open select:not([hidden]), .finder-more.open #reset { display: inline-flex; }
  .finder-more.open select:not([hidden]) { display: block; }
  .finder { padding: 14px; gap: 10px; }
  .finder select, .finder-more .search input { min-height: 46px; }
}

/* sticky buy bar on phones */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: var(--line); box-shadow: 0 -10px 26px -18px rgba(11, 31, 77, .45); }
  .buybar .price { font-size: 1.3rem; margin-right: auto; }
  .buybar .btn { min-height: 46px; padding: .8em 1.15em; }
  body:has(.buybar) .site-foot { padding-bottom: 84px; }
  body:has(.buybar) .mtt-toast { bottom: 84px; }
  .buybox h1 { font-size: 1.55rem; }
  .buybox .price { font-size: 1.9rem; margin-bottom: 14px; }
  .buy-actions .btn { min-height: 48px; }
}

/* phones: two columns instead of one long list */
@media (max-width: 760px) {
  .hscroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px; scrollbar-width: none; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll > * { flex: 0 0 70%; scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .colls { grid-template-columns: 1fr 1fr; gap: 10px; }
  .coll { padding: 14px; min-height: 0; border-radius: 18px; }
  .coll p, .coll .arrow { display: none; }
  .coll h3 { font-size: 1.02rem; margin-bottom: 0; }
  .coll-ic { width: 36px; height: 36px; margin-bottom: 10px; border-radius: 12px; }
  .coll .meta { font-size: .75rem; padding-top: 8px; }
  .grid:not(.hscroll) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid:not(.hscroll) .pcard .t { -webkit-line-clamp: 2; font-size: .86rem; }
  .grid:not(.hscroll) .pcard .body { padding: 10px 10px 12px; }
  .grid:not(.hscroll) .pcard .foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .grid:not(.hscroll) .pcard .add { width: 100%; min-height: 44px; }
  .grid:not(.hscroll) .pcard .thumb .tag { top: 8px; left: 8px; }
  .price { font-size: 1.12rem; }
  .chip, .btn.add { min-height: 44px; }
  .citem { grid-template-columns: 64px 1fr; gap: 12px; }
  .citem img { width: 64px; height: 64px; }
  .citem .price { grid-column: 2; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ================= 2026-11-21 outline: top bar + nav row, sidebar listing, grade tiles, join ================= */
.site-head { position: relative; z-index: 1030; background: #fff; border-bottom: var(--line); }
@media (min-width: 992px) { .site-head { position: sticky; top: 0; } }
.topbar-in { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.top-search { position: relative; flex: 1; max-width: 620px; margin: 0 auto; }
.top-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink); pointer-events: none; }
.top-search input[type=search] { width: 100%; padding: .78rem 1.1rem .78rem 48px; border-radius: 999px; border: 1.5px solid var(--hair-2); background: var(--paper); font-weight: 500; }
.top-search input[type=search]:focus { background: #fff; border-color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.top-link { font-weight: 700; color: var(--ink); text-decoration: none; padding: .5rem .7rem; border-radius: 999px; white-space: nowrap; }
.top-link:hover { background: var(--yellow-soft); color: var(--ink); }
.top-actions .btn { padding: .78em 1.2em; font-size: .9rem; }
.top-actions .cart-btn { text-decoration: none; }
.site-head .navbar-toggler { display: none; border: 1.5px solid var(--hair-2); border-radius: 12px; width: 44px; height: 44px; padding: 0; }
.site-head .navbar-toggler-icon { display: grid; gap: 5px; width: 20px; height: auto; margin: 0 auto; }
.site-head .navbar-toggler-icon .navbar-toggler-bar { display: block; margin: 0; width: 20px; }
.site-head .navrow.navbar { background: none; border: 0; border-top: var(--line); border-radius: 0; box-shadow: none; padding: 0; min-height: 0; }
.site-head .navrow .wrap { display: block; }
.site-head .navrow .navbar-nav { gap: 2px; padding: 6px 0; margin-left: -.9rem; }
.site-head .navrow .dropdown-menu { margin-top: 6px !important; left: 0; right: auto; }
.site-head .dropdown-item.note-item { white-space: normal; max-width: 300px; margin-top: 6px; padding-top: 10px; border-top: var(--line); border-radius: 0 0 12px 12px; font-size: .84rem; font-weight: 500 !important; color: var(--ink-2) !important; align-items: flex-start; }
@media (max-width: 991px) {
  .topbar-in { flex-wrap: wrap; gap: 10px 12px; padding: 10px 0; }
  .top-search { order: 3; flex: 1 1 100%; max-width: none; }
  .top-actions { margin-left: auto; gap: 8px; }
  .top-actions .top-link, .top-actions .acct-join { display: none; }
  .site-head .navbar-toggler { display: block; }
  .site-head .navrow .navbar-nav { margin-left: 0; padding: 6px 0 12px; }
  .site-head .navrow.navbar { border-top: 0; }
}
/* heroes no longer sit under a floating bar */
.mk-band { height: 0; }
.hero, .page-head, .tool-hero { padding-top: 44px; margin: 0; border-radius: 0 0 32px 32px; }
.home-hero { padding: 60px 0 76px; }
.tool-hero { padding: 36px 0 30px !important; }
.tool-panel { top: 132px !important; height: calc(100vh - 148px) !important; }
@media (max-width: 991px) {
  .hero, .page-head, .tool-hero { margin: 0; padding-top: 28px; border-radius: 0 0 24px 24px; }
  .home-hero { padding: 32px 0 48px; }
  .tool-panel { top: auto !important; height: auto !important; }
}
.center-head { justify-content: center; text-align: center; }
.center-head p { margin-inline: auto; }
.head-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* grade / course tiles */
.tile-h { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.tile-h:first-of-type { margin-top: 0; }
.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gtile { display: grid; gap: 2px; padding: 16px 16px 14px; background: #fff; border: var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.gtile:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lg); color: var(--ink); }
.gtile b { display: grid; place-items: center; min-width: 52px; width: max-content; height: 52px; padding: 0 12px; margin-bottom: 10px; border-radius: 16px; background: var(--yellow); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.gtile:nth-child(3n+2) b { background: #ffe9a8; } .gtile:nth-child(3n) b { background: #bfeedd; }
.gt-l { font-weight: 800; font-size: 1.02rem; }
.gt-m { font-size: .8rem; color: var(--muted); font-weight: 500; }
.colls-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .colls-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .colls-5 { grid-template-columns: 1fr 1fr; } .colls-5 .coll p { display: none; } .colls-5 .coll { min-height: 0; } }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; border-radius: 24px; background: var(--ink); overflow: hidden; }
.num { padding: 24px 22px; display: grid; gap: 4px; border-left: 1px solid rgba(255, 255, 255, .14); }
.num:first-child { border-left: 0; }
.num b { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; }
.num span { font-size: .88rem; color: #c9d3ee; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; } .num:nth-child(3) { border-left: 0; } .num:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); } }
.join-band { background: var(--yellow-soft); }
.join-band h2 { margin-bottom: .3em; }
.join-band .btn { margin-top: 10px; }

/* listing: head + topic strip */
.list-head { padding-bottom: 28px; }
.list-head .crumbs { margin-bottom: 10px; }
.list-head .crumbs span { color: var(--ink); font-weight: 600; }
.subtopics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; }
.subtopics[hidden] { display: none; }
.subtopics a { text-decoration: none; background: #fff; border: 1.5px solid var(--hair-2); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 600; color: var(--ink); transition: border-color .15s, background-color .15s; }
.subtopics a:hover { border-color: var(--ink); color: var(--ink); }
.subtopics a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.subtopics.clip a:nth-of-type(n+17) { display: none; }
.strip-more { border: 0; background: none; font-weight: 800; font-size: .86rem; color: var(--coral); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 8px; }
/* listing: sidebar + results */
.listing { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; align-items: start; padding: 32px 0 80px; }
.filters { position: sticky; top: 128px; max-height: calc(100vh - 144px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.fgroup { padding: 0 0 20px; margin-bottom: 20px; border-bottom: var(--line); }
.fgroup:last-child { border-bottom: 0; margin-bottom: 0; }
.fgroup[hidden] { display: none; }
.fgroup h2 { font-size: .98rem; letter-spacing: -.01em; margin: 0 0 10px; }
.fgroup h2.h-ls { margin-top: 14px; }
.fgroup.no-ls .h-ls, .fgroup.no-ls #f-ls { display: none; }
.fgroup select { width: 100%; border-radius: 12px; padding: .68rem .8rem; font-size: .9rem; font-weight: 600; text-overflow: ellipsis; }
.fgroup select:disabled { background: var(--paper); color: var(--muted); cursor: not-allowed; }
.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fpill { border: 1.5px solid var(--hair-2); background: #fff; border-radius: 12px; padding: 9px 0; font: 700 .92rem/1 var(--body); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.fpill:hover { border-color: var(--ink); }
.fpill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fopts { display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; border-radius: 10px; padding: 7px 8px 7px 6px; font: 500 .93rem/1.25 var(--body); color: var(--ink-2); text-align: left; cursor: pointer; }
.fopt::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--hair-2); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fopt:hover { background: var(--paper); color: var(--ink); }
.fopt:hover::before { border-color: var(--ink); }
.fopt.on { color: var(--ink); font-weight: 700; }
.fopt.on::before { border-color: var(--coral); box-shadow: inset 0 0 0 4px var(--coral); }
.fopt span { flex: 1; min-width: 0; }
.fopt i { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fopt:disabled, .fpill:disabled { opacity: .4; cursor: default; }
.fnone { margin: 0; font-size: .85rem; color: var(--muted); }
.rbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rbar .search { flex: 1 1 240px; }
.rbar select { padding: .78rem 1rem; font-size: .9rem; font-weight: 600; }
.rbar .finder-toggle { display: none; }
.active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 16px; min-height: 34px; }
.active .count { margin: 0 6px 0 0; color: var(--ink); font-size: .95rem; font-weight: 700; }
.chips { display: contents; }
.fchip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 1.5px solid var(--coral); background: #fff; color: var(--coral); border-radius: 999px; padding: 5px 8px 5px 13px; font: 700 .84rem/1.2 var(--body); cursor: pointer; text-align: left; }
.fchip i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow-soft); font-size: .62rem; flex: none; }
.fchip:hover { background: var(--yellow-soft); }
.fclear { border: 0; background: none; font: 700 .86rem/1 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.listing .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
@media (max-width: 991px) {
  .listing { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .filters { position: static; max-height: none; display: none; padding: 16px; margin-top: 12px; border: 1.5px solid var(--ink); border-radius: 20px; order: 2; }
  .filters.open { display: block; }
  .results { display: contents; }
  .rbar { order: 1; } .active { order: 3; } .listing .grid { order: 4; } .listing .more { order: 5; }
  .rbar .finder-toggle { display: inline-flex; }
  .rbar .search { flex-basis: 100%; }
  .rbar select, .rbar .finder-toggle { flex: 1; }
  .pills { grid-template-columns: repeat(7, 1fr); }
  .subtopics { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .subtopics a { white-space: nowrap; flex: none; }
  .subtopics.clip a:nth-of-type(n+17) { display: block; } .strip-more { display: none; }
}
@media (max-width: 520px) { .listing .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* join / plans */
.join { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; padding: 36px 0 80px; }
.join-form { margin: 0; border: 2px solid var(--ink); border-radius: 24px; }
.join-form h2 { font-size: 1.5rem; }
.join-form form { display: grid; gap: 12px; margin: 16px 0 8px; }
.join-form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.join-form input { width: 100%; }
.join-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: 24px; border: var(--line); border-radius: 24px; background: #fff; display: flex; flex-direction: column; }
.plan-pro { background: var(--yellow); border-color: var(--yellow); }
.plan h3 { font-size: 1.1rem; margin: 0; }
.plan-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; margin: 6px 0 12px; }
.plan-price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .94rem; color: var(--ink-2); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--coral); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
@media print { .site-head { display: none !important; } }

/* ================= 2026-11-21 design + usability review fixes ================= */
html { overflow-x: clip; }
:root { --hair-2: #8f9bbb; }                                   /* control outlines: 3:1 on white */
/* one button language: blue = the buy / commit action, navy = secondary, outline = the rest */
.btn:not(.btn-hot):not(.btn-ink):not(.btn-sun):not(.btn-mint):not(.btn-paypal):not(.in) { border: 1.5px solid var(--ink) !important; background-color: #fff; }
.cta-band .btn { border-color: var(--yellow) !important; background-color: var(--yellow) !important; }
.cta-band .btn:hover { border-color: #fff !important; background-color: #fff !important; }
.pcard .btn.add:not(.in):not(.btn-mint) { background: var(--coral) !important; border-color: var(--coral) !important; color: #fff; }
.pcard .btn.add:not(.in):not(.btn-mint):hover { background: #1549d6 !important; border-color: #1549d6 !important; }
.btn-hot, .btn-ink, .btn-sun, .btn-mint { border-width: 1.5px; border-style: solid; }
/* header: the top bar scrolls away, the nav row stays */
@media (min-width: 992px) { .site-head { top: -70px; } .filters { top: 76px; max-height: calc(100vh - 92px); } .tool-panel { top: 76px !important; height: calc(100vh - 92px) !important; } }
.top-search .sr { left: 0; top: 0; }
/* cards */
.pcard .thumb .tag { top: auto !important; bottom: 10px; left: 10px !important; box-shadow: 0 0 0 2px #fff; }
.pcard .t { -webkit-line-clamp: 4; }
.desc { max-width: 920px; }
/* filter sidebar */
@media (min-width: 992px) { .filters { background: #fff; border: var(--line); border-radius: 20px; padding: 20px 14px 20px 20px; } }
.fsub { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.fsub:first-of-type { margin-top: 0; }
.fsub[hidden], .fnone[hidden] { display: none; }
.fnone a { color: var(--coral); font-weight: 700; }
.fopt { min-height: 38px; }
.fopt.on { background: var(--yellow-soft); }
.fpill { min-height: 40px; }
.fopt:disabled, .fpill:disabled { opacity: 1; color: #6b7799; }
.fpill:disabled { background: var(--paper); border-style: dashed; }
.fopt:disabled i { color: #6b7799; }
.f-done { display: none; }
.subtopics a.back { background: none; border-color: transparent; color: var(--coral); font-weight: 800; padding-inline: 6px; }
.rbar .search[hidden] { display: none; }
/* quieter tiles: white card, colour only on the icon chip */
.colls-5 .coll { background: #fff; border: var(--line); }
.colls-5 .coll:hover { border-color: var(--ink); }
.colls-5 .coll-ic { background: var(--tint); }
.gtile:nth-child(3n) b { background: var(--yellow); }
/* footer lines up with the page */
.site-foot .container { max-width: 1240px; width: min(1240px, 100% - 40px); padding-inline: 0; }
.site-foot a[href^="mailto"] { white-space: nowrap; font-size: .86rem; overflow-wrap: normal; }
/* join: three equal cards */
.join { align-items: stretch; }
.join-form { border: var(--line); border-color: var(--ink); border-width: 1.5px; }
.plans { align-items: stretch; }
.plan { border: 1.5px solid var(--hair); }
.plan-pro { border-color: var(--ink); }
@media (max-width: 991px) {
  .btn, .cart-btn, .subtopics a, .fchip { min-height: 44px; }
  .subtopics a { display: inline-flex; align-items: center; }
  .subtopics { margin-inline: 0; padding-inline: 0; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 40px; }
  .fopt, .fpill { min-height: 44px; }
  .site-foot .nav-link { padding-block: 10px; }
  .f-done { display: inline-flex; position: sticky; bottom: 10px; margin-top: 8px; box-shadow: var(--shadow-lg); }
  .pcard .t { font-size: .86rem; }
  .gtiles > :last-child:nth-child(odd), .colls-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gtiles { grid-template-columns: 1fr 1fr; }
  input[type=checkbox] { width: 24px; height: 24px; }
}

/* ================= 2026-11-21 SEO: sidebar labels, static product list, about block ================= */
.fgroup .fh { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: .98rem; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 10px; }
.fgroup .fh.h-ls { margin-top: 14px; }
.fgroup.no-ls .h-ls { display: none; }
p.fsub { line-height: 1; }
.all-list { margin-top: 28px; border: var(--line); border-radius: 16px; padding: 14px 18px; }
.all-list summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.all-list ul { margin: 12px 0 0; padding-left: 1.1em; columns: 2; column-gap: 28px; font-size: .88rem; }
.all-list li { margin: .25em 0; break-inside: avoid; }
.all-list a { color: var(--ink-2); }
.all-list a:hover { color: var(--coral); }
.list-about { max-width: 920px; padding: 8px 0 72px; }
.list-about h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .5em; }
.list-about h3 { margin: 1.4em 0 .5em; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.list-about p a, .about-links a { color: var(--coral); font-weight: 700; text-underline-offset: 3px; }
.about-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; font-size: .94rem; color: var(--muted); }
.about-links li { margin: .35em 0; break-inside: avoid; }
@media (max-width: 760px) { .all-list ul, .about-links { columns: 1; } }

/* ================= name-by-name worksheet lists ================= */
.wl-page { padding: 28px 0 80px; max-width: 1000px; }
.wl-switch { margin: 22px 0; }
.wl-sec { margin-bottom: 36px; scroll-margin-top: 80px; }
.wl-sec h2 { font-size: 1.45rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.wl-sec h2 a, .wl-sec h3 a { color: inherit; text-decoration: none; }
.wl-sec h2 a:hover, .wl-sec h3 a:hover { color: var(--coral); }
.wl-sec h2 small { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.wl-sec h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: var(--line); }
.wl-t { flex: 1; min-width: 0; color: var(--ink-2); font-size: .95rem; text-decoration: none; }
.wl-t:hover { color: var(--coral); text-decoration: underline; }
.wl .tag { flex: none; }
.wl .price { flex: none; font-weight: 800; color: var(--ink); min-width: 52px; text-align: right; }
.wl .btn.add { flex: none; padding: .6em 1em; font-size: .85rem; min-height: 0; background: var(--coral); border-color: var(--coral) !important; color: #fff; }
.wl .btn.add.in, .wl .btn.add.btn-mint { background: var(--mint) !important; border-color: var(--mint) !important; }
@media (max-width: 640px) { .wl li { flex-wrap: wrap; gap: 6px 10px; } .wl-t { flex-basis: 100%; } .wl .price { margin-left: auto; } }

/* ================= kit worksheets: card without a cover, PDF preview ================= */
.wthumb { display: flex !important; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; text-decoration: none; color: var(--ink);
  background: #fff !important; border-bottom: var(--line);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(11, 31, 77, .07) 23px 24px) !important; }
.wthumb::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; border-left: 1.5px solid rgba(255, 92, 57, .35); }
.wthumb > * { position: relative; padding-left: 22px; }
.wt-type { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); border-radius: 999px; padding: 4px 10px; margin-left: 22px; }
.t-do-now .wt-type { background: #ffe9a8; } .t-homework .wt-type { background: #bfeedd; } .t-exit-ticket .wt-type { background: #ffd3df; }
.wthumb b { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.wt-name { font-weight: 700; font-size: .98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wt-lv { font-size: .8rem; font-weight: 600; color: var(--muted); }
.pcard:hover .wthumb { background-color: var(--paper) !important; }
.pvbox { display: block; }
.pvbox .pv { display: block; width: 100%; aspect-ratio: 8.5 / 11; border: var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.pvbox .pv a { margin: 40% auto 0; display: flex; width: max-content; }
.pvbox p { margin: 10px 2px 0; }
.cthumb { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 12px; background: var(--yellow); font-weight: 800; color: var(--ink); }
.wl .btn.add:not(.in):not(.btn-mint) { background: var(--coral) !important; border-color: var(--coral) !important; color: #fff !important; }
.wl .btn.add:not(.in):not(.btn-mint):hover { background: #1549d6 !important; }
.pv-btn { margin-top: 10px; }
.pcard .thumb img[src*="/img/w/"], .upsell img[src*="/img/w/"] { object-position: top center; }
.gallery .main img[src*="/img/w/"] { object-fit: contain; background: #fff; }
.cat-tiles .gtile b .material-symbols-rounded { font-size: 1.5rem; }
.fsub + .fopts { margin-bottom: 8px; }

/* product page: bundle savings line */
.upsell .save { color: var(--mint, #0a7d5a); font-weight: 700; margin: 2px 0 8px; }
.upsell .btn-sm { min-height: 40px; padding: 6px 14px; font-size: .85rem; }
@media (max-width: 760px) { .chips-row .chip, .chips-row a { min-height: 40px; display: inline-flex; align-items: center; } }
/* My purchases (join.html) */
.purchases { margin-top: 18px; }
.purchases h2 { margin: 0 0 12px; }
.pur-order { border-top: 1px solid var(--hair-2, #e3e6ee); padding-top: 12px; margin-top: 12px; }
.pur-head { margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.thanks .acct-note { margin-top: 10px; }

/* sample problems on lesson / topic pages (tools/sample_problems.py) */
.sample-qs { padding-top: 0; }
.sq-list { padding-left: 1.4em; display: grid; gap: 14px; }
.sq-list li { line-height: 1.6; }
.sq-mc { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.sq-ans { margin: 14px 0 6px; }
.sq-ans summary { cursor: pointer; font-weight: 700; color: var(--coral); }
.sq-ans ol { padding-left: 1.4em; margin-top: 8px; }
.sample-qs .katex { font-size: 1.05em; }
.sample-qs svg { max-width: 100%; height: auto; }

/* Classroom tools card on the home page (2026-11-22) */
.tc-c { grid-column: 1 / -1; background: #e3ecff; }
@media (min-width: 901px) { .tc-c { grid-template-columns: 130px 1fr; } .tc-c p { max-width: 70ch; } }
.tc-c { background: #dff5ea; }
/* nine items in the nav row: keep it on one line on small laptops */
@media (min-width: 992px) and (max-width: 1279px) { .site-head .navrow .navbar-nav .nav-link { padding-left: .55rem; padding-right: .55rem; font-size: .84rem; } .site-head .navrow .navbar-nav { gap: 0; margin-left: -.55rem; } }
/* ten items since the Level Check link (2026-11-22) */
@media (min-width: 992px) and (max-width: 1100px) { .site-head .navrow .navbar-nav .nav-link { padding-left: .38rem; padding-right: .38rem; font-size: .8rem; } .site-head .navrow .nav-drop .caret { font-size: 1rem; } }
.sr:focus { position: fixed; left: 8px; top: 8px; z-index: 3000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; }
.join-next { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #e8f7ef; color: #0a5c43; line-height: 1.5; }
.join-next a { font-weight: 600; }
.free-note { margin: 10px 0 0; }
/* link from a worksheet listing to its online test (Test Center, 2026-11-22) */
.online-test { display: inline-flex; align-items: center; gap: 8px; margin: 14px 10px 0 0; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink); color: var(--ink); font-size: .92rem; text-decoration: none; }
.online-test:hover { background: var(--ink); color: #fff; }
.online-test .material-symbols-rounded { font-size: 1.15rem; }
