/* Stack trace explainer landing page (/tools/stack-trace-explainer) only. Layers on market-tools.css + browser-tool.css. */
.tp-ste .tp-main{max-width:1220px;padding-top:clamp(20px,3vw,40px)}
.tp-ste .tp-hero{display:grid;gap:10px;max-width:860px;margin:0 0 20px}
.tp-ste .tp-hero h1{margin:0;font-size:clamp(1.7rem,3.4vw,2.6rem);line-height:1.12;letter-spacing:-.03em}
.tp-ste .tp-hero .mt-eyebrow{margin:0}
.tp-ste .tp-lede{margin:0;font-size:1.05rem;line-height:1.6;color:var(--muted,#52647b);max-width:68ch}
.tp-ste .tp-facts{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tp-ste .tp-facts li{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--line,#d7e1ee);border-radius:999px;background:#fff;font-size:.86rem;color:var(--ink,#071b35)}
.tp-ste .tp-facts b{font-weight:700;margin-right:4px}

.tp-ste .tp-tool{margin:0 0 12px;scroll-margin-top:90px}
.tp-ste .tp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:start;margin:0 0 16px}
.tp-ste .tp-grid .bt-panel{min-width:0;margin:0}
.tp-ste .tp-input{display:flex;flex-direction:column;border-color:#9fb7e6;box-shadow:0 10px 30px rgba(7,27,53,.08)}
.tp-ste .tp-input-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.tp-ste .tp-input-head h2{margin:0}
.tp-ste .tp-tag{font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1548c7;background:#edf4ff;border-radius:999px;padding:4px 10px;white-space:nowrap}
.tp-ste .tp-tag--live{color:#1c6b40;background:#e9f7ef}
.tp-ste .tp-input label[for="tr-in"]{font-weight:500;letter-spacing:0;font-size:.88rem;color:var(--muted,#52647b)}
.tp-ste .tp-input textarea#tr-in{height:300px;min-height:160px;font-size:.84rem;line-height:1.55;white-space:pre;overflow-x:auto;border-color:#9fb7e6}
.tp-ste .tp-input textarea#tr-in:focus-visible{outline:3px solid #1f5cf0;outline-offset:1px}
.tp-ste .tp-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:14px 0 0}
.tp-ste .tp-lang{flex:1 1 200px;min-width:0}
.tp-ste .tp-lang select{min-height:44px}
.tp-ste .tp-btns{display:flex;flex-wrap:wrap;gap:10px}
.tp-ste .tp-btns button,.tp-ste .bt-actions button{min-height:44px}
.tp-ste .tp-stat{margin:0 0 4px}
.tp-ste .tp-input #tr-redact{margin:16px 0 0}
.tp-ste .tp-reading h3:first-child{margin-top:8px}
.tp-ste .tp-reading{max-height:540px;overflow:auto;padding-right:6px;border-top:1px solid var(--line,#dfe5ef);border-bottom:1px solid var(--line,#dfe5ef)}
.tp-ste .tp-reading:focus-visible{outline:2px solid #1f5cf0;outline-offset:2px}
.tp-ste .tp-reading ol,.tp-ste .tp-reading ul{margin:0 0 10px;padding-left:1.3em;line-height:1.55}
.tp-ste .tp-reading li{margin:0 0 6px}
.tp-ste .tp-reading .bt-table td{word-break:break-word;overflow-wrap:anywhere}
.tp-ste .tp-reading .bt-table td:first-child{width:2em;color:var(--muted,#52647b)}
.tp-ste .tp-note{margin:0 0 14px}
.tp-ste .tp-more{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;font-size:.9rem;color:var(--muted,#52647b)}
.tp-ste .tp-more a{display:inline-flex;align-items:center;min-height:40px;font-weight:700;color:var(--blue,#1f5cf0)}
.tp-ste .tp-more a:focus-visible{outline:2px solid #1f5cf0;outline-offset:2px}
.tp-ste .mt-context-links{display:flex;flex-wrap:wrap;gap:8px 18px}
.tp-ste .mt-context-links a{display:inline-flex;align-items:center;min-height:40px}
/* Browser tool: the footer's generic result-expiry note does not apply here. */
.tp-ste .wt-foot-note{display:none}

@media (max-width:900px){
  .tp-ste .tp-grid{grid-template-columns:minmax(0,1fr)}
  .tp-ste .tp-reading{max-height:none;overflow:visible;padding-right:0;border:0}
  .tp-ste .tp-input textarea#tr-in{height:220px}
}
@media (max-width:600px){
  .tp-ste .tp-lede{font-size:1rem}
  .tp-ste .tp-facts li{font-size:.82rem}
  .tp-ste .tp-input-head{flex-wrap:wrap}
  .tp-ste .tp-facts{gap:6px}
  .tp-ste .tp-facts li{min-height:32px;padding:5px 10px}
  .tp-ste .tp-reading .bt-table{font-size:.8rem}
  .tp-ste .tp-reading .bt-table th,.tp-ste .tp-reading .bt-table td{padding:7px 5px}
  .tp-ste .tp-reading .bt-table th:first-child,.tp-ste .tp-reading .bt-table td:first-child{display:none}
}
@media (prefers-reduced-motion:reduce){
  .tp-ste *{scroll-behavior:auto}
}
