/* XRAY Task Inbox — Documentation Styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #f7f7f8;
  line-height: 1.6;
}

/* --- Nav --- */

.docs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #1a1a2e;
  color: #ffffff;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: #b0b0c8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* --- Main --- */

.docs-main {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.docs-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1rem;
  color: #6b6b7b;
  margin-bottom: 2rem;
  line-height: 1.55;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e2e6;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #3d3d50;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b6b7b;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

p {
  margin-bottom: 0.75rem;
}

ul, ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82em;
  background: #f0f0f3;
  padding: 0.15em 0.35em;
  border-radius: 3px;
  color: #4a4a8a;
}

pre {
  background: #1a1a2e;
  color: #e0e0f0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* --- Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

th {
  text-align: left;
  font-weight: 600;
  color: #3d3d50;
  padding: 0.5rem 0.75rem;
  background: #f0f0f3;
  border-bottom: 2px solid #d8d8de;
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e8e8ec;
  vertical-align: top;
}

/* --- Endpoint Blocks --- */

.endpoint {
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.endpoint h3 {
  margin-top: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.method {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.method.get {
  color: #1a7a42;
  background: #e8f5ed;
}

.method.post {
  color: #2e5cb8;
  background: #e8eef8;
}

.method.patch {
  color: #b85c00;
  background: #fff4e6;
}

.method.delete {
  color: #c62828;
  background: #fce4e4;
}

/* --- Responsive --- */

@media (max-width: 600px) {
  .docs-main {
    padding: 0 1rem 2rem;
  }

  .docs-main h1 {
    font-size: 1.4rem;
  }

  pre {
    font-size: 0.72rem;
    padding: 0.75rem 1rem;
  }

  table {
    font-size: 0.78rem;
  }

  th, td {
    padding: 0.4rem 0.5rem;
  }
}
