/* Paseo Playbooks site. Design tokens follow paseo.sh (dark only). */
:root {
  color-scheme: dark;
  --background: #101615;
  --card: #171d1c;
  --muted: #1a1f1e;
  --secondary: #252b2a;
  --border: #252b2a;
  --foreground: #fafafa;
  --muted-foreground: #a8adac;
  --extra-muted-foreground: #717574;
  --primary: #239956;
  --accent: #7ccba0;
  --success: #35c264;
  --running: #5caaf6;
  --warning: #db932e;
  --danger: #f7796d;
  --panel-0: #181b1a;
  --panel-1: #1e2120;
  --panel-2: #272a29;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --max: 56rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--foreground); }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 22, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--foreground);
}
header.site .brand img { width: 24px; height: 24px; border-radius: var(--radius-md); }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.875rem; }
header.site nav a { color: var(--muted-foreground); }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--foreground); }

/* Content */
main { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
h1 { font-size: 2.4rem; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; margin: 3rem 0 0.9rem; }
h3 { font-size: 1.1rem; font-weight: 500; margin: 1.8rem 0 0.5rem; }
p, ul, ol, table, pre { margin: 0 0 1rem; }
p, li, td { color: var(--muted-foreground); }
strong, th, h1, h2, h3 { color: var(--foreground); }
li { margin: 0.25rem 0; }
.lead { font-size: 1.15rem; color: var(--muted-foreground); max-width: 42rem; }
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 3rem; }

code {
  font: 0.86em/1.5 var(--font-mono);
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.05em 0.35em;
}
pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; font-size: 0.84rem; white-space: pre; color: #e6edf3; }
.tok-c { color: #8b949e; }
.tok-k { color: #ff7b72; }
.tok-s { color: #a5d6ff; }
.tok-n { color: #79c0ff; }
.tok-t { color: #7ee787; }
.file {
  font: 0.8rem var(--font-mono);
  color: var(--extra-muted-foreground);
  margin: 1.4rem 0 0.4rem;
}

table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.92rem; }
th, td { border-bottom: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
th { font-weight: 500; background: var(--card); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.2rem;
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--primary); color: var(--foreground); }
.card strong { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.card span { color: var(--muted-foreground); font-size: 0.92rem; }

.button {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.55rem 1.1rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.button:hover { color: #ffffff; filter: brightness(1.1); }
.button.secondary { background: var(--secondary); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: var(--card);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}
.note.warn { border-left-color: var(--warning); }
ol.steps > li { margin-bottom: 1.1rem; }
.toc ul { columns: 2; padding-left: 1.2rem; font-size: 0.92rem; }

/* Mock Paseo panel with the PR graph (positions match the real panel's graph) */
.mock {
  margin: 2rem auto;
  max-width: 28rem;
  background: var(--panel-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel-1);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--foreground);
}
.mock-bar .dots { display: flex; gap: 0.3rem; }
.mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-2); display: block; }
.mock-body { padding: 0.9rem 0.9rem 1.75rem; }
.mcard { background: var(--panel-1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 10px 10px 18px; }
.mcard-head { display: flex; align-items: center; gap: 0.45rem; }
.mcard-head .chev { color: var(--muted-foreground); font-size: 0.8rem; }
.mcard-title { flex: 1; line-height: 1.25; }
.mcard-title b { display: block; color: var(--foreground); font-size: 0.85rem; font-weight: 600; }
.mcard-title small { color: var(--muted-foreground); font-size: 0.68rem; }
.split { display: flex; border-radius: var(--radius-lg); overflow: hidden; font-size: 0.72rem; font-weight: 600; color: #0b1a2a; }
.split span { background: var(--running); padding: 0.3rem 0.6rem; }
.split span + span { border-left: 1px solid rgba(11, 26, 42, 0.25); padding: 0.3rem 0.4rem; }
.mcard-rule { height: 1px; background: var(--border); margin: 10px -10px 8px; }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.tab { font-size: 0.66rem; border: 1px solid var(--muted-foreground); color: var(--muted-foreground); border-radius: 10px; padding: 0.05rem 0.5rem; }
.tab.sel { background: var(--running); border-color: var(--running); color: #0b1a2a; }
.tab i { font-style: normal; margin-left: 0.35rem; padding-left: 0.35rem; border-left: 1px solid rgba(11, 26, 42, 0.3); }
.mgraph { position: relative; height: 354px; }
.mgraph > * { position: absolute; left: 50%; transform: translateX(-50%); }
.mgraph .v { width: 2px; background: var(--muted-foreground); }
.mgraph .h { height: 2px; transform: none; background: var(--muted-foreground); }
.mgraph .arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 6px; height: 6px; transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground); background: var(--panel-1);
}
.mgraph .n {
  width: 136px; height: 48px; box-sizing: border-box;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.3rem 0.55rem; font-size: 0.72rem; line-height: 1.35; z-index: 1;
}
.mgraph .n b { display: block; color: var(--foreground); font-weight: 600; white-space: nowrap; }
.mgraph .n small { display: block; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgraph .n.ok { border-color: var(--success); }
.mgraph .n.ok b { color: var(--foreground); }
.mgraph .n.run { border: 2px solid var(--running); animation: pulse 1.8s ease-in-out infinite; }
.mgraph .n.dim { opacity: 0.6; background: #2a2d2c; }
.mgraph .n.gate { border-radius: 4px; background: #3a3229; }
.mgraph .pill {
  height: 26px; box-sizing: border-box; display: flex; align-items: center; gap: 0.35rem; white-space: nowrap;
  padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--muted-foreground); background: var(--panel-2);
  font-size: 0.7rem; color: var(--muted-foreground); z-index: 1;
}
.mgraph .pill.ok { border-color: var(--success); color: var(--success); }
.mgraph .pill b { color: var(--foreground); font-weight: 600; }
.mgraph .pill small { color: var(--muted-foreground); }
.mgraph .elabel { transform: none; margin-left: 6px; font-size: 0.62rem; color: var(--muted-foreground); }
.mgraph .loopline {
  left: calc(50% + 68px); width: 90px; transform: none; box-sizing: border-box;
  border: 2px dashed var(--muted-foreground); border-left: 0;
}
.mgraph .loopline::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 6px; height: 6px; transform: rotate(45deg);
  border-left: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground);
}
.mgraph .looplabel {
  left: calc(50% + 157px); transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap; font-size: 0.6rem; color: var(--muted-foreground); background: var(--panel-1); padding: 0 3px;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 3px rgba(92, 170, 246, 0.25); } }
@media (prefers-reduced-motion: reduce) { .mgraph .n.run { animation: none; } }

footer.site { border-top: 1px solid var(--border); color: var(--extra-muted-foreground); font-size: 0.85rem; }
footer.site .inner { max-width: var(--max); margin: 0 auto; padding: 1.25rem; }

@media (max-width: 40rem) {
  h1, .hero h1 { font-size: 2rem; }
  .toc ul { columns: 1; }
  main { padding-top: 1.5rem; }
}
