
:root{--ink:#18342b;--muted:#68756f;--paper:#fbfaf7;--white:#fff;--accent:#2f6b58;--soft:#eaf2ee;--gold:#b88447;--line:#dfe5e1}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Georgia,'Times New Roman',serif;line-height:1.72}
.site-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:18px 5vw;background:rgba(251,250,247,.96);border-bottom:1px solid var(--line)}
.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink)}.brandmark{width:38px;height:38px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font:700 18px Arial}
.brand strong{display:block;font:700 18px Arial}.brand small{display:block;color:var(--muted);font:12px Arial;margin-top:3px}
.site-header nav{display:flex;gap:22px}.site-header nav a{color:var(--ink);text-decoration:none;font:600 13px Arial}
#progress{position:fixed;top:75px;left:0;height:3px;background:var(--gold);width:0;z-index:20}
.shell{max-width:1240px;margin:auto;padding:55px 5vw 90px;display:grid;grid-template-columns:230px minmax(0,760px);gap:70px;justify-content:center}
aside{position:sticky;top:120px;align-self:start;border-left:2px solid var(--line);padding-left:18px;font:14px/1.45 Arial}aside a,aside span{display:block;margin:10px 0}aside a{text-decoration:none;color:var(--ink);font-weight:700}aside span{color:#99a29e}.side-title,.kicker,.tablelabel{font:800 11px Arial;letter-spacing:.15em;color:var(--gold)}
h1{font-size:clamp(42px,5vw,68px);line-height:1.02;letter-spacing:-.035em;margin:0 0 20px}h2{font-size:30px;line-height:1.2;margin:55px 0 16px}h3{font-size:22px;line-height:1.25;margin:34px 0 10px}
p,li{font-size:18px}.lede{font-size:26px;color:var(--accent);margin:0 0 36px}.habit-title{background:var(--soft);padding:26px;border-radius:16px}.conclusion-title{border-top:4px solid var(--gold);padding-top:28px}.ref{font-size:15px;color:#44524d}
.hero{display:grid;grid-template-columns:1.3fr .7fr;gap:50px;align-items:center;padding:20px 0 35px}.hero-tag{font-size:30px;color:var(--accent)}.hero-copy{font-size:20px}.feature{background:var(--accent);color:white;border-radius:24px;padding:34px}.feature span{font:800 70px Arial;opacity:.25}.feature h2{margin:5px 0 10px}.feature a{color:white}
.actions{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-block;border:1px solid var(--accent);color:var(--accent);text-decoration:none;border-radius:999px;padding:12px 18px;font:700 14px Arial}.btn.primary{background:var(--accent);color:white}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.cards>div{background:white;border:1px solid var(--line);border-radius:18px;padding:25px}.cards .featured{background:var(--soft)}.cards h2{font-size:24px;margin:12px 0}.cards p{font-size:16px}.cards b{color:var(--gold);font:800 12px Arial}.cards a{color:var(--accent);font-weight:700;text-decoration:none}
footer{border-top:1px solid var(--line);padding:30px 5vw 50px;display:flex;justify-content:space-between;color:var(--muted);font:13px Arial}
@media(max-width:900px){.site-header nav,aside{display:none}.shell{grid-template-columns:1fr;padding-top:35px}.hero,.cards{grid-template-columns:1fr}footer{flex-direction:column;gap:8px}}

.card-subhead{font-size:18px;line-height:1.3;margin:14px 0 8px;color:var(--accent)}

.card-subhead{
  font-size:18px;
  line-height:1.3;
  margin:14px 0 8px;
  color:var(--accent);
}
.references{margin-top:18px;padding-top:8px}
.references ol{padding-left:24px}
.references li{margin:0 0 22px;font-size:15px;line-height:1.6;color:#44524d}
.ref-links{margin-top:5px;font-family:Arial,sans-serif;font-size:13px;font-weight:700}
.ref-links a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(47,107,88,.35)}
.ref-links a:hover{border-bottom-color:var(--accent)}


.author-name{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font:600 12px Arial,sans-serif;
  letter-spacing:.02em;
}
.table-block{
  margin:28px 0 38px;
}
.table-scroll{
  overflow-x:auto;
}
.hydration-table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
  background:#fff;
  border:1px solid var(--line);
}
.hydration-table th,
.hydration-table td{
  padding:13px 15px;
  border:1px solid #cfd8d3;
  text-align:left;
  vertical-align:top;
}
.hydration-table th{
  background:var(--accent);
  color:white;
  font:700 14px Arial,sans-serif;
}
.hydration-table td{
  font-size:16px;
  line-height:1.45;
}
.table-caption{
  margin-top:8px;
  font-size:15px;
  color:var(--muted);
}
.habit-arrow-list{
  list-style:none;
  padding-left:0;
  margin:18px 0 28px;
}
.habit-arrow-list li{
  position:relative;
  padding-left:34px;
  margin:13px 0;
  font-size:18px;
  line-height:1.55;
}
.habit-arrow-list li::before{
  content:"➤";
  position:absolute;
  left:0;
  top:-1px;
  color:#3f7f2f;
  font-family:Arial,sans-serif;
  font-size:20px;
  font-weight:400;
}


.tablelabel{
  font-size:14px;
  font-weight:800;
  letter-spacing:.10em;
  color:var(--gold);
  margin-bottom:8px;
}
.cite{
  font-family:Arial,sans-serif;
  font-size:.62em;
  line-height:0;
  vertical-align:super;
  margin-left:2px;
}
.cite a{
  color:var(--accent);
  text-decoration:none;
  font-weight:800;
}
.cite a:hover{
  text-decoration:underline;
}
.habit-heading{
  background:var(--soft);
  border-radius:16px;
  padding:24px 26px;
  margin:55px 0 20px;
}



.hero-tag span{
  display:block;
}


/* Section accent system */
:root{
  --pa:#557A8B;
  --pa-soft:#edf3f6;
  --nutrition:#2F6B58;
  --nutrition-soft:#eaf2ee;
  --recovery:#76658C;
  --recovery-soft:#f1edf5;
}

/* Unified chapter ending hierarchy */
.section-label{
  font-size:30px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.02em;
  margin-bottom:7px;
}
.section-action{
  font-size:30px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
}
.habit-heading,
.conclusion-heading{
  border-radius:16px;
  padding:24px 26px;
  margin:55px 0 20px;
}
.habit-heading{
  background:var(--nutrition-soft);
}
.conclusion-heading{
  background:#f3ecdf;
}
.theme-nutrition .habit-label,
.theme-nutrition .conclusion-label{
  color:var(--nutrition);
}

/* Home section cards */
.section-card{
  border-top:5px solid transparent;
}
.cards > div.pa-card{
  border-top-color:var(--pa);
  background:#e7f0f4;
}
.cards > div.nutrition-card{
  border-top-color:var(--nutrition);
  background:#e6f0eb;
}
.cards > div.recovery-card{
  border-top-color:var(--recovery);
  background:#eee8f3;
}
.pa-card .card-subhead,
.pa-card a{
  color:var(--pa);
}
.nutrition-card .card-subhead,
.nutrition-card a{
  color:var(--nutrition);
}
.recovery-card .card-subhead,
.recovery-card a{
  color:var(--recovery);
}
.pa-card b{ color:var(--pa); }
.nutrition-card b{ color:var(--nutrition); }
.recovery-card b{ color:var(--recovery); }

/* Nutrition section page accents */
.theme-nutrition .kicker,
.theme-nutrition .side-title,
.theme-nutrition .tablelabel{
  color:var(--nutrition);
}
.theme-nutrition .brandmark{
  background:var(--nutrition);
}
.theme-nutrition .habit-arrow-list li::before{
  color:var(--nutrition);
}

.cards > div.section-card.featured{
  background:#e6f0eb;
}


/* ===== Homepage v9 additions ===== */
.main-nav{
  display:flex;
  gap:22px;
  align-items:center;
}
.main-nav a{
  color:var(--ink);
  text-decoration:none;
  font:600 13px Arial,sans-serif;
}

/* Full-book collapsible navigation */
.book-nav{
  position:sticky;
  top:120px;
  align-self:start;
  border-left:2px solid var(--line);
  padding-left:18px;
  font:13px/1.45 Arial,sans-serif;
  max-height:calc(100vh - 145px);
  overflow:auto;
  scrollbar-width:thin;
}
.book-nav-title{
  font:800 11px Arial,sans-serif;
  letter-spacing:.15em;
  color:var(--gold);
  margin-bottom:14px;
}
.book-intro-link{
  display:block;
  margin:8px 0 13px;
  color:var(--ink);
  text-decoration:none;
  font-weight:800;
}
.toc-group{
  border-top:1px solid var(--line);
  padding:9px 0;
}
.toc-group summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
  position:relative;
  padding-right:18px;
}
.toc-group summary::-webkit-details-marker{display:none}
.toc-group summary::after{
  content:"›";
  position:absolute;
  right:2px;
  top:-1px;
  font-size:18px;
  transition:transform .18s ease;
}
.toc-group[open] summary::after{transform:rotate(90deg)}
.pa-group summary{color:var(--pa)}
.nutrition-group summary{color:var(--nutrition)}
.recovery-group summary{color:var(--recovery)}
.toc-items{
  padding:8px 0 2px 10px;
}
.toc-items a,
.toc-items span,
.toc-endmatter span{
  display:block;
  margin:7px 0;
  color:#7f8a85;
  text-decoration:none;
  line-height:1.3;
}
.toc-items a{color:var(--ink);font-weight:700}
.toc-endmatter{
  border-top:1px solid var(--line);
  margin-top:6px;
  padding-top:9px;
}

/* Core principles */
.principles-section{
  margin-top:76px;
  padding-top:10px;
}
.section-intro{
  max-width:690px;
}
.section-intro h2,
.small-habits-section h2{
  margin:10px 0 16px;
}
.section-intro p,
.small-habits-section p{
  max-width:720px;
}
.principles-visual{
  position:relative;
  width:min(700px,100%);
  height:610px;
  margin:44px auto 34px;
}
.principles-center,
.principle-bubble{
  position:absolute;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.principles-center{
  width:220px;
  height:220px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:var(--ink);
  color:white;
  z-index:5;
  box-shadow:0 18px 40px rgba(24,52,43,.18);
  flex-direction:column;
}
.principles-center small{
  font:800 10px Arial,sans-serif;
  letter-spacing:.16em;
  opacity:.72;
  margin-bottom:8px;
}
.principles-center strong{
  font-size:31px;
  line-height:1.02;
}
.principle-bubble{
  width:215px;
  height:215px;
  border:2px solid rgba(47,107,88,.28);
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 24px rgba(24,52,43,.06);
  z-index:2;
  padding:26px;
}
.principle-bubble span{
  font:800 17px/1.25 Arial,sans-serif;
}
.p1{left:50%;top:0;transform:translateX(-50%);border-color:rgba(47,107,88,.38)}
.p2{right:1%;top:25%;border-color:rgba(85,122,139,.38)}
.p3{right:12%;bottom:0;border-color:rgba(118,101,140,.40)}
.p4{left:12%;bottom:0;border-color:rgba(184,132,71,.42)}
.p5{left:1%;top:25%;border-color:rgba(47,107,88,.38)}

.principle-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:26px;
}
.principle-list article{
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
}
.principle-list article:last-child{
  grid-column:1 / -1;
}
.principle-list b{
  width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  font:800 12px Arial,sans-serif;
}
.principle-list h3{
  font-size:18px;
  margin:0 0 6px;
}
.principle-list p{
  font-size:15px;
  line-height:1.5;
  margin:0;
  color:#51605a;
}
.small-habits-section{
  margin-top:72px;
  padding:34px;
  border-radius:20px;
  background:#f3ecdf;
  border-left:5px solid var(--gold);
}
.small-habits-section h2{
  font-size:34px;
}
.small-habits-section p{
  font-size:18px;
  margin-bottom:0;
}

/* Desktop home shell gets a little wider for the new content */
.theme-home .shell{
  grid-template-columns:250px minmax(0,820px);
}

/* Mobile */
@media(max-width:900px){
  .book-nav{display:none}
  .main-nav{display:none}
  .principles-visual{
    height:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
  .principles-center,
  .principle-bubble{
    position:static;
    transform:none;
    width:100%;
    height:auto;
    min-height:105px;
    border-radius:18px;
  }
  .principles-center{
    min-height:150px;
    order:-1;
  }
  .principle-list{
    grid-template-columns:1fr;
  }
  .principle-list article:last-child{
    grid-column:auto;
  }
}


/* ===== Homepage v10 core principles refinement ===== */
.principles-visual{
  position:relative;
  width:min(760px,100%);
  height:640px;
  margin:46px auto 34px;
}

.principles-center{
  width:220px;
  height:220px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:var(--ink);
  color:white;
  z-index:5;
  box-shadow:0 18px 40px rgba(24,52,43,.18);
}
.principles-center strong{
  font-size:31px;
  line-height:1.02;
}

.principle-bubble{
  position:absolute;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:200px;
  height:200px;
  border:2px solid rgba(47,107,88,.25);
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 24px rgba(24,52,43,.06);
  padding:24px;
  z-index:2;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.principle-bubble span{
  font:800 17px/1.25 Arial,sans-serif;
  color:var(--ink);
}
.principle-bubble:focus{
  outline:3px solid rgba(47,107,88,.25);
  outline-offset:4px;
}
.principle-bubble .bubble-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 14px);
  transform:translateX(-50%);
  width:250px;
  background:var(--ink);
  color:#fff;
  border-radius:14px;
  padding:14px 16px;
  font:13px/1.45 Arial,sans-serif;
  box-shadow:0 18px 34px rgba(24,52,43,.18);
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease, visibility .18s ease, transform .18s ease;
  pointer-events:none;
  z-index:8;
}
.principle-bubble .bubble-tooltip::after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  transform:translateX(-50%);
  border:8px solid transparent;
  border-top-color:var(--ink);
}
.principle-bubble:hover .bubble-tooltip,
.principle-bubble:focus .bubble-tooltip,
.principle-bubble.open .bubble-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(-2px);
}

/* Better orbital placement */
.p1{left:50%; top:10px; transform:translateX(-50%); border-color:rgba(47,107,88,.35);}
.p2{right:26px; top:130px; border-color:rgba(85,122,139,.38);}
.p3{right:86px; bottom:28px; border-color:rgba(118,101,140,.38);}
.p4{left:86px; bottom:28px; border-color:rgba(184,132,71,.42);}
.p5{left:26px; top:130px; border-color:rgba(47,107,88,.35);}

.principle-grid{
  margin-top:26px;
}
.principle-row{
  display:grid;
  gap:16px;
}
.principle-row-top{
  grid-template-columns:repeat(3,1fr);
  margin-bottom:16px;
}
.principle-row-bottom{
  grid-template-columns:repeat(2,minmax(260px,1fr));
  justify-content:center;
  max-width:780px;
  margin:0 auto;
}
.principle-row article{
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
}
.principle-row b{
  width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  font:800 12px Arial,sans-serif;
}
.principle-row h3{
  font-size:18px;
  margin:0 0 6px;
}
.principle-row p{
  font-size:15px;
  line-height:1.5;
  margin:0;
  color:#51605a;
}

