/* Follow-up UI: series map, progress bar, needs box, resume, ticks, tips, teaching boxes. */
.tt-series { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tt-series p { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; display: flex; justify-content: space-between; }
.tt-series .tt-count { text-transform: none; letter-spacing: 0; font-weight: 600; }
.tt-series ol { list-style: none; margin: 0; padding: 0; }
.tt-series li a { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .3rem; padding: .3rem .5rem; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: .85rem; line-height: 1.3; }
.tt-series li a small { grid-column: 2; font-size: .72rem; }
.tt-series .tt-code { font: 600 .75rem var(--mono); }
.tt-series li.cur a { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ec); }
.tt-series li.read .tt-code::after { content: " ✓"; color: #1a7f37; }
.tt-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--line); z-index: 50; }
.tt-progress .tt-fill { height: 100%; width: 0; background: var(--ec); transition: width .1s linear; }
.tt-progress .tt-label { position: fixed; bottom: 12px; right: 12px; font-size: .75rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tt-progress .tt-label:empty { display: none; }
.toc a.tt-ok::after { content: " ✓"; color: #1a7f37; font-weight: 700; }
.tt-resume { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; gap: .6rem; align-items: center; max-width: calc(100vw - 32px);
  background: var(--navy); color: #fff; padding: .6rem .8rem; border-radius: var(--r-md); box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: .9rem; transition: opacity .6s; }
.tt-resume button { border: 0; border-radius: var(--r-sm); padding: .35rem .7rem; font: inherit; font-weight: 600; cursor: pointer; }
.tt-resume [data-go] { background: var(--ec); color: #fff; }
.tt-resume [data-close] { background: transparent; color: #fff; }
.tt-resume.tt-fade { opacity: .35; } .tt-resume.tt-fade:hover { opacity: 1; }
.tt-needs { border: 1px solid var(--line); border-left: 4px solid var(--ec); background: var(--paper); border-radius: 0 var(--r-md) var(--r-md) 0; padding: .9rem 1.1rem; margin: 1.25rem 0 2rem; }
.tt-needs > b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ec); margin-bottom: .3rem; }
.tt-needs ul { margin: .3rem 0 0; padding-left: 1.1rem; } .tt-needs li { margin: .25rem 0; }
.tt-tip { border-bottom: 1px dotted currentColor; cursor: help; }
.tt-pop { position: absolute; z-index: 70; background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.45; padding: .55rem .75rem; border-radius: var(--r-sm); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tt-myth, .tt-think, .tt-analogy { border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.1rem; margin: 1.25rem 0; }
.tt-myth { border-left: 4px solid #b42318; background: #fff6f5; }
.tt-myth-h b, .tt-think > p > b, .tt-analogy > p > b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.tt-myth-h b { color: #b42318; } .tt-myth-h { font-weight: 600; }
.tt-think { border-left: 4px solid #7a5af8; background: #f7f5ff; } .tt-think > p > b { color: #5b3fd6; }
.tt-think summary { cursor: pointer; font-weight: 600; color: #5b3fd6; }
.tt-analogy { border-left: 4px solid #b54708; background: #fffaf2; } .tt-analogy > p > b { color: #b54708; }
.tt-breaks { margin-bottom: 0; }
.tt-artifact { margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tt-artifact figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .55rem .9rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .85rem; }
.tt-artifact .tt-cmd { color: var(--muted); }
.tt-raw { margin: 0; padding: .9rem 1rem; overflow-x: auto; font: .82rem/1.55 var(--mono); background: #0f172a; color: #e2e8f0; }
.tt-raw mark { background: rgba(250, 204, 21, .25); color: inherit; border-radius: 2px; padding: 0 .1rem; }
.tt-raw mark[data-n]::before { content: attr(data-n); display: inline-block; min-width: 1.1rem; margin-right: .35rem; padding: 0 .25rem; border-radius: 999px; background: #facc15; color: #111; font-size: .7rem; font-weight: 700; text-align: center; }
.tt-svg { margin: 1.5rem 0; } .tt-svg svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .tt-progress .tt-label { top: auto; bottom: 12px; right: 12px; }
  .tt-series ol { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
  .tt-series li { flex: 0 0 auto; }
  .tt-series li a { display: block; white-space: nowrap; border: 1px solid var(--line); }
  .tt-series li a small { display: none; }
}
