/* Gulyabani web UI. Tokens from .kiro/steering/design-system.md; the four verdict colors are renamed by
   tone (ok, warn, bad, unknown). Colors only tint the shape icons: every verdict also has its written label.
   No web fonts: the font stacks fall back to system fonts, so nothing is loaded from another origin. */

:root {
  --bg: #0B0D10;
  --surface: #12151A;
  --border: #1E232B;
  --text: #E6E8EB;
  --muted: #8B93A0;
  --accent: #8B7CF6;
  --tone-ok: #3FB68B;
  --tone-warn: #E3A93B;
  --tone-bad: #E5534B;
  --tone-unknown: #7A8594;
  --sans: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); }

body {
  margin: 0 auto;
  max-width: 880px;
  padding: 16px;
  font: 400 14px/1.5 var(--sans);
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h1 { font-size: 28px; margin: 24px 0 16px; overflow-wrap: anywhere; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; overflow-wrap: anywhere; }

a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px; }
.skip:focus { left: 8px; }

header { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--border); }
.brand { font-weight: 600; }

main:focus { outline: none; }

section { background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; margin: 0 0 24px; }

.verdict { display: inline-flex; align-items: center; gap: 8px; }
.verdict-line .label { font-size: 28px; font-weight: 600; }
.summary { font-size: 16px; }
.court-note, .note, .message { border-left: 2px solid var(--muted); padding-left: 12px; }

.icon { flex: none; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon .dashed { stroke-dasharray: 2 2; }
.tone-ok { stroke: var(--tone-ok); }
.tone-warn { stroke: var(--tone-warn); }
.tone-bad { stroke: var(--tone-bad); }
.tone-unknown { stroke: var(--tone-unknown); }

table { width: 100%; border-collapse: collapse; }
caption { text-align: left; color: var(--muted); padding-bottom: 8px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
td a { overflow-wrap: anywhere; }

.findings { padding-left: 24px; }
.finding { margin-bottom: 24px; }
.facts { list-style: none; padding: 0; margin: 0 0 8px; }

code, pre { font-family: var(--mono); font-size: 14px; }
code { overflow-wrap: anywhere; }
pre.quote { margin: 8px 0 0; padding: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; overflow-x: auto; white-space: pre; }
.qline { display: block; }
.ln { display: inline-block; min-width: 4ch; margin-right: 12px; color: var(--muted); text-align: right;
  user-select: none; }

details > summary { cursor: pointer; color: var(--accent); }
details.more { margin: 0 0 24px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filter input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 8px; font: inherit; }
.toggle-all { background: none; color: var(--accent); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 12px; font: inherit; cursor: pointer; margin-bottom: 12px; }

details[open] > *:not(summary) { animation: reveal 150ms ease-out; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 480px) {
  body { padding: 8px; }
  section { padding: 16px; }
  thead { position: absolute; left: -9999px; }
  tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  td { display: block; border: none; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
