/* PlacementFlow for medical schools, stage one. Built on the shared home.css tokens and nav; prefix ms-.
   One placement, seen from both sides: the school's planning on the left, the student's Today on the right. */

body.ms { --ms-ground: #f1f4f8; --ms-rule: #e3e8f0; --ms-soft: #f7f9fc; --ms-tint: #eaf2fd; --ms-tint-b: #b8d0f6; --ms-blue-ink: #1559b0;
  --ms-amber-bg: #fff6e6; --ms-amber-b: #e3bd74; --ms-green: #137a40; --ms-green-bg: #e7f5ec;
  --ms-h1: clamp(42px, 5.5vw, 82px);
  --ms-ph-w: clamp(236px, 20.5vw, 292px); --ms-ws-r: clamp(150px, 15vw, 210px); --ms-ov: calc(var(--ms-ph-w) - var(--ms-ws-r));
  background: var(--ms-ground); overflow-x: clip; }
.ms ::selection { background: rgba(23, 104, 242, .22); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the nav: the live homepage's shape, with this page marked current */
html { scroll-padding-top: var(--nav-h); }
html.motion { scroll-behavior: smooth; }
body.ms .nav { overflow: visible; background: #fff; }

/* ---------------- the opening ---------------- */
.ms-open { padding: calc(var(--nav-h) + clamp(36px, 7.4vh, 84px)) 0 clamp(26px, 4.2vh, 44px); }
.ms-h1 { font-size: var(--ms-h1); line-height: 1.02; font-weight: 700; letter-spacing: -.036em; color: var(--ink); text-wrap: balance; }
.ms-l { display: block; }
.ms-l--day { color: var(--blue); }
.ms-under { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(18px, 3.2vh, 32px); }
.ms-lead { max-width: 47ch; font-size: clamp(18px, 1.42vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ms-acts { display: flex; align-items: center; flex: none; gap: 10px 22px; }
.ms-explore { color: var(--blue-hover); }
.ms-explore svg { width: 16px; height: 16px; }
.ms-explore:hover svg { transform: translateY(2px); }

/* ---------------- the run: a pinned stage, four steps on native scroll ---------------- */
.ms-track { position: relative; height: calc(100vh + 4.6 * 72vh); }
/* the pinned frame is the screen under the nav, and the stage takes what the caption and the note leave it. Each
   pane shows as much of its detail as the stage's own height allows (the container queries at the end), rather
   than guessing from the viewport, which a phone's toolbars keep changing */
.ms-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); container: ms-pin / size; }
.ms-pin-in { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; padding: 14px 0 12px; }

.ms-cap { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; min-height: 92px; padding-bottom: 16px; }
.ms-steps { display: grid; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; }
.ms-step { grid-area: 1 / 1; max-width: 64ch; transition: opacity .32s var(--ease-out), transform .42s var(--ease-out); }
.ms-step:not([aria-current]) { opacity: 0; transform: translateY(6px); pointer-events: none; }
.ms-step h3 { display: flex; align-items: baseline; gap: 11px; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.2; font-weight: 650; letter-spacing: -.018em; color: var(--ink); }
.ms-n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; transform: translateY(-2px); }
.ms-step p { margin-top: 5px; padding-left: 35px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.ms-ctl { box-sizing: border-box; display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 11px; background: #e6ebf2; }
.ms-ctl button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ms-ctl button:hover { color: var(--ink); }
.ms-ctl button[aria-current="step"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(7, 20, 38, .1), 0 4px 10px -6px rgba(7, 20, 38, .3); }

.ms-stage { position: relative; flex: 1 1 0; min-height: 0; max-height: 596px; container: ms-stage / size; }
.ms-note { flex: none; max-width: 64ch; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.ms-note--after { display: none; }

/* ---------------- the school's side: the admin workspace, in its own vocabulary ---------------- */
.ms-ws { position: absolute; inset: 0 var(--ms-ws-r) 0 0; display: grid; grid-template-columns: clamp(170px, 14.5vw, 204px) minmax(0, 1fr); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--sheet); color: var(--p-ink); font-size: 14px; line-height: 1.4; }
.ms-rail { padding: 16px 12px; background: var(--ms-soft); border-right: 1px solid var(--ms-rule); }
.ms-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.ms-brand b { color: var(--blue); font-weight: 600; }
.ms-mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 9.5px; font-style: normal; font-weight: 700; letter-spacing: -.02em; }
.ms-school { margin: 0 0 10px; padding: 2px 6px 12px; border-bottom: 1px solid var(--ms-rule); }
.ms-school b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--p-ink); }
.ms-school span { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 999px; background: var(--ms-tint); color: var(--ms-blue-ink); font-size: 11px; font-weight: 600; }
.ms-nav { list-style: none; margin: 0; padding: 0; }
.ms-nav li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: var(--p-slate); }
.ms-nav li svg { flex: none; width: 17px; height: 17px; }
.ms-nav li.is-on { background: var(--ms-tint); color: var(--ms-blue-ink); font-weight: 600; }

