*{box-sizing:border-box}
:root{--navy:#172a3f;--navy2:#234962;--sea:#167c82;--ink:#222e38;--muted:#687985;--paper:#f1f0eb;--page:#fffefa;--line:#dcdedc;--ui:#fff;--box:#e9f4f2;--fontsize:16px}
html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:#0c6b74;text-decoration:none}a:hover{text-decoration:underline}
.sitehead{position:sticky;z-index:30;top:0;background:var(--navy);color:white;box-shadow:0 2px 12px #0002}.head-inner{max-width:1300px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 22px}.brand{font:700 20px Georgia,serif;color:white;letter-spacing:.02em}.brand small{display:block;color:#8bdad3;font:500 10px system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase}.headlinks{display:flex;gap:20px;align-items:center}.headlinks a{color:#e3edf1;font-size:13px}
.cover{background:linear-gradient(135deg,#0d2c45,#204c61 70%,#146c70);color:white;border-radius:3px;max-width:860px;margin:32px auto 20px;text-align:center;padding:75px 26px;box-shadow:0 16px 45px #273b4c32;border:1px solid #668f9c}.cover .kicker{color:#9ad8d2;font-size:13px;letter-spacing:.25em;text-transform:uppercase}.cover h1{font:700 clamp(42px,7vw,70px)/1.15 Georgia,serif;letter-spacing:.1em;color:white;margin:22px 0}.cover .subtitle{font:italic 22px/1.4 Georgia,serif;color:#e0eef2}.cover .author{font:16px Georgia,serif;margin-top:48px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--sea);color:white;font-weight:650;border-radius:7px;border:1px solid transparent;padding:11px 20px;cursor:pointer}.btn:hover{background:#09575f;color:white;text-decoration:none}.btn.secondary{background:transparent;border-color:#b6d8d8;color:#e6ffff}.btn.secondary:hover{background:#fff2}.cover .btns{display:flex;gap:10px;justify-content:center;margin-top:40px;flex-wrap:wrap}
.mainindex{max-width:1000px;margin:0 auto;padding:10px 20px 70px}.note{background:#fff9e9;border-left:4px solid #b8843a;padding:14px 18px;font-size:13px;color:#5b4f38;margin:20px 0;border-radius:3px}.toc-section{margin-top:34px}.toc-section h2{font:30px Georgia,serif;color:var(--navy);border-bottom:1px solid #becbce;padding-bottom:10px}.toc-section h3{font:22px Georgia,serif;color:var(--navy);margin:20px 0 6px}.toc-list{list-style:none;padding:0;margin:0}.toc-list li{border-bottom:1px solid #e1e5e3}.toc-list li a{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;padding:7px 5px;color:#233e4c;font-size:14px}.toc-list li a:hover{background:#ebf5f3;text-decoration:none}.pagenum{font:13px Georgia,serif;color:var(--sea)}.toc-specialty{background:#fff;border:1px solid #e2e6e4;padding:4px 15px;margin:14px 0;border-radius:6px}.toc-specialty summary{list-style:disclosure-closed;cursor:pointer;color:#16384a;font-weight:700;font-size:17px;padding:11px 3px}.toc-specialty[open] summary{border-bottom:1px solid #dce4e4}
.searchbar{display:flex;gap:10px;margin:14px 0}.searchbar input{font:inherit;width:100%;padding:13px 14px;border:1px solid #bbc9ca;border-radius:6px;background:white}.searchbar select{min-width:165px;padding:8px;border:1px solid #bbc9ca;border-radius:6px}.search-results{display:grid;grid-template-columns:1fr 1fr;gap:8px}.search-hit{background:white;border:1px solid #dce5e4;border-radius:5px;padding:11px 13px;font-size:13px;line-height:1.4}.search-hit b{display:block;color:#143d4e}.search-hit small{display:block;color:#617785}.search-hit em{font-style:normal;color:#5b6971}
.read-layout{max-width:1330px;margin:auto;display:grid;grid-template-columns:225px minmax(0,1fr);gap:28px;padding:25px 22px 75px}.chapternav{position:sticky;top:84px;align-self:start;max-height:calc(100vh - 115px);overflow:auto;background:var(--ui);border:1px solid var(--line);border-radius:5px;padding:13px 10px}.chapternav h3{font:600 12px system-ui,sans-serif;letter-spacing:.09em;color:var(--muted);text-transform:uppercase;margin:4px 6px 9px}.chapternav a{display:block;padding:7px 9px;border-radius:4px;color:#2b5565;font-size:12px;line-height:1.35}.chapternav a.active{color:#075b63;background:#e6f3f1;font-weight:700}.chapternav a:hover{background:#f2f6f5;text-decoration:none}
.bookarea{min-width:0}.bookpage{margin:0 auto;max-width:920px;background:var(--page);padding:clamp(22px,5vw,68px);border:1px solid #deded9;box-shadow:0 9px 28px #33495519;min-height:78vh}.folio{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid #d2d7d6;padding-bottom:13px;color:var(--muted);letter-spacing:.08em;font-size:11px;text-transform:uppercase}.bookpage h1{font:700 clamp(29px,3.4vw,43px)/1.2 Georgia,serif;letter-spacing:-.015em;color:var(--navy);margin:28px 0 24px}.rule{height:2px;background:linear-gradient(90deg,#14838a,#d3e5e0,transparent);margin:0 0 20px}.bookbody{font-size:var(--fontsize);line-height:1.57;overflow-wrap:anywhere}.bookbody h2,.bookbody h3,.bookbody h4,.bookbody h5,.bookbody h6{font-family:Georgia,serif;color:#153d50;line-height:1.3;break-after:avoid;scroll-margin-top:90px}.bookbody h2{font-size:1.5em;margin:1.55em 0 .45em;border-bottom:1px solid #d5e1e0;padding-bottom:6px}.bookbody h3,.bookbody h4,.bookbody h5,.bookbody h6{font-size:1.17em;margin:1.3em 0 .35em}.bookbody p{margin:.6em 0}.bookbody ul,.bookbody ol{padding-left:22px;margin:.5em 0}.bookbody li{margin:.18em 0}.bookbody img{max-width:100%;height:auto;object-fit:contain;display:block;margin:16px auto}.bookbody table{display:block;overflow:auto;max-width:100%;border-collapse:collapse;font-size:.88em;margin:14px 0}.bookbody td,.bookbody th{padding:8px;border:1px solid #cdd9d8;min-width:65px;vertical-align:top}.bookbody th{background:#e9f1f1}.bookbody tr:nth-child(2n) td{background:#f7fafa}.bookbody .notebox,.bookbody .box,.bookbody .alert{border-left:4px solid #369398;background:#e9f5f2;padding:11px 15px;border-radius:3px;margin:13px 0}.bookbody .links{background:#f0f6f5;color:#53717a;font-size:.88em;padding:10px;margin:0 0 20px}.bookbody blockquote{border-left:3px solid #acc7c6;padding-left:14px;color:#43565c}.bookbody pre{background:#f1f5f6;padding:14px;overflow:auto}.bookbody details{border:1px solid #cbdada;padding:9px 12px;border-radius:5px}.bookbody details summary{cursor:pointer;font-weight:700;color:#1a6670}.bookbody hr{border:0;border-top:1px solid #d9dfdd;margin:25px 0}.bookbody a[id]{scroll-margin-top:110px}
.page-end{border-top:1px solid #dce0dc;margin-top:45px;padding-top:18px;font:italic 13px Georgia,serif;color:#718186;text-align:center}.booknav{max-width:920px;margin:18px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:14px}.booknav a{display:block;background:white;border:1px solid #d1dcda;border-radius:5px;padding:13px 18px;line-height:1.35}.booknav a:last-child{text-align:right}.booknav small{display:block;color:#668087;font-size:11px}.booknav b{font-size:13px;color:#184354}.readingtoolbar{max-width:920px;margin:0 auto 12px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#53646a;font-size:12px}.readingtoolbar button{cursor:pointer;border:1px solid #cbd8d5;background:white;color:#254b58;border-radius:4px;padding:6px 9px}.readingtoolbar .controls{display:flex;gap:5px}.progressbar{max-width:920px;margin:0 auto 15px;height:4px;background:#d2deda}.progressbar div{height:4px;background:#0f7882}.floating-next{position:fixed;bottom:0;left:0;right:0;background:var(--navy);color:white;z-index:20;padding:9px 18px;display:flex;justify-content:center;gap:22px;align-items:center;box-shadow:0 -3px 10px #0002}.floating-next a{color:white}.floating-next strong{color:#c4e2e0;font:13px Georgia,serif}.floating-next a.disabled{opacity:.35;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
body.night{--paper:#14202a;--page:#20313c;--ui:#20313c;--ink:#e0e8e7;--muted:#b0c1c4;--line:#405866;--box:#283f47}body.night .bookpage h1,body.night .bookbody h2,body.night .bookbody h3,body.night .bookbody h4,body.night .bookbody h5,body.night .bookbody h6{color:#b6e0df}body.night .booknav a,body.night .readingtoolbar button{background:#243e4a;border-color:#415b64;color:#deeeed}body.night .booknav b,body.night .chapternav a{color:#d1e4e1}body.night .bookbody .notebox,body.night .bookbody .box,body.night .bookbody .links{background:#294850;color:#e0ebe9}body.night .bookbody th,body.night .bookbody tr:nth-child(2n) td{background:#2c4953}
@media(max-width:950px){.read-layout{grid-template-columns:minmax(0,1fr);padding:14px 12px 75px}.chapternav{position:static;max-height:145px}.bookpage{padding:30px}.mainindex{padding:8px 14px 45px}}
@media(max-width:610px){.head-inner{padding:9px 12px}.headlinks{gap:11px}.headlinks a{font-size:11px}.brand{font-size:17px}.bookpage{padding:19px;min-height:68vh}.read-layout{padding:10px 7px 70px}.booknav{gap:6px}.booknav a{padding:10px;font-size:12px}.bookbody{line-height:1.55}.search-results{grid-template-columns:1fr}.searchbar{flex-direction:column}.cover{margin:8px 8px 15px;padding:53px 20px}.cover h1{letter-spacing:.045em}.floating-next{gap:16px}.readingtoolbar{flex-wrap:wrap}.cover .subtitle{font-size:18px}}
@media print{.sitehead,.chapternav,.booknav,.floating-next,.readingtoolbar,.progressbar{display:none}.read-layout{display:block;padding:0}.bookpage{border:0;box-shadow:none;padding:0;max-width:none}.bookbody{font-size:11pt}body{background:white;color:black}}

/* ---- linked topic pages ---- */
.topicnav a:first-child small::before{content:""}.dyn-loading{color:var(--muted);font-style:italic}
/* ---- edit button + private editor ---- */
#editbtn{margin-left:6px;border-color:#b9cfcc;color:#5d6f74}#editbtn:hover{color:#075b63;border-color:#0f7882}
body.ed-on{padding-top:52px}body.ed-on .sitehead{top:52px}body.ed-on .floating-next{display:none}
body.ed-on .bookbody[contenteditable],body.ed-on .bookpage h1[contenteditable]{outline:2px dashed #e0a640;outline-offset:6px;border-radius:2px}
.ed-bar{position:fixed;top:0;left:0;right:0;z-index:60;display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:9px 14px;background:#2d2a20;color:#fff;box-shadow:0 2px 10px #0004;font:13px system-ui,sans-serif}
.ed-bar button{font:inherit;cursor:pointer;border:1px solid #6b6450;background:#3d392c;color:#f4efe2;border-radius:4px;padding:5px 9px;min-width:30px}
.ed-bar button:hover{background:#4d4836}.ed-bar button.on{background:#e0a640;color:#2d2a20}
.ed-bar .save{background:#e0a640;border-color:#e0a640;color:#2d2a20;font-weight:700;padding:5px 16px}.ed-bar .save:disabled{opacity:.6}
.ed-bar .ghost{background:transparent}.ed-label{font-weight:700;color:#e0a640;margin-right:8px;letter-spacing:.05em;text-transform:uppercase;font-size:11px}.ed-spacer{flex:1}
.ed-source{width:100%;min-height:70vh;font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:12px;border:2px dashed #e0a640;border-radius:4px;background:#fffdf6;color:#222;resize:vertical}
.ed-modal{position:fixed;inset:0;z-index:70;background:#0d1a2499;display:flex;align-items:center;justify-content:center;padding:16px}
.ed-card{background:#fff;color:#222e38;border-radius:8px;padding:24px 26px;width:min(380px,100%);box-shadow:0 20px 50px #0006;font:14px system-ui,sans-serif}
.ed-card h2{font:22px Georgia,serif;color:var(--navy);margin:0 0 10px}.ed-card p{color:#5b6971;margin:0 0 12px;line-height:1.45}
.ed-card label{display:block;font-weight:600;margin:10px 0 0}.ed-card input{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #bbc9ca;border-radius:6px;font:inherit}
.ed-err{color:#b3261e;min-height:1.3em;margin:10px 0 0 !important}.ed-row{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.ed-btn{font:inherit;font-weight:650;cursor:pointer;border:1px solid var(--sea);background:var(--sea);color:#fff;border-radius:6px;padding:9px 16px}.ed-btn.ghost{background:#fff;color:var(--sea)}
.ed-toast{position:fixed;left:50%;bottom:70px;transform:translateX(-50%);z-index:80;background:#173a2f;color:#fff;padding:11px 18px;border-radius:6px;box-shadow:0 6px 20px #0004;font:14px system-ui,sans-serif;max-width:90vw}.ed-toast.bad{background:#7a1f1a}
@media(max-width:610px){body.ed-on{padding-top:96px}body.ed-on .sitehead{top:96px}#editbtn{margin-left:0}}
@media print{#editbtn,.ed-bar{display:none}}
.headlinks a{white-space:nowrap}
@media(max-width:610px){.brand small{display:none}.headlinks{gap:10px}}
@media(max-width:360px){.headlinks a[href$="#reference"]{display:none}}

/* === 2026 desktop-wide complete index for all online chapters === */
.home-shell{max-width:1640px;display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;margin:0 auto;padding:18px 22px 70px}
.home-inner{min-width:0}.home-inner .cover{margin:8px auto 20px}.home-inner .mainindex{max-width:1060px}
.read-layout{max-width:1640px;grid-template-columns:310px minmax(0,1fr);gap:24px}
.book-index-sidebar{padding:0!important;max-height:calc(100vh - 86px);position:sticky;top:75px;scrollbar-color:#a8babc transparent;overflow:auto}
.index-sidebar-top{background:var(--ui);position:sticky;top:0;z-index:2;padding:15px 14px 11px;border-bottom:1px solid var(--line)}
.index-sidebar-top strong{display:block;font:700 13px/1.2 system-ui,sans-serif;color:var(--ink);letter-spacing:.075em}
.index-sidebar-top small{display:block;font-size:11px;color:var(--muted);margin:5px 0 10px}
.index-search{width:100%;font:13px system-ui,sans-serif;color:var(--ink);background:var(--ui);border:1px solid #9eafb1;padding:10px 11px;border-radius:6px;outline-offset:2px}
.index-helpers{display:flex;justify-content:space-between;padding-top:10px}
.index-helpers button{padding:2px 0;border:0;background:transparent;color:#167c82;cursor:pointer;font:12px system-ui,sans-serif}
.index-part{position:sticky;top:124px;z-index:1;background:var(--box);color:var(--navy2)!important;font:700 11px system-ui,sans-serif!important;letter-spacing:.09em!important;text-transform:uppercase;margin:0!important;padding:11px 13px!important;border-top:1px solid var(--line)}
.index-group{border-bottom:1px solid var(--line)}
.index-group[hidden],.index-item[hidden]{display:none!important}
.index-group summary{position:relative;cursor:pointer;padding:10px 38px 10px 14px;font:650 13px/1.3 system-ui,sans-serif;list-style:revert;color:var(--ink)}
.index-group summary:hover{background:var(--box)}
.index-group-count{position:absolute;right:12px;top:10px;font:11px system-ui,sans-serif;color:var(--muted)}
.book-index-sidebar a.index-item{display:flex;align-items:baseline;gap:7px;padding:7px 10px 7px 22px;border-top:1px solid #d5e1e155;font:12px/1.35 system-ui,sans-serif;color:var(--ink)}
.book-index-sidebar a.index-item:hover{background:var(--box)}
.book-index-sidebar a.index-item.active{background:#dceeed;color:#074f59;font-weight:750;box-shadow:inset 3px 0 #167c82}
.index-number{font:600 11px system-ui,sans-serif;color:var(--sea);min-width:22px}
.index-toggle{display:none;background:transparent;color:white;border:1px solid #6b8394;border-radius:5px;padding:7px 10px;font:650 12px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.index-overlay{display:none}
.head-images{font-weight:650}.image-manager-link{display:inline-flex;align-items:center;border:1px solid #cbd8d5;padding:6px 9px;background:var(--ui);border-radius:4px;font-size:12px;color:var(--ink)}
.image-manager-link:hover{text-decoration:none;background:var(--box)}
body.night .index-part{color:#c1e1dc!important}.night .index-group summary{color:var(--ink)}.night .book-index-sidebar a.index-item.active{color:#102b2d;background:#99cfce}
@media(max-width:1080px){
 .home-shell{display:block;padding:0 12px 60px}.read-layout{grid-template-columns:minmax(0,1fr)}
 .book-index-sidebar{position:fixed;z-index:65;left:0;top:0;bottom:0;max-height:none;width:min(350px,88vw);border-radius:0;transform:translateX(-110%);transition:transform .2s ease;box-shadow:10px 0 40px #0002}
 body.index-open .book-index-sidebar{transform:translateX(0)}
 body.index-open .index-overlay{position:fixed;display:block;inset:0;border:0;background:#0b1b2bb0;z-index:64}
 .index-toggle{display:inline-block}
 .home-shell>.book-index-sidebar{display:block}
 .home-inner .cover{margin:8px auto 20px}
}
@media(max-width:610px){.headlinks a[href$="#reference"],.headlinks a[href$="#topics"]{display:none}.head-images{display:none}.head-inner{gap:7px}.index-toggle{font-size:11px;padding:5px 7px}.image-manager-link{padding:6px}.index-part{top:123px}}
@media print{.book-index-sidebar,.index-toggle,.index-overlay,.image-manager-link,.head-images{display:none!important}.home-shell{display:block;padding:0}}
/* === Standalone book image manager === */
.images-shell .home-inner{width:100%}.images-panel{background:var(--page);border:1px solid var(--line);border-radius:10px;padding:clamp(20px,3.2vw,44px);min-height:78vh;box-shadow:0 10px 30px #183f4a12}
.images-eyebrow{font:700 11px system-ui,sans-serif;color:var(--sea);letter-spacing:.16em}.images-panel h1{font:700 clamp(32px,4vw,46px) Georgia,serif;color:var(--navy);margin:12px 0 6px}.images-panel h2{font:700 21px Georgia,serif;color:var(--navy);margin:0 0 14px}.images-lede{max-width:760px;color:var(--muted);font-size:15px}.image-status{margin:20px 0;padding:12px 16px;background:var(--box);border-left:4px solid var(--sea);font:13px/1.5 system-ui,sans-serif}.image-status.error{background:#ffece8;border-color:#a22a18;color:#7a2118}
.images-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:28px;align-items:start;margin:24px 0}.image-main{min-width:0}.image-drop{position:relative;padding:28px 14px;border:2px dashed #9abcb9;text-align:center;border-radius:9px;background:var(--box);cursor:pointer}.image-drop:hover,.image-drop.dragover{border-color:var(--sea);background:#d9f1ee}.image-drop-icon{font-size:34px;color:var(--sea)}.image-drop strong,.image-drop small{display:block;font:600 14px system-ui,sans-serif}.image-drop small{color:var(--muted);font-weight:400;margin-top:7px}.image-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.image-preview{display:flex;align-items:center;gap:16px;padding:12px;background:var(--ui);border:1px solid var(--line);margin:16px 0}.image-preview img{width:150px;height:110px;object-fit:contain;background:#eee}.image-preview span{font-size:13px;color:var(--muted);word-break:break-word}.image-label{display:block;font:700 13px system-ui,sans-serif;margin:16px 0 6px}.image-label span{font-weight:400;color:var(--muted)}.image-text{width:100%;padding:12px 13px;background:var(--ui);color:var(--ink);border:1px solid #a8bec0;border-radius:5px;font:14px system-ui,sans-serif}.image-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:17px}.image-buttons button:disabled{opacity:.45;cursor:not-allowed}.image-secondary{background:transparent;color:var(--sea);border:1px solid var(--sea)}.image-secondary:hover{color:var(--sea);background:var(--box)}.image-output{margin-top:20px}.image-output textarea{display:block;width:100%;resize:vertical;max-height:180px;font:12px/1.5 monospace;padding:11px;border:1px solid var(--line);background:var(--ui);color:var(--ink)}
.image-help{border-radius:8px;padding:20px;background:var(--box);color:var(--ink);font-size:13px}.image-help p{margin:0 0 14px}.image-help code{overflow-wrap:anywhere}.image-help-tip{padding-top:14px;border-top:1px solid var(--line);font-weight:700;color:var(--sea)}
.image-library{border-top:1px solid var(--line);padding-top:28px}.image-library-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.image-library #image-library-note{font:13px system-ui,sans-serif;color:var(--muted)}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px;margin-top:18px}.image-gallery-item{padding:9px;border:1px solid var(--line);background:var(--ui);border-radius:6px;display:flex;flex-direction:column;gap:7px}.image-gallery-item img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#eee}.image-gallery-item small{font:11px system-ui,sans-serif;color:var(--muted);overflow-wrap:anywhere}.image-gallery-item button{font-size:12px;padding:7px 10px}
@media(max-width:850px){.images-columns{grid-template-columns:1fr}.image-help{order:2}}
@media(max-width:610px){.images-panel{padding:18px 14px}.image-drop{padding:20px 8px}.images-panel h1{font-size:30px}}

/* A&P teaching chapters absorbed into their corresponding anatomy/physiology pages. */
.bookbody .integrated-jump{background:#e8f4f2;border-left:3px solid #167c82;padding:9px 13px;margin:12px 0 20px}
.bookbody .integrated-jump p{margin:0}
.bookbody .integrated-ap-chapter{border-top:2px solid #91aeae;margin-top:3rem;padding-top:1.15rem;scroll-margin-top:100px}
.bookbody .integrated-ap-chapter > h2{font-family:Georgia,serif;font-size:1.5rem;color:#173c4b}
.bookbody .integrated-ap-chapter table{max-width:100%}
.bookbody img{max-width:100%;height:auto}


/* Per-page internal contents: unnumbered, linked and mobile-friendly. */
.bookbody nav.page-contents{margin:12px 0 24px;scroll-margin-top:95px;}
.bookbody nav.page-contents details.page-contents-details{background:linear-gradient(145deg,#eaf5f3,#f5f9f7);border:1px solid #b9d4d1;border-radius:9px;padding:0;overflow:hidden;}
.bookbody .page-contents summary{display:flex;gap:12px;align-items:center;justify-content:space-between;cursor:pointer;padding:12px 16px;color:#153d50;font:600 14px/1.4 system-ui,Arial,sans-serif;}
.bookbody .page-contents summary strong{font-weight:750;}
.bookbody .page-contents-count{font-size:12px;color:#526d70;font-weight:500;}
.bookbody .page-contents-list{padding:11px 16px 17px 38px;margin:0;columns:2;column-gap:30px;border-top:1px solid #d1e4e1;list-style-type:disc;}
.bookbody .page-contents-list li{break-inside:avoid;font:13px/1.35 system-ui,Arial,sans-serif;margin:0 0 7px;padding:0;list-style-type:disc;}
.bookbody .page-contents-list li::marker{color:#6ba39d;}
.bookbody .page-contents-list a{color:#155b63;}
.bookbody .page-contents-list a:hover{text-decoration:underline;}
.bookbody .page-contents-list .page-contents-level-1{margin-left:14px;list-style-type:circle;font-size:12.7px;}
.bookbody .page-contents-list .page-contents-level-2,.bookbody .page-contents-list .page-contents-level-3{margin-left:25px;list-style-type:square;font-size:12.3px;}
.bookbody .toc-anchor{display:block;position:relative;top:-100px;height:0;overflow:hidden;}
.bookbody [id^="section-"]{scroll-margin-top:100px;}
body.night .bookbody nav.page-contents details{background:#283f47;border-color:#466a6a;}
body.night .bookbody .page-contents summary{color:#d2e9e7;}
body.night .bookbody .page-contents-count{color:#adc7c7;}
body.night .bookbody .page-contents-list{border-top-color:#426267;}
body.night .bookbody .page-contents-list a{color:#9ad7d3;}
@media(max-width:680px){.bookbody .page-contents-list{columns:1;padding:12px 14px 15px 36px}.bookbody .page-contents summary{padding:11px 12px;}}
@media print{.bookbody nav.page-contents details{background:#fff!important;border:1px solid #ccc!important}.bookbody nav.page-contents details:not([open]) .page-contents-list{display:none}}

/* Author dashboard: make new-page/reindex actions discoverable */
.editor-choice{flex-wrap:wrap}.editor-choice button{white-space:nowrap}
.editor-help{font-size:.86rem;opacity:.8;margin:.15rem 0 .85rem}
#editor-specialty{max-width:32rem}.editor-choice .image-text{max-width:7rem}

/* Drag-and-drop illustrations into author HTML and into in-page visual editor. */
.editor-image-drop{margin:8px 0;padding:14px;border:2px dashed #92b8b4;border-radius:10px;background:#f0f8f6;cursor:copy;color:#234f55;line-height:1.7}
.editor-image-drop small{display:block;font-size:.82rem;color:#4c6a70}
.editor-image-drop .btn{margin-left:8px}
.editor-image-drop.dragover,.editor-html.dragover,.editor-image-drop.uploading{outline:3px solid #197d79;outline-offset:2px;background:#dcefeb}
.ed-image-drag .bookbody[contenteditable]{outline:4px dashed #168480!important;background:rgba(23,132,128,.06)}
.ed-image-placeholder{font:italic 12px system-ui,sans-serif;background:#fff2ca;padding:5px}

/* Offline app publishing controls in the private editor */
.app-export-panel{margin:1.2rem 0 1.6rem;padding:1rem 1.2rem;border:1px solid #9fbdcd;border-radius:12px;background:rgba(41,97,133,.06)}
.app-export-panel h2{margin:.15rem 0 .6rem;font-size:1.23rem}
.app-export-panel .editor-help{overflow-wrap:anywhere;line-height:1.5}

.private-stats-table{overflow-x:auto;max-width:100%;font-size:.89rem}
.private-stats-table table{border-collapse:collapse;width:100%;margin:12px 0}
.private-stats-table td,.private-stats-table th{border-bottom:1px solid #bbcbd2;padding:7px;text-align:left}
.private-stats-table th{font-weight:700;white-space:nowrap}

/* Private wiki account and revision history management. */
.wiki-current-user{margin:0 0 16px;font-size:.96rem;font-weight:600;color:#256a6c}
.wiki-panel{margin:20px 0;padding:18px 20px}
.wiki-credentials,.wiki-compare-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}
.wiki-credentials .image-label,.wiki-compare-controls .image-label{min-width:190px;flex:1}
.wiki-history-list{max-height:390px;overflow:auto;margin:12px 0;border-top:1px solid #d8e1e6}
.wiki-history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;border-bottom:1px solid #d8e1e6;padding:10px 4px}
.wiki-history-row small{display:block;color:#546771;margin-top:3px}
.wiki-history-row button{white-space:nowrap}
.wiki-secret{padding:12px;border:1px solid #c3d9df;border-radius:5px;word-break:break-word;margin:10px 0;background:#f2f8f9}
.wiki-diff{margin-top:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wiki-diff-column{border:1px solid #d9e0e4;border-radius:6px;min-width:0;background:#fff}
.wiki-diff-column strong{display:block;padding:10px;background:#edf3f5}
.wiki-diff-column pre{white-space:pre-wrap;word-break:break-word;overflow:auto;font:13px/1.55 ui-monospace,Consolas,monospace;max-height:600px;margin:0;padding:10px}
.wiki-diff-column .wiki-changed{background:#fff0ba}
.wiki-diff-column .wiki-deleted{background:#ffe0dd}
.wiki-diff-column .wiki-added{background:#d7f5dd}
.wiki-diff-column .wiki-line{display:block;padding:2px 4px;margin-bottom:3px}
@media (max-width:640px){.wiki-diff{grid-template-columns:1fr}.wiki-credentials,.wiki-compare-controls{display:block}.wiki-credentials .image-label,.wiki-compare-controls .image-label{margin-bottom:10px}}
/* Hidden authorization-dependent panels must stay hidden even when styled as flex. */
[hidden]{display:none!important}

/* Educational safety and UK privacy notice */
.mk-medical-alert{border-left:4px solid #bb7722;background:#fff8e9;color:#4d3922;padding:12px 16px;margin:12px auto 20px;max-width:980px;font:14px/1.55 system-ui,sans-serif;border-radius:5px;}
.mk-medical-alert a{font-weight:700;color:#70501c;}
.mk-legal-footer{font:13px/1.6 system-ui,sans-serif;text-align:center;padding:24px 12px 40px;color:#61717d;background:#f3f7fa;border-top:1px solid #dde7ed;}
.mk-legal-footer a{color:#22466d;text-decoration:underline;}
.mk-policy-page{max-width:900px;margin:30px auto 60px;padding:30px 26px;background:#fff;color:#253846;box-shadow:0 1px 14px #142b3c13;font:16px/1.7 system-ui,sans-serif;}
.mk-policy-page h1{font-size:clamp(26px,4vw,38px);line-height:1.25}.mk-policy-page h2{font-size:22px;margin-top:28px}.mk-policy-page li{margin:7px 0}.mk-policy-page a{color:#164e86;text-decoration:underline}.mk-policy-date{color:#667788;font-size:13px}.mk-policy-lead{font-size:18px}.mk-policy-action{color:#9e2a2b;}
.mk-consent-banner{position:fixed;z-index:9999;bottom:0;left:0;right:0;padding:15px clamp(12px,3vw,30px);background:#f4f8fb;border-top:2px solid #2e5f83;color:#223444;box-shadow:0 -4px 18px #25394b36;display:flex;gap:15px;align-items:center;justify-content:center;font:14px/1.5 system-ui,sans-serif;}
.mk-consent-banner p{margin:0;max-width:800px}.mk-consent-actions{display:flex;gap:8px;flex-shrink:0}.mk-consent-banner button{cursor:pointer;}
@media(max-width:650px){.mk-consent-banner{display:block}.mk-consent-actions{margin-top:8px}.mk-policy-page{padding:18px 15px;margin:8px 5px 30px;}}

/* Search result snippets and direct navigation into chapter headings. */
.search-hit{display:block;min-width:0;overflow-wrap:anywhere;transition:border-color .15s,box-shadow .15s}
.search-hit:hover,.search-hit:focus-visible{border-color:#16818a;box-shadow:0 2px 9px #1c536122;text-decoration:none}
.search-hit .search-section{display:block;margin-top:6px;font-weight:650;color:#256d75}
.search-hit .search-snippet{display:block;color:#344d5b;line-height:1.55;margin-top:6px}
.search-hit mark{color:inherit;background:#fff0ad;border-radius:2px;padding:0 1px}
.search-more{display:block;margin:16px auto 0;border:1px solid #167c82;color:#155e65;background:#fff;cursor:pointer;padding:10px 18px;border-radius:6px;font:600 14px system-ui}
.search-more:hover{background:#e8f4f2}.search-more[hidden]{display:none}
@media(max-width:700px){.search-results{grid-template-columns:1fr}.searchbar{flex-wrap:wrap}.searchbar select{width:100%}}
/* Offline reader extras, unobtrusive in light and dark modes */
.reader-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}
.reader-muted{opacity:.72;font-size:.92rem}
.reader-links{padding-left:1.2rem;margin:.5rem 0}
.reader-links li{margin:.35rem 0;display:flex;align-items:baseline;gap:.65rem;justify-content:space-between}
.reader-links button{font:inherit;font-size:.8rem;background:transparent;border:0;text-decoration:underline;cursor:pointer;color:inherit}

/* Added original clinical anatomy textbook chapter formatting (November 2026). */
.anatomy-chapter h2{margin-top:2.1rem;padding-top:.7rem;border-top:1px solid var(--line)}
.anatomy-chapter p{max-width:88ch}
.anatomy-chapter h2[id^="anatomy-clinical-reasoning-check"]{border-left:4px solid var(--sea);padding:12px 16px;background:var(--box);border-top:0;border-radius:4px}
.anatomy-chapter h2[id^="anatomy-clinical-reasoning-check"]~p:last-child{margin-bottom:1.7rem}
@media print{.anatomy-chapter h2{break-after:avoid}}

/* Anatomy prose and bullet lists: standard Makindo visual hierarchy, no replacement theme */
.bookbody.anatomy-chapter ul.detailed-anatomy-bullets{list-style-type:disc;padding-left:1.6em;margin:.65em 0 1.15em}
.bookbody.anatomy-chapter ul.detailed-anatomy-bullets>li{padding-left:.18em;margin:.42em 0;line-height:1.68}
.bookbody.anatomy-chapter ul.detailed-anatomy-bullets b{color:var(--navy)}
.bookbody.anatomy-chapter ul.anatomy-takeaways{list-style-type:disc;margin:1em 0}
.bookbody.anatomy-chapter ul.anatomy-takeaways>li{margin:.34em 0}
.bookbody.anatomy-chapter .anatomy-detailed-case{padding:8px 12px;margin-bottom:15px;border-left:3px solid #368c91;background:#f0f8f6}
.bookbody.anatomy-chapter .anatomy-reference-table caption{text-align:left;font-weight:600;padding:4px 0 8px;color:var(--muted)}
body.night .bookbody.anatomy-chapter .anatomy-detailed-case{background:#294850}
body.night .bookbody.anatomy-chapter ul.detailed-anatomy-bullets b{color:#b6e0df}

/* Student study tools */
#kind{max-width:300px;min-width:210px;overflow:hidden;text-overflow:ellipsis}
#offline-library{scroll-margin-top:1rem}
#offline-library .reader-links a:focus-visible,.page-contents a:focus-visible,.booknav a:focus-visible{outline:3px solid #1c8794;outline-offset:2px}
.reading-time{font-size:12px;opacity:.75;padding:6px 8px;white-space:nowrap}
@media(max-width:680px){#kind{max-width:none;width:100%}.reader-links li{align-items:center}}

/* November 2026: one single safety notice in the global top bar, not in the book body. */
.mk-safety-strip{background:#24445a;color:#ecf2f3;text-align:center;border-top:1px solid #3f6574;padding:5px 14px;font:11px/1.5 system-ui,sans-serif;letter-spacing:.005em}
.mk-safety-strip strong{font-weight:750;color:#fff}.mk-safety-strip a{color:#c6f3eb;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.mk-safety-strip a:hover,.mk-safety-strip a:focus-visible{color:#fff}
@media(min-width:1081px){.book-index-sidebar{top:115px;max-height:calc(100vh - 130px)}}
@media(max-width:650px){.mk-safety-strip{font-size:10px;line-height:1.4;padding:4px 10px}.headlinks{gap:9px}}
.home-intro{font-size:15px;color:var(--ink);margin:4px 0 26px;line-height:1.65}
.home-inner .mainindex{max-width:900px}.home-inner .mainindex .toc-section{margin-top:24px}
.reader-sidebar-library{border-bottom:1px solid var(--line);background:var(--ui);padding:0!important;border-radius:0!important}
.reader-sidebar-library summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;padding:12px 13px;font-size:13px;font-weight:750;color:var(--ink)}
.reader-sidebar-library summary span{font-size:10px;font-weight:400;color:var(--muted)}
.reader-sidebar-content{padding:1px 12px 12px;font-size:12px;max-height:38vh;overflow:auto}
.reader-sidebar-content h4{font-size:12px;margin:11px 0 4px}.reader-sidebar-content ul{padding-left:17px}
.reader-sidebar-content .reader-links li{display:flex;gap:6px;align-items:baseline;justify-content:space-between;margin:5px 0}
.reader-sidebar-content .reader-links a{padding:0;font-size:12px}.reader-sidebar-content .reader-links button{font-size:11px}
/* Anatomy is structured for revision: named factual lists and clinical localisation. */
.bookbody.anatomy-chapter ul.anatomy-quick-facts{padding:4px 12px 4px 25px;margin:9px 0 18px;border-left:3px solid #6daea7;background:var(--box);border-radius:4px}
.bookbody.anatomy-chapter ul.anatomy-quick-facts>li{line-height:1.55;margin:7px 0}
.bookbody.anatomy-chapter h2{font-size:1.36em;margin:1.55em 0 .5em;padding:0 0 7px;border:0;border-bottom:1px solid var(--line)}
/* Show the current chapter's section list in the left column instead of a wide contents panel. */
.sidebar-current-sections{padding:0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:var(--box)}
.sidebar-current-sections summary{font:700 13px system-ui,sans-serif;color:var(--ink);cursor:pointer;padding:13px 14px}
.sidebar-current-sections summary span{font-weight:400;color:var(--muted);font-size:11px;margin-left:3px}
.sidebar-current-sections ul{list-style:none;padding:2px 8px 12px 15px;margin:0;max-height:38vh;overflow:auto}
.sidebar-current-sections li{padding:0;margin:0}.book-index-sidebar .sidebar-current-sections a{font-size:12px;line-height:1.42;padding:6px 8px;display:block}
@media(min-width:1081px){body.sections-in-sidebar .bookbody nav.page-contents{display:none}}
@media(max-width:1080px){body.sections-in-sidebar .bookbody nav.page-contents details{background:var(--box)}}
@media print{.mk-safety-strip{display:none!important}.bookbody nav.page-contents{display:none!important}}

.bookbody.anatomy-chapter ul.anatomy-highlights{margin:10px 0 24px;padding:15px 18px 15px 38px;background:var(--box);border:1px solid var(--line);border-radius:7px}
.bookbody.anatomy-chapter ul.anatomy-highlights li{margin:7px 0;line-height:1.58}
.bookbody.anatomy-chapter ul.anatomy-highlights strong{color:var(--navy2)}
body.night .bookbody.anatomy-chapter ul.anatomy-highlights strong{color:#b6e0df}

.index-case-link{display:block;padding:10px 12px;margin-top:9px;text-decoration:none;background:#e5f2f5;border:1px solid #bad2df;border-radius:7px;color:#113b58;font-weight:700}.index-case-link:hover{background:#d6ecf4}

/* Private Wikimedia Commons image picker */
.wikimedia-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;margin:14px 0}
.wikimedia-card{border:1px solid #c8d5db;padding:10px;border-radius:10px;display:flex;flex-direction:column;gap:6px;min-width:0;background:#fbfcfd}
.wikimedia-card.selected{border:2px solid #22619b;background:#eff6fd}
.wikimedia-card img{width:100%;height:135px;object-fit:contain;background:#eef2f6}
.wikimedia-card strong,.wikimedia-card small{overflow-wrap:anywhere}.wikimedia-card small{color:#485e70;flex:1}
.wikimedia-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:15px 0}
.wikimedia-check{display:flex;align-items:flex-start;gap:8px;line-height:1.5;margin:15px 0}.wikimedia-check input{margin-top:5px}
#wikimedia-choice{padding:12px;border:1px solid #bed1df;border-radius:6px;background:#f4f9fd;overflow-wrap:anywhere}
.makindo-figure figcaption{font-size:.84em;color:#455869;margin-top:.35em;line-height:1.5}
.makindo-figure .mk-image-credit{font-size:.9em;display:block;color:#586c7b;overflow-wrap:anywhere}
.makindo-figure img{max-width:100%;height:auto}

/* Alphabetical short clinical conditions index */
.az-intro{font-size:1.04em;line-height:1.65;margin:0 0 1rem}.az-editor-tip{font-size:.86em;color:var(--muted,#53677a);padding:.65rem .85rem;border-left:3px solid #8ca6b7;background:rgba(125,153,166,.07)}
.az-searchbar{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin:1.2rem 0}.az-searchbar label{font-weight:700}.az-searchbar input{flex:1 1 240px;min-width:0;font:inherit;border:1px solid #92a6b9;padding:.7rem;border-radius:6px;background:var(--paper,#fff);color:inherit}.az-searchbar span{font-size:.85rem;color:var(--muted,#53677a)}
.az-alphabet{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0 1.8rem}.az-alphabet a{display:inline-block;padding:.3rem .55rem;border:1px solid #bacbd5;border-radius:5px;text-decoration:none;font-weight:700}.az-alphabet a:hover,.az-alphabet a:focus-visible{background:#d9e9f3;color:#123c5a}
.az-alphabet.az-filtered{opacity:.5}.az-letter{margin-top:1.6rem}.az-letter>h2{border-bottom:2px solid #b4ccda;padding-bottom:.35rem;font-size:1.6em}.az-entry{margin:1.3rem 0 1.6rem;padding-bottom:1rem;border-bottom:1px solid rgba(110,140,160,.2)}.az-entry h3{margin:0 0 .5rem;color:var(--heading,#163c5a);font-size:1.22em}.az-entry p{margin:.35rem 0;line-height:1.55}.az-related{font-size:.92em}.az-entry[hidden],.az-letter[hidden]{display:none!important}
.bnf-first-link{border-bottom:1px dotted currentColor;text-underline-offset:2px}.mk-crosslink{border-bottom:1px dotted currentColor;text-underline-offset:2px}
@media print{.az-searchbar,.az-alphabet,.az-editor-tip{display:none!important}.az-entry[hidden],.az-letter[hidden]{display:block!important}}
