/* KIHPS home admission pathway options: 1 Stepper · 2 Chart · 3 Grid. One shows via :root[data-pathway]. */
.av { display: none; }
:root[data-pathway="1"] .av-1, :root[data-pathway="2"] .av-2, :root[data-pathway="3"] .av-3 { display: block; }
.hero-switching .av { animation: heroIn .7s var(--ease); }
.av-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .side.av-side { justify-items: end; align-self: end; padding-bottom: 10px; }

/* shared fee card */
.av-fee { display: grid; align-content: start; gap: 4px; padding: 22px; border-radius: 22px; background: var(--abyss); color: #c3d1e2; position: relative; overflow: hidden; }
.av-fee::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; opacity: .07;
  background: linear-gradient(#fff, #fff) center / 100% 30% no-repeat, linear-gradient(#fff, #fff) center / 30% 100% no-repeat; transform: rotate(12deg); }
.av-fee-h { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 calc(11.5px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.av-fee-h svg { width: 16px; height: 16px; }
.av-fee > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.av-fee > div span { font-size: calc(13.5px * var(--ts, 1)); }
.av-fee > div b { font: 700 calc(24px * var(--hs, 1))/1 var(--serif); color: #fff; white-space: nowrap; }
.av-fee .btn { justify-self: start; margin-top: 14px; }

/* ---------- 1 · Stepper */
.sn-track { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 22px; }
.sn-line { position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 30px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sn-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--brand)); transform-origin: left; transform: scaleX(var(--f, 0));
  transition: transform .8s cubic-bezier(.3,1,.3,1); }
.sn { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 2px; }
.sn-dot { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted);
  border: 2px solid var(--line); transition: background .45s, color .45s, border-color .45s, transform .6s cubic-bezier(.34,1.5,.5,1), box-shadow .45s; }
.sn-dot svg { width: 25px; height: 25px; }
.sn-dot i { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); font: 700 calc(10.5px * var(--ts, 1))/1 var(--sans); font-style: normal; color: var(--muted); transition: background .4s, color .4s, border-color .4s; }
.sn:hover .sn-dot { transform: translateY(-4px); border-color: var(--sky-200); color: var(--navy); }
.sn.done .sn-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.sn.on .sn-dot { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(204,29,41,.13); }
.sn.on .sn-dot i, .sn.done .sn-dot i { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: 0 4px 10px -4px rgba(3,26,56,.35); }
.sn-t { font-size: calc(13.5px * var(--ts, 1)); font-weight: 600; line-height: 1.3; color: var(--muted); transition: color .35s; }
.sn.on .sn-t, .sn.done .sn-t { color: var(--ink); }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: stretch; }
.sp-card { position: relative; display: flex; align-items: center; gap: 20px; padding: 28px 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sp-stack { flex: 1; display: grid; }
.sp { grid-area: 1 / 1; opacity: 0; transform: translateX(26px); pointer-events: none; transition: opacity .45s, transform .6s var(--ease); }
.sp.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .06s; }
.sp.out { transform: translateX(-26px); }
.sp-n { font: 600 calc(11.5px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.sp h3 { margin: 10px 0 8px; font-size: calc(clamp(26px, 2.6vw, 36px) * var(--hs, 1)); }
.sp p { margin: 0; font-size: calc(16px * var(--ts, 1)); line-height: 1.6; color: var(--muted); max-width: 40em; }
.sp-nav { display: flex; gap: 10px; flex: none; }
.sp-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy);
  transition: background .3s, color .3s, border-color .3s, transform .5s cubic-bezier(.34,1.5,.5,1); }
.sp-btn svg { width: 20px; height: 20px; }
.sp-btn.prev svg { transform: rotate(180deg); }
.sp-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); }

