/* LearnCBSE PYQ practice view: the approved notebook design (design/flashcard-samples/sample-b-v3.html) applied to
 * the marks-page markup. Every rule sits under .cp-marks so the theme is not affected. No position:fixed and no sticky
 * controls: anchor ads use the screen edge (M56). */
.cp-marks{--paper:#fbf8f1;--card:#fffdf8;--ink:#1b2a4a;--soft:#4b5875;--rule:#d9e2f0;--margin:#b3302b;--blue:#1d4ed8;--blue-bg:#e8eefc;--ok:#14632f;--ok-bg:#e7f3ea;--warn-bg:#fdeeee;--focus:#b3302b;
 color:var(--ink);font:16px/1.55 Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif;overflow-wrap:break-word;max-width:100%;
 container:lcpyq/inline-size}
/* 1.2.0 (PYQ-177): layouts follow the width OUR column really has (container queries), not the window: beside the theme's
 * 270 px rail a 1024 px window leaves the column only 674 px. Browsers without container queries get the one-column layout. */
.cp-marks *,.cp-marks *::before,.cp-marks *::after{box-sizing:border-box}
.cp-marks img{max-width:100%;height:auto}
.cp-marks :focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.cp-marks .sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cp-marks .ic{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.cp-marks .frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;line-height:1.15;font-size:.92em;margin:0 .12em}
.cp-marks .fn{border-bottom:.09em solid currentColor;padding:0 .18em .05em}
.cp-marks .fd{padding:.05em .18em 0}
.cp-marks .fs{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.cp-marks sup{line-height:0;font-size:.7em}
.cp-marks .rt{display:inline-flex;align-items:flex-start;white-space:nowrap}
.cp-marks .rs{line-height:1;margin-right:-.04em}
.cp-marks .rr{border-top:.075em solid currentColor;padding:0 .08em 0 .1em;line-height:1.05;margin-top:.1em}

/* Owner ruling 2026-10-14: a plain LIST of every card and solution, with or without JavaScript. The JS-only parts stay
 * hidden without script. Previous/Next show only in the opt-in card view (data-view="card", set by the student's click). */
.cp-marks .needs-js{display:none}
html.lcpyq-js .cp-marks .count.needs-js{display:block}
html.lcpyq-js .cp-marks[data-view="card"] .controls.needs-js{display:grid}
html.lcpyq-js .cp-marks .practised.needs-js{display:inline-flex}
/* a card the student's choice hides carries hidden="until-found" (find-in-page and text fragments still reach it): its
 * box collapses to nothing; browsers without until-found treat it as plain hidden (display:none) */
.cp-marks .q[hidden]{padding:0;border:0;margin:0;background:none}
.cp-marks .q[hidden]::before{display:none}

/* the practice toolbar (built by the script): the view switch and the filter pills, all 44 px targets */
.cp-marks .lcpyq-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.cp-marks .lcpyq-filters{display:flex;flex-wrap:wrap;gap:6px}
.cp-marks .lcpyq-view,.cp-marks .lcpyq-pill{min-height:44px;min-width:44px;padding:0 12px;font:inherit;font-weight:700;font-size:.92rem;
 cursor:pointer;border:1.5px solid var(--ink);border-radius:999px;background:var(--card);color:var(--ink)}
.cp-marks .lcpyq-view{border-radius:6px}
.cp-marks .lcpyq-view[aria-pressed="true"],.cp-marks .lcpyq-pill[aria-pressed="true"]{background:var(--ink);color:var(--paper)}

/* page sections */
.cp-marks .section{margin:0 0 18px}
.cp-marks .section h2{font-size:clamp(1.2rem,4.2vw,1.6rem);line-height:1.25;margin:.4em 0 .4em}
.cp-marks .marks-nav{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px;font-size:.95rem}
.cp-marks .marks-nav a,.cp-marks .marks-nav span{display:inline-flex;align-items:center;min-height:44px}
.cp-marks .tw{overflow-x:auto;max-width:100%}
.cp-marks table{border-collapse:collapse;font-size:.9rem}
.cp-marks th,.cp-marks td{border:1px solid var(--rule);padding:6px 8px;text-align:left;vertical-align:top}
/* PYQ-177: a cell never shrinks below a readable width ("Not yet built" was 51 px wide on a phone); a table that then needs
 * more room than the column scrolls inside its own .tw box, never the page. Number cells keep their natural width. */
.cp-marks th,.cp-marks td:not(.num){min-width:5.5em}
.cp-marks td.num,.cp-marks th.num{white-space:nowrap}

/* question strip: plain jump links; scrolls sideways inside itself only */
.cp-marks .strip-bar{background:var(--paper);border-bottom:2px solid var(--ink);max-width:100%}
/* every number reachable at every width, with or without script (PYQ-125): the strip wraps into rows; it never scrolls */
.cp-marks .strip{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;overflow:visible}
.cp-marks .strip li{flex:0 0 auto;margin:0;padding:0}
.cp-marks .strip a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:52px;min-height:52px;color:var(--ink);text-decoration:none;
 border-right:1px solid var(--rule);font:700 1rem/1.05 "SF Mono",ui-monospace,Menlo,Consolas,"Liberation Mono",monospace}
