/* uig.me/investigations. Terminal theme shared by uig.me, lab, honeypot, detections and guide: keep the tokens and the
   "shared chrome" block identical across the five sites. */


:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #16201f;
  --muted: #3d4a48;
  --dim: #55625f;
  --border: #c5d2d0;
  --border-strong: #8a9a97;
  --accent: #0b5d56;
  --accent-2: #0b5f8a;
  --warn: #985600;
  --danger: #b42318;
  --ok: #157a3d;
  --chip: #f2f6f5;
  --code-bg: #f2f6f5;
  --shadow: 0 6px 18px rgba(31, 35, 40, 0.08);
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --prose: var(--font);
  /* code, commands, numbers and data stay monospace */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* ---------------------------------------------------------------- shared chrome */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
}

::selection { background: #cbe8e3; color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* the sticky header must not cover in-page anchor targets */
[id] { scroll-margin-top: 72px; }

.site-header {
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.94);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-weight: 700; color: var(--text); white-space: nowrap; }
.crumb { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.section { color: var(--muted); font-weight: 600; }
.section::before { content: "/ "; content: "/ " / ""; color: var(--dim); font-weight: 400; }
.section:hover { color: var(--accent); text-decoration: none; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-header nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0; color: var(--dim); font-size: 14px; }
.site-footer .credit { margin: 8px 0 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 1.2rem; line-height: 1.35; margin: 40px 0 12px; font-weight: 650; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }

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

@media print {
  :root { --bg: #fff; --surface: #fff; --shadow: none; }
  body { background: #fff; }
  .site-header { position: static; background: #fff; backdrop-filter: none; }
}

/* site tokens */
:root { --high: #b42318; --medium: #985600; --low: #0b5f8a; }


/* ---------------------------------------------------------------- uig.me/investigations */

.wrap { max-width: 960px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--code-bg); color: var(--accent-2); padding: 1px 5px; border-radius: var(--radius); }
main.wrap { padding-top: 32px; }
main.wrap.notfound { padding-top: 64px; }
.lead { color: var(--muted); max-width: 720px; margin: 0; }
.subnav { margin: 0 0 16px; font-size: 14px; }
.meta { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.muted { color: var(--muted); }

/* evidence summary: every number links to where it comes from */
.evidence { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.evidence li { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: 12px 16px; min-width: 0; display: flex; flex-direction: column; }
.evidence .num { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.evidence .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.evidence .src { color: var(--dim); font-size: 12.5px; margin-top: 6px; }

.items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; transition: border-color 0.15s, box-shadow 0.15s; }
.item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 600; }
.item-head a { color: var(--text); }
.item:hover .item-head a { color: var(--accent); }
.item p { color: var(--muted); font-size: 13px; margin: 6px 0 8px; }

.chip { font-family: var(--mono); font-size: 12.5px; background: var(--chip); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 6px; color: var(--accent-2); white-space: nowrap; }
.tool { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; color: var(--accent-2); }

/* one block per SIEM, stacked: long queries need the full width */
.siem { margin: 20px 0 0; }
.siem-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; margin: 0 0 6px; }
.siem-head h3 { margin: 0; }
.badge { font-size: 12.5px; color: var(--accent); white-space: nowrap; }
.badge.agree::before { content: "✓ "; content: "✓ " / ""; }
.badge.differ { color: var(--warn); }
.badge.differ::before { content: "≠ "; content: "≠ " / ""; }
.label-sm { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin: 10px 0 4px; }

pre.code { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); position: relative;
  padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0; }
pre.code code, .prose pre code { background: none; padding: 0; font-size: inherit; color: var(--text); }

.prose { max-width: 760px; }
/* long-form prose */
.prose p, .prose li, .prose blockquote { font-family: var(--prose); font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 1.05rem; margin: 32px 0 8px; }
.prose h3 { margin: 20px 0 6px; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--border); }
.prose pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.prose table { border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 6px 12px 6px 0; border-top: 1px solid var(--border); vertical-align: top; }
.prose blockquote { margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--border-strong); color: var(--muted); }

video { width: 100%; height: auto; background: #000; border: 1px solid var(--border); border-radius: var(--radius); }
.chapters { list-style: none; padding: 0; font-size: 14px; }
.chapters .t { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 10px; }

/* hands-on calendar: one cell per day, darker = more searches */
.calendar { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 11px); gap: 3px; overflow-x: auto; padding: 4px 0; }
.calendar span { width: 11px; height: 11px; border-radius: 1px; background: var(--chip); border: 1px solid var(--border); }
.calendar .l1 { background: #c6e3dd; } .calendar .l2 { background: #7fc0b3; } .calendar .l3 { background: #2b9483; }
.calendar .l4 { background: #0b5a51; }

@media (max-width: 760px) {
  .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header nav { gap: 4px 14px; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 2px; }
  h1 { font-size: 1.6rem; }
  .evidence { grid-template-columns: minmax(0, 1fr); }
}
