/* TPK Math Prep home - design from TPK Math Prep Home.html
   Site header/footer untouched. Everything scoped under #tpk-math. */

#tpk-math {
  --mp-ink: #0E1A3A;
  --mp-ink-soft: #3A4668;
  --mp-muted: #4A5675;
  --mp-line: #E3E8F3;
  --mp-line-strong: #D8DFEE;
  --mp-blue: #1F4FD1;
  --mp-blue-deep: #143A9E;
  --mp-amber: #F5A623;
  --mp-soft: #F3F6FC;
  --mp-white: #FFFFFF;
  --mp-font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --mp-font-body: "Public Sans", "Segoe UI", sans-serif;
  background: var(--mp-white);
  color: var(--mp-ink);
  font-family: var(--mp-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#tpk-math *,
#tpk-math *::before,
#tpk-math *::after {
  box-sizing: border-box;
}

#tpk-math h1,
#tpk-math h2,
#tpk-math h3 {
  font-family: var(--mp-font-display);
  font-weight: 800;
  color: var(--mp-ink);
  margin: 0;
}

#tpk-math p {
  margin: 0;
}

#tpk-math a {
  color: var(--mp-blue);
}

#tpk-math a:hover {
  color: var(--mp-blue-deep);
}

#tpk-math button {
  font-family: inherit;
}

#tpk-math .mp-draft {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--mp-muted);
  background: #FFF8E8;
  border-bottom: 1px solid #F0E0B8;
}

#tpk-math .mp-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

#tpk-math .mp-gridpaper {
  background-color: var(--mp-soft);
  background-image:
    linear-gradient(#DCE4F3 1px, transparent 1px),
    linear-gradient(90deg, #DCE4F3 1px, transparent 1px);
  background-size: 32px 32px;
}

#tpk-math .mp-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}

#tpk-math .mp-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(14, 26, 58, .10);
  color: var(--mp-ink);
}

#tpk-math .mp-rise {
  animation: mp-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}

#tpk-math .mp-rise2 {
  animation: mp-rise .7s .12s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes mp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #tpk-math .mp-rise,
  #tpk-math .mp-rise2 { animation: none; }
  #tpk-math .mp-lift { transition: none; }
}

#tpk-math .mp-kicker,
#tpk-math .mp-kicker-sm {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mp-blue);
  text-transform: none;
}

#tpk-math .mp-kicker-sm {
  letter-spacing: .06em;
  color: var(--mp-muted);
}

#tpk-math .mp-kicker-amber {
  color: var(--mp-amber);
}

#tpk-math .mp-section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

#tpk-math .mp-section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
}

#tpk-math .mp-section-head-light h2 {
  color: var(--mp-white);
}

#tpk-math .mp-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--mp-ink-soft);
}

#tpk-math .mp-band-soft {
  background: var(--mp-soft);
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
}

/* Buttons */
#tpk-math .mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

#tpk-math .mp-btn-dark {
  background: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math .mp-btn-dark:hover {
  background: #18264D;
  color: var(--mp-white);
}

#tpk-math .mp-btn-ghost {
  background: var(--mp-white);
  border: 1.5px solid var(--mp-ink);
  color: var(--mp-ink);
  padding: 0 24px;
}

#tpk-math .mp-btn-ghost:hover {
  background: var(--mp-soft);
  color: var(--mp-ink);
}

#tpk-math .mp-btn-amber {
  background: var(--mp-amber);
  color: var(--mp-ink);
  border-radius: 14px;
  min-height: 50px;
}

#tpk-math .mp-btn-amber:hover {
  background: #ffb84a;
  color: var(--mp-ink);
}

#tpk-math .mp-btn-block {
  width: 100%;
  display: flex;
}

/* Chips / squares */
#tpk-math .mp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#tpk-math .mp-chip {
  border: 1px solid var(--mp-line-strong);
  background: var(--mp-white);
  color: var(--mp-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#tpk-math .mp-chip.is-on {
  background: var(--mp-ink);
  border-color: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math .mp-grade-sq {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

#tpk-math .mp-sq {
  min-height: 40px;
  border: 1px solid var(--mp-line-strong);
  background: var(--mp-white);
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--mp-ink);
  cursor: pointer;
}

#tpk-math .mp-sq.is-on {
  background: var(--mp-ink);
  border-color: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math .mp-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--mp-soft);
  border-radius: 999px;
  padding: 6px;
}

