/* page.css — components used by the dedicated pages.
   Built on the tokens style.css already defines, so the existing light/dark
   toggle drives these too and there is no second palette to keep in sync. */

.doc-main {
  padding: 140px 0 100px;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 28px;
  color: var(--text-secondary, #8b93a7);
}
.breadcrumb a { color: var(--accent-cyan, #22d3ee); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { width: 14px; height: 14px; opacity: 0.6; }

.doc-header { max-width: 820px; margin-bottom: 48px; }
.doc-header .section-title { text-align: left; }
.doc-header .section-desc { text-align: left; margin-left: 0; }

.nav-links a.active {
  color: var(--accent-cyan, #22d3ee);
  font-weight: 600;
}

.doc-card {
  padding: 32px 34px;
  margin-bottom: 24px;
  max-width: 900px;
}
.doc-card .pillar-title {
  margin: 18px 0 14px;
  font-size: 1.45rem;
}
.doc-card p {
  color: var(--text-secondary, #8b93a7);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 1rem;
}
.doc-card p:last-child { margin-bottom: 0; }
.doc-card a { color: var(--accent-cyan, #22d3ee); }
.doc-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(127, 140, 170, 0.14);
}

.doc-list { list-style: none; padding: 0; margin: 18px 0 0; }
.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-secondary, #8b93a7);
  line-height: 1.6;
}
.doc-list li i {
  width: 17px; height: 17px;
  color: var(--accent-green, #34d399);
  flex-shrink: 0;
  margin-top: 4px;
}

.table-scroll { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.doc-table th, .doc-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(127, 140, 170, 0.18);
  vertical-align: top;
}
.doc-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan, #22d3ee);
  white-space: nowrap;
}
.doc-table td { color: var(--text-secondary, #8b93a7); line-height: 1.6; }
.doc-table tr:last-child td { border-bottom: none; }

.doc-pre {
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid rgba(127, 140, 170, 0.2);
  border-radius: 12px;
  padding: 20px 22px;
  overflow-x: auto;
  margin-top: 16px;
}
[data-theme="light"] .doc-pre { background: rgba(15, 23, 42, 0.05); }
.doc-pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.75;
  background: none;
  padding: 0;
  color: var(--text-primary, #e6ebf5);
  white-space: pre;
}

.doc-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 900px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.07);
}
.doc-note i {
  width: 20px; height: 20px;
  color: var(--accent-cyan, #22d3ee);
  flex-shrink: 0;
  margin-top: 2px;
}
.doc-note p {
  margin: 0;
  color: var(--text-secondary, #8b93a7);
  line-height: 1.7;
  font-size: 0.96rem;
}
.doc-note a { color: var(--accent-cyan, #22d3ee); }

@media (max-width: 768px) {
  .doc-main { padding: 110px 0 70px; }
  .doc-card { padding: 24px 22px; }
  .doc-header { margin-bottom: 34px; }
}
