:root {
  color-scheme: light;
  --ink: #122148;
  --muted: #4e5c79;
  --green: #284b99;
  --dark: #101c3c;
  --lime: #aecaff;
  --line: #dce4f4;
  --white: #f7f9fe;
  --mint: #edf2fd;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

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

body {
  margin: 0px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, figure, dl, dd, blockquote {
  margin: 0px;
}

h1, h2, h3 {
  line-height: 1.22;
  letter-spacing: -0.055em;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: rgb(75, 105, 189) solid 3px;
  outline-offset: 5px;
}

.hero :focus-visible, .contact :focus-visible {
  outline-color: var(--lime);
}

section[id] {
  scroll-margin-top: 90px;
}

.container {
  width: min(100% - 104px, 1180px);
  margin-inline: auto;
}

.symbols {
  position: absolute;
  width: 0px;
  height: 0px;
  overflow: hidden;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  background: rgb(255, 255, 255);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.header {
  position: sticky;
  top: 0px;
  z-index: 5;
  background: rgb(247, 249, 254);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-weight: 700;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 38px;
  padding: 0 6px;
  color: #f7fbff;
  background: #0b203d;
  font: bold 19px Georgia, serif;
}
.brand strong {
  font-size: 1rem;
  line-height: 1.4;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4.3vw, 58px);
  color: var(--muted);
  font-weight: 650;
}

nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0px 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  transition: background 0.16s, border-color 0.16s;
}

.header-action {
  min-height: 42px;
  padding-inline: 15px;
  border-color: rgb(169, 187, 222);
  font-size: 0.9rem;
}

.header-action:hover {
  background: rgb(233, 239, 255);
}

.hero, .contact {
  background: var(--dark);
  color: rgb(242, 246, 255);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: 77px 66px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 0.91rem;
  font-weight: 750;
  margin-bottom: 13px;
}

.eyebrow span {
  width: 17px;
  height: 2px;
  background: currentcolor;
}

.contact .eyebrow {
  color: var(--lime);
}

.hero-copy {
  container-type: inline-size;
  min-width: 0;
}

.hero h1 {
  font-size: min(clamp(2.45rem, 5.1vw, 4.75rem), 11.9cqi);
  line-height: 1.18;
  letter-spacing: -0.082em;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-desc {
  margin-top: 22px;
  color: rgb(198, 212, 243);
  font-size: clamp(1rem, 1.6vw, 1.17rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}

.primary {
  color: rgb(16, 29, 64);
  background: var(--lime);
}

.primary:hover {
  background: rgb(201, 219, 255);
}

.ghost {
  color: rgb(236, 242, 255);
  border-color: rgb(101, 123, 168);
}

.ghost:hover {
  background: rgb(34, 53, 96);
  border-color: rgb(143, 168, 219);
}

.hero-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-label {
  font-family: ui-monospace, monospace;
  font-size: 14px;
}

.stats {
  border-bottom: 1px solid var(--line);
  background: rgb(234, 240, 254);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.13fr 1.04fr;
  padding-block: 24px 26px;
}

.stats-grid > div {
  padding-inline: clamp(12px, 3vw, 40px);
}

.stats-grid > div:first-child {
  padding-left: 0px;
}

.stats-grid > div:last-child {
  padding-right: 0px;
}

.stats-grid > div + div {
  border-left: 1px solid rgb(196, 210, 238);
}

.stats strong {
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.065em;
}

.stats strong span, .stats small {
  font-size: clamp(0.88rem, 1.5vw, 1.22rem);
  letter-spacing: -0.035em;
  margin-left: 4px;
}

.stats small {
  color: rgb(74, 96, 143);
  font-weight: 550;
}


.stats p {
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--muted);
}

.section {
  padding-block: 91px;
}

.section h2, .contact h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 29px;
}

.section-head > p {
  color: var(--muted);
  max-width: 355px;
}

.result-grid, .fees-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 16px;
}

.result-grid article, .fees-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255, 255, 255);
}

.result-grid h3, .fees-grid h3 {
  font-size: 1.28rem;
}

