.study-page {
  --study-header-height: 79px;
  --study-nav-height: 64px;
  --study-tint: #eef5f3;
}

.study-page .study-guide,
body.study-page.ef-motion-ready .study-guide {
  padding: 0;
  border: 0;
  background: #fff;
  opacity: 1;
  translate: none;
  transition: none;
}

.study-page .study-guide-inner { width: 100%; max-width: 1192px; margin-inline: auto; }
.study-page .guide-overview { padding: 64px 0 56px; }
.study-page .study-guide > .guide-overview { width: calc(100% - 48px); }
.study-page .study-guide h2 { color: var(--ef-ink); font-size: 2.25rem; font-weight: 500 !important; line-height: 1.25; margin: 0 0 18px; }
.study-page .study-guide h3 { color: var(--ef-ink); font-size: 1.0625rem; font-weight: 600 !important; line-height: 1.5; margin: 0 0 8px; }
.study-page .study-guide p { color: #526568; font-weight: 400; line-height: 1.75; }
.study-page .guide-lead { max-width: none; }
.study-page .study-guide a { color: var(--ef-teal); transition: color 180ms ease; }
.study-page .study-guide a:hover { color: #103f44; }
.study-page .study-guide a:focus-visible { outline: 2px solid var(--ef-teal); outline-offset: 5px; }

.study-page .study-benefits { gap: 40px; margin: 38px 0 0; }
.study-page .study-benefits > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0; border: 0; }
.study-page .benefit-icon { width: 36px; height: 32px; display: grid; place-items: center start; color: var(--ef-teal); font-size: 1.6rem; margin: 0 0 18px; }
.study-page .study-benefits h3 { min-height: 1.5em; }
.study-page .study-benefits p { margin-bottom: 18px; }
.study-page .study-benefits a { margin-top: auto; font-size: .875rem; font-weight: 500; }

/* The topic bar stays inside the guide, below the compact site header. */
.study-page .guide-jump-links {
  position: sticky;
  top: var(--study-header-height);
  z-index: 100;
  display: block;
  padding: 0 24px;
  border: 0;
  background: #fff;
  box-shadow: 0 3px 14px rgba(16, 34, 56, .08);
}
.study-page .guide-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.study-page .guide-nav-label { color: #526568; font-size: .825rem; font-weight: 500; }
.study-page .guide-topic-links { display: flex; gap: 12px; }
.study-page .guide-topic-links a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 16px 20px; color: #526568; font-size: .875rem; font-weight: 600; text-decoration: none; text-align: center; transition: color 180ms ease, background-color 180ms ease; }
.study-page .guide-topic-links a::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px; background: var(--ef-teal); transform: scaleX(0); transition: transform 180ms ease; }
.study-page .guide-topic-links a:hover,
.study-page .guide-topic-links a[aria-current="location"] { color: var(--ef-teal); background: var(--study-tint); }
.study-page .guide-topic-links a[aria-current="location"]::after { transform: scaleX(1); }
.study-page .guide-topic-links a:focus-visible { outline-offset: -5px; }

.study-page .guide-topic { display: block; padding: 64px 24px; border: 0; background: #fff; scroll-margin-top: calc(var(--study-header-height) + var(--study-nav-height)); }
.study-page .guide-topic-tinted { background: var(--study-tint); }
.study-page .guide-topic-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr); gap: 64px; align-items: start; }
.study-page .guide-topic-heading,
.study-page .guide-topic-content { min-width: 0; }
.study-page .guide-topic-heading p:not(.home-eyebrow) { margin-bottom: 24px; }
.study-page .guide-topic-heading > a { display: inline; font-size: .9rem; font-weight: 500; line-height: 1.7; }
.study-page .guide-topic-heading > a span { display: inline-block; margin-left: 8px; }
.study-page .guide-topic-content > :last-child { margin-bottom: 0; }