#tpk-math .mp-seg-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-ink-soft);
  cursor: pointer;
}

#tpk-math .mp-seg-btn.is-on {
  background: var(--mp-white);
  color: var(--mp-ink);
  box-shadow: 0 1px 4px rgba(14, 26, 58, .12);
}

#tpk-math .mp-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 4px 10px;
}

#tpk-math .mp-tag-school {
  background: #EAF0FF;
  color: #143A9E;
}

#tpk-math .mp-tag-contest {
  background: #FFF1D6;
  color: #7A4A00;
}

#tpk-math .mp-tag-college {
  background: #E7E9F0;
  color: var(--mp-ink);
}

/* Hero */
#tpk-math .mp-hero-wrap {
  border-bottom: 1px solid var(--mp-line);
}

#tpk-math .mp-hero {
  padding: 72px 20px 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

#tpk-math .mp-hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#tpk-math .mp-live-pill {
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #26335A;
}

#tpk-math .mp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1F8A5B;
}

#tpk-math .mp-hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
}

#tpk-math .mp-hero-copy h1 span {
  color: var(--mp-blue);
}

#tpk-math .mp-hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--mp-ink-soft);
  max-width: 560px;
}

#tpk-math .mp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#tpk-math .mp-hero-note {
  font-size: 14px;
  color: var(--mp-muted);
}

#tpk-math .mp-pathfinder {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14, 26, 58, .12);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#tpk-math .mp-pathfinder-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

#tpk-math .mp-pathfinder-head h2 {
  font-size: 22px;
  font-weight: 700;
}

#tpk-math .mp-pathfinder-head span {
  font-size: 13px;
  color: var(--mp-muted);
}

#tpk-math .mp-pathfinder-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#tpk-math [data-mp-pf-step="1"],
#tpk-math .mp-pf-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#tpk-math .mp-pf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#tpk-math .mp-pf-contact input,
#tpk-math .mp-pf-contact select,
#tpk-math .mp-eval-form input,
#tpk-math .mp-eval-form select {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  border: 1.5px solid var(--mp-line-strong);
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  font-family: inherit;
  background: var(--mp-white);
  color: var(--mp-ink);
  width: 100%;
  margin: 0;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

#tpk-math .mp-pf-contact select,
#tpk-math .mp-eval-form select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6A8A' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

#tpk-math .mp-pf-summary {
  background: var(--mp-soft);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#tpk-math .mp-pf-summary p {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

#tpk-math .mp-pf-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--mp-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#tpk-math .mp-phone-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

#tpk-math .mp-phone-row input[readonly] {
  background: var(--mp-soft);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 520px) {
  #tpk-math .mp-pf-fields {
    grid-template-columns: 1fr;
  }
}

#tpk-math .mp-recaptcha-wrap {
  overflow-x: auto;
}

#tpk-math .mp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#tpk-math .mp-flash {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

#tpk-math .mp-flash ul {
  margin: 0;
  padding-left: 18px;
  font-weight: 500;
}

#tpk-math .mp-flash-ok {
  background: #e8f7ef;
  color: #0f5c38;
  border: 1px solid #b7e4c7;
}

#tpk-math .mp-flash-err {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f0c0c0;
}

#tpk-math .mp-rec {
  background: var(--mp-soft);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#tpk-math .mp-rec-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--mp-blue);
}

#tpk-math .mp-rec h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

#tpk-math .mp-rec p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mp-ink-soft);
}

#tpk-math .mp-rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#tpk-math .mp-rec-tags span {
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Stats */
#tpk-math .mp-stats-wrap {
  border-bottom: 1px solid var(--mp-line);
}

#tpk-math .mp-stats {
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

#tpk-math .mp-stat-val {
  display: block;
  font-family: var(--mp-font-display);
  font-size: 28px;
  font-weight: 800;
}

#tpk-math .mp-stat-label {
  font-size: 14px;
  color: var(--mp-muted);
}

/* Ways */
#tpk-math .mp-ways {
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#tpk-math .mp-way-card {
  text-decoration: none;
  color: var(--mp-ink);
  border: 1px solid var(--mp-line-strong);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--mp-white);
}

#tpk-math .mp-way-num {
  font-family: var(--mp-font-display);
  font-size: 44px;
  font-weight: 800;
}

