* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f8fb;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: #111827;
  color: #ffffff;
  padding: 18px 0;
}

.site-header h1,
.site-footer p {
  margin: 0;
}

.subtitle {
  margin-top: 6px;
  color: #cbd5e1;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 0 40px;
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 8px 0;
}

.nav-list a,
a {
  color: #1d4ed8;
  text-decoration: none;
}

.nav-list a:hover,
a:hover {
  text-decoration: underline;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.search-box {
  margin-top: 18px;
}

.search-box input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.docs-table th,
.docs-table td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: #f3f4f6;
}

.hidden-row {
  display: none;
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}
.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}
.content section h3,
.content section h4 {
  margin-top: 0;
}
.top-nav {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-nav a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
}

.top-nav a:hover {
  text-decoration: underline;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-badges {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.badge-global {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-tenant {
  background: #dcfce7;
  color: #166534;
}

.badge-project {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-immutable {
  background: #fee2e2;
  color: #991b1b;
}

.badge-proposed {
  background: #fef3c7;
  color: #92400e;
}

.badge-reviewed {
  background: #e0f2fe;
  color: #075985;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.concept-card {
  display: block;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.concept-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.concept-card h3 {
  margin: 0 0 8px;
  color: #111827;
}

.concept-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.search-highlight {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 6px;
}

.section-hidden {
  display: none;
}

@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    gap: 12px;
  }
}


