.docs-page {
  background: #f5f7fc;
  color: #0f1a33;
}

.docs-page .container {
  width: min(1580px, 98vw);
  max-width: none;
  margin: 0 auto;
  padding: 0 10px;
}

.docs-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #d9e0ee;
  background: rgba(248, 250, 255, 0.96);
}

.docs-page .topbar-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 18px;
}

.docs-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.docs-page .brand-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #2e5af3, #1f43c6);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.docs-page .topnav {
  gap: 18px;
  align-items: center;
}

.docs-page .topnav a {
  font-size: 0.94rem;
  color: #24344f;
}

.docs-top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.docs-top-actions input {
  width: 330px;
  border: 1px solid #d4ddef;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.docs-page .btn-top-cta {
  border-radius: 9px;
  padding: 10px 16px;
  background: linear-gradient(140deg, #2355f5, #1d43c6);
  color: #fff;
}

.docs-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0 28px;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.docs-sidebar {
  padding: 14px;
}

.sidebar-group + .sidebar-group {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e3e9f4;
}

.sidebar-group h3 {
  margin: 0 0 9px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #62738f;
}

.sidebar-link {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: #243653;
  font-size: 0.93rem;
  font-weight: 600;
}

.sidebar-link:hover {
  background: #f2f6ff;
}

.sidebar-link.active {
  background: #eaf0ff;
  color: #1d46cc;
}

.docs-content {
  display: grid;
  gap: 16px;
}

.docs-breadcrumb {
  color: #5d6f8c;
  font-size: 0.92rem;
}

.info-block {
  border: 1px solid #dce3f1;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.info-block h1,
.info-block h2 {
  margin: 0 0 10px;
}

.info-block ul {
  margin: 0;
  padding-left: 18px;
}

.api-card {
  border: 1px solid #dce3f1;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  scroll-margin-top: 96px;
}

.api-card + .api-card {
  margin-top: 12px;
}

.api-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.method-pill {
  min-width: 58px;
  text-align: center;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.method-pill.get {
  color: #13455a;
  background: #def4ff;
  border: 1px solid #bde8ff;
}

.method-pill.post {
  color: #0f6335;
  background: #e7f8ee;
  border: 1px solid #beebcd;
}

.method-pill.delete {
  color: #8b2828;
  background: #fdecec;
  border: 1px solid #f1c6c6;
}

.method-pill.patch {
  color: #6c4a0c;
  background: #fff3de;
  border: 1px solid #ffdeb2;
}

.api-path {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.95rem;
  color: #13223d;
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 16px;
  align-items: start;
}

.api-main h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #61728f;
}

.api-main p {
  margin: 0 0 12px;
  color: #394c6b;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e7f4;
  border-radius: 10px;
  overflow: hidden;
}

.param-table th,
.param-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #e9eef8;
  font-size: 0.86rem;
}

.param-table th {
  background: #f7faff;
  color: #4e6182;
  font-weight: 700;
}

.param-table td code {
  background: #eef3ff;
  color: #1f45c8;
}

.code-panel {
  border: 1px solid #1d2c53;
  border-radius: 12px;
  background: #08132d;
  overflow: hidden;
  align-self: start;
}

.code-panel-head {
  padding: 8px 10px;
  border-bottom: 1px solid #1f315d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-panel-head span {
  color: #b8c6e9;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-snippet-btn {
  border: 1px solid #36518d;
  background: #132753;
  color: #e6eeff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.code-actions {
  display: inline-flex;
  gap: 6px;
}

.try-endpoint-btn {
  border: 1px solid #335f9f;
  background: #173160;
  color: #cde0ff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.code-panel pre {
  margin: 0;
  padding: 12px;
  min-height: 140px;
  max-height: 300px;
  overflow: auto;
}

.artifact-block {
  display: grid;
  gap: 14px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.artifact-card {
  border: 1px solid #dce3f1;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.artifact-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.artifact-card p {
  margin: 0 0 12px;
  color: #475a78;
  font-size: 0.9rem;
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artifact-meta {
  margin: 0;
  color: #5d6f8c;
  font-size: 0.84rem;
}

.power-automate-steps {
  margin: 0;
  padding-left: 18px;
  color: #394c6b;
}

.power-automate-steps li + li {
  margin-top: 6px;
}

.code-panel code {
  background: transparent;
  color: #dce7ff;
  font-size: 0.8rem;
  line-height: 1.55;
}

.cta-block {
  margin-top: 8px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(145deg, #07153a, #0c204f);
  border: 1px solid #1f376f;
}

.cta-block h2 {
  margin: 0 0 8px;
  color: #f0f5ff;
}

.cta-block p {
  margin: 0 0 12px;
  color: #c8d4f6;
}

.cta-actions {
  display: inline-flex;
  gap: 10px;
}

.btn-light {
  border: 1px solid #d2daeb;
  background: #fff;
  color: #0f1b32;
}

.online-tester {
  padding: 16px;
  border: 1px solid #d5deef;
  border-radius: 12px;
  background: #fff;
}

.tester-badge {
  border: 1px solid #d9e4f8;
  background: #f4f8ff;
  color: #234a9c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.tester-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.tester-form {
  display: grid;
  gap: 10px;
}

.tester-help {
  margin: -2px 0 0;
  color: #4a5f82;
  font-size: 0.83rem;
}

.tester-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tester-row-compact {
  grid-template-columns: 140px 1fr;
}

.tester-result {
  border: 1px solid #d6dff0;
  border-radius: 10px;
  background: #f7faff;
  padding: 10px;
}

.tester-result p {
  margin: 0 0 8px;
  color: #26406a;
  font-weight: 600;
}

.tester-result .code-card {
  margin: 0;
  border: 1px solid #cdd8ed;
  border-radius: 10px;
  background: #fff;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
}

.tester-result .code-card code {
  background: transparent;
  color: #203a64;
  font-size: 0.8rem;
}

#testerDownloadBtn {
  margin-top: 10px;
}

.docs-page .footer {
  margin-top: 12px;
  border-top: 1px solid #dbe3f1;
  padding: 18px 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.docs-page .footer-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.docs-page .footer-links {
  justify-self: center;
  display: inline-flex;
  gap: 14px;
}

.docs-page .footer-links a {
  text-decoration: none;
  color: #4a5f82;
  font-size: 0.86rem;
}

.docs-page .footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #5a6b88;
}

@media (max-width: 980px) {
  .docs-page .container {
    width: min(1120px, 92vw);
    padding: 0;
  }

  .docs-page .topbar-inner {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .docs-top-actions {
    justify-self: stretch;
  }

  .docs-top-actions input {
    width: 100%;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .api-grid {
    grid-template-columns: 1fr;
  }

  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .tester-grid {
    grid-template-columns: 1fr;
  }

  .tester-row {
    grid-template-columns: 1fr;
  }

  .docs-page .footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .docs-page .footer-links {
    justify-self: start;
    flex-wrap: wrap;
  }
}