#tpk-math .mp-way-card h3 {
  font-size: 22px;
  font-weight: 700;
}

#tpk-math .mp-way-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mp-ink-soft);
}

#tpk-math .mp-way-link {
  font-weight: 700;
  color: var(--mp-blue);
  font-size: 15px;
}

/* Who */
#tpk-math .mp-who-wrap {
  padding: 40px 20px 80px;
}

#tpk-math .mp-who {
  background: var(--mp-ink);
  color: var(--mp-white);
  border-radius: 28px;
  padding: 48px clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

#tpk-math .mp-who-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

#tpk-math .mp-who-copy h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--mp-white);
}

#tpk-math .mp-who-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: #C9D3EA;
}

#tpk-math .mp-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#tpk-math .mp-who-card {
  background: #18264D;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tpk-math .mp-who-card h3 {
  font-size: 19px;
  font-weight: 700;
}

#tpk-math .mp-who-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #E1E7F5;
}

/* Grades */
#tpk-math .mp-grades {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-grade-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

#tpk-math .mp-grade-tab {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--mp-line-strong);
  background: var(--mp-white);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  min-width: 110px;
  color: var(--mp-ink);
}

#tpk-math .mp-grade-tab.is-on {
  background: var(--mp-ink);
  border-color: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math .mp-grade-tab-stage {
  font-size: 12px;
  font-weight: 600;
  opacity: .75;
}

#tpk-math .mp-grade-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

#tpk-math .mp-grade-main {
  flex: 999 1 560px;
  min-width: 0;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#tpk-math .mp-grade-main-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

#tpk-math .mp-grade-main-head h3 {
  font-size: 34px;
}

#tpk-math .mp-grade-main-head span {
  font-size: 14px;
  font-weight: 600;
  color: var(--mp-muted);
}

#tpk-math .mp-grade-main > p {
  font-size: 17px;
  line-height: 1.55;
}

#tpk-math .mp-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

#tpk-math .mp-unit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  padding: 12px 14px;
}

#tpk-math .mp-unit > span:first-child {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #EAF0FF;
  color: var(--mp-blue);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tpk-math .mp-unit > span:last-child {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

#tpk-math .mp-hs-note {
  font-size: 14px;
  line-height: 1.55;
  background: #FFF6E5;
  border-radius: 12px;
  padding: 12px 16px;
  color: #5A3D00;
}

#tpk-math .mp-inline-link {
  font-weight: 700;
  align-self: flex-start;
  text-decoration: none;
}

#tpk-math .mp-grade-side {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#tpk-math .mp-side-card,
#tpk-math .mp-side-course {
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tpk-math .mp-side-course {
  background: var(--mp-ink);
  color: var(--mp-white);
  border: 0;
}

#tpk-math .mp-side-course h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--mp-white);
}

#tpk-math .mp-side-course p {
  font-size: 15px;
  line-height: 1.55;
  color: #C9D3EA;
}

#tpk-math .mp-exam-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#tpk-math .mp-exam-pills span {
  background: var(--mp-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

#tpk-math .mp-side-foot {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mp-muted);
}

/* Courses */
#tpk-math .mp-courses {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

#tpk-math .mp-course-card {
  text-decoration: none;
  color: var(--mp-ink);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
}

#tpk-math .mp-course-card.is-mine {
  border: 2px solid var(--mp-ink);
}

#tpk-math .mp-course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#tpk-math .mp-course-card-top > span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-muted);
}

#tpk-math .mp-course-card h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

#tpk-math .mp-course-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mp-ink-soft);
  flex: 1;
}

/* Exams */
#tpk-math .mp-exams {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#tpk-math .mp-exam-count {
  font-size: 14px;
  color: var(--mp-muted);
  margin-left: 6px;
}

#tpk-math .mp-exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

#tpk-math .mp-exam-card {
  text-decoration: none;
  color: var(--mp-ink);
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#tpk-math .mp-exam-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

#tpk-math .mp-fits {
  font-size: 12px;
  font-weight: 700;
  color: #1F6B47;
  background: #E3F5EC;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

#tpk-math .mp-exam-card h3 {
  font-size: 20px;
  font-weight: 700;
}

#tpk-math .mp-exam-grades {
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-muted);
}

#tpk-math .mp-exam-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mp-ink-soft);
}

/* Curriculum */
#tpk-math .mp-curriculum {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-curriculum-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}

