/* Notes: a shared reading axis, a compact index, and room for the first check. */
body.bw-notes-reader #main {
  --nr-measure: 760px;
  padding-top: 0;
  padding-bottom: clamp(36px, 5vw, 64px);
}
body.bw-notes-reader #main > article { min-width: 0; max-width: none; margin: 0; padding: 0; }
body.bw-notes-reader #main :is(h1, h2, h3) {
  max-width: min(100%, var(--nr-measure));
  margin: 0 0 20px;
  color: var(--paper-ink);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
body.bw-notes-reader #main h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; }
body.bw-notes-reader #main :is(.nr-opening, .nr-further) { margin: 0; padding: clamp(32px, 4.5vw, 52px) 0; }
body.bw-notes-reader #main :is(.nr-lead, .nr-description, .nr-further > p, .note-copy > p, .notes-deck, .note-precheck-note, .note-final-copy, .note-smallprint p, .note-action p:not(.note-action-label)) {
  max-width: min(68ch, var(--nr-measure));
  margin: 0 0 18px;
  color: var(--paper-ink);
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
body.bw-notes-reader #main :is(.nr-lead, .notes-deck, .note-precheck-note) { color: var(--paper-muted); }
body.bw-notes-reader #main .nr-list { display: block; list-style: none; margin: 0; padding: 0; }
body.bw-notes-reader #main .nr-item { display: block; min-width: 0; margin: 0; padding: 28px 0; border-top: 1px solid var(--paper-line); }
body.bw-notes-reader #main .nr-item article { display: block; min-width: 0; margin: 0; padding: 0; }
body.bw-notes-reader #main .nr-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; color: var(--paper-muted); font-size: 16px; line-height: 1.5; }
body.bw-notes-reader #main :is(.nr-meta, .note-meta) time { white-space: nowrap; }
body.bw-notes-reader #main .nr-item h2 { margin-bottom: 12px; font-size: clamp(25px, 3vw, 36px); }
body.bw-notes-reader #main .nr-item h2 a { display: inline-block; max-width: 100%; min-height: 44px; padding: 4px 0; color: inherit; overflow-wrap: normal; word-break: normal; hyphens: none; text-underline-offset: .18em; text-decoration-thickness: 1px; }
body.bw-notes-reader #main .nr-description { color: var(--paper-muted); margin-bottom: 8px; }
body.bw-notes-reader #main .nr-further { border-top: 1px solid var(--paper-line); }
body.bw-notes-reader #main :is(.nr-actions, .note-related) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 24px; max-width: var(--nr-measure); min-width: 0; margin: 12px 0 0; }
body.bw-notes-reader #main :is(.nr-actions a, .notes-back, .note-continue, .note-related a) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  color: var(--paper-ink);
  font-size: 17px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
