@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #16233F;
  --paper: #F6F7FA;
  --paper-raised: #FFFFFF;
  --muted: #5C6B82;
  --line: #DDE3ED;
  --bg-cat: #56708A;
  --bg-cat-tint: #EAEFF3;
  --ev-cat: #2F6B5E;
  --ev-cat-tint: #E7F0EE;
  --arg-cat: #8B4049;
  --arg-cat-tint: #F3E9EA;
  --gold: #B9902A;
  --gold-tint: #FBF3E2;
  --max-text: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em 0; max-width: var(--max-text); }

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

.layout {
  display: flex;
  min-height: 100vh;
}

.nav {
  width: 240px;
  flex-shrink: 0;
  background: var(--ink);
  color: #D9E0EC;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav .guide-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
}

.nav .guide-sub {
  font-size: 0.78rem;
  color: #8FA0BC;
  margin-bottom: 2.2rem;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li { margin-bottom: 0.15rem; }

.nav a, .nav .disabled {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 5px;
  font-size: 0.92rem;
  text-decoration: none;
  color: #C7D0E0;
}

.nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }

.nav a.current {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
}

.nav .disabled {
  color: #5A6A87;
  cursor: default;
}

.nav .soon {
  display: block;
  font-size: 0.72rem;
  color: #4E5D78;
  margin-top: -0.05rem;
}

.main {
  flex: 1;
  padding: 3.5rem 4rem 6rem 4rem;
  max-width: 1000px;
}

.eyebrow-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: var(--max-text);
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.6rem 0;
}

/* Category card system, shared across BEAM / Sort & Vet pages */
.cat-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 1.8rem 1.9rem;
  margin-bottom: 1.6rem;
  background: var(--paper-raised);
}

.cat-card .cat-label {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  padding-bottom: 0.15rem;
  margin-bottom: 0.7rem;
  border-bottom: 3px solid currentColor;
}

.cat-card.background { border-left: 5px solid var(--bg-cat); }
.cat-card.background .cat-label { color: var(--bg-cat); }

.cat-card.evidence { border-left: 5px solid var(--ev-cat); }
.cat-card.evidence .cat-label { color: var(--ev-cat); }

.cat-card.argument { border-left: 5px solid var(--arg-cat); }
.cat-card.argument .cat-label { color: var(--arg-cat); }

.cat-card .purpose {
  font-size: 1.08rem;
  margin-bottom: 1rem;
  max-width: var(--max-text);
}

.cat-card ul {
  margin: 0 0 1.1rem 0;
  padding-left: 1.2rem;
  max-width: var(--max-text);
}

.cat-card li { margin-bottom: 0.3rem; }

.example-box {
  background: var(--paper);
  border-radius: 7px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: var(--max-text);
}

.example-box strong { color: var(--ink); }

.note-block {
  background: var(--gold-tint);
  border: 1px solid #E8D6A8;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  max-width: var(--max-text);
  margin-top: 2rem;
}

.note-block .label {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.35rem;
}

/* Flowchart */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2.5rem 0;
}

.flow-node {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 1rem 1.6rem;
  text-align: center;
  font-weight: 600;
  max-width: 420px;
}

.flow-arrow {
  width: 2px;
  height: 2rem;
  background: var(--muted);
  position: relative;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--muted);
}

.flow-branches {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-outcome {
  border-radius: 8px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: #fff;
  min-width: 160px;
  text-align: center;
}

.flow-outcome.background { background: var(--bg-cat); }
.flow-outcome.evidence { background: var(--ev-cat); }
.flow-outcome.argument { background: var(--arg-cat); }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .nav { width: 100%; height: auto; position: relative; padding: 1.2rem 1.5rem; }
  .main { padding: 2rem 1.3rem 4rem 1.3rem; }
  h1 { font-size: 2rem; }
}
