/* Headstart · NCLEX-RN course pages (src/site/nclex/). Builds on daylight.css:
   its tokens, type and the raised style. One file for every course page. */

/* Moving between course pages crossfades (daylight.css sets the timing and
   the top bar's and logo's names); off when the reader asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

.course { position: relative; font-family: var(--sans); color: var(--ink-body); }
.course .num { font-variant-numeric: tabular-nums; }
.course-card { --fill: var(--card); --border: var(--line-soft); --ledge-c: var(--ledge); max-width: 1160px; margin: 0 auto; border-radius: 28px; padding: clamp(20px, 5vw, 60px); }
.course-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; margin-top: 26px; }
.course-col { min-width: 0; }
.course-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 16px 12px; border-radius: 20px; }
.course-side .label { display: block; padding: 0 10px 10px; }
.course-side ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.course-side a { display: block; padding: 7px 10px; border-radius: 12px; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .course-side a:hover { background: rgba(255, 255, 255, .6); color: var(--ink); } }
.course-side a:active { background: rgba(255, 255, 255, .6); color: var(--ink); }
.course-side a.on { background: var(--card); color: var(--accent-700); font-weight: 800; box-shadow: 0 2px 0 var(--ledge); }
@media (max-width: 980px) { .course-layout { grid-template-columns: minmax(0, 1fr); } .course-side { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14.5px; font-weight: 700; }
.crumbs > a:not(.pill) { color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs > a:not(.pill):hover { color: var(--accent-700); text-decoration: underline; } }
.crumbs > a:not(.pill):active { color: var(--accent-700); text-decoration: underline; }
.crumbs > span { color: var(--line); }
.course-title { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; margin-top: 10px; }
.course-col > .eyebrow { margin-top: 4px; color: var(--accent-700); }
.course-lead { margin-top: 14px; max-width: 62ch; }

/* sections */
.course section.sec { margin-top: 52px; scroll-margin-top: 24px; }
.course section.sec:first-of-type { margin-top: 32px; }
.course .sec-head { margin-bottom: 16px; }
.course .sec-head h2 { font-size: clamp(24px, 3vw, 30px); }
.course .sec > p, .course .sec > .plain { max-width: 68ch; }
.course .sec > * + * { margin-top: 14px; }
.course .sec > h3 + * { margin-top: 8px; }
.course h3 { font-family: var(--sans); font-weight: 800; font-size: 18px; color: var(--ink); margin-top: 26px !important; }
.course ul.plain { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.course ul.plain li { padding-left: 4px; }
.course ul.plain li::marker { color: var(--accent); font-weight: 800; }
.course b, .course strong { color: var(--ink); font-weight: 800; }
.course abbr { text-decoration: none; }
.course dfn { font-style: normal; font-weight: 800; color: var(--ink); }

/* in one minute */
.minute { border-radius: 22px; padding: clamp(18px, 3vw, 26px); background: var(--sage-200); border: 1px solid var(--sage-border); box-shadow: 0 3px 0 var(--sage-ledge); }
.minute h2 { font-size: 22px; color: var(--sage-700); }
.minute ul { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.minute li::marker { color: var(--sage-700); }

/* key terms */
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 0; }
.term { --fill: var(--card); --border: var(--line-soft); border-radius: 18px; padding: 14px 16px; }
.term dt { font-weight: 800; color: var(--ink); line-height: 1.3; }
.term dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }

