:root {
  --docs-bg: #e9eef3;
  --docs-bg-strong: #ffffff;
  --docs-ink: #1f2d3a;
  --docs-muted: #4c6072;
  --docs-border: rgba(21, 53, 84, 0.16);
  --docs-panel: #ffffff;
  --docs-panel-strong: #ffffff;
  --docs-accent: #046b99;
  --docs-accent-dark: #153554;
  --docs-accent-soft: #e9f2f8;
  --docs-gold: #fdb81e;
  --docs-shadow: 0 8px 24px rgba(17, 39, 60, 0.08);
  --docs-code-bg: #eef3f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.docs-site-body {
  margin: 0;
  min-height: auto;
  font-family: inherit;
  color: var(--docs-ink);
  background: transparent;
  line-height: 1.5;
}

/* Force sharp corners across technical docs page elements. */
.docs-site-body,
.docs-site-body * {
  border-radius: 0 !important;
}

a {
  color: var(--docs-accent);
  text-decoration: underline;
}

a:hover {
  color: var(--docs-accent-dark);
}

.docs-ca-container {
  width: min(1360px, calc(100vw - 2rem));
  margin: 0 auto;
}

.docs-ca-utility {
  background: #f1f4f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #2f465c;
  font-size: 0.88rem;
  padding: 0.45rem 0;
}

.docs-ca-branding {
  background: #ffffff;
  border-bottom: 4px solid var(--docs-gold);
}

.docs-ca-branding-inner {
  padding: 0.9rem 0 0.8rem;
}

.docs-ca-agency,
.docs-ca-site {
  margin: 0;
}

.docs-ca-agency {
  font-size: 0.82rem;
  color: #4d6275;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-ca-site {
  margin-top: 0.2rem;
  font-family: "Public Sans", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #14344f;
}

.docs-shell {
  min-height: auto;
  padding: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.docs-hero {
  padding: 0;
}

.docs-hero-inner {
  width: 100%;
  margin: 0;
  padding: 1rem 1.2rem 1.1rem;
  border: 1px solid #cbd6e3;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: none;
}

.docs-title {
  margin: 0.7rem 0 1rem;
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  max-width: none;
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.docs-title-divider {
  width: calc(100% + 2.4rem);
  height: 1px;
  background: #cbd6e3;
  margin: 0 -1.2rem 1.1rem;
}

.docs-lead {
  margin: 0.95rem 0 0;
  width: 100%;
  max-width: none;
  color: #475569;
  font-size: 0.9rem;
}

.docs-hero-link-row {
  margin: 1rem 0 0;
}

.docs-hero-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.docs-hero-callout {
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-left: 4px solid var(--docs-gold);
  border-radius: 8px;
  background: #fff7db;
}

.docs-hero-callout-text {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
}

.docs-hero-callout-link {
  font-weight: 700;
  text-underline-offset: 0.14em;
}

.docs-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0.08rem 0.32rem;
  border-radius: 0.35rem;
  background: var(--docs-code-bg);
}

.docs-layout {
  width: 100%;
  margin: 0;
  padding: 0;
}

.docs-main {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.docs-sections {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

.docs-loading-card,
.docs-section {
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: var(--docs-panel-strong);
  box-shadow: 0 2px 7px rgba(19, 48, 73, 0.04);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.docs-loading-card {
  padding: 1.1rem;
}

.docs-loading-label,
.docs-loading-text {
  margin: 0;
}

.docs-loading-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-muted);
}

.docs-loading-text {
  margin-top: 0.4rem;
}

.docs-section-header {
  background: #f6fbff;
  width: 100%;
  min-width: 0;
}

.docs-details > summary {
  list-style: none;
}

.docs-details > summary::-webkit-details-marker {
  display: none;
}

.docs-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.15rem 1.2rem;
  border: 0;
  border-bottom: 1px solid rgba(21, 53, 84, 0.1);
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.docs-section-header-copy {
  min-width: 0;
}

.docs-section-label {
  display: block;
  margin: 0;
  color: #577086;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-section-title {
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 700;
}

.docs-section-toggle {
  font-size: 1.45rem;
  font-weight: 700;
}

.docs-section-toggle-icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: transform 140ms ease;
}

.docs-section-toggle-icon::before {
  content: "▾";
  line-height: 1;
  font-size: 1.35rem;
}

.docs-section-toggle[aria-expanded="true"] .docs-section-toggle-icon {
  transform: rotate(180deg);
}

.docs-details[open] .docs-section-toggle-icon {
  transform: rotate(180deg);
}

.docs-section.is-collapsed .docs-section-toggle {
  border-bottom-color: transparent;
}

.docs-section-toggle:hover,
.docs-section-toggle:focus-visible {
  background: transparent;
}

.docs-section-toggle:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .docs-section-toggle-icon {
    transition: none;
  }
}

