/* Physics 101: joins the practice app to the site's look (header, menu, lab links).
   Only the header and the added lab links are touched; the practice app itself is unchanged. */
@font-face{font-family:"Plex";font-weight:500;font-display:swap;src:url(../../../assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Plex";font-weight:600;font-display:swap;src:url(../../../assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2")}
header.top{position:relative}
.top-in{padding:.45rem 1.1rem;gap:.7rem}
.logo{width:2.1rem;height:2.1rem;border-radius:.45rem;font-size:.82rem;letter-spacing:-.02em}
.brand{font-size:1.18rem}
.site-links{display:flex;gap:.15rem;margin-left:1rem;font-family:"Plex",system-ui,sans-serif}
.site-links a{color:var(--ink-soft);text-decoration:none;font-weight:600;font-size:.88rem;padding:.3rem .6rem;border-radius:.4rem;white-space:nowrap}
.site-links a:hover{color:var(--ink);background:var(--card)}
.icon-btn{font-family:"Plex",system-ui,sans-serif;font-weight:500;font-size:.86rem;min-height:2.1rem;padding:.2rem .7rem;border-radius:.5rem}
@media (max-width:860px){ .site-links{display:none} }

/* the virtual lab for this chapter, shown on the chapter page */
.p101-labs{margin:1.1rem 0 .2rem;padding:.85rem 1rem;border-radius:.7rem;background:#E1EEE6;border:1px solid #BFD9C9}
.p101-labs h2{margin:0 0 .45rem!important;border:0!important;padding:0!important;color:#1C6247;font-size:.95rem!important}
.p101-labs a{display:flex;align-items:center;gap:.55rem;color:#1C6247;font-weight:700;text-decoration:none;padding:.3rem 0;font-family:"Plex",system-ui,sans-serif;font-size:1rem}
.p101-labs a:hover{text-decoration:underline}
.p101-labs svg{width:1.15rem;height:1.15rem;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p101-labs small{font-weight:500;color:#46506A;font-size:.85rem}
:root[data-theme="dark"] .p101-labs{background:#173328;border-color:#24503E}
:root[data-theme="dark"] .p101-labs h2,:root[data-theme="dark"] .p101-labs a{color:#7FD3A8}
:root[data-theme="dark"] .p101-labs small{color:#A9B0C2}

/* send this question to a friend */
.p101-share{display:inline-flex;align-items:center;gap:.5rem;margin:.6rem 0 .2rem;padding:.5rem 1rem .5rem .75rem;border-radius:999px;background:#E3F5EA;color:#146C3A;
  font-family:"Plex",system-ui,sans-serif;font-weight:600;font-size:.95rem;text-decoration:none;border:1px solid #BDE3CB}
.p101-share:hover{border-color:#146C3A}
.p101-share svg{width:1.2rem;height:1.2rem}
:root[data-theme="dark"] .p101-share{background:#173328;color:#7FD3A8;border-color:#24503E}

/* ---------- the question first ---------- */
#main .chapter, #main .meta{display:none}
.p101-line{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .7rem;margin:.55rem 0 0;font-family:"Plex",system-ui,sans-serif}
body:not([data-view="problem"]) .p101-line{display:none}
.p101-back{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;border:1px solid var(--rule);background:var(--card);color:var(--ink);
  text-decoration:none;font-size:1.35rem;line-height:1;padding-bottom:.15rem}
.p101-back:hover{border-color:var(--ink-soft)}
.p101-where{border:0;background:none;padding:.2rem .1rem;font:inherit;font-weight:600;font-size:1rem;color:var(--ink);cursor:pointer;text-align:left;
  max-width:60vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p101-where::after{content:" \25BE";color:var(--ink-soft);font-size:.8em}
.p101-where:hover{text-decoration:underline}
.p101-count{font-weight:600;font-size:1rem;color:var(--ink-soft)}
.p101-count:not(:empty)::before{content:"·";margin-right:.7rem;color:var(--rule)}
.p101-stat{font-weight:600;font-size:.92rem;color:var(--known-ink)}

/* the question card: question, figure and choices first; where it came from, small, at the bottom */
.sheetpage{display:flex;flex-direction:column}
.sheetpage .card{order:1}
.sheetpage .note{order:2}
.sheetpage .catrow{display:none}
.sheetpage .titlerow{order:3;border:0;padding:0;margin:.8rem 0 0;text-align:right}
.sheetpage .titlerow h1{font-family:"Plex",system-ui,sans-serif;font-weight:600;font-size:.92rem;color:var(--ink-soft);letter-spacing:0;line-height:1.4}
.sheetpage .sub{order:4;margin:.15rem 0 0;text-align:right;font-style:normal;font-family:"Plex",system-ui,sans-serif;font-weight:600;font-size:.92rem}
body.p101-exam .sheetpage .titlerow{display:none}
body.p101-exam .sheetpage .sub{margin-top:.8rem}
body.p101-topic .sheetpage .sub{display:none}
body.p101-tryseen #try{display:none!important}

/* Focus */
.p101-focusbtn[aria-pressed="true"]{background:#16223F;color:#fff;border-color:#16223F}
.p101-exitfocus{display:none}
body.p101-focus header.top, body.p101-focus .p101-line{display:none}
body.p101-focus .p101-exitfocus{display:block;position:fixed;top:.6rem;right:.8rem;z-index:60;font-family:"Plex",system-ui,sans-serif;font-weight:600;font-size:.88rem;
  border:1px solid var(--rule);background:var(--card);color:var(--ink-soft);border-radius:999px;padding:.35rem .85rem;cursor:pointer;opacity:.75}
body.p101-focus .p101-exitfocus:hover{opacity:1}
body.p101-focus .statement{font-size:1.3rem}
body.p101-focus #main{padding-top:.8rem}
@media (max-width:560px){ .p101-where{max-width:52vw} }
/* the question text: the biggest thing on the page */
.sheetpage .card .statement{font-size:1.3rem;line-height:1.6}
@media (max-width:560px){ .sheetpage .card .statement{font-size:1.14rem} }
body.p101-focus .sheetpage .card .statement{font-size:1.45rem}

/* ---------- v2.3: the question stays in view ---------- */
@media (min-width:900px){
  .qcol{padding-bottom:1rem}
  .qcol.p101-tall{max-height:calc(100vh - 8rem);overflow-y:auto;overscroll-behavior:contain;-webkit-mask-image:none;mask-image:none}
  .qcol .statement figure.pimg img{max-height:40vh;width:auto;max-width:100%;height:auto;display:block;margin:0 auto}
  /* a little room at the bottom of the page, so the player never sits on the question card */
  #runway{min-height:6rem}
}
/* once the solution has started, the choices fold into one row of letters */
body.p101-compact:not(.p101-expand) .sheetpage .mcq{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}
body.p101-compact:not(.p101-expand) .sheetpage .mcq li{flex:none}
body.p101-compact:not(.p101-expand) .sheetpage .mcq .mc{width:auto;padding:.3rem;gap:0;border-radius:999px}
body.p101-compact:not(.p101-expand) .sheetpage .mcq .mc-t{display:none}
.p101-choices{display:none}
body.p101-compact .p101-choices{display:inline-block;margin:.5rem 0 0;border:0;background:none;padding:.2rem 0;font-family:"Plex",system-ui,sans-serif;font-weight:600;
  font-size:.9rem;color:var(--gold);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media (min-width:900px){
  body.p101-compact:not(.p101-expand) .qcol .statement figure.pimg img{max-height:28vh}
}
