/* Continuous textbook presentation across Neo Summary. */
body:has(#tab-book-summary .neo-summary-pane.active.ns-editorial-chapter) main.container { max-width:1360px!important; }
#tab-book-summary:has(.ns-editorial-chapter.active) { padding-top:12px; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-study-hero { padding:0 0 10px; margin:0; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-study-hero h2 { font-size:23px; margin:0; letter-spacing:-.025em; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-study-hero h2 span { font-size:inherit; display:inline; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-eyebrow,
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-study-hero p,
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-study-path,
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-library-nav > p { display:none; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-library-nav { border:0; border-block:1px solid #d7dfe2; border-radius:0; padding:6px 0; gap:10px; background:transparent; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-specialty-field { display:flex; align-items:center; gap:12px; flex-basis:360px; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-specialty-field label { white-space:nowrap; }
#tab-book-summary:has(.ns-editorial-chapter.active) #ns-specialty-select { min-height:38px; padding-block:6px; font-size:14px; }
#tab-book-summary:has(.ns-editorial-chapter.active) .neo-summary-layout { gap:8px!important; }
#tab-book-summary:has(.ns-editorial-chapter.active) .neo-summary-content-pane { gap:10px; padding:0!important; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-search-wrap { min-height:40px; padding:6px 10px!important; border-radius:3px!important; }
#tab-book-summary:has(.ns-editorial-chapter.active) #neo-summary-search { font-size:14px!important; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-reading-tools { min-height:40px; }
#tab-book-summary:has(.ns-editorial-chapter.active) .ns-reading-tools button { min-height:40px; padding:6px 10px; border-radius:3px; }
#tab-book-summary .ns-editorial-chapter { --ed-ink:#26343d; --ed-muted:#52636d; --ed-line:#cbd5db; color:var(--ed-ink); background:#fff; padding:18px 24px; border-top:2px solid #456679; }
#tab-book-summary .ns-editorial-chapter > h3[data-chaptered] { background:transparent!important; color:var(--ed-ink)!important; padding:0 0 12px!important; border-radius:0!important; border-bottom:1px solid var(--ed-line)!important; margin:0 0 8px!important; gap:10px!important; }
#tab-book-summary .ns-editorial-chapter > h3[data-chaptered] span { color:var(--ed-muted)!important; }
#tab-book-summary .ns-editorial-chapter > h3[data-chaptered] > div:first-child > span:last-child { font-size:25px!important; color:var(--ed-ink)!important; }
#tab-book-summary .ns-editorial-chapter > h3[data-chaptered] b { color:#356277!important; font-size:14px!important; }
#tab-book-summary .ns-editorial-chapter .ns-group-index { border:0!important; border-bottom:1px solid var(--ed-line)!important; border-radius:0!important; padding:2px 0 8px!important; margin:0 0 12px!important; background:transparent!important; }
#tab-book-summary .ns-editorial-chapter .ns-group-index a { border:0!important; border-left:2px solid #d5dfe4!important; border-radius:0!important; padding:6px 10px!important; min-height:40px; background:transparent!important; }
#tab-book-summary .ns-editorial-chapter .ns-group-hdr { margin:20px 0 8px!important; padding:5px 0!important; border-bottom:1px solid #8097a4; }
#tab-book-summary .ns-editorial-chapter .ns-group-hdr > span:nth-child(2) { font-size:19px!important; }
#tab-book-summary .ns-editorial-chapter .ns-chapter-practice { margin:0 0 10px!important; }
#tab-book-summary .ns-editorial-topic { border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; overflow:visible!important; margin:0 0 22px!important; }
#tab-book-summary .ns-editorial-topic, #tab-book-summary .ns-editorial-topic :not(i):not([class*="fa-"]) { font-family:Arial,Helvetica,sans-serif!important; }
#tab-book-summary .ns-editorial-topic .ns-topic-heading { margin:0; font-size:17px; }
#tab-book-summary .ns-editorial-topic .nst-header { min-height:44px; padding:8px 0!important; background:transparent!important; border-bottom:1px solid #d6dfe3; gap:8px; }
#tab-book-summary .ns-editorial-topic .nst-label { gap:8px!important; }
#tab-book-summary .ns-editorial-topic .nst-chapter-num { background:transparent; padding:0; font-size:11px!important; color:#526975!important; }
#tab-book-summary .ns-editorial-topic .nst-chapter-title { font-size:17px!important; line-height:1.35!important; color:#253c4a!important; }
#tab-book-summary .ns-editorial-topic .nst-body { border:0!important; padding-top:10px; }
#tab-book-summary .ns-editorial-topic .nst-lead { display:block; border:0; }
#tab-book-summary .ns-editorial-topic .nst-reading-spread { display:block!important; border:0; }
#tab-book-summary .ns-editorial-topic .nst-reading-column { padding:0!important; border:0!important; background:transparent!important; margin:0 0 12px; font-size:15px!important; line-height:1.55!important; max-width:none!important; }
#tab-book-summary .ns-editorial-topic .ns-subheading { font-size:14px; line-height:1.4; font-weight:700; color:#314d5d; margin:0 0 5px; break-after:avoid; }
#tab-book-summary .ns-editorial-topic .ns-subheading i { display:none; }
#tab-book-summary .ns-editorial-topic .nst-reading-key-points ul { list-style-type:square; margin:4px 0 0 17px!important; padding:0; max-width:none!important; font-size:15px!important; line-height:1.55!important; }
#tab-book-summary .ns-editorial-topic .nst-reading-key-points li { padding:0 0 3px; margin:0!important; break-inside:avoid; }
#tab-book-summary .ns-editorial-topic .nst-reading-overview p { margin:0; font-size:15px; line-height:1.6; }
#tab-book-summary .ns-editorial-topic .nst-figures { display:grid!important; grid-template-columns:minmax(0,1fr); gap:12px!important; margin:0; padding:0!important; border:0!important; background:transparent; min-width:0; }
#tab-book-summary .ns-editorial-topic .nst-figure { margin:0!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; max-width:100%!important; min-width:0; }
#tab-book-summary .ns-editorial-topic .nst-figure-img { display:block; width:auto!important; max-width:100%!important; height:auto!important; max-height:560px!important; object-fit:contain; margin:0 auto; border:0!important; border-radius:0!important; }
#tab-book-summary .ns-editorial-topic figcaption { margin:5px 0 0!important; font-size:12px!important; line-height:1.45!important; text-align:left!important; color:var(--ed-muted)!important; max-width:none!important; }
#tab-book-summary .ns-editorial-topic .nst-fig-num { color:#34566a; font-weight:700; }
#tab-book-summary .ns-editorial-topic .nst-table-wrap { min-width:0; overflow-x:auto; margin:12px 0 0; border:0; border-radius:0; }
#tab-book-summary .ns-editorial-topic .nst-table { width:100%; min-width:560px; border-collapse:collapse; font-size:14px!important; border:1px solid var(--ed-line); }
#tab-book-summary .ns-editorial-topic .ns-table-caption { caption-side:top; text-align:left; padding:6px 8px; background:#e8eef2; color:#304a5a; font-size:12px; line-height:1.45; font-weight:700; border-top:2px solid #718e9f; }
#tab-book-summary .ns-editorial-topic .nst-table th { padding:7px 9px!important; background:#edf1f4!important; color:#344b59!important; font-size:12px!important; text-transform:none!important; letter-spacing:0!important; border:1px solid var(--ed-line); }
#tab-book-summary .ns-editorial-topic .nst-table td { padding:7px 9px!important; line-height:1.5!important; font-size:14px!important; border:1px solid #dce3e7; vertical-align:top; }
#tab-book-summary .ns-editorial-topic .nst-table tr { background:white!important; }
#tab-book-summary .ns-editorial-topic .nst-table tr:nth-child(even) { background:#f8fafb!important; }
#tab-book-summary .ns-editorial-topic .ns-references { border-top:1px solid #dce3e7; margin-top:8px; font-size:12px; color:#586974; }
#tab-book-summary .ns-editorial-topic .ns-references > summary { padding:8px 0; cursor:pointer; min-height:36px; font-weight:600; }
#tab-book-summary .ns-editorial-topic .nst-chapter-refs { padding:0 0 8px!important; border:0!important; background:transparent!important; }
#tab-book-summary .ns-editorial-topic .nst-algo { margin-top:12px; border-top:1px solid #cbd5db!important; background:transparent!important; }
#tab-book-summary .ns-editorial-topic .nst-algo > div, #tab-book-summary .ns-editorial-topic .nst-algo > ol { padding-left:0!important; padding-right:0!important; }
#tab-book-summary .ns-editorial-topic .ns-editorial-flow { display:block; }
@media(min-width:1000px) {
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="text-columns"] .nst-reading-spread { columns:2; column-gap:28px; column-rule:1px solid #e0e6e9; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="text-columns"] .nst-reading-overview { break-inside:avoid; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-aside"] .nst-lead { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:24px; align-items:start; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-lead { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:24px; align-items:start; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-figures { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-figure:first-child:last-child { grid-column:1 / -1; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-figure:first-child:nth-last-child(3) { grid-column:1 / -1; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-figures { float:right; width:46%; margin:0 0 12px 24px; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-spread::after { content:""; display:block; clear:both; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="table-aside"] .ns-editorial-flow { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:24px; align-items:start; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="table-aside"] .nst-table-wrap { margin:0; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="table-aside"] .nst-table { min-width:0; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="wide-figure"] .nst-reading-spread { columns:2; column-gap:28px; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="wide-figure"] .nst-figures { max-width:1000px; margin:4px auto 0; }
}
@media(max-width:999px) {
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-spread { display:flex!important; flex-direction:column; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-figures { order:1; }
 #tab-book-summary .ns-editorial-topic .nst-figures { max-width:760px; margin:0 auto; }
}
@media(max-width:600px) {
 #tab-book-summary .ns-editorial-chapter { padding:12px; }
 #tab-book-summary:has(.ns-editorial-chapter.active) .ns-study-hero h2 { font-size:20px; }
 #tab-book-summary:has(.ns-editorial-chapter.active) .ns-library-nav { gap:0; }
 #tab-book-summary:has(.ns-editorial-chapter.active) .ns-browse { width:auto; margin-left:0; }
 #tab-book-summary:has(.ns-editorial-chapter.active) .ns-reading-tools { flex-direction:row; margin:0 0 10px; }
 #tab-book-summary:has(.ns-editorial-chapter.active) .ns-reading-tools > span { display:none; }
 #tab-book-summary .ns-editorial-topic .nst-figure-img { max-height:70vh!important; }
 #tab-book-summary .ns-editorial-topic .nst-chapter-title { font-size:16px!important; }
}
#tab-book-summary .ns-editorial-chapter *, #tab-book-summary .ns-editorial-chapter { animation:none!important; transition:none!important; }
/* Multi-figure topics keep the first illustration alongside the discussion;
   remaining illustrations use the article width instead of unreadable thumbnails. */
#tab-book-summary .ns-editorial-topic .nst-reading-spread { background:transparent!important; }
#tab-book-summary .ns-editorial-topic .nst-table { border-radius:0!important; }
@media(min-width:1000px) {
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-lead { display:block; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .ns-inline-figure { float:right; width:48%; margin:0 0 12px 24px; display:block!important; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-spread::after { content:""; display:block; clear:both; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-lead > .nst-figures { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px!important; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-lead > .nst-figures:has(> figure:only-child) { grid-template-columns:minmax(0,1fr); max-width:760px; margin:auto; }
}
@media(max-width:999px) {
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-spread { display:flex!important; flex-direction:column; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .ns-inline-figure { order:1; margin-bottom:12px; }
}
/* Once wrapped prose passes its figure, use two readable measures rather than
   allowing long overview paragraphs to span the entire desktop sheet. */
@media(min-width:1000px) {
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-overview,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-overview { clear:both; columns:2; column-gap:28px; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-overview > .ns-subheading,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-overview > .ns-subheading { column-span:all; }
}

/* Equal editorial halves: prose never expands underneath a shorter illustration. */
@media(min-width:1000px) {
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-spread,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-spread { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:0 28px; align-items:start; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-spread > .nst-figures,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-spread > .nst-figures { float:none; width:auto; margin:0; grid-column:2; grid-row:1; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-key-points,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-key-points { grid-column:1; grid-row:1; min-width:0; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-overview,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-overview { grid-column:1 / -1; margin-top:12px; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-wrap"] .nst-reading-spread::after,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-group"] .nst-reading-spread::after { display:none; }
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="figure-aside"] .nst-lead,
 #tab-book-summary .ns-editorial-topic[data-editorial-layout="table-aside"] .ns-editorial-flow { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
}
/* Subject-led handbook: wide sheet, compact edges, and one collapsible directory. */
body:has(#tab-book-summary .neo-summary-pane.active.ns-editorial-chapter) main.container { width:95%!important; max-width:1600px!important; padding-inline:0!important; margin-inline:auto!important; }
#tab-book-summary .ns-editorial-chapter { padding:12px 16px; }
#tab-book-summary .ns-editorial-chapter .ns-subject-heading { display:block!important; font-size:21px!important; line-height:1.35; font-weight:700; letter-spacing:-.015em; color:#294858; padding:7px 0!important; margin:22px 0 10px!important; border-bottom:1px solid #9aafb9; scroll-margin-top:80px; }
#tab-book-summary .ns-editorial-topic { margin-bottom:16px!important; }
#tab-book-summary .ns-editorial-topic .nst-chapter-title { font-size:17px!important; }
#tab-book-summary .ns-editorial-topic .ns-topic-number { font-size:17px!important; color:#476575!important; font-weight:700; }
#tab-book-summary .ns-editorial-topic .ns-subheading { font-size:16px; margin-bottom:6px; }
#tab-book-summary .ns-editorial-topic .nst-header { border-bottom:1px solid #e1e7ea; }
#tab-book-summary .ns-editorial-chapter .ns-group-index { position:sticky; top:60px; z-index:8; background:#fff!important; padding:4px 0!important; }
#tab-book-summary .ns-editorial-chapter .ns-group-index > summary { min-height:36px; font-size:12px; font-weight:700; color:#456374; }
#tab-book-summary .ns-subject-directory { list-style:none; margin:0; padding:8px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 20px; max-height:55vh; overflow:auto; overscroll-behavior:contain; }
#tab-book-summary .ns-subject-directory > li { min-width:0; }
#tab-book-summary .ns-subject-directory ol { list-style:none; margin:4px 0 0 10px; padding:0; }
#tab-book-summary .ns-editorial-chapter .ns-subject-directory a { display:block; min-height:32px; padding:5px 8px!important; line-height:1.4; font-size:13px; color:#304f60; text-decoration:none; border-left:0!important; }
#tab-book-summary .ns-subject-directory > li > a { font-weight:700; }
#tab-book-summary .ns-subject-directory ol a { font-weight:400; }
#tab-book-summary .ns-mapping-review { font-size:12px; font-weight:700; color:#83540e; border-left:2px solid #b07b29; padding:6px 10px; }
@media(max-width:999px) { #tab-book-summary .ns-subject-directory { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 body:has(#tab-book-summary .neo-summary-pane.active.ns-editorial-chapter) main.container { width:96%!important; }
 #tab-book-summary .ns-editorial-chapter { padding:10px; }
 #tab-book-summary .ns-subject-directory { grid-template-columns:minmax(0,1fr); }
 #tab-book-summary .ns-editorial-chapter .ns-subject-directory a { min-height:44px; }
 #tab-book-summary .ns-editorial-chapter .ns-subject-heading { font-size:20px!important; }
}
/* Search retains subject context while removing empty subject sections. */
#tab-book-summary .ns-editorial-chapter.ns-is-searching .ns-medical-subject:not([hidden]) > .ns-subject-heading { display:block!important; }
#tab-book-summary .ns-medical-subject[hidden] { display:none!important; }

/* Mnemonics remain in their clinical topic, in two independent equal halves. */
#tab-book-summary .ns-learning-aids { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:20px 0; }
#tab-book-summary .ns-learning-aid { min-width:0; padding:16px 18px; border:1px solid #dce5e9; border-top:3px solid #587e89; background:#fcfdfd; border-radius:4px; color:#304b59; overflow-wrap:anywhere; }
#tab-book-summary .ns-aid-label { font-size:10px; text-transform:uppercase; letter-spacing:.1em; font-weight:700; color:#607b86; margin-bottom:6px; }
#tab-book-summary .ns-learning-aid h6 { font-size:17px; line-height:1.4; margin:0 0 12px; color:#243f4d; }
#tab-book-summary .ns-aid-mnemonic { font-size:16px; line-height:1.5; font-weight:700; border-bottom:1px solid #dce5e9; padding-bottom:12px; margin:0 0 12px; }
#tab-book-summary .ns-learning-aid dl { margin:0; font-size:14px; line-height:1.65; }
#tab-book-summary .ns-learning-aid dl > div { margin:0 0 12px; }
#tab-book-summary .ns-learning-aid dt { font-weight:700; }
#tab-book-summary .ns-learning-aid dd { margin:2px 0 0; }
#tab-book-summary .ns-aid-pitfall { padding:10px 12px; margin:14px 0 8px; border-left:2px solid #9a7a48; background:#faf7f0; font-size:13px; line-height:1.65; }
#tab-book-summary .ns-aid-pitfall strong { display:block; color:#72572d; }
#tab-book-summary .ns-aid-sources { font-size:12px; line-height:1.6; }
#tab-book-summary .ns-aid-sources summary { cursor:pointer; padding:8px 0; }
#tab-book-summary .ns-aid-sources a { color:#285c74; text-decoration:underline; }
#tab-book-summary .ns-aid-sources ul { padding-left:18px; }
@media(max-width:850px) { #tab-book-summary .ns-learning-aids { grid-template-columns:minmax(0,1fr); gap:14px; } }
@media print { #tab-book-summary .ns-learning-aid { break-inside:avoid; } }