.diagnosis {
  margin-top: 19px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.diagnosis h3, .faq h3 {
  font-size: 1.2rem;
}

.diagnosis p {
  margin-top: 4px;
  color: var(--muted);
}

.diagnosis-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.diagnosis-options > div {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  background: rgb(234, 241, 255);
  border-radius: 7px;
}

.diagnosis-options strong {
  color: var(--green);
}

.diagnosis-options span {
  font-size: 0.92rem;
}

.curriculum {
  background: rgb(232, 239, 255);
  border-block: 1px solid rgb(212, 224, 250);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 42px;
  align-items: center;
}

.curriculum h2 + p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 365px;
}

.subject-list {
  border-top: 1px solid rgb(184, 202, 235);
}

.subject-list > div {
  display: grid;
  grid-template-columns: 51px minmax(94px, 0.8fr) 1.5fr;
  gap: 12px;
  align-items: center;
  padding-block: 15px;
  border-bottom: 1px solid rgb(184, 202, 235);
}

.subject-list span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: rgb(215, 229, 255);
  border: 1px solid rgb(189, 207, 240);
  border-radius: 7px;
  font: italic 1.35rem Georgia, serif;
  color: rgb(37, 71, 132);
}

.subject-list dt {
  font-weight: 750;
}

.subject-list dd {
  color: var(--muted);
}

.result-grid article {
  padding: 20px;
}

.result-grid article > p {
  color: var(--green);
  font-size: 0.91rem;
  margin-bottom: 7px;
}


details {
  border-bottom: 1px solid var(--line);
}

details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding-block: 15px;
  font-weight: 700;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  line-height: 1;
  color: var(--green);
}

details[open] summary::after {
  content: "−";
}

.more-results {
  margin-top: 11px;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 470px;
  font-size: 0.94rem;
}

th, td {
  padding: 11px 12px;
  text-align: left;
  border-top: 1px solid var(--line);
}

th {
  background: rgb(237, 242, 253);
}

.evidence {
  background: rgb(237, 242, 253);
  border-block: 1px solid rgb(215, 227, 250);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.teacher {
  padding-right: clamp(0px, 3vw, 38px);
}

.teacher h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.teacher dl {
  margin-top: 19px;
}

.teacher dl > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid rgb(209, 222, 245);
}

.teacher dt {
  font-weight: 750;
}

.teacher dd {
  color: var(--muted);
}

.reviews {
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
  align-self: center;
}

.review-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}

.review-heading h2 {
  font-size: 1.55rem;
}

.review-heading > span, .review figcaption, .review-controls span {
  color: var(--muted);
  font-size: 0.9rem;
}

.review {
  display: grid;
  align-content: center;
  min-height: 155px;
  padding: 15px 0px;
}

.review blockquote {
  font-size: clamp(1.02rem, 1.65vw, 1.22rem);
  font-weight: 650;
  line-height: 1.65;
}

.review figcaption {
  margin-top: 10px;
}

.review figcaption strong {
  margin-left: 6px;
  color: var(--green);
}

.review-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.review-controls button {
  min-height: 42px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgb(243, 246, 255);
  cursor: pointer;
}

.review-controls button:hover {
  background: rgb(228, 237, 255);
}

.fees-grid article {
  padding: 21px;
}

.fees-grid svg {
  width: 28px;
  height: 28px;
  color: var(--green);
  margin-bottom: 7px;
}

.fees-grid p {
  margin-top: 10px;
  color: var(--muted);
}

.fees-grid strong {
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.045em;
}

.fees-grid article > span {
  color: var(--muted);
  font-size: 0.94rem;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 20px;
  margin-top: 24px;
}

.faq h3 {
  padding-top: 14px;
}

.faq details p {
  padding: 0px 12px 15px 0px;
  color: var(--muted);
}