.ms-ws-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.ms-ws-bar { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--ms-rule); }
.ms-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--p-slate); white-space: nowrap; }
.ms-crumb i { font-style: normal; color: var(--p-slate); margin: 0 3px; }
.ms-crumb b { color: var(--p-ink); font-weight: 600; }
.ms-pills { display: flex; gap: 6px; }
.ms-pills span { padding: 3px 9px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--ms-rule); font-size: 12.5px; font-weight: 500; color: var(--p-ink); }
.ms-demo { margin-left: auto; margin-right: calc(var(--ms-ov) + 4px); font-size: 12px; color: var(--p-slate); white-space: nowrap; }

.ms-panes { position: relative; display: grid; min-height: 0; }
.ms-pane { grid-area: 1 / 1; min-width: 0; padding: 18px calc(var(--ms-ov) + 24px) 20px 22px; overflow: hidden; transition: opacity .34s var(--ease-out), transform .46s var(--ease-out), visibility 0s .46s; }
.ms-stage:not([data-step="1"]) .ms-pane[data-pane="1"], .ms-stage:not([data-step="2"]) .ms-pane[data-pane="2"],
.ms-stage:not([data-step="3"]) .ms-pane[data-pane="3"], .ms-stage:not([data-step="4"]) .ms-pane[data-pane="4"] { opacity: 0; transform: translateX(14px); visibility: hidden; }
.ms-stage[data-step] .ms-pane { transition-delay: 0s; }
.ms-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--p-slate); }
.ms-form-t { margin-top: 4px; font-size: 21px; line-height: 1.22; font-weight: 650; letter-spacing: -.018em; color: var(--p-ink); }
.ms-sub { margin-top: 3px; font-size: 13.5px; color: var(--p-slate); }
.ms-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .14s, box-shadow .2s, background .2s; }
.ms-btn--p { background: var(--blue); color: #fff; }
.ms-btn--s { background: #fff; color: var(--ms-blue-ink); box-shadow: inset 0 0 0 1px var(--ms-tint-b); }
.ms-btn--g { color: var(--p-slate); }
.ms-btn.is-press { transform: scale(.96); box-shadow: 0 0 0 4px rgba(23, 104, 242, .18); }
.ms-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ms-chip--draft { background: #eef1f5; color: var(--p-slate); }
.ms-chip--pub { background: var(--ms-green-bg); color: var(--ms-green); }

/* 1 · the annual placement timeline */
.ms-yr-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ms-yr-t { margin-top: 3px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--p-slate); }
.ms-yr-t b { font-weight: 650; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.ms-meta { margin-top: 2px; font-size: 12.5px; color: var(--p-slate); }
.ms-gaps { padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--ms-amber-bg); box-shadow: inset 0 0 0 1px var(--ms-amber-b); color: var(--amber); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .3s, color .3s, box-shadow .3s; }
.ms-gaps.is-clear { background: var(--ms-green-bg); box-shadow: none; color: var(--ms-green); }
.ms-pane-t { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--p-ink); }
.ms-tl { --lane-h: 104px; position: relative; margin-top: 8px; }
.ms-months { position: relative; height: 20px; margin-left: var(--lane-h); border-bottom: 1px solid var(--ms-rule); }
.ms-months span { position: absolute; left: calc(var(--x) * 1%); bottom: 4px; font-size: 11.5px; color: var(--p-slate); }
.ms-lanes { display: grid; gap: 6px; margin-top: 8px; }
.ms-lane { position: relative; display: grid; grid-template-columns: var(--lane-h) minmax(0, 1fr); align-items: stretch; min-height: 42px; }
.ms-lane-h { align-self: center; padding-right: 10px; font-size: 12.5px; font-weight: 600; color: var(--p-ink); }
.ms-lane .b { position: absolute; top: 0; bottom: 0; display: grid; align-content: center; gap: 1px; padding: 0 8px; border-radius: 7px; background: var(--ms-soft); box-shadow: inset 0 0 0 1px var(--ms-rule); font-style: normal; overflow: hidden; }
.ms-lane .b em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-lane .b small { font-size: 11px; color: var(--p-slate); font-variant-numeric: tabular-nums; }
.ms-lane .w1 { left: calc(var(--lane-h) + (100% - var(--lane-h)) * .072); width: calc((100% - var(--lane-h)) * .149 - 3px); }
.ms-lane .w2 { left: calc(var(--lane-h) + (100% - var(--lane-h)) * .238); width: calc((100% - var(--lane-h)) * .144 - 3px); }
.ms-lane .w3 { left: calc(var(--lane-h) + (100% - var(--lane-h)) * .392); width: calc((100% - var(--lane-h)) * .149 - 3px); }
.ms-lane .w4 { left: calc(var(--lane-h) + (100% - var(--lane-h)) * .702); width: calc((100% - var(--lane-h)) * .144 - 3px); }
.ms-lane .b.is-gap { background: var(--ms-amber-bg); box-shadow: inset 0 0 0 1px var(--ms-amber-b); }
.ms-lane .b.is-gap em, .ms-lane .b.is-gap small { color: var(--amber); }
.ms-short { display: none; }
.ms-wins { position: relative; height: 22px; margin: 6px 0 0 var(--lane-h); }
.ms-wins span { position: absolute; top: 4px; font-size: 11px; color: var(--p-slate); white-space: nowrap; }
.ms-wins .w1 { left: 7.2%; } .ms-wins .w2 { left: 23.8%; } .ms-wins .w3 { left: 39.2%; } .ms-wins .w4 { left: 70.2%; }
.ms-wins .is-sel { color: var(--amber); font-weight: 600; }
.ms-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--ms-rule); }
.ms-sel p { font-size: 13px; color: var(--p-slate); }
.ms-sel p b { color: var(--p-ink); font-weight: 600; margin-right: 4px; }
.ms-sel-w { flex: 1 1 200px; text-wrap: pretty; }
.ms-sel-w b { color: var(--amber) !important; }