#tpk-math .mp-path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

#tpk-math .mp-path-step {
  background: var(--mp-soft);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#tpk-math .mp-path-step span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .8;
  color: var(--mp-muted);
}

#tpk-math .mp-path-step strong {
  font-family: var(--mp-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

#tpk-math .mp-path-note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--mp-ink-soft);
  max-width: 820px;
}

/* How */
#tpk-math .mp-how {
  background: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math .mp-how > .mp-shell {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#tpk-math .mp-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

#tpk-math .mp-how-step {
  border-top: 3px solid;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#tpk-math .mp-how-step > span:first-child {
  font-family: var(--mp-font-display);
  font-size: 40px;
  font-weight: 800;
}

#tpk-math .mp-how-step h3 {
  font-size: 20px;
  color: var(--mp-white);
}

#tpk-math .mp-how-step p {
  font-size: 15px;
  line-height: 1.6;
  color: #C9D3EA;
}

/* Pricing */
#tpk-math .mp-pricing {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

#tpk-math .mp-price-card {
  border: 1px solid var(--mp-line-strong);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--mp-white);
}

#tpk-math .mp-price-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

#tpk-math .mp-price-card-top > span:first-child {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--mp-muted);
}

#tpk-math .mp-price-grade {
  font-size: 12px;
  font-weight: 700;
  background: var(--mp-ink);
  color: var(--mp-white);
  border-radius: 999px;
  padding: 4px 10px;
}

#tpk-math .mp-price-card h3 {
  font-size: 22px;
  font-weight: 700;
}

#tpk-math .mp-price-amt {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#tpk-math .mp-price-amt > span:first-child {
  font-family: var(--mp-font-display);
  font-size: 42px;
  font-weight: 800;
}

#tpk-math .mp-price-unit,
#tpk-math .mp-price-sub {
  font-size: 14px;
  color: var(--mp-muted);
}

#tpk-math .mp-price-card > p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mp-ink-soft);
  border-top: 1px solid var(--mp-line);
  padding-top: 12px;
}

#tpk-math .mp-price-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

#tpk-math .mp-included {
  flex: 1 1 340px;
  min-width: 0;
  background: var(--mp-soft);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tpk-math .mp-included h3,
#tpk-math .mp-compare h3 {
  font-size: 20px;
  font-weight: 700;
}

#tpk-math .mp-included-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

#tpk-math .mp-included-row svg {
  flex: none;
  margin-top: 1px;
}

#tpk-math .mp-compare {
  flex: 999 1 560px;
  min-width: 0;
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#tpk-math .mp-table-wrap {
  overflow-x: auto;
}

#tpk-math .mp-compare table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

#tpk-math .mp-compare th,
#tpk-math .mp-compare td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

#tpk-math .mp-compare thead th {
  color: var(--mp-muted);
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}

#tpk-math .mp-th-tpk {
  background: var(--mp-ink);
  color: var(--mp-white) !important;
  border-radius: 10px 10px 0 0;
}

#tpk-math .mp-compare tbody tr {
  border-top: 1px solid var(--mp-line);
}

#tpk-math .mp-compare tbody td:first-child {
  padding-left: 0;
  font-weight: 600;
}

#tpk-math .mp-td-tpk {
  background: #EEF2FB;
}

#tpk-math .mp-td-last {
  border-radius: 0 0 10px 10px;
}

/* Stories */
#tpk-math .mp-stories {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#tpk-math .mp-stories .mp-section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
}

#tpk-math .mp-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

#tpk-math .mp-story {
  margin: 0;
  background: var(--mp-white);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--mp-line-strong);
}

#tpk-math .mp-story-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

#tpk-math .mp-story blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

#tpk-math .mp-story figcaption {
  font-size: 14px;
  color: var(--mp-muted);
}

/* FAQs */
#tpk-math .mp-faqs-wrap {
  padding: 88px 20px;
}

#tpk-math .mp-faqs {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#tpk-math .mp-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--mp-line-strong);
}

#tpk-math .mp-faq {
  border-bottom: 1px solid var(--mp-line-strong);
}

#tpk-math .mp-faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  color: var(--mp-ink);
}

#tpk-math .mp-faq-btn > span:first-child {
  font-size: 18px;
  font-weight: 600;
}

#tpk-math .mp-faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--mp-muted);
}