/* ---------- 2 · Chart (clipboard) */
.clip-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.clip { position: relative; padding: 34px 30px 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.clip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 37px, color-mix(in srgb, var(--sky-100) 55%, transparent) 37px 38px); opacity: .5;
  -webkit-mask-image: linear-gradient(transparent 90px, #000 140px); mask-image: linear-gradient(transparent 90px, #000 140px); }
.clip-clamp { position: absolute; left: 50%; top: -14px; width: 120px; height: 30px; margin-left: -60px; border-radius: 10px;
  background: linear-gradient(180deg, #8ea3bb, #5b6979); box-shadow: 0 6px 12px -6px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.35); }
.clip-clamp::after { content: ""; position: absolute; left: 50%; top: 8px; width: 34px; height: 8px; margin-left: -17px; border-radius: 6px; background: var(--paper); opacity: .8; }
.clip-head { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 2px solid var(--line); }
.clip-cross { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red); flex: none; }
.clip-cross svg { width: 24px; height: 24px; }
.clip-cross svg path { fill: #fff; stroke: none; }
.clip-head small { display: block; font: 600 calc(11px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clip-head b { display: block; margin-top: 5px; font: 700 calc(20px * var(--hs, 1))/1.1 var(--serif); color: var(--ink); }
.clip-prog { margin-left: auto; padding: 8px 14px; border-radius: 99px; background: var(--sky-50); color: var(--navy); font-size: calc(13px * var(--ts, 1)); font-weight: 600; white-space: nowrap; }
.clip-head .clip-prog b { display: inline; margin: 0; font: 700 calc(16px * var(--ts, 1))/1 var(--sans); color: var(--navy); }
.ck-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.ck { display: flex; gap: 14px; align-items: flex-start; padding: 14px 6px; border-radius: 14px; transition: background .3s, transform .5s cubic-bezier(.34,1.4,.5,1); }
.ck:hover { background: var(--frost); transform: translateX(4px); }
.ck-box { flex: none; width: 30px; height: 30px; margin-top: 2px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; background: var(--card);
  transition: background .45s, border-color .45s, transform .55s cubic-bezier(.34,1.7,.5,1); }
.ck-box svg { width: 17px; height: 17px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s .15s var(--ease); }
.ck.ticked .ck-box { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.ck.ticked .ck-box svg { stroke-dashoffset: 0; }
.ck-t b { display: block; font-weight: 600; font-size: calc(16px * var(--ts, 1)); color: var(--ink); }
.ck-t b i { font-style: normal; font-size: calc(12px * var(--ts, 1)); font-weight: 700; color: var(--red); margin-right: 8px; }
.ck-t small { display: block; margin-top: 3px; font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--muted); }
.clip-side { display: grid; gap: 14px; }
.av-docs { display: flex; gap: 14px; padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.av-docs > svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--sky-50); color: var(--navy); }
.av-docs b { display: block; font-weight: 600; color: var(--ink); }
.av-docs small { display: block; margin: 4px 0 10px; font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--muted); }

/* ---------- 3 · Grid */
.gt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gt { position: relative; padding: 22px; min-height: 200px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); overflow: hidden; outline: 0;
  transition: transform .6s cubic-bezier(.34,1.4,.5,1), box-shadow .5s, border-color .4s, background .5s; }
.gt::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.gt:hover, .gt:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--sky-200); }
.gt:hover::before, .gt:focus-visible::before { transform: scaleX(1); }
.gt-n { position: absolute; top: 12px; right: 16px; font: 700 calc(54px * var(--hs, 1))/1 var(--serif); color: color-mix(in srgb, var(--sky-100) 80%, transparent); transition: color .5s, transform .6s var(--ease); }
.gt:hover .gt-n { color: rgba(204,29,41,.18); transform: scale(1.1) rotate(-4deg); }
.gt-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-50); color: var(--navy); margin-bottom: 16px;
  transition: background .4s, color .4s, transform .6s cubic-bezier(.4,1.6,.5,1); }
.gt-ico svg { width: 24px; height: 24px; }
.gt:hover .gt-ico { background: var(--red); color: #fff; transform: rotate(-10deg) scale(1.06); }
.gt b { display: block; font: 700 calc(21px * var(--hs, 1))/1.2 var(--serif); color: var(--ink); }
.gt p { margin: 8px 0 0; font-size: calc(14px * var(--ts, 1)); line-height: 1.55; color: var(--muted); }
.gt-fee { padding: 0; border: 0; background: none; }
.gt-fee .av-fee { height: 100%; }
.gt-fee:hover { box-shadow: none; }
.gt-fee::before { display: none; }

@media (max-width: 1020px) {
  .section-head .side.av-side { justify-items: start; }
  .sn-track { grid-template-columns: repeat(7, 84px); overflow-x: auto; padding: 16px 8px 8px; scrollbar-width: none; }
  .sn-line { left: 50px; right: auto; top: 46px; width: calc(84px * 6 + 36px); }
  .sp-row, .clip-row { grid-template-columns: 1fr; }
  .gt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .sn-dot { width: 54px; height: 54px; }
  .sn-line { top: 41px; }
  .sp-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .clip { padding: 30px 16px 10px; }
  .clip-head { flex-wrap: wrap; }
  .clip-prog { margin-left: 60px; }
  .ck-list { grid-template-columns: 1fr; }
  .gt-grid { grid-template-columns: 1fr; }
  .gt { min-height: 0; }
}