/* 2 · the block's details */
.ms-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; }
.ms-fields dt { font-size: 12px; font-weight: 600; color: var(--p-slate); }
.ms-fields dd { margin: 5px 0 0; padding: 8px 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px #d8e0eb; font-size: 14px; color: var(--p-ink); }
.ms-form-a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ms-rule); }

/* 3 · assigning students */
.ms-as-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ms-as-n { font-size: 14px; color: var(--p-slate); white-space: nowrap; }
.ms-as-n b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.ms-as-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; padding: 10px 0; border-block: 1px solid var(--ms-rule); font-size: 13px; color: var(--p-slate); }
.ms-as-k b { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.ms-as-k .ms-btn { margin-left: auto; }
.ms-roster { list-style: none; margin: 6px 0 0; padding: 0; }
.ms-roster li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 26px; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid #eef2f7; font-size: 13.5px; }
.ms-roster li b { font-weight: 600; color: var(--p-ink); }
.ms-roster li span { font-size: 12.5px; color: var(--p-slate); }
.ms-roster li.is-you { background: linear-gradient(90deg, var(--ms-tint), rgba(234, 242, 253, 0) 80%); border-radius: 8px; }
.ms-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e7ecf3; color: var(--p-slate); font-size: 10.5px; font-style: normal; font-weight: 700; }
.ms-av--ink { background: var(--ink); color: #fff; width: 26px; height: 26px; font-size: 10px; }
.ms-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; color: transparent; transition: background .22s, color .22s, transform .3s var(--ease-out); }
.ms-ok svg { width: 13px; height: 13px; }
.ms-roster li.is-in .ms-ok { background: var(--ms-green); color: #fff; }
.ms-more { margin-top: 8px; font-size: 12.5px; color: var(--p-slate); }
.ms-m6, .ms-m4, .ms-m3 { display: none; }
@media (max-height: 860px) { .ms-roster li:nth-child(n + 7) { display: none; } .ms-m8 { display: none; } .ms-m6 { display: inline; } }
@media (max-height: 780px), (max-width: 760px) { .ms-roster li:nth-child(n + 5) { display: none; } .ms-m8, .ms-m6 { display: none; } .ms-m4 { display: inline; } }

/* 4 · the block is published */
.ms-sum { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 16px; }
.ms-sum dt { font-size: 12px; font-weight: 600; color: var(--p-slate); }
.ms-sum dd { margin: 3px 0 0; font-size: 14.5px; color: var(--p-ink); }
.ms-life { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--ms-soft); box-shadow: inset 0 0 0 1px var(--ms-rule); }
.ms-life-s { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--p-slate); }
.ms-life-a { display: flex; gap: 8px; margin-top: 12px; }
.ms-life-p, .ms-life-a--p { display: none; }
.ms-stage.is-pub .ms-life-d, .ms-stage.is-pub .ms-life-a--d { display: none; }
.ms-stage.is-pub .ms-life-p { display: inline-flex; }
.ms-stage.is-pub .ms-life-a--p { display: flex; }