#tpk-math .mp-faq-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mp-ink-soft);
  padding: 0 40px 22px 0;
}

/* Evaluate */
#tpk-math .mp-eval-wrap {
  border-top: 1px solid var(--mp-line);
}

#tpk-math .mp-eval {
  padding: 88px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

#tpk-math .mp-eval-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#tpk-math .mp-eval-copy h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

#tpk-math .mp-eval-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

#tpk-math .mp-eval-form {
  flex: 1 1 440px;
  min-width: 0;
  max-width: 560px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14, 26, 58, .10);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#tpk-math .mp-eval-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#tpk-math .mp-field-label {
  font-size: 14px;
  font-weight: 600;
}

#tpk-math .mp-eval-form .mp-eval-phone,
#tpk-math .mp-eval-form .mp-phone-row.mp-eval-phone {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 520px) {
  #tpk-math .mp-eval-fields {
    grid-template-columns: 1fr;
  }
}

#tpk-math .mp-eval-form .mp-btn {
  margin-top: 6px;
  border-radius: 14px;
  min-height: 54px;
}

#tpk-math .mp-eval-foot {
  font-size: 13px;
  color: var(--mp-muted);
  text-align: center;
}

@media (max-width: 720px) {
  #tpk-math .mp-hero {
    padding: 48px 20px 40px;
    gap: 28px;
  }

  #tpk-math .mp-grade-sq {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #tpk-math .mp-ways,
  #tpk-math .mp-grades,
  #tpk-math .mp-courses,
  #tpk-math .mp-exams,
  #tpk-math .mp-curriculum,
  #tpk-math .mp-pricing,
  #tpk-math .mp-stories,
  #tpk-math .mp-faqs-wrap,
  #tpk-math .mp-eval,
  #tpk-math .mp-how > .mp-shell {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  #tpk-math .mp-who {
    padding: 32px 22px;
  }
}

/* --- v2: page subnav, math animations, post-pricing sections --- */

#tpk-math .mp-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mp-line);
}

#tpk-math .mp-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

#tpk-math .mp-subnav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
  font-weight: 600;
}

#tpk-math .mp-subnav a {
  color: var(--mp-ink);
  text-decoration: none;
  padding: 10px 0;
}

#tpk-math .mp-subnav a:hover {
  color: var(--mp-blue);
}

#tpk-math .mp-subnav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--mp-amber);
  color: var(--mp-ink) !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

#tpk-math .mp-hero-wrap {
  position: relative;
  overflow: hidden;
}

#tpk-math .mp-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#tpk-math .mp-floaty {
  position: absolute;
  font-family: var(--mp-font-display);
  font-weight: 700;
  color: #BCC8E4;
  pointer-events: none;
  user-select: none;
  animation: mp-drift 14s ease-in-out infinite;
}

#tpk-math .mp-spin {
  position: absolute;
  left: 86%;
  top: 40%;
  transform-box: fill-box;
  transform-origin: center;
  animation: mp-spin 18s linear infinite;
}

@keyframes mp-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(8deg); }
}

@keyframes mp-spin {
  to { transform: rotate(360deg); }
}

#tpk-math .mp-q1 { animation: mp-q1 6s infinite; }
#tpk-math .mp-q2 { animation: mp-q2 6s infinite; }
#tpk-math .mp-q3 { animation: mp-q3 6s infinite; }
#tpk-math .mp-q4 { animation: mp-q4 6s infinite; }
@keyframes mp-q1 { 0%, 6% { opacity: .14; } 12%, 88% { opacity: 1; } 95%, 100% { opacity: .14; } }
@keyframes mp-q2 { 0%, 24% { opacity: .14; } 30%, 88% { opacity: 1; } 95%, 100% { opacity: .14; } }
@keyframes mp-q3 { 0%, 42% { opacity: .14; } 48%, 88% { opacity: 1; } 95%, 100% { opacity: .14; } }
@keyframes mp-q4 { 0%, 60% { opacity: .14; } 66%, 88% { opacity: 1; } 95%, 100% { opacity: .14; } }

#tpk-math .mp-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: mp-draw 5s ease-in-out infinite;
}
@keyframes mp-draw {
  0% { stroke-dashoffset: 420; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -420; }
}

