/* A fixed masthead must not obscure a chapter reached from an index. */
section[id] { scroll-margin-top:98px; }
.lifeq-index { top:78px; }
.lifeq-chapter[id], .lifeq-mindful[id], .lifeq-detox[id] { scroll-margin-top:210px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid #aa7829; outline-offset:5px; }
.menu { min-width:64px; min-height:44px; color:var(--ink); font:inherit; cursor:pointer; }
.site-header nav { max-height:calc(100svh - 78px); overflow-y:auto; }
.lifeq-practical { padding:clamp(1.4rem,4vw,3rem); margin:2rem 0; background:#e3efeb; border-left:4px solid #bc9555; }
.lifeq-practical h3 { margin-bottom:1rem; }
.lifeq-practical ol { padding-left:1.3rem; }
.lifeq-practical li + li { margin-top:.6rem; }
.lifeq-practical p { margin-top:1rem; line-height:1.65; }
.lifeq-hero .eyebrow { color:#b5ddd6; }
.lifeq-chapter { align-items:start; }
.lifeq-chapter figure { min-height:0; height:calc(100svh - 162px); position:sticky; top:162px; }
.lifeq-chapter figure img { display:block; }
@media(max-width:980px) {
  .site-header nav a { display:flex; align-items:center; min-height:44px; }
  .site-header nav { gap:.3rem; padding-top:.8rem; padding-bottom:.8rem; }
  .lifeq-index { position:relative; top:auto; }
  .lifeq-chapter[id], .lifeq-mindful[id], .lifeq-detox[id] { scroll-margin-top:98px; }
}
@media(max-width:900px) {
  .lifeq-chapter figure { position:relative; top:auto; height:min(140vw,680px); min-height:0; }
}
@media(max-width:650px) {
  .lifeq-hero-media { background-image:linear-gradient(90deg,rgba(5,42,44,.92),rgba(5,42,44,.72)),url('assets/family-water.png'); }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .reveal { transition:none; transform:none; }
}