.docs-section-body {
  padding: 1rem 1.15rem 1.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  color: #334155;
}

.docs-section-body * {
  max-width: 100%;
}

.docs-section-body p,
.docs-section-body li,
.docs-section-body td,
.docs-section-body th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-section-body > :first-child {
  margin-top: 0;
}

.docs-section-body h1 {
  display: none;
}

.docs-section-body h2,
.docs-section-body h3,
.docs-section-body h4 {
  scroll-margin-top: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1.24;
  color: #17344f;
}

.docs-section-body h2 {
  font-family: inherit;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
}

.docs-section-body h3 {
  font-size: 0.98rem;
  color: #0f172a;
  font-weight: 700;
}

.docs-section-body h4 {
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  color: #0f172a;
  font-weight: 700;
}

.docs-section-body p,
.docs-section-body ul,
.docs-section-body ol,
.docs-section-body pre,
.docs-section-body table,
.docs-section-body blockquote {
  margin-top: 0;
  margin-bottom: 1rem;
}

.docs-section-body ul,
.docs-section-body ol {
  padding-left: 1.25rem;
}

.docs-section-body li + li {
  margin-top: 0.32rem;
}

.docs-section-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.91em;
  background: var(--docs-code-bg);
  border-radius: 0.32rem;
  padding: 0.08rem 0.3rem;
}

.docs-section-body pre {
  overflow-x: auto;
  padding: 0.95rem;
  border-radius: 6px;
  background: #12314d;
  color: #f4f8fc;
}

.docs-section-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.docs-section-body blockquote {
  padding: 0.85rem 0.95rem;
  border-left: 4px solid var(--docs-gold);
  background: #fff7e6;
  border-radius: 0 6px 6px 0;
  quotes: none;
  font-size: 0.8rem;
  line-height: 1.4;
}

.docs-section-body blockquote p,
.docs-section-body blockquote li {
  font-size: 0.8rem;
  line-height: 1.4;
}

.docs-section-body blockquote::before,
.docs-section-body blockquote::after,
.docs-section-body blockquote p::before,
.docs-section-body blockquote p::after {
  content: none !important;
  display: none !important;
}

.docs-section-body table {
  width: fit-content;
  max-width: 100%;
  border-collapse: collapse;
  display: table;
  border: 1px solid rgba(21, 53, 84, 0.12);
}

.docs-section-body thead {
  background: #e9f2f9;
}

.docs-section-body th,
.docs-section-body td {
  padding: 0.72rem 0.82rem;
  text-align: left;
  border-bottom: 1px solid rgba(21, 53, 84, 0.1);
  vertical-align: top;
}

.docs-section-body tr:last-child td {
  border-bottom: none;
}

.docs-section-body hr {
  border: none;
  border-top: 1px solid rgba(21, 53, 84, 0.14);
  margin: 1.8rem 0;
}

.docs-anchor-link {
  color: inherit;
  text-decoration: none;
}

.docs-anchor-link:hover {
  color: var(--docs-accent);
}

.docs-error-card {
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(154, 39, 28, 0.2);
  background: #fff1ee;
}

@media (max-width: 640px) {
  .docs-hero-inner {
    padding: 1rem;
  }

  .docs-layout {
    width: 100%;
  }

  .docs-ca-container {
    width: 100%;
  }

  .docs-section-header,
  .docs-section-toggle,
  .docs-section-body,
  .docs-loading-card {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .docs-title-divider {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
}