#tpk-math .mp-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: mp-pop 5s ease-out infinite;
}
@keyframes mp-pop {
  0%, 42% { opacity: 0; transform: scale(.5); }
  52%, 85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

#tpk-math .mp-gA { animation: mp-gA 6s infinite; }
#tpk-math .mp-gB { animation: mp-gB 6s infinite; }
#tpk-math .mp-gC { animation: mp-gC 6s infinite; }
@keyframes mp-gA { 0%, 100% { opacity: .3; } 12%, 30% { opacity: 1; } }
@keyframes mp-gB { 0%, 30%, 100% { opacity: .3; } 42%, 60% { opacity: 1; } }
@keyframes mp-gC { 0%, 60%, 100% { opacity: .3; } 72%, 94% { opacity: 1; } }

#tpk-math .mp-bar-grow {
  transform-origin: left center;
  animation: mp-grow 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes mp-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  #tpk-math .mp-rise,
  #tpk-math .mp-rise2,
  #tpk-math .mp-floaty,
  #tpk-math .mp-q1,
  #tpk-math .mp-q2,
  #tpk-math .mp-q3,
  #tpk-math .mp-q4,
  #tpk-math .mp-gA,
  #tpk-math .mp-gB,
  #tpk-math .mp-gC,
  #tpk-math .mp-bar-grow,
  #tpk-math .mp-spin {
    animation: none;
    opacity: 1;
  }
  #tpk-math .mp-draw {
    animation: none;
    stroke-dashoffset: 0;
  }
  #tpk-math .mp-pop {
    animation: none;
    opacity: 1;
  }
  #tpk-math .mp-lift {
    transition: none;
  }
}

#tpk-math .mp-teach {
  padding: 0 20px 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#tpk-math .mp-teach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

#tpk-math .mp-teach-card {
  margin: 0;
  border: 1px solid var(--mp-line-strong);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--mp-white);
}

#tpk-math .mp-teach-card svg {
  width: 100%;
  height: auto;
  background: var(--mp-soft);
  border-radius: 14px;
}

#tpk-math .mp-teach-card figcaption {
  font-family: var(--mp-font-display);
  font-size: 20px;
  font-weight: 700;
}

#tpk-math .mp-tutors,
#tpk-math .mp-resources-sec {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

#tpk-math .mp-tutor-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tpk-math .mp-tutor-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

#tpk-math .mp-tutor-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

#tpk-math .mp-tutor-av.mp-tutor-av-photo {
  width: 72px;
  height: 72px;
  background: #EAF0FF;
  border: 1px solid var(--mp-line-strong);
  padding: 0;
}

#tpk-math .mp-tutor-av.mp-tutor-av-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#tpk-math .mp-tutor-av.tone-blue { background: #EAF0FF; color: #1F4FD1; }
#tpk-math .mp-tutor-av.tone-amber { background: #FFF1D6; color: #7A4A00; }
#tpk-math .mp-tutor-av.tone-green { background: #E3F5EC; color: #1F6B47; }

#tpk-math .mp-tutor-role {
  font-size: 14px;
  font-weight: 600;
  color: #1F4FD1;
}

#tpk-math .mp-tutor-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3A4668;
}

#tpk-math .mp-tutor-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

#tpk-math .mp-tutor-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}

#tpk-math .mp-tutor-step > span:first-child {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mp-ink);
  color: var(--mp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

#tpk-math .mp-report {
  padding: 88px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

#tpk-math .mp-report-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#tpk-math .mp-report-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
}

#tpk-math .mp-report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}

#tpk-math .mp-report-card {
  flex: 1 1 440px;
  min-width: 0;
  max-width: 560px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14, 26, 58, .10);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#tpk-math .mp-report-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tpk-math .mp-report-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#tpk-math .mp-report-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

#tpk-math .mp-report-track {
  height: 10px;
  background: #EEF2FB;
  border-radius: 999px;
  overflow: hidden;
}

#tpk-math .mp-report-fill {
  height: 100%;
  border-radius: 999px;
}

#tpk-math .mp-report-note {
  background: var(--mp-soft);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#tpk-math .mp-stories-sec {
  background: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math .mp-stories-sec > .mp-shell {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#tpk-math .mp-stories-sec h2 {
  color: var(--mp-white);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
}

#tpk-math .mp-stories-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#tpk-math .mp-story-card {
  flex: 999 1 560px;
  min-width: 0;
  margin: 0;
  background: #18264D;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
  color: var(--mp-white);
}