.contact {
  padding-block: 58px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.contact h2 + p {
  color: rgb(198, 212, 243);
  margin-top: 12px;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-actions svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer .container {
  min-height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
}

.footer .container > small {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .container {
    width: calc(100% - 64px);
  }

  .hero-grid {
    padding-block: 58px 47px;
    gap: 28px;
  }

  .section {
    padding-block: 68px;
  }

}

@media (max-width: 740px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    height: 64px;
  }

  .header nav {
    display: none;
  }

  .hero-grid, .curriculum-grid, .evidence-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 40px 23px;
    gap: 28px;
  }

  .hero h1 {
    font-size: min(clamp(2.55rem, 9vw, 4.3rem), 11.9cqi);
  }

  .hero-desc {
    margin-top: 15px;
  }

  .actions {
    margin-top: 20px;
  }

  .hero-figure {
    max-width: 575px;
  }

  .stats-grid {
    padding-block: 16px;
  }

  .stats-grid > div {
    padding-inline: 8px;
  }

  .stats strong {
    font-size: 1.48rem;
  }

  .stats strong span, .stats small {
    font-size: 0.75rem;
    margin-left: 1px;
  }

  .stats p {
    font-size: 0.81rem;
    line-height: 1.4;
  }

  .section {
    padding-block: 51px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    margin-bottom: 19px;
  }

  .result-grid, .fees-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .diagnosis, .faq {
    grid-template-columns: 1fr;
  }

  .diagnosis {
    padding: 15px;
    gap: 10px;
  }

  .curriculum-grid {
    gap: 20px;
  }


  .fees-grid article {
    padding: 15px;
  }

  .faq {
    gap: 4px;
  }

  .contact {
    padding-block: 43px;
  }

  .contact-grid {
    gap: 16px;
  }

  .contact-actions {
    width: min(100%, 430px);
  }

  .contact-actions .button {
    padding-inline: 8px;
  }
}