@media(max-width:900px){
  .principles-visual{
    height:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
  .principles-center,
  .principle-bubble{
    position:static;
    transform:none;
    width:100%;
    height:auto;
    min-height:105px;
    border-radius:18px;
  }
  .principles-center{
    min-height:150px;
    order:-1;
  }
  .principle-bubble .bubble-tooltip{
    position:static;
    transform:none;
    width:auto;
    margin-top:12px;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    display:none;
  }
  .principle-bubble .bubble-tooltip::after{
    display:none;
  }
  .principle-bubble.open .bubble-tooltip{
    display:block;
  }
  .principle-row-top,
  .principle-row-bottom{
    grid-template-columns:1fr;
    max-width:none;
  }
}


/* ===== Homepage v11 refinements ===== */

/* Make CORE PRINCIPLES more prominent */
.principles-section .kicker{
  font-size:14px;
  font-weight:900;
  letter-spacing:.18em;
}

/* Tighten layout and improve symmetry */
.principles-visual{
  width:min(760px,100%);
  height:680px;
  margin:46px auto 40px;
}

/* Central circle with a subtle balanced / yin-yang-inspired sweep */
.principles-center{
  width:220px;
  height:220px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  overflow:hidden;
  background:
    radial-gradient(circle at 36% 34%, rgba(255,255,255,.07) 0 18%, transparent 19% 100%),
    radial-gradient(circle at 68% 68%, rgba(0,0,0,.08) 0 18%, transparent 19% 100%),
    linear-gradient(140deg, #10392f 0%, #123f34 52%, #0f3229 100%);
}
.principles-center::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:
    radial-gradient(circle at 40% 32%, rgba(255,255,255,.05) 0 12%, transparent 13% 100%),
    radial-gradient(circle at 60% 68%, rgba(255,255,255,.03) 0 10%, transparent 11% 100%),
    conic-gradient(from 220deg, rgba(255,255,255,.05), rgba(255,255,255,0) 35%, rgba(0,0,0,.10) 72%, rgba(255,255,255,0) 100%);
  pointer-events:none;
}
.principles-center strong{
  position:relative;
  z-index:2;
}

/* Outer circles: symmetrical placement and subtle tinted shading */
.principle-bubble{
  width:195px;
  height:195px;
  padding:22px;
  box-shadow:0 10px 24px rgba(24,52,43,.06);
}

.principle-bubble span{
  font-size:16px;
}

/* perfect-ish orbit around the center */
.p1{
  left:50%;
  top:18px;
  transform:translateX(-50%);
  border-color:rgba(47,107,88,.36);
  background:radial-gradient(circle at 35% 30%, rgba(47,107,88,.07), rgba(255,255,255,.95) 62%);
}
.p2{
  left:calc(50% + 150px);
  top:126px;
  transform:translateX(-50%);
  border-color:rgba(85,122,139,.40);
  background:radial-gradient(circle at 35% 30%, rgba(85,122,139,.08), rgba(255,255,255,.95) 62%);
}
.p3{
  left:calc(50% + 118px);
  top:420px;
  transform:translateX(-50%);
  border-color:rgba(118,101,140,.40);
  background:radial-gradient(circle at 35% 30%, rgba(118,101,140,.09), rgba(255,255,255,.95) 62%);
}
.p4{
  left:calc(50% - 118px);
  top:420px;
  transform:translateX(-50%);
  border-color:rgba(184,132,71,.42);
  background:radial-gradient(circle at 35% 30%, rgba(184,132,71,.09), rgba(255,255,255,.95) 62%);
}
.p5{
  left:calc(50% - 150px);
  top:126px;
  transform:translateX(-50%);
  border-color:rgba(47,107,88,.36);
  background:radial-gradient(circle at 35% 30%, rgba(47,107,88,.07), rgba(255,255,255,.95) 62%);
}

/* Slightly cleaner symmetry below */
.principle-grid{
  margin-top:32px;
}
.principle-row-top{
  grid-template-columns:repeat(3,1fr);
  align-items:stretch;
}
.principle-row-bottom{
  grid-template-columns:repeat(2, minmax(280px, 360px));
  justify-content:center;
  gap:16px;
  max-width:760px;
  margin:0 auto;
}

@media(max-width:900px){
  .principles-visual{
    height:auto;
  }
  .principle-bubble{
    width:100%;
    height:auto;
    min-height:110px;
    transform:none !important;
  }
}


/* ===== Homepage v12 symmetry + color refinement ===== */

/* Stronger tint and a true radial orbit */
.principles-visual{
  width:min(780px,100%);
  height:690px;
  margin:46px auto 40px;
}
.principles-center{
  width:220px;
  height:220px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

/* Outer circles keep same size but use slightly stronger tint */
.principle-bubble{
  width:198px;
  height:198px;
  padding:22px;
}
.principle-bubble span{
  font-size:16px;
}

/* True five-point orbit around the center */
.p1{
  left:50%;
  top:28px;
  transform:translateX(-50%);
  border-color:rgba(47,107,88,.48);
  background:radial-gradient(circle at 34% 28%, rgba(47,107,88,.13), rgba(255,255,255,.94) 60%);
}
.p2{
  left:calc(50% + 214px);
  top:184px;
  transform:translateX(-50%);
  border-color:rgba(85,122,139,.48);
  background:radial-gradient(circle at 34% 28%, rgba(85,122,139,.14), rgba(255,255,255,.94) 60%);
}
.p3{
  left:calc(50% + 132px);
  top:438px;
  transform:translateX(-50%);
  border-color:rgba(118,101,140,.50);
  background:radial-gradient(circle at 34% 28%, rgba(118,101,140,.15), rgba(255,255,255,.94) 60%);
}
.p4{
  left:calc(50% - 132px);
  top:438px;
  transform:translateX(-50%);
  border-color:rgba(184,132,71,.50);
  background:radial-gradient(circle at 34% 28%, rgba(184,132,71,.15), rgba(255,255,255,.94) 60%);
}
.p5{
  left:calc(50% - 214px);
  top:184px;
  transform:translateX(-50%);
  border-color:rgba(47,107,88,.48);
  background:radial-gradient(circle at 34% 28%, rgba(47,107,88,.13), rgba(255,255,255,.94) 60%);
}

/* Matching colors for explanation cards below */
.principle-row article{
  border-width:2px;
}
.principle-row-top article:nth-child(1){
  border-color:rgba(47,107,88,.35);
  background:rgba(47,107,88,.05);
}
.principle-row-top article:nth-child(2){
  border-color:rgba(85,122,139,.35);
  background:rgba(85,122,139,.05);
}
.principle-row-top article:nth-child(3){
  border-color:rgba(118,101,140,.35);
  background:rgba(118,101,140,.05);
}
.principle-row-bottom article:nth-child(1){
  border-color:rgba(184,132,71,.38);
  background:rgba(184,132,71,.055);
}
.principle-row-bottom article:nth-child(2){
  border-color:rgba(47,107,88,.35);
  background:rgba(47,107,88,.05);
}

.principle-row-top article:nth-child(1) b,
.principle-row-bottom article:nth-child(2) b{
  background:rgba(47,107,88,.12);
  color:#2f6b58;
}
.principle-row-top article:nth-child(2) b{
  background:rgba(85,122,139,.12);
  color:#557A8B;
}
.principle-row-top article:nth-child(3) b{
  background:rgba(118,101,140,.12);
  color:#76658C;
}
.principle-row-bottom article:nth-child(1) b{
  background:rgba(184,132,71,.12);
  color:#B88447;
}

@media(max-width:900px){
  .principles-visual{
    height:auto;
  }
  .principle-bubble{
    width:100%;
    height:auto;
    min-height:110px;
    transform:none !important;
  }
}


/* ===== Homepage v13 tooltip fix ===== */
/* Bottom two principle circles show their explanation BELOW the circle
   so the tooltip does not overlap the central Habits to Thrive circle. */
.p3 .bubble-tooltip,
.p4 .bubble-tooltip{
  bottom:auto;
  top:calc(100% + 14px);
}

.p3 .bubble-tooltip::after,
.p4 .bubble-tooltip::after{
  top:auto;
  bottom:100%;
  border-top-color:transparent;
  border-bottom-color:var(--ink);
}

/* Keep tooltip transitions clean for bottom circles */
.p3:hover .bubble-tooltip,
.p3:focus .bubble-tooltip,
.p3.open .bubble-tooltip,
.p4:hover .bubble-tooltip,
.p4:focus .bubble-tooltip,
.p4.open .bubble-tooltip{
  transform:translateX(-50%) translateY(2px);
}


/* ===== Chapter 19 master-template refinements v14 ===== */
.chapter-kicker{
  font:800 15px/1.25 Arial,sans-serif;
  letter-spacing:.10em;
  color:var(--nutrition);
  text-transform:none;
  margin-bottom:18px;
}
.chapter-main-title{
  font-weight:800;
  color:var(--ink);
  margin-bottom:10px;
}
.chapter-subtitle{
  font-size:27px;
  line-height:1.3;
  font-weight:700;
  color:var(--nutrition);
  margin:0 0 34px;
}
.hydration-table .situation-col{width:26%;}
.hydration-table .consideration-col{width:74%;}
.hydration-table td{
  font-size:17px;
  line-height:1.42;
  font-weight:500;
}
.hydration-table th{
  font-size:15px;
  font-weight:800;
}
.tablelabel{
  font-size:15px;
  font-weight:900;
  letter-spacing:.09em;
}


/* ===== Chapter 19 title hierarchy v15 ===== */
.chapter-kicker{
  font:900 18px/1.2 Arial,sans-serif;
  letter-spacing:.075em;
  color:var(--nutrition);
  margin-bottom:20px;
}
.chapter-main-title{
  font-weight:900;
  font-size:clamp(48px,5.4vw,74px);
  line-height:.98;
  letter-spacing:-.045em;
  color:var(--ink);
  margin-bottom:12px;
}
.chapter-subtitle{
  font-size:29px;
  line-height:1.25;
  font-weight:800;
  color:var(--nutrition);
  margin:0 0 28px;
}
.tldr-box{
  margin:26px 0 42px;
  padding:26px 28px;
  border-radius:16px;
  background:var(--nutrition-soft);
  border-left:5px solid var(--nutrition);
}
.tldr-box h2{
  margin:0 0 14px;
  font-size:27px;
  color:var(--nutrition);
}
.tldr-box p{
  margin:0 0 14px;
}
.tldr-box p:last-child{
  margin-bottom:0;
}


/* ===== Chapter 19 hierarchy correction v16 ===== */
.chapter-kicker{
  font:900 19px/1.2 Arial,sans-serif;
  letter-spacing:.075em;
  color:var(--nutrition);
  margin-bottom:22px;
}

.chapter-main-title{
  font-size:clamp(56px,6vw,82px);
  line-height:.96;
  font-weight:900;
  letter-spacing:-.05em;
  color:var(--ink);
  margin:0 0 12px;
}

.chapter-subtitle{
  font-size:30px;
  line-height:1.2;
  font-weight:800;
  color:var(--nutrition);
  margin:0 0 28px;
}

/* Chapter body headings should not compete with the chapter title */
.theme-nutrition article > h2{
  font-size:29px;
  line-height:1.18;
  font-weight:800;
  margin:50px 0 16px;
}

.theme-nutrition article > h3{
  font-size:22px;
  line-height:1.25;
  font-weight:800;
}

/* TL;DR stays highly visible but still below the chapter title */
.tldr-box{
  display:block;
  margin:30px 0 44px;
  padding:28px 30px;
  border-radius:18px;
  background:var(--nutrition-soft);
  border-left:6px solid var(--nutrition);
}

.tldr-box h2{
  font-size:27px !important;
  line-height:1.15;
  margin:0 0 14px !important;
  color:var(--nutrition);
  font-weight:900;
}

.tldr-box p{
  font-size:18px;
  line-height:1.62;
  margin:0 0 14px;
}

.tldr-box p:last-child{
  margin-bottom:0;
}


/* ===== Chapter 19 hierarchy fine-tuning v17 ===== */

/* Pull the chapter title back one step so it is dominant without overwhelming the page */
.chapter-main-title{
  font-size:clamp(50px,5.2vw,70px);
  line-height:1.00;
  font-weight:900;
  letter-spacing:-.04em;
  color:var(--ink);
  margin:0 0 12px;
}

/* Keep the descriptor clearly secondary */
.chapter-subtitle{
  font-size:27px;
  line-height:1.2;
  font-weight:800;
  color:var(--nutrition);
  margin:0 0 28px;
}

/* Reduce all major chapter section headings one step */
.theme-nutrition article > h2{
  font-size:25px;
  line-height:1.20;
  font-weight:800;
  margin:46px 0 14px;
}

/* Reduce subsection headings proportionally */
.theme-nutrition article > h3{
  font-size:20px;
  line-height:1.25;
  font-weight:800;
  margin:30px 0 10px;
}

/* TL;DR heading follows the same reduced hierarchy */
.tldr-box h2{
  font-size:24px !important;
  line-height:1.15;
  margin:0 0 12px !important;
  color:var(--nutrition);
  font-weight:900;
}


/* ===== Chapter 19 fine-tuning v18 ===== */
.chapter-main-title{
  font-size:clamp(46px,4.8vw,64px);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.035em;
  color:var(--ink);
  margin:0 0 12px;
}

.chapter-links{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 26px;
  margin:16px 0 38px;
}
.chapter-links ol{
  margin:0;
  padding-left:24px;
}
.chapter-links li{
  margin:8px 0;
  font-size:17px;
}
.chapter-links a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.chapter-links a:hover,
.chapter-links a:focus{
  color:var(--nutrition);
  border-bottom-color:var(--nutrition);
}


/* ===== Chapter 19 fine-tuning v19 ===== */
.chapter-main-title{
  font-size:clamp(43px,4.4vw,59px);
  line-height:1.03;
  font-weight:900;
  letter-spacing:-.03em;
  color:var(--ink);
  margin:0 0 12px;
}

/* Clickable "In This Chapter" navigation */
.chapter-links{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 26px;
  margin:16px 0 38px;
}
.chapter-links ol{
  margin:0;
  padding-left:24px;
}
.chapter-links li{
  margin:8px 0;
  font-size:17px;
}
.chapter-links a{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  border-bottom:1px solid transparent;
}
.chapter-links a:hover,
.chapter-links a:focus{
  color:var(--nutrition);
  border-bottom-color:var(--nutrition);
}


/* ===== Homepage micro-polish v20 ===== */

/* Chapter-agnostic hero feature card */
.hero .card b{
  font-size:72px;
  line-height:1;
  opacity:.24;
  letter-spacing:-.04em;
}
.hero .card h2{
  margin-top:12px;
}

/* Refine the center circle with a slightly clearer yin-yang-inspired balance,
   while keeping it abstract and editorial rather than literal. */
.principles-center{
  position:absolute;
  overflow:hidden;
  background:
    radial-gradient(circle at 34% 33%, rgba(255,255,255,.09) 0 16%, transparent 17% 100%),
    radial-gradient(circle at 67% 68%, rgba(0,0,0,.11) 0 16%, transparent 17% 100%),
    linear-gradient(145deg, #114538 0%, #0e3d31 52%, #0c352a 100%);
}
.principles-center::before{
  content:"";
  position:absolute;
  inset:16px;
  border-radius:50%;
  background:
    radial-gradient(circle at 38% 33%, rgba(255,255,255,.10) 0 13%, transparent 14% 100%),
    radial-gradient(circle at 63% 67%, rgba(255,255,255,.03) 0 10%, transparent 11% 100%),
    conic-gradient(from 210deg,
      rgba(255,255,255,.11) 0deg 78deg,
      rgba(255,255,255,0) 78deg 168deg,
      rgba(0,0,0,.15) 168deg 290deg,
      rgba(255,255,255,0) 290deg 360deg);
  mix-blend-mode:screen;
  opacity:.9;
  pointer-events:none;
}
.principles-center::after{
  content:"";
  position:absolute;
  inset:28px;
  border-radius:50%;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255,255,255,.07) 38% 58%, transparent 58% 100%),
    radial-gradient(circle at 70% 72%, rgba(0,0,0,.15) 0 24%, transparent 25% 100%),
    radial-gradient(circle at 34% 32%, rgba(255,255,255,.12) 0 24%, transparent 25% 100%);
  opacity:.65;
  pointer-events:none;
}
.principles-center strong{
  position:relative;
  z-index:2;
}

/* Make the homepage card label read more like a generic prompt, not a chapter number */
.hero .card{
  background:#357b62;
}


/* ===== Homepage refinement v21 ===== */

/* Clearer button strategy: one primary action only */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.actions .btn.primary{
  padding:14px 22px;
}

/* Keep the feature card as the "Start with a Habit" gateway */
.feature h2{
  margin:8px 0 12px;
}
.feature p{
  margin-bottom:24px;
}

/* Center circle: middle-ground yin/yang-inspired balance.
   More visible than the earlier version, softer than v20. */
.principles-center{
  position:absolute;
  overflow:hidden;
  background:
    radial-gradient(circle at 35% 34%, rgba(255,255,255,.07) 0 15%, transparent 16% 100%),
    radial-gradient(circle at 66% 68%, rgba(0,0,0,.08) 0 15%, transparent 16% 100%),
    linear-gradient(145deg, #114337 0%, #0f3d31 55%, #0d352b 100%);
}

.principles-center::before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:50%;
  background:
    conic-gradient(from 220deg,
      rgba(255,255,255,.08) 0deg 85deg,
      rgba(255,255,255,0) 85deg 170deg,
      rgba(0,0,0,.10) 170deg 290deg,
      rgba(255,255,255,0) 290deg 360deg),
    radial-gradient(circle at 38% 33%, rgba(255,255,255,.08) 0 12%, transparent 13% 100%),
    radial-gradient(circle at 62% 67%, rgba(255,255,255,.025) 0 10%, transparent 11% 100%);
  opacity:.8;
  pointer-events:none;
}

.principles-center::after{
  content:"";
  position:absolute;
  inset:34px;
  border-radius:50%;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(255,255,255,.06) 40% 55%, transparent 55% 100%),
    radial-gradient(circle at 69% 72%, rgba(0,0,0,.10) 0 22%, transparent 23% 100%);
  opacity:.45;
  pointer-events:none;
}

