/* Emergency support: symptom triage */
.tri { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.tri-list { display: grid; gap: 8px; }
.tri-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1.4; color: var(--muted); transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.tri-opt:hover { color: var(--text); border-color: var(--line-2); transform: translateX(4px); }
.tri-opt[aria-selected="true"] { color: var(--text); border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--accent-rgb), 0.12); }
.tri:not(.is-tabs) .tri-opt { pointer-events: none; }
.tri-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.tri-dot.is-crit { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.tri-dot.is-high { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.tri-panels { position: relative; display: grid; gap: 14px; }
.tri-panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(25, 40, 96, 0.6), rgba(8, 14, 40, 0.6)); }
.tri-panel[hidden] { display: none; }
.tri-panel.is-enter { animation: tri-in 0.55s var(--ease); }
@keyframes tri-in { from { opacity: 0; transform: translateY(12px); } }
.tri-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.tri-top h3 { font-size: clamp(20px, 1.9vw, 25px); letter-spacing: -0.025em; }
.tri-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.tri-cols .mono-label { margin-bottom: 12px; font-size: 11.5px; }
.tri-cols ol, .tri-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tri-cols li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tri-cols ol { counter-reset: tri; }
.tri-cols ol li { counter-increment: tri; color: var(--text); }
.tri-cols ol li::before { content: counter(tri); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; background: rgba(var(--accent-rgb), 0.2); color: #9bb8ff; }
.tri-cols ul li::before { content: "›"; position: absolute; left: 6px; top: 0; color: var(--accent); font-family: var(--f-mono); }
.tri-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.tri-cta p { color: var(--muted); font-size: 15px; max-width: 46ch; }
@media (max-width: 900px) {
  .tri { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tri-cols { grid-template-columns: 1fr; }
  .tri-opt { font-size: 15px; padding: 14px 16px; }
}

/* ---------- day theme ---------- */
html[data-theme="light"] .tri-opt { background: #fff; }
html[data-theme="light"] .tri-opt[aria-selected="true"] { background: rgba(var(--accent-rgb), 0.07); box-shadow: 0 12px 28px -20px rgba(var(--accent-rgb), 0.55); }
html[data-theme="light"] .tri-panel { background: linear-gradient(160deg, #ffffff, #f2f5ff); box-shadow: 0 18px 44px -30px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .tri-dot.is-crit, html[data-theme="light"] .tri-dot.is-high { box-shadow: none; }
