/* Monad Atlas Docs */

.docs {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
}

.docs-logo {
  height: 32px;
  width: auto;
}

.docs-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.docs-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.docs-nav a:hover {
  color: var(--fg);
}

.docs-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.docs-main h1 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.docs-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.docs-section {
  margin-bottom: 3rem;
}

.docs-section h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.docs-section h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.docs-section h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
}

.docs-section h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 1.25rem 0 0.5rem;
}

.docs-section p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.docs-section ul {
  margin: 0.75rem 0 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.docs-section li {
  margin-bottom: 0.35rem;
}

.docs-section li strong {
  font-weight: 500;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.docs-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.docs-card-highlight {
  border-color: var(--fg);
  background: #fafafa;
}

.docs-card h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
}

.docs-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.docs-card ul {
  margin: 0;
  font-size: 0.8125rem;
}

.docs-card code {
  font-size: 0.75rem;
}

.docs-endpoints {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.docs-endpoint {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.docs-endpoint-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 5rem;
}

.docs-endpoint code {
  font-size: 0.875rem;
  word-break: break-all;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  font-weight: 500;
  color: var(--muted);
}

.docs-table code {
  font-size: 0.8125rem;
}

.docs-note {
  font-size: 0.8125rem !important;
  color: var(--muted) !important;
  margin-top: 0.5rem !important;
}

.docs-badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--border);
  padding: 0.15em 0.5em;
  border-radius: 2px;
}

.docs-code {
  background: #f5f5f5;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0.75rem 0;
}

.docs-code code {
  background: none;
  padding: 0;
}

.docs-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .docs-nav {
    gap: 1rem;
  }

  .docs-main {
    padding: 1.5rem 1rem;
  }

  .docs-code {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }
}
