/* ────────────────────────────────────────────────────────────────────
   course-tasks.css — dashboard guidance + in-module completion bars.
   Shared by index.html and every module page. Self-contained.
   ──────────────────────────────────────────────────────────────────── */

:root{
  --tf-navy:#1a2533;
  --tf-navy-soft:#243044;
  --tf-ink:#1a1a1a;
  --tf-mid:#4a4a4a;
  --tf-light:#7a7a7a;
  --tf-border:#e8e4dc;
  --tf-surface:#ffffff;
  --tf-wash:#faf8f4;
  --tf-accent:var(--ds-accent, #8C5A10);
  --tf-accent-soft:#f7ecd8;
  --tf-green:#1b7a44;
  --tf-green-soft:#e2f5eb;
  --tf-blue:#2d6be4;
  --tf-blue-soft:#eef4fc;
  --as-forest:#2f7a5a;
  --as-forest-soft:#e2f0e9;
  --as-coral:#c9694a;
  --as-coral-soft:#f6e3dc;
}

/* ── App navigation (Dashboard · Course · Progress) ────────────────── */
.app-nav{
  background:var(--tf-surface);
  border-bottom:1px solid var(--tf-border);
  position:sticky;top:0;z-index:120;
  font-family:'Jost',sans-serif;
}
.app-nav-inner{
  max-width:980px;margin:0 auto;padding:0 2rem;
  height:60px;display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.app-brand{
  display:flex;align-items:center;gap:0.6rem;
  text-decoration:none;color:var(--tf-navy);min-width:0;
}
.app-brand-mark{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:30px;height:30px;border-radius:8px;
  background:var(--tf-navy);color:var(--ds-ink);
  font-size:0.85rem;font-weight:600;letter-spacing:0.02em;
}
.app-brand-text{
  font-family:'Playfair Display',serif;font-size:1rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.app-nav-links{display:flex;align-items:center;gap:0.25rem;flex-shrink:0;}
.app-nav-link{
  position:relative;
  font-size:0.92rem;font-weight:400;color:var(--tf-light);text-decoration:none;
  padding:0.45rem 0.8rem;border-radius:8px;
  transition:color 0.15s ease,background 0.15s ease;
}
.app-nav-link:hover{color:var(--tf-navy);background:var(--tf-wash);}
.app-nav-link.active{color:var(--tf-navy);font-weight:500;background:var(--tf-wash);}
.app-nav-link.active::after{
  content:'';position:absolute;left:0.8rem;right:0.8rem;bottom:-0.95rem;
  height:2px;background:var(--tf-accent);border-radius:2px;
}
@media (max-width:640px){
  .app-nav-inner{padding:0 1.1rem;height:56px;gap:0.5rem;}
  .app-brand-text{display:none;}
  .app-nav-link{padding:0.4rem 0.6rem;font-size:0.89rem;}
}

/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.tf-crumbs{
  background:var(--tf-surface);border-bottom:1px solid var(--tf-border);
  font-family:'Jost',sans-serif;
}
.tf-crumbs-inner{
  max-width:980px;margin:0 auto;padding:0.6rem 2rem;
  display:flex;align-items:center;gap:0.4rem;flex-wrap:wrap;
  font-size:0.88rem;
}
.tf-crumb{color:var(--tf-light);text-decoration:none;transition:color 0.15s ease;}
.tf-crumb:hover{color:var(--tf-navy);text-decoration:underline;text-underline-offset:3px;}
.tf-crumb.current{color:var(--tf-navy);font-weight:500;}
.tf-crumb-sep{display:inline-flex;color:#cfc8bc;}

/* ── Hidden save buttons (auto-save takes over) ─────────────────────── */
.tf-hidden-save{display:none !important;}

/* ── Quiz deep links land clear of the sticky nav ───────────────────── */
[id^="quiz"]{scroll-margin-top:90px;}

/* ── Lesson completion block (engine-owned) ─────────────────────────── */
.tf-lesson{
  font-family:'Jost',sans-serif;
  background:var(--tf-navy);border-radius:16px;
  padding:2.2rem 2rem;margin-top:2.5rem;text-align:center;
}
.tf-lesson-kicker{
  display:inline-flex;align-items:center;gap:0.45rem;margin:0 0 0.7rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--ds-ink-3);
}
.tf-lesson-kicker svg{color:var(--tf-accent);}
.tf-lesson-kicker.done{color:#7fd3a5;}
.tf-lesson-kicker.done svg{color:#7fd3a5;}
.tf-lesson-title{
  font-family:'Playfair Display',serif;font-size:1.4rem;font-weight:700;
  color:var(--ds-ink);margin:0 0 0.6rem;line-height:1.25;
}
.tf-lesson-sub{font-size:0.95rem;color:var(--ds-ink-2);margin:0 auto 1.4rem;font-weight:300;line-height:1.7;max-width:46ch;}
.tf-lesson-btn{
  display:inline-flex;align-items:center;gap:0.55rem;
  font-family:'Jost',sans-serif;font-size:0.94rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase;
  background:var(--tf-accent);color:var(--ds-ink);border:none;border-radius:9px;cursor:pointer;
  padding:0.95rem 1.8rem;
  transition:background 0.16s ease,transform 0.13s ease;
}
.tf-lesson-btn:hover{background:var(--ds-accent-hover, #734A0B);transform:translateY(-1px);}
.tf-lesson-btn:active{transform:scale(0.98);}
.tf-lesson.done{padding-bottom:1.6rem;}
.tf-lesson-choices{
  display:flex;flex-direction:column;gap:0.7rem;max-width:30rem;margin:0 auto 0.9rem;
}
.tf-lesson-choice{
  display:flex;align-items:center;gap:0.8rem;text-align:left;
  font-family:'Jost',sans-serif;text-decoration:none;cursor:pointer;
  border-radius:11px;padding:0.85rem 1.1rem;
  transition:background 0.16s ease,transform 0.14s ease,border-color 0.16s ease;
}
.tf-lesson-choice svg{flex-shrink:0;}
.tf-lc-name{display:block;font-size:0.96rem;font-weight:500;}
.tf-lc-sub{display:block;font-size:0.87rem;opacity:0.65;margin-top:0.1rem;}
.tf-lesson-choice.stay{
  background:var(--ds-sunken);color:var(--ds-ink);
  border:1px solid var(--ds-line);
}
.tf-lesson-choice.stay:hover{background:var(--ds-sunken);}
.tf-lesson-choice.go{
  background:var(--tf-accent);color:var(--ds-ink);border:1px solid var(--tf-accent);
}
.tf-lesson-choice.go:hover{background:var(--ds-accent-hover, #734A0B);transform:translateX(2px);}
.tf-lesson .tf-modbar-finish{color:var(--ds-ink-3);}
.tf-lesson .tf-modbar-finish:hover{color:var(--ds-ink-2);}

/* ── "How this module works" intro ──────────────────────────────────── */
.tf-intro{
  font-family:'Jost',sans-serif;
  max-width:900px;margin:1.6rem auto 0;padding:1.3rem 1.6rem;
  background:var(--tf-surface);border:1px solid var(--tf-border);border-radius:14px;
  box-shadow:0 1px 2px rgba(26,37,51,0.03),0 10px 26px -22px rgba(26,37,51,0.3);
}
.tf-intro-label{
  display:flex;align-items:center;gap:0.45rem;margin:0 0 0.9rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;color:var(--tf-light);
}
.tf-intro-label svg{color:var(--tf-accent);}
.tf-intro-steps{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
.tf-intro-step{display:flex;gap:0.8rem;align-items:flex-start;}
.tf-intro-num{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:1.7rem;height:1.7rem;border-radius:50%;
  background:var(--tf-navy);color:var(--ds-ink);font-size:0.89rem;font-weight:600;
}
.tf-intro-name{font-size:0.95rem;font-weight:600;color:var(--tf-navy);margin:0 0 0.25rem;}
.tf-intro-text{font-size:0.93rem;color:var(--tf-mid);margin:0;font-weight:300;line-height:1.6;}
@media(max-width:640px){
  .tf-intro{margin:1rem 1.2rem 0;padding:1.1rem 1.1rem;}
  .tf-intro-steps{grid-template-columns:1fr;gap:0.9rem;}
}

/* ── Practice recaps: the choices, right where they are needed ──────── */
.tf-recap{
  font-family:'Jost',sans-serif;
  background:var(--ds-sunken);
  border:1px solid var(--tf-border);border-radius:11px;
  padding:0.95rem 1.15rem;margin:0 0 1.1rem;
}
.tf-recap-label{
  display:flex;align-items:center;gap:0.4rem;margin:0 0 0.5rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--tf-light);
}
.tf-recap-label svg{color:var(--tf-accent);}
.tf-recap-list{list-style:none;margin:0 0 0.6rem;padding:0;display:flex;flex-direction:column;gap:0.28rem;}
.tf-recap-list li{
  font-size:0.93rem;color:var(--tf-ink);font-weight:400;line-height:1.5;
  padding-left:1rem;position:relative;
}
.tf-recap-list li::before{content:'';position:absolute;left:0;top:0.55em;width:5px;height:5px;border-radius:50%;background:var(--tf-accent);}
.tf-recap-link{
  display:inline-flex;align-items:center;gap:0.35rem;
  font-size:0.88rem;font-weight:500;color:#8a5a00;text-decoration:underline;
  text-underline-offset:3px;text-decoration-color:var(--tf-accent-soft);
}
.tf-recap-link:hover{text-decoration-color:var(--tf-accent);}

/* ── Programme overview: module contents line ───────────────────────── */
.tf-card-contents{
  display:flex;align-items:flex-start;gap:0.4rem;margin-top:0.35rem;
  font-size:0.86rem;color:var(--tf-light);font-family:'Jost',sans-serif;line-height:1.5;
}
.tf-card-contents svg{color:var(--tf-accent);flex-shrink:0;margin-top:0.2rem;}

/* ── Reset: deliberately visible, it is part of the course ──────────── */
.tf-reset{
  font-family:'Jost',sans-serif;
  max-width:980px;margin:1rem auto 0;
  display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;
  background:var(--tf-surface);
  border:1px solid var(--tf-border);border-left:5px solid var(--tf-accent);
  border-radius:14px;padding:1.3rem 1.6rem;
  box-shadow:0 1px 2px rgba(26,37,51,0.03),0 10px 26px -22px rgba(26,37,51,0.3);
}
.tf-reset-main{flex:1;min-width:230px;}
.tf-reset-title{
  display:flex;align-items:center;gap:0.5rem;margin:0 0 0.35rem;
  font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;color:var(--tf-navy);
}
.tf-reset-title svg{color:var(--tf-accent);flex-shrink:0;}
.tf-reset-body{font-size:0.94rem;color:var(--tf-mid);margin:0;font-weight:300;line-height:1.65;max-width:62ch;}
.tf-reset-btn{
  flex-shrink:0;font-family:'Jost',sans-serif;
  font-size:0.92rem;font-weight:500;letter-spacing:0.04em;
  background:var(--tf-surface);color:#a33a1e;
  border:1.5px solid #e6b9a8;border-radius:10px;cursor:pointer;
  padding:0.75rem 1.4rem;
  transition:background 0.16s ease,border-color 0.16s ease,color 0.16s ease,transform 0.12s ease;
}
.tf-reset-btn:hover{background:#fdf1ec;border-color:#d98b6b;color:#8c2f18;}
.tf-reset-btn:active{transform:scale(0.98);}
@media(max-width:640px){
  .tf-reset{margin:1rem 1.2rem 0;padding:1.1rem;}
  .tf-reset-btn{width:100%;}
}

/* ── Calendar reminder ─────────────────────────────────────────────── */
.tf-remind{
  font-family:'Jost',sans-serif;
  background:var(--tf-wash);border:1px solid var(--tf-border);border-radius:12px;
  padding:1.1rem 1.3rem;margin-top:1rem;
}
.tf-remind-label{
  display:flex;align-items:center;gap:0.45rem;margin:0 0 0.45rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.13em;text-transform:uppercase;color:var(--tf-light);
}
.tf-remind-label svg{color:var(--tf-accent);}
.tf-remind-body{font-size:0.94rem;color:var(--tf-mid);margin:0 0 0.9rem;font-weight:300;line-height:1.65;}
.tf-remind-body strong{color:var(--tf-navy);font-weight:600;}
.tf-remind-btns{display:flex;gap:0.6rem;flex-wrap:wrap;margin-bottom:0.9rem;}
.tf-remind-btn{
  display:inline-flex;align-items:center;gap:0.4rem;
  font-size:0.9rem;font-weight:500;color:var(--tf-navy);text-decoration:none;
  background:var(--tf-surface);border:1px solid var(--tf-border);border-radius:9px;
  padding:0.55rem 1rem;
  transition:border-color 0.15s ease,background 0.15s ease,transform 0.13s ease;
}
.tf-remind-btn:hover{border-color:var(--tf-accent);background:#fff;transform:translateY(-1px);}
.tf-remind-or{font-size:0.87rem;color:var(--tf-light);margin:0 0 0.4rem;}
.tf-remind-copy{
  display:flex;align-items:stretch;gap:0.5rem;flex-wrap:wrap;
}
.tf-remind-text{
  flex:1;min-width:220px;
  font-family:'Jost',sans-serif;font-size:0.88rem;color:var(--tf-mid);
  background:var(--tf-surface);border:1px dashed var(--tf-border);border-radius:9px;
  padding:0.6rem 0.8rem;line-height:1.5;word-break:break-word;
}
.tf-remind-copybtn{
  display:inline-flex;align-items:center;gap:0.4rem;flex-shrink:0;
  font-family:'Jost',sans-serif;font-size:0.89rem;font-weight:500;
  background:var(--tf-navy);color:var(--ds-ink);border:none;border-radius:9px;cursor:pointer;
  padding:0.55rem 1rem;transition:background 0.15s ease;
}
.tf-remind-copybtn:hover{background:var(--tf-navy-soft);}
.tf-remind-copybtn.copied{background:var(--tf-green);}

/* ── Course dashboard accordion ────────────────────────────────────── */
.cd-acc{display:flex;flex-direction:column;gap:0.7rem;}
details.cd-sec{
  background:var(--tf-surface);border:1px solid var(--tf-border);border-radius:14px;
  overflow:hidden;transition:border-color 0.18s ease,box-shadow 0.18s ease;
}
details.cd-sec[open]{border-color:#d9d2c6;box-shadow:0 8px 26px -18px rgba(26,37,51,0.35);}
details.cd-sec > summary{
  display:flex;align-items:center;gap:0.85rem;padding:1.15rem 1.4rem;
  cursor:pointer;list-style:none;font-family:'Jost',sans-serif;
}
details.cd-sec > summary::-webkit-details-marker{display:none;}
details.cd-sec > summary:hover{background:var(--tf-wash);}
.cd-sec-icon{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:2.2rem;height:2.2rem;border-radius:10px;
  background:var(--tf-wash);border:1px solid var(--tf-border);color:var(--tf-accent);
}
.cd-sec-name{
  flex:1;min-width:0;
  font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:700;color:var(--tf-navy);
}
.cd-sec-meta{font-size:0.89rem;color:var(--tf-light);white-space:nowrap;font-weight:400;}
.cd-chev{color:var(--tf-light);transition:transform 0.2s ease;flex-shrink:0;}
details.cd-sec[open] .cd-chev{transform:rotate(180deg);}
.cd-sec-body{padding:0 1.4rem 1.4rem;}
@media(max-width:640px){
  details.cd-sec > summary{padding:1rem;gap:0.65rem;}
  .cd-sec-body{padding:0 1rem 1.1rem;}
  .cd-sec-meta{display:none;}
}

/* ── Programme complete panel ──────────────────────────────────────── */
.cd-final{
  font-family:'Jost',sans-serif;
  background:var(--tf-navy);border-radius:16px;padding:2.2rem 2rem;
  text-align:center;margin-bottom:1rem;
}
.cd-final-kicker{
  display:inline-flex;align-items:center;gap:0.45rem;margin:0 0 0.7rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;color:#7fd3a5;
}
.cd-final-title{font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:700;color:var(--ds-ink);margin:0 0 0.7rem;line-height:1.25;}
.cd-final-body{font-size:0.95rem;color:var(--ds-ink-2);margin:0 auto 1.5rem;max-width:52ch;font-weight:300;line-height:1.7;}
.cd-final-actions{display:flex;gap:0.7rem;flex-wrap:wrap;justify-content:center;}
.cd-final-btn{
  display:inline-flex;align-items:center;gap:0.5rem;
  font-size:0.93rem;font-weight:500;text-decoration:none;border-radius:10px;
  padding:0.75rem 1.3rem;cursor:pointer;font-family:'Jost',sans-serif;border:none;
  transition:background 0.16s ease,transform 0.13s ease;
}
.cd-final-btn.primary{background:var(--tf-accent);color:var(--ds-ink);}
.cd-final-btn.primary:hover{background:var(--ds-accent-hover, #734A0B);transform:translateY(-1px);}
.cd-final-btn.ghost{background:var(--ds-sunken);color:var(--ds-ink);border:1px solid var(--ds-line);}
.cd-final-btn.ghost:hover{background:var(--ds-sunken);}

/* The four numbers that summarise the whole course */
.cd-final-figs{
  display:grid;grid-template-columns:repeat(4,1fr);gap:0.7rem;
  margin:0 auto 1.5rem;max-width:36rem;
}
.cd-final-fig{
  display:flex;flex-direction:column;gap:0.2rem;padding:0.85rem 0.5rem;
  background:var(--ds-sunken);border:1px solid var(--ds-line);border-radius:10px;
}
.cd-final-fig-val{
  font-family:'Playfair Display',serif;font-size:1.35rem;font-weight:700;
  color:var(--ds-ink);line-height:1.1;font-variant-numeric:tabular-nums;
}
.cd-final-fig-val.initial{color:#e8a189;}
.cd-final-fig-val.final{color:#7fd3a5;}
.cd-final-fig-label{font-size:0.84rem;color:var(--ds-ink-3);line-height:1.35;}

.cd-final-quote{
  max-width:44rem;margin:0 auto 1.5rem;padding:1rem 1.2rem;text-align:left;
  background:var(--ds-sunken);border:1px solid var(--ds-line);border-radius:10px;
}
.cd-final-quote-label{
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--ds-ink-3);margin:0 0 0.5rem;
}
.cd-final-quote blockquote{
  margin:0;padding-left:0.9rem;border-left:3px solid #7fd3a5;
  font-size:0.94rem;font-style:italic;font-weight:300;line-height:1.7;
  color:var(--ds-ink-2);
}
@media(max-width:600px){
  .cd-final-figs{grid-template-columns:repeat(2,1fr);}
}

/* ── Lock screen ───────────────────────────────────────────────────── */
.tf-locked-page{background:var(--tf-wash);}
.tf-lockscreen{
  font-family:'Jost',sans-serif;
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:2rem 1.2rem;background:var(--tf-wash);
}
.tf-lockcard{
  background:var(--tf-surface);border:1px solid var(--tf-border);border-radius:16px;
  padding:2.6rem 2.4rem;max-width:34rem;text-align:center;
  box-shadow:0 1px 2px rgba(26,37,51,0.04),0 24px 50px -30px rgba(26,37,51,0.4);
}
.tf-lock-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:3.4rem;height:3.4rem;border-radius:50%;
  background:var(--tf-wash);border:1px solid var(--tf-border);color:var(--tf-light);
  margin-bottom:1.2rem;
}
.tf-lock-kicker{
  font-size:0.84rem;font-weight:600;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--tf-accent);margin:0 0 0.5rem;
}
.tf-lock-title{
  font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:700;
  color:var(--tf-navy);margin:0 0 0.9rem;line-height:1.2;
}
.tf-lock-body{font-size:0.95rem;color:var(--tf-mid);margin:0 0 1.8rem;font-weight:300;line-height:1.7;}
.tf-lock-body strong{color:var(--tf-navy);font-weight:600;}
.tf-lock-actions{display:flex;align-items:center;justify-content:center;gap:0.8rem;flex-wrap:wrap;}
.tf-lock-btn{
  display:inline-flex;align-items:center;gap:0.5rem;
  background:var(--tf-navy);color:var(--ds-ink);text-decoration:none;
  font-size:0.94rem;font-weight:500;padding:0.75rem 1.3rem;border-radius:10px;
  transition:background 0.16s ease,transform 0.15s ease;
}
.tf-lock-btn:hover{background:var(--tf-navy-soft);transform:translateX(2px);}
.tf-lock-link{
  display:inline-flex;align-items:center;gap:0.4rem;
  font-size:0.9rem;color:var(--tf-light);text-decoration:none;
  padding:0.4rem 0.6rem;border-radius:8px;transition:color 0.15s ease,background 0.15s ease;
}
.tf-lock-link:hover{color:var(--tf-navy);background:var(--tf-wash);}

/* ── Phase break: lesson ends, practice begins ─────────────────────── */
.tf-phase{font-family:'Jost',sans-serif;margin:2.4rem 0 2rem;}
.tf-phase-rule{
  position:relative;text-align:center;
  border-top:2px solid var(--tf-border);margin-bottom:1.8rem;
}
.tf-phase-chip{
  display:inline-flex;align-items:center;gap:0.45rem;
  position:relative;top:-0.85rem;
  background:var(--tf-wash);padding:0.25rem 0.95rem;border-radius:20px;
  border:1px solid var(--tf-border);
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--tf-light);
}
.tf-phase-chip svg{color:var(--tf-green);}
.tf-phase-card{
  background:var(--tf-surface);
  border:1px solid var(--tf-border);border-left:5px solid var(--tf-accent);
  border-radius:14px;padding:1.6rem 1.8rem;
  box-shadow:0 1px 2px rgba(26,37,51,0.03),0 12px 32px -24px rgba(26,37,51,0.35);
}
.tf-phase-kicker{
  display:flex;align-items:center;gap:0.45rem;margin:0 0 0.5rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;
  color:#8a5a00;
}
.tf-phase-kicker svg{color:var(--tf-accent);}
.tf-phase-title{
  font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;
  color:var(--tf-navy);margin:0 0 0.7rem;line-height:1.25;
}
/* Dark text on light — the explanation must not disappear the way it did before. */
.tf-phase-body{font-size:0.95rem;color:var(--tf-mid);margin:0 0 1.1rem;font-weight:300;line-height:1.7;max-width:60ch;}
.tf-phase-list{list-style:none;margin:0 0 1.1rem;padding:0;display:flex;flex-direction:column;gap:0.4rem;}
.tf-phase-list li{
  display:flex;align-items:center;gap:0.55rem;
  font-size:0.95rem;color:var(--tf-navy);font-weight:400;
}
.tf-phase-list svg{color:var(--tf-accent);flex-shrink:0;}
.tf-phase-foot{
  display:flex;align-items:center;gap:0.5rem;margin:0;
  padding-top:0.9rem;border-top:1px solid var(--tf-border);
  font-size:0.9rem;color:var(--tf-light);font-weight:300;
}
.tf-phase-foot svg{color:#cfc8bc;flex-shrink:0;}

/* Locked "next" affordance in the bottom nav */
.tf-endnav-next.locked{
  background:var(--tf-wash);color:var(--tf-light);cursor:not-allowed;
  border:1px dashed var(--tf-border);
}
.tf-endnav-next.locked:hover{background:var(--tf-wash);transform:none;}
.tf-endnav-next.locked .tf-endnav-next-label{opacity:0.8;}
.tf-endnav-next.locked svg{color:var(--tf-light);}

/* Compact bar for per-answer reflection completion */
.tf-modbar.compact{padding:0.6rem 0.9rem;margin-top:0.6rem;gap:0.6rem;}
.tf-modbar.compact .tf-modbar-status{font-size:0.88rem;}
.tf-modbar.compact .tf-modbar-btn{font-size:0.88rem;padding:0.45rem 0.85rem;}

/* ── Section seams (learning → reflection → practice) ───────────────── */
.tf-seam{
  font-family:'Jost',sans-serif;
  max-width:100%;margin:2.6rem 0 1.1rem;padding-top:1.6rem;
  border-top:1px solid var(--tf-border);
}
.tf-seam-badge{
  display:inline-flex;align-items:center;gap:0.45rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;
  color:#8a5a00;background:var(--tf-accent-soft);
  padding:0.3rem 0.8rem;border-radius:20px;
}
.tf-seam.reflection .tf-seam-badge{color:#1c4fb0;background:var(--tf-blue-soft);}
.tf-seam-note{
  font-size:0.92rem;color:var(--tf-light);margin:0.6rem 0 0;
  font-weight:300;line-height:1.6;max-width:56ch;
}

/* ── Bottom navigation ─────────────────────────────────────────────── */
.tf-endnav{font-family:'Jost',sans-serif;margin:3rem 0 0;}
.tf-endnav-inner{
  background:var(--tf-surface);border:1px solid var(--tf-border);border-radius:14px;
  padding:1.4rem 1.6rem;
  box-shadow:0 1px 2px rgba(26,37,51,0.03),0 10px 30px -22px rgba(26,37,51,0.2);
}
.tf-endnav-top{
  display:flex;align-items:center;justify-content:space-between;
  gap:1.2rem;flex-wrap:wrap;
}
.tf-endnav-head{
  font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;
  color:var(--tf-navy);margin:0;
}
.tf-endnav-sub{font-size:0.92rem;color:var(--tf-light);margin:0.25rem 0 0;font-weight:300;line-height:1.55;max-width:52ch;}
.tf-endnav-next{
  display:inline-flex;flex-direction:column;align-items:flex-start;flex-shrink:0;
  position:relative;padding:0.65rem 2.6rem 0.65rem 1.15rem;
  background:var(--tf-navy);color:var(--ds-ink);text-decoration:none;border-radius:10px;
  transition:background 0.16s ease,transform 0.15s ease;
}
.tf-endnav-next:hover{background:var(--tf-navy-soft);transform:translateX(2px);}
.tf-endnav-next-label{font-size:0.64rem;letter-spacing:0.14em;text-transform:uppercase;opacity:0.6;}
.tf-endnav-next-name{font-size:0.96rem;font-weight:500;}
.tf-endnav-next svg{position:absolute;right:1rem;top:50%;transform:translateY(-50%);}

.tf-endnav-todo{margin-top:1.1rem;padding-top:1rem;border-top:1px dashed var(--tf-border);}
.tf-endnav-todo-label{
  display:flex;align-items:center;gap:0.4rem;margin:0 0 0.5rem;
  font-size:0.83rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--tf-light);
}
.tf-endnav-todo-label svg{color:var(--tf-accent);}
.tf-endnav-todo ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.3rem;}
.tf-endnav-todo li{display:flex;align-items:center;gap:0.6rem;font-size:0.92rem;}
.tf-endnav-todo li a{color:var(--tf-mid);text-decoration:none;}
.tf-endnav-todo li a:hover{color:var(--tf-navy);text-decoration:underline;text-underline-offset:3px;}
.tf-endnav-done{
  font-size:0.83rem;font-weight:600;letter-spacing:0.04em;
  color:#1c7b44;background:var(--tf-green-soft);padding:0.1rem 0.5rem;border-radius:10px;
}
.tf-endnav-todo.clear{
  display:flex;align-items:center;gap:0.55rem;
  font-size:0.92rem;color:#1c7b44;
}
.tf-endnav-todo.clear svg{color:var(--tf-green);}

.tf-endnav-links{
  display:flex;align-items:center;gap:0.4rem;flex-wrap:wrap;
  margin-top:1.1rem;padding-top:0.9rem;border-top:1px solid var(--tf-border);
}
.tf-endnav-link{
  display:inline-flex;align-items:center;gap:0.4rem;
  font-size:0.79rem;color:var(--tf-light);text-decoration:none;
  padding:0.35rem 0.7rem;border-radius:8px;
  transition:color 0.15s ease,background 0.15s ease;
}
.tf-endnav-link:hover{color:var(--tf-navy);background:var(--tf-wash);}
.tf-endnav-link svg{opacity:0.7;}

/* ── Blank (nothing assigned yet) ──────────────────────────────────── */
.tf-blank{
  display:flex;align-items:center;gap:0.75rem;
  background:var(--tf-wash);border:1px dashed var(--tf-border);border-radius:11px;
  padding:0.9rem 1rem;font-size:0.93rem;color:var(--tf-light);font-weight:300;line-height:1.55;
}
.tf-blank svg{flex-shrink:0;color:#cfc8bc;}

/* ── Shell ─────────────────────────────────────────────────────────── */
.tf-wrap{
  max-width:980px;margin:0 auto;padding:2rem 2rem 0;
  font-family:'Jost',sans-serif;
  display:flex;flex-direction:column;gap:1rem;
}
.tf-card{
  background:var(--tf-surface);
  border:1px solid var(--tf-border);
  border-radius:14px;
  padding:1.5rem 1.7rem 1.3rem;
  box-shadow:0 1px 2px rgba(26,37,51,0.03),0 10px 30px -20px rgba(26,37,51,0.14);
}
.tf-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;margin-bottom:0.3rem;
}
.tf-title{
  display:flex;align-items:center;gap:0.55rem;
  font-family:'Playfair Display',serif;
  font-size:1.25rem;font-weight:700;color:var(--tf-navy);margin:0;
}
.tf-title svg{color:var(--tf-accent);flex-shrink:0;}
.tf-kicker{
  display:flex;align-items:center;gap:0.45rem;
  font-size:0.84rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--tf-light);margin-bottom:0.5rem;
}
.tf-kicker svg{color:var(--tf-accent);}
.tf-time{
  display:inline-flex;align-items:center;gap:0.4rem;
  font-size:0.88rem;font-weight:500;color:var(--tf-mid);
  background:var(--tf-wash);border:1px solid var(--tf-border);
  padding:0.28rem 0.75rem;border-radius:20px;white-space:nowrap;
}
.tf-time svg{color:var(--tf-light);}
.tf-sub{font-size:0.92rem;color:var(--tf-light);margin:0 0 1rem;font-weight:300;line-height:1.6;}

/* ── Continue learning ─────────────────────────────────────────────── */
.tf-continue{
  display:flex;align-items:center;justify-content:space-between;
  gap:1.5rem;flex-wrap:wrap;
  background:var(--tf-navy);border-color:var(--tf-navy);
}
.tf-continue .tf-kicker{color:var(--ds-ink-3);}
.tf-continue .tf-kicker svg{color:var(--tf-accent);}
.tf-continue-main{flex:1;min-width:220px;}
.tf-continue-title{
  font-family:'Playfair Display',serif;
  font-size:1.35rem;font-weight:700;color:var(--ds-ink);margin:0;line-height:1.25;
}
.tf-continue-sub{font-size:0.92rem;color:var(--ds-ink-2);margin:0.35rem 0 0;font-weight:300;}
.tf-continue-btn{
  display:inline-flex;align-items:center;gap:0.55rem;flex-shrink:0;
  background:var(--tf-accent);color:var(--ds-ink);text-decoration:none;
  font-size:0.93rem;font-weight:500;letter-spacing:0.03em;
  padding:0.7rem 1.3rem;border-radius:9px;
  transition:background 0.18s ease,transform 0.15s ease;
}
.tf-continue-btn:hover{background:var(--ds-accent-hover, #734A0B);transform:translateX(2px);}
.tf-continue.done{background:var(--tf-surface);border-color:var(--tf-border);}
.tf-continue.done .tf-kicker{color:var(--tf-light);}
.tf-continue.done .tf-kicker svg{color:var(--tf-green);}
.tf-continue.done .tf-continue-title{color:var(--tf-navy);font-size:1.15rem;}
.tf-continue.done .tf-continue-sub{color:var(--tf-light);}

/* ── Task rows ─────────────────────────────────────────────────────── */
.tf-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.5rem;}
.tf-item{
  display:flex;align-items:center;gap:0.85rem;
  background:var(--tf-wash);
  border:1px solid var(--tf-border);
  border-radius:11px;padding:0.75rem 0.9rem;
  transition:border-color 0.18s ease,box-shadow 0.18s ease;
}
.tf-item:hover{border-color:#d9d2c6;box-shadow:0 3px 14px -8px rgba(26,37,51,0.2);}
.tf-item-icon{
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  width:2.1rem;height:2.1rem;border-radius:9px;
  background:var(--tf-surface);border:1px solid var(--tf-border);color:var(--tf-accent);
}
.tf-item-main{flex:1;min-width:0;}
.tf-item-title{
  display:block;font-size:0.93rem;font-weight:500;color:var(--tf-ink);
  text-decoration:none;line-height:1.35;
}
a.tf-item-title:hover{text-decoration:underline;text-decoration-color:var(--tf-accent);text-underline-offset:3px;}
.tf-item-meta{
  display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap;
  font-size:0.85rem;color:var(--tf-light);margin-top:0.2rem;
}
.tf-meta-dot{width:3px;height:3px;border-radius:50%;background:#cfc8bc;}
.tf-badge{
  font-size:0.83rem;font-weight:600;letter-spacing:0.03em;
  color:#8a5a00;background:var(--tf-accent-soft);
  padding:0.12rem 0.5rem;border-radius:10px;white-space:nowrap;
}
.tf-open{
  display:inline-flex;align-items:center;gap:0.35rem;flex-shrink:0;
  font-size:0.87rem;font-weight:500;color:var(--tf-mid);text-decoration:none;
  border:1px solid var(--tf-border);background:var(--tf-surface);
  padding:0.4rem 0.7rem;border-radius:8px;
  transition:border-color 0.15s ease,color 0.15s ease,transform 0.15s ease;
}
.tf-open:hover{border-color:var(--tf-accent);color:#8a5a00;transform:translateX(2px);}

/* ── Empty / settled ───────────────────────────────────────────────── */
.tf-empty{
  display:flex;align-items:center;gap:0.75rem;
  background:var(--tf-green-soft);border:1px solid #c8e6d4;border-radius:11px;
  padding:0.9rem 1rem;font-size:0.94rem;color:#1c7b44;font-weight:400;line-height:1.5;
}
.tf-empty svg{flex-shrink:0;}
.tf-done-label{
  font-size:0.83rem;font-weight:600;letter-spacing:0.13em;text-transform:uppercase;
  color:var(--tf-light);margin:1.1rem 0 0.4rem;
}
.tf-mini-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;}
.tf-mini{
  display:flex;align-items:center;gap:0.55rem;
  padding:0.4rem 0.2rem;font-size:0.92rem;color:var(--tf-mid);
}
.tf-mini svg{flex-shrink:0;color:#cfc8bc;}
.tf-mini span:first-of-type{flex:1;min-width:0;}
.tf-mini.done{color:var(--tf-light);}
.tf-mini.done svg{color:var(--tf-green);}
.tf-mini.done span:first-of-type{text-decoration:line-through;text-decoration-thickness:1px;}
.tf-mini.scheduled{opacity:0.65;}
.tf-mini-progress{font-size:0.85rem;color:var(--tf-light);white-space:nowrap;}
.tf-mini.scheduled .tf-mini-progress{font-style:italic;}
.tf-undo{
  font-family:'Jost',sans-serif;font-size:0.85rem;color:var(--tf-light);
  background:none;border:none;cursor:pointer;padding:0.1rem 0.3rem;
  text-decoration:underline;text-underline-offset:3px;
}
.tf-undo:hover{color:var(--tf-navy);}

/* ── Reflections card ──────────────────────────────────────────────── */
.tf-reflections .tf-title svg{color:var(--tf-blue);}
.tf-reflections .tf-item-icon{color:var(--tf-blue);}
.tf-reflections .tf-open:hover{border-color:var(--tf-blue);color:var(--tf-blue);}

/* ── In-module bars ────────────────────────────────────────────────── */
.tf-anchor-target{scroll-margin-top:90px;}
.tf-arrive{animation:tfArrive 1.8s ease 0.3s;}
@keyframes tfArrive{
  0%,100%{box-shadow:0 0 0 3px rgba(212,146,42,0);}
  30%{box-shadow:0 0 0 3px rgba(212,146,42,0.5);}
}
.tf-modbar{
  font-family:'Jost',sans-serif;
  display:flex;align-items:center;gap:0.9rem;flex-wrap:wrap;
  background:var(--tf-surface);
  border:1px solid var(--tf-border);
  border-left:4px solid var(--tf-accent);
  border-radius:11px;padding:0.85rem 1.1rem;margin:0.9rem 0 0;
  box-shadow:0 2px 12px -8px rgba(26,37,51,0.25);
}
.tf-modbar[hidden]{display:none;}
.tf-modbar-info{flex:1;min-width:190px;}
.tf-modbar-label{
  display:flex;align-items:center;gap:0.4rem;margin:0;
  font-size:0.83rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;
  color:var(--tf-light);
}
.tf-modbar-label svg{color:var(--tf-accent);}
.tf-modbar-status{font-size:0.91rem;color:var(--tf-mid);margin:0.2rem 0 0;font-weight:300;line-height:1.5;}
.tf-modbar-btn{
  display:inline-flex;align-items:center;gap:0.5rem;
  font-family:'Jost',sans-serif;font-size:0.9rem;font-weight:500;letter-spacing:0.03em;
  background:var(--tf-navy);color:var(--ds-ink);border:none;border-radius:9px;cursor:pointer;
  padding:0.6rem 1.1rem;
  transition:background 0.16s ease,transform 0.12s ease;
}
.tf-modbar-btn:hover{background:var(--tf-navy-soft);}
.tf-modbar-btn:active{transform:scale(0.97);}
.tf-modbar-finish{
  font-family:'Jost',sans-serif;font-size:0.85rem;color:var(--tf-light);
  background:none;border:none;cursor:pointer;padding:0.2rem;
  text-decoration:underline;text-underline-offset:3px;
}
.tf-modbar-finish:hover{color:var(--tf-navy);}
.tf-modbar.complete,.tf-modbar.done-today{border-left-color:var(--tf-green);background:var(--tf-green-soft);}
.tf-modbar.complete .tf-modbar-label svg,
.tf-modbar.done-today .tf-modbar-label svg{color:var(--tf-green);}
.tf-modbar.complete .tf-modbar-label,
.tf-modbar.done-today .tf-modbar-label{color:#1c7b44;}
.tf-modbar.complete .tf-modbar-status,
.tf-modbar.done-today .tf-modbar-status{color:#1c7b44;}
.tf-modbar.reflection{border-left-color:var(--tf-blue);}
.tf-modbar.reflection .tf-modbar-label svg{color:var(--tf-blue);}

/* ── Motion + mobile ───────────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  .tf-item,.tf-open,.tf-continue-btn,.tf-modbar-btn{transition:none;}
  .tf-arrive{animation:none;}
}
@media (max-width:640px){
  .tf-crumbs-inner{padding:0.55rem 1.2rem;font-size:0.74rem;}
  .tf-endnav-inner{padding:1.1rem 1.1rem;}
  .tf-endnav-next{width:100%;padding-right:2.6rem;}
  .tf-endnav-links{gap:0.2rem;}
  .tf-endnav-link{padding:0.35rem 0.5rem;font-size:0.87rem;}
  .tf-seam{margin:2rem 0 1rem;padding-top:1.3rem;}
  .tf-wrap{padding:1.4rem 1.2rem 0;gap:0.8rem;}
  .tf-card{padding:1.15rem 1.1rem 1rem;}
  .tf-continue{gap:1rem;}
  .tf-continue-btn{width:100%;justify-content:center;}
  .tf-item{padding:0.7rem;gap:0.65rem;}
  .tf-item-icon{width:1.9rem;height:1.9rem;}
  .tf-open{padding:0.35rem 0.55rem;}
  .tf-open svg{display:none;}
  .tf-modbar{flex-direction:column;align-items:stretch;gap:0.6rem;}
  /* Comfortable tap target — these are the buttons that actually matter. */
  .tf-modbar-btn{justify-content:center;min-height:46px;padding:0.75rem 1.1rem;}
  .tf-modbar-finish{min-height:36px;}
  .tf-endnav-next{min-height:52px;justify-content:center;}
  .tf-endnav-link{min-height:38px;}
}

/* Module 11 final next block */
.tf-finalnext{font-family:'Jost',sans-serif;background:var(--tf-wash);border:1px solid var(--tf-border);border-left:4px solid var(--tf-accent);border-radius:12px;padding:1.2rem 1.4rem;margin-bottom:1.8rem;}
.tf-finalnext-label{display:flex;align-items:center;gap:0.45rem;margin:0 0 0.5rem;font-size:0.83rem;font-weight:600;letter-spacing:0.13em;text-transform:uppercase;color:var(--tf-light);}
.tf-finalnext-label svg{color:var(--tf-accent);}
.tf-finalnext-body{font-size:0.95rem;color:var(--tf-mid);margin:0;font-weight:300;line-height:1.7;}
.tf-finalnext-body strong{color:var(--tf-navy);font-weight:600;}

/* ── Shared footer ─────────────────────────────────────────────────── */
.tf-footer{
  font-family:'Jost',sans-serif;
  border-top:1px solid var(--tf-border);
  margin-top:3rem;padding:2rem 2rem 2.6rem;
}
.tf-footer-inner{max-width:980px;margin:0 auto;text-align:center;}
.tf-footer-line{font-size:0.93rem;color:var(--tf-light);margin:0 0 0.4rem;}
.tf-footer-line a{color:var(--tf-navy);font-weight:500;text-decoration:none;}
.tf-footer-line a:hover{text-decoration:underline;text-underline-offset:3px;}
.tf-footer-credit{font-size:0.9rem;color:var(--tf-light);margin:0 0 0.7rem;font-weight:300;}
.tf-footer-credit a{color:var(--tf-mid);font-weight:500;text-decoration:underline;text-decoration-color:var(--tf-border);text-underline-offset:3px;}
.tf-footer-credit a:hover{color:var(--tf-accent);text-decoration-color:var(--tf-accent);}
.tf-footer-legal{display:flex;align-items:center;justify-content:center;gap:0.6rem;font-size:0.88rem;margin:0;}
.tf-footer-legal a{color:var(--tf-light);text-decoration:none;}
.tf-footer-legal a:hover{color:var(--tf-navy);text-decoration:underline;text-underline-offset:3px;}
.tf-footer-dot{color:#cfc8bc;}
@media(max-width:640px){.tf-footer{padding:1.6rem 1.2rem 2rem;}}

/* ── Assessment callouts and their button, shared by every page ────── */
.as-btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;min-height:44px;padding:0.7rem 1.3rem;border-radius:9px;background:var(--tf-surface);border:1.5px solid var(--tf-border);font-family:'Jost',sans-serif;font-size:0.95rem;font-weight:500;color:var(--tf-mid);text-decoration:none;cursor:pointer;transition:border-color 0.15s ease,background 0.15s ease,color 0.15s ease;}
.as-btn:hover{border-color:#cfc7b8;background:var(--tf-wash);color:var(--tf-navy);}
.as-btn.primary{background:var(--as-forest);border-color:var(--as-forest);color:var(--ds-ink);}
.as-btn.primary:hover{background:#25644a;border-color:#25644a;color:var(--ds-ink);}
.as-btn.primary[disabled]{opacity:0.4;cursor:not-allowed;}
.as-btn.quiet{border-color:transparent;background:none;color:var(--tf-light);}
.as-btn.quiet:hover{background:var(--tf-wash);color:var(--tf-navy);}

/* ── Cards that point at the assessments from elsewhere ──────────────── */
.as-callout{
  display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap;
  background:var(--tf-surface);border:1px solid var(--tf-border);
  border-left:4px solid var(--as-forest);
  border-radius:12px;padding:1.2rem 1.4rem;margin-bottom:1.4rem;
}
.as-callout.done{border-left-color:var(--tf-green);}
.as-callout.locked{border-left-color:var(--tf-border);opacity:0.75;}
.as-callout-body{flex:1 1 260px;min-width:0;}
.as-callout-kicker{
  display:flex;align-items:center;gap:0.4rem;
  font-size:0.84rem;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--as-forest);margin-bottom:0.35rem;
}
.as-callout.done .as-callout-kicker{color:var(--tf-green);}
.as-callout.locked .as-callout-kicker{color:var(--tf-light);}
.as-callout-title{font-size:1.02rem;font-weight:500;color:var(--tf-navy);margin-bottom:0.25rem;}
.as-callout-sub{font-size:0.89rem;color:var(--tf-mid);line-height:1.65;}
.as-callout .as-btn{flex-shrink:0;}

