:root {
  --ink: #0b0118;
  --ink-soft: #68616f;
  --paper: #fbf8ff;
  --white: #ffffff;
  --cream: #f3ebff;
  --line: #e4dcf0;
  --coral: #ff854b;
  --coral-dark: #e2642d;
  --mint: #8adfca;
  --sun: #ffb700;
  --violet: #704fe6;
  --lavender: #dec8fe;
  --blue: #88c8f3;
  --rose: #ff9587;
  --shadow-sm: 0 10px 28px rgb(11 1 24 / 7%);
  --shadow-lg: 0 28px 80px rgb(11 1 24 / 13%);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --h2-max: 2.9rem;
  --shell: min(1240px, calc(100% - 48px));
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  font-family: "Noto Sans Thai", Arial, sans-serif;
}

input,
textarea {
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Noto Sans Thai", Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, var(--h2-max));
}

h3 {
  font-size: 1.35rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 132px);
}

.section-soft {
  background: var(--paper);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask-image: var(--svg-icon-source);
  mask-image: var(--svg-icon-source);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.svg-icon-arrow-right { --svg-icon-source: url("/icons/heroicons/arrow-right.svg"); }
.svg-icon-calculator { --svg-icon-source: url("/icons/heroicons/calculator.svg"); }
.svg-icon-check { --svg-icon-source: url("/icons/heroicons/check.svg"); }
.svg-icon-chevron-down { --svg-icon-source: url("/icons/heroicons/chevron-down.svg"); }
.svg-icon-clipboard { --svg-icon-source: url("/icons/heroicons/clipboard.svg"); }
.svg-icon-document-arrow-down { --svg-icon-source: url("/icons/heroicons/document-arrow-down.svg"); }
.svg-icon-document-text { --svg-icon-source: url("/icons/heroicons/document-text.svg"); }
.svg-icon-language { --svg-icon-source: url("/icons/heroicons/language.svg"); }
.svg-icon-light-bulb { --svg-icon-source: url("/icons/heroicons/light-bulb.svg"); }
.svg-icon-play { --svg-icon-source: url("/icons/heroicons/play.svg"); }
.svg-icon-printer { --svg-icon-source: url("/icons/heroicons/printer.svg"); }
.svg-icon-shield-check { --svg-icon-source: url("/icons/heroicons/shield-check.svg"); }
.svg-icon-sparkles { --svg-icon-source: url("/icons/heroicons/sparkles.svg"); }
.svg-icon-speaker-wave { --svg-icon-source: url("/icons/heroicons/speaker-wave.svg"); }
.svg-icon-table-cells { --svg-icon-source: url("/icons/heroicons/table-cells.svg"); }
.svg-icon-x-mark { --svg-icon-source: url("/icons/heroicons/x-mark.svg"); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 248 255 / 94%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgb(112 79 230 / 10%);
  box-shadow: 0 10px 32px rgb(11 1 24 / 6%);
}

.header-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  width: 210px;
  height: auto;
}

.brand-lockup small {
  max-width: 240px;
  margin: -5px 0 0 61px;
  color: var(--ink-soft);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.35;
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 7px 5px;
  color: var(--white);
  background: var(--violet);
  border-radius: 17px;
  box-shadow: 4px 4px 0 var(--coral);
  transform: rotate(-3deg);
}

.brand-mark span {
  font-size: 13px;
  line-height: 1;
}

.brand-mark span:nth-child(2) {
  transform: translateY(-5px);
}

.brand-word {
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans Thai", Arial, sans-serif;
  font-size: 1.35rem;
  color: var(--violet);
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-word small {
  max-width: 260px;
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  font-family: "Noto Sans Thai", Arial, sans-serif;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a {
  padding: 11px 17px;
  border-radius: 999px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--violet);
  background: #eee7ff;
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--white);
  background: var(--violet);
}

.site-nav a.is-active:hover {
  color: var(--white);
  background: #5f3fd4;
}

.site-nav .language-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-inline: 17px;
  color: var(--violet);
  background: transparent;
  border: 1.5px solid var(--violet);
  box-shadow: none;
}

.site-nav .language-pill:hover {
  color: var(--white);
  background: var(--violet);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: 930px;
  overflow: hidden;
  padding-top: clamp(68px, 8vw, 112px);
  padding-bottom: clamp(80px, 9vw, 126px);
  background:
    radial-gradient(circle at 7% 17%, rgb(222 200 254 / 70%) 0 30px, transparent 31px),
    radial-gradient(circle at 89% 30%, rgb(255 183 0 / 15%) 0 88px, transparent 89px),
    #f3ebff;
  border-radius: 0;
}

.hero::after {
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  content: "";
  background: repeating-radial-gradient(circle, rgb(112 79 230 / 11%) 0 5px, transparent 6px 22px);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(44px, 7vw, 86px);
  grid-template-columns: minmax(0, 0.92fr) minmax(450px, 1.08fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 720px;
  margin-block: 22px 25px;
  color: var(--ink);
  font-size: clamp(3.2rem, 5.2vw, 4.9rem);
  font-weight: 580;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1::first-line {
  color: inherit;
}

.hero-title-accent {
  color: var(--violet);
}

.hero-lead,
.page-lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.75;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::after {
  width: 24px;
  height: 5px;
  content: "";
  background: var(--lavender);
  border-radius: 999px;
  transform: rotate(-7deg);
}

.hero .eyebrow {
  padding: 0;
  color: var(--sun);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 31px;
}

.button-ghost {
  color: var(--violet);
  background: transparent;
  border: 1.5px solid var(--violet);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 27px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--white);
  font-size: 0.7rem;
  font-style: normal;
  background: var(--violet);
  box-shadow: none;
  border-radius: 50%;
}

.trust-check .svg-icon {
  width: 13px;
  height: 13px;
}

.hero-tool {
  position: relative;
  z-index: 2;
}

.hero-bubble {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  background: var(--white);
  border: 2px solid var(--violet);
  border-radius: 999px;
  box-shadow: 5px 5px 0 rgb(112 79 230 / 14%);
}

.hero-bubble-top {
  top: -24px;
  left: 34px;
  transform: rotate(-5deg);
}

.hero-bubble-bottom {
  right: 22px;
  bottom: -18px;
  color: var(--white);
  background: var(--violet);
  transform: rotate(5deg);
}

.hero-tool::before,
.hero-tool::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
}

.hero-tool::before {
  top: -48px;
  right: -42px;
  width: 134px;
  height: 134px;
  background: var(--coral);
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  transform: rotate(8deg);
}

.hero-tool::after {
  bottom: -34px;
  left: -34px;
  width: 96px;
  height: 96px;
  background: var(--violet);
  border: 15px solid var(--lavender);
}

.number-tool {
  padding: clamp(25px, 4vw, 42px);
  background: var(--white);
  border: 1px solid rgb(112 79 230 / 12%);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: none;
}

.tool-topline,
.result-toolbar,
.style-switch,
.tool-actions,
.range-controls,
.style-picker,
.lesson-byline {
  display: flex;
  align-items: center;
}

.tool-topline {
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.live-badge i {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(99 215 177 / 20%);
  animation: pulse 1.8s ease-in-out infinite;
}

.number-input-wrap {
  position: relative;
}

.number-input {
  width: 100%;
  padding: 18px 50px 18px 19px;
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 850;
  letter-spacing: 0.02em;
  background: #faf7ff;
  border: 2px solid #ddd2ed;
  border-radius: 18px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.number-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 5px rgb(255 107 85 / 12%);
}

.number-input.is-invalid {
  border-color: #cb2d46;
}

.input-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.input-clear:hover {
  background: var(--cream);
}

.input-clear .svg-icon {
  width: 20px;
  height: 20px;
}

.style-switch {
  gap: 5px;
  width: max-content;
  padding: 4px;
  margin-top: 13px;
  background: #eee8ff;
  border-radius: 999px;
}

.style-switch button {
  padding: 6px 11px;
  font-size: 0.7rem;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.style-switch button.is-active {
  color: var(--white);
  background: var(--ink);
}

.tool-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 24px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.tool-hint .svg-icon {
  width: 16px;
  height: 16px;
  color: var(--coral-dark);
}

.tool-result {
  position: relative;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 14%, rgb(255 183 0 / 26%) 0 54px, transparent 55px),
    linear-gradient(135deg, #f3ebff, #fbf8ff 58%, #fff3ea);
  border: 1px solid rgb(112 79 230 / 14%);
  border-radius: 20px;
}

.result-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tool-result > strong {
  display: block;
  min-height: 2.4em;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.thai-reading {
  display: block;
  margin-top: 13px;
  color: var(--ink-soft);
}

.thai-reading small {
  margin-right: 8px;
  color: var(--ink);
  font-weight: 800;
}

.tool-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.audio-button,
.copy-button,
.toolbar-actions button,
.row-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border: 0;
  transition: transform 150ms ease, background-color 150ms ease;
}

.audio-button,
.copy-button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
}

.audio-button {
  color: var(--white);
  background: var(--ink);
}

.copy-button {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.audio-button .svg-icon {
  width: 18px;
  height: 18px;
  color: var(--mint);
}

.audio-button.is-speaking .svg-icon {
  color: var(--white);
  animation: icon-breathe 800ms ease-in-out infinite alternate;
}

.copy-button .svg-icon {
  width: 17px;
  height: 17px;
}

.audio-button:hover,
.copy-button:hover,
.toolbar-actions button:hover,
.row-audio:hover {
  transform: translateY(-2px);
}

.audio-bars {
  display: inline-flex;
  height: 14px;
  align-items: center;
  gap: 2px;
}

.audio-bars i {
  width: 2px;
  height: 7px;
  background: var(--mint);
}

.audio-bars i:nth-child(2) {
  height: 13px;
}

.privacy-line {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-align: center;
}

.privacy-line span {
  color: var(--mint);
}

.privacy-line .svg-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}

.hero-orbit {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-weight: 900;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.orbit-one {
  top: 20%;
  left: 1.5%;
  width: 64px;
  height: 64px;
  background: var(--coral);
  border-radius: 22px 22px 22px 7px;
  transform: rotate(-10deg);
}

.orbit-two {
  right: 2%;
  bottom: 19%;
  width: 54px;
  height: 54px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  transform: rotate(12deg);
}

.learning-paths {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
  margin-top: clamp(58px, 7vw, 92px);
  grid-template-columns: repeat(3, 1fr);
}

.learning-path {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 28px;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.learning-path::after {
  position: absolute;
  right: -30px;
  bottom: -43px;
  width: 104px;
  height: 104px;
  content: "";
  border: 14px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
}

.learning-path:hover {
  box-shadow: 0 18px 35px rgb(11 1 24 / 10%);
  transform: translateY(-6px);
}

.learning-path-yellow {
  color: var(--white);
  background: var(--coral);
}

.learning-path-mint {
  color: var(--white);
  background: #c5a2f5;
}

.learning-path-orange {
  color: var(--ink);
  background: var(--sun);
}

.learning-path-icon {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--ink);
  background: rgb(255 255 255 / 70%);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.learning-path-icon .svg-icon {
  width: 34px;
  height: 34px;
}

.learning-path strong,
.learning-path small {
  display: block;
}

.learning-path strong {
  max-width: 78%;
  font-size: 1.28rem;
  line-height: 1.35;
}

.learning-path small {
  max-width: 72%;
  margin-top: 3px;
  opacity: 0.76;
}

.learning-path-arrow {
  position: absolute;
  bottom: 29px;
  left: 28px;
  z-index: 2;
  width: 20px;
  height: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 52px;
}

.section-heading h2 {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--ink);
  text-wrap: balance;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.category-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  padding: 29px;
  color: var(--card-ink);
  background: var(--card-accent);
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.category-card::before {
  position: absolute;
  top: 22px;
  left: 92px;
  width: 54px;
  height: 18px;
  content: "";
  background-image: radial-gradient(circle, currentColor 2px, transparent 2.5px);
  background-size: 11px 11px;
  opacity: 0.34;
  transform: rotate(-8deg);
}

.category-card::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  content: "";
  background: rgb(255 255 255 / 28%);
  border-radius: 48% 52% 34% 66%;
  opacity: 0.22;
  transform: rotate(22deg);
}

.category-card:hover {
  box-shadow: 0 20px 42px rgb(11 1 24 / 11%);
  transform: translateY(-7px);
}

.accent-coral { --card-accent: var(--coral); --card-ink: var(--white); }
.accent-mint { --card-accent: var(--lavender); --card-ink: var(--ink); }
.accent-sun { --card-accent: var(--sun); --card-ink: var(--ink); }
.accent-violet { --card-accent: var(--violet); --card-ink: var(--white); }
.accent-blue { --card-accent: var(--blue); --card-ink: var(--ink); }
.accent-rose { --card-accent: var(--rose); --card-ink: var(--ink); }

.category-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-weight: 900;
  color: var(--ink);
  background: rgb(255 255 255 / 72%);
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.category-range {
  position: absolute;
  top: 29px;
  right: 29px;
  padding: 5px 9px;
  color: inherit;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  background: rgb(255 255 255 / 72%);
  border-radius: 999px;
}

.category-card h3 {
  margin-bottom: 10px;
}

.category-card p {
  max-width: 88%;
  color: inherit;
  font-size: 0.9rem;
  opacity: 0.78;
}

.card-link {
  position: absolute;
  bottom: 27px;
  left: 29px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgb(255 255 255 / 22%);
  border-radius: 999px;
}

.card-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 150ms ease;
}

.category-card:hover .card-link span,
.lesson-card a:hover span {
  transform: translateX(5px);
}

.table-showcase {
  display: grid;
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
  grid-template-columns: 0.7fr 1.3fr;
}

.table-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgb(255 183 0 / 22%) 0 92px, transparent 93px),
    radial-gradient(circle at 96% 88%, rgb(255 133 75 / 17%) 0 118px, transparent 119px),
    var(--cream);
  border-radius: 0;
}

