/* Loaded only by the document reader. */
.reader-assist { margin-block: 12px; padding: 18px 14px; border: 1px solid #d5d9de; border-radius: 14px; background: #f6f7f9; color: #20201e; font-size: 12px; line-height: 1.8; }
.reader-assist summary { font-weight: 700; cursor: pointer; }
.reader-assist :is(p, form, ol) { margin-block: 14px; }
.reader-assist label { display: block; margin-bottom: 8px; }
.reader-assist input { width: 100%; min-width: 0; border: 1px solid #b3bac5; border-radius: 9px; padding: 11px; background: #fff; color: #20201e; font-size: 16px; margin-bottom: 12px; }
.reader-find-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.reader-assist :is(a, mark) { overflow-wrap: anywhere; }
.reader-assist a, .reader-learning-link a { color: #214fc5; text-decoration: underline; text-underline-offset: 3px; }
.reader-assist li { padding-bottom: 14px; border-bottom: 1px solid #d5d9de; }
.reader-assist mark, .book-article mark { background: #ffe289; color: #20201e; border-radius: 2px; }
.book-article mark[data-current] { background: #ffd33d; outline: 2px solid #684c0c; outline-offset: 2px; }
.reader-glossary dt { font-weight: 700; margin-top: 18px; }
.reader-glossary dd { margin-top: 5px; }
.reader-learning-link { margin-block: 16px; font-size: 12px; line-height: 1.8; }
.reader-figure-open { margin-top: -12px; margin-bottom: 20px; }
.reader-figure-dialog { width: min(96vw, 1400px); max-height: 92dvh; margin: auto; padding: 22px; border: 1px solid #7c8491; border-radius: 16px; background: #fffdf6; color: #20201e; }
.reader-figure-dialog::backdrop { background: #0b0d14cc; }
.reader-figure-dialog h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.reader-figure-dialog > label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 15px; font-size: 14px; }
.reader-figure-viewport { overflow: auto; max-height: 65dvh; padding: 12px; background: #fff; }
.reader-figure-viewport img { max-width: none; height: auto; display: block; }
@media print { .reader-assist, .reader-learning-link, .reader-figure-open, .reader-figure-dialog { display: none !important; } .book-article mark { color: inherit; background: transparent; outline: none; } }
@layer base { .js [data-reader-study-open][hidden] { display: inline-flex !important; visibility: hidden; } }
.reader-document-actions [data-reader-study-open] .ui-icon { display: block; }
.reader-study { margin-block: 12px; padding: 18px 14px; border: 1px solid #d5d9de; border-radius: 14px; background: #f6f7f9; color: #20201e; font-size: 12px; line-height: 1.7; }
.reader-study summary { font-weight: 700; cursor: pointer; }
.reader-study p, .reader-study h2, .reader-study > label, .reader-study > button { margin-block: 14px; }
.reader-study h2 { font-size: 13px; font-weight: 700; }
.reader-study label { display: block; font-weight: 600; }
.reader-study textarea { width: 100%; min-height: 100px; padding: 10px; border: 1px solid #b3bac5; border-radius: 9px; background: #fff; color: #20201e; font-size: 16px; resize: vertical; }
.reader-study .study-check { display: flex; align-items: flex-start; gap: 8px; }
.study-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: #214fc5; }
.study-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.reader-study a { color: #214fc5; text-decoration: underline; text-underline-offset: 3px; }
.reader-study ul { list-style: none; padding: 0; }
.reader-study li { margin-bottom: 12px; }
.reader-chapters .chapter-completed:not([aria-current]) { box-shadow: inset 3px 0 #267048; background: #eaf3ed; }
.reader-chapters .chapter-completed[aria-current] { box-shadow: inset 3px 0 #ffd33d; }
.reader-study .study-caption { color: #535d68; }
  .book-article { font-size: 18px; overflow-wrap: anywhere; }
  .book-article h1 { font-weight: 600; line-height: 1.15; color: #2153d8; margin: 0 0 30px; }
  .book-article h2 { font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; color: #2153d8; margin: 42px 0 20px; scroll-margin-top: 120px; }
  .book-article h3 { font-size: 21px; font-weight: 600; line-height: 1.4; margin: 30px 0 15px; }
  .book-article p { margin-bottom: 22px; }
  .book-article img { display: block; width: 100%; height: auto; border-radius: 12px; margin-block: 25px; }
  .book-article a { color: #214fc5; text-decoration: underline; text-underline-offset: 3px; }
  .book-article ul, .book-article ol { padding-left: 25px; margin-block: 20px; }
  .book-article ul { list-style: disc; } .book-article ol { list-style: decimal; }
  .book-article li { padding-left: 5px; margin-block: 8px; }
  .book-article strong { font-weight: 700; }
  .book-article code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85em; color: #5136b5; }
  .book-article blockquote { border-left: 4px solid var(--blue); padding-left: 22px; margin-block: 25px; }
  .book-table { overflow-x: auto; margin-block: 25px; border: 1px solid #20201e26; border-radius: 15px; }
  .book-article table { min-width: 520px; width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
  .book-article th, .book-article td { padding: 14px; text-align: left; border-bottom: 1px solid #20201e20; vertical-align: top; }
  .book-article th { background: var(--blue); color: white; font-weight: 500; }
  .book-article tr:nth-child(even) { background: #f7f2df; }
  .reader-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; border-top: 1px solid #20201e26; }
  .reader-pager a { padding: 20px; border-radius: 18px; background: var(--cream); }
  .reader-pager a:last-child { background: #e7ebff; }
  .reader-pager span { display: block; font-size: 11px; margin-bottom: 9px; color: #535247; }
  .reader-pager strong { font-size: 14px; font-weight: 600; line-height: 1.5; color: #2153d8; }
  .book-related-notes { margin-top: 35px; padding-top: 25px; border-top: 1px solid #20201e25; }
  .book-related-notes .eyebrow { font-size: 10px; color: #5143b0; margin-bottom: 15px; }
  .book-related-notes > a { position: relative; display: block; padding: 22px 50px 22px 22px; border-radius: 18px; background: #f0e7ff; }
  .book-related-notes > a + a { margin-top: 12px; }
  .book-related-notes strong { display: block; font-size: 18px; line-height: 1.3; color: #5136b5; }
  .book-related-notes > a > span:not(.book-note-arrow) { display: block; font-size: 14px; line-height: 1.6; margin-top: 10px; }
  .book-note-arrow { position: absolute; top: 18px; right: 20px; font-size: 24px; color: #5136b5; }
.book-reader { --reader-top: 92px; --reader-sheet: #fffdf6; --reader-ink: #20201e; --reader-muted: #63645e; --reader-line: #dcded8; background: #e9ecef; padding-block: 115px 75px; color: var(--reader-ink); }
  .reader-shell { width: min(100% - 48px, 1480px); }
  .book-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 11px; line-height: 1.6; }
  .book-breadcrumbs a { color: #214fc5; }
  .book-breadcrumbs a:hover { text-decoration: underline; }
  .reader-deskbar { position: sticky; top: var(--reader-top); z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: #fff; color: #20201e; border: 1px solid #d5d9de; border-radius: 17px; box-shadow: 0 6px 24px #25334d0a; }
  .reader-document-name { display: flex; align-items: center; gap: 12px; padding: 14px 20px; min-width: 0; }
  .reader-document-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e7ebff; color: #2153d8; flex-shrink: 0; }
  .reader-document-name > a { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.4; }
  .reader-document-name > a > span { display: block; font-size: 10px; font-weight: 400; color: #626971; margin-top: 3px; }
  .reader-document-actions { display: flex; gap: 6px; align-items: center; padding-right: 16px; }
  .reader-document-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 13px; border-radius: 10px; background: #edf0f8; color: #214fc5; font-size: 11px; font-weight: 700; }
  .reader-document-actions .ui-icon { width: 16px; height: 16px; }
  .reader-toolbar { grid-column: 1/-1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #e4e7eb; }
  /* Tailwind 4's base hidden rule is important. Reserve reader controls in the
     same layer so initializing JavaScript cannot move the document. */
  @layer base {
    .js :is([data-reader-toolbar], [data-reader-progress-bar], [data-reader-session], [data-reader-filter])[hidden] { visibility: hidden; display: flex !important; }
    .js [data-reader-filter][hidden] { display: block !important; }
  }
  .reader-tool { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 40px; height: 40px; gap: 8px; padding: 8px; border-radius: 9px; color: #3e485a; font-size: 11px; font-weight: 600; cursor: pointer; }
  .reader-tool .ui-icon { width: 19px; height: 19px; }
  .reader-tool:hover, .reader-tool[aria-pressed="true"] { background: #e7ebff; color: #214fc5; }
  .reader-tool[aria-expanded="true"] { background: #edf0f8; }
  .reader-section-control { min-width: 0; flex: 1; }
  .reader-toolbar select { width: 100%; max-width: 100%; min-height: 40px; border: 1px solid #b3bac5; border-radius: 9px; padding: 8px 27px 8px 10px; font-size: 11px; color: #303b4d; background: white; text-overflow: ellipsis; cursor: pointer; }
  .reader-display-controls { display: flex; align-items: center; gap: 8px; }
  .reader-display-controls > div:first-child { width: 132px; }
  .reader-display-controls > div:last-child { width: 94px; }
  .reader-tool-actions { display: flex; gap: 2px; border-left: 1px solid #dce0e6; padding-left: 10px; }
  .reader-statusbar { grid-column: 1/-1; display: flex; align-items: center; gap: 22px; padding: 7px 20px; border-top: 1px solid #e4e7eb; color: #586170; font-size: 10px; }
  .reader-statusbar > div { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
  .reader-statusbar progress { appearance: none; width: 120px; height: 4px; overflow: hidden; border: 0; border-radius: 10px; background: #e1e5ef; accent-color: #5941d9; }
  .reader-statusbar progress::-webkit-progress-bar { background: #e1e5ef; }
  .reader-statusbar progress::-webkit-progress-value { background: #5941d9; }
  .reader-statusbar progress::-moz-progress-bar { background: #5941d9; }
  .reader-statusbar [data-reader-percent] { min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
  .reader-statusbar > a { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; }
  .reader-statusbar .ui-icon { width: 14px; height: 14px; }
  .reader-grid { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 25px; }
  .book-reader[data-contents="closed"] .reader-grid { grid-template-columns: minmax(0, 1fr); }
  .reader-sidebar { position: sticky; top: calc(var(--reader-top) + 190px); max-height: calc(100dvh - var(--reader-top) - 210px); overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
  .book-navigation, .reader-outline { background: #f6f7f9; color: #20201e; border: 1px solid #d5d9de; border-radius: 14px; padding: 18px 12px; }
  .book-navigation > summary, .reader-outline > summary { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
  .book-navigation > summary::-webkit-details-marker, .reader-outline > summary::-webkit-details-marker { display: none; }
  .book-navigation nav { max-height: none; overflow: visible; margin-top: 20px; }
  .reader-book-title { display: block; padding: 0 8px 16px; font: 700 25px/1 "Passion One", sans-serif; color: #2153d8; }
  .reader-book-title > span { display: block; margin-top: 8px; font: 400 10px/1.5 "DM Sans", sans-serif; color: #626971; }
  .reader-chapter-filter { padding: 0 4px 12px; }
  .reader-chapter-filter input { width: 100%; min-width: 0; border: 1px solid #b3bac5; border-radius: 9px; padding: 11px; background: #fff; font-size: 12px; }
  .reader-chapter-filter p { padding: 15px 5px 0; font-size: 12px; }
  .reader-chapters { list-style: none; padding: 0; margin: 0; }
  .reader-chapters a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 12px 8px; border-radius: 9px; font-size: 11px; line-height: 1.6; }
  .reader-chapters a:hover { background: #e7ebff; }
  .reader-chapters a[aria-current="page"] { background: #2153d8; color: white; font-weight: 600; }
  .reader-section-number { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .8; padding-top: 1px; }
  .reader-downloads { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 8px 0; border-top: 1px solid #d5d9de; margin-top: 16px; font-size: 11px; color: #214fc5; }
  .reader-outline { margin-top: 12px; }
  .reader-outline ol { list-style: none; padding: 14px 0 0; }
  .reader-outline a { display: block; padding: 9px 8px; border-left: 2px solid #d5d9de; font-size: 11px; line-height: 1.6; }
  .reader-outline a:hover, .reader-outline a[aria-current] { border-color: #5941d9; background: #e7ebff; color: #4131a0; }
  .reader-stage { min-width: 0; max-width: 950px; width: 100%; margin-inline: auto; }
  .reader-session { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 14px; padding-inline: 3px; font-size: 10px; line-height: 1.5; color: #626971; }
  .reader-storage-note { font-size: 10px; }
  .reader-resume-here { color: #214fc5; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .reader-content { min-width: 0; background: var(--reader-sheet); color: var(--reader-ink); padding: 34px clamp(24px, 5vw, 76px) 26px; border: 1px solid var(--reader-line); border-radius: 3px; box-shadow: 0 2px 3px #25334d06, 0 18px 50px #25334d0c; }
  .reader-page-header, .reader-page-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--reader-muted); font-size: 9px; line-height: 1.6; }
  .reader-page-header { border-bottom: 1px solid var(--reader-line); padding-bottom: 16px; margin-bottom: 42px; text-transform: uppercase; letter-spacing: .08em; }
  .reader-page-header > span:last-child { color: #5143b0; font-weight: 700; }
  .reader-page-footer { border-top: 1px solid var(--reader-line); padding-top: 18px; margin-top: 55px; }
  .reader-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
  .reader-meta .eyebrow { color: #5143b0; font-size: 10px; }
  .reader-meta > p:last-child { color: var(--reader-muted); font-size: 10px; }
  .book-article { max-width: none; line-height: 1.9; }
  .book-article h1 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; }
  .book-article :is(h1, h2, h3, h4) { scroll-margin-top: 290px; }
  .book-reader[data-text-size="small"] .book-article { font-size: 16px; }
  .book-reader[data-text-size="large"] .book-article { font-size: 21px; }
  .book-reader[data-text-size="extra"] .book-article { font-size: 24px; }
  .reader-pager { margin-top: 24px; padding-top: 0; border: 0; }
  .reader-pager a, .reader-pager a:last-child { border: 1px solid #d5d9de; background: #f6f7f9; border-radius: 13px; }
  .reader-pager a:hover { background: #e7ebff; }
  .book-reader .book-license-note { color: #626971; }
  .book-reader[data-theme="light"] { --reader-sheet: #fff; }
  .book-reader[data-theme="dark"] { --reader-sheet: #192421; --reader-ink: #f5efd9; --reader-muted: #d5daca; --reader-line: #f5efd94d; background: #182029; }
  .book-reader[data-theme="dark"] :is(.book-article h1, .book-article h2, .book-article a, .reader-meta .eyebrow, .reader-page-header > span:last-child) { color: #aec8ff; }
  .book-reader[data-theme="dark"] .book-article :not(pre) > code { color: #e6cbff; }
  .book-reader[data-theme="dark"] .book-article tr:nth-child(even) { background: #293c35; }
  .book-reader[data-theme="dark"] :is(.book-article th, .book-article td) { border-color: #f5efd94d; }
  .book-reader[data-theme="dark"] .book-article img { background: white; }
  .book-reader[data-theme="dark"] :is(.reader-session, .book-license-note, .book-breadcrumbs, .book-breadcrumbs a) { color: #d5daca; }
  .book-reader[data-theme="dark"] .reader-resume-here { color: #aec8ff; }
  .book-reader[data-theme="dark"] .reader-pager strong { color: #214fc5; }
  .book-reader[data-theme="dark"] .book-related-notes > .eyebrow { color: #aec8ff; }
  .book-related-notes > a { color: #20201e; }
  .book-reader[data-theme="dark"] .book-article :focus-visible { outline-color: #ffd33d; }
  .reader-focused :is(.site-header, .site-footer, .book-breadcrumbs) { display: none; }
  .reader-focused .book-reader { --reader-top: 12px; padding-top: 12px; min-height: 100dvh; }
  .reader-focused .book-article :is(h1, h2, h3, h4) { scroll-margin-top: 210px; }
  @media (max-width: 1200px) {
    .reader-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }
    .reader-toolbar { gap: 8px; }
    .reader-tool > span { display: none; }
  }
  @media (max-width: 980px) {
    .book-reader { --reader-top: 80px; padding-top: 105px; }
    .js .book-reader:not([data-contents="open"]) .reader-sidebar { display: none; }
    .reader-grid { grid-template-columns: minmax(0, 1fr); }
    .reader-sidebar { position: static; max-height: 460px; }
    .book-navigation { padding: 18px 12px; }
    .reader-book-title { display: block; }
    .reader-content { padding: 28px clamp(22px, 6vw, 65px); }
    .reader-display-controls > div:first-child { width: 124px; }
    .reader-tool-actions { padding-left: 7px; }
  }
  @media (max-width: 650px) {
    .reader-shell { width: calc(100% - 24px); }
    .book-breadcrumbs { padding-inline: 5px; font-size: 10px; }
    .reader-document-name { gap: 8px; padding: 12px; }
    .reader-document-name > a { font-size: 11px; }
    .reader-document-icon { width: 30px; height: 34px; }
    .reader-document-icon .ui-icon { width: 18px; }
    .reader-document-actions { gap: 4px; padding-right: 10px; }
    .reader-document-actions a { min-height: 36px; padding: 7px; font-size: 10px; }
    .reader-document-actions .ui-icon { display: none; }
    .reader-toolbar { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 9px 10px; }
    @layer base { .js [data-reader-toolbar][hidden] { display: grid !important; } }
    .reader-display-controls { grid-column: 1/-1; grid-row: 2; padding-right: 139px; gap: 6px; }
    .reader-display-controls > div:first-child { width: 55%; }
    .reader-display-controls > div:last-child { width: 45%; }
    .reader-toolbar select { font-size: 11px; padding-left: 7px; padding-right: 17px; }
    .reader-tool-actions { grid-column: 1/-1; grid-row: 2; justify-self: end; gap: 1px; border: 0; padding: 0; }
    .reader-tool-actions .reader-tool { min-width: 32px; width: 32px; height: 40px; padding: 7px; }
    .reader-statusbar { padding: 5px 12px; gap: 10px; }
    .reader-statusbar progress { width: 70px; }
    .reader-grid { margin-top: 15px; gap: 16px; }
    .reader-session { padding-inline: 5px; }
    .reader-content { padding: 22px 20px; border-radius: 2px; }
    .reader-page-header { font-size: 8px; margin-bottom: 28px; }
    .reader-meta { gap: 8px; margin-bottom: 18px; }
    .reader-meta .eyebrow, .reader-meta > p:last-child { font-size: 9px; }
    .book-article { font-size: 16px; }
    .book-article h1 { font-size: 30px; }
    .book-article :is(h1, h2, h3, h4) { scroll-margin-top: 330px; }
    .book-reader[data-text-size="small"] .book-article { font-size: 15px; }
    .book-reader[data-text-size="large"] .book-article { font-size: 19px; }
    .book-reader[data-text-size="extra"] .book-article { font-size: 21px; }
    .reader-focused .book-article :is(h1, h2, h3, h4) { scroll-margin-top: 260px; }
  }

@media screen {
    .js .book-reading-page { --reader-header-height: 94px; height: 100dvh; overflow: hidden; }
    .js .book-reading-page .site-footer { display: none; }
    .js .book-reading-page .book-reader { position: fixed; inset: var(--reader-header-height) 0 0; padding: 0; min-height: 0; }
    .js .book-reading-page .reader-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: 100%; max-width: none; height: 100%; margin: 0; }
    .js .book-reading-page .book-breadcrumbs { grid-row: 1; margin: 0; padding: 8px 16px; font-size: 10px; }
    .js .book-reading-page .reader-deskbar { grid-row: 2; position: relative; top: auto; border-inline: 0; border-radius: 0; box-shadow: none; }
    .js .book-reading-page .reader-grid { grid-row: 3; position: relative; min-height: 0; height: 100%; margin: 0; gap: 0; align-items: stretch; }
    .js .book-reading-page .reader-sidebar { position: static; min-height: 0; height: 100%; max-height: none; padding: 12px 8px; border-right: 1px solid #d5d9de; background: #f6f7f9; overscroll-behavior: contain; }
    .js .book-reading-page .reader-stage { width: 100%; max-width: none; min-height: 0; height: 100%; margin: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding-block: 24px; }
    .js .book-reading-page .reader-content { min-height: 100%; padding: 28px clamp(20px, 2vw, 36px); border: 0; border-bottom: 1px solid var(--reader-line); border-radius: 0; box-shadow: none; }
    .js .book-reading-page .book-article :is(h1, h2, h3, h4) { scroll-margin-top: 0; }
    .js .book-reading-page .reader-session { margin: 0; padding: 10px 24px; background: var(--reader-sheet); border-bottom: 1px solid var(--reader-line); }
    .js .book-reading-page :is(.reader-pager, .book-related-notes, .book-license-note) { margin: 24px; }
    .js .book-reading-page:is(.reader-scrolled, .reader-focused), .js.reader-navigation-hidden .book-reading-page { --reader-header-height: 0px; }
    .js .book-reading-page.reader-scrolled .site-header, .js.reader-navigation-hidden .book-reading-page .site-header { visibility: hidden; transform: translateY(-100%); }
    .js .book-reading-page:is(.reader-scrolled, .reader-focused) .book-breadcrumbs, .js.reader-navigation-hidden .book-reading-page .book-breadcrumbs { display: none; }
    @layer base { .js .reader-navigation-toggle[hidden] { display: inline-flex !important; visibility: hidden; } }
    .js .book-reading-page .reader-document-actions .reader-navigation-toggle .ui-icon { display: block; }
    @media (max-width: 980px) {
      .js .book-reading-page { --reader-header-height: 82px; }
      .js .book-reading-page .reader-sidebar { position: absolute; inset: 0 auto 0 0; z-index: 35; width: min(320px, calc(100% - 44px)); box-shadow: 12px 0 30px #25334d26; }
    }
    @media (max-width: 520px) {
      .js .book-reading-page { --reader-header-height: 74px; }
      .js .book-reading-page .reader-content { padding: 22px 18px; }
      .js .book-reading-page :is(.reader-pager, .book-related-notes, .book-license-note) { margin: 18px; }
    }
  }

@media print {
  @page { margin: 18mm; }
  body:has(.book-reader) { background: white; color: black; }
  body:has(.book-reader) :is(.site-header, .site-footer, .skip-link, .book-breadcrumbs, .reader-deskbar, .reader-sidebar, .reader-session, .reader-pager, .book-related-notes, .book-license-note) { display: none !important; }
  .book-reader { padding: 0; background: white !important; }
  .reader-shell, .reader-stage { width: 100%; max-width: none; }
  .reader-grid { display: block; margin: 0; }
  .reader-content { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: white !important; color: black !important; }
  .book-reader .book-article { font-size: 11pt !important; line-height: 1.6; }
  .book-reader .book-article :is(h1, h2, h3, h4, a, code) { color: black !important; }
  .book-article :is(h1, h2, h3, h4) { break-after: avoid; }
  .book-article :is(pre, img, tr) { break-inside: avoid; }
  .book-article pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f4f4 !important; }
  .book-article pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .book-table { overflow: visible; }
  .book-article table { min-width: 0; }
  .book-article th { color: black !important; background: #eee !important; }
  .reader-page-header, .reader-page-footer, .reader-meta > p:last-child, .reader-meta .eyebrow { color: #555 !important; }
}