/* notes */
.note { border-radius: 18px; padding: 14px 18px; font-size: 16px; max-width: 72ch; }
.note p + p { margin-top: 8px; }
.note-label { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.note-sage { background: var(--sage-200); border: 1px solid var(--sage-border); color: var(--ink); }
.note-sage .note-label { color: var(--sage-700) !important; }
.note-amber { background: var(--amber-tint); border: 1px solid var(--amber-border); color: var(--ink); }
.note-amber .note-label { color: var(--amber) !important; }
.note-blue { background: var(--accent-100); border: 1px solid var(--accent-border); color: var(--ink); }
.note-blue .note-label { color: var(--accent-700) !important; }

/* figures and tables */
.fig { margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.fig-body { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 22px; padding: clamp(14px, 2.4vw, 22px); overflow-x: auto; box-shadow: 0 3px 0 var(--ledge); }
.fig-body:focus-visible, .table:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fig figcaption { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.fig figcaption b { color: var(--ink); }
.fig svg { display: block; width: 100%; height: auto; }
.fig svg text { font-family: var(--sans); fill: var(--ink); }
.fig svg .muted { fill: var(--ink-muted); }
.svg-min { min-width: 36rem; }
.table { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 16px; background: #fff; }
.course table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.course caption { caption-side: top; text-align: left; padding: 12px 16px 10px; font-weight: 800; color: var(--ink); }
.course thead th { text-align: left; background: var(--paper); font-weight: 800; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); padding: 12px 16px; border-block: 1px solid var(--line-soft); }
.course tbody td, .course tbody th { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; font-weight: 400; }
.course tbody th { font-weight: 800; color: var(--ink); }
.course tbody tr:last-child td, .course tbody tr:last-child th { border-bottom: 0; }

/* side by side */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.side { border-radius: 20px; padding: 16px 18px; border: 1px solid; }
.side-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.side-head span { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; }
.side ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; color: var(--ink); }
.side-blue { background: var(--accent-100); border-color: var(--accent-border); } .side-blue .side-head { color: var(--accent-700); } .side-blue b { color: var(--accent-700); }
.side-sage { background: var(--sage-200); border-color: var(--sage-border); } .side-sage .side-head { color: var(--sage-700); } .side-sage b { color: var(--sage-700); }
.side-amber { background: var(--amber-tint); border-color: var(--amber-border); } .side-amber .side-head { color: var(--amber); } .side-amber b { color: var(--amber); }
.side-violet { background: var(--violet-tint); border-color: #dcc4e6; } .side-violet .side-head { color: var(--violet); } .side-violet b { color: var(--violet); }

/* ordered actions */
.actions { list-style: none; margin: 0; padding: 0; counter-reset: act; display: flex; flex-direction: column; gap: 10px; max-width: 74ch; }
.actions li { counter-increment: act; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.actions li::before { content: counter(act); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 18px; border: 2px solid var(--accent); background: var(--accent-100); color: var(--accent-700); }
.actions b { padding-top: 8px; }
.actions span { font-size: 15.5px; }

/* exam angles, red flags, memory aids */
.angles { display: flex; flex-direction: column; gap: 10px; max-width: 76ch; }
.angle { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; }
.angle b { display: block; }
.angle span { display: block; font-size: 15.5px; margin-top: 2px; }
.flags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.flags li { border-radius: 16px; padding: 12px 14px 12px 40px; background: #f6dcd6; border: 1px solid #e8bdb3; position: relative; }
.flags li::before { content: "!"; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #a2483a; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.flags b { display: block; color: #7a3226; }
.flags span { display: block; font-size: 14.5px; margin-top: 2px; color: var(--ink); }
.aids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.aid { --fill: var(--card); --border: var(--line-soft); border-radius: 18px; padding: 14px 16px; }
.aid b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--accent-700); line-height: 1.15; }
.aid span { display: block; font-size: 15px; margin-top: 6px; }

/* the 3D model card without its viewer: the tour as a list, the notes as terms */
.m3d { margin: 24px 0 0; border-radius: 24px; background: var(--paper); border: 1px solid var(--line-soft); box-shadow: 0 3px 0 var(--ledge); padding: clamp(14px, 2.4vw, 22px); }
.m3d:not(.m3d-js) .m3d-stage { display: none; }
.m3d-tour { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.m3d-tour li::marker { color: var(--accent); font-weight: 800; }
.m3d-tour b { display: block; }
.m3d-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 16px; margin: 16px 0 0; font-size: 14.5px; }
.m3d-notes dt { font-weight: 800; color: var(--ink); }
.m3d-notes dd { margin: 2px 0 0; }
.m3d figcaption { font-size: 14px; color: var(--ink-muted); margin-top: 14px; }

/* practice questions */
.qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.q { --fill: var(--card); --border: var(--line-soft); border-radius: 22px; padding: clamp(16px, 2.6vw, 24px); }
.q-n { color: var(--accent-700); }
.q-stem { margin-top: 8px !important; color: var(--ink); font-weight: 600; max-width: 70ch; }
.q-opts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-opt { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink-body); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.q-opt:disabled { cursor: default; }
/* A tapped answer used to keep this border (sticky hover) and look chosen. */
@media (hover: hover) and (pointer: fine) { .q-opt:not(:disabled):hover { border-color: var(--accent); } }
.q-opt:not(:disabled):active { border-color: var(--accent); }
.q-l { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--mist); color: var(--ink-soft); }
.q-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-100); box-shadow: 0 0 0 1px var(--accent) inset; }
.q-opt[aria-pressed="true"] .q-l { background: var(--accent); color: #fff; }
.q-opt.right { border-color: #2f6b4f; background: #d6ecdf; box-shadow: 0 0 0 1px #2f6b4f inset; }
.q-opt.right .q-l { background: #2f6b4f; color: #fff; }
.q-opt.wrong { border-color: #a2483a; background: #f6dcd6; box-shadow: 0 0 0 1px #a2483a inset; }
.q-opt.wrong .q-l { background: #a2483a; color: #fff; }
.q-opt.missed { border-style: dashed; border-color: #2f6b4f; }
.q-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.q-bar button { font: inherit; font-weight: 800; }
.q-result { font-weight: 800; }
.q-result.ok { color: #2f6b4f; } .q-result.no { color: #a2483a; }
.q-why { margin-top: 12px; }
.q-why summary { cursor: pointer; font-weight: 800; color: var(--accent-700); }
.q-why summary:active, .pr-key summary:active { opacity: .7; } /* pressed: the text dims under the finger */
.q-why p { margin-top: 8px; max-width: 72ch; font-size: 15.5px; }
.q.js .q-why summary { display: none; }
.q.js .q-why:not([open]) { display: none; }

/* links to other pages */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.links a, .links .soon { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 700; height: 100%; }
.links a span:last-child, .links .soon span:last-child { color: var(--ink-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.links .soon { border: 1px dashed var(--line); color: var(--ink-muted); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding: 16px 20px; border-radius: 20px; text-decoration: none; color: var(--accent-800); font-weight: 800; font-size: 18px; }
.next .eyebrow { display: block; color: var(--accent-700); margin-bottom: 4px; }
.course ol.refs { padding-left: 26px; font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.course ol.refs li { overflow-wrap: anywhere; padding-left: 4px; }
.course ol.refs li::marker { color: var(--accent); font-weight: 800; }
.course-foot { margin-top: 40px; padding: 18px 22px; border-radius: 20px; font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 8px; }

/* unit pages */
.unit-head { display: flex; gap: 20px; align-items: flex-start; margin-top: 26px; }
.unit-n { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 22px; border: 2px solid var(--accent); background: var(--accent-100); color: var(--accent-700); }
.topics { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; counter-reset: tp; }
.topic { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 20px; text-decoration: none; color: var(--ink-body); font-size: 15px; }
.topic b { font-size: 17px; line-height: 1.3; }
.topic.soon { border: 1px dashed var(--line); color: var(--ink-muted); }
.topic.soon b { color: var(--ink-soft); }
.chip { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--mist); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* hub */
.hub-hero { text-align: left; }
.hub-hero h1 { margin-top: 12px; }
.hub-hero .lead { margin-top: 18px; max-width: 60ch; }
.hub-cta { gap: 10px; margin-top: 24px; }
.hub-cta .pill { font-weight: 800; text-decoration: none; }
.hub-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; }
.hub-facts div { border-radius: 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-soft); }
.hub-facts dt { font-family: var(--display); font-size: 30px; color: var(--accent-700); line-height: 1.1; }
.hub-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 640px) { .hub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-sec { max-width: 1160px; margin: clamp(48px, 7vw, 80px) auto 0; }
.hub-sec > .lead { margin-top: 10px; max-width: 64ch; }
.hub-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: hs; }
.hub-steps li { --fill: var(--card); counter-increment: hs; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.hub-steps li::before { content: counter(hs); font-family: var(--display); font-size: 24px; color: var(--accent); line-height: 1; }
.hub-steps b { font-size: 16.5px; }
@media (max-width: 980px) { .hub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hub-steps { grid-template-columns: 1fr; } }
.areas { --fill: var(--card); --border: var(--line-soft); margin-top: 20px; border-radius: 24px; padding: 6px clamp(16px, 3vw, 24px) 10px; display: flex; flex-direction: column; }
.area { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.area:first-child { border-top: 0; }
.area-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.area-top span { font-weight: 800; color: var(--accent-700); white-space: nowrap; }
.area .track { position: relative; height: 12px; border-radius: 99px; background: var(--sunk); margin: 8px 0 6px; box-shadow: inset 0 2px 3px rgba(46, 43, 37, .12); }
.area .fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); }
.units { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.unit { --fill: var(--card); --border: var(--line-soft); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.unit-link { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink-body); }
.unit-link .unit-n { width: 42px; height: 42px; font-size: 18px; }
.unit-link b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .unit-link:hover b { color: var(--accent-700); } }
.unit-link:active b { color: var(--accent-700); }
.unit-link .small { display: block; margin-top: 4px; }
.unit-topics { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.unit-topics a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .unit-topics a:hover { text-decoration: underline; } }
.unit-topics a:active { text-decoration: underline; }
.unit-topics .muted { font-weight: 600; font-size: 14px; }
.hub-foot { max-width: 1160px; margin: clamp(40px, 6vw, 64px) auto 0; }

/* interactive tools (public/site/nclex/tools/) share these */
.tool { --fill: var(--card); --border: var(--line-soft); border-radius: 24px; padding: clamp(16px, 3vw, 26px); margin-top: 24px; }
.tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.tool-head h3 { margin: 0 !important; font-family: var(--display); font-weight: 400; font-size: 24px; }
.tool .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 12px; margin-top: 16px; }
.tool label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.tool label small { font-weight: 600; color: var(--ink-muted); }
.tool input { font: inherit; font-size: 20px; font-weight: 700; color: var(--ink); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; width: 100%; font-variant-numeric: tabular-nums; }
.tool input:focus { outline: 3px solid var(--accent-300); border-color: var(--accent); }
.tool .tool-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool .tool-row button { font: inherit; font-weight: 800; }
.tool .err { color: #a2483a; font-size: 14px; font-weight: 700; margin-top: 10px; }
.tool-out { margin-top: 18px; }
.noscript-only { display: block; }
.js-on .noscript-only { display: none; }

/* phones: give the text the width */
@media (max-width: 480px) {
  .course main.wrap { padding-inline: 8px; }
  .course-card { padding: 20px 16px; border-radius: 22px; }
  .q { padding: 16px 14px; }
  .fig-body, .m3d { border-radius: 18px; padding: 12px; }
}

/* blood gas analyser (tools/abg.js) */
.ttt { min-width: 0 !important; table-layout: fixed; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; border-collapse: separate !important; border-spacing: 0; }
.ttt caption { padding: 10px 16px 8px !important; }
.ttt th, .ttt td { padding: 12px 10px !important; text-align: center !important; border-bottom: 1px solid var(--line-soft); }
.ttt tbody th { text-align: left !important; width: 30%; }
.ttt tbody th small { display: block; font-weight: 600; color: var(--ink-muted); font-size: 12px; }
.ttt td { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.ttt td.on.ttt-acid { background: #f6dcd6; color: #7a3226; }
.ttt td.on.ttt-normal { background: #d6ecdf; color: #2f6b4f; }
.ttt td.on.ttt-base { background: var(--accent-200); color: var(--accent-700); }
.abg-answer { margin-top: 16px; border-radius: 18px; padding: 16px 18px; background: var(--accent-100); border: 1px solid var(--accent-border); }
.abg-name { font-family: var(--display); font-size: 24px; color: var(--accent-800); line-height: 1.2; margin-top: 4px !important; }
.abg-name span { color: var(--accent-700); }
.abg-steps { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; color: var(--ink); }
.abg-o2 { margin-top: 10px !important; font-weight: 700; color: var(--ink); }
.abg-who { margin-top: 14px !important; border-radius: 14px; padding: 12px 14px; background: var(--amber-tint); border: 1px solid var(--amber-border); color: var(--ink); font-weight: 600; }

/* scale bars for normal ranges */
.ranges { display: flex; flex-direction: column; gap: 16px; }
.range-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 14px; align-items: center; }
.range-row .lab b { display: block; }
.range-row .lab span { font-size: 13.5px; color: var(--ink-muted); }
.range-bar { position: relative; height: 30px; border-radius: 10px; overflow: hidden; display: flex; font-size: 12.5px; font-weight: 800; }
.range-bar > div { display: grid; place-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.range-bar .lo { background: #f6dcd6; color: #7a3226; }
.range-bar .ok { background: #d6ecdf; color: #2f6b4f; }
.range-bar .hi { background: var(--accent-200); color: var(--accent-700); }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .range-row { grid-template-columns: 1fr; gap: 6px; } }

/* "Who goes first?" (tools/priority.js) */
.pr-set + .pr-set { margin-top: 22px; }
.pr-title { font-weight: 800; color: var(--ink); margin-top: 12px !important; }
.pr-cards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .pr-cards { grid-template-columns: 1fr; } }
.pr-card { width: 100%; height: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: start; text-align: left; font: inherit; font-size: 15.5px; line-height: 1.45; color: var(--ink-body); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.pr-card:disabled { cursor: default; }
.js .pr-card:not(:disabled) { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .js .pr-card:not(:disabled):hover { border-color: var(--accent); } }
.js .pr-card:not(:disabled):active { border-color: var(--accent); }
.pr-badge { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 16px; background: var(--mist); color: var(--ink-soft); white-space: nowrap; }
.pr-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-100); }
.pr-card[aria-pressed="true"] .pr-badge { background: var(--accent); color: #fff; }
.pr-why { grid-column: 2; font-size: 14px; color: var(--ink-muted); }
.js .pr-why { display: none; }
.js .done .pr-why { display: block; color: var(--ink); }
.pr-card.right { border-color: #2f6b4f; background: #d6ecdf; }
.pr-card.right .pr-badge { background: #2f6b4f; color: #fff; }
.pr-card.wrong { border-color: #a2483a; background: #f6dcd6; }
.pr-card.wrong .pr-badge { background: #a2483a; color: #fff; font-family: var(--sans); font-weight: 800; font-size: 12px; width: auto; min-width: 34px; padding: 0 6px; border-radius: 17px; }
.pr-key { margin-top: 10px; }
.pr-key summary { cursor: pointer; font-weight: 800; color: var(--accent-700); }
.pr-key ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.js .pr-key { display: none; }
.js .pr-help { display: block; }
.pr-help { display: none; margin-top: 8px !important; }

/* Blocks from the owner's design kit (card K1, 2026-10-31). Red is only for
   red flags and wrong answers, sage for summaries and right answers, violet
   for exam traps. */
.course { --alert: #b4442f; --alert-text: #9e2f1f; --alert-tint: #fbe3df; --alert-border: #efc2ba; --violet-border: #dcc3e6; --violet-ledge: #d2b4de; }

/* labels under the title */
.page-labels { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.page-labels li { padding: 4px 12px; border-radius: 999px; background: var(--accent-100); border: 1px solid var(--accent-border); color: var(--accent-700); font-size: 13px; font-weight: 800; }
.page-labels li.hy { background: var(--violet-tint); border-color: var(--violet-border); color: var(--violet); }

/* "Visual n · kind" over a visual */
.course .vis { color: var(--ink-muted); margin-bottom: 2px; }
.m3d > .vis { margin-bottom: 10px; }

/* number line */
.nl { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 16px 12px; }
.nl + .nl { margin-top: 12px; }
.nl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.nl-head b { font-size: 16px; }
.nl-head span { font-size: 13.5px; color: var(--ink-muted); }
.nl-track { position: relative; height: 14px; border-radius: 99px; background: var(--paper); margin-top: 12px; overflow: hidden; }
.nl-track > div { position: absolute; top: 0; bottom: 0; }
.nl-ok { background: var(--sage); }
.nl-alert { background: var(--alert-tint); box-shadow: inset 0 0 0 1px var(--alert-border); }
.nl-warn { background: var(--amber-tint); box-shadow: inset 0 0 0 1px var(--amber-border); }
.nl-ticks { position: relative; height: 22px; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.nl-ticks span { position: absolute; top: 4px; transform: translateX(-50%); }
.nl-ticks span:first-child { transform: none; }
.nl-ticks span:last-child { transform: translateX(-100%); }
.nl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nl-chip { padding: 4px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.nl-chip-ok { background: var(--sage-200); color: var(--sage-700); }
.nl-chip-alert { background: var(--alert-tint); color: var(--alert-text); }
.nl-chip-warn { background: var(--amber-tint); color: var(--amber); }

/* priority ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 76ch; }
.rung { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; border-radius: 16px; padding: 12px 16px; font-size: 15.5px; line-height: 1.45; }
.rung-n { font-family: var(--display); font-size: 20px; line-height: 1.2; }
.rung-0 { background: var(--accent-800); color: #fff; } .rung-0 b { color: #fff; }
.rung-1 { background: var(--accent-600); color: #fff; } .rung-1 b { color: #fff; }
.rung-2 { background: var(--accent-200); color: var(--accent-800); } .rung-2 b { color: var(--accent-800); }
.rung-3 { background: var(--accent-100); color: var(--ink); border: 1px solid var(--accent-border); }
.rung-4 { background: var(--paper); color: var(--ink); border: 1px solid var(--line-soft); }
@media (max-width: 560px) { .rung { margin-left: 0 !important; } }

/* exam trap */
.trap { border-radius: 18px; padding: 14px 18px; background: var(--violet-tint); border: 1px solid var(--violet-border); color: var(--ink); max-width: 76ch; }
.trap .note-label { color: var(--violet) !important; }

/* drug cards */
.drugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.drug { border-radius: 18px; padding: 14px 16px; background: var(--accent-100); border: 1px solid var(--accent-border); }
.drug-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: baseline; }
.drug-head b { font-size: 17px; }
.drug-head span { font-size: 13px; font-weight: 800; color: var(--accent-700); }
.drug dl { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 6px 10px; margin: 10px 0 0; font-size: 15px; }
.drug dt { font-weight: 800; color: var(--accent-700); }
.drug dd { margin: 0; color: var(--ink); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 16px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 24px; border-top: 3px solid var(--line); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 14.5px; }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-200); margin-bottom: 6px; position: relative; }
.timeline b { font-size: 15.5px; }
@media (max-width: 640px) {
  .timeline { grid-auto-flow: row; padding: 0 0 0 8px; }
  .timeline::before { left: 16px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 3px solid var(--line); }
  .timeline li { align-items: flex-start; text-align: left; padding-left: 34px; }
  .tl-dot { position: absolute; left: 0; top: 2px; }
}

/* previous and next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.pager .next { margin-top: 0; }
.prev { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 17px; }
.prev .eyebrow { display: block; margin-bottom: 4px; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } }

/* ---------- the study bar (layout.ts studyBar, account.js) ---------- */
.study-bar { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.study-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.study-actions .pill { text-decoration: none; font-weight: 800; }
.study-actions .pill.t-ink, .practise-later .pill.t-ink, .lc-actions .pill.t-ink { color: #fff; }
/* A lesson's cards page (layout.ts renderLessonCards, cards.js). */
.lc-page { max-width: 720px; margin-inline: auto; margin-top: 22px; }
.lc-page > p:last-child { margin: 18px 0 0; }
.lc-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lc-card { border-radius: var(--r-card); padding: clamp(18px, 4vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.lc-card .eyebrow { margin: 0; }
.lc-term { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 5vw, 34px); line-height: 1.1; }
.lc-meaning { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.lc-meaning p:last-child { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-body); }
.lc-count { margin: 0 0 10px; }
.lc-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.lc-actions .pill { min-height: 48px; padding: 0 22px; cursor: pointer; text-decoration: none; }
.lc-on .lc-card { min-height: 220px; }
.lc-on .lc-card:not(.open) .lc-meaning { display: none; }
.lc-done { margin-top: 4px; padding: 18px; border-radius: var(--r-md); }
.lc-done p { margin: 0; font-weight: 700; color: var(--accent-700); }
.study-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.study-note a { font-weight: 700; }
.study-note .done { color: var(--sage-700); font-weight: 800; }
.practise-later { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.practise-later p { margin: 0; font-weight: 700; color: var(--accent-700); }
.practise-later .pill { text-decoration: none; }
.study-note button { font: inherit; font-weight: 700; color: var(--accent-700); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.study-note button:active { opacity: .7; }
.hub-status { margin-top: 18px; }
.read-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 12px; font-weight: 800; margin-left: 6px; flex: none; }

/* ---------- clarity on the path (owner, 2026-11-15): how sure, the score
   card, and where a signed-in reader stands (page.js, account.js) ---------- */
.q-bar[hidden], .q-sure[hidden], .q-again[hidden], .hub-check[hidden] { display: none; }
.q-sure { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.q-ask { flex-basis: 100%; }
.q-sure + .q-again, .q-result { flex: 1 1 auto; }
.q-again { flex: none; }
.q-bar .pill { font-size: 12.5px; }
@media (max-width: 480px) {
  .q-sure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .q-ask { grid-column: 1 / -1; }
  .q-sure .pill { justify-content: center; text-align: center; padding: 0 6px; letter-spacing: .03em; }
}
.sure-1, .sure-2 { color: #fff; }
.sure-1:hover, .sure-2:hover, .sure-1:active, .sure-2:active { color: #fff; }
.sure-1 { --fill: var(--accent-700); --border: var(--accent-800); --ledge-c: var(--accent-800); background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 55%), var(--accent-700); }
.sure-2 { --fill: var(--accent); --border: var(--accent-700); --ledge-c: var(--accent-700); background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 55%), var(--accent); }
.sure-3 { --fill: var(--accent-200); --border: var(--accent-border); --ledge-c: var(--accent-ledge); color: var(--accent-800); }
.sure-3:hover, .sure-3:active { color: var(--accent-800); }

.q-score { border-radius: 24px; padding: clamp(18px, 3vw, 24px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.course .sec > .q-score { margin-top: 18px; }
.q-score.t-amber > .eyebrow { color: var(--amber); }
.course .q-score-n { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 !important; color: var(--ink); }
.q-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.q-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; box-sizing: border-box; }
.q-dot-right { background: var(--accent-700); color: #fff; }
.q-dot-wrong { border: 2px solid var(--amber); color: var(--amber); }
.q-score .small { margin: 0; max-width: 62ch; color: var(--ink); }
.q-score .tiny { margin: 0; }
.q-score .pill { font-weight: 800; text-decoration: none; }
.q-score button.pill { font: inherit; font-weight: 800; font-size: 12.5px; }

.study-area { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 10px 14px; border-radius: 16px; background: var(--accent-100); border: 1px solid var(--accent-border); color: var(--accent-800); font-size: 14px; }
.study-area b { color: var(--accent-800); font-size: 15px; }

.next-for-you { border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.course .sec > .next-for-you + .links { margin-top: 16px; }
.next-for-you .eyebrow { color: var(--accent-800); }
.course .next-for-you p { margin: 0; }
.nfy-title { font-family: var(--display); font-size: 24px; line-height: 1.2; color: var(--ink); }
.next-for-you .small { color: var(--accent-800); max-width: 62ch; }
.next-for-you b { color: var(--accent-800); }
.next-for-you .pill { font-weight: 800; text-decoration: none; }

.hub-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.hub-areas { flex: 2 1 560px; min-width: 0; }
.hub-areas > .lead { margin-top: 10px; max-width: 64ch; }
.hub-check { flex: 1 1 280px; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hub-check h2 { color: var(--ink); }
.hub-check p { margin: 0; color: var(--accent-800); }
.hub-check .pill { font-weight: 800; text-decoration: none; }
.hub-standing { padding: 14px 18px; border-radius: 20px; background: var(--accent-100); border: 1px solid var(--accent-border); color: var(--accent-800); font-size: 15px; }
.hub-standing .done { color: var(--accent-800); }
.you { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--accent-800); margin: 0 0 6px; }
.you-label { flex: none; }
.you-track { position: relative; flex: 1; min-width: 60px; height: 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.you-zone { position: absolute; top: 0; bottom: 0; right: 0; background: var(--sage-200); }
.you-range { position: absolute; top: 1px; bottom: 1px; border-radius: 99px; background: var(--accent-700); }
.lift .you-range { background: var(--amber); }
.course .lift-note { color: var(--amber); }
.you-few { flex: 1; font-weight: 700; color: var(--ink-body); }
.you-num { flex: none; font-variant-numeric: tabular-nums; }
.you-key { margin: 10px 0 2px; }
/* A wrong answer joins Weak spots (account.js showWeak). */
.q-weak { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-100); color: var(--ink-body); }
.q-weak b { color: var(--accent-700); }
.q-weak a { font-weight: 700; }
/* Report a mistake (layout.ts, parts.ts, report.js). */
.report-line { margin: 28px 0 10px; font-size: 14.5px; color: var(--ink-soft); }
.report-line a, .q-report a { font-weight: 700; }
.q-report { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.q-why:not([open]) + .q-report { display: none; }
.rp-back { position: fixed; inset: 0; z-index: 1000; background: rgba(32, 30, 29, .35); display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 8vh, 80px) 16px 16px; overflow: auto; }
.rp-sheet { width: min(520px, 100%); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rp-head h2, .rp-done h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.rp-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--paper); font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.rp-close:active { background: var(--sunk); }
.rp-form { display: flex; flex-direction: column; gap: 14px; }
.rp-part { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--paper); font-size: 14.5px; }
.rp-part span { color: var(--ink-soft); }
.rp-form fieldset { margin: 0; padding: 0; border: 0; }
.rp-form legend { font-weight: 700; margin-bottom: 10px; }
.rp-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.rp-choice:has(input:checked) { background: var(--accent-200); border-color: var(--accent-700); color: var(--accent-700); }
.rp-choice:active { border-color: var(--accent-700); }
.rp-label { font-weight: 700; }
.rp-label span { font-weight: 400; color: var(--ink-soft); }
.rp-form textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15.5px; line-height: 1.5; color: var(--ink); resize: vertical; }
.rp-send { min-height: 52px; justify-content: center; cursor: pointer; color: #fff; }
.rp-status { margin: 0; font-size: 14px; color: var(--amber); min-height: 1em; }
.rp-privacy { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.rp-done { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rp-done .pill { color: #fff; cursor: pointer; }
.rp-tick { margin: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--sage-200); color: var(--sage-700); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
/* The course's search (layout.ts searchBox, search.js). */
.cs-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.cs { position: relative; }
.cs-home { margin: 18px 0 6px; max-width: 640px; }
.cs-bar .cs { width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.cs-bar .cs-panel { width: min(640px, 100%); }
.cs-open { cursor: pointer; }
.cs-label { display: block; font-weight: 700; margin-bottom: 8px; }
.cs-field { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 16px; border-radius: 22px; }
.cs-field input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.cs-field:focus-within { box-shadow: 0 0 0 3px rgba(52, 99, 168, .3); }
.cs-close { min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent-700); cursor: pointer; }
.cs-close:active { opacity: .7; }
.cs-note { margin: 8px 2px 0; font-size: 13.5px; color: var(--ink-soft); }
.cs-results { margin-top: 8px; padding: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: 0 14px 32px rgba(46, 43, 37, .16); max-height: min(70vh, 560px); overflow: auto; text-align: left; }
.cs-home .cs-results, .cs-bar .cs-results { position: absolute; left: 0; right: 0; z-index: 20; }
.cs-bar .cs-results { left: auto; width: min(640px, 100%); }
.cs-group { margin: 8px 10px 2px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.cs-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.cs-opt.on, .cs-opt:active { background: var(--accent-100); }
@media (hover: hover) and (pointer: fine) { .cs-opt:hover { background: var(--accent-100); } }
.cs-name { font-weight: 700; }
.cs-name b { font-weight: 800; color: var(--accent-700); }
.cs-snip { font-size: 14px; color: var(--ink-body); }
.cs-snip b { color: var(--ink); }
.cs-hint, .cs-empty { margin: 8px 12px; font-size: 13.5px; color: var(--ink-soft); }
.cs-empty { font-size: 16px; font-weight: 700; color: var(--ink); }
.cs-mean { margin: 4px 12px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-mean .pill { cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; }
.cs-units { list-style: none; margin: 0; padding: 0 4px 6px; display: flex; flex-direction: column; }
.cs-units li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line-soft); }
.cs-units a { font-weight: 700; }
.cs-units span { color: var(--ink-soft); font-size: 14px; }
.sec:target > .sec-head h2 { animation: cs-flash 2.4s ease-out; border-radius: 8px; }
@keyframes cs-flash { 0%, 40% { background: var(--accent-200); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .sec:target > .sec-head h2 { animation: none; background: var(--accent-100); } }
@media (max-width: 640px) {
  html.cs-sheet .course > main.wrap { z-index: 1000; }
  html.cs-sheet body { overflow: hidden; }
  .cs-bar .cs.cs-on .cs-panel { position: fixed; inset: 0; z-index: 1000; padding-top: max(14px, env(safe-area-inset-top)); background: var(--card); padding: 14px 16px; overflow: auto; width: auto; }
  .cs-bar .cs.cs-on .cs-results { position: static; width: auto; box-shadow: none; border: 0; padding: 0; max-height: none; }
}
.cs.cs-on .cs-open { display: none; }

/* The other NGN layouts (parts.ts drawLaidout, page.js laidOut) */
.q-exhibit { margin-top: 10px; max-width: 100%; overflow-x: auto; }
.q-exhibit table { border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: 12px; }
.q-exhibit th, .q-exhibit td { border: 1px solid var(--line-soft); padding: 6px 10px; text-align: left; }
.q-body { margin-top: 14px; }
.q-scroll { overflow-x: auto; }
.course .q-grid { border-collapse: separate; border-spacing: 0 6px; width: 100%; min-width: 0; font-size: 15.5px; }
.course .q-grid thead th, .course .q-grid thead td { font-size: 13px; font-weight: 800; color: var(--ink-soft); text-align: center; padding: 0 6px 2px; background: none; border: 0; }
.course .q-grid tbody th { text-align: left; font-weight: 600; color: var(--ink-body); background: #fff; border: 1px solid var(--line); border-right: 0; border-radius: 14px 0 0 14px; padding: 10px 14px; }
.course .q-grid td { text-align: center; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; width: 1%; }
.course .q-grid td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.course .q-grid .q-opt { width: 40px; height: 40px; padding: 0; justify-content: center; align-items: center; border-radius: 50%; margin: 0 auto; }
.q-tick { width: 14px; height: 14px; border-radius: 50%; }
.course .q-grid .q-opt[aria-pressed="true"] .q-tick, .course .q-grid .q-opt.right .q-tick, .course .q-grid .q-opt.wrong .q-tick { background: currentColor; }
.course .q-grid .q-opt[aria-pressed="true"] { color: var(--accent); }
.course .q-grid .q-opt.right { color: #2f6b4f; } .course .q-grid .q-opt.wrong { color: #a2483a; }
.course .q-grid tbody tr:last-child td, .course .q-grid tbody tr:last-child th { border-bottom: 1px solid var(--line); }
.q-sentence { line-height: 2.4; max-width: 72ch; color: var(--ink-body); }
.q-select { font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; max-width: 100%; }
.q-select:focus-visible, .q-slot:focus-visible, .q-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.q-select.right, .q-slot.right { border-color: #2f6b4f; background: #d6ecdf; }
.q-select.wrong, .q-slot.wrong { border-color: #a2483a; background: #f6dcd6; }
.q-fix { margin-left: 6px; font-weight: 800; color: #2f6b4f; font-size: 14.5px; }
.q-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.q-tiles-col { flex-direction: column; align-items: stretch; }
.q-tile { font: inherit; font-size: 15px; text-align: left; color: var(--ink-body); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.q-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-100); box-shadow: 0 0 0 2px var(--accent) inset; }
.q-tile.used { opacity: .4; text-decoration: line-through; cursor: default; }
.q-tile:disabled:not(.used) { cursor: default; }
.q-slot { font: inherit; font-size: 15px; min-width: 110px; min-height: 36px; text-align: left; color: var(--ink); background: var(--mist); border: 1px dashed var(--accent); border-radius: 10px; padding: 4px 10px; cursor: pointer; vertical-align: middle; }
.q-slot.filled { background: #fff; border-style: solid; }
.q-slot.filled.right { border-color: #2f6b4f; background: #d6ecdf; }
.q-slot.filled.wrong { border-color: #a2483a; background: #f6dcd6; }
.q-slot:disabled { cursor: default; }
.q-tile:not(:disabled):active, .q-slot:not(:disabled):active { border-color: var(--accent); }
.q-order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-order li { display: flex; gap: 10px; align-items: center; }
.q-order .q-slot { flex: 1; min-height: 44px; }
.q-place { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--mist); color: var(--ink-soft); }
.q-hl-text { line-height: 2.1; max-width: 72ch; }
.q-hl-text .q-hl { display: inline; width: auto; padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line-soft); font-size: 15.5px; }
.q-hl-rows { display: flex; flex-direction: column; gap: 6px; }
.q-hl[aria-pressed="true"] { background: #fff1b8; border-color: #b58a00; box-shadow: none; }
.q-bow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: start; }
.q-bow-side { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px; }
.q-bow-side:nth-child(2) { border-color: var(--accent); }
.q-bow-h { margin: 0 0 8px !important; color: var(--accent-700); }
.q-bow-opts { display: flex; flex-direction: column; gap: 6px; }
.q-bow-opts .q-opt { font-size: 14.5px; padding: 8px 10px; }
@media (max-width: 560px) {
  .course .q-grid { font-size: 14.5px; }
  .course .q-grid tbody th { padding: 8px 10px; }
  .course .q-grid thead th { font-size: 11.5px; padding: 0 2px; }
  .course .q-grid td { padding: 4px 2px; }
  .course .q-grid .q-opt { width: 34px; height: 34px; }
}
@media (max-width: 720px) {
  .q-bow { grid-template-columns: 1fr; }
  .q-bow-side:nth-child(2) { order: -1; }
}

/* ---------- the January push (owner, 2026-11-26): "keep going" after a
   lesson's questions, the invite line, and the four-week plan
   (layout.ts keepGoing and inviteLine, four-weeks.ts) ---------- */
.kg-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.kg-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; border-radius: 18px; }
.kg-item b { color: var(--ink); font-size: 16px; }
.kg-item span { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.kg-item .pill { text-decoration: none; font-weight: 800; }
.kg .study-note { margin-top: 12px; }
.invite-line { margin-top: 10px; }
.invite-line[hidden], .kg[hidden] { display: none; }
.fw-page { max-width: 820px; margin-inline: auto; margin-top: 22px; }
.fw-page .sec > .pill { margin-top: 14px; text-decoration: none; font-weight: 800; }
.fw-table { overflow-x: auto; margin-top: 14px; }
.fw-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fw-table th, .fw-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.fw-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.fw-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.course ol.plain { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.fw-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fw-day { padding: 14px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fw-day p { margin: 0; }
.fw-day-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.fw-day-head b { font-size: 16px; color: var(--ink); }
.fw-day-head span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.fw-day ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.fw-day a { font-weight: 700; }
.fw-day .pill { text-decoration: none; font-weight: 800; }
.fw-invite { margin-top: 28px; font-size: 15px; }

/* A lesson opened from the plan to test day (account.js): the way back to the plan. */
.plan-back { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #d3e4fc; color: #17345f; font-size: 14px; }
.plan-back a { font-weight: 800; color: #17345f; }