@media (max-width: 365px) {
  .container {
    width: calc(100% - 28px);
  }

  .stats strong {
    font-size: 1.2rem;
  }

  .stats strong span, .stats small {
    font-size: 0.69rem;
  }

  .subject-list > div {
    grid-template-columns: 39px minmax(72px, 0.8fr) 1.5fr;
    gap: 7px;
  }

  .subject-list span {
    width: 35px;
    height: 35px;
  }

  .button {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(at 78% 22%, rgb(33, 58, 115) 0%, transparent 55%), linear-gradient(145deg, rgb(16, 28, 60) 35%, rgb(19, 38, 77) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0px;
  z-index: -1;
  background-image: linear-gradient(rgba(155, 188, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 188, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(110deg, transparent 23%, rgb(0, 0, 0) 80%);
}

.hero-grid {
  padding-block: 104px 99px;
}

.hero-figure {
  padding: 13px;
  border-radius: 25px;
  border: 1px solid rgba(99, 131, 187, 0.48);
  background: rgba(181, 205, 245, 0.08);
  box-shadow: rgba(6, 12, 36, 0.65) 0px 28px 70px;
}

.hero-chart {
  border-radius: 17px;
}

.hero-desc {
  margin-top: 26px;
}

.actions {
  margin-top: 33px;
  gap: 12px;
}

.header-action {
  background: rgb(237, 242, 255);
}

.stats {
  background: linear-gradient(100deg, rgb(237, 242, 255), rgb(244, 247, 255) 46%, rgb(232, 240, 255));
}

.stats-grid {
  padding-block: 31px 33px;
}

.stats-grid > div {
  position: relative;
}

.stats strong {
  color: rgb(24, 53, 116);
}

.section {
  padding-block: clamp(91px, 9vw, 138px);
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.result-grid, .fees-grid {
  gap: clamp(16px, 2vw, 25px);
}

.diagnosis {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 34px);
  border-left: 3px solid rgb(119, 152, 222);
  background: rgb(248, 250, 255);
}

.diagnosis-options {
  gap: 12px;
}

.diagnosis-options > div {
  padding: 16px;
}

.curriculum {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgb(242, 246, 255);
  background: radial-gradient(at 0px 90%, rgb(37, 69, 124), transparent 72%), rgb(20, 40, 81);
  border-color: rgb(45, 73, 125);
}

.curriculum-grid {
  gap: clamp(35px, 6vw, 86px);
}

.curriculum-grid > div, .subject-list {
  position: relative;
}

.curriculum-art {
  position: absolute;
  z-index: -1;
  width: clamp(380px, 49vw, 760px);
  bottom: -72px;
  left: max(-145px, -665px + 50vw);
  color: rgb(109, 172, 236);
  opacity: 0.28;
  pointer-events: none;
}

.curriculum .eyebrow {
  color: rgb(182, 210, 255);
}

.curriculum h2 + p {
  color: rgb(206, 219, 244);
}

.subject-list {
  padding: 6px 26px;
  background: rgba(32, 55, 107, 0.88);
  border: 1px solid rgb(82, 116, 174);
  border-radius: 16px;
}

.subject-list > div {
  grid-template-columns: 52px minmax(98px, 0.84fr) 1.45fr;
  padding-block: 18px;
  border-color: rgba(107, 139, 194, 0.34);
}

.subject-list > div:last-child {
  border-bottom: 0px;
}

.subject-list span {
  color: rgb(216, 230, 255);
  background: rgb(48, 77, 134);
  border-color: rgb(87, 118, 175);
}

.subject-list dd {
  color: rgb(201, 217, 247);
}

.results {
  background: rgb(247, 249, 254);
}

.result-grid article {
  padding: clamp(21px, 2.9vw, 36px);
  border-top: 3px solid rgb(113, 151, 225);
  background: linear-gradient(162deg, rgb(255, 255, 255) 62%, rgb(233, 240, 254) 100%);
  box-shadow: rgba(36, 70, 129, 0.05) 0px 9px 24px;
}

.result-grid article:nth-child(2) {
  border-top-color: rgb(86, 111, 186);
}

.result-grid article:nth-child(3) {
  border-top-color: rgb(119, 152, 187);
}



.more-results {
  margin-top: 17px;
}

.evidence {
  background: radial-gradient(at 88% 0px, rgb(220, 231, 255), transparent 57%), rgb(237, 242, 252);
}

.evidence-grid {
  gap: clamp(24px, 4vw, 55px);
}

.teacher {
  padding: clamp(25px, 4vw, 48px);
  background: rgb(21, 39, 79);
  color: rgb(242, 246, 255);
  border: 1px solid rgb(46, 74, 130);
  border-radius: 17px;
  box-shadow: rgba(22, 52, 107, 0.15) 0px 15px 28px;
}

.teacher .eyebrow {
  color: rgb(182, 210, 255);
}

.teacher dl {
  margin-top: 25px;
}

.teacher dl > div {
  padding-block: 11px;
  border-color: rgba(83, 113, 167, 0.42);
}

.teacher dd {
  color: rgb(209, 220, 243);
}

.reviews {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: rgba(40, 71, 127, 0.086) 0px 14px 35px;
}

.review {
  min-height: 190px;
}

.fees {
  background: rgb(250, 251, 255);
}

.fees-grid article {
  padding: clamp(23px, 3vw, 35px);
  background: rgb(255, 255, 255);
  box-shadow: rgba(39, 69, 120, 0.055) 0px 12px 24px;
}

.fees-grid svg {
  box-sizing: content-box;
  padding: 12px;
  border: 1px solid rgb(204, 219, 248);
  border-radius: 12px;
  background: rgb(234, 241, 255);
  margin-bottom: 15px;
}

.fees-grid p {
  margin-top: 13px;
}

.faq {
  padding: clamp(20px, 3.6vw, 39px);
  margin-top: 32px;
  background: rgb(237, 242, 253);
  border: 1px solid rgb(222, 231, 250);
  border-radius: 15px;
}

.faq details:last-child {
  border-bottom: 0px;
}

.contact {
  padding-block: clamp(68px, 8vw, 110px);
  background: linear-gradient(120deg, rgb(16, 28, 60) 26%, rgb(29, 54, 106) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-art {
  position: absolute;
  z-index: -1;
  width: clamp(340px, 49vw, 720px);
  top: 50%;
  right: -9%;
  transform: translateY(-50%);
  color: rgb(128, 173, 247);
  opacity: 0.28;
  pointer-events: none;
}

.contact-actions {
  padding: 21px;
  gap: 12px;
  border: 1px solid rgba(120, 151, 203, 0.49);
  border-radius: 16px;
  background: rgba(38, 63, 116, 0.81);
}

.footer {
  background: rgb(239, 243, 252);
}

.footer .container {
  min-height: 104px;
}

@media (max-width: 840px) {
  .hero-grid {
    padding-block: 77px 69px;
  }

  .contact-art {
    right: -15%;
  }
}

@media (max-width: 740px) {
  .hero-grid {
    padding-block: 52px 36px;
    gap: 34px;
  }

  .hero-figure {
    padding: 8px;
    border-radius: 20px;
  }

  .hero-chart {
    border-radius: 13px;
  }

  .stats-grid {
    padding-block: 22px;
  }

  .section {
    padding-block: 69px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .diagnosis {
    padding: 19px;
  }

  .diagnosis-options > div {
    padding: 12px;
  }

  .curriculum-grid {
    gap: 27px;
  }

  .subject-list {
    padding-inline: 18px;
  }

  .teacher dl > div {
    grid-template-columns: minmax(76px, 105px) 1fr;
  }

  .review {
    min-height: 153px;
  }

  .faq {
    gap: 8px;
  }

  .faq h3 {
    padding-top: 0px;
  }

  .contact-grid {
    gap: 25px;
  }

  .contact-actions {
    padding: 11px;
  }

  .footer .container {
    min-height: 91px;
  }
}

@media (max-width: 365px) {
  .hero .actions {
    gap: 8px;
  }

  .subject-list {
    padding-inline: 10px;
  }

  .subject-list > div {
    grid-template-columns: 36px minmax(72px, 0.8fr) 1.5fr;
    gap: 7px;
  }

}

.quote-art {
  position: absolute;
  z-index: -1;
  top: 21px;
  right: 24px;
  width: clamp(74px, 12vw, 130px);
  color: rgb(237, 242, 255);
  fill: currentcolor;
}

.chart-values {
  font-size: 16px;
}
.chart-formula {
  font-size: 20px;
}

.classroom {
  padding-block: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #f4f7fd;
  scroll-margin-top: 85px;
}
.classroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 32px);
}
.board-preview, .classroom .reviews {
  min-width: 0;
  padding: clamp(18px, 2.3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgb(31 55 100 / 5%);
}
.board-preview {
  display: flex;
  flex-direction: column;
}
.proof-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.proof-heading h2, .classroom .review-heading h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}
.proof-heading a, .review-scan span {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 650;
}
.proof-heading a:hover, .review-scan:hover span {
  text-decoration: underline;
}
.board-mosaic {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: clamp(215px, 22vw, 300px);
  gap: 7px;
}
.board-sample {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mint);
  cursor: zoom-in;
}
.board-sample:first-child {
  grid-row: span 2;
}
.board-sample img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-sample span {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 11px 8px;
  background: linear-gradient(transparent, rgb(6 15 32 / 75%));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}
.board-sample:focus-visible {
  outline-offset: 2px;
}
.classroom .reviews {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.classroom .review {
  min-height: 0;
  padding-block: 14px;
}
.classroom .review blockquote {
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}
.classroom .review figcaption {
  margin-top: 5px;
}
.review-scan {
  display: block;
  margin-top: auto;
  padding: 7px 9px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}
.review-scan img {
  display: block;
  width: 100%;
  height: clamp(67px, 7.5vw, 96px);
  object-fit: contain;
}
.review-scan span {
  display: block;
  text-align: right;
}
.classroom .review-controls {
  margin-top: 10px;
}

.answer-examples {
  grid-column: 1 / -1;
  padding-top: clamp(18px, 2.6vw, 34px);
  border-top: 1px solid var(--line);
}
.answer-examples h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}
.answer-examples > p {
  margin: 6px 0 18px;
  color: var(--muted);
}
.answer-grid, .cover-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 22px);
}
.answer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.answer-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
}
.answer-preview {
  display: block;
  position: relative;
  aspect-ratio: 1.7;
  background: #fdfdff;
  border-bottom: 1px solid var(--line);
}
.answer-preview img {
  display: block;
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}
.answer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  padding: 13px 15px;
  line-height: 1.45;
}
.answer-label > span, .section-jump {
  color: var(--green);
  font-size: .875rem;
  font-weight: 650;
}
.section-jump {
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.answer-card:hover strong, .cover-card:hover strong {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.theme-lessons {
  background: #fff;
  border-top: 1px solid var(--line);
}
.cover-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cover-card {
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
}
.cover-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(175px, 20vw, 260px);
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf2f9, #e2eaf5);
}
.cover-art img {
  display: block;
  width: auto;
  height: 88%;
  max-width: 88%;
  object-fit: contain;
  box-shadow: 2px 4px 9px rgb(30 48 85 / 16%);
}
.cover-card strong {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.4;
  letter-spacing: -.035em;
}
.cover-detail {
  margin-top: 3px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}
.cover-more {
  margin-top: 24px;
}
.cover-more[open] .cover-grid {
  margin: 4px 0 16px;
}
#material-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
#material-dialog[open] {
  display: flex;
  flex-direction: column;
}
#material-dialog::backdrop {
  background: rgb(11 24 51 / 72%);
}
.material-toolbar, .material-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.material-toolbar {
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}
.material-toolbar h2 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.4;
}
.material-actions {
  flex: none;
}
.material-actions button {
  min-height: 44px;
  min-width: 48px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 650;
  cursor: pointer;
}
.material-actions button[aria-pressed="true"] {
  color: #fff;
  background: var(--green);
}
#material-page {
  min-height: 0;
  max-height: 76vh;
  max-height: 76dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--mint);
}
#material-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  max-height: 76dvh;
  margin-inline: auto;
}
#material-dialog[data-zoomed] #material-image {
  width: max(150%, var(--material-width));
  max-width: none;
  max-height: none;
}
@media (max-width: 800px) {
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }
  .cover-art {
    height: clamp(164px, 31vw, 238px);
  }
}
@media (max-width: 620px) {
  .answer-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .answer-card {
    display: grid;
    grid-template-columns: clamp(100px, 31vw, 145px) minmax(0, 1fr);
  }
  .answer-preview {
    aspect-ratio: 1.45;
    border: 0;
    border-right: 1px solid var(--line);
  }
  .answer-preview img {
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
  .answer-label {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 9px 12px;
  }
}

.teacher-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 65px);
}
.teacher-profile dl {
  margin: 0;
}