.table-section::before {
  position: absolute;
  top: 34px;
  right: 9%;
  width: 84px;
  height: 34px;
  content: "";
  background-image: radial-gradient(circle, var(--violet) 2.5px, transparent 3px);
  background-size: 14px 14px;
  opacity: 0.24;
  transform: rotate(10deg);
}

.showcase-copy h2 {
  margin-block: 15px 24px;
  color: var(--ink);
  text-wrap: balance;
}

.showcase-copy p {
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.84rem;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 0 12px 24px rgb(11 1 24 / 10%);
  transform: translateY(-3px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-coral {
  color: var(--white);
  background: var(--violet);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.result-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgb(112 79 230 / 13%);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.result-panel-large {
  box-shadow: var(--shadow-sm);
}

.table-jump {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 22px;
  background: #f7f1ff;
  border-bottom: 1px solid var(--line);
}

.table-jump label {
  flex: 0 0 auto;
  padding-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 900;
}

.table-jump > div {
  display: flex;
  gap: 8px;
}

.table-jump input {
  width: min(220px, 42vw);
  min-height: 44px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.table-jump .field-error {
  align-self: center;
  margin: 0;
}

.table-expand {
  display: none;
  margin: 16px auto 20px;
}

.featured-range-panel:not(.is-table-expanded) .number-table tbody tr:nth-child(n + 21) {
  display: none;
}

.featured-range-panel .table-expand {
  display: inline-flex;
}

.result-toolbar {
  min-height: 78px;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px 15px 23px;
  border-bottom: 1px solid var(--line);
}

.result-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.result-toolbar strong {
  font-size: 0.86rem;
}

.result-toolbar > div:first-child span {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.toolbar-actions button {
  --toolbar-bg: #eee8ff;
  --toolbar-bg-hover: #e5dcff;
  --toolbar-text: var(--ink);
  --toolbar-border: #d3c7ff;
  --toolbar-accent: var(--violet);
  --toolbar-icon-ink: var(--white);
  --toolbar-shadow: #c4b6f5;
  min-height: 44px;
  padding: 7px 12px 8px 8px;
  color: var(--toolbar-text);
  font-size: 0.7rem;
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 15px;
  box-shadow: 0 3px 0 var(--toolbar-shadow);
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.toolbar-actions button:hover {
  background: var(--toolbar-bg-hover);
  box-shadow: 0 5px 0 var(--toolbar-shadow);
  transform: translateY(-2px) rotate(-0.5deg);
}

.toolbar-actions button:active {
  box-shadow: 0 1px 0 var(--toolbar-shadow);
  transform: translateY(2px);
}

.toolbar-actions button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.toolbar-actions [data-play-all] {
  --toolbar-bg: #704fe6;
  --toolbar-bg-hover: #6543da;
  --toolbar-text: var(--white);
  --toolbar-border: #5b38cf;
  --toolbar-accent: #ffcf3d;
  --toolbar-icon-ink: #25103b;
  --toolbar-shadow: #4f30ba;
}

.toolbar-actions [data-export="print"] {
  --toolbar-bg: #fff0e7;
  --toolbar-bg-hover: #ffe4d5;
  --toolbar-text: #642d16;
  --toolbar-border: #ffc7a8;
  --toolbar-accent: #ff854b;
  --toolbar-shadow: #f7b18c;
}

.toolbar-actions [data-export="excel"] {
  --toolbar-bg: #e3f9f1;
  --toolbar-bg-hover: #d5f5e9;
  --toolbar-text: #15503f;
  --toolbar-border: #a9e6d1;
  --toolbar-accent: #35b98b;
  --toolbar-shadow: #91d8c0;
}

.toolbar-actions [data-export="pdf"] {
  --toolbar-bg: #ffe9e8;
  --toolbar-bg-hover: #ffdcda;
  --toolbar-text: #69231f;
  --toolbar-border: #ffbbb7;
  --toolbar-accent: #f06f67;
  --toolbar-shadow: #efa29e;
}

.toolbar-actions [data-export="text"] {
  --toolbar-bg: #e8f6ff;
  --toolbar-bg-hover: #d9f0ff;
  --toolbar-text: #164b6c;
  --toolbar-border: #b3def8;
  --toolbar-accent: #55afe8;
  --toolbar-shadow: #9acfeb;
}

.toolbar-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--toolbar-icon-ink);
  background: var(--toolbar-accent);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 9px;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 9%);
  transform: rotate(-3deg);
}

.toolbar-actions button:nth-child(even) .toolbar-icon {
  transform: rotate(3deg);
}

.toolbar-actions .toolbar-icon .svg-icon {
  width: 15px;
  height: 15px;
}

.toolbar-label {
  white-space: nowrap;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.number-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.number-table th {
  padding: 14px 20px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f7f1ff;
}

.number-table td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}

.number-table tbody tr {
  transition: background-color 130ms ease;
}

.number-table tbody tr:hover {
  background: #f6f2ff;
}

.number-table tbody tr:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #6953d3;
  outline-offset: -3px;
  background: #fff6e8;
}

.number-chip {
  display: inline-grid;
  min-width: 45px;
  height: 39px;
  place-items: center;
  padding-inline: 8px;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-weight: 900;
  background: #fff0ae;
  border: 1px solid #f0d66c;
  border-radius: 12px 12px 12px 5px;
}

.word-cell {
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-weight: 800;
}

.thai-cell {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.meaning-cell {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.row-audio {
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: #d9f9f0;
  border: 1px solid #afe8d9;
  border-radius: 50%;
}

.row-audio .svg-icon {
  width: 17px;
  height: 17px;
}

.mobile-cell-label,
.mobile-audio-label {
  display: none;
}

.row-audio.is-speaking .svg-icon-play {
  --svg-icon-source: url("/icons/heroicons/speaker-wave.svg");
  animation: icon-breathe 800ms ease-in-out infinite alternate;
}

.row-audio.is-speaking,
.audio-button.is-speaking {
  color: var(--white);
  background: var(--coral);
}

.lessons-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 100%, rgb(112 79 230 / 9%) 0 170px, transparent 171px),
    var(--paper);
}

.lesson-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.lesson-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  color: var(--white);
  background: var(--coral);
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  grid-template-columns: auto 1fr;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lesson-card:hover {
  box-shadow: 0 18px 35px rgb(11 1 24 / 10%);
  transform: translateY(-5px);
}

.lesson-card:nth-child(2) {
  color: var(--ink);
  background: var(--lavender);
}

.lesson-card:nth-child(3) {
  color: var(--ink);
  background: var(--sun);
}

.lesson-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-weight: 900;
  background: var(--coral);
  border-radius: 17px;
  transform: rotate(-4deg);
}

.lesson-card:nth-child(2) .lesson-icon {
  color: var(--ink);
  background: var(--mint);
  transform: rotate(4deg);
}

.lesson-card:nth-child(3) .lesson-icon {
  background: var(--violet);
}

.lesson-meta {
  color: inherit;
  opacity: 0.74;
  font-size: 0.7rem;
  font-weight: 900;
}

.lesson-card h3 {
  margin-block: 7px 10px;
}

.lesson-card p {
  color: inherit;
  font-size: 0.86rem;
  opacity: 0.78;
}

.lesson-card a {
  font-size: 0.77rem;
  font-weight: 900;
}

.lesson-card a span {
  display: inline-block;
  transition: transform 150ms ease;
}

.site-footer {
  position: relative;
  padding-block: 92px 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 14%, rgb(112 79 230 / 24%) 0 210px, transparent 211px),
    radial-gradient(circle at 95% 84%, rgb(255 133 75 / 13%) 0 250px, transparent 251px),
    var(--ink);
}

.footer-number-cloud span {
  position: absolute;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
  border-radius: 24px;
  box-shadow: 8px 8px 0 rgb(11 1 24 / 24%);
  transform: rotate(-8deg);
}

.footer-number-cloud span:nth-child(1) {
  top: 34px;
  left: max(20px, calc(50% - 690px));
  background: var(--sun);
}

.footer-number-cloud span:nth-child(2) {
  right: max(28px, calc(50% - 660px));
  bottom: 180px;
  color: var(--white);
  background: var(--coral);
  transform: rotate(11deg);
}

