/* Trauma and autoimmunity article: drawings, the loop, and story cards. Builds on article.css and glyco.css. */
.tr-hero-vis{width:100%;max-width:440px;justify-self:center}
.tr-hero-vis svg{width:100%;height:auto;display:block;overflow:visible}
.tr-vis{border-radius:22px;overflow:hidden;background:#FBF5E6;margin:0 0 14px}
.tr-vis svg{width:100%;height:auto;display:block}
.tr-l{font-size:13px;font-weight:600;fill:#3B4733;letter-spacing:.02em}
.tr-l.mid{text-anchor:middle}.tr-l.end{text-anchor:end}
.tr-l.sm{font-size:12px}
.tr-l.w{fill:#fff}
.tr-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 6px}
.tr-row span{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#5A6650}
.tr-val{font-size:16px !important;font-weight:600;color:#24301D !important;margin:0 !important}
.tr-msg{margin:12px 0 0 !important;font-size:16px !important;font-weight:600;color:#24301D !important;min-height:3.2em}
.tr-key{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 14px !important;font-size:14px !important;line-height:1.2 !important}
.tr-key span{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#24301D}
.tr-key i{display:inline-block;width:14px;height:14px;border-radius:50%}

/* the loop */
.tr-loop .tr-node{cursor:pointer}
.tr-loop .tr-node circle{transition:fill .5s,stroke .5s,r .3s}
.tr-loop .tr-node.sel circle.bg{stroke:#24301D;stroke-width:4}
.tr-loop .tr-node:focus{outline:none}
.tr-loop .tr-node:focus-visible circle.bg{stroke:#24301D;stroke-width:4}
.tr-pane{background:#fff;border-radius:18px;padding:18px 20px;margin:12px 0 0}
.tr-pane .ix-h{margin:0 0 6px !important}
.tr-pane p{margin:0 !important}

/* venn */
.tr-venn .tr-side{font-size:15px !important;line-height:1.5 !important;margin:0 !important}
.tr-venn-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 0}
.tr-venn-two > div{background:#fff;border-radius:18px;padding:16px 18px}
.tr-venn-two .k{display:block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin:0 0 6px}
.tr-venn-two .k.t{color:#0B4F53}.tr-venn-two .k.r{color:#9C2155}

/* story cards (same look as the other articles) */
.tr-sts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0 16px;align-items:start}
.tr-st{padding:26px 26px 28px;border-radius:28px;background:#fff;border:1px solid #DDE2D3}
.tr-st-pill{display:inline-block;margin:0 0 14px !important;padding:6px 14px;border-radius:999px;font-size:13px !important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1.4 !important}
.tr-st-pill.rasp{background:#FBE6EE;color:#9C2155 !important}
.tr-st-pill.teal{background:#E1EFEF;color:#0B4F53 !important}
.tr-st-h{margin:0 0 16px;font-size:26px;font-weight:600;line-height:1.2;color:#24301D;letter-spacing:-.01em}
.tr-chat{position:relative;padding:14px;border-radius:22px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.tr-chat.light{background:#fff;border:1px solid #DDE2D3}
.tr-chat.dark{background:#16181B}
.tr-bub{margin:0 !important;padding:12px 16px;border-radius:20px;font-size:17px !important;line-height:1.45 !important}
.tr-chat.light .tr-bub{background:#EFEFF1;color:#111 !important}
.tr-chat.dark .tr-bub{background:#2A2C31;color:#F2F2F4 !important}
.tr-react{margin:-6px 0 0 10px;padding:3px 8px;border-radius:999px;font-size:15px;line-height:1.2}
.tr-chat.light .tr-react{background:#EFEFF1}
.tr-chat.dark .tr-react{background:#2A2C31}

/* gentle note */
.tr-first{background:#fff;border:1px solid #DDE2D3;border-left:6px solid #C2306B;border-radius:22px;padding:22px 24px;margin:0 0 36px}
.tr-first-h{margin:0 0 8px !important;font-size:13px !important;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#9C2155 !important}
.tr-first p{margin:0 !important}

.tr-flow{stroke-dasharray:6 9;animation:trflow 1.8s linear infinite}
.tr-flow.slow{animation-duration:6s}
@keyframes trflow{to{stroke-dashoffset:-60}}
.tr-breathe{transform-box:fill-box;transform-origin:50% 50%;animation:trbreathe 5s ease-in-out infinite}
@keyframes trbreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

@media (max-width:760px){.tr-sts,.tr-venn-two{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.tr-flow,.tr-breathe{animation:none !important}}

/* hot loop nodes pulse */
.tr-loop .tr-node.hot circle.bg{transform-box:fill-box;transform-origin:50% 50%;animation:trpulse 1.8s ease-in-out infinite}
@keyframes trpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.09)}}
.tr-dial-go{margin-top:12px}
@media (prefers-reduced-motion:reduce){.tr-loop .tr-node.hot circle.bg{animation:none}}
.tg.a{background:#FBE6EE;color:#9C2155}
.tr-leg{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;padding:4px 14px 16px}
.tr-leg-i{display:flex;align-items:center;gap:8px;background:none;border:0;padding:4px 0;text-align:left;font:inherit;font-size:14px;line-height:1.25;color:#24301D;cursor:pointer}
.tr-leg-i b{flex:none;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:#fff}
.tr-leg-i b.n{background:#0F6E73}.tr-leg-i b.i{background:#C2306B}
.tr-leg-i b.n.calm{background:#D7ECEA;color:#24301D}.tr-leg-i b.i.calm{background:#F8DCE6;color:#24301D}
.tr-leg-i.on{font-weight:700}
.tr-bars{padding:18px 20px 8px}
.tr-bar{margin:0 0 14px}
.tr-bar-k{margin:0 0 6px !important;font-size:15px !important;font-weight:700;color:#24301D !important;line-height:1.2 !important}
.tr-bar-t{height:22px;border-radius:11px;background:#EEF0E7;overflow:hidden}
.tr-bar-t span{display:block;height:100%;border-radius:11px;transition:width 1.2s cubic-bezier(.3,1.2,.5,1)}
.tr-bar-t span.r{background:linear-gradient(90deg,#E58FB0,#C2306B)}
.tr-bar-t span.t{background:linear-gradient(90deg,#7DB9B6,#0F6E73)}
.tr-bar-n{margin:5px 0 0 !important;font-size:14px !important;line-height:1.4 !important;color:#5A6650 !important}
@media (max-width:600px){
.tr-street .tr-l,.tr-dial .tr-l{font-size:22px}
.tr-venn .tr-l{font-size:16px}
.tr-hpa .tr-l{font-size:16px}
}

.tr-sf{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.tr-sf button{font:inherit;font-weight:600;font-size:15px;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid #DDE2D3;background:#fff;color:#24301D;cursor:pointer}
.tr-sf button.on{background:#24301D;border-color:#24301D;color:#fff}
.tr-chat .tr-bub.me{align-self:flex-end;background:#0F6E73 !important;color:#fff !important}
.tr-more{display:block;margin:4px 0 18px;font:inherit;font-weight:600;font-size:16px;min-height:48px;padding:0 22px;border-radius:999px;border:0;background:#F0F445;color:#24301D;cursor:pointer}
