@font-face{font-family:'Instrument Sans';src:url(/pyq/_/InstrumentSans-Regular.37b5ef406ccceba7.woff2) format('woff2');font-weight:400;font-style:normal;font-display:optional}
@font-face{font-family:'Instrument Sans';src:url(/pyq/_/InstrumentSans-Medium.f2d2eceb00a47765.woff2) format('woff2');font-weight:500;font-style:normal;font-display:optional}
@font-face{font-family:'Instrument Sans';src:url(/pyq/_/InstrumentSans-SemiBold.b77d02999e483357.woff2) format('woff2');font-weight:600;font-style:normal;font-display:optional}
@font-face{font-family:'Instrument Sans';src:url(/pyq/_/InstrumentSans-Bold.bd9e8b464e89c676.woff2) format('woff2');font-weight:700;font-style:normal;font-display:optional}
@font-face{font-family:'Newsreader';src:url(/pyq/_/Newsreader-Regular.5d317db67485b212.woff2) format('woff2');font-weight:400;font-style:normal;font-display:optional}
@font-face{font-family:'Newsreader';src:url(/pyq/_/Newsreader-Medium.1816c4464570b7bc.woff2) format('woff2');font-weight:500;font-style:normal;font-display:optional}
@font-face{font-family:'Newsreader';src:url(/pyq/_/Newsreader-SemiBold.175116d03da0f84d.woff2) format('woff2');font-weight:600 700;font-style:normal;font-display:optional}
@font-face{font-family:'Newsreader';src:url(/pyq/_/Newsreader-Italic.f580d9152704915c.woff2) format('woff2');font-weight:400;font-style:italic;font-display:optional}
/* Public PYQ pages: Ink & Paper (docs/design/DESIGN.md), as the stage-pyq boards. */
:root {
  color-scheme: light dark;
  --paper: #FBFAF8; --sidebar: #F4F2EE; --selected: #E9E6E0; --surface: #FFFFFF; --surface-2: #F2F0EB;
  --line: #E4E1DA; --track: #ECEAE4; --marker: #CFCBC2;
  --ink: #17171B; --ink-2: #3D3D45; --muted: #66666E; --pen: #2F5FD0;
  --on-primary: #FFFFFF; --primary: #17171B;
  --success: #1F7A4D; --success-text: #165C3A; --success-tint: #E6F3EC;
  --error: #B4232A; --error-text: #8E1C22; --error-tint: #FCEBEC;
  --physics: #0F766E; --chemistry: #8A3FB8; --maths: #A65800;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131315; --sidebar: #18181B; --selected: #26262B; --surface: #1C1C20; --surface-2: #25252A;
    --line: #303036; --track: #2A2A30; --marker: #5A5A62;
    --ink: #F2F1EE; --ink-2: #C8C7C2; --muted: #9C9BA3; --pen: #7FA2FF;
    --on-primary: #131315; --primary: #F2F1EE;
    --success: #5CC48B; --success-text: #8BDDB0; --success-tint: #16301F;
    --error: #F26B6B; --error-text: #FF9A9A; --error-tint: #3A1A1C;
    --physics: #5EC4B6; --chemistry: #C9A0FF; --maths: #F2B35B;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--pen); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 2; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { max-width: 1200px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-q { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.top nav .nav-link { display: none; color: var(--ink-2); text-decoration: none; min-height: 44px; align-items: center; }
.btn-open { height: 36px; padding: 0 14px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; position: relative; }
.btn-open::after { content: ''; position: absolute; inset: -4px 0; }

/* Page frame */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; flex: 1; }
.narrow { max-width: 760px; }
.crumbs { padding: 12px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; list-style: none; }
.crumbs li { display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: '›'; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 24px; align-items: center; }
.crumbs a:hover { color: var(--ink-2); text-decoration: underline; }
.crumbs [aria-current], .crumbs [data-current] { color: var(--ink-2); font-weight: 600; }
.crumbs .crumb-topic { display: none; }
.crumbs [data-current-phone] { color: var(--ink-2); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 28px; }

