/* "For students" (src/site/students.mjs). Loaded after the landing's stylesheets; body "page-index page-students".
   Paper, ink and rules come from theme.css roles. One colour more: a trap the student named, in the app's own colour
   for its kind (DotMountain.color, light mode, "Off the text"); on this figure colour means only that. */
.page-students{--st-off:#6f93b5}

/* Hero and chapter heads. */
.page-students .st-hero{padding-top:clamp(48px,6vw,96px);padding-bottom:clamp(8px,2vw,24px)}
.page-students .st-hero h1{font-size:clamp(38px,4.8vw,72px);line-height:1.05;letter-spacing:-.05em;max-width:18ch;margin:0}
.page-students .st-head{padding-top:clamp(96px,10vw,160px);padding-bottom:clamp(8px,1.5vw,20px)}
.page-students .st-head-first{padding-top:clamp(56px,6vw,96px)}
.page-students .st-head .lx-chapter h2{max-width:20ch}
/* The v10 route has 150 px and a rule above it; here the chapter head stands there instead. */
.page-students .lx-route{padding-top:0;border-top:0}

/* 02: the side-by-side figure, lined up with the chapter title. */
.page-students .st-more{padding-top:clamp(28px,3.5vw,56px)}
.st-cmp-wrap{margin-left:80px;max-width:1120px}
.st-cmp{width:100%;border-collapse:collapse;table-layout:fixed}
.st-cmp th,.st-cmp td{text-align:left;vertical-align:top;font-weight:400;padding:22px 28px 26px 0;border-top:1px solid var(--rule-2)}
.st-cmp thead th{border-top:0;padding-block:0 14px;font-size:13px;line-height:1.4;color:var(--ink-5);letter-spacing:0}
.st-cmp thead th:last-child{color:var(--ink)}
.st-cmp thead th:first-child,.st-cmp tbody th{width:22%}
.st-cmp thead th:nth-child(2){width:33%}
.st-cmp tbody th{font-size:15px;line-height:1.5;color:var(--ink-5);padding-top:26px}
.st-cmp td{font-size:clamp(18px,1.55vw,22px);line-height:1.38;letter-spacing:-.02em}
.st-cmp td:nth-child(2){color:var(--ink-5)}
.st-cmp td:last-child{color:var(--ink)}
.st-cmp tbody tr:last-child>*{border-bottom:1px solid var(--rule-2)}
.st-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 03: the dots, pinned beside the steps. */
.page-students .st-fit-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.9fr);gap:0 5%}
.page-students .st-fit .lx-step{max-width:360px}
.page-students .lx-route.is-live .st-fit-stage{justify-content:center;align-items:center}
.st-fig{position:relative;width:min(100%,calc((100vh / var(--z,1) - 240px) * 1.6))}
.st-plot{position:relative;aspect-ratio:1000/625}
.st-layer{position:absolute;inset:0;opacity:0;visibility:hidden}
.lx-stage .st-layer svg{position:absolute;inset:0;width:100%;height:100%;max-height:none;overflow:visible}
.st-d{stroke:none}
.st-open{fill:var(--tint-4)}
.st-right{fill:var(--ink)}
.st-miss{fill:var(--ink-6)}
.st-off{fill:var(--st-off)}
.st-ring{fill:var(--page);stroke:var(--ink-2);stroke-width:2}
.st-pick{fill:none;stroke:var(--ink);stroke-width:1.5}
.st-arc{fill:none;stroke:var(--rule-1);stroke-width:1.5}
.st-lab{position:absolute;white-space:nowrap;font-size:15px;line-height:1.3;letter-spacing:-.005em;color:var(--ink-3);transform:translate(-50%,-50%)}
.st-lab.st-l{transform:translateY(-50%)}
.st-lab.st-r{transform:translate(-100%,-50%)}
.st-title{font-size:16px;font-weight:500;color:var(--ink-2)}
.st-quiet{color:var(--ink-5)}
.st-day{color:var(--ink-2);font-weight:500}
.st-on{color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.st-keys{color:var(--ink-4)}
.st-k{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 7px 1px 0;vertical-align:middle}
.st-k+.st-k,.st-keys .st-k:not(:first-child){margin-left:16px}
.st-k-right{background:var(--ink)}
.st-k-miss{background:var(--ink-6)}
.st-k-open{background:var(--tint-4)}
.st-k-off{background:var(--st-off)}
.st-label{display:block;text-align:right;margin-top:9px;font-size:11px;line-height:1;color:var(--ink-5);letter-spacing:0}

/* The end. */
.page-students .st-end{padding-top:24px;padding-bottom:40px}
.page-students .st-end p{font-size:clamp(22px,2.2vw,30px);line-height:1.3;letter-spacing:-.03em;color:var(--ink);max-width:30ch;margin:0}
.page-students .st-end .lx-links{margin-top:26px}

/* Narrow windows: the figure is pinned at the top at its own height (white.css, landing.js); one height in every
   step. The table keeps its two columns side by side under each row's name. */
@media (max-width:1000px){
  .page-students .st-fit-grid{grid-template-columns:1fr}
  .page-students .st-fit .lx-step{max-width:none}
  .st-fig{width:100%}
  .st-lab{font-size:11.5px}
  .st-title{font-size:12px}
  .st-k{width:7px;height:7px;margin-right:5px}
  .st-keys .st-k:not(:first-child){margin-left:10px}
  .st-label{margin-top:7px}
  .st-cmp-wrap{margin-left:0}
}
@media (max-width:760px){
  .st-cmp,.st-cmp thead,.st-cmp tbody{display:block}
  .st-cmp tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;border-top:1px solid var(--rule-2);padding:16px 0 20px}
  .st-cmp thead tr{border-top:0;padding:0 0 12px}
  .st-cmp thead th:first-child{display:none}
  .st-cmp tbody th{grid-column:1/-1;width:auto;padding:0;font-size:13px}
  .st-cmp th,.st-cmp td{border:0!important;padding:0;width:auto!important}
  .st-cmp td{font-size:16px;line-height:1.4}
}
@media (max-width:420px){
  .st-lab{font-size:11px}
  .st-title{font-size:11.5px}
}

/* A column of words under a dot (students.mjs col()): top-aligned, one line each. */
.st-lab.st-col{transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;text-align:center}
.st-col>*{display:block}
.st-col b{font-weight:500}
