/* Client-facing documentation. Preserve the deployed Mailcore brand system. */
.developer-docs { margin: 0; background: #fff; color: #24272d; font-size: 16px; line-height: 1.7; }
.developer-docs *, .developer-docs *::before, .developer-docs *::after { box-sizing: border-box; }
.developer-docs [hidden] { display: none !important; }
.developer-docs a { color: #914a17; text-underline-offset: 4px; }
.developer-docs a:hover { color: #6e330b; }
.developer-docs a:focus-visible, .developer-docs button:focus-visible, .developer-docs input:focus-visible, .developer-docs summary:focus-visible, .developer-docs pre:focus-visible, .developer-docs .docs-table:focus-visible { outline: 3px solid #c66321; outline-offset: 4px; }
.developer-docs button, .developer-docs summary { cursor: pointer; }
.docs-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e6e3df; background: #fff; }
.docs-header__inner { max-width: 1488px; min-height: 76px; margin: auto; padding: 12px 32px; display: flex; align-items: center; gap: 28px; }
.docs-logo { display: inline-flex; align-items: center; flex-shrink: 0; gap: 2px; color: #272727 !important; text-decoration: none; font-size: 24px; line-height: 1; font-weight: 700; }
.docs-logo img { flex-shrink: 0; width: 24px; height: 24px; }
.docs-header__section { font-size: 14px; text-decoration: none; border-left: 1px solid #dedbd7; padding-left: 24px; }
.docs-header__actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.docs-account { text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.docs-language { position: relative; font-size: 13px; }
.docs-language summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 66px; min-height: 44px; border: 1px solid #dedbd7; border-radius: 9px; list-style: none; }
.docs-language summary::-webkit-details-marker { display: none; }
.docs-language nav { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; padding: 6px; border: 1px solid #dedbd7; border-radius: 12px; background: #fff; box-shadow: 0 8px 26px #24272d18; }
.docs-language nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; gap: 16px; color: #45484f; text-decoration: none; }
.docs-language nav a[aria-current] { background: #fff4e9; color: #8b4210; }
.docs-layout { max-width: 1488px; margin: auto; padding: 36px 32px 80px; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; }
.docs-sidebar { position: sticky; top: 108px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; padding: 4px 5px 12px; scrollbar-width: thin; }
.docs-back { display: block; margin: 0 0 22px; font-size: 13px; text-decoration: none; }
.docs-nav-details summary { display: none; }
.docs-nav-content > label { display: block; color: #676b73; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.docs-search { position: relative; margin-bottom: 20px; }
.docs-search input { width: 100%; min-height: 44px; padding: 10px 32px 10px 12px; font: inherit; font-size: 13px; background: #f8f8f7; color: #24272d; border: 1px solid #dedbd7; border-radius: 8px; }
.docs-search input::-webkit-search-cancel-button { display: none; }
.docs-search > button { position: absolute; top: 0; right: 0; min-width: 44px; height: 44px; padding: 0; font: inherit; font-size: 22px; color: #676b73; border: 0; background: transparent; }
.docs-search-status { font-size: 12px; color: #676b73; margin: -8px 0 15px; }
.docs-nav-content nav { display: flex; flex-direction: column; gap: 3px; }
.docs-nav-content nav > a { min-height: 44px; padding: 10px 12px; text-decoration: none; color: #5f646e; font-size: 13px; line-height: 1.45; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.docs-nav-content nav > a:hover { background: #f8f8f7; color: #24272d; }
.docs-nav-content nav > a[aria-current] { background: #fff4e9; color: #8b4210; border-left-color: #e87527; font-weight: 600; }
.docs-sidebar__contract { display: block; padding: 14px 12px; margin-top: 18px; border-top: 1px solid #e6e3df; font-size: 13px; text-decoration: none; }
.docs-main { min-width: 0; max-width: 970px; }
.docs-breadcrumb { display: flex; gap: 12px; color: #81848c; font-size: 12px; margin-bottom: 28px; }
.docs-breadcrumb a { color: #676b73; text-decoration: none; }
.docs-hero { padding-bottom: 36px; }
.docs-eyebrow { margin: 0 0 10px; color: #a85118; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.docs-hero h1 { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.14; letter-spacing: -.035em; font-weight: 650; }
.docs-hero__lead { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.65; color: #626772; }
.docs-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; align-items: center; font-size: 12px; color: #81848c; }
.docs-hero__meta a { text-decoration: none; font-weight: 600; }
.docs-section { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid #e9e6e2; scroll-margin-top: 96px; }
.docs-section h2, .docs-downloads h2, .docs-support h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.3; letter-spacing: -.025em; }
.docs-section h2 > a { color: #24272d; text-decoration: none; }
.docs-section h2 > a:hover { text-decoration: underline; text-decoration-color: #e87527; }
.docs-section h3 { margin: 32px 0 12px; font-size: 19px; line-height: 1.35; scroll-margin-top: 98px; }
.docs-section p { margin: 0 0 16px; max-width: 84ch; overflow-wrap: anywhere; }
.docs-section__lead { color: #626772; }
.docs-section li { padding-left: 4px; margin: 8px 0; overflow-wrap: anywhere; }
.docs-section ul { padding-left: 22px; margin: 12px 0 20px; }
.docs-section code { padding: 2px 5px; border-radius: 4px; background: #f3f2f0; color: #803f13; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
.docs-callout { border: 1px solid #e3e5e8; border-left: 3px solid #7c8794; border-radius: 9px; padding: 18px 20px; margin: 22px 0; background: #f9fafb; }
.docs-callout > strong { display: block; font-size: 15px; margin-bottom: 6px; }
.docs-callout > p { margin: 0; font-size: 14px; }
.docs-callout--warning { background: #fff9ef; border-color: #f0ddbf; border-left-color: #d77d24; }
.docs-table { width: 100%; overflow-x: auto; margin: 22px 0; border: 1px solid #e3e5e8; border-radius: 9px; scrollbar-width: thin; }
.docs-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; text-align: left; }
.docs-table th, .docs-table td { padding: 14px 16px; border-bottom: 1px solid #e6e8ea; vertical-align: top; line-height: 1.55; overflow-wrap: anywhere; }
.docs-table th { background: #f8f8f7; font-size: 12px; color: #676b73; font-weight: 600; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table caption { padding: 12px 16px; text-align: left; font-size: 12px; color: #676b73; }
.docs-code { min-width: 0; overflow: hidden; margin: 22px 0; border-radius: 10px; background: #202a37; color: #e2e8ef; border: 1px solid #303b49; }
.docs-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 16px; font-size: 12px; background: #273342; color: #d0d8e2; }
.docs-code__bar > div { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.docs-code__bar > span { min-width: 0; overflow-wrap: anywhere; }
.docs-code__bar a { color: #d0d8e2; text-decoration: none; }
.docs-code__bar button { font: inherit; min-height: 44px; padding: 6px 10px; border-radius: 6px; border: 1px solid #5e6b7d; background: transparent; color: #e2e8ef; }
.docs-code__bar button:hover { background: #39485a; }
.docs-code pre { margin: 0; padding: 20px; overflow: auto; max-height: 560px; tab-size: 2; scrollbar-width: thin; font-size: 13px; line-height: 1.7; }
.docs-code pre code { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.docs-code-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-top: 24px; width: fit-content; max-width: 100%; border: 1px solid #e3e5e8; border-radius: 9px; background: #f8f8f7; }
.docs-code-tabs button { min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #626772; font: inherit; font-size: 13px; }
.docs-code-tabs button[aria-selected="true"] { background: #fff; border-color: #e3e5e8; color: #24272d; box-shadow: 0 1px 4px #24272d08; font-weight: 600; }
.docs-code-group .docs-code { margin-top: 12px; }
.docs-downloads { border: 1px solid #e6e3df; padding: 26px; border-radius: 12px; background: #fcfbf9; margin: 30px 0; }
.docs-downloads p { color: #626772; margin: 0 0 20px; }
.docs-downloads > a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 20px 0 0; font-size: 14px; font-weight: 600; }
.docs-support { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid #e6e3df; }
.docs-support p { color: #626772; font-size: 14px; max-width: 80ch; }
.docs-footer { max-width: 1488px; margin: auto; padding: 26px 32px; border-top: 1px solid #e6e3df; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 12px; color: #81848c; }
.docs-footer a { color: #676b73; }
.docs-portal { max-width: 1160px; margin: auto; padding: 70px 32px 90px; }
.docs-portal__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0 44px; }
.docs-product { display: block; border: 1px solid #e3e5e8; border-radius: 14px; padding: 30px; text-decoration: none; color: #24272d !important; }
.docs-product:hover { border-color: #c66321; background: #fffcf7; }
.docs-product--api { background: #fffcf7; border-color: #edcfb5; }
.docs-product__tag { display: inline-block; padding: 3px 8px; background: #f1eeea; color: #676b73; font-size: 11px; border-radius: 5px; }
.docs-product h2 { margin: 18px 0 12px; font-size: 25px; line-height: 1.25; }
.docs-product p { color: #626772; margin: 0 0 24px; }
.docs-product > strong { color: #914a17; font-size: 14px; }
@media (max-width: 1023px) {
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 30px 24px 60px; }
  .docs-header__inner { padding-inline: 24px; }
}
@media (max-width: 767px) {
  .docs-header__inner { gap: 12px; min-height: 65px; padding: 10px 16px; }
  .docs-logo { font-size: 21px; }
  .docs-logo img { width: 21px; height: 21px; }
  .docs-header__section { display: none; }
  .docs-header__actions { gap: 12px; }
  .docs-account { font-size: 12px; }
  .docs-layout { display: block; padding: 24px 16px 50px; }
  .docs-sidebar { position: static; max-height: none; padding: 0; overflow: visible; margin-bottom: 28px; }
  .docs-back { margin-bottom: 16px; }
  .docs-nav-details { border: 1px solid #dedbd7; border-radius: 9px; }
  .docs-nav-details summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 48px; list-style: none; font-size: 14px; font-weight: 600; }
  .docs-nav-details summary::-webkit-details-marker { display: none; }
  .docs-nav-content { padding: 12px; border-top: 1px solid #e6e3df; max-height: 65vh; overflow-y: auto; }
  .docs-sidebar__contract { display: none; }
  .docs-breadcrumb { margin-bottom: 24px; }
  .docs-hero { padding-bottom: 28px; }
  .docs-hero__lead { font-size: 16px; }
  .docs-section { padding-block: 28px; scroll-margin-top: 84px; }
  .docs-section h2 { font-size: 24px; }
  .docs-section h3 { font-size: 18px; }
  .docs-code__bar { padding-inline: 12px; gap: 8px; align-items: start; }
  .docs-code pre { padding: 16px; font-size: 12px; }
  .docs-code-tabs button { padding: 8px 12px; }
  .docs-callout { padding: 16px; }
  .docs-downloads { padding: 20px; }
  .docs-footer { padding: 22px 16px; }
  .docs-portal { padding: 44px 16px 60px; }
  .docs-portal__cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .developer-docs { scroll-behavior: auto; }
}