.label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--physics); flex: none; }
.dot.chemistry { background: var(--chemistry); } .dot.maths { background: var(--maths); }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.subject-line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* The question */
.stem { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.55; margin: 0; color: var(--ink); max-width: 640px; overflow-wrap: anywhere; }
.stem .para { display: block; }
.stem .para + .para { margin-top: 0.6em; }
.stem-rest { font-family: var(--serif); font-size: 18px; line-height: 1.55; max-width: 640px; }
.stem-rest p { margin: 0 0 0.6em; }
.table { overflow-x: auto; margin: 4px 0; }
.table table { border-collapse: collapse; font-size: 16px; }
.table th, .table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 500; }
.fig { margin: 0; }
.fig img { display: block; width: 100%; height: auto; margin: 0 auto; }
.math-b { overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.katex { font-size: 1.05em; }
.katex-display { margin: 0.4em 0; }
/* Display maths inside a paragraph scrolls on its own (a .math-b block already does). */
.math-d .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }

.opts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opt { min-height: 60px; padding: 8px 16px; border-radius: 12px; display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); text-align: left; color: var(--ink); font: inherit; width: 100%; }
.js .opt[role] { cursor: pointer; }
.js .opt[role]:hover { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.mark { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--marker); color: var(--ink-2); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; }
.multi .mark { border-radius: 6px; }
.opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--serif); font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.opt-body .fig img { margin: 0; }
/* Wide option maths scrolls inside the card instead of widening the page. The scroll box reaches
   into the card's padding (margin out, padding back), so text wraps where it did and maths that
   only overhung the padding stays in view. */
