.classes-shell { max-width: 1200px; margin: auto; padding: 0 28px 60px; }
.classes-nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.classes-nav a { color: var(--ink); text-decoration: none; }
.classes-nav .back-to-test { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.classes-intro { max-width: 760px; padding: 62px 0 40px; }
.classes-intro h1 { font-family: var(--display); font-size: clamp(42px, 6vw, 72px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; margin: 18px 0 24px; }
.classes-intro h1 em { color: #326548; }
.classes-intro > p:last-of-type { font-size: 17px; line-height: 1.8; color: #435259; }
.class-jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.class-jump-links a { border: 1px solid #9da593; border-radius: 99px; padding: 12px 19px; color: var(--ink); text-decoration: none; font-weight: 700; }
.class-jump-links a:hover { background: #e3eddf; }
.class-date-note { padding: 24px; background: #e8eddf; border-left: 4px solid #326548; font-size: 14px; line-height: 1.8; }
.class-date-note b { display: block; }
.class-catalogue { margin-top: 45px; display: grid; gap: 50px; }
.class-offer { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); background: var(--paper); border: 1px solid #c6c0b5; scroll-margin-top: 24px; }
.class-offer-visual { padding: 26px; background: #eae4d7; }
.class-offer:nth-child(2) .class-offer-visual { background: #e0ece1; }
.class-offer:nth-child(3) .class-offer-visual { background: #e3eaf0; }
.class-poster { display: block; text-decoration: none; color: var(--ink); }
.class-poster img { width: 100%; height: auto; display: block; object-fit: contain; border: 1px solid #c6c0b5; }
.class-poster > span { display: block; text-align: center; padding: 12px 0 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.class-offer-copy { padding: 34px; min-width: 0; }
.class-offer-copy h2 { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.15; margin: 12px 0 20px; }
.class-offer-copy h2 span { display: block; color: #326548; }
.class-offer-copy p { font-size: 14px; line-height: 1.75; }
.class-offer-copy h3 { font-family: var(--display); font-size: 22px; font-weight: 400; margin: 0 0 10px; }
.class-package { margin: 24px 0 18px; padding: 22px; background: #e8efdf; border-top: 2px solid #326548; }
.class-package .class-fee { font-size: 30px; font-family: var(--display); margin: 8px 0; color: var(--ink); }
.class-fee span { font-family: var(--body); font-size: 12px; margin-left: 5px; }
.class-timetable { border-collapse: collapse; width: 100%; font-size: 13px; margin: 22px 0; }
.class-timetable caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
.class-timetable th, .class-timetable td { text-align: left; padding: 11px 13px; line-height: 1.6; border-bottom: 1px solid #d7d1c6; }
.class-timetable thead { background: #f0ede4; }
.class-timetable .math-lesson { background: #edf3e7; }
.physical-class { padding: 20px; border: 1px solid #c6c0b5; }
.physical-class p { margin: 7px 0; }
.physical-class .physical-fee { font-weight: 800; }
.class-offer-copy .class-all-subjects { color: #526067; font-size: 12px; }
.class-enquiry { display: inline-block; background: #27674a; border-radius: 99px; padding: 15px 20px; color: white; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.6; text-align: center; }
.class-enquiry:hover { background: #1f523b; }
.classes-footer { padding: 40px 0 0; border-top: 1px solid #c6c0b5; margin-top: 45px; }
.classes-footer p { max-width: 700px; line-height: 1.8; }
.home-classes { display: block; margin-top: 12px; color: #27674a; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.class-preview { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid #bfcbb9; margin-top: 22px; }
.class-preview .class-cohort { display: block; color: #326548; font-weight: 800; line-height: 1.6; margin-bottom: 10px; }
.class-preview h4 { line-height: 1.6; }
.class-preview p + p { margin-top: 10px; }
.class-preview .class-preview-price { font-weight: 800; }
.october-offer { margin-top: 22px; padding: 18px; border: 2px solid #27674a; border-radius: 14px; background: #eef6e9; overflow-wrap: anywhere; }
.october-offer .october-offer-label { display: inline-block; color: #27674a; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.october-offer h4 { line-height: 1.5; }
.october-offer p { margin-top: 8px; }
.october-offer .october-offer-cta { display: inline-block; margin-top: 14px; padding: 12px 16px; border-radius: 999px; background: #27674a; color: white; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; max-width: 100%; }
.recommendation-card .planning-ahead { margin-top: 26px; }
.class-preview .class-availability { font-size: 12px; }
.class-preview a:not(.class-poster) { display: inline-block; margin-top: 12px; color: #27674a; font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.no-class-match { display: block; }
@media (max-width: 760px) {
  .classes-shell { padding: 0 20px 40px; }
  .classes-nav { gap: 16px; flex-wrap: wrap; padding: 16px 0; }
  .classes-nav .brand { font-size: 16px; }
  .classes-nav .back-to-test { font-size: 12px; }
  .classes-intro { padding: 32px 0; }
  .class-offer { grid-template-columns: minmax(0, 1fr); }
  .class-offer-visual { padding: 20px; }
  .class-offer-copy { padding: 24px; }
  .class-timetable th, .class-timetable td { padding: 9px; }
}
@media (max-width: 600px) {
  .class-preview { grid-template-columns: minmax(0, 1fr); }
  .compact-poster { max-width: 250px; margin: auto; }
}
@media print {
  .classes-nav, .class-jump-links, .class-enquiry, .classes-footer { display: none; }
  .class-offer { break-inside: avoid; }
  .classes-intro { padding-top: 0; }
}

/* Brand theme · classes page and shared offer cards (see diagnostic.css for tokens) */
.classes-nav, .classes-intro { background-color: var(--sky); box-shadow: 0 0 0 100vmax var(--sky); clip-path: inset(0 -100vmax); color: #fff; }
.classes-nav { min-height: 100px; }
.classes-nav .brand { color: #fff; font-size: 24px; font-weight: 800; }
.classes-nav .brand img { width: 72px; height: 72px; border: 4px solid #fff; border-radius: 20px; transform: rotate(-3deg); box-shadow: var(--sticker); }
.classes-nav .back-to-test { padding: 8px 16px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: var(--sticker-sm); font-size: 14px; font-weight: 700; text-decoration: none; }
.classes-intro { max-width: none; padding: 40px 0 56px; background-image: var(--doodle-white-a); background-repeat: no-repeat; background-position: right 0 top 10px; }
.classes-intro > * { max-width: 760px; }
.classes-intro .eyebrow { display: inline-block; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px; padding: 4px 12px; }
.classes-intro h1 { color: #fff; font-weight: 800; letter-spacing: -.01em; line-height: 1.12; }
.classes-intro h1 em { color: #fff; font-style: normal; text-decoration: underline wavy var(--sun) 4px; text-underline-offset: 8px; }
.classes-intro > p:last-of-type { color: #fff; font-size: 19px; font-weight: 700; }
.class-jump-links a { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 99px; box-shadow: var(--sticker-sm); font-family: var(--display); font-size: 18px; font-weight: 800; transition: transform .12s ease, box-shadow .12s ease; }
.class-jump-links a:hover { background: var(--sun); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.class-date-note { margin-top: 36px; background: #fff; border: 3px solid var(--ink); border-left: 12px solid var(--sky); border-radius: 22px; box-shadow: var(--sticker); font-size: 15px; }
.class-date-note b { font-family: var(--display); font-size: 18px; }
.class-offer { background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--sticker); overflow: hidden; }
.class-offer-visual, .class-offer:nth-child(1) .class-offer-visual { background: var(--sky-tint); }
.class-offer:nth-child(2) .class-offer-visual { background: var(--sun-tint); }
.class-offer:nth-child(3) .class-offer-visual { background: var(--orange-tint); }
.class-poster img { border: 3px solid var(--ink); border-radius: 16px; }
.class-poster > span { font-weight: 700; }
.class-offer-copy h2 { font-weight: 800; letter-spacing: -.01em; }
.class-offer-copy h2 span { color: var(--orange-ink); }
.class-offer-copy p { font-size: 15px; }
.class-offer-copy h3 { font-weight: 800; }
.class-package { background: var(--sun-tint); border: 3px solid var(--ink); border-radius: 18px; }
.class-package .class-fee { font-weight: 800; }
.class-timetable { border-collapse: separate; border-spacing: 0; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; font-size: 14px; }
.class-timetable caption { font-family: var(--display); font-size: 16px; }
.class-timetable th, .class-timetable td { border-bottom: 1.5px solid #c9d9ea; }
.class-timetable tbody tr:last-child th, .class-timetable tbody tr:last-child td { border-bottom: 0; }
.class-timetable thead { background: var(--sky-tint); }
.class-timetable .math-lesson { background: var(--cloud); }
.physical-class { border: 3px solid var(--ink); border-radius: 18px; background: var(--cloud); }
.class-enquiry, .october-offer .october-offer-cta, .recommendation-card .step-actions .paper-check a.october-offer-cta {
  background: #25D366; color: var(--ink); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-size: 17px; font-weight: 800; transition: transform .12s ease, box-shadow .12s ease;
}
.class-enquiry:hover, .october-offer .october-offer-cta:hover { background: #25D366; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.classes-footer { border-top: 2px dashed #b8cfe8; }
.classes-footer p { font-size: 16px; }
.class-preview { border-top: 2px dashed #b8cfe8; }
.class-preview .class-cohort { color: var(--teal-ink); font-family: var(--display); }
.class-preview a:not(.class-poster), .home-classes { color: var(--teal-ink); }
.home-classes { display: table; color: var(--ink); }
.october-offer { background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--sticker); }
.october-offer .october-offer-label { background: var(--sky-tint); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 10px; }
.recommendation-card .step-actions .paper-check { position: relative; margin: 0 0 12px; padding: 24px 22px 22px; background: var(--sun); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.recommendation-card .step-actions .paper-check::after { content: ''; position: absolute; right: 14px; top: 12px; width: 84px; height: 66px; background: var(--arrow) no-repeat center / contain; transform: rotate(6deg); pointer-events: none; }
.recommendation-card .step-actions .paper-check h4 { padding-right: 96px; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.recommendation-card .step-actions .paper-check p { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.65; }
.recommendation-card .step-actions .paper-check a.october-offer-cta { margin-top: 16px; padding: 13px 20px; }
@media (max-width: 760px) {
  .classes-nav .brand img { width: 58px; height: 58px; }
  .classes-intro { padding: 28px 0 44px; }
  .class-date-note { margin-top: 28px; }
}
@media (max-width: 650px) {
  .recommendation-card .step-actions .paper-check { padding: 20px 18px; }
  .recommendation-card .step-actions .paper-check h4 { padding-right: 58px; font-size: 21px; }
  .recommendation-card .step-actions .paper-check::after { right: 8px; top: 10px; width: 54px; height: 44px; }
}
@media print {
  .classes-nav, .classes-intro { background: #fff; color: var(--ink); box-shadow: none; }
  .classes-intro h1, .classes-intro > p:last-of-type { color: var(--ink); }
  .class-offer, .class-date-note, .october-offer, .recommendation-card .step-actions .paper-check { box-shadow: none; }
}
