/* admissions.css — Admissions page only (loads after index.css) */

/* ---------- Sticky "On this page" bar ---------- */
.onpage {
  position: sticky;
  top: var(--nav-h, 86px);
  z-index: 150;
  width: 100%;
  background: rgba(247, 250, 252, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--section-border, rgba(26, 42, 74, 0.1));
  box-shadow: 0 4px 14px rgba(12, 30, 66, 0.06);
}
.onpage-inner {
  display: flex; align-items: center; gap: 0.3rem;
  max-width: 1180px; margin: 0 auto; padding: 0.55rem 1rem;
  overflow-x: auto; scrollbar-width: none;
}
.onpage-inner::-webkit-scrollbar { display: none; }
.onpage-label {
  flex: 0 0 auto; margin-right: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--section-muted, #64748b);
}
.onpage a {
  flex: 0 0 auto; padding: 0.42rem 0.85rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  color: var(--section-heading, #0c1e42);
  transition: background .15s ease, color .15s ease;
}
.onpage a:hover { background: var(--yellow-dim, rgba(245, 194, 0, 0.12)); }
.onpage a:focus-visible { outline: 2px solid #C9902A; outline-offset: 2px; }
.onpage a.is-active { background: #F5C200; color: #0c1e42; }
[data-theme="dark"] .onpage { background: rgba(8, 20, 36, 0.94); border-bottom-color: rgba(245, 194, 0, 0.22); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
[data-theme="dark"] .onpage a { color: #e4ecf5; }
[data-theme="dark"] .onpage a:hover { background: rgba(245, 194, 0, 0.16); }
[data-theme="dark"] .onpage a.is-active { background: #F5C200; color: #0c1e42; }
[data-theme="dark"] .onpage-label { color: rgba(232, 238, 245, 0.7); }
@media (max-width: 700px) { .onpage-label { display: none; } }

/* Anchored sections land below BOTH the site menu and this bar */
#nationals, #foreign, #english, #entrance, #scholarships, #payments {
  scroll-margin-top: calc(var(--nav-h, 86px) + 4.2rem);
}

/* ---------- Nationals: icon headings and check-mark lists ---------- */
.admit-grid .admit-card { border-top: 4px solid #F5C200; }
.admit-grid .admit-card h3 { display: flex; align-items: center; gap: 0.7rem; }
.admit-grid .req-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 12px;
  background: #F5C200; color: #0c1e42;
}
.admit-grid .req-icon svg { width: 1.2rem; height: 1.2rem; }
.admit-card .admit-checks { list-style: none; padding-left: 0; }
.admit-card .admit-checks > li { position: relative; margin: 0.5rem 0; padding-left: 1.8rem; }
.admit-card .admit-checks > li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.15rem; height: 1.15rem;
  background-color: #C9902A;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-theme="dark"] .admit-card .admit-checks > li::before { background-color: #F5C200; }
[data-theme="dark"] .admit-grid .admit-card { border-top-color: #F5C200; }

/* ---------- Foreign students: one show / hide block ---------- */
.admit-fold {
  margin: 2.2rem 0 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 4px solid #F5C200;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.admit-fold > summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem;
  min-height: 56px; padding: 0.9rem 1.3rem; cursor: pointer; list-style: none;
}
.admit-fold > summary::-webkit-details-marker { display: none; }
.admit-fold > summary .admit-heading { margin: 0; text-align: left; font-size: 1.15rem; }
.admit-fold-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: #F5C200; color: #0c1e42; font-weight: 700; font-size: 0.88rem;
}
.admit-fold-toggle::before { content: "Show details"; }
.admit-fold[open] .admit-fold-toggle::before { content: "Hide details"; }
.admit-fold-toggle::after {
  content: ""; width: 0.5em; height: 0.5em; margin-top: -0.2em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.admit-fold[open] .admit-fold-toggle::after { transform: rotate(-135deg); margin-top: 0.15em; }
.admit-fold > summary:hover .admit-fold-toggle { background: #ffd84a; }
.admit-fold > summary:focus-visible { outline: 3px solid #C9902A; outline-offset: -3px; }
.admit-fold-body { padding: 0 1.3rem 1.3rem; border-top: 1px dashed var(--card-border); }
.admit-fold-body .admit-card { box-shadow: none; }
[data-theme="dark"] .admit-fold { background: #12263c; border-color: rgba(232, 184, 75, 0.35); border-top-color: #F5C200; }
@media (prefers-reduced-motion: reduce) {
  .admit-fold-toggle::after, .onpage a { transition: none; }
}

/* UI/UX pass 2026-11-19 */
.admit-subheading { font-size: 1.05rem; }
.admit-sublist { margin: 0.35rem 0 0; padding-left: 1.1rem; list-style: disc; }
.admit-sublist li { margin: 0.2rem 0; }
.medal-badge { width: 46px; height: 46px; font-size: 0.58rem; letter-spacing: 0.3px; }
.schol-pct span, .discount-badge span { opacity: 1; }
.finance-note p { margin: 0 0 0.4rem; }
.finance-note ul { margin: 0; padding-left: 1.2rem; }
.finance-note li { margin: 0.15rem 0; }
.apply-steps { max-width: 900px; margin: 1.5rem auto 0.5rem; }
.apply-steps-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.apply-steps-list li {
  counter-increment: step; position: relative; padding: 1.1rem 1.1rem 1.1rem 3.6rem;
  background: var(--card-bg, #fff); border: 1px solid var(--card-border, rgba(12,30,66,.12));
  border-top: 4px solid #F5C200; border-radius: 14px; box-shadow: var(--card-shadow);
}
.apply-steps-list li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #0c1e42; color: #F5C200; font-weight: 800;
}
.apply-steps-list b { display: block; margin-bottom: 0.3rem; color: var(--section-heading, #0c1e42); }
.apply-steps-list span { display: block; font-size: 0.93rem; line-height: 1.5; color: var(--prose-body, #3d4f63); }
.apply-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 1.2rem 0 0; }
.apply-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.6rem 1.4rem;
  border-radius: 999px; background: #F5C200; color: #0c1e42; font-weight: 700; text-decoration: none;
}
.apply-cta:hover { background: #ffd23a; }
.apply-cta--ghost { background: transparent; color: var(--section-heading, #0c1e42); border: 2px solid #F5C200; }
.apply-cta--ghost:hover { background: rgba(245,194,0,.12); }
.apply-cta:focus-visible { outline: 3px solid #0c1e42; outline-offset: 3px; }
[data-theme="dark"] .apply-steps-list li { background: #12263c; border-color: rgba(232,184,75,.35); border-top-color: #F5C200; }
[data-theme="dark"] .apply-steps-list b { color: #f0e8d8; }
[data-theme="dark"] .apply-steps-list span { color: rgba(232,238,245,.85); }
[data-theme="dark"] .apply-cta--ghost { color: #f0e8d8; }
[data-theme="dark"] .apply-cta:focus-visible { outline-color: #F5C200; }
@media (max-width: 760px) { .apply-steps-list { grid-template-columns: 1fr; } }
html:not([data-theme="dark"]) .discount-special span { color: #7a5a10; }