.study-page .guide-steps { counter-reset: admission-step; list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 28px; }
.study-page .guide-steps li { counter-increment: admission-step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; margin: 0; padding: 0; }
.study-page .guide-steps li::before { content: counter(admission-step, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; background: var(--study-tint); color: var(--ef-teal); font-size: .8rem; font-weight: 600; border-radius: 50%; }
.study-page .guide-steps p,
.study-page .guide-checklist p { margin: 0; }
.study-page .guide-checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 24px; }
.study-page .guide-checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 0; margin: 0; }
.study-page .guide-checklist i { display: grid; place-items: center; width: 24px; height: 28px; color: var(--ef-teal); font-size: .95rem; }
.study-page .study-guide .guide-note { padding: 18px 22px; border: 0; border-radius: 4px; background: #fff !important; color: #465b5e; font-size: .875rem; }
.study-page .study-guide .guide-source { margin-top: 24px; color: #657577; }
.study-page .study-guide .guide-source,
.study-page .study-guide .guide-source a { font-size: .8rem; line-height: 1.7; }

.study-page .tuition-table { margin: 0 0 24px; color: var(--ef-ink); }
.study-page .tuition-table caption { margin-bottom: 18px; font-size: .9rem; text-align: left; }
.study-page .tuition-table thead { background: var(--study-tint); }
.study-page .tuition-table th,
.study-page .tuition-table td { padding: 18px 16px; border-color: #e3ebe8; line-height: 1.55; }
.study-page .tuition-table thead th { font-size: .8rem; font-weight: 600; }
.study-page .tuition-table tbody th { font-size: .9rem; font-weight: 500; }
.study-page .tuition-table td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ef-teal); }
.study-page .budget-breakdown { margin: 0 0 24px; }
.study-page .budget-breakdown > div { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 20px; border: 0; }
.study-page .budget-breakdown > div:nth-child(odd) { background: #fff; }
.study-page .budget-breakdown dt { color: #465b5e; }
.study-page .budget-breakdown dd { color: var(--ef-teal); font-variant-numeric: tabular-nums; }

.study-page .guide-closing { padding: 28px 24px 0; background: #fff; }
.study-page .guide-closing p { margin: 0; color: #657577; font-size: .8rem; line-height: 1.7; }
.study-page .consultation-band { padding: 40px 24px 64px; background: #fff; border: 0; }
.study-page .consultation-band > .consultation-layout { gap: 64px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr); align-items: start; }
.study-page .consultation-band .consultation-action { padding: 0; border: 0; }
.study-page .consultation-band h2 { font-size: 2.25rem; font-weight: 500 !important; line-height: 1.25; }

/* Match the page's typography to the established section hierarchy. */
.study-page main h1,
.study-page main h2,
.study-page main h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}
.study-page .study-page-header h1 {
  margin: 0 0 18px;
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.study-page .study-page-header-copy > p:last-child,
.study-page .consultation-action p {
  max-width: 65ch;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}
.study-page main .home-eyebrow {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid var(--ef-teal);
  color: var(--ef-teal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}
.study-page main .home-eyebrow::before,
.study-page main .home-eyebrow::after { content: none; display: none; }
.study-page .study-page-header .home-eyebrow { margin-top: 32px; }

@media (max-width: 1100px) {
  .study-page { --study-header-height: 73px; }
  .study-page .study-benefits h3 { min-height: 3em; }
  .study-page .guide-topic-layout,
  .study-page .consultation-band > .consultation-layout { gap: 40px; }
  .study-page .guide-topic-links { gap: 4px; }
  .study-page .guide-topic-links a { padding-inline: 16px; }
}

@media (max-width: 900px) {
  .study-page .guide-topic-layout,
  .study-page .consultation-band > .consultation-layout { grid-template-columns: 1fr; gap: 30px; }
  .study-page .guide-topic-heading p:not(.home-eyebrow) { margin-bottom: 16px; }
  .study-page .guide-nav-label { display: none; }
  .study-page .guide-topic-links { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .study-page .study-benefits { gap: 28px; }
}

@media (max-width: 768px) {
  .study-page .study-page-header h1 { font-size: 2rem; line-height: 1.25; }
  .study-page main .home-eyebrow { margin-bottom: 20px; }
  .study-page .study-guide > .guide-overview { width: calc(100% - 40px); padding: 44px 0; }
  .study-page .study-guide h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
  .study-page .study-guide h3 { font-size: 1.0625rem; }
  .study-page .study-benefits { margin-top: 30px; gap: 28px; grid-template-columns: 1fr; }
  .study-page .study-benefits > div { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
  .study-page .benefit-icon { width: 32px; height: 28px; font-size: 1.35rem; grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .study-page .study-benefits h3 { min-height: 0; }
  .study-page .study-benefits h3,
  .study-page .study-benefits p,
  .study-page .study-benefits a { grid-column: 2; }
  .study-page .study-benefits p { margin-bottom: 12px; }
  .study-page .guide-topic { padding: 44px 20px; }
  .study-page .guide-jump-links { padding-inline: 20px; }
  .study-page .guide-topic-links a { min-height: 52px; padding: 12px 8px; font-size: .8rem; }
  .study-page .guide-topic-links a::after { left: 8px; right: 8px; }
  .study-page .guide-steps { gap: 24px; }
  .study-page .guide-steps li { gap: 14px; }
  .study-page .guide-note { padding: 16px 18px; }
  .study-page .tuition-table th,
  .study-page .tuition-table td { padding: 14px 8px; font-size: .85rem; }
  .study-page .tuition-table thead th { font-size: .75rem; }
  .study-page .budget-breakdown > div { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .study-page .guide-closing { padding: 24px 20px 0; }
  .study-page .consultation-band { padding: 30px 20px 48px; }
  .study-page .consultation-band > .consultation-layout { gap: 24px; }
  .study-page .consultation-band h2 { font-size: 1.75rem !important; }
  .study-page .consultation-band a { max-width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .study-page { --study-nav-height: 88px; }
  .study-page .guide-topic-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-page .guide-topic-links a { min-height: 44px; padding-block: 10px; }
  .study-page .tuition-table thead th:nth-child(1) { width: 34%; }
  .study-page .tuition-table thead th:nth-child(2) { width: 28%; }
  .study-page .tuition-table thead th:nth-child(3) { width: 38%; }
  .study-page .tuition-table th,
  .study-page .tuition-table td { padding-inline: 6px; }
  .study-page .tuition-table tbody th { font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .study-page .guide-topic-links a,
  .study-page .guide-topic-links a::after { transition: none; }
}
