/* Documentation (/docs): module bar, help center home, module and article pages. */

/* The site stylesheet sets overflow-x: hidden on body, which stops position: sticky
   from working. clip hides sideways overflow the same way without that side effect. */
body {
  overflow-x: clip;
  overflow-y: visible;
}

/* ---------- Module bar: switch between modules ---------- */
.docs-modulebar {
  position: sticky;
  top: 60px;
  z-index: 50;
  margin-top: 60px; /* clears the fixed site header */
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
  box-shadow: 0 2px 8px rgba(33, 39, 65, 0.04);
}
.docs-modulebar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.docs-modulebar-home {
  flex: 0 0 auto;
  padding: 14px 14px 14px 0;
  border-right: 1px solid #e3e8ee;
  font-weight: 700;
  font-size: 15px;
  color: #212741;
  text-decoration: none;
  white-space: nowrap;
}
.docs-modulebar-home:hover,
.docs-modulebar-home.active {
  color: #DD5612;
}
.docs-modulebar-list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.docs-modulebar-list::-webkit-scrollbar {
  display: none;
}
.docs-modulebar-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 9px 12px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #45506a;
  text-decoration: none;
  white-space: nowrap;
}
.docs-modulebar-list a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.docs-modulebar-list a:hover {
  color: #212741;
  background: #f6f8fb;
}
.docs-modulebar-list a.active {
  color: #212741;
  font-weight: 600;
  border-bottom-color: #DD5612;
}

/* ---------- Search ---------- */
.docs-search {
  position: relative;
}
.docs-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  font-size: 15px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2367728a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
}
.docs-search input:focus {
  outline: none;
  border-color: #1299DD;
  box-shadow: 0 0 0 3px rgba(18, 153, 221, 0.18);
}
.docs-search-large input {
  padding: 16px 18px 16px 48px;
  font-size: 17px;
  border-radius: 10px;
  background-position: 18px center;
  box-shadow: 0 8px 24px rgba(33, 39, 65, 0.08);
}
.docs-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(33, 39, 65, 0.14);
  text-align: left;
}
.docs-search-results a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f6;
  color: #45506a;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}
.docs-search-results a:last-child {
  border-bottom: 0;
}
.docs-search-results a:hover,
.docs-search-results a:focus {
  background: #f6f8fb;
}
.docs-search-results strong {
  display: block;
  color: #212741;
  font-size: 15px;
}
.docs-search-module {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #DD5612;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.docs-search-empty {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  color: #67728a;
}

/* ---------- Docs home ---------- */
.docs-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #eef6fc 0%, #fff 100%);
  text-align: center;
}
.docs-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.docs-hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 12px;
}
.docs-hero p {
  font-size: 18px;
  color: #45506a;
  margin-bottom: 28px;
}
.docs-modules {
  padding: 24px 0 40px;
}
.docs-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 22px;
}
.docs-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.docs-module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.docs-module-card:hover {
  border-color: #b9dcf2;
  box-shadow: 0 10px 28px rgba(18, 153, 221, 0.14);
  transform: translateY(-2px);
  color: inherit;
}
.docs-module-card img {
  width: 60px;
  height: 60px;
  padding: 13px; /* every icon sits in the same tile, whatever its shape */
  border-radius: 14px;
  background: #f3f6fa;
  object-fit: contain;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.docs-module-card:hover img {
  background: #e8f4fc;
}
.docs-module-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 6px;
}
.docs-module-card p {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #5a6580;
  margin-bottom: 16px;
}
.docs-module-card.is-soon img {
  opacity: 0.7;
}
.docs-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f4fc;
  color: #0b6fa4;
  font-size: 12px;
  font-weight: 600;
}
.docs-badge-soon {
  background: #f1f3f7;
  color: #67728a;
}

/* ---------- Module and article pages ---------- */
.docs-body {
  padding-top: 32px;
  padding-bottom: 24px;
}
.docs-columns {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: start;
}
.docs-columns-two {
  grid-template-columns: 240px minmax(0, 1fr);
}
.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 132px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}
.docs-sidebar .docs-search {
  margin-bottom: 18px;
}
.docs-nav summary {
  display: none;
}
.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #45506a;
  text-decoration: none;
}
.docs-nav a:hover {
  background: #f6f8fb;
  color: #212741;
}
.docs-nav a.active {
  background: #e8f4fc;
  color: #0b6fa4;
  font-weight: 600;
}
.docs-nav-overview {
  margin-bottom: 6px;
}
.docs-nav-section {
  margin: 14px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #8a93a8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.docs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-module-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e3e8ee;
}
.docs-module-head img {
  width: 68px;
  height: 68px;
  padding: 14px;
  border-radius: 16px;
  background: #f3f6fa;
  object-fit: contain;
}
.docs-module-head h1 {
  font-size: 34px;
  font-weight: 700;
  color: #212741;
  margin: 0 0 4px;
}
.docs-module-head p {
  margin: 0;
  color: #5a6580;
}
.docs-group-title {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #212741;
}
.docs-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.docs-topic-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.docs-topic-card:hover {
  border-color: #b9dcf2;
  box-shadow: 0 6px 18px rgba(18, 153, 221, 0.12);
  color: inherit;
}
.docs-topic-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #0b6fa4;
  margin-bottom: 6px;
}
.docs-topic-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5a6580;
}