.opt-body > span:not(.sr) { max-width: calc(100% + 16px); overflow-x: auto; overflow-y: hidden; margin: -6px -16px -6px 0; padding: 6px 16px 6px 0; }
.opt-tag { font-size: 13px; font-weight: 700; flex: none; }
.opt[aria-checked="true"] { border: 1.5px solid var(--ink); }
.opt[aria-checked="true"] .mark { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.opt.is-answer { background: var(--success-tint); border: 1.5px solid var(--success); }
.opt.is-answer .mark { background: var(--success); border-color: var(--success); color: #FFFFFF; }
.opt.is-answer .opt-tag { color: var(--success-text); }
.opt.is-missed { background: var(--surface); border: 1.5px dashed var(--success); }
.opt.is-missed .opt-tag { color: var(--success-text); }
.opt.is-wrong { background: var(--error-tint); border: 1.5px solid var(--error); }
.opt.is-wrong .mark { background: var(--error); border-color: var(--error); color: #FFFFFF; }
.opt.is-wrong .opt-tag { color: var(--error-text); }
.opt.is-other { color: var(--muted); }
.opt.is-other .opt-body { color: var(--muted); }
.opt.is-other .mark { color: var(--muted); }
@media (prefers-color-scheme: dark) { .opt.is-answer .mark, .opt.is-wrong .mark { color: #131315; } }

.numeric { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.numeric label { width: 100%; font-size: 14px; color: var(--ink-2); }
.numeric input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--serif); font-size: 20px; }
.numeric input:focus { border-color: var(--ink); outline: none; }
.numeric.is-right input { border-color: var(--success); background: var(--success-tint); }
.numeric.is-wrong input { border-color: var(--error); background: var(--error-tint); }

.actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.btn { height: 48px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font: inherit; font-size: 15px; font-weight: 600; border: 0;
  display: flex; align-items: center; justify-content: center; padding: 0 18px; cursor: pointer; text-decoration: none; }
.btn:disabled { background: var(--track); color: var(--muted); cursor: default; }
.quiet { min-height: 44px; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: none; border: 0; text-decoration: none; cursor: pointer; }
.hint { padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.hint b { font-size: 14px; } .hint span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.verdict { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.verdict .v-head { font-size: 15px; font-weight: 700; }
.verdict.right .v-head { color: var(--success-text); } .verdict.wrong .v-head { color: var(--error-text); } .verdict.partly .v-head { color: var(--ink-2); }
.verdict .v-note { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.verdict .v-note b { color: var(--ink); }

/* The solution */
.sol { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.sol-wrap { display: flex; flex-direction: column; gap: 18px; }
.js .sol-wrap:not(.is-open) { display: none; }
.lead { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.lead > b:first-child { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.part { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.part > b:first-child { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); }
.part p, .step-body p { margin: 0 0 0.5em; } .part p:last-child, .step-body p:last-child { margin-bottom: 0; }
.part ul, .step-body ul { margin: 0 0 0.5em; padding-left: 1.2em; }
.step { display: flex; gap: 12px; }
.step-n { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.step-title { font-size: 15px; font-weight: 700; margin: 0; }
.step-body { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.step-body .math-b { color: var(--ink); font-size: 17px; text-align: center; }
.answer-line { margin: 0; padding: 10px 14px; border-left: 3px solid var(--success); background: var(--surface); font-family: var(--serif); font-size: 17px; }
.answer-line > b:first-child { font-family: var(--sans); font-size: 15px; }
.sanity { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.sanity > i:first-child { color: var(--ink); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rows-list { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.rows-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.rows-list li > b:first-child { color: var(--ink); }
.takeaway { padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.takeaway p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.takeaway p > b:first-child { color: var(--ink); }
.takeaway .grid { display: flex; flex-direction: column; gap: 10px; }

/* The app card, sharing, lists */
.app-card { padding: 20px 18px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.app-card .ac-title { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.25; margin: 0; }
.app-card .ac-text { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.app-card .ac-foot { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.share { display: flex; flex-direction: column; gap: 8px; }
.share-row { display: flex; gap: 8px; }
.share-btn { flex: 1; height: 44px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center;
  gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.share-btn svg { flex: none; }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.qrow { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.qrow .q-text { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.qrow .q-meta { font-size: 12.5px; color: var(--muted); }
.qrow:hover .q-text { text-decoration: underline; }
.more { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.more:hover { text-decoration: underline; }
.trow { min-height: 48px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); font-size: 15px; }
.trow .n { color: var(--muted); font-size: 13px; flex: none; }
.trow.is-here { font-weight: 700; background: var(--selected); padding: 0 8px; margin: 0 -8px; }
.trow.is-here .n { color: var(--ink-2); }
.section { display: flex; flex-direction: column; gap: 4px; }
.pager { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); gap: 8px; }
.pager a, .pager span { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.pager .pos { font-size: 13px; font-weight: 400; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; position: relative; min-width: 44px; justify-content: center; }
.pill::after { content: ''; position: absolute; inset: -4px 0; }
.pill.sm { font-size: 13px; padding: 0 12px; }
.pill.is-on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.page-title { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.2; }
.hero { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.15; }
.intro { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tabs { display: flex; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.tabs a { flex: 1; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tabs a[aria-current] { background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.subject-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.subject-card .strip { height: 3px; background: var(--physics); }
.subject-card .strip.chemistry { background: var(--chemistry); } .subject-card .strip.maths { background: var(--maths); }
.subject-card .sc-head { padding: 14px 16px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.subject-card .sc-name { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0; }
.subject-card .sc-n { font-size: 13px; color: var(--muted); }
.subject-card .sc-list { display: flex; flex-direction: column; padding: 0 16px; margin: 0; list-style: none; }
.subject-card .sc-list a { min-height: 46px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; color: var(--ink); font-size: 15px; }
.subject-card .sc-list a .n { color: var(--muted); font-size: 13px; flex: none; }
.subject-card .sc-list a.more { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.group-head { margin: 8px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.sub-head { margin: 12px 0 0; font-size: 15px; font-weight: 700; }

.foot { margin-top: auto; border-top: 1px solid var(--line); background: var(--sidebar); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.foot-name { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.foot p { margin: 0; }

/* The exam landing page (ExamLanding board) */
.land-stack { gap: 24px; padding-top: 20px; }
.updated { margin: 0; font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.tile-n { font-family: var(--serif); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile-l { font-size: 12.5px; color: var(--muted); }
.land-sec { gap: 10px; }
.land-h { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.subject-card.land { gap: 0; }
.land-head { padding: 14px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.land-name { margin: 0; font-size: 17px; font-weight: 700; font-family: var(--sans); }
.land-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.land-more .land-chips { padding: 6px 0 0; }
.land-more { display: contents; }
.land-more[open] { display: block; width: 100%; }
.land-more summary { height: 32px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; cursor: pointer; list-style: none; position: relative; }
.land-more summary::-webkit-details-marker { display: none; }
.land-more summary::after { content: ''; position: absolute; inset: -6px 0; }
.land-more[open] summary { display: none; }
.chip-link { min-height: 32px; padding: 6px 10px; line-height: 1.3; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; text-decoration: none; display: flex; align-items: center; position: relative; }
.chip-link::after { content: ''; position: absolute; inset: -6px 0; }
.chip-link:hover { text-decoration: underline; }
.year-row { border-bottom: 1px solid var(--line); }
.year-row > a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); }
.year-name { font-size: 16px; font-weight: 700; }
.year-row .n { font-size: 13px; color: var(--muted); }
.year-papers { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px; }
.year-papers a { height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; display: flex; align-items: center; }
.ranked li { min-height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 15px; }
.ranked .rank { width: 20px; font-weight: 700; color: var(--muted); }
.ranked a { flex: 1; color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.ranked a:hover { text-decoration: underline; }
.ranked .n { font-size: 13px; color: var(--muted); }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.faq-q { margin: 0; font-size: 15px; font-weight: 700; }
.faq-a { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.meta-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.meta-link:hover { text-decoration: underline; }
.also { margin: 0; font-size: 14px; color: var(--ink-2); }
.also a { color: inherit; }

/* The weightage page and the Marks Map (JEE Main) */
.study-links { margin-top: 16px; }
.tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subject-card.half { gap: 0; }
.half-in { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.half-name { margin: 0; font-size: 15px; font-weight: 700; }
.half-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.half-n { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ins-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ins { padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ins > b:first-child { color: var(--ink); }
.ins-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.ins-links a { min-height: 48px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 600; text-decoration: none; }
.ins-links a:hover { text-decoration: underline; }
.w-subject { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.wlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.wrow { display: flex; gap: 10px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.w-rank { width: 22px; flex: none; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.w-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.w-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-name { min-height: 48px; min-width: 48px; display: flex; align-items: center; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.w-name:hover { text-decoration: underline; }
.w-pct { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.w-bar { display: block; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.w-fill { display: block; height: 100%; border-radius: 4px; background: var(--ink-2); }
.w-fill.physics { background: var(--physics); } .w-fill.chemistry { background: var(--chemistry); } .w-fill.maths { background: var(--maths); }
.w-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.w-trend { color: var(--ink-2); font-weight: 600; }
.w-years { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex: none; border-bottom: 1px solid var(--line); }
.w-yb { width: 6px; background: var(--marker); border-radius: 1px 1px 0 0; }
.w-yb.physics { background: var(--physics); } .w-yb.chemistry { background: var(--chemistry); } .w-yb.maths { background: var(--maths); }
.w-more summary { min-height: 48px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.w-more summary::-webkit-details-marker { display: none; }
.w-more summary::after { content: ' ›'; white-space: pre; }
.w-more[open] summary::after { content: ' ‹'; }
.w-more > .wlist, .w-more > .mm-list { border-top: 0; }
.mm-meter { flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mm-total { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.mm-n { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.mm-of { font-size: 14px; color: var(--muted); }
.mm-subs { display: flex; flex-direction: column; gap: 10px; }
.mm-sub { display: flex; flex-direction: column; gap: 4px; }
.mm-sub-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.mm-sub-name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.mm-sub-n { font-variant-numeric: tabular-nums; }
.mm-set { border: 0; margin: 0; padding: 6px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mm-set legend { padding: 0; display: flex; align-items: center; gap: 8px; }
.mm-legend { font-family: var(--sans); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-hint { margin: 0; font-size: 13px; color: var(--muted); }
.mm-acts { gap: 8px; flex-wrap: wrap; }
.mm-act { min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mm-act:hover { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.mm-row { min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.mm-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.mm-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mm-m { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-nrow { min-height: 56px; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--line); }
.mm-nname { flex: 1 1 140px; min-height: 48px; display: flex; align-items: center; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mm-nname:hover { text-decoration: underline; }
.mm-nrow .n { font-size: 13px; color: var(--muted); }

/* Question page layout: one scroll on a phone; on a laptop the question and
   solution in a 760 px column, the app card, topics and share on the right. */
.qlayout { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 28px; }
.qlayout > main, .qlayout > aside { display: contents; }
.qlayout > main > *, .qlayout > aside > * { order: 1; }
.qlayout .o-card { order: 2; }
.qlayout .o-share { order: 3; } .qlayout .o-more { order: 4; } .qlayout .o-pager { order: 5; } .qlayout .o-topics { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 240ms cubic-bezier(0.215, 0.61, 0.355, 1); }
@media (prefers-reduced-motion: reduce) { @keyframes fade { from { opacity: 0; } to { opacity: 1; } } .rise { animation: fade 120ms linear; } }

@media (min-width: 1024px) {
  .top-in { height: 60px; padding: 0 24px; }
  .top nav .nav-link { display: flex; }
  .brand-q { width: 28px; height: 28px; font-size: 18px; } .brand-name { font-size: 21px; }
  .btn-open { height: 38px; padding: 0 16px; }
  .wrap { padding: 0 24px; }
  .crumbs { padding-top: 20px; } .crumbs .crumb-topic { display: flex; }
  .crumbs [data-current-phone] { color: var(--muted); font-weight: 400; }
  .qlayout { flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 18px 0 48px; }
  .qlayout > main { display: flex; flex-direction: column; gap: 22px; flex: 999 1 560px; min-width: 0; max-width: 760px; }
  .qlayout > aside { display: flex; flex-direction: column; gap: 22px; flex: 1 1 300px; max-width: 360px; position: sticky; top: 16px; }
  .qlayout .o-more { display: none; } .qlayout .o-topics { display: flex; order: 2; } .qlayout .o-card { order: 1; }
  .stem { font-size: 23px; max-width: none; } .stem-rest { font-size: 21px; max-width: none; }
  .meta { font-size: 14px; }
  .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .opts.long { grid-template-columns: minmax(0, 1fr); }
  .opt { min-height: 64px; padding: 8px 18px; } .mark { width: 34px; height: 34px; }
  .opt-body { font-size: 21px; }
  .actions { flex-direction: row; align-items: center; gap: 16px; } .actions .btn { min-width: 220px; }
  .lead { font-size: 20px; } .lead > b:first-child { font-size: 16px; }
  .step-n { width: 28px; height: 28px; } .step-title { font-size: 16px; }
  .step-body, .part, .sanity, .answer-line { font-size: 19px; } .step-body .math-b { font-size: 21px; }
  .takeaway .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .takeaway .grid p > b:first-child { display: block; padding-bottom: 4px; }
  .verdict { padding: 14px 18px; } .verdict .v-note { font-size: 15px; }
  .app-card { padding: 22px 20px; } .app-card .ac-title { font-size: 24px; }
  .trow { min-height: 44px; font-size: 14px; }
  .pager a { min-height: 48px; font-size: 15px; }
  .stack.narrow-col { max-width: 760px; }
  .page-title { font-size: 36px; } .hero { font-size: 40px; }
  .tile-n { font-size: 30px; }
  .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ins-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .top, .foot, .o-card, .o-share, .actions, .hint { display: none !important; } .js .sol-wrap { display: flex !important; } }

.js-only{display:none}.js .js-only{display:flex}