@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --au-canvas: #f7f4ee;
  --au-ink: #132238;
  --au-muted: #5a6578;
  --au-accent: #0d9488;
  --au-accent-deep: #0f766e;
  --au-warm: #ea580c;
  --au-panel: rgba(255, 255, 255, 0.82);
  --au-border: rgba(226, 232, 240, 0.88);
  --au-shadow: 0 24px 58px -34px rgba(15, 23, 42, 0.35);
}

html {
  font-size: 16px !important;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-height: 100vh;
  color: var(--au-ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--au-canvas);
}

body,
p,
li,
table,
.toc,
.sidefilter,
.navbar,
.form-control,
.breadcrumb,
.btn {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

code,
pre,
.hljs,
.lang-csharp,
.lang-xml,
.lang-js,
.lang-json {
  font-family: "IBM Plex Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

a {
  color: var(--au-accent-deep);
}

a:hover,
a:focus {
  color: #115e59;
}

/* ===== HEADER ===== */

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
}

#autocollapse,
.subnav {
  border: 0 !important;
  background: rgba(247, 244, 238, 0.84) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#autocollapse {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: none;
}

#autocollapse .container,
.subnav .container,
#wrapper > .container.body-content,
#wrapper > div[role="main"].container.body-content,
footer .footer .container {
  width: min(100% - 2rem, 80rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

#autocollapse .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: auto;
  padding: 1.25rem 0;
}

#autocollapse .navbar-header {
  float: none;
  display: flex;
  align-items: center;
  margin: 0;
}

#autocollapse .navbar-brand {
  float: none;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Hide DocFX toggle button */
#autocollapse .navbar-toggle {
  display: none !important;
}

/* Brand — matches Marketing.master */
.au-docs-brand {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  color: var(--au-ink) !important;
  text-decoration: none !important;
}

.au-docs-brand:hover {
  text-decoration: none !important;
}

.au-docs-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1.5rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.au-docs-brand-mark img {
  display: none;
}

.au-docs-brand-name {
  display: block;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.au-docs-brand-sub {
  display: block;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links — pill style matching marketing site */
#autocollapse .navbar-collapse,
#autocollapse.collapsed .navbar-collapse.collapse {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.au-docs-site-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.au-docs-site-links a {
  border-radius: 999px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none !important;
  transition: background-color 180ms ease, color 180ms ease;
}

.au-docs-site-links a:hover,
.au-docs-site-links a:focus {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.au-docs-site-links a.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 600;
}

/* Right-side actions */
.au-docs-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.au-docs-actions .au-support-link {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 180ms ease;
}

.au-docs-actions .au-support-link:hover {
  color: #0f172a;
}

.au-docs-actions .au-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0f172a;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 180ms ease;
}

.au-docs-actions .au-download-btn:hover {
  background: #1e293b;
}

/* Search */
#search.au-docs-search {
  display: block;
  float: none !important;
  margin: 0;
}

#search.au-docs-search .form-group {
  margin: 0;
}

#search.au-docs-search .form-control {
  width: 14rem;
  height: auto;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  color: #0f172a;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
}

#search.au-docs-search .form-control:focus {
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
  background: #fff;
}

/* ===== SUBNAV / BREADCRUMB ===== */

.subnav {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
}

#breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.au-docs-shortcuts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.au-docs-shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  text-decoration: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.au-docs-shortcuts a:hover,
.au-docs-shortcuts a:focus {
  color: #0f172a;
  border-color: rgba(13, 148, 136, 0.35);
  background: #fff;
}

.au-docs-shortcuts a.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.breadcrumb {
  margin: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem !important;
}

.breadcrumb > li + li::before {
  color: #94a3b8;
}

/* ===== SIDEBAR TOC — hidden ===== */

.sidetoggle,
.sidenav,
.sidefilter,
.sidetoc,
#sidetoc {
  display: none !important;
}

/* ===== MAIN CONTENT ===== */

.article {
  margin-top: 9rem !important;
}

.content.wrap {
  border: 1px solid var(--au-border);
  border-radius: 2rem;
  background: var(--au-panel);
  box-shadow: var(--au-shadow);
  padding: 2.5rem 2.5rem;
}

.content.wrap h1,
.content.wrap h2,
.content.wrap h3,
.content.wrap h4,
.content.wrap h5 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content.wrap h1 {
  font-size: 2.25rem;
  margin-top: 0;
  line-height: 1.2;
}

.content.wrap h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.content.wrap p,
.content.wrap li,
.content.wrap td,
.content.wrap th {
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

.content.wrap a {
  color: var(--au-accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.content.wrap a:hover {
  color: #115e59;
  text-decoration: underline;
}

.content.wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--au-border);
  border-radius: 1.25rem;
  overflow: hidden;
  margin: 1rem 0;
}

.content.wrap table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

.content.wrap table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.7);
  font-size: 0.9375rem;
}

.content.wrap table tr:last-child td {
  border-bottom: 0;
}

.content.wrap pre {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.25rem;
  background: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  padding: 1.15rem 1.25rem;
}

.content.wrap :not(pre) > code {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-radius: 0.375rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.875em;
}

.content.wrap ul {
  padding-left: 1.25rem;
}

.content.wrap ul li {
  margin-bottom: 0.25rem;
}

/* ===== SIDEBAR AFFIX (In this article) ===== */

.sideaffix {
  position: sticky;
  top: 9rem;
  margin-top: 0;
  bottom: auto;
}

.sideaffix > div,
.bs-docs-sidebar {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.2);
  padding: 1rem 1.25rem;
  min-width: 10rem;
}

.bs-docs-sidebar h5 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.bs-docs-sidebar .nav > li > a {
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0;
  text-decoration: none;
}

.bs-docs-sidebar .nav > li > a:hover,
.bs-docs-sidebar .nav > li.active > a {
  color: var(--au-accent-deep);
}

/* ===== FOOTER ===== */

footer .grad-bottom {
  display: none;
}

footer .footer {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.70);
}

footer .footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 1.25rem 0;
}

footer .footer a {
  color: var(--au-accent-deep);
  font-weight: 600;
  text-decoration: none;
}

footer .footer a:hover,
footer .footer a:focus {
  color: #115e59;
  text-decoration: none;
}

/* ===== SEARCH RESULTS ===== */

#search-results {
  margin-top: 9rem;
}

#search-results .sr-items,
#search-results #pagination {
  border: 1px solid var(--au-border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--au-shadow);
  padding: 1rem 1.2rem;
}

/* ===== MOBILE ===== */

@media (max-width: 991px) {
  header {
    position: static;
  }

  #autocollapse .container,
  .subnav .container,
  #wrapper > .container.body-content,
  #wrapper > div[role="main"].container.body-content,
  footer .footer .container {
    width: calc(100% - 1.5rem);
  }

  #autocollapse .container {
    flex-wrap: wrap;
    min-height: auto;
    padding: 1rem 0;
  }

  #autocollapse .navbar-collapse {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .au-docs-site-links {
    flex-wrap: wrap;
  }

  .au-docs-shortcuts {
    flex-wrap: wrap;
  }

  .au-docs-actions {
    flex-wrap: wrap;
  }

  #search.au-docs-search .form-control {
    width: 100%;
  }

  .article,
  #search-results {
    margin-top: 1.5rem !important;
  }

  .content.wrap {
    padding: 1.5rem 1.25rem;
    border-radius: 1.5rem;
  }

  .content.wrap h1 {
    font-size: 1.75rem;
  }

  .sidefilter,
  .sidetoc,
  .sideaffix {
    position: static;
    top: auto;
    max-height: none;
    width: 100%;
  }

  footer .footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
