/* The Scentsible Method page, 2026-10-29: nervous system meter, secure vs
   insecure flip, wrong-word slashes, step lists that light up. Without JS
   the original tiles and table show (html.mt-js turns the new pieces on). */

/* Step cards read on both section colors */
html body .k-sec:not(.k-alt) .t-steps li{background:#f3f2ec}
html body .k-alt .t-steps li{background:#fff;padding:18px}

/* Nervous system meter */
html body .mt-ns{display:none}
html.mt-js body .mt-ns{display:block;max-width:720px;background:var(--charcoal);border-radius:var(--m-r-lg,22px);padding:22px 18px 18px;
  --at:8%;--tone:var(--sage)}
html.mt-js body .mt-ns-tiles{display:none}
html body .mt-ns[data-s="fight"]{--at:50%;--tone:#e0955f}
html body .mt-ns[data-s="shut"]{--at:92%;--tone:#8d98a6}
html body .mt-ns-bar{position:relative;height:14px;border-radius:7px;margin:12px 6px 0;
  background:linear-gradient(90deg,var(--sage) 0%,#c9b46a 38%,#e0955f 58%,#8d98a6 100%)}
html body .mt-ns-dot{position:absolute;top:50%;left:var(--at);width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;
  background:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.18),0 4px 14px rgba(0,0,0,.35);transition:left .6s cubic-bezier(.22,1,.36,1)}
html body .mt-ns-stops{display:flex;gap:8px;margin-top:22px}
html body .mt-ns-stop{flex:1;min-height:44px;border-radius:999px;border:1.5px solid rgba(255,255,255,.28);background:transparent;color:rgba(254,254,254,.85);
  font-family:var(--font-h);font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;padding:6px 8px;line-height:1.1;
  transition:background .3s ease,color .3s ease,border-color .3s ease}
html body .mt-ns-stop.on{background:#fff;border-color:#fff;color:var(--charcoal)}
html body .mt-ns-card{display:none;margin-top:16px;background:#fff;border-radius:18px;padding:18px;border-top:6px solid var(--tone)}
html body .mt-ns-card.on{display:block;animation:mt-in .45s cubic-bezier(.22,1,.36,1)}
html body .mt-ns-card span{display:block;font-family:var(--font-h);font-weight:800;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#6b6f63}
html body .mt-ns-card b{display:block;margin-top:6px;font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:28px;line-height:1;color:var(--charcoal)}
html body .mt-ns-card p{margin-top:8px;font-size:16px;line-height:1.55;color:#45493f}
html body .mt-ns-card ul{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-wrap:wrap;gap:8px}
html body .mt-ns-card li{font-family:var(--font-h);font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--charcoal);
  background:#f3f2ec;border-radius:999px;padding:7px 12px}
html body .mt-ns-hint{margin-top:12px;font-family:var(--font-sub);font-style:italic;font-size:15px;color:rgba(254,254,254,.7);transition:opacity .4s ease}
html body .mt-ns.tried .mt-ns-hint{opacity:0}
@keyframes mt-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Secure vs insecure flip */
html.mt-js body .mt-secure .ab-table-wrap{display:none}
html body .mt-sw{max-width:720px}
html body .mt-sw-btns{display:flex;gap:8px;background:#fff;border-radius:999px;padding:5px;box-shadow:0 1px 2px rgba(26,29,24,.06)}
html body .mt-sw-btns button{flex:1;min-height:44px;border:0;border-radius:999px;background:transparent;cursor:pointer;
  font-family:var(--font-h);font-weight:800;font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:#6b6f63;transition:background .35s ease,color .35s ease}
html body .mt-sw[data-side="1"] .mt-sw-btns button.on{background:#8d98a6;color:#fff}
html body .mt-sw[data-side="0"] .mt-sw-btns button.on{background:var(--sage);color:#fff}
html body .mt-sw-list{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-direction:column;gap:10px}
html body .mt-sw-list li{background:#fff;border-radius:16px;padding:16px 18px 16px 50px;position:relative;font-size:16.5px;line-height:1.45;color:var(--charcoal);
  transition:opacity .22s ease,transform .22s ease}
html body .mt-sw-list li::before{content:"";position:absolute;left:18px;top:18px;width:18px;height:18px;border-radius:50%;
  background:#8d98a6;transition:background .35s ease}
html body .mt-sw[data-side="0"] .mt-sw-list li::before{background:var(--sage);box-shadow:0 0 12px rgba(129,143,107,.55)}
html body .mt-sw-list li.out{opacity:0;transform:translateX(-10px)}
html body .mt-sw-hint{margin-top:12px;font-family:var(--font-sub);font-style:italic;font-size:15px;color:#55594f;transition:opacity .4s ease}
html body .mt-sw[data-side="0"] .mt-sw-hint{opacity:0}

/* Wrong word rows sit inside a normal section here */
html body .k-sec .m-myth-list{margin-top:var(--r-block,26px)}

/* Steps light up in order with a line to the next one */
html body .mt-path li{position:relative}
html body .mt-path li:not(:last-child)::after{content:"";position:absolute;left:43px;top:70px;bottom:-30px;width:3px;border-radius:2px;background:var(--sage);z-index:1;transform-origin:top}
html.mt-anim body .mt-path .t-n{background:#fff;color:var(--sage);box-shadow:inset 0 0 0 3px var(--sage);transition:background .5s ease,color .5s ease,box-shadow .5s ease}
html.mt-anim body .mt-path li.lit .t-n{background:var(--sage);color:#fff;box-shadow:0 0 18px rgba(129,143,107,.45)}
html.mt-anim body .mt-path li:not(:last-child)::after{transform:scaleY(0);transition:transform .9s cubic-bezier(.22,1,.36,1) .35s}
html.mt-anim body .mt-path li.lit::after{transform:scaleY(1)}

@media (max-width:600px){
  html body .mt-ns-stop{font-size:11.5px;letter-spacing:.05em}
  html body .mt-sw-btns button{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){
  html body .mt-ns-dot,html body .mt-sw-list li{transition:none}
  html body .mt-ns-card.on{animation:none}
}

/* ---- Curriculum chapters added 2026-10-29 ---- */

/* The order: a stack built from the bottom */
html body .mt-stack{list-style:none;padding:0;max-width:560px;display:flex;flex-direction:column;gap:6px}
html body .mt-stack li{border-radius:14px;padding:14px 18px;background:var(--sage);color:#fff;display:flex;flex-direction:column;gap:2px}
html body .mt-stack li:nth-child(1){margin:0 18%;background:#a9b29a}
html body .mt-stack li:nth-child(2){margin:0 12%;background:#97a283}
html body .mt-stack li:nth-child(3){margin:0 6%;background:#8a9677}
html body .mt-stack li:nth-child(4){background:var(--sage)}
html body .mt-stack li.mt-base{background:var(--charcoal)}
html body .mt-stack b{font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:20px;letter-spacing:.04em;line-height:1.05}
html body .mt-stack span{font-size:14.5px;line-height:1.4;color:rgba(255,255,255,.88)}
html.mt-anim body .mt-stack li{opacity:0;transform:translateY(16px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
html.mt-anim body .mt-stack.lit li{opacity:1;transform:none}
html.mt-anim body .mt-stack li:nth-child(5){transition-delay:0s}
html.mt-anim body .mt-stack li:nth-child(4){transition-delay:.25s}
html.mt-anim body .mt-stack li:nth-child(3){transition-delay:.5s}
html.mt-anim body .mt-stack li:nth-child(2){transition-delay:.75s}
html.mt-anim body .mt-stack li:nth-child(1){transition-delay:1s}

/* Two ladders side by side */
html body .mt-ladders{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:760px;margin-top:10px}
html body .mt-ladder{background:#f3f2ec;border-radius:18px;padding:18px}
html body .k-alt .mt-ladder{background:#fff}
html body .mt-ladder > span{display:block;font-family:var(--font-h);font-weight:800;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#6b6f63}
html body .mt-ladder ol{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:10px;counter-reset:l}
html body .mt-ladder li{counter-increment:l;position:relative;padding-left:40px;font-size:15px;line-height:1.4;color:#45493f}
html body .mt-ladder li::before{content:counter(l);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:var(--charcoal);color:#fff;font-family:var(--font-h);font-weight:800;font-size:14px}
html body .mt-dog li::before{background:var(--sage)}
html body .mt-ladder b{display:block;font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:18px;color:var(--charcoal)}
@media (max-width:640px){html body .mt-ladders{grid-template-columns:1fr}}

/* Mind, body, soul: looks like / sometimes it is */
html body .mt-looks{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:960px}
html body .mt-looks > div{background:#fff;border-radius:18px;padding:18px;display:flex;flex-direction:column}
html body .k-sec:not(.k-alt) .mt-looks > div{background:#f3f2ec}
html body .mt-looks span{font-family:var(--font-h);font-weight:800;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#8a8d82}
html body .mt-looks b{font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:24px;line-height:1.05;color:#8a8d82;margin-top:2px}
html body .mt-looks b:nth-of-type(2){color:var(--charcoal)}
html body .mt-looks i{display:block;width:3px;height:22px;background:var(--sage);border-radius:2px;margin:10px 0 10px 2px}
html body .mt-looks p{margin-top:8px;font-size:15px;line-height:1.5;color:#45493f}
@media (max-width:760px){html body .mt-looks{grid-template-columns:1fr}}

/* The soul: each step a little dimmer */
html body .mt-fade{list-style:none;padding:0;max-width:640px;display:flex;flex-direction:column;gap:8px}
html body .mt-fade li{border-left:4px solid var(--sage);background:#fff;border-radius:0 14px 14px 0;padding:12px 16px;font-size:15px;line-height:1.45;color:#45493f}
html body .k-sec:not(.k-alt) .mt-fade li{background:#f3f2ec}
html body .mt-fade b{display:block;font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:18px;color:var(--charcoal)}
html body .mt-fade li:nth-child(2){opacity:.85}html body .mt-fade li:nth-child(3){opacity:.7}html body .mt-fade li:nth-child(4){opacity:.55}
html body .mt-check{max-width:720px;background:var(--charcoal);color:#fff;border-radius:18px;padding:20px}
html body .mt-check > b{font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:20px;letter-spacing:.04em}
html body .mt-check p{margin-top:8px;font-size:15.5px;line-height:1.55;color:rgba(254,254,254,.86)}
html body .mt-check strong{color:#fff}

/* Arousal scale */
html body .mt-scale{max-width:760px;background:#fff;border-radius:18px;padding:18px 16px}
html body .k-sec:not(.k-alt) .mt-scale{background:#f3f2ec}
html body .mt-scale-row{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
html body .mt-scale-row i{font-style:normal;display:grid;place-items:center;height:44px;border-radius:8px;color:#fff;
  font-family:var(--font-h);font-weight:800;font-size:17px}
html body .mt-scale-row i:nth-child(-n+3){background:var(--sage)}
html body .mt-scale-row i:nth-child(n+4):nth-child(-n+6){background:#c9b46a}
html body .mt-scale-row i:nth-child(n+7):nth-child(-n+8){background:#e0955f}
html body .mt-scale-row i:nth-child(n+9){background:#c9574a}
html body .mt-scale-zone{position:relative;height:30px;margin-top:6px}
html body .mt-scale-zone span{position:absolute;left:20%;width:30%;top:0;border-top:3px solid var(--charcoal);padding-top:4px;text-align:center;
  font-family:var(--font-h);font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--charcoal)}
html body .mt-scale-keys{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin-top:8px}
html body .mt-scale-keys span{font-size:14.5px;line-height:1.35;color:#45493f}
html body .mt-scale-keys b{display:block;font-family:var(--font-h);font-weight:800;font-size:16px;color:var(--charcoal)}
html.mt-anim body .mt-scale-row i{opacity:.15;transition:opacity .5s ease}
html.mt-anim body .mt-scale.lit .mt-scale-row i{opacity:1}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(2){transition-delay:.1s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(3){transition-delay:.2s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(4){transition-delay:.3s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(5){transition-delay:.4s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(6){transition-delay:.5s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(7){transition-delay:.6s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(8){transition-delay:.7s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(9){transition-delay:.8s}
html.mt-anim body .mt-scale.lit .mt-scale-row i:nth-child(10){transition-delay:.9s}

/* Escalation ladder: rungs light from the bottom up */
html body .mt-rungs{max-width:560px}
html body .mt-rungs ol{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
html body .mt-rungs li{background:#fff;border-radius:12px;padding:10px 14px;font-size:14.5px;line-height:1.35;color:#55594f;border-left:4px solid #d9d6cb}
html body .k-sec:not(.k-alt) .mt-rungs li{background:#f3f2ec}
html body .mt-rungs b{display:block;font-family:var(--font-h);font-weight:800;text-transform:uppercase;font-size:17px;color:var(--charcoal)}
html body .mt-rungs li:nth-child(1){border-left-color:#c9574a}
html body .mt-rungs li:nth-child(2){border-left-color:#d77a55}
html body .mt-rungs li.mt-growl{border-left-color:#e0955f;box-shadow:inset 0 0 0 2px #e0955f}
html body .mt-rungs li:nth-child(4),html body .mt-rungs li:nth-child(5){border-left-color:#c9b46a}
html body .mt-rungs li:nth-child(n+6){border-left-color:var(--sage)}
html.mt-anim body .mt-rungs li{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s cubic-bezier(.22,1,.36,1)}
html.mt-anim body .mt-rungs.lit li{opacity:1;transform:none}
html.mt-anim body .mt-rungs.lit li:nth-child(6){transition-delay:.15s}
html.mt-anim body .mt-rungs.lit li:nth-child(5){transition-delay:.3s}
html.mt-anim body .mt-rungs.lit li:nth-child(4){transition-delay:.45s}
html.mt-anim body .mt-rungs.lit li:nth-child(3){transition-delay:.6s}
html.mt-anim body .mt-rungs.lit li:nth-child(2){transition-delay:.75s}
html.mt-anim body .mt-rungs.lit li:nth-child(1){transition-delay:.9s}
html body .mt-rungs + .t-steps{margin-top:var(--r-block,26px)}
