/* Native source reading layout shared by practice and the paper browser. */
  .ex-native { color: inherit; padding: 0.5rem; overflow-wrap: anywhere; }
  .ex-native p, .ex-native figure, .ex-native pre, .ex-native table { margin: 0 0 1rem; }
  .ex-native-poem { margin: 1.25rem 0; line-height: 1.65; }
  .ex-native-literary_caption { text-align: center; }
  .ex-native-footnote { display: block; margin: 1rem 0; font-size: .85em; line-height: 1.5; }
  .ex-native > :last-child { margin-bottom: 0; }
  .ex-native h1, .ex-native h2, .ex-native h3 { font: inherit; font-weight: 600; margin: 1.5rem 0 0.75rem; }
  .ex-native h1:first-child, .ex-native h2:first-child, .ex-native h3:first-child { margin-top: 0; }
  .ex-native .ex-native-labelled { position: relative; padding-left: 2em; }
  .ex-native-label { position: absolute; left: 0; width: 2.25em; font-family: 'Outfit', "Outfit Fallback", sans-serif; font-weight: 600; font-size: .9em; line-height: 1.9; color: rgb(165 243 252); }
  .ex-native .ex-native-source-list-label { font-weight: inherit; }
  .ex-native .ex-native-labelled { padding-left: 2.5em; }
  .ex-native .ex-native-nested-part { padding-left: 4.5em; }
  .ex-native-nested-part > .ex-native-label { width: 4.25em; }
  .ex-native-part { margin-bottom: 1.5rem; }
  .ex-native-prompt > .ex-native-labelled ~ :is(p, ul, ol, figure, .ex-items, .ex-native-table):not(.ex-native-labelled) { margin-left: 2.5em; }
  .ex-native-prompt > .ex-native-nested-part ~ :is(p, ul, ol, figure, .ex-items, .ex-native-table):not(.ex-native-labelled) { margin-left: 4.5em; }
  @media (max-width: 640px) {
    .ex-native-prompt > .ex-native-nested-part ~ :is(p, ul, ol, figure, .ex-items, .ex-native-table):not(.ex-native-labelled) { margin-left: 2.5em; }
  }
  .ex-native-line-reference { float: right; margin-left: 1em; opacity: .65; font: italic .8em/1.7 sans-serif; }
  .ex-native-prompt { display: flow-root; }
  .ex-native-linear-atom > .ex-original-script-word { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: .25em; }
  .ex-native-graphic-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
  .ex-native-graphic-choice > p { text-align: center; font-weight: 600; margin-bottom: .5rem; }
  .ex-native-graphic-choice > figure { margin-bottom: 0; }
  @media (max-width: 480px) { .ex-native-graphic-choices { grid-template-columns: 1fr; } }
  .ex-marks { display: inline-flex; justify-content: flex-end; align-items: center;
    flex: none; white-space: nowrap; font: 500 .75rem/1.6 Poppins, sans-serif;
    color: rgb(165,243,252); border: 1px solid rgba(148,163,184,.3);
    border-radius: .45rem; padding: .15rem .55rem; background: transparent; }
  .ex-part-marks { float: right; margin: .1rem 0 .5rem 1rem; }
  /* The badge floats beside the part's first line, so that line starts at the top too. */
  .ex-native-prompt > .ex-part-marks + .ex-q { margin-top: 0; }
  html[data-theme="light"] .ex-marks { color: rgb(14,116,144); border-color: rgba(71,85,105,.3); }

  .ex-native .ex-native-question-intro { list-style: none; padding-left: 0; }
  .ex-native .ex-inline-answer textarea { font-family: inherit; }
  .ex-native li { margin-bottom: 0.4rem; }
  .ex-native img { display: block; max-width: 100%; height: auto; margin: auto; background: #fff; border-radius: 0.25rem; }
  .ex-native table { color: inherit; background: transparent; border-collapse: collapse; width: auto; min-width: min(100%, 20rem); font-size: 0.95em; }
  .ex-native td, .ex-native th { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); padding: 0.6rem; vertical-align: top; }
  .ex-native th { font-weight: 600; text-align: left; }
  .ex-native pre { overflow-x: auto; white-space: pre; font: 0.9em/1.5 monospace; background: var(--reading-surface, #01040e); border: 1px solid color-mix(in srgb, currentColor 16%, transparent); padding: 0.75rem; }
  .ex-native p > code, .ex-native td > code { font: inherit; }
  .ex-source-line { display: inline; position: relative; padding-left: 2.5em; }
  .ex-source-number { position: absolute; left: 0; width: 2.5em; color: inherit; opacity: 0.65; font: 0.8em/1.65 sans-serif; }
  .ex-native-table { max-width: 100%; overflow-x: auto; }
  @media (max-width: 640px) {
    .ex-native td, .ex-native th { padding: 0.6rem 0.35rem; }
  }
  .ex-native-table:has(img) table { min-width: 30rem; }
  .ex-native td, .ex-native th { overflow-wrap: normal; }
  .ex-native ul, .ex-native ol { padding-left: 1.5rem; }
  .ex-native ul { list-style: disc; } .ex-native ol { list-style: decimal; }
  /* Room for tall fractions, roots and integrals: the horizontal scroller
     clips vertically, and KaTeX glyphs overhang their line box. */
  .ex-native .katex-display { overflow-x: auto; overflow-y: hidden; padding-block: .5em; }

/* Printed structure from eXam/native_presentation.py: labels and marks in the sans, prose in the serif. */
  .ex-native { font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-size: 1.0625rem; line-height: 1.62; }
  .ex-native p, .ex-native figure, .ex-native pre, .ex-native table { margin-bottom: .75rem; }
  .ex-native .ex-native-prompt > :first-child { margin-top: 0; }
  .ex-q { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .55rem; }
  .ex-q-body { min-width: 0; display: flow-root; }
  .ex-q-body > :last-child { margin-bottom: 0; }
  .ex-q-label { font: 600 .95em/1.7 Outfit, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: rgb(165,243,252); min-width: 1.7em; }
  .ex-q-l0 > .ex-q-label { font-size: 1.05em; font-weight: 700; line-height: 1.55; min-width: 1.5em; color: inherit; }
  .ex-q-l1 { margin-top: 1.25rem; }
  .ex-q-l1 > .ex-q-label { min-width: 1.9em; }
  .ex-q-l2 { margin-top: .8rem; }
  .ex-q-l2 > .ex-q-label { min-width: 1.9em; font-weight: 500; }
  .ex-q-body > .ex-q:first-child { margin-top: 0; }
  .ex-native p:has(> .ex-mark) { display: flow-root; }
  .ex-mark { float: right; margin-left: 1rem; font: 600 .78em/2.1 Outfit, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: rgb(165,243,252); white-space: nowrap; }
  .ex-native .ex-answer-line { width: min(16rem, 90%); margin: 0 .2rem; padding: .1rem .4rem; border: 0; border-bottom: 1.5px solid #64748b; background: rgba(148,163,184,.1); color: inherit; font: inherit; border-radius: 3px 3px 0 0; }
  .ex-native td .ex-answer-line { width: 100%; min-width: 4rem; margin: 0; }
  .ex-native .ex-answer-box { display: block; width: 100%; margin: .3rem 0 .6rem; padding: .4rem .55rem; border: 1px solid #475569; border-radius: 6px; background: rgba(148,163,184,.08); color: inherit; font: inherit; resize: vertical; }
  .ex-native .ex-crop { position: relative; display: block; max-width: 100%; line-height: 0; }
  .ex-native .ex-crop img { display: block; width: 100%; height: auto; }
  /* Crops are cut close to the ink. A white mat of one width on every side keeps printed text
     off the edge; a shadow, not padding, so the answer spots laid over a crop do not move. */
  .ex-native { --ex-mat: clamp(8px, .6em, 14px); }
  .ex-native td, .ex-native th { --ex-mat: 4px; }
  .ex-native img:not(.ex-crop img), .ex-native .ex-crop { box-shadow: 0 0 0 var(--ex-mat) #fff; border-radius: .25rem; max-width: calc(100% - 2 * var(--ex-mat)); }
  .ex-native img:not(.ex-crop img) { margin: var(--ex-mat) auto; }
  .ex-native .ex-crop { margin: var(--ex-mat) auto; background: #fff; }
  .ex-native .ex-crop-field { position: absolute; box-sizing: border-box; margin: 0; padding: 0 .25rem; border: 1.5px dashed #0284c7; border-radius: 2px; background: rgba(240,249,255,.25) !important; color: #0f172a; font: 500 .8rem/1.2 system-ui, sans-serif; resize: none; }
  /* A spot on a figure stays see-through until it is used, so it never hides the drawing. */
  .ex-native .ex-crop-field:focus, .ex-native .ex-crop-field:not(:placeholder-shown) { border-style: solid; background: #f0f9ff !important; }
  .ex-native .ex-crop-field:focus { outline: 2px solid #38bdf8; outline-offset: 1px; }
  .ex-native .ex-answer-line:focus, .ex-native .ex-answer-box:focus { outline: 2px solid #38bdf8; outline-offset: 1px; }
  .ex-tick { appearance: none; -webkit-appearance: none; display: inline-block; flex: none; width: 1.15em; height: 1.15em; margin: 0 .55em 0 0; padding: 0; vertical-align: -.2em; border: 1.5px solid color-mix(in srgb, currentColor 60%, transparent); border-radius: 3px; background: transparent no-repeat center / 86% !important; cursor: pointer; }
  [data-theme="light"] .ex-native .ex-tick:not(:checked) { border-color: rgb(71 85 105); }
  .ex-crop .ex-crop-tick { position: absolute; margin: 0; width: 1.15em; height: 1.15em; translate: -50% -50%; background-color: #fff !important; border-color: rgb(71 85 105); }
  .ex-native-carrier { display: none !important; }
  .ex-original { margin-top: 1rem; }
  .ex-original > summary { display: inline-block; cursor: pointer; padding: .3rem .8rem; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; font: 500 .85rem/1.5 Outfit, system-ui, sans-serif; list-style: none; }
  .ex-original > summary::-webkit-details-marker { display: none; }
  .ex-original-shots { margin-top: .75rem; display: grid; gap: .5rem; }
  .ex-original-shots img { display: block; width: 100%; height: auto; border-radius: .5rem; background: #fff; }
  .ex-tick:hover, .ex-tick:focus-visible { border-color: rgb(165,243,252); outline: none; }
  .ex-tick:checked { border-color: rgb(165,243,252); background-color: rgb(165,243,252) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='%23082f49' stroke-width='2.4'/%3E%3C/svg%3E") !important; }
  .ex-tick-cross:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='%23082f49' stroke-width='2.4'/%3E%3C/svg%3E") !important; }
  .ex-native td .ex-tick { margin-right: .4em; }
  .ex-native td.ex-tick-cell { text-align: center; }
  .ex-native td.ex-tick-cell .ex-tick { margin: 0; }
  .ex-native p:has(> .ex-tick:first-child) { padding-left: 1.75em; text-indent: -1.75em; margin-bottom: .4rem; }
  .ex-native .ex-mark-line { display: flow-root; margin: -.25rem 0 .5rem; }
  .ex-native .ex-total { clear: both; margin: 1.5rem 0 0; padding-top: .6rem; text-align: right; font: 600 .82em/1.5 Outfit, system-ui, sans-serif; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
  .ex-native figure { margin: 1rem 0; }
  .ex-native figcaption, .ex-native .ex-caption { font: 600 .8em/1.4 Outfit, system-ui, sans-serif; text-align: center; opacity: .78; }
  .ex-native figcaption { margin-top: .5rem; }
  .ex-native .ex-caption { margin: 1rem 0 .4rem; }
  .ex-native .ex-native-table + .ex-caption, .ex-native table + .ex-caption { margin: .4rem 0 1rem; }
  .ex-native .ex-subhead { margin: 1.15rem 0 .35rem; font: 600 .92em/1.5 Outfit, system-ui, sans-serif; }
  .ex-native ul, .ex-native ol { margin: .25rem 0 .8rem; padding-left: 1.3em; }
  .ex-native li { margin-bottom: .25rem; padding-left: .15em; }
  .ex-native li::marker { color: color-mix(in srgb, currentColor 60%, transparent); }
  .ex-native ol > li::marker { font: 600 .88em Outfit, system-ui, sans-serif; }
  .ex-items { display: grid; gap: .3rem; margin: .35rem 0 .85rem; }
  .ex-item { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); }
  .ex-item > p { margin: 0; }
  .ex-item-label { font: 600 .92em/1.76 Outfit, system-ui, sans-serif; }
  .ex-items-steps .ex-item-label { color: color-mix(in srgb, currentColor 70%, transparent); }
  .ex-native table { font-size: .92em; line-height: 1.42; border-radius: .25rem; }
  .ex-native td, .ex-native th { padding: .42rem .62rem; vertical-align: middle; border-color: color-mix(in srgb, currentColor 22%, transparent); }
  .ex-native td[data-shaded] { background-color: color-mix(in srgb, currentColor 22%, transparent) !important; }
  .ex-native th, .ex-native tr:first-child > td[colspan] { font-family: Outfit, "Outfit Fallback", system-ui, sans-serif; font-weight: 600; font-size: .94em; background: color-mix(in srgb, currentColor 7%, transparent); }
  @media (max-width: 640px) {
    .ex-native { font-size: 1rem; }
    .ex-q-l1 > .ex-q-label, .ex-q-l2 > .ex-q-label { min-width: 1.6em; }
  }
.ex-native .ex-native-source-mark {float:inline-end;font-size:1em;margin-inline-start:1em;color:inherit;background:transparent}
.ex-native p:has(> .ex-native-source-mark) {display:flow-root}
/* Answering on the practice pages: one box style, the original-question row, parts marked on paper. */
  .ex-native .ex-answer-box { line-height: 1.5; min-height: 3.2em; }
  .ex-native .ex-answer-box.ex-code-box, .ex-native .ex-code-box { font: .92em/1.5 ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; tab-size: 4; white-space: pre; overflow-x: auto; }
  .ex-native .ex-answer-box::placeholder, .ex-native .ex-answer-line::placeholder { color: rgb(100 116 139); font-style: italic; }
  .ex-original-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1rem; margin-top: 1rem; }
  .ex-original-row > .ex-original { margin-top: 0; flex: 1 1 100%; order: 2; }
  .ex-original-row > .ex-original:not([open]) { flex: 0 1 auto; order: 0; }
  .ex-original-pdf { font: 500 .85rem/1.5 Outfit, system-ui, sans-serif; padding: .3rem 0; text-decoration: underline; text-underline-offset: 4px; opacity: .85; }
  .ex-original-pdf:hover { opacity: 1; }
  .ex-not-marked { margin: -.25rem 0 .75rem; padding: .45rem .7rem; border-left: 3px solid rgb(251 191 36 / .6); background: rgb(251 191 36 / .07); font: 400 .85rem/1.5 Outfit, system-ui, sans-serif; color: rgb(253 230 138); }
  html[data-theme="light"] .ex-not-marked { color: rgb(146 64 14); background: rgb(251 191 36 / .12); }
  /* The part's own box, when no printed spot took the answer: it reads like the boxes in the question. */
  .ex-native textarea.ex-leaf-box { font: inherit; font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: .95em; line-height: 1.5; background: rgba(148,163,184,.08); border: 1px solid #475569; border-radius: 6px; padding: .45rem .6rem; box-shadow: none; }
  .ex-native textarea.ex-leaf-box.ex-code-box { font: .9em/1.5 ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; }
  .ex-native textarea.ex-leaf-box:focus { outline: 2px solid #38bdf8; outline-offset: 1px; border-color: transparent; }
  .ex-native textarea.ex-leaf-box::placeholder { font-style: italic; color: rgb(100 116 139); }
  html[data-theme="light"] .ex-native textarea.ex-leaf-box { background: #fff; border-color: rgb(148 163 184); color: #0f172a; }
/* The symbol bar under a focused answer field (web/static/js/answer-symbols.js). */
  .ex-symbol-bar { position: absolute; z-index: 60; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: .25rem; max-width: min(46rem, calc(100vw - 16px)); padding: .3rem; border: 1px solid rgb(71 85 105 / .7); border-radius: .6rem; background: rgb(2 6 23 / .97); box-shadow: 0 6px 20px rgb(0 0 0 / .45); }
  .ex-symbol-bar[hidden] { display: none; }
  .ex-symbol-bar button { flex: none; min-width: 1.85rem; height: 1.85rem; padding: 0 .4rem; border: 1px solid rgb(71 85 105 / .6); border-radius: .4rem; background: rgb(15 23 42); color: rgb(226 232 240); font: 500 1rem/1 'Source Serif 4', Georgia, serif; cursor: pointer; }
  .ex-symbol-bar button:hover, .ex-symbol-bar button:focus-visible { border-color: rgb(103 232 249); color: #fff; outline: none; }
  .ex-symbol-bar .ex-symbol-mode { font-family: Outfit, "Outfit Fallback", system-ui, sans-serif; font-size: .85rem; color: rgb(165 243 252); }
  .ex-symbol-bar .ex-symbol-mode[aria-pressed="true"] { background: rgb(165 243 252); color: rgb(8 47 73); border-color: rgb(165 243 252); }
  html[data-theme="light"] .ex-symbol-bar { background: #fff; border-color: rgb(203 213 225); box-shadow: 0 6px 20px rgb(15 23 42 / .15); }
  html[data-theme="light"] .ex-symbol-bar button { background: rgb(248 250 252); color: rgb(15 23 42); border-color: rgb(203 213 225); }
  html[data-theme="light"] .ex-symbol-bar .ex-symbol-mode { color: rgb(14 116 144); }
  html[data-theme="light"] .ex-symbol-bar .ex-symbol-mode[aria-pressed="true"] { background: rgb(14 116 144); color: #fff; }
/* A shared insert or passage (eXam/_native_context.html): a clear control when it starts closed. */
  details[data-native-context] > summary { cursor: pointer; font: 600 .9rem/1.6 Outfit, system-ui, sans-serif; padding: .35rem .2rem; }
  details[data-native-context]:not([open]) { padding-block: .25rem; }
/* Option buttons whose printed boxes answer for them (native-fields.js bindChoices). */
[data-native-twin] { display: none !important; }
/* An answer row left with nothing visible (its options are printed, its fields are in the question). */
.ex-native-part > :is(.ex-inline-answer, .ps-part):not(:has(> :not([hidden], [data-native-twin]))) { display: none; }
/* A field native-fields.js set aside (a text spot in a multiple-choice part, an unmatched box). */
.ex-native :is(.ex-answer-line, .ex-answer-box, .ex-crop-field, .ex-tick)[hidden] { display: none !important; }
/* Printed multiple-choice options are the answer buttons (native-fields.js pickPrinted). */
.ex-native .ex-pick { cursor: pointer; border-radius: .5rem; outline: 1px solid transparent; transition: background-color .12s, outline-color .12s; }
.ex-native p.ex-pick { margin-left: -.5rem; margin-right: -.5rem; padding-top: .3rem; padding-bottom: .3rem; padding-right: .5rem; }
.ex-native p.ex-pick.ex-native-labelled { padding-left: calc(2em + .5rem); }
@media (min-width: 640px) { .ex-native p.ex-pick.ex-native-labelled { padding-left: calc(2.5em + .5rem); } }
.ex-native .ex-native-labelled.ex-pick > .ex-native-label:first-child { left: .5rem; }
.ex-native .ex-pick:hover { background: rgba(56,189,248,.06); }
.ex-native .ex-pick:focus-visible { outline: 2px solid rgba(56,189,248,.7); }
.ex-native .ex-pick.is-picked { background: rgba(56,189,248,.2); outline: 1.5px solid rgba(56,189,248,.8); }
.ex-native .ex-item.ex-pick { margin-inline: -.5rem; padding: .3rem .5rem; }
.ex-native p.ex-pick[data-option-letter] { padding-left: .5rem; }
.ex-native .ex-item-body > :first-child { margin-top: 0; }
.ex-native .ex-item-body > :last-child { margin-bottom: 0; }
.ex-native .ex-item-body > figure { margin: .35rem 0; text-align: left; }
.ex-native .ex-item-body > figure img { margin-left: 0; }
/* Options drawn as pictures (eXam/native_presentation.py groups letter + figure): two per row,
   as the paper prints them, so four graphs do not fill four screens on a phone. */
.ex-native .ex-items-pictures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.ex-native .ex-items-pictures .ex-item-body figure img { max-width: 100%; height: auto; }
.ex-native .ex-pick.is-picked > :is(.ex-native-label, .ex-item-label):first-child, .ex-native tr.ex-pick.is-picked > :first-child { color: #38bdf8; font-weight: 700; }
html[data-theme="light"] .ex-native .ex-pick:hover { background: rgba(2,132,199,.05); }
html[data-theme="light"] .ex-native .ex-pick.is-picked { background: rgba(2,132,199,.16); outline: 1.5px solid rgba(2,132,199,.75); }
html[data-theme="light"] .ex-native .ex-pick.is-picked > :is(.ex-native-label, .ex-item-label):first-child, html[data-theme="light"] .ex-native tr.ex-pick.is-picked > :first-child { color: #0369a1; }

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .ex-native-label{color:rgb(1 111 124)}
html[data-theme="light"] .ex-marks{color:rgb(1 111 124)}
html[data-theme="light"] .ex-native pre{background:var(--reading-surface, rgb(252 252 253))}
html[data-theme="light"] .ex-q-label{color:rgb(1 111 124)}
html[data-theme="light"] .ex-mark{color:rgb(1 111 124)}
html[data-theme="light"] .ex-native .ex-answer-line{border-bottom-color:rgb(116 132 155)}
html[data-theme="light"] .ex-native .ex-answer-box::placeholder,html[data-theme="light"] .ex-native .ex-answer-line::placeholder{color:rgb(87 101 122)}
html[data-theme="light"] .ex-not-marked{color:rgb(117 94 0)}
html[data-theme="light"] .ex-native textarea.ex-leaf-box::placeholder{color:rgb(87 101 122)}
html[data-theme="light"] .ex-symbol-bar{background-color:rgb(250 251 252/0.97);box-shadow:0px 6px 20px rgb(15 23 42/0.144)}
html[data-theme="light"] .ex-symbol-bar button{background-color:rgb(244 245 249);color:rgb(44 63 88)}
html[data-theme="light"] .ex-symbol-bar button:hover,html[data-theme="light"] .ex-symbol-bar button:focus-visible{color:rgb(51 63 82)}
html[data-theme="light"] .ex-symbol-bar .ex-symbol-mode{color:rgb(1 111 124)}
html[data-theme="light"] .ex-native .ex-pick.is-picked > :is(.ex-native-label, .ex-item-label):first-child,html[data-theme="light"] .ex-native tr.ex-pick.is-picked > :first-child{color:rgb(2 107 154)}
/* ▲▲ LIGHT THEME END ▲▲ */
