/* Website support hub: situation router, sample health report, priority levels */

/* router */
.rt { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.rt-card { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; min-height: 230px; }
.rt-card:nth-child(n + 4) { grid-column: span 3; min-height: 200px; }
.rt-card .code { margin-bottom: 14px; }
.rt-when { font-size: 11.5px; letter-spacing: 0.04em; color: var(--dim); }
.rt-card h3 { margin: 6px 0 4px; }
.rt-card .sv-rel-go { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--cyan); }
.rt-card .sv-rel-go span { display: inline-block; transition: transform 0.35s var(--ease); }
.rt-card:hover .sv-rel-go span { transform: translateX(5px); }
.rt-urgent { border-color: rgba(255, 111, 134, 0.35); }
.rt-urgent .code { color: var(--rose); }
.rt-urgent .rt-when { color: var(--rose); }
@media (max-width: 960px) {
  .rt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-card, .rt-card:nth-child(n + 4) { grid-column: span 1; min-height: 0; }
  .rt-card:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .rt { grid-template-columns: 1fr; }
  .rt-card:first-child { grid-column: span 1; }
}

/* sample health report */
.hr { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(14, 24, 64, 0.65), rgba(7, 13, 36, 0.65)); overflow: hidden; }
.hr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.hr-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hr-title .mono-label { font-size: 11.5px; }
.hr-title b { font-family: var(--f-mono); font-weight: 500; font-size: 13.5px; }
.hr-months { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5, 10, 28, 0.6); }
.hr-months button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background 0.3s, color 0.3s; }
.hr-months button[aria-selected="true"] { background: var(--accent); color: var(--bg); }
.hr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.hr-kpi { display: flex; flex-direction: column; gap: 6px; padding: 20px clamp(18px, 3vw, 28px); background: #08102e; }
.hr-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.hr-kpi b { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hr-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.hr-panel { padding: 22px clamp(18px, 3vw, 28px); background: #070e2a; }
.hr-panel .mono-label { margin-bottom: 14px; font-size: 11.5px; }
.hr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hr-checks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.hr-checks .scn-tag { flex: none; transition: all 0.35s var(--ease); }
.hr-fixes { margin: 0; padding: 0; list-style: none; counter-reset: fix; display: grid; gap: 10px; }
.hr-fixes li { counter-increment: fix; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px 50px; border-radius: 12px; border: 1px solid var(--line); background: rgba(140, 165, 255, 0.04); }
.hr-fixes li::before { content: counter(fix); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; background: rgba(var(--accent-rgb), 0.2); color: #9bb8ff; }
.hr-fixes span { font-size: 15px; color: var(--text); }
.hr-fixes em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.hr.is-swap .hr-kpi b, .hr.is-swap .hr-checks li, .hr.is-swap .hr-fixes li { animation: hr-in 0.5s var(--ease) both; }
.hr.is-swap .hr-checks li:nth-child(2), .hr.is-swap .hr-fixes li:nth-child(2) { animation-delay: 0.05s; }
.hr.is-swap .hr-checks li:nth-child(3), .hr.is-swap .hr-fixes li:nth-child(3) { animation-delay: 0.1s; }
.hr.is-swap .hr-checks li:nth-child(4) { animation-delay: 0.15s; }
.hr.is-swap .hr-checks li:nth-child(5) { animation-delay: 0.2s; }
.hr.is-swap .hr-checks li:nth-child(6) { animation-delay: 0.25s; }
@keyframes hr-in { from { opacity: 0; transform: translateY(8px); } }
.hr-note { padding: 16px clamp(18px, 3vw, 28px); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .hr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-body { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hr-months button { padding: 0 10px; font-size: 12.5px; }
  .hr-checks li { font-size: 13.5px; }
}

/* priority levels */
.pr { display: grid; gap: 10px; }
.pr-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pr-row h3 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.02em; margin-bottom: 4px; }
.pr-row p { color: var(--muted); font-size: 15px; }
.pr-p { display: grid; place-items: center; height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); }
.pr-p.is-p1 { color: var(--rose); border-color: rgba(255, 111, 134, 0.5); background: rgba(255, 111, 134, 0.1); }
.pr-p.is-p2 { color: var(--amber); border-color: rgba(255, 190, 92, 0.5); background: rgba(255, 190, 92, 0.08); }
.pr-p.is-p3 { color: var(--cyan); border-color: rgba(70, 225, 255, 0.4); background: rgba(70, 225, 255, 0.07); }
.pr-p.is-p4 { color: var(--muted); }
.pr-ex { font-size: 12px; color: var(--dim); text-align: right; }
@media (max-width: 760px) {
  .pr-row { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .pr-ex { grid-column: 2; text-align: left; }
}

/* ---------- day theme ---------- */
/* the sample report is a mockup, so it stays dark (data-dark) on a solid panel */
html[data-theme="light"] .hr { background: linear-gradient(180deg, #121c48, #0a1131); box-shadow: 0 30px 70px -40px rgba(20, 40, 110, 0.55); }
html[data-theme="light"] .pr-row { background: #fff; box-shadow: 0 10px 26px -22px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .pr-p.is-p1 { border-color: rgba(216, 58, 88, 0.45); background: rgba(216, 58, 88, 0.08); }
html[data-theme="light"] .pr-p.is-p2 { border-color: rgba(180, 111, 12, 0.45); background: rgba(180, 111, 12, 0.08); }
html[data-theme="light"] .pr-p.is-p3 { border-color: rgba(10, 143, 179, 0.4); background: rgba(10, 143, 179, 0.07); }
html[data-theme="light"] .rt-urgent { border-color: rgba(216, 58, 88, 0.35); }