.footer-number-cloud span:nth-child(3) {
  top: 54px;
  right: 7%;
  width: 46px;
  height: 46px;
  color: var(--ink);
  font-size: 1rem;
  background: var(--mint);
  border-radius: 50%;
  transform: rotate(8deg);
}

.footer-main {
  position: relative;
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  padding: clamp(38px, 5vw, 66px);
  background:
    linear-gradient(140deg, rgb(255 255 255 / 12%), transparent 46%),
    var(--violet);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 38px;
  box-shadow: 0 30px 90px rgb(0 0 0 / 28%);
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
}

.footer-main::after {
  position: absolute;
  right: 42%;
  bottom: 16%;
  width: 22px;
  height: 22px;
  background: var(--sun);
  border-radius: 7px;
  content: "";
  opacity: 0.9;
  transform: rotate(16deg);
}

.footer-intro {
  position: relative;
  z-index: 1;
}

.brand-footer {
  padding: 7px 13px 7px 7px;
  background: var(--white);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 22px;
  box-shadow: 5px 5px 0 rgb(11 1 24 / 18%);
}

.brand-footer .brand-logo {
  width: 220px;
}

.footer-eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 46px;
  color: var(--sun);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-eyebrow .svg-icon {
  width: 18px;
  height: 18px;
}

.footer-intro h2 {
  max-width: 550px;
  margin: 15px 0 18px;
  font-size: clamp(2rem, 3.4vw, var(--h2-max));
  line-height: 1.14;
}

.footer-intro p {
  max-width: 520px;
  margin-bottom: 30px;
  color: #efeaff;
}

.footer-cta {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 5px 5px 0 var(--coral);
}

.footer-cta:hover {
  box-shadow: 2px 2px 0 var(--coral);
  transform: translate(3px, 3px);
}

.footer-navigation {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-link-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
}

.footer-link-group > strong {
  margin-bottom: 8px;
  color: var(--sun);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.footer-link-group a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 13px;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.footer-link-group a span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  font-size: 0.66rem;
  background: var(--lavender);
  border-radius: 10px;
}

.footer-link-group a:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateX(4px);
}

.footer-promise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 30px;
  margin-top: 20px;
  background: #18092c;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
}

.footer-promise-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.footer-promise-copy > span:last-child {
  display: flex;
  flex-direction: column;
}

.footer-promise-copy strong {
  color: var(--white);
  font-size: 0.86rem;
}

.footer-promise-copy small {
  color: #cfc5df;
  font-size: 0.72rem;
}

.footer-note-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--mint);
}

.footer-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-benefits li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: #eee8f7;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgb(255 255 255 / 7%);
  border-radius: 999px;
}

.footer-benefits .svg-icon {
  width: 16px;
  height: 16px;
  color: var(--sun);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  margin-top: 26px;
  color: #a99db9;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.7rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 24px 46px;
  background:
    radial-gradient(circle at 10% 12%, rgb(222 200 254 / 58%) 0 58px, transparent 59px),
    var(--cream);
  border-radius: 0;
}

.page-hero::after {
  position: absolute;
  right: -70px;
  bottom: -125px;
  width: 300px;
  height: 300px;
  content: "";
  background: var(--hero-accent);
  border-radius: 45% 55% 39% 61%;
  opacity: 0.27;
  transform: rotate(16deg);
}

.page-hero-coral { --hero-accent: var(--coral); }
.page-hero-mint { --hero-accent: var(--mint); }
.page-hero-sun { --hero-accent: var(--sun); }
.page-hero-violet { --hero-accent: var(--violet); }
.page-hero-blue { --hero-accent: var(--blue); }
.page-hero-rose { --hero-accent: var(--rose); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.breadcrumbs a:hover {
  color: var(--coral-dark);
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 34px;
  grid-template-columns: 1fr auto;
}

.page-hero h1,
.lesson-hero h1 {
  max-width: 790px;
  margin-block: 18px 22px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
}

.page-hero h1 {
  max-width: 760px;
  margin-block: 10px 13px;
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
  line-height: 1.1;
}

.page-hero .eyebrow {
  font-size: 0.7rem;
}

.page-hero .page-lead {
  margin-bottom: 0;
  font-size: clamp(0.96rem, 1.2vw, 1.12rem);
  line-height: 1.6;
}

.page-number-art {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.16rem);
  font-weight: 900;
  background: rgb(255 255 255 / 60%);
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.page-number-art span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-number-art i {
  color: var(--coral-dark);
  font-style: normal;
}

.page-number-art i .svg-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.category-main-section {
  padding-top: clamp(40px, 4.5vw, 68px);
}

.content-grid {
  display: grid;
  align-items: start;
  gap: 44px;
  grid-template-columns: 290px minmax(0, 1fr);
}

.content-grid > *,
.category-content,
.result-panel,
.table-scroll {
  min-width: 0;
}

.category-sidebar {
  position: sticky;
  top: 112px;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(150deg, rgb(112 79 230 / 6%), transparent 48%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.category-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 5px 17px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.category-sidebar-heading > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.category-sidebar-heading strong {
  font-size: 0.87rem;
  line-height: 1.35;
}

.category-sidebar-heading small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.category-sidebar-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 950;
  background: var(--sun);
  border-radius: 15px;
  box-shadow: 3px 3px 0 var(--coral);
  transform: rotate(-3deg);
}

.category-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.category-sidebar a {
  --sidebar-accent: var(--violet);

  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  color: var(--ink-soft);
  background: rgb(251 248 255 / 75%);
  border: 1px solid transparent;
  border-radius: 16px;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.category-sidebar a:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--sidebar-accent);
  transform: translateX(3px);
}

.category-sidebar a.is-active {
  color: var(--white);
  background:
    linear-gradient(120deg, rgb(255 255 255 / 7%), transparent 52%),
    var(--ink);
  border-color: var(--sidebar-accent);
  box-shadow: 0 10px 24px rgb(11 1 24 / 14%);
}

.category-sidebar-index {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--sidebar-accent) 28%, white);
  border: 1px solid color-mix(in srgb, var(--sidebar-accent) 52%, white);
  border-radius: 12px;
}

.category-sidebar a.is-active .category-sidebar-index {
  background: var(--sidebar-accent);
  border-color: var(--sidebar-accent);
}

.category-sidebar-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.category-sidebar-name {
  overflow: hidden;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-sidebar-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  line-height: 1.3;
}

.category-sidebar a.is-active .category-sidebar-copy small {
  color: #cec5dc;
}

.category-sidebar-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: var(--sidebar-accent);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.category-sidebar-arrow .svg-icon {
  width: 15px;
  height: 15px;
}

.category-sidebar a:hover .category-sidebar-arrow,
.category-sidebar a.is-active .category-sidebar-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-accent-coral { --sidebar-accent: var(--coral) !important; }
.sidebar-accent-mint { --sidebar-accent: var(--mint) !important; }
.sidebar-accent-sun { --sidebar-accent: var(--sun) !important; }
.sidebar-accent-violet { --sidebar-accent: var(--violet) !important; }
.sidebar-accent-blue { --sidebar-accent: var(--blue) !important; }
.sidebar-accent-rose { --sidebar-accent: var(--rose) !important; }

.learning-note {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 23px;
  margin-bottom: 25px;
  background: #edfff8;
  border: 1px solid rgb(99 215 177 / 35%);
  border-radius: 18px;
}

.learning-note p {
  margin: 0;
  color: #34564d;
}

.learning-note h2 {
  margin: 2px 0 8px;
  color: #24473e;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.answer-kicker {
  color: #2e7664;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-icon {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
}

.note-icon .svg-icon {
  width: 18px;
  height: 18px;
}

.range-controls {
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.range-controls form {
  flex: 1;
}

.range-controls label,
.style-picker > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  font-weight: 900;
}

.range-input-group {
  display: flex;
  gap: 8px;
}

.range-input-group input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
}

.range-input-group input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgb(255 107 85 / 10%);
}

.range-controls form > span {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.field-error {
  margin: 7px 0 0;
  color: #b3223e;
  font-size: 0.75rem;
}

.one-to-hundred-section {
  padding-top: 0;
}

.one-to-hundred-heading {
  max-width: 860px;
  margin-bottom: 35px;
}

.one-to-hundred-heading h2 {
  margin-block: 13px 17px;
  font-size: clamp(2.15rem, 4.4vw, var(--h2-max));
  text-wrap: balance;
}

.one-to-hundred-heading p {
  max-width: 740px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.one-to-hundred-workspace {
  display: grid;
  align-items: stretch;
  gap: 22px;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
}

.number-pattern-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.number-pattern-grid article {
  position: relative;
  min-height: 230px;
  padding: 26px;
  background: #fff0e7;
  border: 1px solid #ffcdb3;
  border-radius: 23px;
}

.number-pattern-grid article:nth-child(2) {
  background: #fff5ca;
  border-color: #efd98d;
}

.number-pattern-grid article:nth-child(3) {
  background: #e5f9f2;
  border-color: #afe4d2;
}

.number-pattern-grid article:nth-child(4) {
  background: #eee8ff;
  border-color: #d2c6fa;
}

.number-pattern-index {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 950;
  background: var(--coral);
  border-radius: 11px;
  box-shadow: 0 4px 0 #efa994;
  transform: rotate(-4deg);
}

.number-pattern-grid article:nth-child(2) .number-pattern-index {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 4px 0 #ddc365;
  transform: rotate(4deg);
}

.number-pattern-grid article:nth-child(3) .number-pattern-index {
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 4px 0 #99d6c5;
}

.number-pattern-grid article:nth-child(4) .number-pattern-index {
  background: var(--violet);
  box-shadow: 0 4px 0 #b4a5eb;
  transform: rotate(4deg);
}

.number-pattern-range {
  position: absolute;
  top: 27px;
  right: 25px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 950;
}

.number-pattern-grid h3 {
  margin-bottom: 9px;
  font-size: 1.25rem;
}

.number-pattern-grid p {
  min-height: 48px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.number-pattern-grid button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(11 1 24 / 10%);
  border-radius: 999px;
}

.number-pattern-grid button:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.number-quiz-card {
  min-height: 474px;
  padding: clamp(26px, 3vw, 38px);
  color: var(--white);
  background:
    radial-gradient(circle at 95% 8%, rgb(255 207 61 / 96%) 0 58px, transparent 59px),
    var(--violet);
  border-radius: 27px;
  box-shadow: 0 18px 45px rgb(74 48 185 / 20%);
}

.number-quiz-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.number-quiz-intro .eyebrow {
  padding: 0;
  color: #dcd3ff;
  background: transparent;
  border: 0;
}

.number-quiz-intro h2 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.number-quiz-icon {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border: 3px solid rgb(255 255 255 / 78%);
  border-radius: 14px;
  transform: rotate(-5deg);
}

.number-quiz-icon .svg-icon {
  width: 22px;
  height: 22px;
}

.number-quiz-progress {
  color: #dcd3ff;
  font-size: 0.76rem;
  font-weight: 800;
}

.number-quiz-progress strong {
  color: var(--white);
}

.number-quiz-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 18px;
}

.number-quiz-prompt > strong {
  overflow-wrap: anywhere;
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.number-quiz-prompt button {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid rgb(255 255 255 / 62%);
  border-radius: 15px;
}

.number-quiz-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.number-quiz-option {
  min-height: 56px;
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 950;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 4px 0 #cfc3f7;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.number-quiz-option:hover:not(:disabled) {
  box-shadow: 0 6px 0 #cfc3f7;
  transform: translateY(-2px);
}

.number-quiz-option.is-correct {
  background: #d8f8ed;
  border-color: var(--mint);
  box-shadow: 0 4px 0 #91d7c4;
}

.number-quiz-option.is-wrong {
  background: #ffe3df;
  border-color: var(--coral);
  box-shadow: 0 4px 0 #eca398;
}

.number-quiz-feedback {
  min-height: 26px;
  margin: 16px 0 0;
  color: #f1edff;
  font-size: 0.78rem;
  font-weight: 850;
}

.number-quiz-feedback.is-correct {
  color: #aaf0dc;
}

.number-quiz-feedback.is-wrong {
  color: #ffd2cb;
}

.number-quiz-next {
  width: 100%;
  margin-top: 8px;
  color: var(--ink);
  background: var(--sun);
}

.number-quiz-next[hidden] {
  display: none;
}

.number-quiz-summary {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.number-quiz-summary[hidden] {
  display: none;
}

.number-quiz-summary > span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--ink);
  font-size: 2.2rem;
  background: var(--sun);
  border: 6px solid var(--white);
  border-radius: 24px;
  transform: rotate(-5deg);
}

.number-quiz-summary h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.8rem;
}

