/* Desk Body Biomechanics — online reader · MMSx Authority Institute */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Source+Sans+3:wght@400;600;700&display=swap');
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#efe9db;color:#23272e;font-family:'EB Garamond',Georgia,serif;font-size:18px;line-height:1.75}
a{color:#0f2341}
.sans{font-family:'Source Sans 3',system-ui,sans-serif}
img{max-width:100%}

/* ---------- top bar + progress (reader) ---------- */
.topbar{position:sticky;top:0;z-index:20;background:#0f2341;color:#f3efe6;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:12px 18px;border-bottom:2px solid #c9a84c}
.topbar a.home{color:#f3efe6;text-decoration:none;font-family:'Source Sans 3',sans-serif;font-weight:600;font-size:.82rem;letter-spacing:.04em}
.topbar a.home:hover{color:#e7c869}
.topbar .bookname{font-family:'Source Sans 3',sans-serif;font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;color:#cdb56a}
.topbar .chx{font-family:'Source Sans 3',sans-serif;font-size:.78rem;color:#aeb6c4;white-space:nowrap}
.prog{position:absolute;left:0;right:0;bottom:-2px;height:2px;background:transparent}
.prog i{display:block;height:100%;width:0;background:#c9a84c;transition:width .15s ease-out}

/* ---------- reading column ---------- */
.page{max-width:720px;margin:30px auto 64px;background:#fbf9f3;border:1px solid #e6ddc8;border-radius:3px;
  box-shadow:0 1px 0 #fff inset,0 8px 30px rgba(15,35,65,.07);padding:54px 60px}
.part-eyebrow{font-family:'Source Sans 3',sans-serif;text-transform:uppercase;letter-spacing:.18em;font-weight:700;
  font-size:.72rem;color:#a9842f;margin:0 0 14px}
h1.ch-title{font-weight:600;color:#0f2341;font-size:2.3rem;line-height:1.14;margin:.1em 0 .5em;letter-spacing:-.01em}
.lead{font-style:italic;color:#3c4350;font-size:1.22rem;line-height:1.55;border-left:3px solid #c9a84c;padding-left:18px;margin:0 0 2.2em}
.page h2{font-weight:600;color:#0f2341;font-size:1.5rem;line-height:1.25;margin:2.1em 0 .15em;padding-bottom:.28em;position:relative}
.page h2::after{content:"";position:absolute;left:0;bottom:0;width:42px;height:2px;background:#c9a84c}
.page h3{font-weight:600;color:#13294a;font-size:1.22rem;margin:1.6em 0 .2em}
.page h4{font-family:'Source Sans 3',sans-serif;font-weight:700;color:#0f2341;font-size:.92rem;letter-spacing:.02em;margin:1.3em 0 .3em}
.page p{margin:0 0 1.1em}
.page p.quote{font-style:italic;color:#3c4350;border-left:3px solid #e0d8c4;padding-left:16px}
b,strong{font-weight:600;color:#1a2330}

/* ---------- figures ---------- */
figure{margin:2.1em 0;text-align:center}
figure img{border:1px solid #e3ddca;border-radius:3px;background:#f8f6f0;padding:6px}
figcaption{font-family:'Source Sans 3',sans-serif;font-size:.84rem;color:#5a6472;font-style:normal;line-height:1.5;margin-top:.7em;text-align:left}

/* ---------- tables ---------- */
.tablewrap{overflow-x:auto;margin:1.6em 0}
table{border-collapse:collapse;width:100%;font-family:'Source Sans 3',sans-serif;font-size:.9rem}
thead th{background:#0f2341;color:#fff;text-align:left;font-weight:600;padding:9px 12px;vertical-align:top}
tbody td{padding:8px 12px;border-bottom:1px solid #e6ddc8;vertical-align:top;color:#2b333f}
tbody tr:nth-child(even){background:#f5f1e7}
p.tcap{font-family:'Source Sans 3',sans-serif;font-size:.84rem;color:#5a6472;margin:.45em 0 1.4em}

/* ---------- callout boxes ---------- */
.box{margin:1.7em 0;padding:16px 20px;border-radius:5px}
.box .bx-label{font-family:'Source Sans 3',sans-serif;text-transform:uppercase;letter-spacing:.14em;font-weight:700;font-size:.66rem;margin-bottom:4px}
.box h4{margin:.1em 0 .4em}
.box p{margin:0 0 .6em}.box p:last-child{margin-bottom:0}
.box.fact{background:#f5f1e6;border-left:4px solid #c9a84c}
.box.fact .bx-label{color:#a9842f}
.box.principle{background:#eef2f8;border-left:4px solid #0f2341}
.box.principle .bx-label{color:#0f2341}
.box.practice{background:#fbf9f3;border:1px solid #e6ddc8;border-left:4px solid #c9a84c}
.box.practice .bx-label{color:#a9842f}

/* ---------- chapter-end summary (signature) ---------- */
.summary{margin:2.4em 0 1em;background:#0f2341;color:#eef1f6;padding:22px 26px;border-radius:7px}
.summary h3{font-family:'Source Sans 3',sans-serif;text-transform:uppercase;letter-spacing:.16em;font-size:.8rem;font-weight:700;color:#cdb56a;margin:0 0 .7em}
.summary ul{margin:0;padding-left:1.1em}
.summary li{margin:.5em 0;line-height:1.55}
.summary li::marker{color:#c9a84c}

/* ---------- references ---------- */
.refs{margin-top:2.6em;border-top:1px solid #e6ddc8;padding-top:1.2em}
.refs h3{font-family:'Source Sans 3',sans-serif;text-transform:uppercase;letter-spacing:.14em;font-size:.82rem;color:#0f2341;margin:0 0 .7em}
.ref{font-family:'Source Sans 3',sans-serif;font-size:.84rem;color:#4a5260;line-height:1.5;padding-left:1.5em;text-indent:-1.5em;margin:.45em 0}

/* ---------- chapter nav ---------- */
.chapnav{display:flex;gap:14px;margin:3em 0 1em}
.navbtn{flex:1;display:flex;flex-direction:column;gap:3px;text-decoration:none;color:#0f2341;background:#fbf9f3;
  border:1px solid #d9cfb6;border-radius:7px;padding:14px 16px;transition:border-color .15s,background .15s,transform .15s}
.navbtn:hover{border-color:#c9a84c;background:#f5f1e6;transform:translateY(-1px)}
.navbtn.next{text-align:right}
.navbtn .dir{font-family:'Source Sans 3',sans-serif;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;color:#9a8550;font-weight:700}
.navbtn .t{font-size:1.02rem;line-height:1.25;color:#13294a}
.navbtn.disabled{opacity:.62}

.sitefoot{text-align:center;font-family:'Source Sans 3',sans-serif;font-size:.78rem;color:#6b7280;padding:26px 18px 40px;border-top:1px solid #e6ddc8;background:#efe9db}
.sitefoot b{color:#0f2341}

:focus-visible{outline:2px solid #c9a84c;outline-offset:2px;border-radius:2px}

/* ================= DASHBOARD ================= */
.hero{background:#0f2341;color:#eef1f6;padding:64px 24px 56px;text-align:center;position:relative;border-bottom:3px solid #c9a84c}
.hero-eyebrow{font-family:'Source Sans 3',sans-serif;text-transform:uppercase;letter-spacing:.22em;font-weight:700;font-size:.72rem;color:#cdb56a;margin:0 0 18px}
.hero h1{font-weight:600;font-size:3.1rem;line-height:1.08;margin:0 auto;max-width:14ch;letter-spacing:-.015em;color:#fff}
.hero-sub{font-style:italic;color:#b9c2d2;font-size:1.2rem;max-width:42ch;margin:18px auto 0;line-height:1.45}
.thesis{max-width:30rem;margin:30px auto 6px;font-size:1.34rem;line-height:1.5;color:#f1e6c7;border-left:3px solid #c9a84c;padding:6px 0 6px 20px;text-align:left}
.hero-meta{font-family:'Source Sans 3',sans-serif;font-size:.82rem;letter-spacing:.04em;color:#9aa4b6;margin-top:24px}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.btn{font-family:'Source Sans 3',sans-serif;font-weight:700;font-size:.92rem;letter-spacing:.02em;text-decoration:none;
  padding:13px 26px;border-radius:7px;transition:transform .15s,background .15s,border-color .15s}
.btn-primary{background:#c9a84c;color:#0f2341}
.btn-primary:hover{background:#d9bb63;transform:translateY(-1px)}
.btn-ghost{border:1px solid #51607a;color:#eef1f6}
.btn-ghost:hover{border-color:#c9a84c;color:#fff}

.progress-summary{max-width:860px;margin:0 auto;padding:20px 24px 0;display:flex;align-items:center;gap:14px;
  font-family:'Source Sans 3',sans-serif;font-size:.85rem;color:#4a5260}
.dashbar-track{flex:1;height:6px;background:#e1d9c6;border-radius:6px;overflow:hidden}
#dashbar{display:block;height:100%;width:0;background:#c9a84c;transition:width .3s}

.contents{max-width:860px;margin:0 auto;padding:18px 24px 70px}
.part{margin:38px 0}
.part-head{border-top:1px solid #d9cfb6;padding-top:18px;margin-bottom:6px}
.part-eyebrow{margin:0 0 6px}
.part-head h2{font-weight:600;color:#0f2341;font-size:1.7rem;margin:0 0 .2em;line-height:1.18}
.part-stand{font-family:'Source Sans 3',sans-serif;color:#5a6472;font-size:.95rem;line-height:1.55;margin:0;max-width:60ch}
.chapter-list{margin-top:10px}
.chap-row{display:flex;align-items:flex-start;gap:18px;padding:15px 14px;border-bottom:1px solid #e6ddc8;
  text-decoration:none;color:#13294a;border-left:3px solid transparent;transition:background .15s,border-color .15s}
.chap-row:hover{background:#faf6ec;border-left-color:#c9a84c}
.chap-row .num{font-family:'EB Garamond',serif;font-weight:600;font-size:1.7rem;color:#a9842f;min-width:1.8em;text-align:right;line-height:1.1}
.chap-row .meta{flex:1;display:flex;flex-direction:column;gap:2px}
.chap-row .meta .t{font-size:1.16rem;line-height:1.25;color:#13294a}
.chap-row .meta .d{font-family:'Source Sans 3',sans-serif;font-size:.85rem;color:#6b7280;line-height:1.45}
.chap-row .state{min-width:20px;align-self:center;text-align:center;color:#cdb56a;font-family:'Source Sans 3',sans-serif;font-size:.95rem}
.chap-row .state::before{content:"○";color:#cbbf9f}
.chap-row.read .state::before{content:"✓";color:#0f2341}
.chap-row.read .meta .t{color:#384150}

@media (max-width:640px){
  body{font-size:17px}
  .page{padding:26px 20px;margin:16px auto 40px;border-radius:0;border-left:0;border-right:0}
  h1.ch-title{font-size:1.8rem}
  .lead{font-size:1.12rem}
  .page h2{font-size:1.32rem}
  .topbar .bookname{display:none}
  .hero{padding:48px 18px 40px}
  .hero h1{font-size:2.2rem}
  .thesis{font-size:1.15rem}
  .chapnav{flex-direction:column}
  .navbtn.next{text-align:left}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