#tpk-math .mp-story-quote-mark {
  position: absolute;
  right: 28px;
  top: -10px;
  font-family: var(--mp-font-display);
  font-size: 180px;
  font-weight: 800;
  color: #24346A;
  line-height: 1;
  pointer-events: none;
}

/*
 * Dark story card quotes must stay white. Site styles.css sets
 * blockquote { color: var(--color-heading) } (near-black) which wins
 * without an explicit color here - keep this rule for every future
 * Parent Stories / mp-story-card use.
 */
#tpk-math .mp-story-card blockquote,
#tpk-math .mp-story-card blockquote[data-mp-story-quote],
#tpk-math .mp-stories-sec [data-mp-story-quote] {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mp-font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

#tpk-math .mp-story-card blockquote::before,
#tpk-math .mp-story-card blockquote::after,
#tpk-math .mp-stories-sec [data-mp-story-quote]::before,
#tpk-math .mp-stories-sec [data-mp-story-quote]::after {
  content: none;
  display: none;
}

#tpk-math .mp-story-nav-btns {
  display: flex;
  gap: 10px;
}

#tpk-math .mp-story-nav-btns button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tpk-math .mp-story-prev {
  border: 1.5px solid #3A4A78;
  background: transparent;
  color: var(--mp-white);
}

#tpk-math .mp-story-next {
  border: 0;
  background: var(--mp-amber);
  color: var(--mp-ink);
}

#tpk-math .mp-story-dots {
  display: flex;
  gap: 8px;
}

#tpk-math .mp-story-dot {
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  width: 10px;
  background: #3A4A78;
  transition: width .3s, background .3s;
}

#tpk-math .mp-story-dot.is-on {
  width: 32px;
  background: var(--mp-amber);
}

#tpk-math .mp-story-side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#tpk-math .mp-story-side-card {
  background: #18264D;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--mp-white);
  text-decoration: none;
}

#tpk-math .mp-dark-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: #E1E7F5;
  border: 1.5px solid #3A4A78;
}

#tpk-math .mp-dark-chip.is-on {
  background: var(--mp-white);
  color: var(--mp-ink);
  border-color: var(--mp-white);
}

#tpk-math .mp-check-sec {
  border-bottom: 1px solid var(--mp-line);
}

#tpk-math .mp-check {
  padding: 88px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

#tpk-math .mp-check-copy {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#tpk-math .mp-check-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
}

#tpk-math .mp-check-panel {
  flex: 1 1 440px;
  min-width: 0;
  max-width: 580px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14, 26, 58, .10);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#tpk-math .mp-check-item {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  background: var(--mp-white);
  border: 1.5px solid var(--mp-line-strong);
  text-align: left;
  color: var(--mp-ink);
  transition: background .15s, border-color .15s;
}

#tpk-math .mp-check-item.is-on {
  background: #EEF7F2;
  border-color: #1F8A5B;
}

#tpk-math .mp-check-box {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E3E8F3;
}

#tpk-math .mp-check-item.is-on .mp-check-box {
  background: #1F8A5B;
}

#tpk-math .mp-calendar {
  padding: 88px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#tpk-math .mp-cal-grid-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}

#tpk-math .mp-cal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(118px, 1fr));
  gap: 8px;
  min-width: 1100px;
}

#tpk-math .mp-cal-month {
  background: var(--mp-soft);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
}

#tpk-math .mp-cal-month > span:first-child {
  font-family: var(--mp-font-display);
  font-size: 18px;
  font-weight: 800;
}

#tpk-math .mp-cal-ev {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 10px;
  padding: 8px 10px;
}

#tpk-math .mp-cal-ev.is-fit {
  font-weight: 800;
}

#tpk-math .mp-cal-ev.cat-school { background: #EAF0FF; color: #143A9E; }
#tpk-math .mp-cal-ev.cat-contest { background: #FFF1D6; color: #7A4A00; }
#tpk-math .mp-cal-ev.cat-college { background: #E7E9F0; color: #0E1A3A; }

#tpk-math .mp-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

#tpk-math .mp-resource-card {
  text-decoration: none;
  color: var(--mp-ink);
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#tpk-math .mp-resource-card h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

#tpk-math .mp-resource-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mp-ink-soft);
  flex: 1;
}

#tpk-math .mp-puzzle {
  background: var(--mp-ink);
  color: var(--mp-white);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