.number-quiz-summary p {
  margin: 0;
  color: #e6e0ff;
}

.one-to-hundred-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(255 183 0 / 17%) 0 85px, transparent 86px),
    var(--paper);
}

.number-answer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.number-answer-grid article {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 12px 30px rgb(11 1 24 / 5%);
}

.number-answer-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 25px;
  place-items: center;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 950;
  background: var(--violet);
  border-radius: 12px;
}

.number-answer-grid article:nth-child(2) > span {
  color: var(--ink);
  background: var(--sun);
}

.number-answer-grid article:nth-child(3) > span {
  color: var(--ink);
  background: var(--mint);
}

.number-answer-grid h3 {
  margin-bottom: 13px;
  font-size: 1.28rem;
}

.number-answer-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.8;
}

.ordinal-hero {
  background:
    radial-gradient(circle at 10% 20%, rgb(255 183 0 / 22%) 0 92px, transparent 93px),
    radial-gradient(circle at 91% 83%, rgb(125 91 238 / 14%) 0 155px, transparent 156px),
    var(--sun-soft);
}

.ordinal-hero h1 {
  max-width: 880px;
}

.ordinal-number-art {
  min-width: min(100%, 350px);
}

.ordinal-learning-note {
  border-color: rgb(255 183 0 / 38%);
  background: linear-gradient(135deg, #fffdf5, #fff5d7);
}

.ordinal-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.ordinal-use-grid article {
  display: grid;
  min-height: 138px;
  align-content: start;
  gap: 5px;
  padding: 17px;
  border: 1px solid #ece5fa;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 9px 25px rgb(45 25 81 / 6%);
}

.ordinal-use-grid article > span {
  display: grid;
  width: fit-content;
  min-width: 46px;
  min-height: 38px;
  margin-bottom: 5px;
  padding-inline: 10px;
  place-items: center;
  border-radius: 12px;
  background: var(--sun-soft);
  color: #7b5100;
  font-weight: 800;
}

.ordinal-use-grid article:nth-child(2) > span {
  background: var(--coral-soft);
  color: #a34432;
}

.ordinal-use-grid article:nth-child(3) > span {
  background: var(--mint-soft);
  color: #256f58;
}

.ordinal-use-grid article:nth-child(4) > span {
  background: var(--violet-soft);
  color: var(--violet-dark);
}

.ordinal-use-grid strong {
  line-height: 1.35;
}

.ordinal-use-grid small {
  color: var(--muted);
}

.ordinal-chip {
  min-width: 65px;
  background: var(--sun-soft);
  color: #704b00;
}

.ordinal-practice-section {
  padding-top: 8px;
  background:
    radial-gradient(circle at 5% 15%, rgb(132 210 188 / 17%) 0 100px, transparent 101px),
    linear-gradient(180deg, var(--white), #fbf8ff);
}

.ordinal-pattern-grid article:nth-child(1) {
  background: #fff1dc;
}

.ordinal-pattern-grid article:nth-child(2) {
  background: #e8f9f3;
}

.ordinal-pattern-grid article:nth-child(3) {
  background: #ffe7e2;
}

.ordinal-pattern-grid article:nth-child(4) {
  background: #eee8ff;
}

.ordinal-quiz-card {
  background:
    radial-gradient(circle at 96% 8%, #ffcc42 0 78px, transparent 79px),
    linear-gradient(145deg, #6542d9, #825cf0);
}

.ordinal-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(255 183 0 / 18%) 0 85px, transparent 86px),
    #fffaf0;
}

.ordinal-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ordinal-next-links .button {
  gap: 9px;
}

.dates-hero {
  background:
    radial-gradient(circle at 9% 18%, rgb(255 127 80 / 18%) 0 92px, transparent 93px),
    radial-gradient(circle at 92% 82%, rgb(255 204 66 / 27%) 0 155px, transparent 156px),
    #fff3ef;
}

.dates-number-art {
  min-width: min(100%, 330px);
}

.dates-learning-note {
  border-color: rgb(255 127 80 / 28%);
  background: linear-gradient(135deg, #fff9f7, #ffece6);
}

.date-lab {
  position: relative;
  overflow: hidden;
  margin: 20px 0 24px;
  padding: clamp(24px, 3.4vw, 38px);
  color: var(--white);
  border-radius: 30px;
  background:
    radial-gradient(circle at 96% 10%, #ffcc42 0 92px, transparent 93px),
    linear-gradient(145deg, #201031, #44205f);
  box-shadow: 0 20px 50px rgb(29 12 51 / 18%);
}

.date-lab-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px;
}

.date-lab-heading .eyebrow {
  padding: 0;
  color: #ffd86c;
}

.date-lab-heading h2 {
  margin: 5px 0 0;
  color: var(--white);
}

.date-lab-icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--ink);
  font-weight: 950;
  border: 3px solid var(--white);
  border-radius: 18px;
  background: var(--coral);
  box-shadow: 0 6px 0 rgb(0 0 0 / 15%);
  transform: rotate(-4deg);
}

.date-lab-controls {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 16px;
}

.date-lab-controls label,
.date-style-picker {
  display: grid;
  gap: 9px;
}

.date-lab-controls label > span,
.date-style-picker > span {
  color: #e7dff0;
  font-size: 0.78rem;
  font-weight: 800;
}

.date-lab input[type="date"] {
  width: 100%;
  min-height: 54px;
  padding-inline: 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--white);
}

.date-lab input[type="date"]:focus {
  border-color: var(--sun);
  outline: 3px solid rgb(255 204 66 / 23%);
}

.date-style-picker > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: rgb(255 255 255 / 12%);
}

.date-style-picker button {
  min-height: 44px;
  color: #e9e0f1;
  font: inherit;
  font-weight: 850;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.date-style-picker button.is-active {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 5px 0 rgb(0 0 0 / 13%);
}

.date-lab-results {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
  margin-top: 18px;
}

.date-lab-results article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  background: rgb(255 255 255 / 9%);
}

.date-lab-results span {
  color: #cfc2dc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-lab-results strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.45;
}

.date-lab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
}

.date-listen-button {
  gap: 8px;
  color: var(--ink);
  background: var(--sun);
}

.date-lab-footer small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8cde2;
}

.date-lab-footer .svg-icon {
  flex: 0 0 auto;
}

.month-table-heading {
  padding: 8px 26px 18px;
}

.month-table-heading h2 {
  margin: 7px 0 0;
}

.month-chip {
  min-width: 45px;
  background: var(--coral-soft);
  color: #963b2a;
}

.month-short-cell {
  font-weight: 850;
}

