/* Learning & exams, university search (private local preview). Loaded after lx.css and lx3.css, which stay exactly as
   approved. Three ideas are added to them.

   The room has two tiers, and colour says which layer you're in. A university's own collection keeps that year's colour;
   everything general is PlacementFlow blue. So the blue tier is always there, and it simply rises to meet the volume when a
   school has nothing of its own. The volumes follow the verified course, and with no verified course they're stages, not
   invented years. And what can't be shown yet is withheld in place: the real interface, with the content left out. */

:root { --lx-gen: #173f8a; --lx-gen-2: #123374; --lx-gen-b: #1d4f86; --lx-gen-c: #1f5a78; }
/* room for the two lines this page adds above the shelf, so the books still close inside the first screen */
@media (min-width: 901px) { :root { --lx-h1: clamp(40px, min(5.5vw, 8.6vh), 78px); --lx-cw: clamp(208px, min(19.4vw, calc(40vh - 92px)), 300px); } }

/* ---------------- the opening ---------------- */
.lx-h1 em { color: var(--blue); }
.lx-school { gap: 0 12px; }
.lx-school-w { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.lx-school-b { min-width: 0; }
.lx-school-b.is-empty { color: var(--p-brand-2); }
.lx-clear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: 19px; line-height: 1; cursor: pointer; transition: background-color .16s, color .16s; }
.lx-clear:hover { background: var(--canvas); color: var(--ink); }
.lx-school-p { width: min(460px, 100%); }
#school-l { max-height: min(340px, 46vh); }
#school-l li { align-items: baseline; }
#school-l li .lx-o { min-width: 0; }
#school-l li em { font-weight: 500; color: var(--muted); }
#school-l li mark { background: none; color: var(--p-brand-2); font-weight: 700; }
#school-l li:last-child { margin-top: 0; border-top: 0; border-radius: 9px; color: inherit; }
#school-l li.lx-fix { color: var(--p-brand-2); font-weight: 500; }
#school-l li:not(.lx-fix) + li.lx-fix, #school-l li.lx-none + li.lx-fix { margin-top: 5px; border-top: 1px solid var(--p-rule); border-radius: 0 0 9px 9px; padding-top: 10px; }
#school-l li.lx-none { display: block; min-height: 0; padding: 12px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); cursor: default; }
#school-l li.lx-none:hover { background: none; }

/* the course, asked only where it changes the answer */
.lx-route-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lx-route-row:has(#route:not([hidden])) { margin: 2px 0 clamp(6px, 1vh, 10px); }
.lx-route { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-year-q { margin: 0 0 3px; font-size: 14.5px; }
.lx-rt { display: inline-flex; align-items: baseline; gap: 7px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: #edf1f7; color: var(--ink-2); font: inherit; font-size: 14px; line-height: 36px; cursor: pointer; transition: background-color .18s, color .18s; }
.lx-rt b { font-weight: 600; }
.lx-rt small { font-size: 13px; opacity: .78; }
.lx-rt:hover:not([aria-checked="true"]) { background: #e2e8f1; }
.lx-rt[aria-checked="true"] { background: var(--ink); color: #fff; }
.lx-route-n { max-width: 44ch; margin: -2px 0 8px; font-size: 13.5px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
html.motion .lx-route:not([hidden]) { animation: lx-rise .44s var(--lx-ease) backwards; }

/* the volumes */
.lx-sp[data-tone="oxblood"] { --c: var(--lx-y5); }
.lx-sp[data-tone="slate"] { --c: var(--lx-y6); }
.lx-sp[data-tone="blue"] { --c: var(--lx-gen); }
.lx-sp[data-tone="blue2"] { --c: var(--lx-gen-b); }
.lx-sp[data-tone="blue3"] { --c: var(--lx-gen-c); }
.lx-sp[aria-checked="true"]:not(.has) { background: var(--c); color: #fff; box-shadow: none; }
.lx-sp-f { position: absolute; left: 0; right: 0; bottom: 11px; font-size: 12px; font-weight: 600; letter-spacing: .01em; text-align: center; }
.lx-sp[aria-checked="true"] .lx-sp-f { opacity: 0; }
.lx-sp-o small { max-width: 24em; }
.lx-sp-o small[data-sub-short] { display: none; }
.pv-calc--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* stages have words, not numbers */
.lx-sp--word { min-height: 104px; }
.lx-sp--word::before, .lx-sp--word::after { display: none; }
.lx-sp--word .lx-sp-n { left: 50%; right: auto; top: 12px; translate: -50% 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1; writing-mode: vertical-rl; white-space: nowrap; }

/* ---------------- the shelf labels ---------------- */
.lx-shead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: clamp(12px, 1.8vh, 18px); color: #fff; font-size: 15px; line-height: 1.34; }
.lx-shead b { font-weight: 600; }
.lx-shead b.is-own::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: .08em; }
.lx-shead span { color: rgba(255, 255, 255, .84); text-wrap: pretty; }
.lx-shead a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- PlacementFlow's own tier ---------------- */
.lx-room[data-tone="blue"], .lx-flood[data-tone="blue"], .lx-band[data-tone="blue"], .lx-band { background: var(--lx-gen); }
.lx-room[data-tone="blue2"], .lx-flood[data-tone="blue2"], .lx-band[data-tone="blue2"] { background: var(--lx-gen-b); }
.lx-room[data-tone="blue3"], .lx-flood[data-tone="blue3"], .lx-band[data-tone="blue3"] { background: var(--lx-gen-c); }
.lx-set[data-tone^="blue"] { --on: #fff; --on-2: #dfe9ff; --acc: #ffe6b0; --rule: rgba(255, 255, 255, .34); --tag: rgba(255, 255, 255, .16); --btn: #fff; --btn-ink: var(--lx-gen-2); --btn-h: #e8f0ff; }
.lx-room-in { padding-bottom: clamp(24px, 3.6vh, 36px); }
.lx-band { position: relative; z-index: 0; transition: background-color .5s; }
html.reduce .lx-band { transition: none; }
.lx-band .lx-room-in { padding-top: clamp(26px, 4vh, 40px); }
.lx-room[data-tone^="blue"] + .lx-band .lx-room-in { padding-top: 0; }
/* like the room above, the page opens over the shelf, in the same place, so nothing jumps */
.lx-set--band { display: grid; grid-template-columns: minmax(0, 1fr); }
.lx-set--band > .lx-groups, .lx-set--band > .lx-study { grid-column: 1; grid-row: 1; }
.lx-set.is-study > .lx-groups { display: none; }
.lx-set.is-turning > .lx-groups { pointer-events: none; }
.lx-groups { display: flex; gap: clamp(30px, 4vw, 60px); align-items: flex-start; }
.lx-group { flex: 0 1 auto; }
.lx-group { min-width: 0; }
.lx-group-h { margin-bottom: 12px; font-size: 15px; font-weight: 600; line-height: 1.34; color: var(--on); }
.lx-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 216px); justify-content: start; }
.lx-item { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.lx-item .lx-cover { position: relative; width: calc(100% - clamp(12px, 1.5vw, 20px)); max-width: 196px; --x: 0; --y: 0; --sc: 1; }
.lx-item .lx-cover:hover { --y: -5px; }
.lx-item .lx-k { font-size: max(11px, 5cqw); }
.lx-note { max-width: 86ch; color: rgba(255, 255, 255, .92); }
.lx-act--wide p { flex-basis: 260px; max-width: 42ch; }
.lx-cap { min-width: 0; margin-top: 0; padding: 10px clamp(12px, 1.5vw, 20px) 0 0; border-top: 1px solid var(--rule); color: var(--on); }
.lx-cap p { font-size: 14px; line-height: 1.36; text-wrap: pretty; }
.lx-cap .lx-cap-s { margin-top: 5px; font-size: 13px; font-weight: 500; color: var(--on-2); }
.lx-cap .lx-try { min-height: 34px; margin-top: 3px; font-size: 14px; }
/* a book alone on its shelf stands beside its description */
.lx-group[data-n="1"] .lx-row { grid-auto-columns: minmax(0, 520px); }
.lx-group[data-n="1"] .lx-item { grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: auto; gap: 0 22px; align-items: end; }
.lx-group[data-n="1"] .lx-item .lx-cover { width: 196px; }
.lx-group[data-n="1"] .lx-cap { padding: 0; border-top: 0; }
html.reduce .lx-item .lx-cover { transition: none; }

/* new covers */
.lx-cover--found { --cb: #f4c95d; --ci: #3b2a06; }
.lx-cover--fschools { --cb: #e9e4fb; --ci: #2e2470; }
.lx-cover--calc { --cb: #fbe9dd; --ci: #7a2e12; }
.lx-cover--teach { --cb: #e8f0fb; --ci: #173d69; }
.lx-cover--found .lx-t, .lx-cover--fschools .lx-t, .lx-cover--calc .lx-t, .lx-cover--teach .lx-t { font-size: 13cqw; }

/* ---------------- withheld, in place ---------------- */
.pv-ghost { display: grid; gap: 9px; margin-top: 8px; }
.pv-ghost i { display: block; height: 11px; border-radius: 4px; background: #e6ecf3; }
.pv-held { padding: 9px 13px; border-radius: 8px; background: #eef4ff; color: #1d3f84; font-size: 13.5px; line-height: 1.45; box-shadow: inset 0 0 0 1px #cfdffa; text-wrap: pretty; }
.pv-held b { font-weight: 600; }
.pv-demo--ghost .pv-opt { cursor: default; }
.pv-demo--ghost .pv-opt:hover { border-color: var(--t-line); background: #fff; }
.pv-demo--ghost .pv-opt-t .pv-ghost { margin-top: 5px; }
.pv-demo--ghost .pv-flagbtn { cursor: default; }
.pv-after { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--t-wash); }
.pv-after ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 5px; font-size: 14px; color: var(--t-ink-2); }
.pv-chapter > .pv-ghost i { height: 20px; }
.pv-sec > .pv-ghost:first-child i { height: 14px; background: #d9e2ec; }
.pv-focus li .pv-ghost { display: grid; place-items: stretch; width: 100%; height: auto; margin-top: 2px; border-radius: 0; background: none; color: inherit; }
.pv-part-l2 { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--t-faint); }
.pv-focus .pv-ghost i { background: #d8e3ee; }
.pv-focus ol { margin-top: 9px; }
.pv-noteblock .pv-ghost i { background: #f2e3c4; }
/* CPSA: the plate stays, and the image stays in the module */
.pv-plate--held .pv-plate-in { display: block; }
.pv-held-plate { position: absolute; inset: clamp(20px, 3vw, 40px); display: grid; place-items: center; padding: 20px; color: #bccde6; font-size: 14px; line-height: 1.4; text-align: center; }
.pv-held-plate i { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255, 255, 255, .34); }
.pv-held-plate i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.pv-held-plate i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.pv-held-plate i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.pv-held-plate i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.pv-task-ghost { margin-top: 12px; }
.pv-task-ghost .pv-ghost i { height: 16px; background: #dbe4ee; }
.pv-prac { width: 100%; }
.pv-prac ol { display: grid; gap: 1px; margin-bottom: 12px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.pv-prac li { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 2px 12px; padding: 10px 14px; background: #0d2650; font-size: 14px; line-height: 1.4; }
.pv-prac b { font-weight: 600; color: #fff; }
.pv-prac span { color: #cddaf0; }

/* ---------------- specialty guides: each guide's own route ---------------- */
.pv-gd { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0 clamp(24px, 3.2vw, 44px); margin-top: 16px; padding: 0 clamp(20px, 3vw, 44px); }
.pv-gd-n { display: grid; align-content: start; gap: 1px; }
.pv-gd-n button { min-height: 36px; padding: 6px 9px; border: 0; border-radius: 7px; background: none; color: var(--t-sub); font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; }
.pv-gd-n button:hover { background: #f1f4f8; }
.pv-gd-n button[aria-current="true"] { background: #e7f1ee; color: #123f39; font-weight: 600; box-shadow: inset 2px 0 0 #1d5750; }
.pv-gd-v { min-width: 0; }
.pv-gd-v h4 { font-size: 26px; line-height: 1.16; font-weight: 600; letter-spacing: -.024em; color: #0f1c2e; }
.pv-gd-m { margin-top: 4px; font-size: 14.5px; color: var(--t-muted); }
.pv-gd-r { margin-top: 18px; }
.pv-gd-v .pv-btn--go { margin-top: 18px; }

.pv-gd-s { max-width: 72ch; margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--t-muted); text-wrap: pretty; }

/* ---------------- Foundation: the nine stages ---------------- */
.pv-fst { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: 4px; }
.pv-fst li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; padding: 11px 0; border-top: 1px solid var(--t-line); }
.pv-fst-n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fdf1cf; color: #3b2a06; font-size: 12.5px; font-weight: 600; }
.pv-fst b { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--t-ink); }
.pv-fst small { font-size: 13px; line-height: 1.4; color: var(--t-muted); text-wrap: pretty; }
.pv-fst li.is-past .pv-fst-n { background: #eef2f7; color: var(--t-muted); }
.pv-fst li.is-past b { color: var(--t-sub); font-weight: 500; }
.pv-fst li.is-next .pv-fst-n { background: #3b2a06; color: #fff; }
.pv-fst li.is-next small { color: var(--t-ink); font-weight: 600; }
.pv-tabsl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pv-tabsl li { padding: 3px 10px; border-radius: 6px; background: var(--t-wash); font-size: 13.5px; color: var(--t-ink-2); box-shadow: inset 0 0 0 1px var(--t-line); }

/* ---------------- Foundation Schools: the map ---------------- */
.pv-fs { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px clamp(24px, 3.2vw, 44px); margin-top: 14px; padding: 0 clamp(20px, 3vw, 44px); }
.pv-fs-map { aspect-ratio: 300 / 390; max-height: 460px; margin-inline: auto; }
.pv-fs-map svg { display: block; width: 100%; height: 100%; }
.pv-fs-s path { fill: #e3dff6; stroke: #fff; stroke-width: .7; cursor: pointer; transition: fill .16s; }
.pv-fs-s:hover path { fill: #c8c0ee; }
.pv-fs-s.is-on path { fill: #2e2470; }
.pv-fs-n { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--t-faint); text-align: center; }
.pv-fs-d { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 0 clamp(18px, 2.4vw, 30px); min-width: 0; }
.pv-fs-l { display: grid; grid-auto-rows: max-content; align-content: start; gap: 0; max-height: 470px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d6ea transparent; }
.pv-fs-l button { min-height: 32px; padding: 4px 9px; border: 0; border-radius: 7px; background: none; color: var(--t-sub); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; }
.pv-fs-l button:hover { background: #f1f4f8; }
.pv-fs-l button[aria-current="true"] { background: #eeebfb; color: #2e2470; font-weight: 600; box-shadow: inset 2px 0 0 #2e2470; }
.pv-fs-v { min-width: 0; }
.pv-fs-v .pv-eyebrow { margin-top: 2px; }
.pv-fs-v h4 { margin-top: 3px; font-size: 24px; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; color: #0f1c2e; text-wrap: balance; }
.pv-fs-tag { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 6px; background: #eeebfb; color: #2e2470; font-size: 12.5px; font-weight: 600; }
.pv-fs-p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--t-ink-2); text-wrap: pretty; }

/* ---------------- calculators ---------------- */
.pv-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding: 0 clamp(20px, 3vw, 44px); }
.pv-calc-c { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--t-line); border-radius: 12px; }
.pv-calc-c .pv-eyebrow { margin-top: 0; }
.pv-calc-c h4 { margin-top: 3px; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.016em; color: #0f1c2e; }
.pv-calc-s { margin-top: 3px; font-size: 14px; color: var(--t-sub); }
.pv-calc-l { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--t-ink-2); text-wrap: pretty; }
.pv-calc-src { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--t-muted); text-wrap: pretty; }
.pv-calc-st { width: fit-content; margin: 10px 0 12px; padding: 2px 9px; border-radius: 6px; background: #fbe9dd; color: #7a2e12; font-size: 12.5px; font-weight: 600; }
.pv-calc-c .pv-btn { margin-top: auto; }

/* ---------------- widths ---------------- */
@media (max-width: 1023px) {
  .lx-groups { flex-direction: column; gap: 24px; }
  .lx-group { flex: none; width: 100%; }
}
@media (max-width: 900px) {
  .pv-gd { grid-template-columns: minmax(0, 1fr); }
  .pv-gd-n { grid-auto-flow: column; grid-auto-columns: max-content; gap: 4px; margin: 0 calc(clamp(20px, 3vw, 44px) * -1); padding: 0 clamp(20px, 3vw, 44px) 4px; overflow-x: auto; scrollbar-width: none; }
  .pv-gd-n button { min-height: 44px; white-space: nowrap; }
  .pv-gd-v { margin-top: 14px; }
  .pv-fst { grid-template-columns: minmax(0, 1fr); }
  .pv-fs, .pv-fs-d, .pv-calc { grid-template-columns: minmax(0, 1fr); }
  .pv-fs-map { max-height: 340px; }
  .pv-fs-l { grid-auto-flow: column; grid-auto-columns: max-content; max-height: none; overflow-x: auto; scrollbar-width: none; }
  .pv-fs-l button { min-height: 44px; white-space: nowrap; }
  .pv-fs-v { margin-top: 12px; }
}
@media (max-width: 767px) {
  .lx-clear { width: 44px; height: 44px; margin-right: -8px; }
  .lx-school-w { display: flex; justify-content: space-between; }
  .lx-sp-f { bottom: 7px; font-size: 11px; }
  .lx-sp-o { bottom: 10px; }
  .lx-sp-o small { display: block; font-size: 12.5px; line-height: 1.26; }
  /* a school's own line is written for the wide volume; the phone keeps the fact about the course */
  .lx-sp.has .lx-sp-o small[data-sub] { display: none; }
  .lx-sp.has .lx-sp-o small[data-sub-short] { display: block; }
  .lx-sp:not(.has) .lx-sp-o small[data-sub-short] { display: none; }
  .lx-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 18px 0; }
  .lx-group[data-n="1"] .lx-row { grid-template-columns: minmax(0, 1fr); }
  .lx-group[data-n="1"] .lx-item { grid-template-columns: 42% minmax(0, 1fr); gap: 0 16px; }
  .lx-group[data-n="1"] .lx-item .lx-cover { width: 100%; }
  .lx-rt { min-height: 44px; line-height: 44px; }
  .lx-cap .lx-try { min-height: 44px; }
  .lx-shead a { display: inline-block; margin: -12px 0; padding: 12px 0; }
  #school-l li { min-height: 44px; }
  .pv-prac li { grid-template-columns: minmax(0, 1fr); }
  .pv-plate--held .pv-plate-in { min-height: 260px; }
}
html.reduce .lx-sp, html.reduce .lx-rt { transition: none; }
html.no-js #room, html.no-js #band { display: none; }
