/* Scoped to the semantic reader: no global styles and no page-image layout. */
.textbook-semantic{--textbook-semantic-blue:#0a3c82;box-sizing:border-box;min-width:0;max-width:100%;background:#fff;color:#18212f;font-family:inherit;font-size:17px;line-height:1.8;text-align:left;overflow-wrap:anywhere}
.textbook-semantic *{box-sizing:border-box}
.textbook-semantic [data-source-highlight=yellow],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-highlight=yellow]{background-color:#fff09b!important}
.textbook-semantic-heading [data-source-highlight=yellow]{padding:3px 8px;border:1px solid #b8ae9b;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.textbook-coordinate-diagram{max-width:100%;margin:14px 0;color:#263039;overflow-x:auto;overscroll-behavior-x:contain}
.textbook-coordinate-diagram-canvas{position:relative;width:100%;min-width:240px;max-width:420px;margin:0 auto;font-size:16px;line-height:1.3}
.textbook-coordinate-diagram-canvas>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.textbook-coordinate-diagram-label{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;text-align:center;padding:2px;background:inherit}
.textbook-coordinate-diagram-label .textbook-source-bold{color:inherit}
.textbook-coordinate-diagram-highlight{background:#ffd052;border-radius:3px;padding:3px 6px}
.textbook-coordinate-diagram-caption{font-size:16px;line-height:1.5;margin:8px 0;text-align:center}
.textbook-coordinate-diagram-dot{position:absolute;width:7px;height:7px;border-radius:50%;background:#241e1c;transform:translate(-50%,-50%)}
.textbook-coordinate-diagram-box{width:52%;height:16%;min-width:80px;min-height:32px;padding:5px 12px;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.textbook-coordinate-diagram-circle{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.textbook-semantic-meta{margin:0 0 22px;padding:0 0 16px;border-bottom:1px solid #d6e0ec}
.textbook-semantic-reference{font-size:16px;font-weight:600;margin:0 0 4px}
.textbook-semantic-verification,.textbook-semantic-block-warning{font-size:16px;line-height:1.6;margin:4px 0;color:#6c4c0c}
.textbook-semantic-verification[data-review-status=verified],.textbook-semantic-block-warning[data-review-status=verified]{color:#245735}
.textbook-semantic-content{min-width:0;max-width:100%;display:block}
.textbook-semantic-heading{font-size:22px;line-height:1.6;font-weight:400;margin:26px 0 12px;white-space:pre-wrap}
.textbook-semantic h1.textbook-semantic-heading{font-size:28px}
.textbook-semantic h2.textbook-semantic-heading{font-size:24px}
.textbook-semantic h4.textbook-semantic-heading,.textbook-semantic h5.textbook-semantic-heading,.textbook-semantic h6.textbook-semantic-heading{font-size:20px}
.textbook-semantic-text{font-size:17px;line-height:1.8;font-weight:400;margin:14px 0;white-space:pre-wrap}
.textbook-semantic-source-quote{display:block;padding:10px 12px;margin:8px 0;border:1px solid #7a8da4;white-space:pre-wrap}
.textbook-semantic .textbook-source-bold{color:var(--textbook-semantic-blue);font-weight:800}
.textbook-semantic-table-group{min-width:0;max-width:100%;margin:0;padding:0}
.textbook-semantic-table-scroll{min-width:0;max-width:100%;width:100%;margin:18px 0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid #b8c8da;border-radius:8px;background:#fff}
.textbook-semantic-table{display:table;width:100%;max-width:none;table-layout:auto;border-collapse:collapse;font-family:inherit;font-size:17px;line-height:1.8;background:#fff;color:#18212f;direction:ltr}
.textbook-semantic-table tbody{display:table-row-group}
.textbook-semantic-table tr{display:table-row}
.textbook-semantic-table td,.textbook-semantic-table th{display:table-cell;position:static;min-width:0;padding:14px 16px;border:1px solid #b8c8da;vertical-align:top;white-space:pre-wrap;text-align:left;font-size:17px;line-height:1.8;font-weight:400;background:#fff;color:#18212f;overflow-wrap:anywhere}
.textbook-semantic-table th{background:#f1f5fb}
.textbook-semantic-table caption{padding:12px 16px;text-align:left;font-size:17px;font-weight:400;white-space:pre-wrap}
.textbook-semantic-table[data-source-empty-response] td:nth-child(2){white-space:normal}
.textbook-source-illustrated-table{table-layout:fixed}
.textbook-source-illustrated-table .textbook-source-illustration-cell{border-left:0;padding:10px;vertical-align:middle}
.textbook-source-illustration-cell .textbook-semantic-table-scroll{margin:0;border:0;border-radius:0;overflow:visible}
.textbook-source-illustration-cell .textbook-source-gallery{min-width:0!important;table-layout:fixed}
.textbook-source-illustration-cell .textbook-source-gallery td{border:0;padding:8px 0}
.textbook-source-illustration-cell .textbook-semantic-block-warning{display:none}
.textbook-source-gallery{table-layout:fixed}
.textbook-source-gallery td{vertical-align:top}
.textbook-semantic[data-pdf-page="21"] .textbook-source-gallery .textbook-figure-group-canvas,
.textbook-semantic[data-pdf-page="54"] .textbook-source-gallery .textbook-figure-group-canvas{width:min(100%,calc(300px * var(--source-aspect-ratio)))!important}
@media(max-width:600px){.textbook-semantic[data-pdf-page="21"] .textbook-source-gallery .textbook-figure-group-canvas,.textbook-semantic[data-pdf-page="54"] .textbook-source-gallery .textbook-figure-group-canvas{width:min(100%,calc(220px * var(--source-aspect-ratio)))!important}}
.textbook-semantic-figure{margin:20px 0;padding:0;max-width:100%;min-width:0}
.textbook-semantic-figure img{display:block;max-width:100%;height:auto;margin:0 auto}
.textbook-semantic-figure figcaption,.textbook-semantic-figure-status,.textbook-semantic-figure-context{font-size:16px;line-height:1.6;white-space:pre-wrap}
.textbook-semantic-exercises{margin:28px 0 0;padding:18px;border:1px solid #b8c8da;border-radius:10px;background:#f8faff}
.textbook-semantic-exercises h2{font-size:21px;line-height:1.6;margin:0 0 10px}
.textbook-semantic-exercise-help,.textbook-semantic-exercise-source,.textbook-semantic-answer-unverified{font-size:16px;line-height:1.6;margin:8px 0;color:#475569}
.textbook-semantic-exercise+.textbook-semantic-exercise{margin-top:20px;padding-top:16px;border-top:1px solid #c8d4e3}
.textbook-semantic-prompt,.textbook-semantic-answer p{font-size:17px;line-height:1.8;white-space:pre-wrap;margin:10px 0}
.textbook-semantic-answer summary{min-height:44px;cursor:pointer;padding:10px 0;color:var(--textbook-semantic-blue);font-size:16px;font-weight:600}
.textbook-semantic :focus-visible{outline:3px solid var(--textbook-semantic-blue);outline-offset:3px}
@media(max-width:600px){.textbook-semantic-table td,.textbook-semantic-table th{padding:12px}.textbook-semantic-exercises{padding:14px}.textbook-semantic-heading{margin-top:22px}}
@media(prefers-reduced-motion:reduce){.textbook-semantic *{scroll-behavior:auto}}
/* Small source diagrams use native selectable text and real table spans. */
.textbook-semantic .textbook-source-diagram td,.textbook-semantic .textbook-source-diagram th{text-align:center;vertical-align:middle}
.textbook-semantic .textbook-source-shading-yellow{background:#fff09b}
.textbook-semantic .textbook-source-shading-green{background:#d5f2b8}
.textbook-semantic .textbook-source-shading-blue{background:#c3ecf9}
.textbook-semantic .textbook-source-shading-peach{background:#f5d5bf}
.textbook-semantic .textbook-source-shading-gray{background:#e2e6e7;color:#1c2b33}
.textbook-semantic .textbook-source-range-bar{background:linear-gradient(90deg,#27a9bc,#d4faf7,#27a9bc);min-width:48px}
.textbook-source-timeline-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #b8c8da;border-radius:8px;margin:18px 0}
.textbook-source-timeline{min-width:1000px;padding:56px 80px 8px}
.textbook-source-timeline-axis{position:relative;margin:0;border-top:1px solid #1f2937}
.textbook-source-timeline-band{position:absolute;top:0;height:15px;border-left:1px solid #1f2937;border-right:1px solid #1f2937}
.textbook-source-timeline-band-label{position:absolute;left:0;right:0;bottom:24px;text-align:center;line-height:1.7}
.textbook-source-timeline-events{list-style:none;margin:0;padding:0}
.textbook-source-timeline-event{position:absolute;top:42px;width:126px;transform:translateX(-50%);text-align:center;white-space:pre-wrap;font-size:17px;line-height:1.8}
.textbook-source-timeline-event::before{content:"";position:absolute;bottom:calc(100% + 5px);left:50%;height:22px;border-left:1px solid #1f2937}
.textbook-source-timeline-boundary{position:absolute;transform:translateX(-50%);width:140px;text-align:center;line-height:1.7;white-space:pre-wrap}

.textbook-semantic .textbook-source-tree{text-align:left;font-family:ui-monospace,monospace;white-space:pre}
.textbook-source-diagram-hint{font-size:15px;line-height:1.6;color:#475569;margin:10px 12px}
.textbook-semantic .textbook-source-bypass-down,.textbook-semantic .textbook-source-bypass-up{position:relative}
.textbook-source-bypass-down::before,.textbook-source-bypass-up::before{content:"";position:absolute;top:15%;bottom:15%;width:35%;border-top:1px solid #334155;border-bottom:1px solid #334155;pointer-events:none}
.textbook-source-bypass-down::before{right:0;border-left:1px solid #334155}
.textbook-source-bypass-up::before{left:0;border-right:1px solid #334155}
.textbook-source-bypass-down::after,.textbook-source-bypass-up::after{content:"";position:absolute;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;pointer-events:none}
.textbook-source-bypass-down::after{right:0;bottom:calc(15% - 4px);border-left:8px solid #334155}
.textbook-source-bypass-up::after{left:0;top:calc(15% - 4px);border-right:8px solid #334155}

.textbook-semantic .textbook-source-inset-gray{background:#f0f0f0}

.textbook-semantic .textbook-source-shading-pink{background:#f1d4f0}
.textbook-source-timeline-has-top-boundaries{padding-top:92px}
.textbook-source-timeline-top-boundary{position:absolute;top:-78px;width:140px;transform:translateX(-50%);text-align:center;white-space:pre-wrap;line-height:1.6}

.textbook-source-section-number{display:inline-block;min-width:1.3em;height:1.5em;text-align:center;line-height:1.4;border:1px solid #0a3c82;color:#0a3c82;margin-right:.3em}
.textbook-reader-page{scroll-margin-top:90px;padding-top:20px;margin-top:28px;border-top:1px solid #d6e0ec}
.textbook-reader-page [data-source-block]{scroll-margin-top:100px}
.textbook-reader-page .textbook-semantic-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:12px;padding-bottom:6px}
.textbook-reader-page .textbook-semantic-reference,.textbook-reader-page .textbook-semantic-verification,.textbook-reader-page .textbook-semantic-block-warning{font-size:12px;line-height:1.5;margin:2px 0}
.textbook-reader-page .textbook-semantic-block-warning[data-review-status=verified]{display:none}
.textbook-supplement-links{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0;padding-top:14px;border-top:1px solid #d6e0ec;font-size:16px}.textbook-supplement-links a{color:#0a3c82;min-height:44px;display:inline-flex;align-items:center}

.first-era-legacy{margin:20px 0;padding:12px;border:1px solid #cbd5e1;border-radius:8px}.first-era-legacy summary{min-height:32px;cursor:pointer}.first-era-legacy nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:10px}.first-era-legacy a{color:#0a3c82;min-height:44px;display:inline-flex;align-items:center;font-size:16px}
.textbook-semantic-coverage{font-size:13px!important;margin:8px 0!important}.textbook-semantic-library>.textbook-status{font-size:13px;margin:6px 0}.textbook-reader-page:first-child{margin-top:12px;padding-top:8px}
/* Original rank chart labels appear once at the top for screen reading. */
.textbook-semantic-table thead{display:table-header-group}
.textbook-source-rank-chart{table-layout:fixed}
.textbook-semantic .textbook-source-rank-chart td,.textbook-semantic .textbook-source-rank-chart th{padding:6px;line-height:1.6;border:1px solid #354f56;vertical-align:middle;text-align:center}
.textbook-semantic .textbook-source-rank-chart thead th{background:#c3e7eb;font-weight:700}
.textbook-semantic .textbook-source-rank-chart td.textbook-source-range-bar{position:relative;background:#e3f2e9}
.textbook-source-range-fill{position:absolute;inset:0 22%;display:block;background:linear-gradient(90deg,#159db1 0%,#6dd7df 30%,#edffff 53%,#50c2d1 75%,#168d9d 100%);border-left:1px solid #3192a1;border-right:1px solid #3192a1;pointer-events:none}
.textbook-semantic .textbook-source-rank-chart .textbook-source-shading-green{background:#e3f2e9}
.textbook-semantic .textbook-source-rank-chart .textbook-rank-range-cell{position:relative}
.textbook-rank-range-guide{position:absolute;left:0;right:0;border-top:1px dashed #354f56;pointer-events:none;z-index:0}
.textbook-source-range-fill{z-index:1}
.textbook-semantic .textbook-source-rank-chart .textbook-rank-boundary-end{border-bottom-style:dashed}

/* Edition selection and source-original comparison belong to the authenticated reader. */
.textbook-edition-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 16px;padding:12px 0;border-bottom:1px solid #d6dfe6}.textbook-edition-controls label{display:grid;gap:6px;font-size:14px;font-weight:700;max-width:100%}.textbook-edition-controls select{min-height:44px;max-width:100%;font:inherit;padding:8px 10px;border:1px solid #91a4b6;border-radius:8px;background:#fff;color:#18212f}.textbook-original-dialog{width:min(1120px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:0;border:1px solid #879eaf;border-radius:14px;background:#fff;color:#18212f;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}.textbook-original-dialog::backdrop{background:rgba(7,17,24,.72)}.textbook-original-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:#f0f5f8;border-bottom:1px solid #ccd7df}.textbook-original-head h2{font-size:18px;line-height:1.5;margin:0}.textbook-original-head button{font:inherit;min-height:44px;padding:8px 14px;flex-shrink:0}.textbook-original-body{min-width:0}.textbook-original-body>.private-textbook{border:0;border-radius:0}.textbook-reader-page>button{margin:8px 0 12px}.textbook-original-dialog :focus-visible{outline:3px solid #0757a6;outline-offset:3px}
@media(max-width:480px){.textbook-edition-controls label,.textbook-edition-controls select{width:100%}.textbook-original-head{padding:10px}.textbook-original-head h2{font-size:16px}}

/* Reading surfaces keep the existing study sans-serif stack and source colours.
   The game chrome stays outside this boundary. */
html body :is(#privateTextbook,.textbook-original-dialog){--paper:#fff;--ink:#1c2b33;--muted:#526674;--line:#ccd9df;--green:#0757a6;--blue:#0757a6;background:#fff!important;color:#1c2b33!important}
html body :is(#privateTextbook,.textbook-original-dialog),html body :is(#privateTextbook,.textbook-original-dialog) *{font-family:Arial,"Helvetica Neue","Apple SD Gothic Neo","Noto Sans KR",sans-serif!important;letter-spacing:normal}
html body :is(#privateTextbook,.textbook-original-dialog) :where(div,section,article,aside,nav,header,footer,figure,figcaption,details,summary,table,th,td){background-color:inherit!important;background-image:none!important;border-color:#ccd9df!important}
html body :is(#privateTextbook,.textbook-original-dialog) :where(button,input,textarea,select,option){background-color:#fff!important;color:#1c2b33!important;border-color:#94a9b5!important;accent-color:#0757a6;caret-color:#0757a6}
html body :is(#privateTextbook,.textbook-original-dialog) :where(button:hover,button[aria-selected=true],a:hover){background-color:#eef5fa!important;color:#0757a6!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-semantic-table th{background-color:#f1f5fb!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-bold{color:#0a3c82!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-shading-yellow{background-color:#fff09b!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-label{background-color:var(--hn-paper,#fff)!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-highlight{background-color:#ffd052!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-canvas>.textbook-coordinate-diagram-label{background-color:inherit!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-canvas>.textbook-coordinate-diagram-highlight{background-color:#ffd052!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-canvas>.textbook-coordinate-diagram-shading-peach{background-color:#f5c4a8!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-canvas>.textbook-coordinate-diagram-shading-green{background-color:#b3e397!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-canvas>.textbook-coordinate-diagram-shading-blue{background-color:#83d7f0!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-surface-gray{background-color:#f4f4f4!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-canvas>.textbook-coordinate-diagram-circle{background-color:#241e1c!important;color:#fff!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-coordinate-diagram-circle :is(strong,span){color:#fff!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-shading-green{background-color:#d5f2b8!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-shading-blue{background-color:#c3ecf9!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-shading-peach{background-color:#f5d5bf!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-shading-pink{background-color:#f1d4f0!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-inset-gray{background-color:#f0f0f0!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-rank-chart thead th{background-color:#c3e7eb!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-rank-chart :is(.textbook-source-shading-green,td.textbook-source-range-bar){background-color:#e3f2e9!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-inline-feedback{color:#9b332a!important}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-inline-feedback[data-result=match]{color:#12603c!important}
html body #privateTextbook .textbook-semantic-library>.textbook-controls[hidden],html body #privateTextbook .textbook-original-action[hidden]{display:none!important}
html body #app:has(#privateTextbook) .module-head h1{font-family:Arial,"Apple SD Gothic Neo","Noto Sans KR",sans-serif!important;font-size:clamp(22px,3vw,28px);line-height:1.35;letter-spacing:-.02em}
html body #app:has(#privateTextbook) .module-head>p{font-family:Arial,"Apple SD Gothic Neo","Noto Sans KR",sans-serif!important;font-size:14px;line-height:1.6}
html body #app:has(#privateTextbook) #back[data-header-parent-control],html body #app:has(#privateTextbook) #mobileBack[data-header-parent-control]{display:none!important}
@media(max-width:700px){html body #app.digivice-v2:has(#privateTextbook){padding-inline:max(8px,env(safe-area-inset-left,0px)) max(8px,env(safe-area-inset-right,0px))!important}}
html body :is(#privateTextbook,.textbook-original-dialog) :is(button,select,summary){min-height:44px!important;box-sizing:border-box}
html body :is(#privateTextbook,.textbook-original-dialog) .textbook-source-quiz-input{min-height:44px!important}
/* WebKit's native menulist face otherwise clamps the edition picker to one text line. */
html body #app #privateTextbook select,html body dialog.textbook-original-dialog .private-textbook select{height:46px!important;min-height:44px!important;appearance:none;-webkit-appearance:none;padding:8px 32px 8px 10px!important;font-size:16px!important;line-height:1.4;background-image:linear-gradient(45deg,transparent 50%,#426475 50%),linear-gradient(135deg,#426475 50%,transparent 50%)!important;background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
html body #app #privateTextbook .textbook-status,html body dialog.textbook-original-dialog .textbook-status{color:#34536a!important}
/* Only source-verified, same-PDF span metadata can emit these attributes. */
.textbook-semantic [data-source-ink=default],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-ink=default]{color:#1c2b33!important}
.textbook-semantic [data-source-ink=muted],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-ink=muted]{color:#586169!important}
.textbook-semantic [data-source-ink=red],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-ink=red]{color:#b42318!important}
.textbook-semantic [data-source-ink=green],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-ink=green]{color:#216e39!important}
.textbook-semantic [data-source-ink=blue],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-ink=blue]{color:#0070a3!important}
.textbook-semantic [data-source-ink=orange],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-ink=orange]{color:#b34b00!important}
.textbook-semantic [data-source-underline]{text-decoration-line:underline;text-decoration-thickness:.08em;text-underline-offset:.14em}
.textbook-semantic [data-source-highlight=green],html body :is(#privateTextbook,.textbook-original-dialog) [data-source-highlight=green]{background-color:#d5f2b8!important}
.textbook-semantic [data-source-highlight=green]:not([data-source-ink]),html body :is(#privateTextbook,.textbook-original-dialog) [data-source-highlight=green]:not([data-source-ink]){color:#1c2b33!important}

/* History learning UI uses quiet parchment; source images and audited ink/highlights keep their own colours. */
html body #privateTextbook{--paper:#eef0e4;--line:#bdc8b4;background-color:#eef0e4!important}
html body #privateTextbook :where(button,input,textarea,select,option){background-color:#f7f5e9!important}
html body #privateTextbook :where(button:hover,button[aria-selected=true],a:hover){background-color:#dce6d3!important}
html body #privateTextbook :where(input,textarea,button,select):focus-visible{outline:3px solid #365c35;outline-offset:3px}
html body #privateTextbook :is(.textbook-semantic-meta,.textbook-semantic-block-warning,.textbook-semantic-coverage)[hidden]{display:none!important}
/* Reflow only authenticated, source-linked annotations, never PDF/image pixels. */
#privateTextbook .textbook-semantic-row-annotation{margin:10px 0 0;padding:8px 10px;border-left:3px solid #718c62;border-radius:4px;white-space:normal}
#privateTextbook .textbook-semantic-row-annotation[data-source-block]{scroll-margin-top:90px}
#privateTextbook .textbook-semantic-row-annotation.textbook-semantic-table-group{width:min(100%,340px);max-width:100%;padding:0;border:0}
#privateTextbook .textbook-semantic-row-annotation .textbook-semantic-table{width:100%;min-width:0!important;table-layout:fixed}
#privateTextbook .textbook-semantic-row-annotation .textbook-semantic-table :is(td,th){padding:5px 8px;line-height:1.5;min-height:0;height:auto;font-size:16px}
html[data-hanq-theme] body #app .history-home-hero,html[data-hanq-theme] body #app .history-home-hero .hero-copy{border:0!important;box-shadow:none!important}

/* Source-verified branch diagrams keep real nesting at narrow reading widths. */
.textbook-semantic .textbook-source-tree-graph-cell{white-space:normal;font-family:inherit;min-width:0}
.textbook-source-branch-table{table-layout:fixed}.textbook-source-branch-graph{width:min(100%,420px);margin-inline:auto;min-width:0;max-width:100%;font-size:17px;line-height:1.5;text-align:center;color:#243629}
.textbook-source-branch-graph .textbook-source-branch-list{display:grid;grid-template-columns:repeat(var(--source-branch-count),minmax(0,1fr));list-style:none;margin:0;padding:0;gap:8px;min-width:0}
.textbook-source-branch-graph li{position:relative;min-width:0;margin:0;padding:0;text-align:center}
.textbook-source-branch-label{display:inline-block;max-width:100%;padding:5px 4px;border:1px solid #91a48b;border-radius:7px;background:#f4f6ed;color:#243629;white-space:normal;word-break:keep-all;overflow-wrap:normal}
.textbook-source-branch-graph strong.textbook-source-branch-label{font-weight:750}
.textbook-source-branch-context{font-size:16px;font-weight:650;margin:0 0 10px}
.textbook-source-branch-cause{font-size:15px;line-height:1.45;margin:8px 0 0;word-break:keep-all;overflow-wrap:normal}
.textbook-source-branch-list .textbook-source-branch-list{position:relative;padding-top:20px;margin-top:8px}
.textbook-source-branch-list .textbook-source-branch-list::before{content:"";position:absolute;left:50%;top:-8px;height:18px;border-left:1px solid #657f61}
.textbook-source-branch-list .textbook-source-branch-list>li::before{content:"";position:absolute;top:-10px;left:calc(50% - 4px);right:calc(-50% - 4px);border-top:1px solid #657f61}
.textbook-source-branch-list .textbook-source-branch-list>li:last-child::before{display:none}
.textbook-source-branch-list .textbook-source-branch-list>li::after{content:"";position:absolute;top:-10px;left:50%;height:10px;border-left:1px solid #657f61}
.textbook-source-branch-transcript{margin-top:14px;text-align:left;font-family:inherit;white-space:normal}
.textbook-source-branch-transcript summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;color:#435b42;text-decoration:underline;text-underline-offset:3px}
.textbook-source-branch-transcript>div{white-space:pre;font-family:ui-monospace,monospace;font-size:15px;overflow-x:auto;max-width:100%}
@media(max-width:600px){.textbook-source-branch-graph{font-size:16px}.textbook-source-branch-graph .textbook-source-branch-list{gap:6px}.textbook-source-branch-label{padding:5px 2px}.textbook-source-branch-cause{font-size:14px}}

.textbook-answer-scroll-hint{margin:8px 0;font-size:14px;line-height:1.5;font-weight:600;color:#4b473d;word-break:keep-all;overflow-wrap:anywhere}
