/* Standalone + in-portal API documentation (light reading surface) */

html.tpp-docs,
body.docs-body {
  background: #f0f2f6;
  color: #334155;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  min-height: 100vh;
  margin: 0;
}

/* Portal shell: do not inherit dark sidebar theme into doc content */
html.tpp-theme .main .docs-page,
html.tpp-theme .main .docs-container,
html.tpp-theme .main-content .docs-page,
html.tpp-theme .main-content .docs-container {
  background: #fff;
  color: #334155;
}

html.tpp-theme .docs-page h1,
html.tpp-theme .docs-page h2,
html.tpp-theme .docs-page h3,
html.tpp-theme .docs-page h4,
html.tpp-theme .docs-container h1,
html.tpp-theme .docs-container h2,
html.tpp-theme .docs-container h3,
html.tpp-theme .docs-container h4,
html.tpp-theme .docs-page .page-header h1,
html.tpp-theme .docs-container .doc-header h1 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
}

html.tpp-theme .docs-page p,
html.tpp-theme .docs-page li,
html.tpp-theme .docs-page td,
html.tpp-theme .docs-page th,
html.tpp-theme .docs-container p,
html.tpp-theme .docs-container li,
html.tpp-theme .docs-container td,
html.tpp-theme .docs-container th {
  color: inherit;
}

html.tpp-theme .docs-page .page-header p,
html.tpp-theme .docs-page .lead,
html.tpp-theme .docs-page .section-description,
html.tpp-theme .docs-container .subtitle {
  color: #64748b !important;
}

.docs-wrapper {
  max-width: var(--content-max, 1280px);
  margin: 0 auto;
  padding: var(--space-8, 2rem) var(--space-4, 1rem);
}

.docs-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: var(--space-6, 1.5rem);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
  color: #334155;
}

.documentation-container {
  max-width: 52rem;
  margin: 0 auto;
  color: #334155;
  line-height: 1.65;
  font-size: 1rem;
}

.documentation-container h1,
.documentation-container h2,
.documentation-container h3 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.documentation-container h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.documentation-container h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.documentation-container h2:first-of-type {
  border-top: none;
  margin-top: 1.25rem;
}

.documentation-container h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.documentation-container p,
.documentation-container li {
  color: #475569;
}

.documentation-container a {
  color: #0d9488;
}

.documentation-container a:hover {
  color: #0f766e;
}

.documentation-container hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

.documentation-container code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.88em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.documentation-container pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #0f172a;
}

.documentation-container pre code {
  background: none;
  border: none;
  padding: 0;
}

.doc-flow {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.doc-flow a {
  color: #0d9488;
  font-weight: 500;
}

.endpoint-table,
.doc-table,
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.endpoint-table th,
.doc-table th,
.docs-content th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
}

.endpoint-table td,
.doc-table td,
.docs-content td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  background: #fff;
  vertical-align: top;
}

.endpoint-table tr:hover td,
.doc-table tbody tr:hover td {
  background: #f8fafc;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  color: #0f172a;
}

.docs-content a {
  color: #0d9488;
}

.docs-content pre,
.docs-content code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* Portal docs: keep light reading surface; override global navy/console styles */
html.tpp-theme .main .docs-container,
html.tpp-theme .main .docs-page,
html.tpp-theme .main-content .docs-container,
html.tpp-theme .main-content .docs-page {
  background: #ffffff;
  color: #334155;
}

html.tpp-theme .docs-container .docs-code-block,
html.tpp-theme .docs-page .docs-code-block {
  background: #0f172a;
  border-color: #334155;
}

html.tpp-theme .docs-container .docs-code-block code,
html.tpp-theme .docs-container .docs-code-block pre,
html.tpp-theme .docs-page .docs-code-block code,
html.tpp-theme .docs-page .docs-code-block pre {
  color: #e2e8f0;
}

html.tpp-theme .docs-container .alert-info,
html.tpp-theme .docs-page .alert-info {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #0d9488;
}

html.tpp-theme .docs-container .alert-info p,
html.tpp-theme .docs-page .alert-info p {
  color: #334155;
}

html.tpp-theme .docs-container .alert-info strong,
html.tpp-theme .docs-page .alert-info strong {
  color: #0f172a;
}

html.tpp-theme .docs-container code:not(.docs-code-block code),
html.tpp-theme .docs-page code:not(.docs-code-block code),
html.tpp-theme .docs-container .code-highlight,
html.tpp-theme .docs-page .code-highlight {
  background: #f1f5f9;
  color: #0f766e;
  border: 1px solid #e2e8f0;
}

html.tpp-theme .docs-container a,
html.tpp-theme .docs-page a {
  color: #0d9488;
}

html.tpp-theme .docs-container a:hover,
html.tpp-theme .docs-page a:hover {
  color: #0f766e;
}

html.tpp-theme .docs-container .bank-details code,
html.tpp-theme .docs-page .bank-details code {
  color: #0f766e;
}

html.tpp-theme .main-content__inner .swagger-portal.docs-page {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.06);
}