/* ---------------- the student's side: Priya's Today ---------------- */
.ms-phone { position: absolute; right: 0; top: 30px; bottom: 0; width: var(--ms-ph-w); }
.ms-ph-in { position: absolute; inset: 0 0 26px; overflow: hidden; border: 9px solid #0e1728; border-bottom: 0; border-radius: 38px 38px 0 0; background: #fff; box-shadow: var(--pop);
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.ms-ph-sbar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 20px; font-size: 12.5px; color: var(--p-ink); }
.ms-ph-si { width: 52px; height: 12px; color: var(--p-ink); }
.ms-ph-abar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; border-bottom: 1px solid var(--ms-rule); }
.ms-ph-abar > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--p-ink); }
.ms-ph-r { display: flex; align-items: center; gap: 12px; color: var(--p-slate); }
.ms-ph-r svg { width: 16px; height: 16px; }
.ms-ph-scr { padding: 12px 14px; }
.ms-ph-greet { font-size: 12.5px; color: var(--p-slate); }
.ms-ph-greet b { color: var(--p-ink); font-weight: 600; }
.ms-ph-date { font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: var(--p-ink); }
.ms-ph-hero { position: relative; display: grid; margin-top: 12px; padding: 12px 0 13px; border-bottom: 1px solid var(--ms-rule); }
.ms-ph-none, .ms-ph-set { grid-area: 1 / 1; transition: opacity .3s var(--ease-out); }
.ms-ph-set { opacity: 0; }
.ms-stage.is-landed .ms-ph-none { opacity: 0; transition: none; }
.ms-stage.is-landed .ms-ph-set { opacity: 1; transition: none; }
.ms-ph-kick { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p-slate); }
.ms-ph-kick i { width: 6px; height: 6px; border-radius: 50%; background: var(--site); }
.ms-ph-ht { margin-top: 3px; font-size: 17px; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; color: var(--p-ink); }
.ms-ph-none .ms-ph-ht { font-size: 16px; }
.ms-ph-hs { margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--p-slate); }
.ms-nw { white-space: nowrap; }
.ms-ph-now { padding: 12px 0; }
.ms-ph-nl { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--p-slate); }
.ms-ph-nt { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--p-ink); }
.ms-ph-cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12px; color: var(--muted); }
/* the landing: the placement arrives in the hero, lit once */
.ms-stage.is-landed .ms-ph-hero::before { content: ""; position: absolute; inset: 0 -8px; border-radius: 10px; background: var(--ms-tint); opacity: 0; z-index: -1; }
html.motion .ms-stage.is-landed .ms-ph-hero::before { animation: ms-lit 1.6s var(--ease-out) both; }
@keyframes ms-lit { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
.ms-ph-hero { isolation: isolate; }

/* the flyer: the published block's title travelling into the student's Today */
/* the block itself travelling: the published cell, as one tinted box, from the year's timeline to her Today */
.ms-fly { position: absolute; z-index: 5; border-radius: 7px; background: var(--ms-tint); box-shadow: inset 0 0 0 1px var(--ms-tint-b), 0 14px 30px -14px rgba(21, 89, 176, .45); pointer-events: none; }

/* ---------------- shared by the chapters below ---------------- */
.ms-h2 { max-width: 18ch; font-size: clamp(34px, 3.9vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -.032em; color: var(--ink); text-wrap: balance; }
.ms-mand { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: #fdf3e2; color: #8a5208; font-size: 12px; font-weight: 600; }

/* filling each pane with the product's own detail */
.ms-miss { margin-top: 14px; }
.ms-miss-h { font-size: 13px; font-weight: 600; color: var(--p-ink); }
.ms-miss-h b { color: var(--amber); margin-left: 4px; font-variant-numeric: tabular-nums; }
.ms-miss-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 13px; color: var(--p-ink); }
.ms-miss-l span { display: inline-flex; align-items: center; gap: 7px; }
.ms-miss-l .ms-av { width: 24px; height: 24px; font-size: 9.5px; }
.ms-miss-l em { font-style: normal; font-size: 12.5px; color: var(--p-slate); }
.ms-yr-back { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ms-rule); }
.ms-yr-back .ms-k { grid-column: 1; }
.ms-yr-back .ms-yr-t { grid-column: 1; }
.ms-yr-back .ms-gaps { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ms-yr-a, .ms-gaps--a { display: none; }
.ms-stage.is-pub .ms-yr-b, .ms-stage.is-pub .ms-gaps--b { display: none; }
.ms-stage.is-pub .ms-yr-a { display: inline; }
.ms-stage.is-pub .ms-gaps--a { display: block; }
html.motion .ms-stage.is-pub .ms-yr-a, html.motion .ms-stage.is-pub .ms-gaps--a { animation: ms-in .5s var(--ease-out) .25s both; }
@keyframes ms-in { from { opacity: 0; transform: translateY(4px); } }
.ms-tl--one { margin-top: 12px; }
.ms-lane .b.is-filled { display: none; background: var(--ms-tint); box-shadow: inset 0 0 0 1px var(--ms-tint-b); }
.ms-lane .b.is-filled em, .ms-lane .b.is-filled small { color: var(--ms-blue-ink); }
.ms-stage.is-pub .ms-lane .b.is-filled { display: grid; }
.ms-stage.is-pub .ms-lane .b.is-draftcell { display: none; }
.ms-wins .is-done { color: var(--ms-blue-ink); }
html.motion .ms-stage.is-pub .ms-lane .b.is-filled { animation: ms-in .3s var(--ease-out) both; }
.no-js .ms-lane .b.is-filled { display: grid; } .no-js .ms-lane .b.is-draftcell { display: none; }
.no-js .ms-ph-set { opacity: 1; } .no-js .ms-ph-none { opacity: 0; }

/* ---------------- motion off, script off ---------------- */
html.reduce .ms-step, html.reduce .ms-pane, html.reduce .ms-ph-none, html.reduce .ms-ph-set, html.reduce .ms-ok, html.reduce .ms-phone { transition: none; }
.no-js .ms-track { height: auto; }
.no-js .ms-pin { position: static; height: auto; }
.no-js .ms-pin, .no-js .ms-stage { container-type: normal; }
.no-js .ms-pin-in { height: auto; }
.no-js .ms-stage { flex: none; height: 560px; }
.no-js .ms-steps { gap: 18px; }
.no-js .ms-step { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
.no-js .ms-ctl { display: none; }
.no-js .ms-stage { margin-top: 24px; }
/* without the script the stage shows where the steps end: the block published, and on Priya's Today */
.no-js .ms-stage .ms-pane { opacity: 0; visibility: hidden; }
.no-js .ms-stage .ms-pane[data-pane="4"] { opacity: 1; visibility: visible; transform: none; }
.no-js .ms-life-d, .no-js .ms-life-a--d, .no-js .ms-ph-none, .no-js .ms-yr-b, .no-js .ms-gaps--b { display: none; }
.no-js .ms-yr-a { display: inline; } .no-js .ms-gaps--a { display: block; }
.no-js .ms-life-p { display: inline-flex; } .no-js .ms-life-a--p { display: flex; }
.no-js .ms-ph-set { opacity: 1; }

/* ---------------- widths ---------------- */
@media (max-width: 1199px) {
  .ms-lane .b em { display: none; }
  .ms-lane .b { padding: 0 4px; justify-items: center; }
  .ms-lane .b.is-gap small { display: none; }
  .ms-lane .b.is-gap .ms-short { display: block; font-size: 11.5px; font-weight: 600; color: var(--amber); }
  .ms-cap { flex-wrap: wrap; }
  .ms-ctl { order: -1; }
  .ms-under { flex-wrap: wrap; }
  .ms-fields { gap: 10px 12px; }
}
@media (max-width: 1100px) {
  body.ms { --ms-ws-r: clamp(120px, 17vw, 180px); }
  .ms-ws { grid-template-columns: 54px minmax(0, 1fr); }
  .ms-rail { padding: 14px 8px; }
  .ms-brand { padding-bottom: 10px; font-size: 0; }
  .ms-brand .ms-mk { font-size: 9.5px; }
  .ms-school { display: none; }
  .ms-nav li { justify-content: center; padding: 9px 0; font-size: 0; }
  .ms-nav li svg { width: 18px; height: 18px; }
  .ms-pills { display: none; }
}
@media (max-width: 760px) {
  body.ms { --ms-h1: clamp(36px, 10.6vw, 46px); }
  .ms-open { padding-top: calc(var(--nav-h) + 30px); }
  .ms-lead { font-size: 17px; }
  .ms-acts { flex-wrap: wrap; width: 100%; }
  .ms-acts .btn { flex: 1 1 100%; }
  .ms-track { height: calc(100svh + 4.6 * 80svh); }
  .ms-pin { height: calc(100svh - var(--nav-h)); }
  .ms-pin-in { padding: 10px 0; }
  .ms-cap { display: grid; gap: 10px; min-height: 0; padding-bottom: 10px; }
  /* the note follows the run on a phone, so the pinned frame keeps its height for the product */
  .ms-pin-in > .ms-note { display: none; }
  .ms-note--after { display: block; margin-top: 0; padding: 12px 0 28px; font-size: 12px; }
  .ms-ctl { width: 100%; }
  .ms-ctl button { flex: 1; min-height: 44px; padding: 0 4px; font-size: 13px; }
  .ms-step h3 { font-size: 18px; }
  .ms-step p { padding-left: 0; font-size: 14.5px; line-height: 1.45; }
  body.ms { --ms-ws-r: 0px; --ms-ov: 0px; }
  .ms-ws { grid-template-columns: minmax(0, 1fr); }
  .ms-rail { display: none; }
  .ms-ws-bar { min-height: 38px; padding: 0 14px; }
  .ms-crumb { font-size: 12.5px; }
  .ms-pane { padding: 12px 14px 14px; }
  .ms-form-t { font-size: 18px; }
  .ms-btn { min-height: 32px; }
  /* 1: the year and its timeline, the gap and the action; the rest returns when the stage has the room */
  .ms-meta, .ms-pane-t, .ms-sel-w, .ms-miss, .ms-sel > p:first-child { display: none; }
  .ms-yr-t { font-size: 17px; }
  .ms-tl { --lane-h: 78px; margin-top: 10px; }
  .ms-months { height: 18px; }
  .ms-lanes { gap: 4px; margin-top: 6px; }
  .ms-lane { min-height: 32px; }
  .ms-lane-h { font-size: 11.5px; line-height: 1.3; }
  .ms-lane .b em { display: none; }
  .ms-lane .b { padding: 0 4px; justify-items: center; }
  .ms-lane .b small { font-size: 10.5px; }
  .ms-lane .b.is-gap small { display: none; }
  .ms-lane .b.is-gap .ms-short { display: block; font-size: 11px; font-weight: 600; color: var(--amber); }
  .ms-wins { height: 18px; margin-top: 4px; }
  .ms-wins span { top: 2px; }
  .ms-wins span:not(.is-sel) { display: none; }
  .ms-sel { margin-top: 8px; padding-top: 10px; }
  /* 2: the fields, Capacity and Supervisor side by side; the form's own heading returns with room */
  .ms-pane--form .ms-k, .ms-pane--form .ms-form-t, .ms-f-py { display: none; }
  .ms-fields { gap: 6px 10px; margin-top: 0; }
  .ms-fields > div { grid-column: 1 / -1; }
  .ms-fields > div:nth-child(5), .ms-fields > .ms-f-sup { grid-column: auto; }
  .ms-fields dd { margin-top: 4px; padding: 5px 10px; font-size: 13.5px; }
  .ms-form-a { margin-top: 10px; padding-top: 10px; }
  /* 3: three names stand for the twelve places */
  .ms-pane--assign .ms-sub { display: none; }
  .ms-as-k { padding: 8px 0; }
  .ms-as-k .ms-btn { margin-left: 0; }
  .ms-roster li { padding: 5px 2px; }
  .ms-roster li:nth-child(4) { display: none; }
  .ms-m4 { display: none; } .ms-m3 { display: inline; }
  .ms-more { margin-top: 6px; }
  /* 4: the status and the year; the phone rises over the rest */
  .ms-sum, .ms-tl--one { display: none; }
  .ms-life { margin-top: 12px; padding: 12px 14px; }
  .ms-life-a { margin-top: 10px; }
  .ms-yr-back { margin-top: 12px; padding-top: 10px; }
  .ms-stage.is-landed .ms-ws::after { content: ""; position: absolute; inset: 0; background: rgba(241, 244, 248, .9); }
  .ms-ph-cap { bottom: 2px; }
  /* on a phone the student's side takes over the frame when the block is published */
  .ms-phone { top: 12px; right: 50%; width: min(272px, 74vw); transform: translate(50%, 16px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s; }
  .ms-stage.is-landed .ms-phone { opacity: 1; visibility: visible; transform: translate(50%, 0); transition-delay: 0s; }
  /* without the script, the stage stands on its own at the end state */
  .no-js .ms-stage { height: 460px; }
  .no-js .ms-phone { opacity: 1; visibility: visible; transform: translate(50%, 0); }
  .no-js .ms-ws::after { content: ""; position: absolute; inset: 0; background: rgba(241, 244, 248, .9); }
}
@media (min-width: 761px) and (max-height: 820px) {
  .ms-miss { display: none; }
  .ms-note { font-size: 12.5px; margin-top: 10px; }
  body.ms { --ms-h1: clamp(40px, 4.8vw, 66px); }
  .ms-open { padding-top: calc(var(--nav-h) + 40px); }
  .ms-cap { min-height: 80px; }
  .ms-step p { font-size: 15px; }
  .ms-tl { --lane-h: 96px; }
  .ms-lanes { gap: 4px; }
  .ms-lane { min-height: 36px; }
  .ms-fields { margin-top: 12px; gap: 8px 14px; }
  .ms-fields dd { padding: 6px 10px; }
}
/* a screen too short to pin the run (a phone on its side): the stage sits in the page, and its buttons step it */
@media (max-height: 480px) {
  .ms-track { height: auto; }
  .ms-pin { position: static; height: auto; container-type: normal; }
  .ms-pin-in { height: auto; }
  .ms-stage { flex: none; height: 440px; }
}

/* ---------------- the stage's own height ---------------- */
/* a phone's stage starts from the essentials and adds each pane's detail as its height allows */
@media (max-width: 760px) {
  @container ms-stage (min-height: 380px) { .ms-pane--form .ms-k { display: block; } .ms-fields { margin-top: 10px; } }
  @container ms-stage (min-height: 400px) { .ms-sel-w, .ms-pane--assign .ms-sub { display: block; } }
  @container ms-stage (min-height: 430px) { .ms-pane-t { display: block; } .ms-pane--form .ms-form-t { display: block; } .ms-sum { display: flex; } }
  @container ms-stage (min-height: 445px) { .ms-roster li:nth-child(4) { display: grid; } .ms-m4 { display: inline; } .ms-m3 { display: none; } }
  @container ms-stage (min-height: 470px) { .ms-meta { display: block; } }
  @container ms-stage (min-height: 520px) { .ms-sel > p:first-child, .ms-f-py { display: block; } }
  @container ms-stage (min-height: 596px) { .ms-miss { display: block; } }
  /* the shortest phones: the numbered captions carry the steps, and the step buttons give the stage their room */
  @container ms-pin (max-height: 540px) { .ms-ctl { display: none; } .ms-step h3 { font-size: 17px; } .ms-step p { font-size: 13.5px; } }
}
/* a wider stage starts from everything and sets detail aside as its height runs short */
@media (min-width: 761px) {
  @container ms-stage (max-height: 499px) {
    .ms-pane-t, .ms-pane--assign .ms-sub, .ms-sum { display: none; }
    .ms-lane { min-height: 32px; }
    .ms-sel { margin-top: 8px; padding-top: 10px; }
    .ms-life { margin-top: 12px; padding: 12px 14px; }
    .ms-life-a { margin-top: 10px; }
    .ms-yr-back { margin-top: 12px; padding-top: 10px; }
    .ms-fields { margin-top: 10px; }
  }
  @container ms-stage (max-height: 419px) {
    .ms-meta, .ms-pane--pub .ms-sub { display: none; }
    .ms-roster li:nth-child(4), .ms-m4 { display: none; } .ms-m3 { display: inline; }
  }
  @container ms-stage (max-height: 389px) {
    .ms-pane--form .ms-form-t, .ms-yr-back .ms-k { display: none; }
    .ms-tl--one { margin-top: 8px; }
  }
}
/* a tight stage: three of the four lanes and closer rows, and Priya's Today drops its greeting and caption, so her
   placement stays clear of the fade */
@container ms-stage (max-height: 379px) {
  .ms-ph-greet, .ms-ph-cap { display: none; }
  .ms-ph-in { bottom: 0; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
  .ms-pane--plan .ms-lane:nth-child(3) { display: none; }
  .ms-months { height: 16px; }
  .ms-as-k { margin-top: 8px; padding: 6px 0; }
  .ms-roster li { padding: 4px 2px; }
  .ms-fields dd { padding: 4px 10px; }
  .ms-form-a { margin-top: 8px; padding-top: 8px; }
}