.university-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.university-name img {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}
.score-bars {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 20px 0 0;
}
.bar-row {
  min-width: 0;
}
.bar-reading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.875rem;
}
.bar-reading b {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}
.bar-track, .bar-fill, .bar-range {
  display: block;
  height: 100%;
}
.bar-track {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #e3eaf6;
}
.bar-fill {
  background: #839ac1;
}
.final-row .bar-fill {
  background: #355ca3;
}
.bar-range {
  background: repeating-linear-gradient(135deg, #839ac1 0 3px, #c2cfe2 3px 6px);
}
.score-bars figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.compact-bars {
  gap: 5px;
  margin: 0;
}
.compact-bars .bar-row {
  display: grid;
  grid-template-columns: var(--bar-label, 3ch) minmax(0, 1fr) 3.6rem;
  align-items: center;
  column-gap: 9px;
}
.compact-bars .bar-reading {
  display: contents;
}
.compact-bars .bar-reading span {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
}
.compact-bars .bar-reading b {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
}
.compact-bars .bar-track {
  grid-column: 2;
  grid-row: 1;
  height: 8px;
}
.stats-grid {
  align-items: center;
}
.stat-change .score-bars {
  max-width: 24rem;
}
.stat-change > p {
  margin-top: 6px;
}
.admissions-table {
  --bar-label: 4.8rem;
}
.admissions-table th[scope="row"] {
  width: 33%;
  background: transparent;
  font-weight: 650;
}
.admissions-table .university-name img {
  width: 23px;
  height: 23px;
}
.admissions-table .chart-cell {
  width: 46%;
}
@media (max-width: 800px) {
  .classroom-grid, .teacher-profile {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-mosaic {
    min-height: clamp(200px, 44vw, 322px);
  }
}
@media (max-width: 740px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 13px;
  }
  .stats-grid > .stat-change {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: none;
  }
  .stat-change .score-bars {
    max-width: none;
  }
  .university-name img {
    width: 23px;
    height: 23px;
  }
  .score-bars:not(.compact-bars) {
    margin-top: 14px;
  }
}
@media (max-width: 620px) {
  .admissions-table {
    display: block;
    min-width: 0;
  }
  .admissions-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .admissions-table tbody {
    display: block;
  }
  .admissions-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-block: 14px;
    border-top: 1px solid var(--line);
  }
  .admissions-table tbody :is(td, th[scope="row"]) {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .admissions-table .chart-cell {
    grid-column: 1 / -1;
  }
}