body.bw-notes-reader #main .note-precheck { display: block; min-height: 0; height: auto; margin: 0; padding: 24px 0 28px; }
body.bw-notes-reader #main .note-precheck-top { display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px 24px; }
body.bw-notes-reader #main .note-precheck-top .note-meta { margin: 0; text-align: left; white-space: normal; }
body.bw-notes-reader #main :is(.note-meta, .note-precheck-label, .note-section-label, .note-question .eyebrow) { color: var(--paper-muted); font-size: 16px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
body.bw-notes-reader #main .note-precheck-stage { max-width: var(--nr-measure); min-width: 0; padding: 40px 0; }
body.bw-notes-reader[data-note-number="01"] #main .note-precheck-stage { padding-block: clamp(40px, 5vw, 60px); }
body.bw-notes-reader[data-note-number="02"] #main .note-precheck { padding-block: 24px; }
body.bw-notes-reader[data-note-number="02"] #main .note-precheck-stage { padding-block: 32px; }
body.bw-notes-reader #main .note-precheck-prompt { max-width: min(100%, var(--nr-measure)); margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
body.bw-notes-reader #main .note-mark { max-width: 100%; margin: 32px 0 24px; font-size: clamp(80px, 24vw, 144px); line-height: 1.05; white-space: normal; overflow-wrap: break-word; }
body.bw-notes-reader #main .note-precheck-note { margin-bottom: 0; }
body.bw-notes-reader #main .note-continue { position: static; margin: 0; }
body.bw-notes-reader #main .note-question { margin: 0; padding: clamp(32px, 4vw, 48px) 0; }
body.bw-notes-reader #main .note-question h1 { margin-bottom: 20px; }
body.bw-notes-reader #main .note-question .eyebrow { margin: 0 0 12px; }
body.bw-notes-reader #main .notes-verdict { max-width: var(--nr-measure); margin: 0 0 16px; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
body.bw-notes-reader #main .notes-deck { margin-bottom: 0; }
body.bw-notes-reader #main .note-section { display: block; grid-template-columns: none; gap: 0; min-width: 0; margin: 0; padding: clamp(32px, 4.5vw, 48px) 0; }
body.bw-notes-reader #main .note-section-head { position: static; top: auto; max-width: var(--nr-measure); margin: 0 0 20px; padding: 0; }
body.bw-notes-reader #main .note-section-label { margin: 0 0 8px; }
body.bw-notes-reader #main .note-section-heading { margin: 0; }
body.bw-notes-reader #main .note-copy { width: auto; min-width: 0; max-width: min(68ch, var(--nr-measure)); margin: 0; padding: 0; font-size: clamp(18px, 1.7vw, 20px); line-height: 1.65; }
body.bw-notes-reader #main .note-copy > p:last-child { margin-bottom: 0; }
body.bw-notes-reader #main .note-chain { max-width: 100%; margin: 24px 0; padding: 12px 0 12px 18px; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.5; letter-spacing: 0; overflow-wrap: break-word; }
body.bw-notes-reader #main .note-pairs { margin: 24px 0; }
body.bw-notes-reader #main .note-pair { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; }
body.bw-notes-reader #main .note-pair > div { min-width: 0; }
body.bw-notes-reader #main .pair-text { max-width: 100%; overflow-wrap: break-word; word-break: normal; }
/* Existing pair labels and check records use important declarations in the source. */
body.bw-notes-reader #main .pair-label { font-size: 16px !important; line-height: 1.5 !important; letter-spacing: 0; text-transform: none; }
body.bw-notes-reader #main .note-check { margin: 24px 0; }
body.bw-notes-reader #main .note-check p { font-size: clamp(24px, 2.8vw, 34px) !important; line-height: 1.35 !important; overflow-wrap: break-word; word-break: normal; }
body.bw-notes-reader #main .note-word-again { max-width: 100%; margin: 28px 0 24px; font-size: clamp(56px, 12vw, 96px); line-height: 1.1; overflow-wrap: break-word; }
body.bw-notes-reader #main .note-final { margin: 0; padding: clamp(32px, 4.5vw, 48px) 0 0; }
body.bw-notes-reader #main .note-final-line { max-width: min(100%, var(--nr-measure)); margin: 0 0 20px; font-size: clamp(26px, 3.3vw, 38px); line-height: 1.25; letter-spacing: -.025em; }
body.bw-notes-reader #main .note-final-copy { margin: 0 0 24px; }
body.bw-notes-reader #main .note-smallprint { max-width: min(68ch, var(--nr-measure)); margin: 24px 0; padding-top: 24px; }
body.bw-notes-reader #main .note-smallprint p { font-size: 16px; color: var(--paper-muted); }
body.bw-notes-reader #main .note-action { min-width: 0; max-width: 100%; margin: 24px 0; padding: clamp(18px, 3vw, 28px); }
body.bw-notes-reader #main .note-action :is(form, fieldset) { min-width: 0; }
body.bw-notes-reader #main .note-action label { font-size: 18px; line-height: 1.5; }
body.bw-notes-reader #main .note-action textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 96px; height: auto; padding: 12px; font-size: 18px; line-height: 1.6; }
body.bw-notes-reader #main .note-action-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 20px; }
body.bw-notes-reader #main .note-action button { min-width: 0; max-width: 100%; min-height: 48px; height: auto; padding: 12px 16px; font-size: 17px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
body.bw-notes-reader #main .note-action :is(.note-action-hint, .note-action-label, .note-action-privacy, .note-action-status) { color: var(--paper-muted); font-size: 16px; line-height: 1.6; }
body.bw-notes-reader #main .note-action :is(.note-action-privacy, .note-action-status) { margin: 18px 0 0; }
body.bw-notes-reader #main .note-action .note-action-title { font-size: 24px; line-height: 1.35; }
body.bw-notes-reader #main .note-action pre { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
body.bw-notes-reader #main :is(a, button, textarea, [tabindex]):focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 4px; }
@media (min-width: 768px) {
  body.bw-notes-reader #main .note-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 600px) {
  body.bw-notes-reader #main .note-action-buttons { flex-direction: column; align-items: stretch; }
  body.bw-notes-reader #main .note-action-buttons button { width: 100%; }
}
@media (hover: hover) {
  body.bw-notes-reader #main :is(.nr-item h2 a, .nr-actions a, .notes-back, .note-continue, .note-related a):hover { color: var(--paper-ink); text-decoration-thickness: 2px; }
}
@supports (text-wrap: pretty) {
  body.bw-notes-reader #main :is(.nr-lead, .nr-description, .nr-further > p) { text-wrap: pretty; }
}
@media print {
  body.bw-notes-reader #main { width: 100%; padding: 0; }
  body.bw-notes-reader #main :is(.nr-opening, .nr-further, .note-precheck, .note-question, .note-section) { padding-block: 20px; }
  body.bw-notes-reader #main .note-precheck-stage { padding-block: 24px; }
  body.bw-notes-reader #main .note-mark { font-size: 64pt; }
}
