body.page-boundproof-agent-docs {
  background:
    linear-gradient(180deg, #f8f6ef 0%, #f3efe4 42%, #f8f6ef 100%);
  color: #171512;
}

body.page-boundproof-agent-docs::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 22, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
}

.ba-doc-hero {
  position: relative;
  isolation: isolate;
  padding: 86px 0 70px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 19, 15, 0.96) 0%, rgba(40, 35, 28, 0.94) 48%, rgba(111, 91, 51, 0.9) 100%);
  border-bottom: 1px solid rgba(22, 22, 22, 0.16);
  color: #fffaf0;
}

.ba-doc-hero::before,
.ba-doc-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

.ba-doc-hero::before {
  width: 780px;
  height: 780px;
  right: -220px;
  top: -300px;
  border: 1px solid rgba(240, 218, 160, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 90px rgba(255, 255, 255, 0.025), inset 0 0 0 180px rgba(255, 255, 255, 0.018);
}

.ba-doc-hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #c9ab62 0 80px, #171512 80px 104px, #f6efe0 104px 126px, #171512 126px 150px);
  opacity: 0.95;
}

.ba-doc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.ba-doc-hero .eyebrow,
.ba-doc-section .eyebrow {
  color: #8b6d2f;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.ba-doc-hero .eyebrow {
  color: #ebd28d;
}

.ba-doc-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.4rem, 4.8vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: #fffaf0;
}

.ba-doc-hero .lead {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.76;
}

.ba-doc-hero .btn-primary {
  background: #f4d77f;
  color: #171512;
  border-color: #f4d77f;
}

.ba-doc-hero .btn-ghost {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.ba-doc-panel {
  position: relative;
  background: #11100e;
  color: #f4f1ea;
  border: 1px solid rgba(244, 215, 127, 0.2);
  border-radius: 18px;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.ba-doc-panel::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #f4d77f 0%, #8f7236 42%, #f8f0da 100%);
}

.ba-doc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e8cf88;
  background: rgba(255, 255, 255, 0.035);
}

.ba-doc-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f4d77f;
  box-shadow: 16px 0 0 rgba(244, 215, 127, 0.45), 32px 0 0 rgba(244, 215, 127, 0.22);
}

.ba-doc-panel pre {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 500 0.9rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.breadcrumbs-wrap {
  margin-top: 26px;
}

.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(22, 22, 22, 0.045);
}

.breadcrumbs li {
  font-size: 0.86rem;
  color: #5d5549;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(22, 22, 22, 0.32);
}

.breadcrumbs a {
  color: #2d2923;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ba-doc-section {
  padding: 66px 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.1);
}

.ba-doc-section h2 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(1.85rem, 3vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: 0;
  color: #15120e;
}

.ba-doc-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.66fr) minmax(0, 1fr);
  gap: 42px;
}

.ba-doc-copy {
  padding-left: 28px;
  border-left: 4px solid #c9ab62;
}

.ba-doc-copy p {
  margin: 0 0 16px;
  color: #403a31;
  font-size: 1.05rem;
  line-height: 1.78;
}

.ba-doc-steps,
.ba-doc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ba-doc-steps article,
.ba-doc-cards article,
.ba-doc-faq details {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(22, 22, 22, 0.11);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(22, 22, 22, 0.065);
  overflow: hidden;
}

.ba-doc-steps article::after,
.ba-doc-cards article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #171512, #c9ab62 62%, #f3e3b1);
}

.ba-doc-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #171512;
  color: #f4d77f;
  font-size: 0.84rem;
  font-weight: 900;
}

.ba-doc-steps h3,
.ba-doc-cards h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: #15120e;
}

.ba-doc-steps p,
.ba-doc-cards p,
.ba-doc-faq p {
  margin: 0;
  color: #494237;
  line-height: 1.68;
}

.ba-doc-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 18px;
  box-shadow: 0 22px 56px rgba(22, 22, 22, 0.075);
}

.ba-doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ba-doc-table th,
.ba-doc-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(22, 22, 22, 0.1);
  vertical-align: top;
}

.ba-doc-table th {
  position: sticky;
  top: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #f8f0da;
  background: #171512;
}

.ba-doc-table tr:nth-child(even) td {
  background: #fbf8ef;
}

.ba-doc-table td {
  color: #302b24;
}

.ba-doc-table code {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 8px;
  background: #f1eadb;
  color: #171512;
  font-size: 0.86rem;
}

.ba-doc-code-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.ba-doc-code-grid > div:first-child {
  position: sticky;
  top: 96px;
}

.ba-doc-faq details + details {
  margin-top: 14px;
}

.ba-doc-faq summary {
  cursor: pointer;
  font-weight: 850;
  color: #15120e;
  list-style-position: outside;
}

.ba-doc-faq details[open] {
  border-color: rgba(139, 109, 47, 0.36);
}

.ba-doc-faq details p {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .ba-doc-hero-grid,
  .ba-doc-summary,
  .ba-doc-code-grid {
    grid-template-columns: 1fr;
  }

  .ba-doc-code-grid > div:first-child {
    position: static;
  }

  .ba-doc-steps,
  .ba-doc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ba-doc-hero {
    padding: 50px 0 46px;
  }

  .ba-doc-hero h1 {
    font-size: 2.34rem;
  }

  .ba-doc-section {
    padding: 42px 0;
  }

  .ba-doc-steps,
  .ba-doc-cards {
    grid-template-columns: 1fr;
  }

  .ba-doc-copy {
    padding-left: 18px;
  }

  .ba-doc-panel pre {
    padding: 18px;
    font-size: 0.82rem;
  }

  .breadcrumbs {
    border-radius: 14px;
  }
}
