/* ExamStudyAid: the notes' callouts and boxes in the Study v5 look, the same change the multiple choice questions took
   (owner, 2026-11-27: "the same change we did on mcws for those callouts to make them look very premium and apple like",
   for the misconceptions, the worked examples "and the like all the 100+ ones"). A layer loaded after
   notebook-notes.css and notebook-blocks.css, before notebook-reading.css, which stays last; its rules outrank the
   reading sheet's by specificity. Before and after pictures: Desktop/Claude work/Study pages/Note callouts, before and
   after.

   The sheet a note sits on is already white, so where an MCQ option is a white tile on the mist page, a callout here is a
   soft mist tile on the white sheet (a 4.5% ink wash, the same step by night):
   - every callout one tile with no edge, no tint of its kind and rounded corners, its words in the one ink, at the size of
     the text around it, upright (the examiner's insight is no longer the serif italic);
   - its name a short coloured word, led by a small filled disc in the kind's colour with the kind's mark knocked out of it
     (the exam cue's tick is drawn), the way an answered MCQ letter fills;
   - the exam cue a tile like the rest, its name and its cue on one line;
   - callouts one under another are separate tiles a step apart, not one framed block;
   - a worked example, practice problem, derivation and practical one mist sheet with no edge; its parts keep their
     hairlines, and a callout inside a box stays the box's last part (owner, 2026-10-05);
   - a worked example's answer fills solid green with its words in the page tone, as the MCQ's right answer does.
   Only the look changes: the words, the maths, the figures and the order are the renderer's (blocks_render.py). Tokens
   only, both themes; no edge, no glow, no capsule, no side stripe. */

html body .nb-notes-column.nb-read-notes .nb-notes {
  --nc5-tile: color-mix(in srgb, var(--nb-ink) 4.5%, transparent);
  --nc5-rule: color-mix(in srgb, var(--nb-ink) 10%, transparent);
  --nc5-disc: 1.2em;
}

