/* Dementia Steady, the family course. Shared by index.html (the gated
   course) and module-1.html (Module 1, open to everyone). One sheet so the
   two pages cannot drift; it was the inline <style> of index.html until
   14 September 2026. */
:root{
  --ink:#232220;
  --charcoal:#3A3835;
  --charcoal-dark:#1E1D1B;
  --charcoal-tint:#F2F1EE;
  --amber:#C8762C;
  --amber-text:#9B5619;
  --amber-tint:#FBEEDF;
  --line:#E3E0D8;
  --bg:#FFFFFF;
  --bg-tint:#F7F9F8;
  --max-w:760px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Atkinson Hyperlegible', Arial, sans-serif;
  font-size:18px;
  line-height:1.7;
}
h1,h2{
  font-family:'Source Serif 4', Georgia, serif;
  font-weight:700;
  color:var(--charcoal-dark);
}
h3,h4{font-family:'Atkinson Hyperlegible', Arial, sans-serif; font-weight:700;}
a{color:var(--charcoal); text-decoration:underline; font-weight:700;}
a:hover{color:var(--amber-text);}

/* ---- Header / nav ---- */
header.site{
  background:var(--bg);
  border-bottom:5px solid var(--charcoal);
  padding:20px 24px 0;
}
.wordmark{
  max-width:var(--max-w);
  margin:0 auto;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.wordmark .name{display:block;}
.wordmark .name img{
  height:46px;
  display:block;
}
.wordmark .tag{
  font-size:13px;
  font-weight:700;
  color:var(--amber-text);
}
nav.modnav{
  max-width:var(--max-w);
  margin:16px auto 0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
nav.modnav button{
  background:var(--charcoal-tint);
  border:2px solid var(--line);
  border-bottom:none;
  border-radius:8px 8px 0 0;
  color:var(--ink);
  font-family:'Atkinson Hyperlegible', Arial, sans-serif;
  font-size:15px;
  font-weight:700;
  min-height:44px;
  padding:10px 16px;
  cursor:pointer;
  white-space:nowrap;
}
nav.modnav button:hover{background:var(--line);}
nav.modnav button.active{
  background:var(--charcoal);
  border-color:var(--charcoal);
  color:#fff;
}
/* A finished module gets a quiet check. Nothing marks an unfinished one:
   the page says nobody is grading you, and a row of empty circles would. */
.tick{margin-left:6px; color:var(--amber-text);}
nav.modnav button.active .tick, #modbar-label .tick{color:#fff;}
/* Phones get one strip, Previous / where you are / Next, with the full
   list behind the middle button. Seven wrapping tabs took five rows and a
   quarter of the screen, and read as a table of contents, not as buttons. */
.modbar{display:none;}
@media (max-width:699px){
  .modbar{
    max-width:var(--max-w);
    margin:14px auto 12px;
    display:flex;
    align-items:stretch;
    gap:8px;
  }
  .modbar button{
    font-family:'Atkinson Hyperlegible', Arial, sans-serif;
    font-size:15px;
    font-weight:700;
    line-height:1.25;
    min-height:48px;
    border:2px solid var(--charcoal);
    border-radius:8px;
    background:#fff;
    color:var(--ink);
    cursor:pointer;
    padding:8px 10px;
  }
  .modbar button:disabled{border-color:var(--line); color:#8a857d; cursor:default;}
  .modbar .modbar-where{
    flex:1; background:var(--charcoal); color:#fff; border-color:var(--charcoal);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  }
  /* The words, not just a caret: the caret convention is not one every
     reader has learned, and the list is the jump-around path Start Here promises. */
  .modbar .modbar-all{font-size:12.5px; font-weight:700;}
  nav.modnav{display:none; flex-direction:column; gap:8px; margin:0 auto 14px;}
  nav.modnav.open{display:flex;}
  nav.modnav button{
    border:2px solid var(--charcoal);
    border-radius:8px;
    min-height:48px;
    text-align:left;
    white-space:normal;
    width:100%;
  }
}
nav.modnav button:focus-visible, button:focus-visible, .reveal-btn:focus-visible{
  outline:3px solid var(--amber);
  outline-offset:2px;
}

/* ---- Main ---- */
main{
  max-width:var(--max-w);
  margin:0 auto;
  padding:36px 24px 100px;
}
.panel{display:none;}
.panel.active{display:block; animation:fade .35s ease;}
@media (prefers-reduced-motion: reduce){
  .panel.active{animation:none;}
  .level-line{transition:none;}
}
@keyframes fade{ from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:translateY(0);} }

.mod-eyebrow{
  font-size:13px;
  font-weight:700;
  color:var(--amber-text);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.mod-title{font-size:32px; margin:0 0 8px; line-height:1.2;}
.mod-sub{
  font-style:italic;
  color:var(--charcoal-dark);
  font-size:18px;
  margin:0 0 28px;
  border-left:4px solid var(--amber);
  padding-left:14px;
}
h2.part{
  font-size:23px;
  margin:44px 0 16px;
  padding-left:20px;
  position:relative;
}
h2.part::before{
  content:'';
  position:absolute;
  left:0; top:6px;
  width:10px; height:10px;
  border-radius:50%;
  background:var(--amber);
}
h2.part::after{
  content:'';
  display:block;
  width:48px; height:3px;
  background:var(--charcoal);
  margin-top:8px;
}
p{margin:0 0 14px;}
.intro p{font-size:18.5px;}

/* ---- Level-line signature element (reveal moment) ---- */
.level-line{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .5s ease, transform .5s ease;
}
.level-line.shown{opacity:1; transform:translateY(0);}
.level-line .bar{flex:1; height:3px; background:var(--charcoal);}
.level-line .dot{width:9px;height:9px;border-radius:50%; background:var(--amber); flex:none;}
.level-line .label{
  font-size:11px; font-weight:700; color:var(--charcoal-dark);
  letter-spacing:.08em; text-transform:uppercase; flex:none;
}

/* ---- Pause / reveal ---- */
.pause-block{
  background:var(--charcoal-tint);
  border:2px solid var(--charcoal);
  border-radius:8px;
  padding:18px 20px;
  margin:18px 0 22px;
}
.pause-block .prompt{
  font-size:16px;
  font-weight:700;
  color:var(--charcoal-dark);
  margin-bottom:14px;
}
.reveal-btn{
  font-size:15px;
  font-weight:700;
  font-family:'Atkinson Hyperlegible', Arial, sans-serif;
  background:var(--charcoal);
  color:#fff;
  border:none;
  min-height:44px;
  padding:11px 20px;
  border-radius:8px;
  cursor:pointer;
}
.reveal-btn:hover{background:var(--charcoal-dark);}
.reveal-content{display:none; margin-top:16px; padding-top:4px;}
.reveal-content.open{display:block;}
.reveal-content em{font-style:italic; color:var(--ink);}

/* ---- Respond blocks (write-before-reveal) ---- */
.respond-block{
  background:var(--charcoal-tint);
  border:2px solid var(--charcoal);
  border-radius:8px;
  padding:18px 20px;
  margin:18px 0 22px;
}
.respond-setup{
  font-size:16.5px;
  margin-bottom:14px;
}
.respond-block .prompt{
  font-size:16px;
  font-weight:700;
  color:var(--charcoal-dark);
  margin-bottom:10px;
}
.respond-input{
  width:100%;
  font-family:'Atkinson Hyperlegible', Arial, sans-serif;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  background:#fff;
  border:2px solid var(--line);
  border-radius:6px;
  padding:10px 12px;
  resize:vertical;
  box-sizing:border-box;
}
.respond-input:focus{outline:none; border-color:var(--charcoal);}
.respond-input.locked{background:var(--bg-tint); color:#55504a;}
.respond-block .reveal-btn{margin-top:10px;}
.respond-block .reveal-btn:disabled{
  background:var(--line);
  color:#8a857d;
  cursor:not-allowed;
}
.respond-hint{
  font-size:13px;
  color:#5f5f5a;
  margin-top:8px;
}
.your-answer{margin:14px 0;}
.echo-label{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--amber-text);
  margin-bottom:4px;
}
.echo-text{
  font-size:15.5px;
  font-style:italic;
  color:var(--charcoal-dark);
  border-left:3px solid var(--amber);
  padding-left:12px;
}

/* ---- Pickup boxes (saved reflections resurfacing) ---- */
.pickup-box{display:none;}
.pickup-box.pickup-filled{
  display:block;
  background:var(--amber-tint);
  border-left:4px solid var(--amber);
  border-radius:0 8px 8px 0;
  padding:14px 16px;
  margin:0 0 26px;
}

/* ---- In-page field card ---- */
.fieldcard{
  border:3px solid var(--charcoal-dark);
  border-radius:8px;
  padding:20px 22px;
  margin:18px 0;
  background:#fff;
}
.fieldcard h3{
  margin:0 0 4px;
  font-size:20px;
  font-family:'Source Serif 4', Georgia, serif;
  color:var(--charcoal-dark);
}
.fieldcard .fc-tag{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--amber-text);
  margin-bottom:12px;
}
.fieldcard ol{margin:0 0 12px; padding-left:20px;}
.fieldcard li{margin-bottom:8px; font-size:15.5px;}
.fieldcard li strong{color:var(--charcoal-dark);}
.fieldcard .fc-foot{
  border-top:1px solid var(--line);
  padding-top:10px;
  font-size:13.5px;
  color:#5f5f5a;
}
@media print{
  body.print-card > *{display:none !important;}
  body.print-card #printclone{display:block !important; font-family:'Atkinson Hyperlegible', Arial, sans-serif;}
}

/* ---- Scenario cards ---- */
.scenario{
  background:var(--bg-tint);
  border-left:5px solid var(--charcoal);
  border-radius:0 8px 8px 0;
  padding:12px 16px;
  margin:20px 0;
}
.scenario .who{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--charcoal-dark);
  margin-bottom:6px;
}
.scenario p{font-size:17px; margin-bottom:0;}

/* ---- Principle / behavior grid ---- */
.pgrid{display:grid; gap:14px; margin:18px 0 6px;}
@media(min-width:600px){ .pgrid.two{grid-template-columns:1fr 1fr;} }
.pcard{
  background:#fff;
  border:1px solid var(--line);
  border-left:5px solid var(--charcoal);
  border-radius:8px;
  padding:14px 16px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.pcard h4{margin:0 0 6px; font-size:17px; color:var(--charcoal-dark);}
.pcard p{margin:0; font-size:16px;}
.pcard .often{color:#6b6760; font-size:14.5px; margin-top:6px; font-style:italic; font-weight:400;}
.pcard .try{color:var(--charcoal-dark); font-size:14.5px; margin-top:6px; font-weight:700;}

.callout{
  background:var(--charcoal-tint);
  border-left:5px solid var(--charcoal);
  border-radius:0 8px 8px 0;
  padding:18px 20px;
  margin:22px 0;
  font-size:16.5px;
}
.callout strong{color:var(--charcoal-dark);}

.commit-box{
  background:var(--bg-tint);
  border:2px solid var(--charcoal);
  border-radius:8px;
  padding:18px 20px;
  margin:24px 0;
}
.commit-box .not{color:#5f5f5a; font-size:16px;}
.commit-box .instead{font-size:16px; font-weight:700; color:var(--charcoal-dark);}

.placeholder-note{
  font-size:15px;
  font-style:italic;
  color:var(--charcoal-dark);
  background:var(--amber-tint);
  border-left:4px solid var(--amber);
  border-radius:0 8px 8px 0;
  padding:12px 16px;
  margin:18px 0;
}
.helpline{
  background:var(--amber-tint);
  border:2px solid var(--amber);
  border-radius:8px;
  padding:14px 16px;
  font-size:15.5px;
  margin:14px 0 0;
}
.continue-next{margin:24px 0 0; text-align:center;}
.continue-next a{
  display:inline-block;
  font-family:'Atkinson Hyperlegible', Arial, sans-serif;
  font-size:16px;
  font-weight:700;
  color:#fff;
  background:var(--amber-text);
  border-radius:8px;
  padding:14px 28px;
  text-decoration:none;
}
.continue-next a:hover{color:#fff; background:var(--amber);}
.continue-next.start-now{text-align:left; margin:4px 0 12px;}
.continue-next.start-now a{font-size:17px; padding:15px 28px;}
.load-fail p{font-size:18px;}
footer.site p{margin:0;}
footer.site .foot-links{margin-top:8px;}
footer.site .foot-links a{color:var(--charcoal); font-weight:700;}
footer.site .foot-disclaimer{
  max-width:60ch; margin:10px auto 0; line-height:1.55; color:#5f5f5a;
}
footer.site{
  text-align:center;
  font-size:13px;
  color:#6b6b66;
  border-top:1px solid var(--line);
  padding:20px;
}
.table-wrap{overflow-x:auto; margin:14px 0;}
table.notes-table{
  width:100%;
  min-width:420px;
  border-collapse:collapse;
  font-size:15px;
  margin:0;
}
table.notes-table th, table.notes-table td{
  border:1px solid var(--line);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}
table.notes-table th{
  background:var(--charcoal); color:#fff;
  font-size:13px; font-weight:700; text-transform:uppercase;
}
table.notes-table tr:nth-child(even) td{background:var(--bg-tint);}

/* ---- module-1.html, the open page ---- */
/* The wordmark as text, for a page that does not carry the logo inline. */
.wordmark a.name{
  font-family:'Source Serif 4', Georgia, serif;
  font-weight:700;
  font-size:1.3rem;
  color:var(--charcoal-dark);
  text-decoration:none;
}
.wordmark a.name span{color:var(--amber-text);}
.open-note{
  background:var(--amber-tint);
  border-left:4px solid var(--amber);
  border-radius:0 8px 8px 0;
  padding:12px 16px;
  margin:0 0 26px;
  font-size:16px;
}
.after-link{
  text-align:center;
  font-size:15px;
  color:#5f5f5a;
  margin:12px 0 0;
}