.date-practice-section {
  padding-top: 8px;
  background:
    radial-gradient(circle at 5% 15%, rgb(255 204 66 / 18%) 0 100px, transparent 101px),
    linear-gradient(180deg, var(--white), #fff9f4);
}

.date-pattern-grid article:nth-child(1) {
  background: #ffe7e2;
}

.date-pattern-grid article:nth-child(2) {
  background: #fff1d8;
}

.date-pattern-grid article:nth-child(3) {
  background: #e8f9f3;
}

.date-pattern-grid article:nth-child(4) {
  background: #eee8ff;
}

.month-quiz-card {
  background:
    radial-gradient(circle at 96% 8%, #84d2bc 0 78px, transparent 79px),
    linear-gradient(145deg, #ef6849, #ff8a60);
}

.month-quiz-card .number-quiz-intro .eyebrow,
.month-quiz-card .number-quiz-progress {
  color: #fff1ec;
}

.month-quiz-options .number-quiz-option {
  padding-inline: 8px;
  font-size: 0.86rem;
}

.date-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(255 127 80 / 15%) 0 85px, transparent 86px),
    #fff8f4;
}

.time-hero {
  background:
    radial-gradient(circle at 9% 18%, rgb(102 180 255 / 22%) 0 92px, transparent 93px),
    radial-gradient(circle at 92% 82%, rgb(132 210 188 / 26%) 0 155px, transparent 156px),
    #eef7ff;
}

.time-number-art {
  min-width: min(100%, 330px);
}

.time-learning-note {
  border-color: rgb(102 180 255 / 30%);
  background: linear-gradient(135deg, #f8fcff, #e9f5ff);
}

.time-lab {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(235px, 0.72fr) minmax(0, 1.28fr);
  margin: 20px 0 24px;
  color: var(--white);
  border-radius: 30px;
  background: linear-gradient(145deg, #151f4a, #283d85);
  box-shadow: 0 20px 50px rgb(18 32 84 / 20%);
}

.time-clock-panel {
  display: grid;
  min-height: 410px;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 14%, rgb(255 204 66 / 34%) 0 72px, transparent 73px),
    linear-gradient(160deg, #c8f1e5, #8ed9c5);
}

.learning-clock {
  width: min(100%, 245px);
  overflow: visible;
  filter: drop-shadow(0 16px 18px rgb(20 48 71 / 17%));
}

.clock-face {
  fill: #fff;
  stroke: #14204d;
  stroke-width: 7;
}

.learning-clock text {
  fill: #14204d;
  font-size: 17px;
  font-weight: 900;
}

.clock-center {
  fill: var(--coral);
}

.clock-hand {
  stroke-linecap: round;
}

.clock-hour-hand {
  stroke: #14204d;
  stroke-width: 9;
}

.clock-minute-hand {
  stroke: var(--violet);
  stroke-width: 6;
}

.time-lab-main {
  padding: clamp(25px, 3.5vw, 42px);
}

.time-lab-icon {
  width: 66px;
  font-size: 0.8rem;
  background: var(--blue);
}

.time-lab-controls {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(180px, 0.8fr) minmax(230px, 1.2fr);
  gap: 14px;
}

.time-lab-controls label,
.time-style-picker {
  display: grid;
  gap: 9px;
}

.time-lab-controls label > span,
.time-style-picker > span {
  color: #dce5ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.time-lab input[type="time"] {
  width: 100%;
  min-height: 54px;
  padding-inline: 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--white);
}

.time-lab input[type="time"]:focus {
  border-color: var(--sun);
  outline: 3px solid rgb(255 204 66 / 23%);
}

.time-style-picker > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: rgb(255 255 255 / 12%);
}

.time-style-picker button {
  min-height: 44px;
  color: #e4eaff;
  font: inherit;
  font-weight: 850;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.time-style-picker button.is-active {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 5px 0 rgb(0 0 0 / 13%);
}

.time-lab-result {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  background: rgb(255 255 255 / 9%);
}

.time-lab-result span {
  color: #bfcaf0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-lab-result strong {
  color: var(--white);
  font-size: 1.16rem;
}

.time-lab-result .time-phrase {
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #ffd86c;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.time-listen-button {
  gap: 8px;
  color: var(--ink);
  background: var(--sun);
}

.time-chip {
  min-width: 66px;
  background: #e5f4ff;
  color: #275b84;
}

.time-past-cell {
  font-weight: 800;
}

.time-practice-section {
  padding-top: 8px;
  background:
    radial-gradient(circle at 5% 15%, rgb(102 180 255 / 16%) 0 100px, transparent 101px),
    linear-gradient(180deg, var(--white), #f5fbff);
}

.time-pattern-grid article:nth-child(1) { background: #e5f4ff; }
.time-pattern-grid article:nth-child(2) { background: #e8f9f3; }
.time-pattern-grid article:nth-child(3) { background: #fff1d8; }
.time-pattern-grid article:nth-child(4) { background: #eee8ff; }

.time-quiz-card {
  background:
    radial-gradient(circle at 96% 8%, #ffcc42 0 78px, transparent 79px),
    linear-gradient(145deg, #2f68ba, #518cdc);
}

.time-quiz-options .number-quiz-option {
  padding-inline: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.time-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(102 180 255 / 16%) 0 85px, transparent 86px),
    #f7fbff;
}

.fraction-hero {
  background:
    radial-gradient(circle at 10% 18%, rgb(132 210 188 / 26%) 0 96px, transparent 97px),
    radial-gradient(circle at 91% 84%, rgb(255 204 66 / 24%) 0 150px, transparent 151px),
    #effbf7;
}

.fraction-number-art {
  min-width: min(100%, 430px);
}

.fraction-number-art > span:last-child {
  font-size: clamp(1rem, 2.2vw, 1.65rem);
}

.fraction-learning-note {
  border-color: rgb(132 210 188 / 38%);
  background: linear-gradient(135deg, #fbfffd, #e8f9f3);
}

.fraction-lab {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  margin: 20px 0 24px;
  border-radius: 30px;
  background: linear-gradient(145deg, #182552, #31498f);
  box-shadow: 0 20px 50px rgb(18 39 82 / 20%);
}

.fraction-visual-panel {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 34px;
  background:
    radial-gradient(circle at 15% 14%, rgb(255 204 66 / 38%) 0 72px, transparent 73px),
    linear-gradient(145deg, #c9f1e5, #82d4bd);
}

.fraction-visual-panel small {
  color: #184f46;
  font-weight: 800;
  text-align: center;
}

.fraction-stack {
  display: grid;
  width: 104px;
  justify-items: center;
  gap: 5px;
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 2.8rem;
  line-height: 1;
}

.fraction-stack span {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--ink);
}

.fraction-pieces {
  display: grid;
  width: min(100%, 285px);
  grid-template-columns: repeat(var(--fraction-parts), minmax(8px, 1fr));
  gap: 6px;
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

.fraction-pieces span {
  min-height: 70px;
  border: 2px solid rgb(20 32 77 / 16%);
  border-radius: 9px;
  background: var(--white);
}

.fraction-pieces span.is-filled {
  border-color: #5b42cf;
  background: linear-gradient(180deg, #876cf1, #6449da);
  box-shadow: inset 0 -5px 0 rgb(38 19 113 / 18%);
}

.fraction-lab-main {
  padding: clamp(25px, 3.5vw, 42px);
}

.fraction-lab-icon {
  width: 66px;
  font-size: 0.9rem;
  background: var(--mint);
}

.fraction-lab-controls {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(130px, 1fr) 36px minmax(130px, 1fr);
  gap: 12px;
}

.fraction-lab-controls label {
  display: grid;
  gap: 9px;
}

.fraction-lab-controls label > span {
  color: #dce5ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.fraction-lab input[type="number"] {
  width: 100%;
  min-height: 56px;
  padding-inline: 16px;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 850;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--white);
}

.fraction-lab input[type="number"]:focus {
  border-color: var(--sun);
  outline: 3px solid rgb(255 204 66 / 23%);
}

.fraction-control-line {
  height: 5px;
  margin-bottom: 25px;
  border-radius: 999px;
  background: var(--sun);
}

.fraction-lab-result {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 20px;
  background: rgb(255 255 255 / 9%);
}

.fraction-lab-result span {
  color: #bfcaf0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fraction-lab-result > strong:first-of-type {
  color: var(--white);
  font-size: 1.18rem;
}

.fraction-lab-result .fraction-phrase {
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #ffd86c;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.fraction-simple-result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  color: #dff8ef;
  border-radius: 15px;
  background: rgb(132 210 188 / 15%);
}

.fraction-simple-result[hidden] {
  display: none;
}

.fraction-simple-result strong {
  color: var(--sun);
  font-size: 1.2rem;
}

.fraction-simple-result small {
  color: #dff8ef;
}

.fraction-listen-button {
  gap: 8px;
  color: var(--ink);
  background: var(--sun);
}

.fraction-chip {
  min-width: 66px;
  color: #315d53;
  background: #e1f8f1;
}

.fraction-practice-section {
  padding-top: 8px;
  background:
    radial-gradient(circle at 5% 15%, rgb(132 210 188 / 17%) 0 100px, transparent 101px),
    linear-gradient(180deg, var(--white), #f5fcf9);
}

.fraction-pattern-grid article:nth-child(1) { background: #e5f4ff; }
.fraction-pattern-grid article:nth-child(2) { background: #e8f9f3; }
.fraction-pattern-grid article:nth-child(3) { background: #fff1d8; }
.fraction-pattern-grid article:nth-child(4) { background: #eee8ff; }

.fraction-quiz-card {
  background:
    radial-gradient(circle at 96% 8%, #ffcc42 0 78px, transparent 79px),
    linear-gradient(145deg, #15947b, #49b99f);
}

.fraction-quiz-card .number-quiz-intro .eyebrow,
.fraction-quiz-card .number-quiz-progress {
  color: #e5fff8;
}

.fraction-quiz-prompt > strong {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.fraction-quiz-options .number-quiz-option {
  padding-inline: 8px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.fraction-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(132 210 188 / 17%) 0 85px, transparent 86px),
    #f7fcfa;
}

.decimal-hero {
  background:
    radial-gradient(circle at 9% 20%, rgb(255 127 80 / 20%) 0 94px, transparent 95px),
    radial-gradient(circle at 92% 82%, rgb(102 180 255 / 20%) 0 150px, transparent 151px),
    #fff5f1;
}

.decimal-number-art {
  min-width: min(100%, 470px);
}

.decimal-number-art > span:last-child {
  font-size: clamp(0.95rem, 2vw, 1.5rem);
}

.decimal-learning-note {
  border-color: rgb(255 127 80 / 30%);
  background: linear-gradient(135deg, #fffdfc, #ffede7);
}

.decimal-lab {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  margin: 20px 0 24px;
  border-radius: 30px;
  background: linear-gradient(145deg, #2c1744, #56306e);
  box-shadow: 0 20px 50px rgb(46 20 70 / 20%);
}

.decimal-visual-panel {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 24px 20px;
  background:
    radial-gradient(circle at 15% 14%, rgb(255 204 66 / 42%) 0 72px, transparent 73px),
    linear-gradient(145deg, #ffd6ca, #ff9c7e);
}

.decimal-place-train {
  display: grid;
  width: 100%;
  align-items: stretch;
  grid-template-columns: minmax(70px, 0.85fr) 24px minmax(0, 2fr);
  gap: 7px;
  padding: 8px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 9px 0 rgb(20 32 77 / 12%);
}

.decimal-whole-cell,
.decimal-place-cell {
  display: grid;
  min-width: 0;
  min-height: 82px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 2px solid rgb(20 32 77 / 12%);
  border-radius: 13px;
  background: var(--white);
}

.decimal-whole-cell {
  background: #e6f4ff;
}

.decimal-whole-cell strong,
.decimal-place-cell strong {
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.decimal-whole-cell small,
.decimal-place-cell small {
  overflow-wrap: anywhere;
  color: #5e6170;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.decimal-point-cell {
  display: grid;
  place-items: center;
  color: #b43932;
  font-family: "Google Sans", Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
}

.decimal-place-list {
  display: grid;
  min-width: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  gap: 5px;
}

.decimal-place-cell:nth-child(1) { background: #e8f9f3; }
.decimal-place-cell:nth-child(2) { background: #fff1d8; }
.decimal-place-cell:nth-child(3) { background: #eee8ff; }
.decimal-place-cell:nth-child(4) { background: #e5f4ff; }

.decimal-visual-tip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #733327;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.decimal-lab-main {
  display: grid;
  align-content: center;
  padding: clamp(22px, 2.6vw, 30px);
}

.decimal-lab-main .date-lab-heading {
  gap: 12px;
  margin-bottom: 16px;
}

.decimal-lab-main .date-lab-heading h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.decimal-lab-icon {
  width: 60px;
  font-size: 0.7rem;
  background: var(--coral);
}

.decimal-input-label {
  display: grid;
  gap: 6px;
}

.decimal-input-label > span {
  color: #f0e1f4;
  font-size: 0.78rem;
  font-weight: 800;
}

.decimal-input-label > small {
  color: #cdbbd3;
}

.decimal-lab input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding-inline: 17px;
  color: var(--ink);
  font: inherit;
  font-size: 1.22rem;
  font-weight: 850;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--white);
}

.decimal-lab input[type="text"]:focus {
  border-color: var(--sun);
  outline: 3px solid rgb(255 204 66 / 23%);
}

.decimal-lab-result {
  display: grid;
  grid-template-columns: minmax(72px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 5px 12px;
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 20px;
  background: rgb(255 255 255 / 9%);
}

.decimal-lab-result span {
  color: #d0bdd8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decimal-lab-result > strong:first-of-type {
  color: var(--white);
  font-size: 1.18rem;
}

.decimal-lab-result .decimal-phrase {
  overflow-wrap: anywhere;
  margin-top: 0;
  color: #ffd86c;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.35;
}

.decimal-lab-main .date-lab-footer {
  margin-top: 12px;
}

.decimal-listen-button {
  gap: 8px;
  color: var(--ink);
  background: var(--sun);
}

.decimal-chip {
  min-width: 72px;
  color: #8a3d32;
  background: #ffebe5;
}

.decimal-practice-section {
  padding-top: 8px;
  background:
    radial-gradient(circle at 5% 15%, rgb(255 127 80 / 15%) 0 100px, transparent 101px),
    linear-gradient(180deg, var(--white), #fff9f6);
}

.decimal-pattern-grid article:nth-child(1) { background: #e5f4ff; }
.decimal-pattern-grid article:nth-child(2) { background: #fff1d8; }
.decimal-pattern-grid article:nth-child(3) { background: #e8f9f3; }
.decimal-pattern-grid article:nth-child(4) { background: #ffe7e2; }

.decimal-quiz-card {
  background:
    radial-gradient(circle at 96% 8%, #84d2bc 0 78px, transparent 79px),
    linear-gradient(145deg, #ef6849, #ff8a60);
}

.decimal-quiz-card .number-quiz-intro .eyebrow,
.decimal-quiz-card .number-quiz-progress {
  color: #fff1ec;
}

.decimal-quiz-prompt > strong {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.decimal-quiz-options .number-quiz-option {
  padding-inline: 8px;
  font-size: 0.76rem;
  line-height: 1.25;
}

.decimal-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(255 127 80 / 15%) 0 85px, transparent 86px),
    #fff9f6;
}

.percentage-hero {
  background:
    radial-gradient(circle at 9% 20%, rgb(255 204 66 / 30%) 0 96px, transparent 97px),
    radial-gradient(circle at 92% 82%, rgb(132 210 188 / 25%) 0 150px, transparent 151px),
    #fff9e8;
}

.percentage-number-art {
  min-width: min(100%, 500px);
}

.percentage-number-art > span:last-child {
  font-size: clamp(0.92rem, 2vw, 1.42rem);
}

.percentage-learning-note {
  border-color: rgb(255 190 24 / 34%);
  background: linear-gradient(135deg, #fffef8, #fff5cf);
}

.percentage-lab {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  margin: 20px 0 24px;
  border-radius: 30px;
  background: linear-gradient(145deg, #112f38, #165a5e);
  box-shadow: 0 20px 50px rgb(17 47 56 / 20%);
}

.percentage-visual-panel {
  display: grid;
  min-height: 490px;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 28px 22px;
  background:
    radial-gradient(circle at 88% 12%, rgb(255 204 66 / 58%) 0 68px, transparent 69px),
    linear-gradient(145deg, #bcebdd, #6ecdb2);
}

.percentage-visual-panel > small {
  color: #164a44;
  font-weight: 850;
}

.percentage-ring {
  display: grid;
  width: min(100%, 190px);
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid rgb(20 32 77 / 10%);
  border-radius: 50%;
  background: conic-gradient(var(--violet) 0 var(--percentage-angle), rgb(255 255 255 / 84%) var(--percentage-angle) 360deg);
  box-shadow: 0 10px 0 rgb(20 32 77 / 11%), 0 22px 34px rgb(20 32 77 / 13%);
}

.percentage-ring::before {
  content: "";
  width: 70%;
  aspect-ratio: 1;
  grid-area: 1 / 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgb(20 32 77 / 7%);
}

.percentage-ring > span {
  display: grid;
  z-index: 1;
  grid-area: 1 / 1;
  gap: 3px;
  color: var(--ink);
  text-align: center;
}

.percentage-ring strong {
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1;
}

.percentage-ring small {
  color: #5e6170;
  font-size: 0.68rem;
  font-weight: 850;
}

.percentage-grid {
  display: grid;
  width: min(100%, 230px);
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 8px 0 rgb(20 32 77 / 10%);
}

.percentage-grid > span {
  aspect-ratio: 1;
  border: 1px solid rgb(20 32 77 / 10%);
  border-radius: 3px;
  background: var(--white);
}

.percentage-grid > span.is-filled {
  border-color: rgb(112 79 230 / 24%);
  background: var(--violet);
}

.percentage-grid > span.is-partial {
  border-color: rgb(112 79 230 / 24%);
  background: linear-gradient(90deg, var(--violet) 0 var(--percentage-cell-fill), var(--white) var(--percentage-cell-fill) 100%);
}

.percentage-lab-main {
  padding: clamp(25px, 3.5vw, 42px);
}

.percentage-lab-icon {
  width: 70px;
  font-size: 0.78rem;
  background: var(--sun);
}

.percentage-input-label,
.percentage-slider-label {
  display: grid;
  gap: 9px;
}

.percentage-input-label {
  margin-top: 20px;
}

.percentage-slider-label {
  margin-top: 15px;
}

.percentage-input-label > span:first-child,
.percentage-slider-label > span {
  color: #d8f6ee;
  font-size: 0.78rem;
  font-weight: 800;
}

.percentage-input-wrap {
  position: relative;
  display: block;
}

.percentage-input-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 17px;
  color: var(--ink);
  font: inherit;
  font-size: 1.22rem;
  font-weight: 850;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--white);
}

.percentage-input-wrap input:focus {
  border-color: var(--sun);
  outline: 3px solid rgb(255 204 66 / 23%);
}

.percentage-input-wrap b {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--violet);
  font-size: 1.28rem;
  transform: translateY(-50%);
}

.percentage-slider-label input {
  width: 100%;
  min-height: 30px;
  accent-color: var(--sun);
  cursor: pointer;
}

.percentage-lab-result {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 20px;
  background: rgb(255 255 255 / 9%);
}

.percentage-lab-result span {
  color: #c8eee5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.percentage-lab-result > strong:first-of-type {
  color: var(--white);
  font-size: 1.18rem;
}

.percentage-lab-result .percentage-phrase {
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #ffda67;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.35;
}

.percentage-listen-button {
  gap: 8px;
  color: var(--ink);
  background: var(--sun);
}

.percentage-chip {
  min-width: 76px;
  color: #4f318d;
  background: #eee8ff;
}

.percentage-practice-section {
  padding-top: 8px;
  background:
    radial-gradient(circle at 5% 15%, rgb(255 204 66 / 20%) 0 100px, transparent 101px),
    linear-gradient(180deg, var(--white), #fffbee);
}

.percentage-pattern-grid article:nth-child(1) { background: #fff1d8; }
.percentage-pattern-grid article:nth-child(2) { background: #e8f9f3; }
.percentage-pattern-grid article:nth-child(3) { background: #eee8ff; }
.percentage-pattern-grid article:nth-child(4) { background: #e5f4ff; }

.percentage-quiz-card {
  background:
    radial-gradient(circle at 96% 8%, #ffcc42 0 78px, transparent 79px),
    linear-gradient(145deg, #6544d7, #8c70ef);
}

.percentage-quiz-card .number-quiz-intro .eyebrow,
.percentage-quiz-card .number-quiz-progress {
  color: #efeaff;
}

.percentage-quiz-prompt > strong {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.percentage-quiz-options .number-quiz-option {
  padding-inline: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.percentage-answers {
  background:
    radial-gradient(circle at 92% 18%, rgb(255 204 66 / 22%) 0 85px, transparent 86px),
    #fffcf2;
}

.methodology-section {
  padding-top: 0;
}

.methodology-card {
  display: grid;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(26px, 4vw, 46px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
}

.methodology-card h2 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.methodology-card p {
  margin: 0;
  color: #d7dae2;
}

.methodology-card a {
  width: fit-content;
  color: var(--mint);
  font-weight: 800;
  grid-column: 2;
}

.methodology-card a:hover {
  color: var(--white);
}

.style-picker {
  min-width: 270px;
  align-items: stretch;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgb(112 79 230 / 14%);
  border-radius: 20px;
}

.style-picker > span {
  display: flex;
  width: auto;
  align-items: center;
  gap: 7px;
  padding-inline: 5px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.2;
}

.style-picker > span::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  content: "";
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(255 183 0 / 14%);
}

.style-options {
  display: grid;
  gap: 4px;
  padding: 4px;
  background: #eee7ff;
  border-radius: 999px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-options a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  color: var(--ink-soft);
  font-family: "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.style-options a:hover {
  color: var(--violet);
  background: rgb(255 255 255 / 72%);
}

.style-options a.is-active {
  color: var(--white);
  background: var(--violet);
  box-shadow: 0 7px 16px rgb(112 79 230 / 22%);
}

.style-options a.is-active:hover {
  color: var(--white);
  background: #5f3fd4;
  transform: translateY(-1px);
}

.empty-state {
  padding: 55px 30px;
  color: var(--ink-soft);
  text-align: center;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.callout h2 {
  margin-block: 12px 15px;
  font-size: clamp(2rem, 4vw, var(--h2-max));
}

.callout p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
}

.callout-dark p {
  color: #bcc2cf;
}

.lesson-hero {
  position: relative;
  padding-block: 72px 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgb(222 200 254 / 55%) 0 34px, transparent 35px),
    var(--paper);
}

.lesson-hero::after {
  position: absolute;
  right: -8%;
  bottom: -115px;
  left: -8%;
  height: 245px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(80% 180% at 15% 120%, transparent 67%, var(--coral) 67.5% 68.2%, transparent 68.7%),
    radial-gradient(82% 190% at 23% 125%, transparent 72%, var(--sun) 72.5% 73.2%, transparent 73.7%),
    radial-gradient(88% 205% at 11% 128%, transparent 78%, var(--violet) 78.5% 79.2%, transparent 79.7%);
  opacity: 0.96;
}

.lesson-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.lesson-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5vw, 4.7rem);
  font-weight: 540;
  line-height: 1.12;
}

.lesson-byline {
  gap: 11px;
  margin-top: 32px;
}

.author-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  background: var(--violet);
  border-radius: 50%;
}

.lesson-byline > span:last-child {
  display: flex;
  flex-direction: column;
}

.lesson-byline small {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.lesson-hero-card {
  position: relative;
  display: grid;
  width: min(390px, 100%);
  height: 340px;
  place-items: center;
  margin-inline: auto;
  background:
    radial-gradient(circle at 68% 28%, rgb(255 255 255 / 25%) 0 38px, transparent 39px),
    var(--lavender);
  border: 0;
  border-radius: 46% 54% 42% 58% / 42% 43% 57% 58%;
  box-shadow: -18px 16px 0 var(--violet);
  transform: rotate(2deg);
}

.lesson-hero-card span {
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 5rem;
  font-weight: 950;
}

.lesson-hero-card i,
.lesson-hero-card b {
  position: absolute;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-style: normal;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.lesson-hero-card i {
  top: -18px;
  left: -18px;
  color: var(--white);
  background: var(--coral);
}

.lesson-hero-card b {
  right: -20px;
  bottom: 22px;
  background: var(--sun);
}

.article-layout {
  display: grid;
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
  grid-template-columns: 250px minmax(0, 800px);
  justify-content: center;
}

.article-aside {
  position: sticky;
  top: 115px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--cream);
  border-radius: 20px;
}

.article-aside strong {
  margin-bottom: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.article-aside a {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  border-radius: 999px;
}

.article-aside a:hover {
  color: var(--white);
  background: var(--violet);
}

.article-body section {
  margin-bottom: 80px;
  scroll-margin-top: 120px;
}

.chapter-number {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sun);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
}

.article-body h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, var(--h2-max));
  font-weight: 560;
}

.article-intro {
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.9;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  margin-top: 30px;
  background: var(--cream);
  border: 1px solid rgb(112 79 230 / 12%);
  border-radius: 20px;
}

.rule-card p {
  margin: 0;
}

.practice-card {
  padding: clamp(28px, 5vw, 55px);
  background:
    radial-gradient(circle at 94% 8%, rgb(255 183 0 / 32%) 0 58px, transparent 59px),
    var(--lavender);
  border-radius: var(--radius-md);
}

.practice-card p {
  color: var(--ink-soft);
}

.about-hero {
  padding-block: 68px 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgb(112 79 230 / 13%) 0 145px, transparent 146px),
    linear-gradient(155deg, var(--paper), var(--cream));
}

.about-grid {
  display: grid;
  align-items: center;
  gap: 62px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.7fr);
}

.about-grid h1 {
  max-width: 900px;
  margin-block: 18px 24px;
  font-size: clamp(2.9rem, 5vw, 4.9rem);
  text-wrap: balance;
}

.about-hero-copy .hero-lead {
  max-width: 780px;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 30px;
}

.about-text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--violet);
  font-size: 0.84rem;
  font-weight: 900;
}

.about-text-link .svg-icon {
  width: 16px;
  height: 16px;
}

.about-learning-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 27px 0 0;
  list-style: none;
}

.about-learning-loop li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 7px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(112 79 230 / 10%);
  border-radius: 999px;
}

.about-learning-loop li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--white);
  font-size: 0.66rem;
  background: var(--violet);
  border-radius: 50%;
}

.about-learning-loop li:nth-child(2) span {
  color: var(--ink);
  background: var(--sun);
}

.about-learning-loop li:nth-child(3) span {
  color: var(--ink);
  background: var(--mint);
}

.about-learning-loop li:nth-child(4) span {
  background: var(--coral);
}

.about-art {
  position: relative;
  min-height: 370px;
}

.about-art span {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: 4.5rem;
  font-weight: 950;
  border: 10px solid var(--white);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.art-one {
  top: 25px;
  left: 25px;
  width: 150px;
  height: 150px;
  background: var(--coral);
  transform: rotate(-9deg);
}

.art-two {
  top: 110px;
  right: 20px;
  width: 165px;
  height: 165px;
  color: var(--ink) !important;
  background: var(--mint);
  transform: rotate(8deg);
}

.art-three {
  bottom: 5px;
  left: 80px;
  width: 130px;
  height: 130px;
  background: var(--violet);
  transform: rotate(4deg);
}

.about-art i {
  position: absolute;
  top: 0;
  right: 30px;
  padding: 8px 18px;
  font-style: normal;
  font-weight: 900;
  background: var(--sun);
  border-radius: 999px;
  transform: rotate(8deg);
}

.about-purpose-section {
  scroll-margin-top: 90px;
}

.about-section-heading {
  max-width: 840px;
  margin-bottom: 36px;
}

.about-section-heading h2 {
  margin-block: 14px 18px;
  font-size: clamp(2.2rem, 4.5vw, var(--h2-max));
  text-wrap: balance;
}

.about-section-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.85;
}

.about-section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.about-section-heading-centered p {
  margin-inline: auto;
}

.about-purpose-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-purpose-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 30px;
}

.about-purpose-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 170px;
  height: 170px;
  background: rgb(255 255 255 / 30%);
  border-radius: 50%;
  content: "";
}

.about-vision-card {
  color: var(--white);
  background: var(--violet);
}

.about-intention-card {
  color: var(--ink);
  background: #ffe58c;
}

.about-card-icon,
.about-benefit-icon,
.about-promise-icon {
  display: grid;
  place-items: center;
}

.about-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 34px;
  color: var(--ink);
  background: var(--sun);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 18px;
  box-shadow: 0 6px 0 rgb(0 0 0 / 10%);
  transform: rotate(-4deg);
}

.about-intention-card .about-card-icon {
  color: var(--white);
  background: var(--coral);
  transform: rotate(4deg);
}

.about-card-icon .svg-icon {
  width: 28px;
  height: 28px;
}

.about-card-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.about-vision-card .about-card-kicker {
  color: #d7cbff;
}

.about-purpose-card h3 {
  max-width: 620px;
  margin-bottom: 17px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.25;
  text-wrap: balance;
}

.about-purpose-card p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.85;
}

.about-vision-card p {
  color: #eee9ff;
}

.about-benefits-section {
  background:
    radial-gradient(circle at 8% 18%, rgb(121 216 191 / 20%) 0 95px, transparent 96px),
    var(--paper);
}

.about-benefits-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-benefits-grid article {
  position: relative;
  min-height: 335px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgb(112 79 230 / 11%);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgb(11 1 24 / 5%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.about-benefits-grid article:hover {
  box-shadow: 0 20px 42px rgb(11 1 24 / 9%);
  transform: translateY(-5px);
}

.about-benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  color: var(--white);
  background: var(--violet);
  border-radius: 15px;
  box-shadow: 0 5px 0 #c7b9f8;
  transform: rotate(-4deg);
}

.about-benefits-grid article:nth-child(2) .about-benefit-icon {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 5px 0 #ead079;
  transform: rotate(4deg);
}

.about-benefits-grid article:nth-child(3) .about-benefit-icon {
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 5px 0 #a8dfd0;
}

.about-benefits-grid article:nth-child(4) .about-benefit-icon {
  background: var(--coral);
  box-shadow: 0 5px 0 #efaa9f;
  transform: rotate(4deg);
}

.about-benefit-icon .svg-icon {
  width: 23px;
  height: 23px;
}

.about-benefit-number {
  position: absolute;
  top: 30px;
  right: 27px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 950;
}

.about-benefits-grid h3 {
  margin-bottom: 13px;
  font-size: 1.35rem;
}

.about-benefits-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.8;
}

.about-answer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-answer-grid article {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.about-answer-grid article > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 950;
  background: var(--violet);
  border-radius: 12px;
}

.about-answer-grid article:nth-child(2) > span {
  color: var(--ink);
  background: var(--sun);
}

.about-answer-grid article:nth-child(3) > span {
  color: var(--ink);
  background: var(--mint);
}

.about-answer-grid h3 {
  margin-bottom: 13px;
  font-size: 1.32rem;
}

.about-answer-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.about-promise-section {
  padding-top: 0;
}

.about-promise {
  display: grid;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 5vw, 50px);
  background:
    radial-gradient(circle at 95% 10%, rgb(255 107 85 / 22%) 0 65px, transparent 66px),
    #eee8ff;
  border: 1px solid rgb(112 79 230 / 12%);
  border-radius: 30px;
  grid-template-columns: auto minmax(0, 1fr);
}

.about-promise-icon {
  width: 78px;
  height: 78px;
  color: var(--ink);
  background: var(--mint);
  border: 7px solid var(--white);
  border-radius: 24px;
  box-shadow: 0 7px 0 #b0dfd2;
  transform: rotate(-5deg);
}

.about-promise-icon .svg-icon {
  width: 34px;
  height: 34px;
}

.about-promise h2 {
  margin-block: 12px 14px;
  font-size: clamp(1.8rem, 3.4vw, var(--h2-max));
}

.about-promise p {
  max-width: 900px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.error-page {
  position: relative;
  display: grid;
  min-height: 70vh;
  overflow: hidden;
  place-items: center;
  padding-block: 80px;
  text-align: center;
}

.error-number {
  position: absolute;
  color: rgb(255 107 85 / 9%);
  font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
  font-size: min(40vw, 32rem);
  font-weight: 950;
  line-height: 1;
}

.error-content {
  position: relative;
  z-index: 2;
}

.error-content h1 {
  margin-block: 18px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.error-content p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.reveal {
  animation: rise-in 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay {
  animation-delay: 120ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgb(99 215 177 / 9%);
  }
}

@keyframes icon-breathe {
  to {
    transform: scale(1.13);
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #6953d3;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .learning-paths {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-path:last-child {
    grid-column: 1 / -1;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-tool {
    max-width: 650px;
  }

  .category-grid,
  .lesson-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-purpose-grid {
    grid-template-columns: 1fr;
  }

  .about-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .one-to-hundred-workspace {
    grid-template-columns: 1fr;
  }

  .number-quiz-card {
    min-height: 0;
  }

  .table-showcase,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-art {
    width: min(100%, 520px);
  }

  .showcase-copy {
    max-width: 650px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-sidebar {
    position: static;
    padding: 16px;
  }

  .category-sidebar nav {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--lavender) transparent;
    scrollbar-width: thin;
  }

  .category-sidebar a {
    width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .lesson-hero-grid {
    grid-template-columns: 1fr 320px;
  }

  .lesson-hero-card {
    width: 300px;
    height: 270px;
  }

  .article-layout {
    gap: 40px;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-intro {
    max-width: 720px;
  }

  .footer-main::after {
    right: 8%;
    bottom: 48%;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-word small {
    display: none;
  }

  .brand-lockup small {
    display: none;
  }

  .brand-logo {
    width: 184px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 3px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 13px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .language-pill {
    justify-content: center;
    margin: 5px 0 0;
  }

  .hero {
    min-height: auto;
    padding-block: 70px;
    border-radius: 0;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    flex: 1 1 180px;
  }

  .hero-bubble {
    font-size: 0.7rem;
  }

  .hero-bubble-top {
    top: -28px;
    right: 12px;
  }

  .hero-bubble-bottom {
    right: 14px;
    bottom: -28px;
  }

  .hero-tool::before {
    right: -15px;
  }

  .number-tool {
    transform: none;
  }

  .learning-paths {
    gap: 12px;
    margin-top: 50px;
    grid-template-columns: 1fr;
  }

  .learning-path:last-child {
    grid-column: auto;
  }

  .learning-path {
    min-height: 176px;
    padding: 22px;
  }

  .learning-path-icon {
    width: 64px;
    height: 64px;
  }

  .learning-path-arrow {
    bottom: 24px;
    left: 22px;
  }

  .section-heading,
  .callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .category-grid,
  .lesson-grid,
  .values-grid,
  .about-benefits-grid,
  .about-answer-grid {
    grid-template-columns: 1fr;
  }

  .number-pattern-grid,
  .number-answer-grid {
    grid-template-columns: 1fr;
  }

  .one-to-hundred-heading h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .number-pattern-grid article {
    min-height: 0;
  }

  .number-quiz-card {
    padding: 24px;
    border-radius: 23px;
  }

  .number-quiz-intro {
    align-items: center;
  }

  .number-quiz-options {
    gap: 9px;
  }

  .about-hero {
    padding-block: 52px 68px;
  }

  .about-grid {
    gap: 34px;
  }

  .about-grid h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
  }

  .about-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .about-hero-actions .button,
  .about-text-link {
    width: 100%;
    justify-content: center;
  }

  .about-learning-loop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-art {
    min-height: 280px;
  }

  .about-art span {
    font-size: 3.15rem;
    border-width: 7px;
    border-radius: 25px;
  }

  .art-one {
    top: 28px;
    left: 10px;
    width: 112px;
    height: 112px;
  }

  .art-two {
    top: 82px;
    right: 5px;
    width: 125px;
    height: 125px;
  }

  .art-three {
    bottom: 5px;
    left: 72px;
    width: 102px;
    height: 102px;
  }

  .about-art i {
    right: 8px;
    font-size: 0.78rem;
  }

  .about-section-heading {
    margin-bottom: 28px;
  }

  .about-section-heading h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .about-purpose-card {
    min-height: 0;
    padding: 28px;
    border-radius: 24px;
  }

  .about-purpose-card h3 {
    font-size: 1.75rem;
  }

  .about-benefits-grid article {
    min-height: 0;
  }

  .about-section-heading-centered {
    text-align: left;
  }

  .about-promise {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .about-promise-icon {
    width: 66px;
    height: 66px;
  }

  .table-showcase {
    gap: 38px;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .toolbar-actions button {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding-right: 13px;
  }

  .toolbar-actions [data-play-all] {
    grid-column: 1 / -1;
  }

  .number-table th,
  .number-table td {
    padding-inline: 8px;
  }

  .number-table {
    table-layout: fixed;
  }

  .number-table-en th:nth-child(1) {
    width: 22%;
  }

  .number-table-en th:nth-child(2) {
    width: 62%;
  }

  .number-table-en th:nth-child(3) {
    width: 16%;
  }

  .number-table-th th:nth-child(1) {
    width: 16%;
  }

  .number-table-th th:nth-child(2) {
    width: 26%;
  }

  .number-table-th th:nth-child(3) {
    width: 25%;
  }

  .number-table-th th:nth-child(4) {
    width: 22%;
  }

  .number-table-th th:nth-child(5) {
    width: 11%;
  }

  .number-table th {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .number-table td {
    padding-block: 12px;
  }

  .number-chip {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding-inline: 4px;
    font-size: 0.72rem;
  }

  .word-cell {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
  }

  .thai-cell,
  .meaning-cell {
    overflow-wrap: anywhere;
    font-size: 0.76rem;
  }

  .row-audio {
    width: 40px;
    height: 40px;
  }

  .table-scroll {
    overflow: visible;
  }

  .number-table {
    display: block;
    table-layout: auto;
  }

  .number-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .number-table tbody {
    display: grid;
    gap: 13px;
    padding: 14px;
  }

  .number-table tbody tr {
    display: grid;
    min-width: 0;
    gap: 0 12px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--mint);
    border-radius: 20px;
    box-shadow: 0 9px 24px rgb(11 1 24 / 7%);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "number audio"
      "english english"
      "thai thai"
      "meaning meaning";
  }

  .number-table-en tbody tr {
    grid-template-areas:
      "number audio"
      "english english";
  }

  .number-table tbody tr:nth-child(3n + 2) {
    border-left-color: var(--sun);
  }

  .number-table tbody tr:nth-child(3n) {
    border-left-color: var(--coral);
  }

  .number-table tbody tr:hover {
    background: var(--white);
  }

  .number-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .number-cell {
    align-self: center;
    grid-area: number;
  }

  .audio-cell {
    align-self: center;
    justify-self: end;
    grid-area: audio;
  }

  .word-cell {
    padding-top: 14px !important;
    margin-top: 12px;
    font-size: 1.02rem;
    line-height: 1.48;
    border-top: 1px dashed var(--line) !important;
    grid-area: english;
  }

  .thai-cell,
  .meaning-cell {
    display: grid !important;
    align-items: start;
    gap: 10px;
    padding-top: 10px !important;
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.55;
    border-top: 1px dashed var(--line) !important;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .thai-cell {
    grid-area: thai;
  }

  .meaning-cell {
    grid-area: meaning;
  }

  .mobile-cell-label {
    display: block;
    color: var(--ink-soft);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .number-cell .mobile-cell-label {
    margin-bottom: 5px;
  }

  .word-cell .mobile-cell-label {
    margin-bottom: 4px;
    color: var(--violet);
  }

  .mobile-cell-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .number-chip {
    width: auto;
    min-width: 72px;
    height: 42px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .row-audio {
    width: auto;
    min-width: 82px;
    height: 44px;
    gap: 7px;
    padding-inline: 13px;
    border-radius: 999px;
  }

  .mobile-audio-label {
    display: inline;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .has-collapsible-table:not(.is-table-expanded) .number-table tbody tr:nth-child(n + 21) {
    display: none;
  }

  .table-expand {
    display: inline-flex;
  }

  .table-jump {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
  }

  .table-jump label {
    padding: 0;
  }

  .table-jump > div {
    width: 100%;
  }

  .table-jump input {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .result-toolbar > div:first-child span,
  .range-controls form > span {
    font-size: 0.75rem;
  }

  .category-sidebar {
    padding: 14px;
    border-radius: 22px;
  }

  .category-sidebar-heading {
    padding-bottom: 14px;
  }

  .category-sidebar a {
    width: 238px;
  }

  .category-sidebar-arrow {
    opacity: 1;
    transform: none;
  }

  .site-footer {
    padding-block: 72px 20px;
  }

  .footer-number-cloud span:nth-child(1) {
    top: 25px;
    left: 22px;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    border-radius: 18px;
  }

  .footer-number-cloud span:nth-child(2) {
    display: none;
  }

  .footer-number-cloud span:nth-child(3) {
    display: none;
  }

  .footer-main {
    gap: 38px;
    padding: 32px 20px 22px;
    border-radius: 28px;
  }

  .footer-main::after {
    display: none;
  }

  .footer-eyebrow {
    margin-top: 36px;
    font-size: 0.64rem;
  }

  .footer-intro h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .footer-link-group {
    padding: 18px;
    border-radius: 20px;
  }

  .footer-promise {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .footer-benefits {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .page-hero {
    padding-block: 20px 34px;
    border-radius: 0;
  }

  .breadcrumbs {
    margin-bottom: 22px;
  }

  .page-hero-grid {
    align-items: start;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    margin-block: 9px 12px;
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .page-hero .page-lead {
    font-size: 0.95rem;
  }

  .page-number-art {
    width: fit-content;
    padding: 10px 13px;
  }

  .range-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .methodology-card {
    grid-template-columns: 1fr;
  }

  .methodology-card a {
    grid-column: 1;
  }

  .range-input-group {
    flex-direction: column;
  }

  .style-picker {
    width: 100%;
    min-width: 0;
  }

  .lesson-hero-grid {
    grid-template-columns: 1fr;
  }

  .lesson-hero {
    padding-block: 58px 105px;
  }

  .lesson-hero-card {
    width: min(310px, calc(100% - 20px));
    height: 270px;
    margin-top: 25px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .about-art {
    min-height: 340px;
  }

  .orbit-one,
  .orbit-two {
    display: none;
  }
}

@media (max-width: 980px) {
  .ordinal-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-lab-controls,
  .date-lab-results {
    grid-template-columns: 1fr;
  }

  .time-lab {
    grid-template-columns: 1fr;
  }

  .time-clock-panel {
    min-height: 320px;
  }

  .fraction-lab {
    grid-template-columns: 1fr;
  }

  .fraction-visual-panel {
    min-height: 330px;
  }

  .decimal-lab {
    grid-template-columns: 1fr;
  }

  .decimal-visual-panel {
    min-height: 280px;
  }

  .percentage-lab {
    grid-template-columns: 1fr;
  }

  .percentage-visual-panel {
    min-height: 450px;
  }
}

@media (max-width: 520px) {
  .ordinal-use-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .ordinal-use-grid article {
    min-height: 132px;
    padding: 14px;
  }

  .ordinal-next-links {
    align-items: stretch;
    flex-direction: column;
  }

  .ordinal-next-links .button {
    justify-content: center;
  }

  .date-lab {
    padding: 22px;
    border-radius: 24px;
  }

  .date-lab-heading {
    align-items: flex-start;
  }

  .date-lab-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .date-lab-footer .button {
    justify-content: center;
  }

  .time-lab {
    border-radius: 24px;
  }

  .time-clock-panel {
    min-height: 280px;
    padding: 22px;
  }

  .learning-clock {
    width: min(100%, 205px);
  }

  .time-lab-main {
    padding: 22px;
  }

  .time-lab-controls {
    grid-template-columns: 1fr;
  }

  .fraction-lab {
    border-radius: 24px;
  }

  .fraction-visual-panel {
    min-height: 300px;
    padding: 26px 22px;
  }

  .fraction-pieces span {
    min-height: 56px;
  }

  .fraction-lab-main {
    padding: 22px;
  }

  .fraction-lab-controls {
    grid-template-columns: 1fr;
  }

  .fraction-control-line {
    width: 100%;
    margin: 0;
  }

  .decimal-lab {
    border-radius: 24px;
  }

  .decimal-visual-panel {
    min-height: 250px;
    padding: 20px 14px;
  }

  .decimal-place-train {
    grid-template-columns: minmax(60px, 0.8fr) 20px minmax(0, 2.2fr);
    gap: 5px;
    padding: 7px;
  }

  .decimal-whole-cell,
  .decimal-place-cell {
    min-height: 76px;
  }

  .decimal-lab-main {
    padding: 20px;
  }

  .decimal-lab-result {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .percentage-lab {
    border-radius: 24px;
  }

  .percentage-visual-panel {
    min-height: 420px;
    padding: 24px 16px;
  }

  .percentage-ring {
    width: 166px;
  }

  .percentage-grid {
    width: min(100%, 220px);
    gap: 2px;
    padding: 7px;
  }

  .percentage-lab-main {
    padding: 22px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .page-hero,
  .category-sidebar,
  .learning-note,
  .date-lab,
  .date-practice-section,
  .date-answers,
  .time-lab,
  .time-practice-section,
  .time-answers,
  .fraction-lab,
  .fraction-practice-section,
  .fraction-answers,
  .decimal-lab,
  .decimal-practice-section,
  .decimal-answers,
  .percentage-lab,
  .percentage-practice-section,
  .percentage-answers,
  .range-controls,
  .result-toolbar,
  .table-jump,
  .table-expand,
  .section-soft,
  .row-audio {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 0;
  }

  .content-grid {
    display: block;
  }

  .result-panel {
    border: 0;
    box-shadow: none;
  }

  .number-table {
    font-size: 11pt;
  }

  .number-table th:nth-child(3),
  .number-table td:nth-child(3) {
    display: table-cell;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