.cp-marks .strip .mk{font-size:.7rem;font-weight:500;color:var(--soft)}
.cp-marks .strip a[aria-current]{background:var(--ink);color:var(--paper)}
.cp-marks .strip a[aria-current] .mk{color:#c9d3ea}
.cp-marks .strip a.done{box-shadow:inset 0 -4px 0 var(--ok)}
.cp-marks .strip a.done .num::after{content:" \2713";font-size:.7em}
.cp-marks .count{margin:6px 0 0;font:700 .85rem "SF Mono",ui-monospace,Menlo,Consolas,monospace;color:var(--margin)}
.cp-marks #stage{padding:12px 0 0;scroll-margin-top:12px}

/* the card (markup class is "q"; this is the design's .card) */
.cp-marks .q{position:relative;background:var(--card);border:1px solid var(--rule);padding:14px 14px 16px 26px;margin:0 0 14px;
 background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 27px,var(--rule) 27px,var(--rule) 28px);background-position:0 54px}
.cp-marks .q::before{content:"";position:absolute;left:12px;top:0;bottom:0;width:2px;background:var(--margin);opacity:.7}
.cp-marks .q.enter{animation:lcpyq-slide .22s ease-out}
@keyframes lcpyq-slide{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
.cp-marks .qline{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 10px}
.cp-marks .qline .qno{flex:1 1 18rem;min-width:0}
.cp-marks .qno{display:block;margin:0;font-size:clamp(1.15rem,4.4vw,1.5rem);font-weight:700;line-height:1.38;color:var(--ink)}
.cp-marks .qno .ic{width:20px;height:20px;vertical-align:-3px;margin-right:6px;color:var(--margin)}
.cp-marks .qno .qlabel{font:700 .95rem "SF Mono",ui-monospace,Menlo,Consolas,monospace;color:var(--margin);margin-right:.35em}
.cp-marks .qno:focus{outline:none}
.cp-marks .qno:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.cp-marks .practised{align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1.5px solid var(--ink);border-radius:6px;background:var(--card);font-weight:700;font-size:.9rem;cursor:pointer}
.cp-marks .practised input{width:22px;height:22px;accent-color:var(--ok);margin:0}
.cp-marks .qtext{font-size:clamp(1.15rem,4.4vw,1.5rem);font-weight:700;line-height:1.38;margin:.3em 0 .5em;background:var(--card)}
.cp-marks .qtext p{margin:0 0 .4em}
.cp-marks .opts{margin:0 0 .6em;padding-left:1.2em;background:var(--card)}
/* tap-to-check (script, cards whose answer matches the official key): colour only, nothing is hidden or revealed */
.cp-marks .opts li.pickable{min-height:44px;display:flex;align-items:center;padding:2px 8px;margin:2px 0;border:1px solid var(--rule);border-radius:6px;cursor:pointer;list-style:none}
.cp-marks .opts li.pick-ok{background:var(--ok-bg);border-color:var(--ok);box-shadow:inset 4px 0 0 var(--ok)}
.cp-marks .opts li.pick-no{background:var(--warn-bg);border-color:var(--margin);box-shadow:inset 4px 0 0 var(--margin)}
.cp-marks .marknote{margin:8px 0 0;font-size:.9rem;font-weight:700}
.cp-marks .keylist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cp-marks .keylist li{border:1px solid var(--rule);border-radius:6px;padding:8px 12px;background:var(--card)}
.cp-marks .keylist .rule{margin:0 0 .2em;padding:6px 10px;border-left:4px solid var(--ink);background:var(--blue-bg);font-weight:700}
.cp-marks .keylist .used{margin:0;font-size:.9rem}
.cp-marks .keylist .used{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.cp-marks .keylist .used a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--rule);border-radius:6px;color:var(--ink);text-decoration:none;font-weight:700;background:#fffefa}
.cp-marks .keyref{margin:.1em 0 .4em;font-weight:700}

/* fact panel (N6, N7; PYQ-177). A wrapping row of chips: each chip is at least as wide as its content (or the whole row on a
 * narrow phone), so a value never wraps inside a word. Topic always takes a full row; Source takes the rest of its row and
 * Status sits beside it when there is room (N6). Every cell has a fixed place in the chip, so an extra element (WordPress
 * formatting added an empty <p> after each icon: PYQ-177) can never push a value into the 18 px icon column. */
.cp-marks .facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:8px;border:1.5px solid var(--rule);border-radius:8px;background:var(--card)}
.cp-marks .chip{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-content:start;
 flex:1 0 auto;min-width:min(100%,8.5rem);max-width:100%;margin:0;padding:7px 10px;border:1px solid var(--rule);border-radius:6px;background:#fffefa}
.cp-marks .chip>.ic{grid-column:1;grid-row:1/span 2;margin-top:2px}
.cp-marks .chip>dt{grid-column:2;grid-row:1;margin:0}
.cp-marks .chip>dd{grid-column:2;grid-row:2;margin:0}
.cp-marks .chip>p:empty,.cp-marks .chip>br,.cp-marks .facts>p:empty,.cp-marks .facts>br{display:none}
.cp-marks .chip.topic{flex:1 0 100%}
.cp-marks .chip.source{flex:999 1 20rem}
.cp-marks .chip dt{font:.68rem/1.3 "SF Mono",ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
.cp-marks .chip dd{font-weight:700;font-size:.92rem;line-height:1.35}
.cp-marks .chip.status .ic{color:var(--ok)}
.cp-marks .pill{display:inline-block;padding:1px 10px;border-radius:999px;font-size:.85rem;font-weight:700}
.cp-marks .pill-ok{background:var(--ok-bg);color:var(--ok);border:1px solid #b9d9c1}
.cp-marks .pill-checked{background:var(--blue-bg);color:var(--blue);border:1px solid #c3d1f3}
/* phones: the short facts pair up two to a row (a value may wrap between words, never inside one); Topic, Source and
 * Status each take a full row */
@container lcpyq (max-width:520px){
 .cp-marks .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px}
 .cp-marks .chip{min-width:0;padding:6px 8px}
 .cp-marks .chip.topic,.cp-marks .chip.source,.cp-marks .chip.status{grid-column:1/-1}
}

/* solution */
.cp-marks .cols{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:10px}
.cp-marks .sol-head{border-bottom:2px solid var(--ink);padding-bottom:6px}
.cp-marks .sol-head h4{margin:0;font-size:1rem;text-transform:uppercase;letter-spacing:.06em}
.cp-marks .steps{list-style:none;margin:0;padding:0}
.cp-marks .steps li{border-bottom:1px solid var(--rule);background:var(--card);padding:10px 2px 12px}
.cp-marks .part{margin:12px 0 4px;font-size:.95rem}
.cp-marks .sline{display:flex;align-items:center;gap:10px;font-weight:700;min-height:32px}
.cp-marks .n{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;font:.8rem "SF Mono",ui-monospace,Menlo,Consolas,monospace;background:var(--ink);color:var(--paper)}
.cp-marks .sline .t{flex:1;min-width:0;margin:0;font-size:1rem;line-height:1.3}
.cp-marks .smk{font-size:.8rem;color:var(--soft);font-weight:500}
.cp-marks .det{padding:4px 4px 0 38px}
.cp-marks .work{margin:0 0 6px;font-size:1.02rem}
.cp-marks .why{margin:0;font-size:.88rem;color:var(--soft);font-style:italic}
.cp-marks .why b{font-style:normal;color:var(--blue)}
.cp-marks .sfig{margin:8px 0}
.cp-marks .marksline{margin:8px 0 0;font-size:.9rem;font-weight:700}
.cp-marks .final{border:2.5px solid var(--ok);background:var(--ok-bg);padding:10px 12px;border-radius:6px;margin-top:14px}
.cp-marks .final h4{margin:0;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ok)}
.cp-marks .final p{margin:.2em 0 0;font-weight:700;font-size:1.08rem}
.cp-marks .final .match{font-size:.82rem;color:var(--ok)}
.cp-marks .final .scheme-link{font-size:.85rem;font-weight:400}
.cp-marks .side{display:grid;gap:10px;align-content:start;align-self:start}
.cp-marks .mini{background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:10px 12px}
.cp-marks .mini h4{margin:0 0 6px;font-size:.95rem;font-weight:700}
.cp-marks .mini p{margin:.2em 0;font-size:.92rem}
.cp-marks .mini ul{margin:0;padding-left:1.1em}
.cp-marks .mini.mist{background:var(--warn-bg);margin-top:10px}
.cp-marks .mini.mist h4{color:var(--margin)}
.cp-marks .mini.mist ul{list-style:none;padding:0}
.cp-marks .mini.mist li{display:flex;gap:7px;align-items:flex-start;margin:.25em 0;font-size:.92rem}
.cp-marks .mini.mist li .ic{color:var(--margin);margin-top:2px}
.cp-marks .mini.key .rule{margin:.1em 0 .4em;padding:8px 10px;border-left:4px solid var(--ink);background:var(--blue-bg);font-weight:700;font-size:1rem}
.cp-marks .mini.key .xh{margin:.5em 0 .1em;font:.72rem "SF Mono",ui-monospace,Menlo,Consolas,monospace;text-transform:uppercase;letter-spacing:.06em;color:var(--soft)}
.cp-marks .flist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cp-marks .flist li{border:1px solid var(--rule);border-radius:6px;padding:6px 9px;background:#fffefa;display:grid;gap:1px;margin:0}
/* the " · " between a formula and its note stays in the text (copy, no CSS: PYQ-151) but is not drawn as its own line */
.cp-marks .flist .fsep{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cp-marks .fnote{font-size:.8rem;color:var(--soft)}

/* Previous / Next: in the card flow, never fixed or sticky (M56) */
.cp-marks .controls{grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;border-top:2px solid var(--ink);padding:8px 0;margin-top:4px}
.cp-marks .controls button{min-height:48px;min-width:44px;font:inherit;font-weight:700;cursor:pointer;border:2px solid var(--ink);border-radius:6px;background:var(--card);color:var(--ink)}
.cp-marks #next{background:var(--ink);color:var(--paper)}
.cp-marks .controls button:disabled{cursor:not-allowed;opacity:.45}
.cp-marks .pos{text-align:center;font:700 1rem "SF Mono",ui-monospace,Menlo,Consolas,monospace}

@container lcpyq (min-width:640px){
 .cp-marks .q{padding:20px 22px 20px 40px}
 .cp-marks .q::before{left:22px}
 .cp-marks .controls{padding-inline:max(0px,calc((100% - 520px)/2))}
}
/* steps and the side column (N9) side by side only when the steps keep at least about 440 px; below that the side column
 * stacks under the steps (N9a). Measured on the replica of the live theme: two columns from a 1180 px window. */
@container lcpyq (min-width:840px){
 .cp-marks .cols{grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:24px}
}
@media (prefers-reduced-motion:reduce){.cp-marks *,.cp-marks *::before,.cp-marks *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Print: every card and every solution, whatever the view state (M57) */
@media print{
 .cp-marks .q[hidden]{display:block!important;content-visibility:visible!important;padding:14px 14px 16px 26px!important;border:1px solid #999!important;margin:0 0 14px!important}
 .cp-marks .controls,.cp-marks .practised,.cp-marks .count,.cp-marks .lcpyq-bar{display:none!important}
 .cp-marks .q{break-inside:auto;border-color:#999}
}
/* Phase 3 landing pages (chapter and subject, .cp-landing): a question quoted in a list is plain body text, not a card heading */
.cp-marks.cp-landing .repeated .qtext{font-size:1rem;font-weight:400;line-height:1.5;background:none;margin:.2em 0 .6em}
.cp-marks.cp-landing td.num{text-align:right;white-space:nowrap}
.cp-marks.cp-landing .topic:not(.chip){margin:0 0 18px}
.cp-marks.cp-landing .topic-fig img{display:block;margin:8px 0}

/* The theme indents the first paragraph after every heading (pipeline-content.css, h2+p / h3+p / h4+p). Inside our cards,
 * boxes and tables that indent reads as a stray space, so it is reset there; our page intros keep the site's style. */
.cp-marks .q p,.cp-marks .mini p,.cp-marks .final p,.cp-marks .keylist p,.cp-marks td p,.cp-marks .sol p{text-indent:0}
/* long prose lines stay readable in the wider column */
.cp-marks .section>p,.cp-marks .section>.note,.cp-marks .topic:not(.chip)>p{max-width:46rem}

/* Full width for our pages (owner 2026-10-15; PYQ-177). The plugin adds body class lcpyq-wide on our pages only. Only the
 * theme's wrap width changes, inside <main> and the breadcrumb bar: the left rail keeps its place, size and content, and
 * nothing here selects an ad element (RULES section 61). Below 1000 px the theme already stacks the rail under the article. */
@media (min-width:1000px){
 body.lcpyq-wide .ink-main,body.lcpyq-wide .ink-crumbs-bar{--wrap:1440px}
}