/* ── A callout: one mist tile ── */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout {
  margin: var(--nb-s6) 0;
  padding: var(--nb-s4) var(--nb-s5) var(--nb-s5);
  background: var(--nc5-tile);
  border: 0;
  border-radius: var(--nb-r-lg);
  box-shadow: none;
  font-family: var(--nb-sans);
  font-style: normal;
  color: var(--nb-ink);
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout :is(.note-callout-body, .note-callout-body p, .note-callout-body li) {
  font-family: var(--nb-sans);
  font-style: normal;
  font-size: inherit;
  color: var(--nb-ink);
}
/* the name: a coloured word led by a filled disc in the kind's colour, the kind's mark knocked out of it */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout > strong {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 var(--nb-s2);
  font-family: var(--nb-sans);
  font-size: var(--nb-text-base);
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--adm);
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout > strong::before {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: var(--nc5-disc);
  block-size: var(--nc5-disc);
  margin: 0;
  border-radius: var(--nb-r-pill);
  background: var(--adm);
  color: var(--nb-paper-raised);
  font-size: 0.74em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
/* the maths skill's mark is a sigma on the disc: the root sign draws like a V at this size in every face */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--math-skill {
  --adm-glyph: "\03A3";
}

/* ── Every mark drawn on the middle of its disc (owner, 2026-11-27: "for these icons they were all out of center") ──
   A typed mark sits where its font puts it: the safety triangle and the exclamation mark sat low, the dash high. The
   disc is now plain, and each kind's mark is drawn over it in the page tone, centred by construction on a 16-unit grid
   (a triangle a little low of its box, where the eye reads its middle). The exam cue keeps its own drawn tick, a
   definition keeps no mark, and a summary's Memorize keeps its square. */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='2.4'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--misconception {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.3v4.9' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.7' r='1.15'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--insight {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.4v7.2M4.9 6.2l6.2 3.6M11.1 6.2l-6.2 3.6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-callout--example, .note-callout--illustrative-example) {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.1l3.9 3.9L8 11.9 4.1 8z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='8' r='1.2'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-callout--out-of-scope, .note-callout--boundary) {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--mnemonic {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.7l1.2 3.1 3.1 1.2-3.1 1.2L8 12.3 6.8 9.2 3.7 8l3.1-1.2z'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-callout--math-skill, .note-callout--key-equations) {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 4.7H5.2L8.3 8l-3.1 3.3H11' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--pinned {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--representation-note {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5.6h6M5 8h6M5 10.4h6' stroke='black' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--reading-convention {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.7 8h6.4M8.7 5.5L11.2 8l-2.5 2.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--reading-the-equation {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 6.7h6M5 9.3h6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--graphing-activity {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.3 10.7l5.2-5.2M6.6 5.3h4.1v4.1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--drawing-guidance {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11l.6-2.4 4.4-4.4 1.8 1.8-4.4 4.4z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--diagram {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5' y='5' width='6' height='6' rx='1.2' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--key-point {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.4L11.6 8 8 11.6 4.4 8z'/%3E%3C/svg%3E");
}
/* (after the misconception: a safety note and a phrasing note carry that class too) */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout.note-callout--safety {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5l3.9 6.6H4.1z' stroke='black' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout.note-callout--phrasing-precision {
  --nc5-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 5.3C5.7 5.8 4.9 6.9 4.9 8.3v2.4h2.6V8.1H6.3c.1-.7.5-1.2 1.1-1.5zM11.1 5.3c-1.3.5-2.1 1.6-2.1 3v2.4h2.6V8.1h-1.2c.1-.7.5-1.2 1.1-1.5z'/%3E%3C/svg%3E");
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout:not(.note-callout--exam-tip, .note-callout--memorize, .callout-definition) > strong {
  position: relative;
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout:not(.note-callout--exam-tip, .note-callout--memorize, .callout-definition) > strong::before {
  content: "";
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout:not(.note-callout--exam-tip, .note-callout--memorize, .callout-definition) > strong::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  font-size: 0.74em; /* the disc's own size: its 1.2em is counted at its 0.74em */
  inline-size: var(--nc5-disc);
  block-size: var(--nc5-disc);
  margin-top: calc(var(--nc5-disc) / -2);
  background: var(--nb-paper-raised);
  -webkit-mask: var(--nc5-mark) center / 100% 100% no-repeat;
  mask: var(--nc5-mark) center / 100% 100% no-repeat;
  pointer-events: none;
}
/* the out-of-scope and the illustrative example read their names in ink (One Ink, 2026-09-26); their discs are ink too */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-callout--out-of-scope, .note-callout--boundary, .note-callout--example) {
  --adm: var(--nb-ink);
}

/* the exam cue: a tile like the rest, its name and its cue on one line, the tick drawn and knocked out of a green disc */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout.note-callout--exam-tip {
  padding: var(--nb-s4) var(--nb-s5);
  background: var(--nc5-tile);
}
/* (the :is() list matches the reading sheet's own exam cue selector, so these outrank it) */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-callout--exam-tip > strong, blockquote.callout-exam-tip .callout-body p:first-child > strong:first-child) {
  display: inline-flex;
  /* the name stands on the cue's own baseline (owner, 2026-11-28: "Exam cue" sat higher than the words after it); the
     tick keeps the middle of the name's line, so the words alone set the baseline */
  align-items: baseline;
  vertical-align: baseline;
  margin: 0 0.55em 0 0;
  font-size: var(--nb-text-base);
  line-height: inherit;
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-callout--exam-tip > strong, blockquote.callout-exam-tip .callout-body p:first-child > strong:first-child)::before {
  content: "";
  display: inline-block;
  flex: none;
  align-self: center;
  inline-size: var(--nc5-disc);
  block-size: var(--nc5-disc);
  margin: 0;
  vertical-align: -0.16em;
  background: var(--adm);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 1 0 8 0zM3.9 8.9l3 3 5.2-5.6-1.4-1.3-3.8 4.1-1.6-1.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 1 0 8 0zM3.9 8.9l3 3 5.2-5.6-1.4-1.3-3.8 4.1-1.6-1.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  border-radius: 0;
  transform: none;
}

/* callouts one under another: separate tiles a step apart (the reading sheet joined them into one framed block) */
html body .nb-notes-column.nb-read-notes .note-prose-surface > .note-callout:not(.note-callout--memorize) + .note-callout:not(.note-callout--memorize) {
  margin-top: var(--nb-s2);
  border-radius: var(--nb-r-lg);
}
html body .nb-notes-column.nb-read-notes .note-prose-surface > .note-callout:not(.note-callout--memorize):has(+ .note-callout:not(.note-callout--memorize)) {
  margin-bottom: var(--nb-s2);
  border-radius: var(--nb-r-lg);
}
/* a summary's Memorize list stays no box (owner, 2026-10-05) */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout.note-callout--memorize {
  padding: 0;
  background: none;
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout.note-callout--memorize > strong::before {
  inline-size: 0.8em;
  block-size: 0.8em;
  border-radius: 0;
  background: currentColor;
}
/* several of one kind stacked as one box keep their hairline between the parts */
html body .nb-notes-column.nb-read-notes .nb-notes .note-callout--stack .note-def-row + .note-def-row {
  border-top-color: var(--nc5-rule);
}

/* the learning objectives, the quick recap and the progress check: the same mist tile, no edge (they kept the reading
   sheet's hairline; the nitpick check, 2026-11-27) */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.nt-objectives-card, .note-review-section) {
  background: var(--nc5-tile);
  border-color: transparent;
  border-radius: var(--nb-r-lg);
}

/* ── The boxes: one mist sheet, no edge ── */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-practical-note, .note-derivation) {
  padding: var(--nb-s5) var(--nb-s6) var(--nb-s6);
  background: var(--nc5-tile);
  border: 0;
  border-radius: var(--nb-r-lg);
  box-shadow: none;
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-practical-note, .note-derivation) > :is(h2, h3, h4) {
  border-bottom-color: var(--nc5-rule);
  letter-spacing: -0.012em;
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-derivation) :is(.note-we-callout, .note-field--warn) {
  border-top-color: var(--nc5-rule);
}
/* a callout inside a box stays the box's last part: a hairline, its name with the disc, its words; no tile */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-derivation) .note-callout:not(.note-callout--exam-tip) {
  margin: var(--nb-s5) 0 0;
  padding: var(--nb-s4) 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--nc5-rule);
  border-radius: 0;
}
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-derivation) .note-callout.note-callout--exam-tip {
  margin: var(--nb-s4) 0 0;
  padding: 0;
  background: none;
}
/* a figure's plate stays white on the sheet */
html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-derivation) .note-figure-img-area {
  border-radius: var(--nb-r-md);
}

/* the answer: solid green, its words and its maths in the page tone (as the MCQ's right answer) */
html body .nb-notes-column.nb-read-notes .nb-notes .note-we-callout.note-we-result {
  margin: var(--nb-s4) 0 0;
  padding: var(--nb-s3) var(--nb-s4) var(--nb-s4);
  background: var(--nb-success);
  border: 0;
  border-radius: var(--nb-r-md);
  color: var(--nb-paper);
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-we-callout.note-we-result + :is(.note-we-callout, .note-field, .note-callout) {
  border-top-width: 0;
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-we-result :is(.note-we-callout-label, .note-we-callout-body, .note-we-callout-body *, .katex) {
  color: var(--nb-paper);
}
html body .nb-notes-column.nb-read-notes .nb-notes .note-we-result .note-we-callout-label {
  opacity: 0.86;
}

/* ── A phone: compact ── */
@media (max-width: 640px) {
  html body .nb-notes-column.nb-read-notes .nb-notes .note-callout {
    margin: var(--nb-s5) 0;
    padding: 14px var(--nb-s4) var(--nb-s4);
  }
  html body .nb-notes-column.nb-read-notes .nb-notes .note-callout.note-callout--exam-tip {
    padding: 14px var(--nb-s4);
  }
  html body .nb-notes-column.nb-read-notes .nb-notes :is(.note-worked-example, .note-practical, .note-practical-note, .note-derivation) {
    margin-inline: calc(-1 * var(--nb-s2));
    padding: var(--nb-s4) var(--nb-s4) var(--nb-s5);
  }
  html body .nb-notes-column.nb-read-notes .nb-notes .note-we-callout.note-we-result {
    padding: 10px 14px 12px;
  }
}
