/* Learning & exams, second design (31 Oct 2026, /students-preview/learning-exams-v2/). Loaded after home.css and
   site-nav.css; every rule is scoped to lx-.

   The selector is the shelf. Six year volumes stand on the top edge of a room; only a year with a real collection is
   filled in, so the shelf can't overstate what exists, and the chosen volume is the tab the room hangs from. Choosing a
   year pours that volume's colour down into the room and its books arrive. Inside: books standing on a shelf and, beside
   them, one lesson's own line set large, with one way to see another. Everything else waits behind "About".

   Choosing here reads no account. Without JavaScript every collection reads in order. */

[class*="lx-"] { box-sizing: border-box; }
:root {
  --lx-ease: cubic-bezier(.16, 1, .3, 1);
  --lx-h1: clamp(40px, min(5.9vw, 9.2vh), 84px);
  --lx-sp-h: clamp(92px, 14.4vh, 136px);
  --lx-sp-w: clamp(40px, 3.8vw, 54px);
  --lx-cw: clamp(214px, min(20.8vw, calc(40vh - 65px)), 320px);
  --lx-y5: #5b2330; --lx-y6: #1e3a46; --lx-pale: #e9eef5;
}
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body.lx { background: #fff; overflow-x: clip; }
.lx ::selection { background: rgba(23, 104, 242, .18); }
.lx :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lx [hidden] { display: none !important; }

/* ---------------- the opening ---------------- */
.lx-hero { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + clamp(16px, 3.2vh, 34px)); background: #fff; }
.lx-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 590px); grid-template-areas: "h h" "say pick"; gap: 0 56px; align-items: end; }
.lx-h1 { grid-area: h; font-size: var(--lx-h1); line-height: 1.03; font-weight: 700; letter-spacing: -.036em; color: var(--ink); }
.lx-h1 span { display: block; }
.lx-h1 em { font-style: normal; color: var(--blue); }
.lx-say { grid-area: say; padding: clamp(10px, 1.9vh, 18px) 0 clamp(14px, 2.4vh, 24px); }
.lx-pick { grid-area: pick; padding-top: clamp(10px, 1.9vh, 18px); }
.lx-lead { max-width: 31em; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.36; color: var(--ink-2); text-wrap: pretty; }
.lx-q { font-size: 15px; font-weight: 500; color: var(--muted); }
.lx-school { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin-bottom: clamp(6px, 1vh, 10px); }
.lx-school-n { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.lx-school-b { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 42px; padding: 0; border: 0; border-bottom: 2px solid var(--blue); background: none; color: var(--ink); font: inherit; font-size: clamp(21px, 1.85vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; cursor: pointer; text-align: left; }
.lx-school-b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-school-b:hover { color: var(--blue); }
.lx-school-b svg { flex: none; width: 20px; height: 20px; color: var(--blue); transition: transform .24s var(--lx-ease); }
.lx-school-b[aria-expanded="true"] svg { transform: rotate(180deg); }
.lx-school-p { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: min(420px, 100%); border-radius: 14px; background: #fff; box-shadow: var(--pop); overflow: hidden; }
html.motion .lx-school-p:not([hidden]) { animation: lx-pop .22s var(--lx-ease) both; }
.lx-school-p input { display: block; width: 100%; height: 48px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--p-rule); background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.lx-school-p input::placeholder { color: var(--muted); opacity: 1; }
#school-l { max-height: min(320px, 46vh); padding: 6px; overflow-y: auto; }
#school-l li { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 7px 12px; border-radius: 9px; font-size: 15.5px; line-height: 1.25; color: var(--ink); cursor: pointer; }
#school-l li em { flex: none; font-size: 13px; font-style: normal; font-weight: 600; color: var(--p-brand-2); }
#school-l li:hover, #school-l li.is-active { background: var(--canvas); }
#school-l li[aria-selected="true"] { font-weight: 600; }
#school-l li:last-child { margin-top: 5px; border-top: 1px solid var(--p-rule); border-radius: 0 0 9px 9px; color: var(--p-brand-2); }

.lx-years { display: flex; align-items: flex-end; gap: 5px; height: var(--lx-sp-h); margin-bottom: -1px; clip-path: inset(-14px -14px -1px -14px); }
.lx-sp { position: relative; flex: 0 0 var(--lx-sp-w); min-width: 0; height: calc(var(--lx-sp-h) * var(--t)); padding: 0; border: 0; border-radius: 3px 3px 0 0; background: #fff; color: var(--muted); font: inherit; text-align: left; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1.5px #cfd8e4; transition: flex-basis .54s var(--lx-ease), flex-grow .54s var(--lx-ease), height .54s var(--lx-ease), background-color .3s, color .3s, box-shadow .3s; }
.lx-sp[data-y="1"] { --t: .74; } .lx-sp[data-y="2"] { --t: .86; } .lx-sp[data-y="3"] { --t: .68; } .lx-sp[data-y="4"] { --t: .8; } .lx-sp[data-y="5"] { --t: .92; --c: var(--lx-y5); } .lx-sp[data-y="6"] { --t: 1; --c: var(--lx-y6); }
.lx-sp:hover:not([aria-checked="true"]) { height: calc(var(--lx-sp-h) * var(--t) + 7px); color: var(--ink); }
.lx-sp.has { background: var(--c); color: #fff; box-shadow: none; }
.lx-sp.has:hover:not([aria-checked="true"]) { color: #fff; }
.lx-sp::before, .lx-sp::after { content: ""; position: absolute; left: 22%; right: 22%; height: 1px; background: currentColor; opacity: .38; transition: opacity .2s; }
.lx-sp::before { top: 44px; } .lx-sp::after { top: 49px; }
.lx-sp-n { position: absolute; left: 0; right: 0; top: 12px; font-size: 19px; font-weight: 600; text-align: center; transition: opacity .18s; }
.lx-sp-o { position: absolute; left: 20px; right: 18px; top: 14px; bottom: 15px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .16s; pointer-events: none; }
.lx-sp-o b { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
.lx-sp-o small { max-width: 19em; font-size: 14.5px; font-weight: 500; line-height: 1.3; opacity: .9; text-wrap: pretty; }
.lx-sp[aria-checked="true"] { flex: 1 1 0; height: 100%; cursor: default; }
.lx-sp[aria-checked="true"]::before, .lx-sp[aria-checked="true"]::after, .lx-sp[aria-checked="true"] .lx-sp-n { opacity: 0; }
.lx-sp[aria-checked="true"] .lx-sp-o { opacity: 1; transition: opacity .3s .16s; }
.lx-sp[aria-checked="true"]:not(.has) { background: var(--lx-pale); color: var(--ink-2); box-shadow: none; }

/* ---------------- the room ---------------- */
.lx-room { position: relative; isolation: isolate; overflow: clip; background: var(--lx-y5); }
.lx-room[data-tone="slate"] { background: var(--lx-y6); }
.lx-room[data-tone="pale"] { background: var(--lx-pale); }
.lx-flood { position: absolute; inset: 0; background: var(--lx-y5); pointer-events: none; }
.lx-flood[data-tone="slate"] { background: var(--lx-y6); }
.lx-flood[data-tone="pale"] { background: var(--lx-pale); }
.lx-room-in { position: relative; padding: clamp(20px, 3vh, 30px) 0 clamp(18px, 2.6vh, 26px); }
.lx-set { --on: #fbf1ec; --on-2: #e8cdc6; --acc: #f3c6ba; --rule: rgba(255, 255, 255, .22); --tag: rgba(255, 255, 255, .13); --btn: #fff; --btn-ink: var(--lx-y5); --btn-h: #f6e6e1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(28px, 3.6vw, 54px); align-items: start; color: var(--on); }
.lx-set[data-set="imperial-6"] { --on: #eff6f7; --on-2: #c2d6db; --acc: #dec8a3; --btn-ink: var(--lx-y6); --btn-h: #e4edef; }
.lx-set--empty { --on: var(--ink); --on-2: var(--ink-2); --acc: var(--blue); --rule: #cdd6e3; --tag: #dde4ee; --btn: var(--blue); --btn-ink: #fff; --btn-h: var(--blue-hover); }
.lx-set { position: relative; }
.lx-set.is-leaving { position: absolute; left: 0; right: 0; top: clamp(20px, 3vh, 30px); pointer-events: none; }
.lx-note { margin-top: clamp(14px, 2.2vh, 22px); font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.lx-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lx-room[data-tone="pale"] .lx-note a { color: var(--p-brand-2); }
.lx-room[data-tone="pale"] .lx-note { color: var(--ink-2); }

/* the covers: laid out once at full size and moved between three slots by transform alone, so a change retargets
   smoothly mid-flight. They stand on one shelf, the chosen book in front. Type is set in cqw, so a smaller cover is the
   same cover, not a thumbnail. */
.lx-covers { position: relative; width: calc(var(--lx-cw) * 2.41); height: calc(var(--lx-cw) * 4 / 3); }
.lx-covers::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -1px; height: 1px; background: var(--rule); }
.lx-cover { position: absolute; left: 0; top: 0; display: block; width: var(--lx-cw); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 2px 5px 5px 2px; background: var(--cb); color: var(--ci); font: inherit; text-align: left; cursor: pointer; container-type: inline-size; overflow: hidden; transform-origin: 0 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(var(--sc, 1)); transition: transform .62s var(--lx-ease), box-shadow .3s; box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 24px 40px -22px rgba(0, 0, 0, .62); }
.lx-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 2.6cqw; background: linear-gradient(90deg, rgba(0, 0, 0, .13), rgba(0, 0, 0, 0)); pointer-events: none; }
.lx-cover[data-slot="0"] { z-index: 2; cursor: default; }
.lx-cover[data-slot="1"], .lx-cover[data-slot="2"] { --sc: .66; --y: calc(var(--lx-cw) * 4 / 3 * .34); box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 34px 56px -30px rgba(0, 0, 0, .68); }
.lx-cover[data-slot="1"] { --x: calc(var(--lx-cw) * 1.045); }
.lx-cover[data-slot="2"] { --x: calc(var(--lx-cw) * 1.75); }
.lx-cover[data-slot="1"]:hover, .lx-cover[data-slot="2"]:hover { --y: calc(var(--lx-cw) * 4 / 3 * .34 - 8px); }
.lx-cover:focus-visible { outline-color: #fff; outline-offset: 3px; }
.lx-cover[data-slot="1"]:focus-visible, .lx-cover[data-slot="2"]:focus-visible { outline-width: 3px; outline-offset: 5px; }
.lx-cover .lx-k { transition: opacity .3s, color .3s; }
.lx-cover[data-slot="1"] .lx-k, .lx-cover[data-slot="2"] .lx-k { opacity: 0; }
.lx-t { transition: translate .5s var(--lx-ease); }
.lx-cover[data-slot="1"] .lx-t, .lx-cover[data-slot="2"] .lx-t { translate: 0 -7cqw; }
.lx-cover-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 7.6cqw; }
.lx-k { position: relative; font-size: max(11.5px, 4.3cqw); font-weight: 500; line-height: 1.2; }
.lx-t { position: relative; margin-top: 2cqw; font-size: 14.4cqw; font-weight: 600; letter-spacing: -.034em; line-height: 1; }
.lx-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-cover--path { --cb: #f2dfd8; --ci: #5b2330; }
.lx-cover--mla { --cb: #dcebf9; --ci: #173d69; }
.lx-cover--assess { --cb: #efe3cb; --ci: #4d3c1e; }
.lx-cover--akt { --cb: #102c52; --ci: #fff; }
.lx-cover--cpsa { --cb: #184c4c; --ci: #fff; }
.lx-cover--finals { --cb: #f6f0e3; --ci: #4d3c1e; }
.lx-cover--guides { --cb: #1d5750; --ci: #fff; }
.lx-cover--path .lx-t { font-size: 16cqw; }
.lx-cover--mla .lx-t, .lx-cover--assess .lx-t { font-size: 13.2cqw; }
.lx-cover--guides .lx-t { font-size: 12.4cqw; }
/* AKT and CPSA are two volumes of one series: the same band, the same place */
.lx-cover--band .lx-k { position: absolute; left: 0; right: 0; top: 0; padding: 3.4cqw 7.6cqw 3.2cqw; background: #dec8a3; color: #102c52; font-weight: 600; }
.lx-cover--band .lx-t { margin-top: 12.6cqw; }
.lx-cover--akt .lx-t { font-size: 15.4cqw; }
.lx-cover--cpsa .lx-t { font-size: 11.4cqw; line-height: 1.04; }
.lx-cover--band[data-slot="1"] .lx-k, .lx-cover--band[data-slot="2"] .lx-k { opacity: 1; color: transparent; }
.lx-cover--band[data-slot="1"] .lx-t, .lx-cover--band[data-slot="2"] .lx-t { translate: 0 0; }
/* Pathology's art follows the discipline being read */
.lx-a { opacity: 0; transform: translateY(14px); transition: opacity .34s, transform .6s var(--lx-ease); }
.lx-cover[data-art="chemical"] .lx-a[data-a="chemical"], .lx-cover[data-art="haematology"] .lx-a[data-a="haematology"], .lx-cover[data-art="histopathology"] .lx-a[data-a="histopathology"], .lx-cover[data-art="immunology"] .lx-a[data-a="immunology"], .lx-cover[data-art="microbiology"] .lx-a[data-a="microbiology"], .lx-cover--path:not([data-art]) .lx-a[data-a="chemical"] { opacity: 1; transform: none; }

/* the page: type on the room, not another card */
.lx-pages { min-width: 0; }
.lx-page { max-width: 560px; min-height: calc(var(--lx-cw) * 4 / 3); }
.lx-ph .lx-tag { display: inline-block; margin-bottom: 7px; }
.lx-tag { padding: 2px 8px; border-radius: 6px; background: var(--tag); color: var(--acc); font-size: 13px; font-weight: 600; line-height: 1.4; }
.lx-ph p { font-size: 15.5px; line-height: 1.36; color: var(--on-2); text-wrap: pretty; }
.lx-steps { margin-top: clamp(12px, 2.2vh, 20px); }
.lx-line { font-size: clamp(25px, min(2.5vw, 4.4vh), 36px); line-height: 1.1; font-weight: 600; letter-spacing: -.026em; color: var(--on); text-wrap: balance; }
.lx-line.is-long { font-size: clamp(22px, min(2.05vw, 3.7vh), 29px); line-height: 1.16; letter-spacing: -.02em; }
.lx-meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 8px; font-size: 15px; line-height: 1.36; color: var(--on-2); }
.lx-meta b { font-weight: 600; color: var(--on); }
.lx-ctl { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 5px; }
.lx-next, .lx-look { min-height: 36px; padding: 0; border: 0; background: none; color: var(--acc); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .16s; }
.lx-next:hover, .lx-look:hover { text-decoration-color: currentColor; }
.lx-btn svg { flex: none; width: 15px; height: 15px; transition: transform .24s var(--lx-ease); }
.lx-btn:hover svg { transform: translateX(3px); }

/* Look inside: a paper contents page slides out from behind the chosen cover and lies over the smaller books */
.lx-inside { display: none; color: #1b2430; background: #fbf8f2; }
.lx-page.is-open > .lx-inside, .lx-page.is-open .lx-step:not([hidden]) .lx-inside { display: block; }
.lx-in-k { font-size: 13px; font-weight: 500; color: #6a6250; }
.lx-inside h4 { margin-top: 1px; font-size: 21px; font-weight: 600; letter-spacing: -.018em; line-height: 1.16; text-wrap: balance; }
.lx-inside ol, .lx-inside ul { margin-top: 12px; font-size: 15px; line-height: 1.3; }
.lx-inside ol { counter-reset: lx; }
.lx-inside li { padding: 4px 0; }
.lx-inside ol li { display: grid; grid-template-columns: 24px minmax(0, 1fr); counter-increment: lx; }
.lx-inside ol li::before { content: counter(lx); font-size: 13.5px; line-height: 1.45; color: #8a8068; font-variant-numeric: tabular-nums; }
.lx-inside small { margin-left: 5px; font-size: 12.5px; color: #6a6250; font-variant-numeric: tabular-nums; }
.lx-inside--two ul { columns: 2; column-gap: 20px; font-size: 14px; }
.lx-inside--two li { padding: 3px 0; break-inside: avoid; }
.lx-in-more { margin-top: 6px; font-size: 13.5px; color: #6a6250; }
.lx-in-foot { margin-top: 9px; font-size: 13px; line-height: 1.34; color: #5c5544; text-wrap: pretty; }
@media (min-width: 1200px) {
  .lx-look { position: absolute; left: var(--lx-cw); top: 26px; z-index: 4; min-height: 34px; padding: 0 14px 0 11px; border-radius: 0 6px 6px 0; background: #fbf8f2; color: #1b2430; font-size: 14px; box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .6); transition: padding .24s var(--lx-ease), background-color .16s; }
  .lx-look:hover { padding-right: 19px; text-decoration-color: transparent; }
  .lx-page.is-open .lx-look { left: calc(var(--lx-cw) * 2.41 - 70px); top: 10px; padding: 0 10px; background: none; box-shadow: none; color: #5c5544; }
  .lx-inside { position: absolute; left: var(--lx-cw); top: 0; z-index: 3; width: calc(var(--lx-cw) * 1.41); height: calc(var(--lx-cw) * 4 / 3); padding: 16px 20px; border-radius: 0 9px 9px 0; overflow: hidden; box-shadow: inset 14px 0 16px -14px rgba(60, 40, 20, .34), 0 24px 40px -22px rgba(0, 0, 0, .62); }
  .lx-page.is-opening .lx-inside { animation: lx-open .56s var(--lx-ease) both; }
}
@media (min-width: 1200px) and (max-height: 820px) {
  .lx-inside { padding: 9px 18px; overflow-y: auto; }
  .lx-inside h4 { font-size: 18px; }
  .lx-inside ol, .lx-inside ul { margin-top: 7px; font-size: 14px; }
  .lx-inside li { padding: 3px 0; }
  .lx-inside--two li { padding: 2px 0; }
  .lx-inside:not(.lx-inside--two) .lx-in-more, .lx-in-foot { display: none; }
  .lx-inside:not(.lx-inside--two) :is(ol, ul)::after { content: "and more"; display: block; margin-top: 3px; font-size: 13.5px; color: #6a6250; }
  .lx-inside--two .lx-in-more { margin-top: 3px; }
  .lx-inside:not(.lx-inside--two) :is(ol, ul) li:nth-child(n+6) { display: none; }
}
@media (min-width: 1200px) and (max-height: 740px) {
  .lx-inside:not(.lx-inside--two) :is(ol, ul) li:nth-child(n+5) { display: none; }
}
@media (max-width: 1199px) {
  .lx-inside { margin-top: 12px; padding: 14px 16px; border-radius: 10px; }
  .lx-page.is-opening .lx-inside { animation: lx-rise .44s var(--lx-ease) both; }
}
@keyframes lx-open { from { clip-path: inset(0 100% 0 0); translate: -18px 0; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }
.lx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; margin-top: clamp(11px, 2vh, 18px); }
.lx-act p a { color: var(--on); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lx-act p { flex: 1 1 180px; max-width: 30ch; font-size: 13.5px; line-height: 1.34; color: var(--on-2); text-wrap: pretty; }
.lx-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 17px; border: 0; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .18s; }
.lx-btn:hover { background: var(--btn-h); }
.lx-btn--blue { background: var(--blue); color: #fff; }
.lx-btn--blue:hover { background: var(--blue-hover); }
.lx-btn--quiet { background: none; color: var(--on); box-shadow: inset 0 0 0 1.5px var(--rule); }
.lx-btn--quiet:hover { background: var(--tag); }
.lx-set :focus-visible { outline-color: var(--on); }
/* when there's nothing to show: an honest empty volume */
.lx-page--empty { max-width: 600px; }
.lx-covers--empty { width: var(--lx-cw); }
.lx-empty-p { margin-top: 9px; font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.lx-act--row { margin-top: 16px; }
.lx-empty-g { max-width: 50ch; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.lx-empty-g a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--p-brand-2); white-space: nowrap; }
.lx-empty-g svg { width: 14px; height: 14px; }

/* ---------------- the teaching around them ---------------- */
.lx-tw { padding: clamp(52px, 8vh, 84px) 0 clamp(44px, 6vh, 64px); background: #fff; overflow: clip; }
.lx-tw-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr); gap: 20px 56px; align-items: end; }
.lx-tw-h h2, .lx-dir-h h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.lx-tw-h p { margin-top: 12px; font-size: clamp(16px, 1.22vw, 17.5px); line-height: 1.46; color: var(--ink-2); text-wrap: pretty; }
.lx-tw-go { margin-top: 18px; }
.lx-tw-shelf { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 1px; border-bottom: 1px solid var(--p-rule); }
.lx-book { position: relative; aspect-ratio: 3 / 4; border-radius: 2px 5px 5px 2px; background: var(--cb); color: var(--ci); container-type: inline-size; overflow: hidden; box-shadow: 0 1px 2px rgba(7, 20, 38, .14), 0 22px 34px -24px rgba(7, 20, 38, .5); }
.lx-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 2.6cqw; background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0)); }
.lx-book .lx-t { font-size: 12.4cqw; }
.lx-cover--uni { --cb: #e8f0fb; --ci: #173d69; }
.lx-cover--lib { --cb: #102c52; --ci: #fff; }
.lx-cover--pla { --cb: #e4efeb; --ci: #214f46; }

/* ---------------- the index ---------------- */
.lx-dir { padding: clamp(36px, 5vh, 56px) 0 clamp(40px, 6vh, 64px); background: #fff; }
.lx-dir-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; padding-bottom: 9px; border-bottom: 1px solid var(--ink); }
.lx-dir-h h2 { font-size: clamp(24px, 2.2vw, 30px); }
.lx-dir-f { display: flex; gap: 18px; }
.lx-dir-f button { min-height: 36px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.lx-dir-f button:hover { color: var(--ink); }
.lx-dir-f button[aria-pressed="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lx-dgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 32px; margin-top: 16px; }
.lx-dg h3 { margin-bottom: 7px; font-size: 14px; font-weight: 500; color: var(--muted); }
.lx-dg li { display: grid; padding: 4px 0; }
.lx-dg a { width: fit-content; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.28; color: var(--ink); transition: color .16s; }
.lx-dg a:hover { color: var(--blue); }
.lx-dg small { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.lx-dir-n { margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* the end of this preview */
.lx .st-end { padding: clamp(26px, 3.4vw, 36px) 0; border-top: 1px solid var(--p-rule); background: #fff; }
.lx .st-end-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 40px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.lx .st-end-in p { max-width: 62ch; text-wrap: pretty; }
.lx .st-end-in b { font-weight: 600; color: var(--ink); }
.lx .st-end .quiet { flex: none; }
.lx .st-end .quiet:hover svg { transform: translateX(3px); }

/* ---------------- arrival ---------------- */
html.motion .lx-h1 span { animation: lx-rise .74s var(--lx-ease) backwards; }
html.motion .lx-h1 span:nth-child(2) { animation-delay: .07s; }
html.motion .lx-say, html.motion .lx-q--year { animation: lx-rise .7s var(--lx-ease) .18s backwards; }
html.motion .lx-sp { animation: lx-stand .66s var(--lx-ease) calc(.1s + var(--t) * .34s) backwards; }
html.motion .lx-set:not(.is-moved) .lx-cover { animation: lx-rise .78s var(--lx-ease) .26s backwards; }
html.motion .lx-set:not(.is-moved) .lx-cover[data-slot="1"] { animation-delay: .34s; }
html.motion .lx-set:not(.is-moved) .lx-cover[data-slot="2"] { animation-delay: .4s; }
html.motion .lx-set:not(.is-moved) :is(.lx-ph, .lx-steps, .lx-next, .lx-act) { animation: lx-rise .78s var(--lx-ease) .34s backwards; }
html.motion .lx-set:not(.is-moved) .lx-look { animation: lx-fade .5s ease-out .7s backwards; }
@keyframes lx-rise { from { opacity: 0; translate: 0 16px; } }
@keyframes lx-stand { from { translate: 0 100%; } }
@keyframes lx-fade { from { opacity: 0; } }
@keyframes lx-pop { from { opacity: 0; translate: 0 -6px; } }

/* ---------------- widths ---------------- */
@media (max-width: 1099px) {
  .lx-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 0 28px; }
  .lx-tw-in { grid-template-columns: minmax(0, 1fr); }
  .lx-tw-shelf { max-width: 640px; }
  .lx-dgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  /* no room for a shelf and a page side by side: the two smaller books stack beside the chosen one */
  .lx-covers { width: calc(var(--lx-cw) * 1.532); }
  .lx-covers::after { display: none; }
  .lx-cover[data-slot="1"], .lx-cover[data-slot="2"] { --sc: .4808; --x: calc(var(--lx-cw) * 1.0513); --y: 0; }
  .lx-cover[data-slot="2"] { --y: calc(var(--lx-cw) * 4 / 3 * .5192); }
  .lx-cover[data-slot="1"]:hover { --y: 0; } .lx-cover[data-slot="2"]:hover { --y: calc(var(--lx-cw) * 4 / 3 * .5192); }
  .lx-cover[data-slot="1"] .lx-t, .lx-cover[data-slot="2"] .lx-t { translate: 0 -8cqw; }
  .lx-cover--band[data-slot="1"] .lx-t, .lx-cover--band[data-slot="2"] .lx-t { translate: 0 0; }
  .lx-page { min-height: 0; }
}
@media (max-width: 900px) {
  :root { --lx-h1: clamp(36px, 8vw, 62px); --lx-sp-h: clamp(100px, 15vh, 136px); --lx-cw: min(calc((100vw - 2 * var(--gutter)) / 1.532), 300px); }
  .lx-hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "say" "pick"; }
  .lx-say { padding-bottom: 8px; }
  .lx-set { grid-template-columns: minmax(0, 1fr); }
  .lx-page { max-width: 620px; margin-top: 18px; }
  .lx-tw-h { grid-template-columns: minmax(0, 1fr); }
  .lx-empty-g a { min-height: 44px; }
  .lx-note a, .lx-act p a { display: inline-block; margin: -8px 0; padding: 8px 0; }
}
@media (max-width: 767px) {
  :root { --lx-sp-w: 42px; }
  .lx-sp::before, .lx-sp::after { display: none; }
  .lx-sp-o { left: 12px; top: 11px; }
  .lx-sp-o b { font-size: 21px; }
  .lx-sp-o small { display: none; }
  .lx-sp-n { font-size: 17px; }
  .lx-next, .lx-look { min-height: 44px; }
  .lx-btn { white-space: normal; }
  .lx-act p { max-width: none; flex-basis: 100%; }
  .lx-school-b span { white-space: normal; }
  .lx-dgs { grid-template-columns: minmax(0, 1fr); }
  .lx-dg a { min-height: 32px; }
  .lx-tw-shelf { gap: 9px; }
  .lx .st-end-in { display: block; }
  .lx-school-p { width: 100%; }
  .lx-school { display: block; }
}

@media (max-width: 359px) {
  :root { --lx-sp-w: 34px; }
  .lx-sp-o { left: 10px; }
  .lx-sp-o b { font-size: 19px; white-space: nowrap; }
}

/* ---------------- without motion, or without JavaScript ---------------- */
html.reduce .lx-t, html.reduce .lx-k, html.reduce .lx-sp-o, html.reduce .lx-sp-n, html.reduce .lx-sp, html.reduce .lx-cover, html.reduce .lx-a, html.reduce .lx-btn svg, html.reduce .lx-school-b svg { transition: none; }
html.no-js .lx-pick { display: none; }
html.no-js .lx-ctl { display: none; }
html.no-js .lx-page .lx-inside { display: block; position: static; width: auto; height: auto; margin-top: 12px; border-radius: 10px; }
html.no-js #set-empty { display: none !important; }
html.no-js .lx-set[hidden] { display: grid !important; margin-top: 34px; }
html.no-js .lx-page[hidden] { display: block !important; margin-top: 18px; }
html.reduce .lx-page.is-opening .lx-inside { animation: none; }