.principles-center strong{
  position:relative;
  z-index:2;
}


/* ===== Book Introduction v23 ===== */

.theme-introduction .brandmark{
  background:var(--ink);
}
.theme-introduction .shell{
  grid-template-columns:250px minmax(0,820px);
}
.intro-article{
  min-width:0;
}
.intro-hero{
  margin:4px 0 34px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}
.intro-hero h1{
  margin-bottom:8px;
}
.intro-subtitle{
  margin:0;
  color:var(--accent);
  font-size:27px;
  line-height:1.25;
  font-weight:700;
}
.intro-article > p,
.intro-article section > p{
  max-width:790px;
}
.intro-emphasis{
  font-size:21px;
  line-height:1.62;
  color:var(--accent);
  border-left:4px solid var(--gold);
  padding:7px 0 7px 22px;
  margin:32px 0;
}
.intro-article h2{
  font-size:27px;
  margin-top:52px;
  scroll-margin-top:105px;
}

/* Five-principle overview */
.intro-principles-section{
  margin-top:74px;
  padding-top:8px;
}
.intro-principles-section > h2{
  margin:8px 0 12px;
  font-size:31px;
}
.intro-principle-cards{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
  margin:34px 0 58px;
}
.intro-principle-card{
  position:relative;
  grid-column:span 2;
  min-height:186px;
  padding:25px 24px 22px;
  background:#fff;
  border:1px solid var(--line);
  border-top:5px solid var(--accent);
  border-radius:18px;
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 8px 24px rgba(24,52,43,.045);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.intro-principle-card:nth-child(4){grid-column:2 / span 2}
.intro-principle-card:nth-child(5){grid-column:4 / span 2}
.intro-principle-card:hover,
.intro-principle-card:focus{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(24,52,43,.09);
}
.intro-principle-card .principle-number{
  display:block;
  font:900 34px/1 Arial,sans-serif;
  opacity:.18;
  margin-bottom:24px;
}
.intro-principle-card h3{
  margin:0 0 9px;
  font-size:18px;
  line-height:1.28;
}
.intro-principle-card p{
  margin:0;
  font:700 13px/1.4 Arial,sans-serif;
  color:#66726d;
}
.pc1{border-top-color:var(--nutrition);background:#f7faf8}
.pc2{border-top-color:var(--pa);background:#f7fafb}
.pc3{border-top-color:var(--recovery);background:#faf8fb}
.pc4{border-top-color:var(--gold);background:#fbf8f3}
.pc5{border-top-color:#4e7869;background:#f7faf8}

.principle-detail{
  scroll-margin-top:105px;
}
.principle-detail h2{
  margin-top:50px;
  padding-top:6px;
}

/* Three-pillar visual */
.pillars-section{
  margin-top:78px;
  padding-top:8px;
  scroll-margin-top:105px;
}
.pillars-section > h2{
  font-size:31px;
  margin:8px 0 12px;
}
.pillars-figure{
  margin:42px auto 46px;
  max-width:760px;
  padding:10px 22px 18px;
}
.pillars-cap{
  position:relative;
  margin:0 auto;
  width:92%;
  background:#f3ecdf;
  border:1px solid #ddcfb9;
  border-top:5px solid var(--gold);
  border-radius:10px 10px 3px 3px;
  padding:20px 18px 17px;
  text-align:center;
  box-shadow:0 8px 20px rgba(24,52,43,.05);
}
.pillars-cap::after{
  content:"";
  position:absolute;
  left:4%;
  right:4%;
  bottom:-11px;
  height:10px;
  background:#e9dfcf;
  border:1px solid #d8c9b2;
  border-radius:2px;
}
.pillars-cap span{
  font:900 18px/1.2 Arial,sans-serif;
  letter-spacing:.11em;
  color:var(--ink);
}
.pillars-columns{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:52px;
  width:78%;
  margin:10px auto 0;
  align-items:end;
}
.pillar{
  display:grid;
  grid-template-rows:auto 190px auto;
  align-items:stretch;
  min-width:0;
}
.pillar-top,
.pillar-base{
  height:22px;
  border:1px solid rgba(24,52,43,.12);
  border-radius:4px;
  background:#f8f7f3;
  box-shadow:0 4px 8px rgba(24,52,43,.04);
}
.pillar-top{
  margin:0 -11px;
  border-bottom-width:3px;
}
.pillar-base{
  margin:0 -15px;
  border-top-width:3px;
}
.pillar-shaft{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 9px;
  border-left:1px solid rgba(24,52,43,.13);
  border-right:1px solid rgba(24,52,43,.13);
  background:
    linear-gradient(90deg,rgba(255,255,255,.86),rgba(255,255,255,.30) 22%,rgba(255,255,255,.64) 50%,rgba(255,255,255,.24) 78%,rgba(255,255,255,.82));
}
.pillar-shaft::before,
.pillar-shaft::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:rgba(24,52,43,.06);
}
.pillar-shaft::before{left:28%}
.pillar-shaft::after{right:28%}
.pillar-shaft span{
  position:relative;
  z-index:2;
  font:800 14px/1.35 Arial,sans-serif;
  text-align:center;
}
.pillar-pa .pillar-shaft{
  background-color:var(--pa-soft);
  box-shadow:inset 0 5px 0 rgba(85,122,139,.60);
}
.pillar-pa .pillar-shaft span{color:#3f687a}
.pillar-nutrition .pillar-shaft{
  background-color:var(--nutrition-soft);
  box-shadow:inset 0 5px 0 rgba(47,107,88,.65);
}
.pillar-nutrition .pillar-shaft span{color:var(--nutrition)}
.pillar-recovery .pillar-shaft{
  background-color:var(--recovery-soft);
  box-shadow:inset 0 5px 0 rgba(118,101,140,.62);
}
.pillar-recovery .pillar-shaft span{color:#665777}
.pillars-foundation{
  width:96%;
  margin:0 auto;
  background:#244a3d;
  color:#fff;
  padding:18px 16px 16px;
  text-align:center;
  border-radius:3px 3px 10px 10px;
  box-shadow:0 10px 24px rgba(24,52,43,.10);
}
.pillars-foundation::before{
  content:"";
  display:block;
  height:10px;
  margin:-28px 3% 15px;
  background:#315c4e;
  border-radius:2px;
}
.pillars-foundation span{
  font:800 12px/1.3 Arial,sans-serif;
  letter-spacing:.12em;
}
.pillars-figure figcaption{
  margin-top:13px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  font-style:italic;
}

.pillar-content-block{
  margin:22px 0;
  padding:25px 28px 24px;
  border-radius:17px;
  border:1px solid var(--line);
  border-left:5px solid var(--accent);
  background:#fff;
}
.pillar-content-block p{
  margin:10px 0;
}
.pillar-content-label{
  font:800 20px/1.2 Arial,sans-serif;
  margin-bottom:12px;
}
.pillar-content-pa{
  border-left-color:var(--pa);
  background:var(--pa-soft);
}
.pillar-content-pa .pillar-content-label{color:var(--pa)}
.pillar-content-nutrition{
  border-left-color:var(--nutrition);
  background:var(--nutrition-soft);
}
.pillar-content-nutrition .pillar-content-label{color:var(--nutrition)}
.pillar-content-recovery{
  border-left-color:var(--recovery);
  background:var(--recovery-soft);
}
.pillar-content-recovery .pillar-content-label{color:var(--recovery)}

/* Closing */
.real-goal{
  margin-top:76px;
  padding-top:8px;
}
.real-goal > h2{
  font-size:31px;
  margin:8px 0 12px;
}
.intro-closing{
  margin:42px 0 14px;
  padding:30px 32px;
  border-radius:20px;
  background:#f3ecdf;
  border-top:4px solid var(--gold);
}
.intro-closing p{
  margin-top:0;
}
.intro-closing strong{
  display:block;
  font-size:24px;
  line-height:1.3;
  color:var(--ink);
  margin:18px 0 14px;
}
.intro-closing span{
  display:block;
  color:var(--accent);
  font-size:20px;
  font-weight:700;
}

@media(max-width:900px){
  .theme-introduction .shell{grid-template-columns:1fr}
  .intro-principle-cards{grid-template-columns:1fr}
  .intro-principle-card,
  .intro-principle-card:nth-child(4),
  .intro-principle-card:nth-child(5){grid-column:auto}
  .pillars-columns{
    width:92%;
    gap:18px;
  }
  .pillar{
    grid-template-rows:auto 160px auto;
  }
  .pillar-shaft span{
    font-size:12px;
  }
}
@media(max-width:560px){
  .intro-subtitle{font-size:22px}
  .pillars-figure{padding-left:0;padding-right:0}
  .pillars-columns{
    width:94%;
    gap:11px;
  }
  .pillar{
    grid-template-rows:auto 142px auto;
  }
  .pillar-top{margin:0 -5px}
  .pillar-base{margin:0 -7px}
  .pillar-shaft{
    padding:10px 4px;
  }
  .pillar-shaft span{
    font-size:10px;
    letter-spacing:-.01em;
  }
  .pillars-cap span{font-size:15px}
  .pillars-foundation span{font-size:10px}
}


/* ===== Introduction refinements v24 ===== */

/* Uniform principle cards: same warm neutral treatment */
.intro-principle-card,
.pc1,.pc2,.pc3,.pc4,.pc5{
  background:#fbf8f3;
  border-color:#e7dccb;
  border-top-color:var(--gold);
}
.intro-principle-card .principle-number{
  font-size:25px;
  opacity:.30;
  color:var(--gold);
  margin-bottom:18px;
}
.intro-principle-card h3{
  text-align:left;
}

/* More classical pillar proportions without becoming ornate */
.pillar{
  text-decoration:none;
  color:inherit;
  transition:transform .18s ease,filter .18s ease;
}
.pillar:hover,
.pillar:focus{
  transform:translateY(-3px);
  filter:brightness(.99);
}
.pillar-top{
  position:relative;
  height:28px;
  margin:0 -15px;
  border-radius:5px 5px 2px 2px;
  background:
    linear-gradient(to bottom,#faf9f5 0 32%,#e8e3da 33% 42%,#f6f4ef 43% 70%,#ddd7cd 71% 78%,#faf9f5 79%);
  border:1px solid rgba(24,52,43,.15);
  box-shadow:0 4px 8px rgba(24,52,43,.05);
}
.pillar-top::before{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:-7px;
  height:7px;
  background:#eee9e1;
  border:1px solid rgba(24,52,43,.10);
  border-top:none;
}
.pillar-shaft{
  margin-top:7px;
  border-left:1px solid rgba(24,52,43,.16);
  border-right:1px solid rgba(24,52,43,.16);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.45) 0 7%,
      rgba(24,52,43,.035) 7% 11%,
      rgba(255,255,255,.10) 11% 19%
    );
}
.pillar-shaft::before,
.pillar-shaft::after{
  display:none;
}
.pillar-base{
  position:relative;
  height:30px;
  margin:0 -18px;
  border-radius:2px 2px 5px 5px;
  background:
    linear-gradient(to bottom,#f8f6f1 0 25%,#ddd7cd 26% 34%,#f4f1eb 35% 62%,#e5dfd6 63% 72%,#fbfaf7 73%);
  border:1px solid rgba(24,52,43,.15);
  box-shadow:0 5px 9px rgba(24,52,43,.05);
}
.pillar-base::after{
  content:"";
  position:absolute;
  left:-7px;
  right:-7px;
  bottom:-8px;
  height:8px;
  border-radius:2px;
  background:#e9e3da;
  border:1px solid rgba(24,52,43,.10);
}
.pillar-shaft span{
  text-align:center;
}

/* Center the headings in the three pillar narrative cards */
.pillar-content-label{
  text-align:center;
}

/* Introduction CTA */
.intro-get-started{
  display:flex;
  justify-content:center;
  margin:34px 0 12px;
}
.intro-get-started .btn{
  font-size:15px;
  padding:14px 24px;
}

/* Placeholder section-introduction pages */
.placeholder-page .placeholder-note{
  margin:34px 0;
  padding:26px 28px;
  background:#fff;
  border:1px solid var(--line);
  border-left:5px solid var(--accent);
  border-radius:16px;
}
.theme-pa{--accent:var(--pa);--soft:var(--pa-soft)}
.theme-recovery{--accent:var(--recovery);--soft:var(--recovery-soft)}
.placeholder-page .placeholder-note strong{
  font:800 13px Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
}
.placeholder-next{
  margin-top:28px;
}


/* ===== Introduction refinements v25 ===== */

/* Principle cards: quieter numbering and centered titles */
.intro-principle-card .principle-number{
  font-size:19px;
  line-height:1;
  margin-bottom:16px;
  opacity:.52;
  letter-spacing:.04em;
}
.intro-principle-card h3{
  text-align:center;
  font-size:18px;
  line-height:1.28;
  margin:0 auto 10px;
  max-width:230px;
}
.intro-principle-card p{
  text-align:center;
}

/* Stronger architectural pillars */
.pillars-figure{
  max-width:820px;
  padding:12px 12px 22px;
}
.pillars-cap{
  width:94%;
  background:#f5f3ee;
  border:3px solid #27322e;
  border-top-width:6px;
  border-radius:3px;
  padding:18px 16px 15px;
  box-shadow:0 7px 0 #d5d0c8, 0 12px 22px rgba(24,52,43,.08);
}
.pillars-cap::before{
  content:"";
  position:absolute;
  left:-14px;
  right:-14px;
  top:-12px;
  height:9px;
  background:#ece8e1;
  border:3px solid #27322e;
}
.pillars-cap::after{
  left:-9px;
  right:-9px;
  bottom:-13px;
  height:10px;
  background:#e4dfd7;
  border:3px solid #27322e;
  border-top-width:2px;
}
.pillars-cap span{
  color:#151c19;
  font-size:20px;
  font-weight:900;
  letter-spacing:.12em;
}

.pillars-columns{
  width:68%;
  gap:66px;
  margin-top:16px;
}
.pillar{
  grid-template-rows:auto 205px auto;
  min-width:0;
}
.pillar-top{
  height:34px;
  margin:0 -18px;
  background:#f4f1ea;
  border:3px solid #27322e;
  border-radius:2px;
  box-shadow:none;
}
.pillar-top::before{
  left:8%;
  right:8%;
  bottom:-10px;
  height:8px;
  background:#e4dfd7;
  border:3px solid #27322e;
  border-top:none;
}
.pillar-top::after{
  content:"";
  position:absolute;
  left:19%;
  right:19%;
  top:7px;
  height:10px;
  border-top:2px solid #27322e;
  border-bottom:2px solid #27322e;
}
.pillar-shaft{
  width:68%;
  justify-self:center;
  margin-top:9px;
  margin-bottom:0;
  border-left:3px solid #27322e;
  border-right:3px solid #27322e;
  background:
    repeating-linear-gradient(
      90deg,
      #f7f6f2 0 11%,
      #d7d3cc 11% 14%,
      #efede8 14% 27%
    );
  box-shadow:none !important;
}
.pillar-shaft span{
  color:#151c19 !important;
  font:900 13px/1.35 Arial,sans-serif;
  text-align:center;
}
.pillar-base{
  height:36px;
  margin:0 -22px;
  background:#f4f1ea;
  border:3px solid #27322e;
  border-radius:2px;
  box-shadow:none;
}
.pillar-base::before{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  top:7px;
  height:10px;
  border-top:2px solid #27322e;
  border-bottom:2px solid #27322e;
}
.pillar-base::after{
  left:-8px;
  right:-8px;
  bottom:-11px;
  height:9px;
  background:#dfdad2;
  border:3px solid #27322e;
}
.pillars-foundation{
  width:98%;
  background:#203c33;
  border:3px solid #151c19;
  border-top-width:5px;
  border-radius:2px;
  padding:20px 16px 18px;
  box-shadow:0 9px 0 #d5d0c8, 0 14px 26px rgba(24,52,43,.12);
}
.pillars-foundation::before{
  height:11px;
  margin:-31px 2% 16px;
  background:#f0ece5;
  border:3px solid #27322e;
}
.pillars-foundation span{
  font-size:12px;
  font-weight:900;
  letter-spacing:.13em;
}

/* Make clickability unmistakable */
.pillar{
  cursor:pointer;
}
.pillar:hover .pillar-shaft,
.pillar:focus .pillar-shaft{
  background:
    repeating-linear-gradient(
      90deg,
      #ffffff 0 11%,
      #ccc8c1 11% 14%,
      #f3f1ec 14% 27%
    );
}
.pillar-content-link{
  display:inline-block;
  margin-top:10px;
  font:800 13px Arial,sans-serif;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid currentColor;
}
.pillar-content-link:hover,
.pillar-content-link:focus{
  color:var(--accent);
}

@media(max-width:700px){
  .pillars-columns{
    width:82%;
    gap:28px;
  }
  .pillar-shaft{
    width:76%;
  }
}

.section-closing{
  margin:40px 0 12px;
  padding:26px 28px;
  border-radius:18px;
  background:var(--pa-soft);
  border-left:5px solid var(--pa);
}
.section-closing strong{
  display:block;
  font-size:23px;
  line-height:1.25;
  color:var(--ink);
  margin-bottom:10px;
}
.section-closing span{
  display:block;
  font-size:18px;
  color:#45565f;
}


/* ===== v26 refinements ===== */

/* Restore section identity to the architectural pillars while keeping the bold classic form */
.pillar-pa .pillar-top,
.pillar-pa .pillar-base{
  background:#dce8ec;
  border-color:#557A8B;
}
.pillar-pa .pillar-top::before,
.pillar-pa .pillar-base::after{
  background:#cbdbe0;
  border-color:#557A8B;
}
.pillar-pa .pillar-top::after,
.pillar-pa .pillar-base::before{
  border-color:#557A8B;
}
.pillar-pa .pillar-shaft{
  border-left-color:#557A8B;
  border-right-color:#557A8B;
  background:
    repeating-linear-gradient(
      90deg,
      #edf4f6 0 11%,
      #b8ccd3 11% 14%,
      #dfecef 14% 27%
    );
}

.pillar-nutrition .pillar-top,
.pillar-nutrition .pillar-base{
  background:#dce9e3;
  border-color:#2F6B58;
}
.pillar-nutrition .pillar-top::before,
.pillar-nutrition .pillar-base::after{
  background:#c9ddd3;
  border-color:#2F6B58;
}
.pillar-nutrition .pillar-top::after,
.pillar-nutrition .pillar-base::before{
  border-color:#2F6B58;
}
.pillar-nutrition .pillar-shaft{
  border-left-color:#2F6B58;
  border-right-color:#2F6B58;
  background:
    repeating-linear-gradient(
      90deg,
      #edf5f1 0 11%,
      #b8d0c5 11% 14%,
      #dfece6 14% 27%
    );
}

.pillar-recovery .pillar-top,
.pillar-recovery .pillar-base{
  background:#e6e0eb;
  border-color:#76658C;
}
.pillar-recovery .pillar-top::before,
.pillar-recovery .pillar-base::after{
  background:#d5cce0;
  border-color:#76658C;
}
.pillar-recovery .pillar-top::after,
.pillar-recovery .pillar-base::before{
  border-color:#76658C;
}
.pillar-recovery .pillar-shaft{
  border-left-color:#76658C;
  border-right-color:#76658C;
  background:
    repeating-linear-gradient(
      90deg,
      #f2eef5 0 11%,
      #c8bfd1 11% 14%,
      #e5dfeb 14% 27%
    );
}

/* Keep the text dark and strong for legibility */
.pillar-pa .pillar-shaft span,
.pillar-nutrition .pillar-shaft span,
.pillar-recovery .pillar-shaft span{
  color:#151c19 !important;
}


/* ===== v27 cleanup ===== */

/* The Three Pillars are explanatory architecture, not navigation. */
.pillar{
  cursor:default;
  transition:none;
}
.pillar:hover,
.pillar:focus{
  transform:none;
  filter:none;
}
.pillar:hover .pillar-shaft,
.pillar:focus .pillar-shaft{
  background:inherit;
}


/* ===== v28 principle-card polish ===== */

/* Put the principle number on the same line as the title */
.intro-principle-card{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:10px;
  align-content:start;
  align-items:start;
}
.intro-principle-card .principle-number{
  grid-column:1;
  grid-row:1;
  font-size:15px;
  line-height:1.25;
  margin:3px 0 0;
  opacity:.62;
  color:var(--gold);
  font-weight:900;
}
.intro-principle-card h3{
  grid-column:2;
  grid-row:1;
  text-align:left;
  margin:0 0 10px;
  max-width:none;
}
.intro-principle-card p{
  grid-column:1 / -1;
  grid-row:2;
  text-align:center;
  margin-top:2px;
}

/* Narrative links remain visible; pillars themselves are not links. */
.pillar-content-link{
  display:inline-block;
  margin-top:12px;
  font:800 13px Arial,sans-serif;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid currentColor;
}
.pillar-content-link:hover,
.pillar-content-link:focus{
  color:var(--accent);
}


/* ===== Global polish v30 ===== */

/* Stronger brand tagline in the upper-left header */
.brand .brand-tagline{
  display:block;
  margin-top:4px;
  font:600 15px/1.25 Arial,sans-serif;
  color:#5f6e68;
  letter-spacing:.005em;
}
.brand .brand-tagline strong{
  font-weight:800;
  color:#46574f;
}

/* Give the book TOC more room and move it visually farther left on desktop */
.shell{
  max-width:1380px;
  grid-template-columns:315px minmax(0,800px);
  gap:48px;
  padding-left:3vw;
  padding-right:4vw;
}
.book-nav{
  padding-left:16px;
  margin-left:-10px;
}
.book-nav .toc-items a,
.book-nav .toc-items span,
.book-nav > a,
.book-nav summary{
  white-space:nowrap;
}

/* Keep long chapter titles readable without wrapping when viewport allows */
@media(max-width:1180px){
  .shell{
    max-width:1180px;
    grid-template-columns:275px minmax(0,760px);
    gap:38px;
    padding-left:3vw;
    padding-right:3vw;
  }
  .book-nav .toc-items a,
  .book-nav .toc-items span,
  .book-nav > a,
  .book-nav summary{
    white-space:normal;
  }
}


/* ===== Global branding + Chapter 1 v31 ===== */

/* Keep the complete motto at one consistent size and weight */
.brand .brand-tagline{
  font:700 15px/1.25 Arial,sans-serif;
  color:#5b6964;
}
.brand .brand-tagline span,
.brand .brand-tagline strong{
  font:inherit;
  color:inherit;
}

/* Physical Activity chapter treatment */
.theme-pa article > h2{
  color:var(--pa);
}
.theme-pa .tldr-box{
  background:var(--pa-soft);
  border-left:5px solid var(--pa);
}
.theme-pa .chapter-links a:hover,
.theme-pa .chapter-links a:focus{
  color:var(--pa);
  border-bottom-color:var(--pa);
}
.theme-pa .habit-heading .section-label{
  color:var(--pa);
}
.theme-pa .habit-box{
  background:var(--pa-soft);
  border-left-color:var(--pa);
}
.theme-pa .callout-box{
  margin:34px 0;
  padding:24px 26px;
  border-radius:16px;
  background:#f7fafb;
  border:1px solid #d9e4e8;
  border-left:5px solid var(--pa);
}
.theme-pa .callout-box h3{
  margin:0 0 12px;
  color:var(--pa);
}
.theme-pa .equation-box{
  margin:24px 0;
  padding:18px 20px;
  text-align:center;
  border-radius:14px;
  background:#fff;
  border:1px solid #d9e4e8;
  font-weight:800;
}
.theme-pa .system-list{
  margin:22px 0 8px;
}
.theme-pa .system-list h3{
  color:var(--pa);
}
.theme-pa .chapter-main-title{
  color:var(--ink);
}


/* ===== Chapter 1 hierarchy + navigation corrections v32 ===== */

/* Chapter 1 uses the same hierarchy as Chapter 19, but in Physical Activity blue */
.theme-pa .chapter-kicker{
  font:900 19px/1.2 Arial,sans-serif;
  letter-spacing:.075em;
  color:var(--pa);
  margin-bottom:22px;
}

.theme-pa .chapter-main-title{
  font-size:clamp(43px,4.4vw,59px);
  line-height:1.03;
  font-weight:900;
  letter-spacing:-.03em;
  color:var(--ink);
  margin:0 0 12px;
}

.theme-pa .chapter-subtitle{
  font-size:27px;
  line-height:1.2;
  font-weight:800;
  color:var(--pa);
  margin:0 0 28px;
}

/* TL;DR sits at the top of the web chapter, before Introduction */
.theme-pa .tldr-box{
  margin:26px 0 42px;
  padding:26px 28px;
  border-radius:16px;
  background:var(--pa-soft);
  border-left:5px solid var(--pa);
}
.theme-pa .tldr-box h2{
  margin:0 0 12px !important;
  font-size:24px !important;
  line-height:1.15;
  color:var(--pa) !important;
  font-weight:900;
}

/* Make the chapter navigation visibly interactive and ensure anchor landings clear the sticky header */
.theme-pa .chapter-links a{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  border-bottom:1px solid transparent;
}
.theme-pa .chapter-links a:hover,
.theme-pa .chapter-links a:focus{
  color:var(--pa);
  border-bottom-color:var(--pa);
}
.theme-pa article [id]{
  scroll-margin-top:118px;
}

/* The in-article sidebar must not inherit the global sticky left-rail ASIDE behavior */
.theme-pa article .callout-box{
  position:static;
  top:auto;
  align-self:auto;
  border-left:5px solid var(--pa);
  padding:24px 26px;
  font-family:Georgia,'Times New Roman',serif;
  line-height:1.72;
  scroll-margin-top:118px;
}
.theme-pa article .callout-box h3{
  margin:0 0 12px;
  color:var(--pa);
  font-size:21px;
  line-height:1.25;
}
.theme-pa article .callout-box p{
  font-size:17px;
}


/* ===== Chapter 1 tiny refinements v34 ===== */

/* Wearable subsection now matches the other major chapter section headings */
.theme-pa #why-i-recommend-a-wearable{
  font-size:25px;
  line-height:1.20;
  font-weight:800;
  color:var(--pa);
  margin:46px 0 14px;
}

/* Two deliberate action bullets in This Week Your Habit */
.theme-pa .habit-arrow-list{
  margin:18px 0 18px;
}
.theme-pa .habit-arrow-list p{
  position:relative;
  margin:14px 0;
  padding-left:32px;
}
.theme-pa .habit-arrow-list p::before{
  content:"➤";
  position:absolute;
  left:0;
  top:.05em;
  color:var(--pa);
  font-family:Arial,sans-serif;
  font-size:18px;
  font-weight:900;
}


/* ===== Chapter 1 habit-banner correction v35 ===== */

/* Match the Chapter 19 pattern:
   only the heading banner is tinted; the habit copy beneath stays on the page background. */
.theme-pa .habit-box{
  background:transparent;
  border-left:0;
  padding:0;
}

.theme-pa .habit-heading{
  background:var(--pa-soft);
  border-radius:16px;
  padding:24px 26px;
  margin:55px 0 20px;
}

.theme-pa .habit-heading .section-label{
  color:var(--pa);
}

.theme-pa .habit-box > p,
.theme-pa .habit-box .habit-arrow-list{
  background:transparent;
}


/* ===== Cross-chapter consistency refinements v36 ===== */

/* "This Week Your Habit" is the repeated framework label, so keep it black.
   The changing habit message carries the section identity color. */
.theme-pa .habit-heading .section-label,
.theme-nutrition .habit-heading .section-label{
  color:var(--ink);
}
.theme-pa .habit-heading .section-action{
  color:var(--pa);
}
.theme-nutrition .habit-heading .section-action{
  color:var(--nutrition);
}

/* Chapter 19 anchor links must land below the sticky site header rather than under it. */
.theme-nutrition article [id]{
  scroll-margin-top:125px;
}

/* Make Chapter 1 references read like Chapter 19 references. */
.theme-pa .references{
  margin-top:18px;
  padding-top:8px;
}
.theme-pa .references ol{
  padding-left:24px;
}
.theme-pa .references li{
  margin:0 0 22px;
  font-size:15px;
  line-height:1.6;
  color:#44524d;
  scroll-margin-top:125px;
}
.theme-pa .references .ref-links{
  display:block;
  margin-top:5px;
  font-family:Arial,sans-serif;
  font-size:13px;
  font-weight:700;
}
.theme-pa .references .ref-links a{
  color:var(--pa);
  text-decoration:none;
  border-bottom:1px solid rgba(85,122,139,.38);
}
.theme-pa .references .ref-links a:hover,
.theme-pa .references .ref-links a:focus{
  border-bottom-color:var(--pa);
}

/* Keep Nutrition reference links explicitly green. */
.theme-nutrition .references .ref-links a{
  color:var(--nutrition);
  border-bottom-color:rgba(47,107,88,.35);
}
.theme-nutrition .references .ref-links a:hover,
.theme-nutrition .references .ref-links a:focus{
  border-bottom-color:var(--nutrition);
}

/* ===== Chapter 2 v37 ===== */
.theme-pa .table-wrap{margin:32px 0 40px}.theme-pa .tablelabel{font:900 15px Arial,sans-serif;letter-spacing:.08em;color:var(--pa);margin-bottom:7px}.theme-pa .chapter-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #d9e4e8;font-size:16px;line-height:1.45}.theme-pa .chapter-table caption{caption-side:top;text-align:left;font:800 20px/1.25 Georgia,'Times New Roman',serif;color:var(--ink);margin-bottom:12px}.theme-pa .chapter-table th{background:var(--pa-soft);color:var(--ink);font:800 14px/1.35 Arial,sans-serif;text-align:left;padding:13px 14px;border-bottom:2px solid var(--pa)}.theme-pa .chapter-table td{padding:13px 14px;vertical-align:top;border-bottom:1px solid #e4eaed}.theme-pa .chapter-table tbody tr:last-child td{border-bottom:none}.theme-pa .table-caption{margin:9px 0 0;font-size:14px;line-height:1.5;color:#65716d;font-style:italic}
.tdee-figure{margin:44px 0 48px;padding:28px 30px 24px;border:1px solid #d9e4e8;border-radius:18px;background:#fff}.tdee-figure .figure-label{font:900 15px Arial,sans-serif;letter-spacing:.08em;color:var(--pa);margin-bottom:18px}.tdee-chart{display:flex;justify-content:center;gap:26px;min-height:340px;align-items:stretch}.tdee-stack{width:160px;display:flex;flex-direction:column;border:2px solid #18342b}.tdee-segment{display:flex;align-items:center;justify-content:center;text-align:center;font:800 15px/1.25 Arial,sans-serif;border-bottom:1px solid rgba(255,255,255,.5)}.tdee-segment span{padding:8px}.tdee-segment.active{flex:3;background:#557A8B;color:#fff}.tdee-segment.tef{flex:.8;background:#b88447;color:#fff}.tdee-segment.bmr{flex:5.2;background:#244a3d;color:#fff}.tdee-labels{width:260px;display:grid;grid-template-rows:3fr .8fr 5.2fr}.tdee-label{display:flex;align-items:center;position:relative;font:700 14px Arial,sans-serif;color:#3e4f49;padding-left:48px}.tdee-label::before{content:"";position:absolute;left:0;width:34px;height:2px;background:currentColor}.active-label{color:#557A8B}.tef-label{color:#b88447}.bmr-label{color:#244a3d}.tdee-figure figcaption{margin-top:18px;font-size:14px;line-height:1.55;color:#55625d}.theme-pa .chapter-next{display:flex;justify-content:flex-end;margin:42px 0 34px}
@media(max-width:700px){.theme-pa .chapter-table{font-size:14px}.theme-pa .chapter-table th,.theme-pa .chapter-table td{padding:10px 9px}.tdee-chart{gap:15px}.tdee-stack{width:125px}.tdee-labels{width:190px}.tdee-label{padding-left:34px;font-size:12px}.tdee-label::before{width:24px}}


/* ===== v39 refinements ===== */
.theme-pa .metabolic-takeaway{
  margin:24px 0 34px 18px;
  padding:4px 0 4px 18px;
  border-left:4px solid var(--pa);
  font-size:18px;
  line-height:1.7;
  color:var(--ink);
}

/* Consistent conclusion hierarchy across chapters */
.conclusion-section .section-label,
.conclusion-heading .section-label,
.theme-nutrition .conclusion-heading .conclusion-label{
  color:var(--ink) !important;
}
.theme-pa .conclusion-section .section-action,
.theme-pa .conclusion-heading .section-action{
  color:var(--pa) !important;
}
.theme-nutrition .conclusion-section .section-action,
.theme-nutrition .conclusion-heading .section-action{
  color:var(--nutrition) !important;
}

/* Compact Chapter 2 factors and table on desktop */
@media(min-width:1100px){
  .theme-pa .bmr-factors li{white-space:nowrap;}
  .theme-pa .chapter-table th,
  .theme-pa .chapter-table td{white-space:nowrap;}
}


/* ===== Chapter 3: Daily Steps, Lifelong Returns v41 ===== */

.theme-pa .metric-callout{
  margin:28px 0 32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 18px;
  padding:22px 24px;
  background:var(--pa-soft);
  border-radius:16px;
  border-left:5px solid var(--pa);
}
.theme-pa .metric-callout > div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.theme-pa .metric-callout strong{
  color:var(--pa);
  font:800 18px/1.25 Arial,sans-serif;
}
.theme-pa .metric-callout span{
  color:var(--ink);
  font-size:15px;
  line-height:1.45;
}

.theme-pa .system-summary,
.theme-pa .practical-list{
  margin:24px 0 30px;
  padding:18px 22px;
  border:1px solid #d9e4e8;
  border-radius:14px;
  background:#fff;
}
.theme-pa .system-summary ul,
.theme-pa .practical-list ul{
  margin:12px 0 0;
}

.theme-pa .step-guide{
  margin:30px 0 38px;
  border:1px solid #d9e4e8;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.theme-pa .step-guide h3{
  margin:0;
  padding:18px 20px;
  background:var(--pa-soft);
  color:var(--ink);
  font-size:21px;
}
.theme-pa .step-guide > div{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:18px;
  padding:15px 20px;
  border-top:1px solid #e4eaed;
}
.theme-pa .step-guide > div strong{
  color:var(--pa);
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:1.4;
}
.theme-pa .step-guide > div span{
  line-height:1.5;
}

.theme-pa .chapter-figure{
  margin:40px 0 44px;
  padding:24px 26px 20px;
  border:1px solid #d9e4e8;
  border-radius:18px;
  background:#fff;
}
.theme-pa .chapter-figure .figure-label{
  font:900 15px Arial,sans-serif;
  letter-spacing:.08em;
  color:var(--pa);
  margin-bottom:14px;
}
.theme-pa .chapter-figure img{
  display:block;
  width:100%;
  height:auto;
  border-radius:8px;
}
.theme-pa .chapter-figure figcaption{
  margin-top:15px;
  color:#55625d;
  font-size:14px;
  line-height:1.55;
}

.theme-pa .core-principle-callout{
  position:static !important;
  top:auto !important;
  align-self:auto !important;
  margin:32px 0 36px !important;
  padding:24px 26px !important;
  border:1px solid #dbc993 !important;
  border-left:5px solid #b7954c !important;
  border-radius:16px !important;
  background:#fbf8ef !important;
}
.theme-pa .core-principle-callout .callout-kicker{
  font:900 13px/1.2 Arial,sans-serif;
  letter-spacing:.12em;
  color:#8b6c29;
  margin-bottom:7px;
}
.theme-pa .core-principle-callout h3{
  margin:0 0 12px;
  color:var(--ink);
  font-size:22px;
}
.theme-pa .core-principle-callout p:last-child{
  margin-bottom:0;
}

/* Chapter 3 uses numerous physiologic system subheads inside one major section. */
.theme-pa #walking-path ~ h3{
  color:var(--pa);
  font-size:21px;
  line-height:1.25;
  margin-top:34px;
  scroll-margin-top:125px;
}

/* Keep all Chapter 3 anchored destinations visible below the sticky header. */
.theme-pa article [id]{
  scroll-margin-top:125px;
}

@media(max-width:760px){
  .theme-pa .metric-callout{
    grid-template-columns:1fr;
  }
  .theme-pa .step-guide > div{
    grid-template-columns:1fr;
    gap:5px;
  }
}


/* ===== Chapter 4: Take the Stairs v42 ===== */

.theme-pa .stairway-health-figure img{
  max-width:880px;
  margin:0 auto;
}

.theme-pa .stairway-health-figure{
  background:#fff;
}

.theme-pa #stairway-to-health ~ h3{
  color:var(--pa);
  font-size:21px;
  line-height:1.25;
  margin-top:34px;
  scroll-margin-top:125px;
}

/* Give the second figure a little more breathing room because the source graphic is wide. */
.theme-pa .stairway-health-figure{
  padding:26px 28px 22px;
}

@media(max-width:760px){
  .theme-pa .stairway-health-figure{
    padding:18px 14px 16px;
  }
}


/* ===== Homepage + Introduction + Chapter 5 refinements v45 ===== */

.hero-tag strong{
  font-weight:900;
}
.home-next{
  margin-top:26px;
}
.small-habits-section h2{
  line-height:1.12;
}

/* Chapter 5 distinction cards */
.theme-pa .snack-comparison{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:28px 0 34px;
}
.theme-pa .snack-comparison > div{
  padding:24px 25px;
  border:1px solid #d9e4e8;
  border-radius:16px;
  background:#fff;
}
.theme-pa .snack-comparison > div:first-child{
  border-top:5px solid #8fb3c0;
}
.theme-pa .snack-comparison > div:last-child{
  border-top:5px solid var(--pa);
}
.theme-pa .snack-comparison .snack-label{
  display:block;
  font:900 12px/1.2 Arial,sans-serif;
  letter-spacing:.11em;
  color:var(--pa);
  margin-bottom:7px;
}
.theme-pa .snack-comparison h3{
  margin:0 0 12px;
  color:var(--ink);
  font-size:22px;
}
.theme-pa .snack-comparison p:last-child{
  margin-bottom:0;
}

.theme-pa .snack-metrics{
  grid-template-columns:1fr 1fr;
}

.theme-pa article .hba1c-note{
  position:static;
  top:auto;
  align-self:auto;
  margin:32px 0 38px;
  padding:24px 26px;
  border-left:5px solid var(--pa);
  border-radius:14px;
  background:var(--pa-soft);
}
.theme-pa article .hba1c-note h3{
  margin:0 0 12px;
  color:var(--pa);
}
.theme-pa .hba1c-thresholds{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:15px 0;
}
.theme-pa .hba1c-thresholds span{
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #d4e2e7;
  font-family:Arial,sans-serif;
  font-size:13px;
}

.theme-pa .tv-callout{
  margin-top:28px !important;
}

.theme-pa .snack-example-grid{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:16px;
  margin:28px 0 32px;
}
.theme-pa .snack-example-grid section{
  padding:22px 22px 18px;
  border:1px solid #d9e4e8;
  border-radius:15px;
  background:#fff;
}
.theme-pa .snack-example-grid h3{
  margin:0 0 12px;
  color:var(--pa);
  font-size:20px;
}
.theme-pa .snack-example-grid ul{
  margin:0;
  padding-left:20px;
}
.theme-pa .snack-example-grid li{
  margin-bottom:8px;
  line-height:1.45;
}

.theme-pa .habit-standard{
  margin:20px 0 22px;
}
.theme-pa .habit-standard h3{
  margin:0 0 8px;
  color:var(--ink);
  font-size:20px;
}

@media(max-width:800px){
  .theme-pa .snack-comparison,
  .theme-pa .snack-example-grid,
  .theme-pa .snack-metrics{
    grid-template-columns:1fr;
  }
}


/* ===== Chapter 2 organ/tissue table refinement v48 ===== */
.theme-pa .organ-metabolism-table th,
.theme-pa .organ-metabolism-table td{
  white-space:normal !important;
}
.theme-pa .organ-metabolism-table td:not(:first-child),
.theme-pa .organ-metabolism-table th:not(:first-child){
  text-align:center;
}
@media(max-width:760px){
  .theme-pa .organ-metabolism-table{
    font-size:13px;
  }
  .theme-pa .organ-metabolism-table th,
  .theme-pa .organ-metabolism-table td{
    padding:9px 7px;
  }
}


/* ===== Chapter 3 refinements v49 ===== */
.theme-pa .step-guide-table .chapter-table td:first-child{
  font-weight:700;
  color:var(--pa);
}
.theme-pa .step-guide-table .table-caption{
  font-style:italic;
}
.theme-pa .chapter-figure .figure-title{
  font:800 21px/1.25 Georgia,'Times New Roman',serif;
  color:var(--ink);
  margin:-4px 0 14px;
}


/* ===== Chapter 3 Table 3.1 width fix v50 ===== */
.theme-pa .step-guide-table{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.theme-pa .step-guide-table .chapter-table{
  width:100%;
  max-width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}

.theme-pa .step-guide-table .chapter-table th,
.theme-pa .step-guide-table .chapter-table td{
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:normal;
  vertical-align:top;
}

.theme-pa .step-guide-table .chapter-table th:first-child,
.theme-pa .step-guide-table .chapter-table td:first-child{
  width:29%;
}

.theme-pa .step-guide-table .chapter-table th:last-child,
.theme-pa .step-guide-table .chapter-table td:last-child{
  width:71%;
}

@media(max-width:760px){
  .theme-pa .step-guide-table .chapter-table th,
  .theme-pa .step-guide-table .chapter-table td{
    padding:10px 9px;
    font-size:14px;
  }
  .theme-pa .step-guide-table .chapter-table th:first-child,
  .theme-pa .step-guide-table .chapter-table td:first-child{
    width:34%;
  }
  .theme-pa .step-guide-table .chapter-table th:last-child,
  .theme-pa .step-guide-table .chapter-table td:last-child{
    width:66%;
  }
}


/* ===== Chapter 6: Oil the Joints, Reset Your Posture v54 ===== */
.theme-pa .heading-aside{
  font-size:.78em;
  font-weight:700;
}
.theme-pa .important-callout{
  margin:26px 0 18px;
  padding:20px 24px;
  background:var(--pa-soft);
  border-left:5px solid var(--pa);
  border-radius:14px;
}
.theme-pa .important-callout > strong{
  color:var(--ink);
  font-size:19px;
}
.theme-pa .important-callout ul{
  margin:10px 0 0;
  padding-left:24px;
}
.theme-pa .important-callout li{
  margin:5px 0;
}
.theme-pa .safety-note{
  margin:16px 0 30px;
  padding:17px 20px;
  border:1px solid #d5dde0;
  border-radius:12px;
  background:#fff;
  font-size:16px;
  line-height:1.6;
  color:#40504b;
}
.theme-pa .safety-note strong{
  color:var(--ink);
}
.theme-pa .routine-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:30px 0 40px;
}
.theme-pa .routine-strip a{
  display:flex;
  flex-direction:column;
  min-height:150px;
  padding:20px;
  border:1px solid #d9e4e8;
  border-top:5px solid var(--pa);
  border-radius:15px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
}
.theme-pa .routine-strip span{
  font:800 12px/1.3 Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--pa);
}
.theme-pa .routine-strip strong{
  margin-top:10px;
  font-size:20px;
  line-height:1.2;
}
.theme-pa .routine-strip small{
  margin-top:auto;
  padding-top:16px;
  font:700 13px/1.3 Arial,sans-serif;
  color:var(--muted);
}
.theme-pa .mobility-table-wrap{
  width:100%;
  max-width:100%;
}
.theme-pa .mobility-table{
  width:100%;
  max-width:100%;
  table-layout:fixed;
  border-collapse:collapse;
  background:#fff;
}
.theme-pa .mobility-table th,
.theme-pa .mobility-table td{
  white-space:normal !important;
  overflow-wrap:anywhere;
  vertical-align:top;
  padding:11px 10px;
}
.theme-pa .mobility-table th{
  background:var(--pa);
  color:#fff;
  font:700 13px/1.35 Arial,sans-serif;
}
.theme-pa .mobility-table td{
  border:1px solid #d7e0e3;
  font-size:14px;
  line-height:1.45;
}
.theme-pa .mobility-table th:nth-child(1),
.theme-pa .mobility-table td:nth-child(1){width:29%}
.theme-pa .mobility-table th:nth-child(2),
.theme-pa .mobility-table td:nth-child(2){width:27%}
.theme-pa .mobility-table th:nth-child(3),
.theme-pa .mobility-table td:nth-child(3){width:24%}
.theme-pa .mobility-table th:nth-child(4),
.theme-pa .mobility-table td:nth-child(4){width:20%}
.theme-pa .mobility-table-wrap .figure-title{
  font:800 21px/1.25 Georgia,'Times New Roman',serif;
  color:var(--ink);
  margin:-4px 0 14px;
}
.theme-pa .mobility-table-wrap .table-caption{
  font-style:italic;
}
.theme-pa .habit-section{
  margin-top:55px;
}
.theme-pa .habit-section .section-action{
  color:var(--pa);
  margin-bottom:18px;
}
.theme-pa .habit-section .section-label{
  color:var(--ink);
}
.theme-pa .optional-habit-list{
  margin-top:8px;
}
.theme-pa h2[id],
.theme-pa h3[id],
.theme-pa section[id]{
  scroll-margin-top:110px;
}
@media(max-width:760px){
  .theme-pa .routine-strip{grid-template-columns:1fr}
  .theme-pa .routine-strip a{min-height:120px}
  .theme-pa .mobility-table th,
  .theme-pa .mobility-table td{
    font-size:12px;
    padding:8px 6px;
  }
}


/* ===== Chapter 5 refinements v56 ===== */
.theme-pa .hba1c-note .hba1c-thresholds span,
.theme-pa .hba1c-note .hba1c-thresholds strong{
  color: var(--ink) !important;
}


/* ===== Chapter 5 mortality continuum + inline HbA1c citation v57 ===== */
.theme-pa .snack-duration-callout{
  margin:30px 0 34px;
  padding:22px 24px 20px;
  background:#eef5f8;
  border-left:5px solid var(--pa);
  border-radius:16px;
}
.theme-pa .snack-duration-intro{margin:0 0 28px}
.theme-pa .snack-duration-scale{
  position:relative;
  min-height:150px;
  margin:8px 10px 0;
}
.theme-pa .snack-scale-line{
  position:absolute;
  left:3%;
  right:3%;
  top:34px;
  height:4px;
  background:var(--pa);
  border-radius:999px;
}
.theme-pa .snack-scale-point{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  width:22%;
  text-align:center;
}
.theme-pa .snack-scale-point.point-0{left:3%}
.theme-pa .snack-scale-point.point-1{left:31%}
.theme-pa .snack-scale-point.point-2{left:58%}
.theme-pa .snack-scale-point.point-3{left:90%}
.theme-pa .snack-dot{
  display:block;
  width:16px;
  height:16px;
  margin:27px auto 14px;
  border-radius:50%;
  background:var(--pa);
  box-shadow:0 0 0 4px #eef5f8;
}
.theme-pa .snack-scale-point strong{
  display:block;
  color:var(--pa);
  font:800 16px/1.25 Arial,sans-serif;
}
.theme-pa .snack-scale-point small{
  display:block;
  margin-top:5px;
  color:var(--ink);
  font:700 14px/1.35 Arial,sans-serif;
}
.theme-pa .snack-duration-note{
  margin:10px 0 0;
  font-size:14px;
  font-style:italic;
  color:var(--muted);
}
.theme-pa .hba1c-note sup.cite-inline{
  display:inline !important;
  position:static !important;
  vertical-align:super;
  font-size:.72em;
  line-height:0;
  margin-left:2px;
}
.theme-pa .hba1c-note sup.cite-inline a{display:inline !important}
@media(max-width:760px){
  .theme-pa .snack-duration-scale{
    min-height:0;
    display:grid;
    gap:12px;
    margin:0;
  }
  .theme-pa .snack-scale-line{display:none}
  .theme-pa .snack-scale-point{
    position:static;
    transform:none;
    width:auto;
    text-align:left;
    padding:10px 12px;
    border-left:3px solid var(--pa);
    background:#fff;
    border-radius:8px;
  }
  .theme-pa .snack-dot{display:none}
}


/* ===== Chapter 5 All-Cause Mortality layout correction v59 ===== */
.theme-pa .snack-duration-callout{
  display:block;
  clear:both;
  overflow:hidden;
  margin:28px 0 34px;
  padding:22px 24px 20px;
  background:#eef5f8;
  border-left:5px solid var(--pa);
  border-radius:16px;
}
.theme-pa .snack-duration-callout + p{margin-top:30px}
.theme-pa .snack-duration-scale{
  position:relative;
  display:block;
  min-height:150px;
  margin:8px 10px 0;
}
.theme-pa .snack-scale-line{
  position:absolute;
  left:3%;
  right:3%;
  top:34px;
  height:4px;
  background:var(--pa);
  border-radius:999px;
}
.theme-pa .snack-scale-point{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  width:22%;
  text-align:center;
}


/* ===== Resources shell v61 ===== */
.book-nav .resources-group{
  border-top:1px solid #dbe4e1;
  margin-top:14px;
  padding-top:4px;
}
.book-nav .resources-group > summary{
  color:#b07836;
}
.book-nav .resources-group .toc-items a{
  color:#65736f;
}
.resource-page .resource-intro{
  max-width:860px;
  margin:0 0 30px;
}
.resource-shell-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:28px 0 50px;
}
.resource-shell-card{
  border:1px solid #dce5e2;
  border-top:5px solid #b07836;
  border-radius:14px;
  padding:22px 22px 20px;
  background:#fff;
}
.resource-shell-card h2{
  margin-top:0;
  font-size:22px;
}
.resource-shell-card p{
  margin-bottom:18px;
}
.resource-status{
  display:inline-block;
  font:700 11px/1.3 Arial,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#8a6a46;
}
@media(max-width:760px){
  .resource-shell-grid{grid-template-columns:1fr}
}


/* ===== Chapter 5 HbA1c figure + refinements v62 ===== */
.theme-pa .hba1c-figure{
  margin:28px 0 30px;
}
.theme-pa .hba1c-figure img{
  display:block;
  width:100%;
  max-width:860px;
  height:auto;
  margin:14px auto 10px;
  border:1px solid #d9e2df;
  border-radius:12px;
  background:#fff;
}
.theme-pa .hba1c-figure figcaption{
  max-width:860px;
  margin:0 auto;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
}

/* ===== Chapter 6 refinements v64 ===== */
@media (min-width: 1180px){
  .theme-pa .chapter-main-title{
    font-size: clamp(42px, 3.55vw, 58px);
    letter-spacing:-0.025em;
  }
}
.mobility-menu td,
.mobility-menu th{
  vertical-align:top;
}
.mobility-menu th:nth-child(4),
.mobility-menu td:nth-child(4){
  min-width:220px;
}

/* ===== Chapter 6 refinements v65 ===== */
.heading-aside{display:inline-block;font-size:.72em;line-height:1.15;}
.mobility-table{table-layout:fixed;width:100%;}
.mobility-table th:nth-child(1),.mobility-table td:nth-child(1){width:25%;}
.mobility-table th:nth-child(2),.mobility-table td:nth-child(2){width:21%;}
.mobility-table th:nth-child(3),.mobility-table td:nth-child(3){width:15%;}
.mobility-table th:nth-child(4),.mobility-table td:nth-child(4){width:39%;}
.mobility-table th,.mobility-table td{padding:10px 12px;line-height:1.3;vertical-align:top;}

/* ===== Chapter 6 table correction v66 ===== */
.theme-pa .mobility-table{
  table-layout:fixed !important;
  width:100% !important;
}
.theme-pa .mobility-table th:nth-child(1),
.theme-pa .mobility-table td:nth-child(1){width:25% !important;}
.theme-pa .mobility-table th:nth-child(2),
.theme-pa .mobility-table td:nth-child(2){width:20% !important;}
.theme-pa .mobility-table th:nth-child(3),
.theme-pa .mobility-table td:nth-child(3){width:15% !important;}
.theme-pa .mobility-table th:nth-child(4),
.theme-pa .mobility-table td:nth-child(4){width:40% !important;}
.theme-pa .mobility-table th,
.theme-pa .mobility-table td{
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:auto;
}

/* Soft launch readiness v67 */
.growth-note{max-width:980px;margin:20px auto 34px;padding:14px 18px;border:1px solid #d8e2de;border-left:4px solid #b07836;border-radius:10px;background:#fbfaf7;color:#394844;display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}
.growth-note strong{color:#1f4138}
.footer-legal{margin-top:22px;padding-top:16px;border-top:1px solid rgba(120,130,125,.2);font-size:12px;line-height:1.5;color:#74817d}
.footer-legal a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.launch-page section{max-width:880px;margin:0 0 30px}

/* ===== Soft launch refinements v68 ===== */
.growth-note{display:block;}
.growth-note > div:first-child{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;}
.growth-updated{margin-top:7px;font-size:12px;line-height:1.4;color:#7b8884;}
.launch-page section p{max-width:860px;}

/* v70 footer */
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:nowrap;width:100%;font-size:12px;line-height:1.45;color:#66736f}
.footer-brand,.footer-companion,.footer-links{min-width:0}
.footer-brand,.footer-links{white-space:nowrap}
.footer-companion{flex:1 1 auto;text-align:center}
.footer-links{text-align:right}
.footer-links a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media (max-width:980px){.footer-row{flex-wrap:wrap;justify-content:flex-start;gap:10px 20px}.footer-brand,.footer-companion,.footer-links{flex:1 1 100%;text-align:left;white-space:normal}}

/* ===== v71 chapter title + disclaimer refinements ===== */
@media (min-width: 1100px){
  .chapter-main-title{
    font-size: clamp(2.65rem, 3.25vw, 4.65rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
  }
  article{
    max-width: 1120px;
  }
}
.chapter-disclaimer{
  margin-top:34px;
  padding:12px 0 0;
  border-top:1px solid #d9e0dd;
}
.chapter-disclaimer p{
  margin:0;
  font-size:0.88rem;
  line-height:1.5;
  color:#66736f;
}
.chapter-disclaimer strong{
  color:#31463f;
}
.chapter-disclaimer a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}

/* v72 analytics consent */
.consent-banner{position:fixed;left:0;right:0;bottom:0;z-index:9999;padding:14px;background:rgba(250,249,246,.98);border-top:1px solid #d8e0dc;box-shadow:0 -8px 24px rgba(22,47,39,.10)}
.consent-banner[hidden]{display:none!important}
.consent-banner__inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.consent-banner__copy{min-width:0;color:#31463f}
.consent-banner__copy strong{display:block;margin-bottom:3px;color:#173c32;font-size:1rem}
.consent-banner__copy p{margin:0;font-size:.9rem;line-height:1.45}
.consent-banner__copy a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.consent-banner__actions{display:flex;gap:10px;flex:0 0 auto}
.consent-btn{min-height:42px;padding:10px 16px;border-radius:999px;font:inherit;font-weight:700;cursor:pointer}
.consent-btn--primary{background:#2f6b58;color:#fff;border:1px solid #2f6b58}
.consent-btn--secondary{background:transparent;color:#2f6b58;border:1px solid #9eb5ad}
.consent-btn:focus-visible{outline:3px solid rgba(47,107,88,.25);outline-offset:2px}
@media(max-width:760px){.consent-banner__inner{align-items:flex-start;flex-direction:column}.consent-banner__actions{width:100%}.consent-btn{flex:1 1 0}}

/* ===== v73 UI typography + navigation polish ===== */
:root{--ui-sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
header,nav,.book-nav,.sidebar,.left-nav,.chapter-nav,button,.button,.cta,.chapter-kicker,.footer-row,.growth-note,.consent-banner{
  font-family:var(--ui-sans);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.nav-section-title,.nav-group-title,.book-nav>button,.sidebar>button,.left-nav>button{
  font-size:1.02rem;
  font-weight:700;
  line-height:1.35;
}
.book-nav .submenu a,.sidebar .submenu a,.left-nav .submenu a,.nav-children a{
  font-size:.93rem;
  font-weight:600;
  line-height:1.35;
}
a.current-page,a[aria-current="page"]{
  color:#173c32!important;
  font-weight:800!important;
  opacity:1!important;
}
header nav a,.top-nav a{
  font-size:.95rem;
  font-weight:700;
  letter-spacing:-.01em;
}
@media(min-width:1100px){
  .chapter-main-title{
    font-size:clamp(2.5rem,3.05vw,4.35rem);
    line-height:.98;
    letter-spacing:-.03em;
  }
}


/* ===== v74 left-rail typography + Chapter 5 fix ===== */

/* Crisp modern UI type for the entire left rail */
.book-nav{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-size:13.5px;
  line-height:1.48;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* BOOK CONTENTS label */
.book-nav-title{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-size:12px;
  font-weight:800;
}

/* Major navigation categories: Introduction, PA, Nutrition, Recovery, Resources */
.book-intro-link,
.toc-group > summary{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-size:15.5px;
  font-weight:800;
  line-height:1.3;
}

/* Keep chapter/resource children readable but subordinate */
.toc-items a,
.toc-items span{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-size:13.5px;
  line-height:1.35;
}

/* Ensure published chapters are always rendered as active links */
.toc-items a{
  color:var(--ink) !important;
  font-weight:700;
  opacity:1 !important;
}

/* Current chapter gets a little extra emphasis */
.toc-items a.current-page,
.toc-items a[aria-current="page"]{
  color:#173c32 !important;
  font-weight:800 !important;
}

/* End-matter remains readable without competing with major categories */
.toc-endmatter a{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-size:13.5px;
  font-weight:700;
}

/* Give the major categories a bit more breathing room */
.toc-group{
  padding:11px 0;
}
.book-intro-link{
  margin:9px 0 15px;
}


/* ===== Chapter 7 Strength Training ===== */
.theme-pa .strength-definitions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:24px 0 30px;
}
.theme-pa .strength-definitions > div{
  background:#fff;
  border:1px solid #d9e4e8;
  border-top:4px solid var(--pa);
  border-radius:14px;
  padding:19px 18px;
}
.theme-pa .strength-definitions strong{
  display:block;
  color:var(--pa);
  font:800 16px/1.3 Arial,sans-serif;
  margin-bottom:7px;
}
.theme-pa .strength-definitions span{
  display:block;
  font-size:16px;
  line-height:1.5;
}
.theme-pa .training-principles{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:24px 0 28px;
}
.theme-pa .training-principles > div{
  background:#fff;
  border:1px solid #d9e4e8;
  border-left:4px solid var(--pa);
  border-radius:14px;
  padding:18px 20px;
}
.theme-pa .training-principles strong{
  display:block;
  color:var(--ink);
  font:800 16px/1.3 Arial,sans-serif;
  margin-bottom:6px;
}
.theme-pa .training-principles span{
  display:block;
  font-size:16px;
  line-height:1.5;
}
.theme-pa .training-table th{
  background:var(--pa);
}
.theme-pa .data-callout{
  margin:28px 0;
  padding:22px 24px;
  border:1px solid #d9e4e8;
  border-left:5px solid var(--pa);
  border-radius:16px;
  background:#edf4f7;
}
.theme-pa .data-callout > strong{
  display:block;
  margin-bottom:10px;
}
.theme-pa .data-callout ul{
  margin:0;
  padding-left:22px;
}
.theme-pa .data-callout li{
  margin:7px 0;
  font-size:17px;
  line-height:1.45;
}
.theme-pa .chapter-figure img[src*="figure-7-2"]{
  max-width:700px;
  margin:0 auto;
}
@media(max-width:760px){
  .theme-pa .strength-definitions,
  .theme-pa .training-principles{grid-template-columns:1fr}
}


/* ===== v76: In This Chapter — site-wide visual energy ===== */
.chapter-links{
  position:relative;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.chapter-links::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:var(--accent);
}
.chapter-links:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(24,52,43,.06);
}
.chapter-links a{
  transition:color .16s ease, padding-left .16s ease, border-color .16s ease;
}
.chapter-links a:hover,
.chapter-links a:focus{
  padding-left:3px;
}
.theme-pa .chapter-links{
  background:#f1f6f8;
  border-color:#d6e3e8;
}
.theme-pa .chapter-links::before{background:var(--pa)}
.theme-pa .chapter-links a:hover,
.theme-pa .chapter-links a:focus{color:var(--pa);border-bottom-color:var(--pa)}
.theme-nutrition .chapter-links{
  background:#f1f6f3;
  border-color:#d8e5df;
}
.theme-nutrition .chapter-links::before{background:var(--nutrition)}
.theme-nutrition .chapter-links a:hover,
.theme-nutrition .chapter-links a:focus{color:var(--nutrition);border-bottom-color:var(--nutrition)}
.theme-recovery .chapter-links{
  background:#f6f3f8;
  border-color:#e2dae8;
}
.theme-recovery .chapter-links::before{background:var(--recovery)}
.theme-recovery .chapter-links a:hover,
.theme-recovery .chapter-links a:focus{color:var(--recovery);border-bottom-color:var(--recovery)}

/* Chapter 7 consistent category colors */
.theme-pa .strength-definitions > div{border-top-width:5px}
.theme-pa .strength-definitions .concept-strength{border-top-color:#557A8B}
.theme-pa .strength-definitions .concept-power{border-top-color:#4F8B86}
.theme-pa .strength-definitions .concept-muscle{border-top-color:#B49355}
.theme-pa .strength-definitions .concept-strength strong{color:#557A8B}
.theme-pa .strength-definitions .concept-power strong{color:#4F8B86}
.theme-pa .strength-definitions .concept-muscle strong{color:#9A783C}

.theme-pa .training-table{table-layout:fixed}
.theme-pa .training-table th,
.theme-pa .training-table td{
  overflow-wrap:normal;
  word-break:normal;
}
.theme-pa .training-table .aspect-head{background:#5D7F8E}
.theme-pa .training-table .strength-head{background:#557A8B}
.theme-pa .training-table .power-head{background:#4F8B86}
.theme-pa .training-table .muscle-head{background:#9A783C}

.figure-source-links{
  margin-top:8px;
  font-family:Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  font-style:normal;
}
.figure-source-links a{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px solid rgba(47,107,88,.35);
}
.theme-pa .figure-source-links a{
  color:var(--pa);
  border-bottom-color:rgba(85,122,139,.35);
}


/* ===== Chapter 8: The Push-Up Habit v77 ===== */
.theme-pa .push-pull-figure{
  margin:42px 0 48px;
  padding:26px 28px 22px;
  border:1px solid #d9e4e8;
  border-radius:18px;
  background:linear-gradient(145deg,#fff,#f7fafb);
}
.theme-pa .push-pull-figure .figure-label{
  font:900 15px/1.3 Arial,sans-serif;
  letter-spacing:.075em;
  color:var(--pa);
  margin-bottom:12px;
}
.theme-pa .push-pull-visual{display:flex;justify-content:center;align-items:center;padding:8px 0 4px}
.theme-pa .push-pull-visual svg{display:block;width:min(360px,76vw);height:auto}
.theme-pa .yy-base{fill:#f7f8f6}
.theme-pa .yy-pull{fill:#334843}
.theme-pa .yy-outline{fill:none;stroke:#18342b;stroke-width:4}
.theme-pa .yy-pull-dot{fill:#334843}
.theme-pa .yy-push-dot{fill:#f7f8f6;stroke:#d8e0dd;stroke-width:1.5}
.theme-pa .yy-push-label{fill:var(--pa);font:900 31px Arial,sans-serif;letter-spacing:.045em;text-anchor:middle}
.theme-pa .yy-pull-label{fill:#a9b6b2;font:800 23px Arial,sans-serif;letter-spacing:.04em;text-anchor:middle}
.theme-pa .push-pull-figure figcaption{margin-top:10px;text-align:center;color:#55625d;font-size:14px;line-height:1.55}

.theme-pa .push-pattern-table th:nth-child(1),.theme-pa .push-pattern-table td:nth-child(1){width:22%}
.theme-pa .push-pattern-table th:nth-child(2),.theme-pa .push-pattern-table td:nth-child(2){width:39%}
.theme-pa .push-pattern-table th:nth-child(3),.theme-pa .push-pattern-table td:nth-child(3){width:39%}
.theme-pa .push-hand-table th:nth-child(1),.theme-pa .push-hand-table td:nth-child(1){width:24%}
.theme-pa .push-hand-table th:nth-child(2),.theme-pa .push-hand-table td:nth-child(2){width:34%}
.theme-pa .push-hand-table th:nth-child(3),.theme-pa .push-hand-table td:nth-child(3){width:42%}

.theme-pa .system-effects{display:grid;gap:16px;margin:26px 0 34px}
.theme-pa .system-effect{
  padding:22px 24px 20px;
  border:1px solid #dbe4e6;
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 12px rgba(24,52,43,.035);
}
.theme-pa .system-effect h3{
  display:flex;align-items:center;gap:11px;
  margin:0 0 12px;
  color:var(--ink);
  font-size:21px;line-height:1.25;
}
.theme-pa .system-effect h3 small{font-size:.72em;font-weight:700;color:#61706b}
.theme-pa .system-effect p:last-child{margin-bottom:0}
.theme-pa .system-icon{
  flex:0 0 34px;width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:9px;background:#f0f5f6;color:var(--pa);
}
.theme-pa .system-icon svg{width:24px;height:24px;fill:currentColor;stroke:none}
.theme-pa .system-icon svg+svg{width:20px;margin-left:-5px}
.theme-pa .system-icon .icon-line{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.theme-pa .system-effect-cardio{border-left:5px solid #b84f4f}.theme-pa .system-effect-cardio .system-icon{color:#b84f4f;background:#faeeee}
.theme-pa .system-effect-metabolic{border-left:5px solid #b88447}.theme-pa .system-effect-metabolic .system-icon{color:#b88447;background:#fbf4e9}
.theme-pa .system-effect-msk{border-left:5px solid #557A8B}.theme-pa .system-effect-msk .system-icon{color:#557A8B;background:#edf4f7}
.theme-pa .system-effect-neuro{border-left:5px solid #76658C}.theme-pa .system-effect-neuro .system-icon{color:#76658C;background:#f1eef5}
.theme-pa .system-effect-mental{border-left:5px solid #9f6076}.theme-pa .system-effect-mental .system-icon{color:#9f6076;background:#f7edf1}
.theme-pa .system-effect-energy{border-left:5px solid #c18a36}.theme-pa .system-effect-energy .system-icon{color:#c18a36;background:#fbf3e6}
.theme-pa .evidence-stat{
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px;
  margin:8px 0 15px;padding:13px 15px;border-radius:12px;background:#fbf1f1;
}
.theme-pa .evidence-stat strong{font:900 34px/1 Arial,sans-serif;color:#a94040}
.theme-pa .evidence-stat span{font:700 14px/1.4 Arial,sans-serif;color:#4b5a55}

.theme-pa .progression-ladder{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:26px 0 30px}
.theme-pa .progression-ladder section{border:1px solid #d9e4e8;border-radius:15px;background:#fff;overflow:hidden}
.theme-pa .progression-level{padding:14px 16px;background:var(--pa-soft);color:var(--ink);font:900 16px/1.25 Arial,sans-serif;border-bottom:2px solid var(--pa)}
.theme-pa .progression-ladder ul{margin:0;padding:16px 18px 16px 35px}
.theme-pa .progression-ladder li{margin:8px 0;line-height:1.45}
.theme-pa .progression-ladder li span{color:#62706c;font-size:.92em}
.theme-pa .habit-guidelines{margin:20px 0;padding:18px 20px;border:1px solid #d9e4e8;border-left:5px solid var(--pa);border-radius:14px;background:#f8fbfc}
.theme-pa .habit-guidelines>strong{font:900 15px Arial,sans-serif;color:var(--ink);letter-spacing:.04em}
.theme-pa .optional-habit{margin-top:24px;padding:17px 19px;border-radius:13px;background:#f5f8f8;color:#44524d;line-height:1.6}
.theme-pa .closing-line{font-size:20px;color:var(--pa);margin-top:22px}
.theme-pa .medical-note{margin:42px 0 34px;padding:18px 20px;border:1px solid #d9e4e8;border-radius:14px;background:#f8faf9;color:#55625d;font-size:14px;line-height:1.55}
.theme-pa .medical-note a{color:var(--pa);font-weight:700;text-decoration:none;border-bottom:1px solid rgba(85,122,139,.35)}

@media(max-width:800px){
  .theme-pa .progression-ladder{grid-template-columns:1fr}
  .theme-pa .system-effect{padding:19px 18px}
  .theme-pa .evidence-stat{grid-template-columns:1fr;gap:5px}
  .theme-pa .evidence-stat strong{font-size:30px}
}
@media(max-width:700px){
  .theme-pa .push-pattern-table th,.theme-pa .push-pattern-table td,
  .theme-pa .push-hand-table th,.theme-pa .push-hand-table td{white-space:normal}
  .theme-pa .system-effect h3{align-items:flex-start;font-size:19px}
}


/* ===== System icon language + Chapter 8 refinements v78 ===== */
.theme-pa .system-heading{
  display:flex;
  align-items:center;
  gap:10px;
}
.theme-pa .system-heading > span:last-child{min-width:0}
.theme-pa .system-icon{
  flex:0 0 34px;width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;background:#f0f5f6;color:var(--pa);
  vertical-align:middle;
}
.theme-pa .system-icon + .system-icon{margin-left:-4px}
.theme-pa .system-icon svg{width:23px;height:23px;fill:currentColor;stroke:none}
.theme-pa .system-icon .icon-line{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.theme-pa .system-icon-cardio{color:#b84f4f;background:#faeeee}
.theme-pa .system-icon-resp{color:#df7777;background:#fceded}
.theme-pa .system-icon-metabolic{color:#b88447;background:#fbf4e9}
.theme-pa .system-icon-msk{color:#557A8B;background:#edf4f7}
.theme-pa .system-icon-neuro{color:#76658C;background:#f1eef5}
.theme-pa .system-icon-gi{color:#b77955;background:#fbf0e9}
.theme-pa .system-icon-uro{color:#4f86a8;background:#edf5fa}
.theme-pa .system-icon-immune{color:#4e8a73;background:#edf6f2}
.theme-pa .system-icon-cancer{color:#a65b8b;background:#f8edf4}
.theme-pa .system-icon-mental{color:#8d68a2;background:#f3eef6}
.theme-pa .system-icon-energy{color:#c18a36;background:#fbf3e6}
.theme-pa .system-icon-integrated{color:#4f7f77;background:#edf5f3}

/* Chapter 8 system cards keep structure but lose the colored left rail. */
.theme-pa .system-effect-cardio,
.theme-pa .system-effect-metabolic,
.theme-pa .system-effect-msk,
.theme-pa .system-effect-neuro,
.theme-pa .system-effect-mental,
.theme-pa .system-effect-energy{border-left:1px solid #dbe4e6}

/* Smaller, cleaner PUSH/PULL figure: label + caption sit outside the image box. */
.theme-pa .push-pull-figure{
  margin:36px 0 44px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.theme-pa .push-pull-figure .figure-label{
  display:grid;
  gap:2px;
  margin-bottom:10px;
  letter-spacing:0;
}
.theme-pa .push-pull-figure .figure-label span:first-child{
  font:900 14px/1.25 Arial,sans-serif;
  letter-spacing:.075em;
  color:var(--pa);
}
.theme-pa .push-pull-figure .figure-label span:last-child{
  font:800 19px/1.3 Georgia,'Times New Roman',serif;
  color:var(--ink);
}
.theme-pa .push-pull-box{
  width:min(320px,82vw);
  margin:0 auto;
  padding:12px;
  border:1px solid #d9e4e8;
  border-radius:16px;
  background:linear-gradient(145deg,#fff,#f7fafb);
}
.theme-pa .push-pull-visual{padding:0}
.theme-pa .push-pull-visual svg{width:min(260px,68vw)}
.theme-pa .yy-push-label{font-size:38px;letter-spacing:.055em}
.theme-pa .yy-pull-label{font-size:17px;font-weight:700;fill:#c2cbc8}
.theme-pa .push-pull-figure figcaption{
  max-width:620px;
  margin:10px auto 0;
  text-align:left;
}

/* Keep Chapter 8 tables inside the reading column and encourage sensible wrapping. */
.theme-pa .push-pattern-table,
.theme-pa .push-hand-table{table-layout:fixed;width:100%;font-size:15px}
.theme-pa .push-pattern-table th,.theme-pa .push-pattern-table td,
.theme-pa .push-hand-table th,.theme-pa .push-hand-table td{
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:normal;
  padding-left:11px;
  padding-right:11px;
}
.theme-pa .push-hand-table th:nth-child(1),.theme-pa .push-hand-table td:nth-child(1){width:22%}
.theme-pa .push-hand-table th:nth-child(2),.theme-pa .push-hand-table td:nth-child(2){width:31%}
.theme-pa .push-hand-table th:nth-child(3),.theme-pa .push-hand-table td:nth-child(3){width:47%}

/* Small visual echo of Figure 8.1 in the conclusion heading. */
.theme-pa .conclusion-heading-with-icon{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:10px;
  align-items:center;
}
.theme-pa .conclusion-heading-with-icon .mini-yinyang{grid-row:1 / span 2;grid-column:1}
.theme-pa .conclusion-heading-with-icon .section-label,
.theme-pa .conclusion-heading-with-icon .section-action{grid-column:2}
.theme-pa .mini-yinyang{width:34px;height:34px;display:inline-flex}
.theme-pa .mini-yinyang svg{width:34px;height:34px;display:block}
.theme-pa .mini-yinyang .my-base,.theme-pa .mini-yinyang .my-light{fill:#f7f8f6}
.theme-pa .mini-yinyang .my-dark{fill:#557A8B}

@media(max-width:700px){
  .theme-pa .push-pattern-table,.theme-pa .push-hand-table{font-size:13.5px}
  .theme-pa .push-pattern-table th,.theme-pa .push-pattern-table td,
  .theme-pa .push-hand-table th,.theme-pa .push-hand-table td{padding:9px 7px}
  .theme-pa .system-heading{align-items:flex-start}
  .theme-pa .system-icon{flex-basis:31px;width:31px;height:31px}
}
.theme-pa .system-icon + .system-icon{margin-left:-5px !important}
.theme-pa .system-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
@media (max-width:700px){
  .theme-pa .system-icon{flex-basis:40px !important;width:40px !important;height:40px !important}
  .theme-pa .system-heading{gap:9px}
}


/* v80: colorful whole-body icons, intentionally compact beside headings */
.theme-pa .system-heading{display:flex;align-items:center;gap:9px}
.theme-pa .system-icon{
  flex:0 0 30px !important;
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  min-height:30px !important;
  max-width:30px !important;
  max-height:30px !important;
  padding:0 !important;
  margin-top:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
.theme-pa .system-icon + .system-icon{margin-left:-3px !important}
.theme-pa .system-icon img{
  display:block !important;
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  min-height:30px !important;
  max-width:30px !important;
  max-height:30px !important;
  object-fit:cover !important;
  border-radius:50% !important;
}
@media (max-width:700px){
  .theme-pa .system-icon{
    flex-basis:28px !important;
    width:28px !important;height:28px !important;
    min-width:28px !important;min-height:28px !important;
    max-width:28px !important;max-height:28px !important;
  }
  .theme-pa .system-icon img{
    width:28px !important;height:28px !important;
    min-width:28px !important;min-height:28px !important;
    max-width:28px !important;max-height:28px !important;
  }
  .theme-pa .system-heading{gap:8px}
}


/* ===== v81 sidebar usability + author portrait ===== */
/* Keep the current section identity visible while the sidebar itself scrolls. */
.book-nav .toc-group > summary{
  position:sticky;
  top:0;
  z-index:8;
  background:rgba(250,249,246,.97);
  padding-top:8px;
  padding-bottom:8px;
  box-shadow:0 1px 0 rgba(28,61,52,.08);
}

/* On desktop, long TOC entries stay on one line and resolve cleanly with ellipsis. */
@media(min-width:1181px){
  .book-nav .toc-items a,
  .book-nav .toc-items span{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

/* Custom tooltip for a clipped TOC title. */
.toc-hover-tooltip{
  position:fixed;
  z-index:9999;
  max-width:min(420px,calc(100vw - 32px));
  padding:8px 10px;
  border:1px solid rgba(37,74,63,.18);
  border-radius:7px;
  background:#fffefb;
  color:#173c32;
  box-shadow:0 8px 24px rgba(21,50,42,.15);
  font:600 13px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  pointer-events:none;
  opacity:0;
  transform:translateY(2px);
  transition:opacity .12s ease,transform .12s ease;
}
.toc-hover-tooltip.is-visible{opacity:1;transform:translateY(0)}

/* About-the-author portrait: formal, editorial, and unobtrusive. */
.author-portrait{
  float:right;
  width:min(220px,34%);
  margin:0 0 22px 32px;
}
.author-portrait img{
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
  border:1px solid rgba(28,61,52,.12);
  box-shadow:0 10px 28px rgba(28,61,52,.12);
}
.author-portrait figcaption{
  margin-top:7px;
  text-align:center;
  color:#708078;
  font:600 12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.author-bio-section::after{content:"";display:block;clear:both}
@media(max-width:700px){
  .author-portrait{
    float:none;
    width:min(240px,72%);
    margin:4px auto 24px;
  }
}


/* ===== v82 homepage exploration + navigation refinements ===== */
/* The five primary sidebar categories should read more crisply than chapter entries. */
.book-nav .book-intro-link,
.book-nav .toc-group > summary{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:15px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.book-nav .book-intro-link{margin-top:9px;margin-bottom:14px}

/* System icons: keep the colorful artwork but increase visual presence ~30%. */
.theme-pa .system-icon{
  flex-basis:39px !important;
  width:39px !important;height:39px !important;
  min-width:39px !important;min-height:39px !important;
  max-width:39px !important;max-height:39px !important;
}
.theme-pa .system-icon img{
  width:39px !important;height:39px !important;
  min-width:39px !important;min-height:39px !important;
  max-width:39px !important;max-height:39px !important;
}
.theme-pa .system-heading{gap:10px}
@media(max-width:700px){
  .theme-pa .system-icon{
    flex-basis:36px !important;width:36px !important;height:36px !important;
    min-width:36px !important;min-height:36px !important;max-width:36px !important;max-height:36px !important;
  }
  .theme-pa .system-icon img{
    width:36px !important;height:36px !important;min-width:36px !important;min-height:36px !important;max-width:36px !important;max-height:36px !important;
  }
}

/* Homepage: introduce the three pillars before presenting them. */
.habits-explore{scroll-margin-top:105px;margin:42px 0 0}
.habits-explore-intro{max-width:780px;margin-bottom:28px}
.habits-explore-intro h2{margin:8px 0 14px;font-size:34px}
.habits-explore-intro p{margin:0 0 8px}
.habits-explore-prompt{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px !important;font-weight:800;color:var(--muted);letter-spacing:.01em}

.pillar-cards{margin-top:24px}
.pillar-card{
  appearance:none;-webkit-appearance:none;width:100%;text-align:left;color:var(--ink);
  font-family:Georgia,'Times New Roman',serif;cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.pillar-card:hover,.pillar-card:focus-visible{transform:translateY(-3px);box-shadow:0 12px 28px rgba(24,52,43,.10);outline:none}
.pillar-card.is-active{box-shadow:0 0 0 2px rgba(85,122,139,.26),0 12px 30px rgba(24,52,43,.08)}
.pillar-card h2,.pillar-card h3,.pillar-card p{pointer-events:none}
.pillar-card-action{display:block;margin-top:22px;font:800 13px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;pointer-events:none}
.pa-card .pillar-card-action{color:var(--pa)}
.nutrition-card .pillar-card-action{color:var(--nutrition)}
.recovery-card .pillar-card-action{color:var(--recovery)}

.pillar-panels{margin-top:22px}
.pillar-panel{border:1px solid var(--line);border-radius:20px;padding:28px;background:#fff}
.pa-panel{background:linear-gradient(180deg,#eef5f8 0%,#fff 34%);border-color:#cadde5}
.pillar-panel-heading{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin-bottom:22px}
.pillar-panel-heading>div{display:flex;align-items:baseline;gap:12px}
.pillar-panel-heading h2{font-size:28px;margin:0;color:var(--ink)}
.pillar-panel-heading p{font-size:15px;line-height:1.55;color:var(--muted);max-width:430px;margin:0}
.pillar-number{font:900 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--pa)}
.habit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.habit-card{position:relative;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:start;padding:15px 16px;border:1px solid #d8e4e8;border-radius:13px;background:#fff;text-decoration:none;color:var(--ink);min-height:82px}
.habit-card>span{grid-row:1 / span 2;font:900 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--pa);padding-top:3px}
.habit-card strong{font:800 16px/1.28 Georgia,'Times New Roman',serif;color:var(--ink)}
.habit-card em{font:600 12.5px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#6f7c77;margin-top:4px;font-style:normal}
.habit-card.is-live{transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.habit-card.is-live:hover,.habit-card.is-live:focus-visible{transform:translateY(-2px);border-color:#93b3c1;box-shadow:0 8px 18px rgba(50,91,106,.09);outline:none}
.habit-card.is-live::after{content:"›";position:absolute;right:12px;top:50%;transform:translateY(-50%);font:700 18px Arial,sans-serif;color:#87a5b1}
.habit-card.is-coming{background:rgba(255,255,255,.54);color:#7f8a85;border-style:dashed}
.habit-card.is-coming strong{color:#65736e}.habit-card.is-coming em{color:#96a09c}
.coming-panel{text-align:center;padding:30px 20px}
.coming-panel>span{font:900 12px Arial,sans-serif;letter-spacing:.12em}
.coming-panel h2{margin:8px 0 10px;font-size:28px}.coming-panel p{max-width:570px;margin:0 auto;color:var(--muted)}
.nutrition-panel .coming-panel>span{color:var(--nutrition)}
.recovery-panel .coming-panel>span{color:var(--recovery)}

@media(max-width:760px){
  .habits-explore-intro h2{font-size:29px}
  .pillar-panel{padding:20px 16px}
  .pillar-panel-heading{display:block}.pillar-panel-heading>div{margin-bottom:8px}.pillar-panel-heading p{max-width:none}
  .habit-grid{grid-template-columns:1fr}
}

/* ===== v85 homepage pillar preview + sidebar refinement ===== */
/* Main sidebar category labels: crisp and slightly larger; chapter titles unchanged. */
.book-nav .book-intro-link,
.book-nav .toc-group > summary{font-size:16px;font-weight:800;letter-spacing:-.01em;}

/* Preserve the original three-tile appearance. */
.pillar-cards{position:relative;align-items:stretch;}
.cards > .pillar-card{
  position:relative;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-top:5px solid transparent;
  border-radius:18px;
  padding:25px;
  text-align:left;
  color:var(--ink);
  font-family:Georgia,'Times New Roman',serif;
  min-width:0;
}
.cards > .pa-card{border-top-color:var(--pa);background:#e7f0f4;}
.cards > .nutrition-card{border-top-color:var(--nutrition);background:#e6f0eb;}
.cards > .recovery-card{border-top-color:var(--recovery);background:#eee8f3;}
.pillar-card h2{font-size:24px;margin:12px 0;}
.pillar-card p{font-size:16px;}
.pillar-card b{font:800 12px Arial,sans-serif;}
.pillar-card .pillar-card-action{
  display:block;
  margin-top:auto;
  padding-top:22px;
  min-height:18px;
  font:800 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.pa-card .pillar-card-action{color:var(--pa);opacity:.78;transition:opacity .15s ease,transform .15s ease;}
.nutrition-card .pillar-card-action{color:var(--nutrition);}
.recovery-card .pillar-card-action{color:var(--recovery);}
.pillar-card-interactive{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;}
.pillar-card-interactive:hover,.pillar-card-interactive:focus-visible{transform:translateY(-2px);box-shadow:0 10px 24px rgba(24,52,43,.09);outline:none;}
.pa-card:hover .pillar-card-action,.pa-card:focus-visible .pillar-card-action,.pa-card[aria-expanded="true"] .pillar-card-action{opacity:1;transform:translateX(2px);}

/* PA preview expands the document flow instead of floating over Core Principles. */
.pillar-expand-panel{
  margin-top:18px;
  padding:22px 24px 24px;
  background:#fff;
  border:1px solid #cbdde4;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(24,52,43,.08);
  color:var(--ink);
}
.pillar-expand-panel[hidden]{display:none;}
.pillar-expand-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px;}
.pillar-expand-head>div{display:flex;align-items:baseline;gap:12px;}
.pillar-expand-head strong{font:800 22px/1.2 Georgia,'Times New Roman',serif;}
.pillar-number{font:900 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--pa);letter-spacing:.04em;}
.pillar-expand-copy{margin:0 42px 14px 0;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--muted);}
.pillar-expand-close{border:0;background:transparent;color:#71817b;font:500 28px/1 Arial,sans-serif;cursor:pointer;padding:0 4px;}
.pillar-expand-close:hover,.pillar-expand-close:focus-visible{color:var(--ink);outline:none;}

/* Catalog list: deliberate number/title spacing and no chapter links. */
.habit-preview-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;}
.habit-preview-list>div{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:baseline;
  column-gap:12px;
  padding:9px 4px;
  border-bottom:1px solid #e6ece9;
  min-width:0;
}
.habit-preview-list span{display:block;font:800 12px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--pa);font-variant-numeric:tabular-nums;}
.habit-preview-list strong{display:block;font:700 15px/1.3 Georgia,'Times New Roman',serif;color:var(--ink);min-width:0;}
.habit-preview-list em{display:block;font:600 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#929c98;white-space:nowrap;font-style:italic;}
.habit-preview-list .is-coming strong{color:#7f8985;}

@media(max-width:900px){
  .habit-preview-list{grid-template-columns:1fr;}
  .pillar-expand-panel{padding:18px 16px 20px;}
  .pillar-expand-copy{margin-right:0;}
}

/* ===== v86 chapter typography lock + definitive system-icon sizing ===== */
/* Preserve established chapter text scale; this release changes icons only. */
.theme-pa article p,
.theme-pa article li{
  font-size:18px;
}

/* One final icon rule overrides legacy v78-v85 experiments. */
.theme-pa .system-heading{
  display:flex;
  align-items:center;
  gap:11px;
}
.theme-pa .system-icon{
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
.theme-pa .system-icon img{
  display:block !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  object-fit:cover !important;
  border-radius:50% !important;
}
@media(max-width:700px){
  .theme-pa article p,
  .theme-pa article li{
    font-size:18px;
  }
  .theme-pa .system-icon{
    flex-basis:38px !important;
    width:38px !important;height:38px !important;
    min-width:38px !important;min-height:38px !important;
    max-width:38px !important;max-height:38px !important;
  }
  .theme-pa .system-icon img{
    width:38px !important;height:38px !important;
    min-width:38px !important;min-height:38px !important;
    max-width:38px !important;max-height:38px !important;
  }
}


/* ===== v87: Chapter 9 + reading density + homepage Core Principles spacing ===== */
/* Main article reading text: slightly more book-like density. Component-specific
   table/reference/caption rules retain their own established sizes. */
body[class*="theme-"] article p,
body[class*="theme-"] article li{
  font-size:17px;
  line-height:1.55;
}

/* Keep the larger v86 whole-body icons and all existing heading sizes unchanged. */

/* Chapter 9: same PUSH/PULL visual language as Chapter 8, with PULL emphasized. */
.theme-pa .pull-focus .yy-base{fill:#f7f8f6}
.theme-pa .pull-focus .yy-pull{fill:#557A8B}
.theme-pa .pull-focus .yy-outline{stroke:#18342b}
.theme-pa .pull-focus .yy-pull-dot{fill:#557A8B}
.theme-pa .pull-focus .yy-push-dot{fill:#f7f8f6;stroke:#d8e0dd;stroke-width:1.5}
.theme-pa .pull-focus .yy-push-label{font-size:17px;font-weight:700;fill:#aebbb7;letter-spacing:.04em}
.theme-pa .pull-focus .yy-pull-label{font-size:38px;font-weight:900;fill:#fff;letter-spacing:.055em}

/* Pull-up progression: compact five-step pathway. */
.theme-pa .pull-progression{margin:24px 0 30px}
.theme-pa .pull-progression ol{list-style:none;counter-reset:pullstep;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.theme-pa .pull-progression li{counter-increment:pullstep;position:relative;min-width:0;padding:42px 12px 14px;border:1px solid #d9e4e8;border-radius:14px;background:#fff;text-align:center;font-family:Arial,sans-serif}
.theme-pa .pull-progression li::before{content:counter(pullstep);position:absolute;top:10px;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--pa);color:#fff;font:800 12px Arial,sans-serif}
.theme-pa .pull-progression strong{display:block;font-size:13px;line-height:1.25;color:var(--ink)}
.theme-pa .pull-progression span{display:block;margin-top:5px;font-size:11.5px;line-height:1.3;color:#6a7772}
.theme-pa .pull-target-table{table-layout:fixed;width:100%;font-size:14px}
.theme-pa .pull-target-table th,.theme-pa .pull-target-table td{padding:10px 8px;text-align:center;white-space:normal}
.theme-pa .pull-target-table th:nth-child(1),.theme-pa .pull-target-table td:nth-child(1){width:12%}
.theme-pa .pull-target-table th:nth-child(2),.theme-pa .pull-target-table td:nth-child(2){width:14%}
.theme-pa .pull-target-table th:nth-child(n+3),.theme-pa .pull-target-table td:nth-child(n+3){width:18.5%}

/* Integrated-system card uses the integrated icon without adding a colored rail. */
.theme-pa .system-effect-integrated{border-left:1px solid #dbe4e6}

/* Homepage: keep the same circle design/orbit, but reduce excess vertical white space. */
@media(min-width:901px){
  .principles-section{margin-top:60px}
  .principles-visual{margin-top:26px;margin-bottom:26px}
}

@media(max-width:800px){
  .theme-pa .pull-progression ol{grid-template-columns:1fr 1fr}
  .theme-pa .pull-progression li:last-child{grid-column:1 / -1}
}
@media(max-width:520px){
  .theme-pa .pull-progression ol{grid-template-columns:1fr}
  .theme-pa .pull-progression li:last-child{grid-column:auto}
  .theme-pa .pull-target-table{font-size:12px}
  .theme-pa .pull-target-table th,.theme-pa .pull-target-table td{padding:8px 5px}
}


/* ===== v88: Chapter 9 refinements ===== */
.theme-pa .pull-target-table tbody tr:nth-child(3) td{
  border-bottom:2px solid #6f8d98;
}
.theme-pa .pull-question{
  margin-left:28px;
  font-size:1.06em;
}
.theme-pa .shoulder-lead{
  line-height:1.42;
}
@media(max-width:700px){
  .theme-pa .pull-question{margin-left:18px;}
}


/* ===== v89: Chapter 9 section revision + table group closure ===== */
.theme-pa .pull-target-table tbody tr:last-child td{
  border-bottom:2px solid #6f8d98;
}


/* ===== v91 navigation, Introduction emphasis, and whole-body card standardization ===== */
.site-header nav a,.top-nav a{font-size:16px;}

/* Chapters 1, 3, 4, 5, and 7 now use the same restrained whole-body card language as Chapters 8 and 9. */
.theme-pa .system-list > .system-effects{margin-top:22px;}



/* ===== v92 responsive design + Chapter 20 ===== */
/* Mobile/tablet Contents control: injected by script.js when a book navigation rail exists. */
.mobile-contents-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #cad6d1;
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  padding:9px 13px;
  font:800 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}
.mobile-contents-toggle .hamburger-glyph{font-size:17px;line-height:1;transform:translateY(-1px)}
.mobile-nav-backdrop{
  position:fixed;inset:0;z-index:90;background:rgba(20,39,33,.42);
  opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease;
}
.mobile-nav-drawer{
  position:fixed;z-index:100;top:0;left:0;width:min(88vw,370px);height:100dvh;
  background:var(--paper);box-shadow:8px 0 30px rgba(20,39,33,.20);
  transform:translateX(-102%);transition:transform .22s ease;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:18px 18px 30px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.mobile-nav-backdrop.is-open{opacity:1;visibility:visible}
.mobile-nav-drawer.is-open{transform:translateX(0)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0 12px;border-bottom:1px solid var(--line);margin-bottom:8px}
.mobile-drawer-head strong{font:900 14px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.06em}
.mobile-drawer-close{width:38px;height:38px;border:1px solid #cad6d1;border-radius:50%;background:#fff;color:var(--ink);font:700 23px/1 Arial,sans-serif;cursor:pointer}
.mobile-nav-drawer .book-nav{display:block!important;position:static!important;top:auto!important;border-left:0!important;padding:0!important;margin:0!important;width:auto!important;max-height:none!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
.mobile-nav-drawer .book-nav-title{display:none}
.mobile-nav-drawer .book-nav .toc-items a,.mobile-nav-drawer .book-nav .toc-items span,.mobile-nav-drawer .book-nav > a,.mobile-nav-drawer .book-nav summary{white-space:normal!important}
.mobile-nav-drawer .toc-hover-tooltip{display:none!important}
body.mobile-nav-open{overflow:hidden}

/* Nutrition chapter whole-body cards match the established Chapter 8/9 card language. */
.theme-nutrition .system-effects{display:grid;gap:16px;margin:26px 0 34px}
.theme-nutrition .system-effect{padding:22px 24px 20px;border:1px solid #dbe4e0;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(24,52,43,.035)}
.theme-nutrition .system-effect h3{display:flex;align-items:center;gap:11px;margin:0 0 12px;color:var(--ink);font-size:21px;line-height:1.25}
.theme-nutrition .system-effect p:last-child{margin-bottom:0}
.theme-nutrition .system-heading{display:flex;align-items:center;gap:10px}
.theme-nutrition .system-icon{flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;max-width:42px;max-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background:transparent}
.theme-nutrition .system-icon img{display:block;width:42px;height:42px;min-width:42px;min-height:42px;max-width:42px;max-height:42px;object-fit:cover;border-radius:50%}
.theme-nutrition .system-icon + .system-icon{margin-left:-4px}
.theme-nutrition .system-effect-metabolic{border-left:5px solid #b88447}
.theme-nutrition .system-effect-neuro{border-left:5px solid #76658C}
.theme-nutrition .system-effect-gi{border-left:5px solid #b77955}
.theme-nutrition .system-effect-mental{border-left:5px solid #8d68a2}
.theme-nutrition .system-effect-integrated{border-left:5px solid var(--nutrition,#4f7f50)}
.theme-nutrition .section-transition{font-style:italic;color:#4e6158;margin-top:28px}

@media(max-width:900px){
  /* Preserve the desktop rail at landscape-tablet/desktop widths; switch to drawer below 900px. */
  .site-header{padding:12px 16px;gap:12px}
  .site-header .brand{min-width:0;gap:9px}
  .site-header .brandmark{width:34px;height:34px;flex:0 0 34px;font-size:16px}
  .site-header .brand strong{font-size:16px}
  .site-header .brand-tagline{font-size:11px;line-height:1.2}
  .mobile-contents-toggle{display:inline-flex;margin-left:auto}
  #progress{top:59px}
  .shell{display:block;max-width:820px;padding:30px 5vw 72px}
  .shell > article{width:100%;max-width:760px;margin:0 auto}
  .shell > .book-nav{display:none!important}
  article img,article svg,article figure{max-width:100%}
  .table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .system-effects{gap:13px}
  .theme-nutrition .system-effect,.theme-pa .system-effect{padding:19px 19px 18px}
}

@media(max-width:600px){
  .site-header{padding:10px 14px}
  .site-header .brand-tagline{display:none}
  .mobile-contents-toggle{padding:9px 11px;font-size:12.5px}
  #progress{top:55px}
  .shell{padding:24px 17px 62px}
  .chapter-kicker{margin-bottom:10px}
  .chapter-main-title{font-size:clamp(34px,10.6vw,46px)!important;line-height:1.02!important}
  .chapter-subtitle{font-size:18px!important;line-height:1.3!important}
  body[class*="theme-"] article p,body[class*="theme-"] article li{font-size:17px;line-height:1.55}
  article > h2{font-size:27px!important;line-height:1.18;margin-top:44px}
  article > h3{font-size:21px}
  .tldr-box{padding:20px 18px!important;border-radius:14px!important}
  .chapter-links{padding:18px 18px 18px 20px!important}
  .habit-heading,.conclusion-heading{padding:20px 18px!important}
  .theme-nutrition .system-effect,.theme-pa .system-effect{padding:18px 16px 17px;border-radius:14px}
  .theme-nutrition .system-effect h3,.theme-pa .system-effect h3{font-size:19px;line-height:1.25}
  .theme-nutrition .system-icon{flex-basis:38px;width:38px;height:38px;min-width:38px;min-height:38px;max-width:38px;max-height:38px}
  .theme-nutrition .system-icon img{width:38px;height:38px;min-width:38px;min-height:38px;max-width:38px;max-height:38px}
  .habit-arrow-list li{padding-left:30px}
  .references li{font-size:14.5px!important;overflow-wrap:anywhere}
  .footer-row{font-size:12px}
}

@media(max-width:390px){
  .site-header .brand strong{font-size:15px}
  .mobile-contents-toggle .contents-word{display:none}
  .mobile-contents-toggle{width:42px;height:38px;padding:0;border-radius:12px}
  .mobile-contents-toggle .hamburger-glyph{font-size:20px}
  .shell{padding-left:14px;padding-right:14px}
}


/* ===== v93 homepage pillar CTA normalization + Nutrition preview ===== */
.pillar-card .pillar-card-action{
  opacity:1 !important;
  transform:none !important;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  letter-spacing:.005em;
}
.pillar-card-interactive:hover .pillar-card-action,
.pillar-card-interactive:focus-visible .pillar-card-action,
.pillar-card-interactive[aria-expanded="true"] .pillar-card-action{
  transform:translateX(2px) !important;
}
.nutrition-expand-panel{
  border-color:#c9ddd2;
  background:linear-gradient(180deg,#f6faf8 0%,#fff 34%);
}
.nutrition-expand-panel .pillar-number,
.nutrition-expand-panel .habit-preview-list span{color:var(--nutrition);}