/* Coming soon */
.docs-soon {
  max-width: 560px;
  margin: 40px auto 20px;
  text-align: center;
}
.docs-soon img {
  width: 84px;
  height: 84px;
  padding: 18px;
  border-radius: 20px;
  background: #f3f6fa;
  object-fit: contain;
  margin-bottom: 18px;
}
.docs-soon h1 {
  font-size: 30px;
  font-weight: 700;
  color: #212741;
}
.docs-soon p {
  color: #5a6580;
  margin-bottom: 24px;
}
.docs-soon-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Article ---------- */
.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #8a93a8;
  margin-bottom: 12px;
}
.docs-breadcrumb a {
  color: #0b6fa4;
  text-decoration: none;
}
.docs-breadcrumb a:hover {
  text-decoration: underline;
}
.docs-article h1 {
  font-size: 36px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 12px;
}
.docs-path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f6f8fb;
  font-size: 14px;
  color: #212741;
  font-weight: 500;
}
.docs-path span {
  font-size: 12px;
  font-weight: 600;
  color: #8a93a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.docs-content {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #33405c;
}
.docs-content h2 {
  margin: 40px 0 14px;
  padding-top: 8px;
  font-size: 25px;
  font-weight: 700;
  color: #212741;
  scroll-margin-top: 130px;
}
.docs-content h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: #212741;
  scroll-margin-top: 130px;
}
.docs-content p,
.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
}
.docs-content ul,
.docs-content ol {
  padding-left: 24px;
}
.docs-content li {
  margin-bottom: 6px;
  list-style: inherit; /* the site stylesheet removes list markers */
}
.docs-content li::marker {
  color: #8a93a8;
}
.docs-content ol > li::marker {
  color: #0b6fa4;
  font-weight: 600;
}
.docs-content ol {
  list-style: decimal;
}
.docs-content ul {
  list-style: disc;
}
.docs-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(33, 39, 65, 0.08);
}
.docs-content a {
  color: #0b6fa4;
}
.docs-table {
  margin: 18px 0 22px;
  overflow-x: auto;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
}
.docs-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.docs-table th,
.docs-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3e8ee;
}
.docs-table tr:last-child td {
  border-bottom: 0;
}
.docs-table th {
  background: #f6f8fb;
  font-weight: 600;
  color: #212741;
  white-space: nowrap;
}

/* Note / Tip / Success / Warning boxes */
.docs-callout {
  margin: 18px 0 22px;
  padding: 14px 18px;
  border-left: 4px solid #1299DD;
  border-radius: 6px;
  background: #eef7fd;
  font-size: 15px;
}
.docs-callout strong {
  color: #212741;
}
.docs-callout ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.docs-callout li:last-child {
  margin-bottom: 0;
}
.docs-callout-tip {
  border-left-color: #2e9e5b;
  background: #eef8f2;
}
.docs-callout-success {
  border-left-color: #2e9e5b;
  background: #f2faf5;
}
.docs-callout-warning,
.docs-callout-important {
  border-left-color: #DD5612;
  background: #fdf3ee;
}

/* Previous / next */
.docs-pager {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e3e8ee;
}
.docs-pager a {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  font-weight: 600;
  color: #0b6fa4;
  text-decoration: none;
}
.docs-pager a:hover {
  border-color: #b9dcf2;
  background: #f6f8fb;
}
.docs-pager span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #8a93a8;
}
.docs-pager-next {
  text-align: right;
  margin-left: auto;
}

/* On this page */
.docs-toc-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #8a93a8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.docs-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid #e3e8ee;
}
.docs-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  color: #5a6580;
  text-decoration: none;
}
.docs-toc-h3 a {
  padding-left: 24px;
}
.docs-toc a:hover {
  color: #212741;
}
.docs-toc a.active {
  border-left-color: #DD5612;
  color: #212741;
  font-weight: 600;
}

/* ---------- Help strip ---------- */
.docs-help {
  padding: 40px 0 64px;
}
.docs-help-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid #e3e8ee;
}
.docs-help-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 4px;
}
.docs-help-box p {
  margin: 0;
  color: #5a6580;
}
.docs-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .docs-columns {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
  .docs-module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 991px) {
  /* The site header is 45px tall below 992px. */
  .docs-modulebar {
    top: 45px;
    margin-top: 45px;
  }
  .docs-columns,
  .docs-columns-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .docs-nav {
    border: 1px solid #e3e8ee;
    border-radius: 10px;
  }
  .docs-nav summary {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    color: #212741;
    cursor: pointer;
  }
  .docs-nav nav {
    padding: 0 8px 10px;
  }
  .docs-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-help-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .docs-modulebar-home {
    display: none;
  }
  .docs-table th,
  .docs-table td {
    min-width: 140px;
  }
  .docs-modulebar-list a {
    padding: 12px 10px 10px;
    font-size: 13px;
  }
  .docs-hero {
    padding: 40px 0 36px;
  }
  .docs-hero h1 {
    font-size: 32px;
  }
  .docs-hero p {
    font-size: 16px;
  }
  .docs-module-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .docs-module-card {
    padding: 16px;
  }
  .docs-module-card img {
    width: 48px;
    height: 48px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .docs-module-card h3 {
    font-size: 16px;
  }
  .docs-module-card p {
    display: none;
  }
  .docs-topic-grid {
    grid-template-columns: 1fr;
  }
  .docs-module-head h1,
  .docs-article h1 {
    font-size: 28px;
  }
  .docs-content h2 {
    font-size: 22px;
  }
  .docs-pager {
    flex-direction: column;
  }
  .docs-help-box {
    padding: 22px;
  }
}