#tpk-math .mp-puzzle h3 {
  color: var(--mp-white);
  font-size: 22px;
}

#tpk-math .mp-puzzle p {
  color: #C9D3EA;
  font-size: 15px;
}

#tpk-math .mp-puzzle-form {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#tpk-math .mp-puzzle-form label {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #C9D3EA;
}

#tpk-math .mp-puzzle-form input {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 400;
  color: var(--mp-ink);
  background: var(--mp-white);
}

#tpk-math .mp-puzzle-form button {
  align-self: flex-end;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--mp-amber);
  color: var(--mp-ink);
  font-weight: 700;
  cursor: pointer;
}

/* Country pathway - compact hub → country chooser / live hub */
#tpk-math .mp-countries-bar {
  border-bottom: 1px solid var(--mp-line);
  background: var(--mp-soft);
}

#tpk-math .mp-countries-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

#tpk-math .mp-countries-bar-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

#tpk-math .mp-countries-bar-label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mp-blue);
  text-transform: uppercase;
}

#tpk-math .mp-countries-bar-label strong {
  font-family: var(--mp-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--mp-ink);
}

#tpk-math .mp-country-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
}

#tpk-math a.mp-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--mp-line-strong);
  background: var(--mp-white);
  color: var(--mp-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}

#tpk-math a.mp-country-btn:hover {
  border-color: var(--mp-ink);
  color: var(--mp-ink);
}

#tpk-math a.mp-country-btn.is-live {
  background: var(--mp-ink);
  border-color: var(--mp-ink);
  color: var(--mp-white);
}

#tpk-math a.mp-country-btn.is-live:hover {
  background: #18264D;
  border-color: #18264D;
  color: var(--mp-white);
}

#tpk-math .mp-country-btn-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

#tpk-math a.mp-country-btn.is-live .mp-country-btn-code {
  color: var(--mp-amber);
  opacity: 1;
}

#tpk-math a.mp-country-btn-all {
  border-style: dashed;
  color: var(--mp-blue-deep);
}

@media (max-width: 720px) {
  #tpk-math .mp-subnav nav { gap: 4px 12px; font-size: 13px; }
  #tpk-math .mp-teach,
  #tpk-math .mp-tutors,
  #tpk-math .mp-report,
  #tpk-math .mp-check,
  #tpk-math .mp-calendar,
  #tpk-math .mp-resources-sec,
  #tpk-math .mp-stories-sec > .mp-shell {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  #tpk-math .mp-countries-bar-inner {
    padding: 16px 16px 18px;
  }
}


/* Live sessions gallery + Our classes (home) */
#tpk-math .mp-sessions {
  background: var(--mp-soft);
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
  padding: 72px 0;
}

#tpk-math .mp-sessions .mp-section-head,
#tpk-math .mp-our-classes .mp-section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

#tpk-math .mp-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

#tpk-math .mp-sessions-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(14, 26, 58, 0.06);
}

#tpk-math .mp-sessions-card img {
  width: 100%;
  height: auto;
  display: block;
}

#tpk-math .mp-our-classes {
  background: #EAF0FF;
  border-bottom: 1px solid var(--mp-line);
  padding: 72px 0;
}

#tpk-math .mp-our-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

#tpk-math .mp-our-classes-card {
  margin: 0;
  background: var(--mp-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--mp-line-strong);
}

#tpk-math .mp-our-classes-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #D8DFEE;
  background-size: cover;
  background-position: center;
}

#tpk-math .mp-our-classes-tag,
#tpk-math .mp-our-classes-dur {
  position: absolute;
  top: 14px;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  background: rgba(14, 26, 58, 0.75);
  color: #FFFFFF;
  padding: 5px 10px;
}

#tpk-math .mp-our-classes-tag {
  left: 14px;
  border-radius: 999px;
}

#tpk-math .mp-our-classes-dur {
  right: 14px;
  border-radius: 6px;
  padding: 4px 8px;
}

#tpk-math .mp-our-classes-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

#tpk-math .mp-our-classes-embed {
  position: absolute;
  inset: 0;
  background: #0B1430;
}

#tpk-math .mp-our-classes-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#tpk-math .mp-our-classes-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #3A4A78;
  background: rgba(14, 26, 58, 0.85);
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  #tpk-math .mp-sessions,
  #tpk-math .mp-our-classes {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
