/* PlacementFlow public site — "Pieced together → connected" (Fable 5.2, 11 Nov 2026).

   One shared layer on top of the approved pages. Two elements only:

   1. The fragment (.tx-frag): medical school as it arrives today, in its own
      voice: a forwarded email, a group-chat message, a shared-drive path, a
      PDF form. On the homepage the wording is the approved "Instead of" list
      from Our Story; nothing here is a product claim.
   2. The line: the route that connects a fragment to its answer.

   Everything is additive. Without this file the approved page is unchanged.
   Without JavaScript every state below is static; with reduced motion the
   states still follow the reader, without transitions. */

/* ------------------------------------------------------------ the fragment */
.tx-frag {
  --tx-bg: #fff; --tx-fg: #16233f; --tx-soft: #5d6b84; --tx-edge: rgba(7, 20, 38, .1); --tx-accent: #1768f2;
  position: relative; display: inline-flex; align-items: flex-start; gap: 9px; max-width: 100%; box-sizing: border-box;
  padding: 8px 13px 8px 11px; border-radius: 10px; background: var(--tx-bg); color: var(--tx-fg);
  box-shadow: inset 0 0 0 1px var(--tx-edge), 0 1px 2px rgba(7, 20, 38, .05), 0 12px 28px -18px rgba(7, 20, 38, .32);
  font-size: 14px; line-height: 1.32; font-weight: 400; letter-spacing: -.003em; text-align: left; text-wrap: pretty;
}
.tx-frag svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--tx-accent); }
.tx-frag b { font-weight: 600; }
.tx-frag time { flex: none; margin-left: 4px; font-size: 12.5px; color: var(--tx-soft); font-variant-numeric: tabular-nums; }
.tx-frag-b { min-width: 0; }
/* a group-chat message: a bubble with one tight corner, the group above the words */
.tx-frag--chat { --tx-bg: #e9effb; --tx-edge: rgba(23, 104, 242, .14); border-radius: 14px 14px 14px 4px; padding: 8px 14px 9px; }
.tx-frag--chat .tx-who { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 600; color: var(--tx-soft); }
/* a note left for the next clinician */
.tx-frag--note { --tx-bg: #fbf2bd; --tx-edge: rgba(138, 110, 8, .16); --tx-fg: #3d3205; border-radius: 2px; padding: 9px 14px; }
/* a path in a shared drive */
.tx-frag--path { --tx-bg: #f1f4f9; --tx-accent: #5d6b84; }
.tx-frag--path i { padding: 0 .28em; color: var(--tx-soft); }
/* a form somebody attached once; a spreadsheet somebody emailed */
.tx-frag--pdf { --tx-accent: #d6453a; }
.tx-frag--sheet { --tx-accent: #137a40; }
.tx-label { font-size: 11.5px; line-height: 1; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #55647a); white-space: nowrap; }

/* ------------------------------------------------------------ homepage · the opening
   What the playing product moment replaces, joined to the statement that
   answers it. Three compositions, chosen by the room the screen has:

   - a large screen (1280 x 821 or more): all five on one line that ends at the
     statement, the playing one outlined and joined to the line;
   - anything smaller with the height for one more row: the playing one alone,
     as a quoted line under the statement, never as a chip, so it cannot be
     mistaken for a control;
   - a short screen: nothing. The approved opening, exactly.

   The first action stays the only white object in the field. Nothing here
   tilts, slides or travels: a fragment's moment changes its outline and the
   line, and a first scroll fades the whole group in the first seventh of the
   field's gathering (home.js reports that sequence; thread.js sets --q). */
.tx-pile { --q: 0; margin: 0; }
.plane .tx-pile { opacity: calc(1 - min(1, var(--q) * 7)); }
/* the page's own copy only receives the pointer, where there is something to choose */
.h-text > .h-copy .tx-pile { opacity: 0; pointer-events: none; }
.nav.is-solid ~ main .h-text > .h-copy .tx-pile { visibility: hidden; }

/* -- one quoted line, under the statement -- */
@media not all and (min-width: 1280px) and (min-height: 821px) {
  .tx-pile {
    display: block; box-sizing: border-box; height: calc(2 * 1.36em); margin-top: 12px; padding-left: 11px; overflow: hidden;
    border-left: 2px solid rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.36; color: #fff; text-wrap: pretty;
  }
  .tx-pile .tx-label { display: inline; margin-right: 7px; color: #fff; }
  .tx-f { display: none; }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"],
  .hero:has(#sc-updates:checked) .tx-f[data-s="updates"],
  .hero:has(#sc-learning:checked) .tx-f[data-s="learning"],
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"],
  .hero:has(#sc-future:checked) .tx-f[data-s="future"] { display: inline; }
  .tx-pile .tx-f-in { display: inline; padding: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: inherit; }
  .tx-pile .tx-f-in svg, .tx-pile .tx-f-in time, .tx-pile .tx-f-in .tx-who { display: none; }
  .tx-pile .tx-frag--path i { color: inherit; }
  html.motion .hero:has(#sc-placements:checked) .tx-f[data-s="placements"],
  html.motion .hero:has(#sc-updates:checked) .tx-f[data-s="updates"],
  html.motion .hero:has(#sc-learning:checked) .tx-f[data-s="learning"],
  html.motion .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"],
  html.motion .hero:has(#sc-future:checked) .tx-f[data-s="future"] { animation: tx-swap .45s ease .06s backwards; }
  html.motion .plane .tx-pile { animation: kt-up .7s cubic-bezier(.16, 1, .3, 1) 1.05s backwards; }
}
/* the statement keeps its place on the actions' baseline, now one row above the block's foot */
@media (max-width: 767px) and (min-height: 600px) { .hero .stmt { bottom: calc(15.8px - .175em + 49px); } }
@media (min-width: 768px) and (max-width: 1279px) and (min-height: 700px), (min-width: 1280px) and (min-height: 700px) and (max-height: 820px) {
  .tx-pile { height: 1.36em; white-space: nowrap; }
  .hero .stmt { bottom: calc(20.8px - .175em + 30px); }
}
/* a short screen keeps the approved opening exactly */
@media (max-width: 767px) and (max-height: 599px), (min-width: 768px) and (max-height: 699px) { .tx-pile { display: none; } }
@keyframes tx-swap { from { opacity: 0; } }

/* -- a large screen: five on one line that ends at the statement -- */
@media (min-width: 1280px) and (min-height: 821px) {
  .tx-pile {
    --tx-step: calc((100% - 66px) / 4); --tx-at: 0; --tx-mid: 17px;
    position: absolute; right: 0; top: calc(var(--nav-h) + var(--pad) - 34px); bottom: 64px; width: min(38%, 448px);
  }
  .h-text > .h-copy .tx-pile { pointer-events: auto; }
  /* the label opens the sentence the statement closes: "Instead of … Know your day." */
  .tx-pile .tx-label { position: absolute; right: 26px; top: 0; font-size: 15px; letter-spacing: -.005em; text-transform: none; color: #fff; }
  .tx-f { display: block; position: absolute; right: 26px; top: calc(32px + var(--i, 0) * var(--tx-step)); max-width: calc(100% - 26px); cursor: pointer; }
  .tx-f[data-s="placements"] { --i: 0; }
  .tx-f[data-s="updates"] { --i: 1; }
  .tx-f[data-s="learning"] { --i: 2; }
  .tx-f[data-s="opportunities"] { --i: 3; }
  .tx-f[data-s="future"] { --i: 4; }
  .tx-f-in {
    --tx-bg: rgba(7, 20, 38, .2); --tx-fg: #fff; --tx-soft: rgba(255, 255, 255, .82); --tx-edge: rgba(255, 255, 255, .2); --tx-accent: rgba(255, 255, 255, .9);
    display: flex; align-items: center; box-shadow: inset 0 0 0 1px var(--tx-edge);
  }
  .tx-f-in svg { margin-top: 0; }
  /* one line each, cut the way an inbox cuts a subject; the playing one is read whole */
  .tx-f-in .tx-frag-b, .tx-f-in .tx-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tx-f-in.tx-frag--chat .tx-who { color: var(--tx-soft); }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"] .tx-f-in,
  .hero:has(#sc-updates:checked) .tx-f[data-s="updates"] .tx-f-in,
  .hero:has(#sc-learning:checked) .tx-f[data-s="learning"] .tx-f-in,
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"] .tx-f-in,
  .hero:has(#sc-future:checked) .tx-f[data-s="future"] .tx-f-in {
    --tx-bg: rgba(7, 20, 38, .46); --tx-soft: rgba(255, 255, 255, .86); --tx-accent: #fff; align-items: flex-start;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .92), 0 14px 28px -18px rgba(7, 20, 38, .6);
  }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"] .tx-frag-b,
  .hero:has(#sc-updates:checked) .tx-f[data-s="updates"] .tx-frag-b,
  .hero:has(#sc-learning:checked) .tx-f[data-s="learning"] .tx-frag-b,
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"] .tx-frag-b,
  .hero:has(#sc-future:checked) .tx-f[data-s="future"] .tx-frag-b { white-space: normal; }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"] svg,
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"] svg { margin-top: 2px; }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"],
  .hero:has(#sc-updates:checked) .tx-f[data-s="updates"],
  .hero:has(#sc-learning:checked) .tx-f[data-s="learning"],
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"],
  .hero:has(#sc-future:checked) .tx-f[data-s="future"] { z-index: 2; }
  .hero:has(#sc-placements:checked) .tx-pile { --tx-at: 0; }
  .hero:has(#sc-updates:checked) .tx-pile { --tx-at: 1; }
  .hero:has(#sc-learning:checked) .tx-pile { --tx-at: 2; }
  .hero:has(#sc-opportunities:checked) .tx-pile { --tx-at: 3; }
  .hero:has(#sc-future:checked) .tx-pile { --tx-at: 4; }

  /* The line. A stop for each fragment; from the playing one it runs, solid, down to the statement.
     In the field it stands in for the five dashes, which would say the same thing a second time;
     once the field has gone, the page's own statement keeps its dashes, as approved. */
  .plane .stmt-r { visibility: hidden; }
  .tx-pile::before, .tx-pile::after { content: ""; position: absolute; right: 5px; width: 2px; border-radius: 1px; bottom: -12px; pointer-events: none; }
  .tx-pile::before { top: calc(32px + var(--tx-mid)); background: rgba(255, 255, 255, .26); }
  .tx-pile::after { top: calc(32px + var(--tx-mid) + var(--tx-at) * var(--tx-step)); background: #fff; }
  /* a stop sits at the first line's height, so a fragment that runs to two lines stays on the line */
  .tx-f::after {
    content: ""; position: absolute; right: -25px; top: var(--tx-mid); width: 10px; height: 10px; margin-top: -5px; box-sizing: border-box;
    border-radius: 50%; background: var(--blue, #1768f2); border: 2px solid rgba(255, 255, 255, .62);
  }
  .tx-f::before {
    content: ""; position: absolute; right: -16px; top: var(--tx-mid); width: 16px; height: 2px; margin-top: -1px; border-radius: 1px;
    background: #fff; opacity: 0;
  }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"]::after,
  .hero:has(#sc-updates:checked) .tx-f[data-s="updates"]::after,
  .hero:has(#sc-learning:checked) .tx-f[data-s="learning"]::after,
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"]::after,
  .hero:has(#sc-future:checked) .tx-f[data-s="future"]::after { background: #fff; border-color: #fff; }
  .hero:has(#sc-placements:checked) .tx-f[data-s="placements"]::before,
  .hero:has(#sc-updates:checked) .tx-f[data-s="updates"]::before,
  .hero:has(#sc-learning:checked) .tx-f[data-s="learning"]::before,
  .hero:has(#sc-opportunities:checked) .tx-f[data-s="opportunities"]::before,
  .hero:has(#sc-future:checked) .tx-f[data-s="future"]::before { opacity: 1; }

  /* the plane mirrors the pointer on the real copy beneath it */
  .hero:has(.h-text > .h-copy .tx-f[data-s="placements"]:hover) .plane .tx-f[data-s="placements"] .tx-f-in,
  .hero:has(.h-text > .h-copy .tx-f[data-s="updates"]:hover) .plane .tx-f[data-s="updates"] .tx-f-in,
  .hero:has(.h-text > .h-copy .tx-f[data-s="learning"]:hover) .plane .tx-f[data-s="learning"] .tx-f-in,
  .hero:has(.h-text > .h-copy .tx-f[data-s="opportunities"]:hover) .plane .tx-f[data-s="opportunities"] .tx-f-in,
  .hero:has(.h-text > .h-copy .tx-f[data-s="future"]:hover) .plane .tx-f[data-s="future"] .tx-f-in { --tx-bg: rgba(7, 20, 38, .36); --tx-edge: rgba(255, 255, 255, .5); }

  html.motion .tx-f-in { transition: background-color .3s ease, box-shadow .3s ease; }
  html.motion .tx-f::before { transition: opacity .3s ease; }
  html.motion .tx-f::after { transition: background-color .3s ease, border-color .3s ease; }
  html.motion .tx-pile::after { transition: top .5s cubic-bezier(.16, 1, .3, 1); }
  /* the opening: the pieces arrive after the words, then the line */
  html.motion .plane .tx-label { animation: kt-up .7s cubic-bezier(.16, 1, .3, 1) .98s backwards; }
  html.motion .plane .tx-f { animation: tx-land .72s cubic-bezier(.16, 1, .3, 1) calc(1.04s + var(--i, 0) * 80ms) backwards; }
  html.motion .plane .tx-pile::before, html.motion .plane .tx-pile::after { animation: tx-draw .7s cubic-bezier(.5, 0, .2, 1) 1.5s backwards; transform-origin: 50% 0; }
}
@keyframes tx-land { from { opacity: 0; translate: 0 14px; } }
@keyframes tx-draw { from { transform: scaleY(0); } }

/* ------------------------------------------------------------ homepage · the day
   A moment carries the fragment it replaces, at full strength while it is the
   moment being read. Once the moment has passed, the fragment is struck.
   Without JavaScript the fragments are simply struck. */
.tx-inst { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; }
.fv-beat:has(.tx-inst) { padding-bottom: clamp(40px, 7vh, 72px); }
.tx-inst .tx-frag-b { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(7, 20, 38, .5); }
html:not(.no-js) .tx-inst .tx-frag { opacity: .8; }
html:not(.no-js) .tx-inst .tx-frag-b { text-decoration-color: transparent; }
html:not(.no-js) .fv-beat.is-cur .tx-inst .tx-frag { opacity: 1; }
html:not(.no-js) .fv-beats:has(.fv-beat[data-at="3"].is-cur, .fv-beat[data-at="4"].is-cur) .fv-beat[data-at="2"] .tx-frag-b,
html:not(.no-js) .fv-beats:has(.fv-beat[data-at="4"].is-cur) .fv-beat[data-at="3"] .tx-frag-b { text-decoration-color: rgba(7, 20, 38, .5); }
html.motion .tx-inst .tx-frag { transition: opacity .4s ease; }
html.motion .tx-inst .tx-frag-b { transition: text-decoration-color .34s ease; }
/* the qualifier sits with the claim it qualifies */
.tx-pilot { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted, #55647a); }
.tx-pilot::before { content: ""; flex: none; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; border: 2px solid currentColor; transform: translateY(-1px); }

/* The day's line: its stops are the times, and it fills as the day is read. Drawn only where
   the page's margin can hold it (48 px or more): never against, or past, the edge of the screen. */
@media (min-width: 1312px) {
  .fv-beats.tx-railed { position: relative; }
  .fv-beats.tx-railed::before, .fv-beats.tx-railed::after {
    content: ""; position: absolute; left: var(--tx-x, -30px); top: var(--tx-top, 0px); width: 2px; height: var(--tx-h, 0px); border-radius: 1px;
  }
  .fv-beats.tx-railed::before { background: rgba(7, 20, 38, .12); }
  .fv-beats.tx-railed::after { background: var(--blue, #1768f2); transform-origin: 50% 0; transform: scaleY(var(--tx-p, 0)); }
  .tx-railed .fv-btn { position: relative; }
  .tx-railed .fv-btn::before {
    content: ""; position: absolute; left: calc(var(--tx-x, -30px) - 5px); top: 50%; width: 12px; height: 12px; margin-top: -6px; box-sizing: border-box;
    border-radius: 50%; background: var(--canvas, #f5f7fa); border: 2px solid #9aa6b8; z-index: 1;
  }
  html.motion .tx-railed .fv-btn::before { transition: background-color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
  .tx-railed .fv-beat.is-cur .fv-btn::before { background: var(--blue, #1768f2); border-color: var(--blue, #1768f2); transform: scale(1.18); }
  .fv-beats:has(.fv-beat[data-at="3"].is-cur, .fv-beat[data-at="4"].is-cur) .fv-beat[data-at="2"] .fv-btn::before,
  .fv-beats:has(.fv-beat[data-at="4"].is-cur) .fv-beat[data-at="3"] .fv-btn::before { background: var(--blue, #1768f2); border-color: var(--blue, #1768f2); }
}

/* ------------------------------------------------------------ homepage · the close */
.fv-close-acts .tx-or { display: inline-flex; flex-wrap: wrap; gap: 0 28px; }

/* ------------------------------------------------------------ Medical Schools · Clinicians
   Each stop's caption names what that step replaces. The fragment belongs to
   the caption, so only the current stop's shows, and it adds no height above
   the stage (the stage is sized to fit one screen with its timeline). */
.tx-was { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.tx-was .tx-frag { font-size: 13px; padding: 5px 11px 5px 9px; border-radius: 8px; gap: 7px; }
.tx-was .tx-frag--note { border-radius: 2px; padding: 6px 11px; }
.tx-was .tx-frag--chat { border-radius: 12px 12px 12px 4px; padding: 5px 12px 6px; }
.tx-was .tx-frag svg { width: 14px; height: 14px; margin-top: 2px; }
@media (min-width: 1200px) {
  /* beside the caption, in the room under the stage */
  .ms-day-caps li:has(.tx-was) { position: relative; }
  .tx-was { position: absolute; left: calc(100% + 56px); top: 3px; margin: 0; width: max-content; max-width: 300px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .no-js .tx-was { position: static; flex-direction: row; align-items: center; margin-top: 8px; }
}
/* Between a phone and a wide laptop the stage is fitted to the screen and there is no room beside
   the caption, so the fragment is left out rather than made to cost the stage its fit. */
@media (min-width: 761px) and (max-width: 1199px) {
  .tx-was { display: none; }
  .no-js .tx-was { display: flex; }
}
