/*
  PostBuddy Help center and developer docs (E26, design "PostBuddy Docs").
  Brand palette of TD-16: navy headings, the red accent, warm greys; Barlow for headings, Figtree
  for text, JetBrains Mono for code. Light by default, dark with the system setting.
*/
@font-face {
  font-family: Barlow;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/barlow-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: Barlow;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/barlow-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: Barlow;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/barlow-latin-800-normal.woff2) format('woff2');
}
@font-face {
  font-family: Figtree;
  font-weight: 300 900;
  font-display: swap;
  src: url(assets/fonts/figtree-latin-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Figtree;
  font-weight: 300 900;
  font-display: swap;
  src: url(assets/fonts/figtree-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 100 800;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f7f5f6;
  --soft-2: #f4f2f3;
  --hover: #faf8f9;
  --line: #efebed;
  --line-2: #f3f0f2;
  --line-3: #e6e1e4;
  --heading: #24244a;
  --text: #383d3b;
  --muted: #5e5a68;
  --muted-2: #75707f;
  --subtle: #8d8896;
  --faint: #b9b3b8;
  --accent: #d44050;
  --accent-hover: #b8323f;
  --accent-soft: #eee5e9;
  --accent-ink: #7a2c3a;
  --navy: #24244a;
  --navy-hover: #1b1b3a;
  --ok: #2e9e5b;
  --warn: #b57a00;
  --req: #b42335;
  --shadow: 0 1px 2px rgba(36, 36, 74, 0.06), 0 0 0 1px #ece8ea;
  --code-bg: #1c1c36;
  --code-panel: #16162b;
  --code-card: #1f1f3a;
  --code-tab: #2f2f52;
  --code-text: #e3e1ec;
  --code-muted: #a9a6be;
  --tk-k: #ff8b96;
  --tk-s: #f6c76a;
  --tk-p: #9fc3ff;
  --tk-c: #8c89a6;
  --tk-n: #ff8b96;
  --m-post-bg: #fbe9eb;
  --m-post: #b42335;
  --m-get-bg: #e3f2e8;
  --m-get: #22663f;
  --m-patch-bg: #fdf0d5;
  --m-patch: #7a4f00;
  --m-delete-bg: #f1e6f5;
  --m-delete: #6b2e7f;
  --inline-code: #f4f2f3;
  --overlay: rgba(36, 36, 74, 0.42);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #16162b;
    --soft: #1d1d35;
    --soft-2: #26264a;
    --hover: #1f1f3a;
    --line: #2a2a4a;
    --line-2: #26264a;
    --line-3: #3a3a63;
    --heading: #f4f3f8;
    --text: #d9d7e5;
    --muted: #b4b1c8;
    --muted-2: #a9a6be;
    --subtle: #8d8aa6;
    --faint: #6d6a88;
    --accent: #e05c6a;
    --accent-hover: #ec7682;
    --accent-soft: #3a1f33;
    --accent-ink: #ffb3bb;
    --navy: #f4f3f8;
    --navy-hover: #ffffff;
    --ok: #56c484;
    --req: #ff8b96;
    --shadow: 0 0 0 1px #2f2f52;
    --code-bg: #10101f;
    --code-panel: #10101f;
    --code-card: #1a1a33;
    --code-tab: #2f2f52;
    --m-post-bg: #3a1f2b;
    --m-post: #ff9aa5;
    --m-get-bg: #173528;
    --m-get: #7fd3a0;
    --m-patch-bg: #3a2e14;
    --m-patch: #f6c76a;
    --m-delete-bg: #2f1f3d;
    --m-delete: #d6a6ec;
    --inline-code: #26264a;
    --overlay: rgba(8, 8, 20, 0.6);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 15px/1.6 Figtree,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
code,
kbd,
pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.i {
  width: 1em;
  height: 1em;
  flex: none;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--navy);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.brand {
  display: flex;
  align-items: center;
}
.brand svg {
  height: 22px;
  width: auto;
  display: block;
}
.logo-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: block;
  }
}
.section-tabs {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
.section-tab {
  display: flex;
  align-items: center;
  font:
    500 14px Figtree,
    sans-serif;
  color: var(--muted-2);
}
.section-tab:hover {
  color: var(--heading);
  text-decoration: none;
}
.section-tab[aria-current='page'] {
  font-weight: 600;
  color: var(--heading);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.search-trigger {
  width: 300px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--soft-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font:
    400 13.5px Figtree,
    sans-serif;
  color: var(--subtle);
  text-align: left;
}
.search-trigger:hover {
  background: var(--line);
}
.search-trigger .i {
  font-size: 15px;
}
.search-trigger span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
kbd {
  font:
    500 11px 'JetBrains Mono',
    monospace;
  color: var(--muted-2);
  background: var(--bg);
  border-radius: 5px;
  padding: 2px 6px;
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.top-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font:
    500 14px Figtree,
    sans-serif;
}
.top-links a:not(.btn) {
  color: var(--text);
}
.top-links a:not(.btn):hover {
  color: var(--heading);
  text-decoration: none;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-3);
  font:
    600 12.5px Figtree,
    sans-serif;
}
.lang-switch .i {
  font-size: 15px;
}
.lang-switch:hover {
  background: var(--soft-2);
}
.status-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.status-dot[data-state='operational'] {
  background: var(--ok);
}
.status-dot[data-state='degraded'] {
  background: #e0a100;
}
.status-dot[data-state='down'] {
  background: var(--accent);
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}
.icon-btn:hover {
  background: var(--soft-2);
}
.icon-btn .i {
  font-size: 18px;
}
.nav-toggle,
.search-icon {
  display: none;
}

/* ---------------------------------------------------------------------------------- buttons */
.btn {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font:
    600 14px Figtree,
    sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn .i {
  font-size: 16px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  background: var(--bg);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn-secondary:hover {
  background: var(--soft);
  color: var(--heading);
}
.btn-navy {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--bg);
  font-size: 13.5px;
}
.btn-navy:hover {
  background: var(--navy-hover);
  color: var(--bg);
}

/* ----------------------------------------------------------------------------------- layout */
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 64px - 64px);
}
.layout-article {
  grid-template-columns: 248px minmax(0, 1fr) 232px;
}
.side {
  border-right: 1px solid var(--line);
}
[data-section='help'] .side {
  border-right: 0;
}
.side-inner {
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 32px 16px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
[data-section='help'] .side-inner {
  padding: 40px 16px 40px 32px;
}
.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-title,
.nav-group summary {
  font:
    600 12.5px Figtree,
    sans-serif;
  color: var(--subtle);
  padding: 0 10px 6px;
}
.nav-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding-top: 2px;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary .chevron {
  font-size: 13px;
  transition: transform 0.15s;
}
.nav-group[open] summary .chevron {
  transform: rotate(90deg);
}
.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font:
    400 13.5px/1.35 Figtree,
    sans-serif;
  color: var(--muted);
}
.side a:hover {
  background: var(--hover);
  color: var(--heading);
  text-decoration: none;
}
.side a[aria-current='page'] {
  background: var(--soft-2);
  color: var(--heading);
  font-weight: 600;
}
.side a.has-method {
  align-items: flex-start;
}
.side a.has-method .nav-m {
  padding-top: 2px;
}
.nav-m {
  width: 40px;
  flex: none;
  font:
    700 10px 'JetBrains Mono',
    monospace;
}
.back {
  font-weight: 500 !important;
  font-size: 13px !important;
  color: var(--muted-2) !important;
}
.back .i {
  font-size: 14px;
}
.nav-overview .i {
  font-size: 15px;
}
.side .nav-overview {
  margin-top: -14px;
}
.main {
  min-width: 0;
  padding: 40px 56px 72px;
}
.main.wide {
  padding: 48px 56px 72px;
}
.article {
  max-width: 800px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font:
    500 13px Figtree,
    sans-serif;
  color: var(--subtle);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--subtle);
}
.crumbs a:hover {
  color: var(--heading);
}
.main h1 {
  font:
    700 36px/1.1 Barlow,
    Figtree,
    sans-serif;
  color: var(--heading);
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.meta {
  font:
    400 13.5px Figtree,
    sans-serif;
  color: var(--subtle);
  margin: -2px 0 22px;
}
.lede {
  margin: 0 0 22px;
  font:
    400 16px/1.65 Figtree,
    sans-serif;
  color: var(--text);
  max-width: 720px;
  text-wrap: pretty;
}
.muted {
  color: var(--muted-2);
}

/* ------------------------------------------------------------------------------------ prose */
.prose {
  font:
    400 16px/1.65 Figtree,
    sans-serif;
  color: var(--text);
  max-width: 720px;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 18px;
  text-wrap: pretty;
}
.prose h2 {
  font:
    700 22px/1.25 Barlow,
    Figtree,
    sans-serif;
  color: var(--heading);
  margin: 36px 0 14px;
}
.prose h3 {
  font:
    700 18px/1.3 Barlow,
    Figtree,
    sans-serif;
  color: var(--heading);
  margin: 28px 0 10px;
}
.prose h4 {
  font:
    600 15px Figtree,
    sans-serif;
  color: var(--heading);
  margin: 22px 0 8px;
}
.prose h2,
.prose h3 {
  position: relative;
}
.anchor {
  position: absolute;
  left: -22px;
  color: var(--faint) !important;
  opacity: 0;
  font-weight: 500;
  text-decoration: none !important;
}
.prose h2:hover .anchor,
.prose h3:hover .anchor {
  opacity: 1;
}
.prose strong {
  color: var(--heading);
  font-weight: 600;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--subtle);
}
.prose :not(pre) > code {
  font:
    500 0.86em 'JetBrains Mono',
    monospace;
  background: var(--inline-code);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--heading);
  overflow-wrap: anywhere;
}
.prose a code {
  color: var(--accent);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.prose blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--line-3);
  color: var(--muted);
}
ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin: 0;
  min-height: 26px;
  font-size: 15px;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg);
  font:
    700 12.5px/26px Figtree,
    sans-serif;
  text-align: center;
}
.callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.callout > .i {
  font-size: 18px;
  color: var(--heading);
  margin-top: 2px;
}
.callout p {
  margin: 0 0 8px;
}
.callout p:last-child {
  margin: 0;
}
.callout-warning {
  background: #fdf4e3;
}
.callout-warning > .i {
  color: var(--warn);
}
@media (prefers-color-scheme: dark) {
  .callout-warning {
    background: #2e2614;
  }
  .callout-warning > .i {
    color: #f6c76a;
  }
}
.table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 22px;
}
.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th {
  text-align: left;
  font:
    600 13px Figtree,
    sans-serif;
  color: var(--subtle);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.55;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table-pairs td:first-child {
  width: 34%;
  font-weight: 600;
  color: var(--heading);
}
.table-pairs thead {
  display: none;
}
.code-list {
  columns: 2;
  list-style: none;
  padding: 0;
}

/* ------------------------------------------------------------------------------------- code */
.code {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 22px;
  color: var(--code-text);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font:
    600 12px Figtree,
    sans-serif;
  color: var(--code-muted);
}
pre {
  margin: 0;
  padding: 16px 20px;
  overflow-x: auto;
  font:
    400 12.5px/1.75 'JetBrains Mono',
    monospace;
  color: var(--code-text);
  tab-size: 2;
}
pre code {
  font: inherit;
}
.tk-k {
  color: var(--tk-k);
}
.tk-s {
  color: var(--tk-s);
}
.tk-p {
  color: var(--tk-p);
}
.tk-c {
  color: var(--tk-c);
  font-style: italic;
}
.tk-n {
  color: var(--tk-n);
}
.copy {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--code-muted);
}
.copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.copy .i {
  font-size: 14px;
}
.copy.copied {
  color: #7fd3a0;
}
.copy-inline {
  color: var(--muted-2);
}
.copy-inline:hover {
  background: var(--line);
  color: var(--heading);
}

/* -------------------------------------------------------------------------------- help home */
.hero {
  background: var(--soft);
  padding: 56px 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.hero h1 {
  font:
    800 44px/1.05 Barlow,
    Figtree,
    sans-serif;
  color: var(--heading);
  margin: 0;
}
.hero-search {
  width: min(640px, 100%);
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  font:
    400 16px Figtree,
    sans-serif;
  color: var(--subtle);
  text-align: left;
}
.hero-search:hover {
  box-shadow:
    0 1px 2px rgba(36, 36, 74, 0.06),
    0 0 0 1px var(--line-3);
}
.hero-search .i {
  font-size: 19px;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chips-left {
  justify-content: flex-start;
}
.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-3);
  display: inline-flex;
  align-items: center;
  font:
    500 13px Figtree,
    sans-serif;
  color: var(--text);
}
.chip:hover {
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--subtle);
  text-decoration: none;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cat-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.cat-card:hover {
  border-color: var(--line-3);
  box-shadow: 0 10px 30px -18px rgba(36, 36, 74, 0.35);
  text-decoration: none;
  color: inherit;
}
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: none;
}
.cat-icon .i {
  font-size: 19px;
}
.cat-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.cat-icon-lg .i {
  font-size: 24px;
}
.cat-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-title {
  font:
    600 15.5px Figtree,
    sans-serif;
  color: var(--heading);
}
.cat-desc {
  font:
    400 13.5px/1.45 Figtree,
    sans-serif;
  color: var(--muted-2);
}
.cat-count {
  font:
    500 12.5px Figtree,
    sans-serif;
  color: var(--subtle);
  margin-top: 4px;
}
.popular h2,
.help-cta h2 {
  font:
    600 17px Barlow,
    Figtree,
    sans-serif;
  color: var(--heading);
  margin: 0 0 8px;
}
.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.popular-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font:
    500 14.5px Figtree,
    sans-serif;
  color: var(--heading);
}
.popular-row:hover {
  text-decoration: none;
  color: var(--accent);
}
.popular-row > .i:first-child {
  font-size: 16px;
  color: var(--subtle);
}
.popular-row .chevron {
  margin-left: auto;
  font-size: 16px;
  color: var(--faint);
}
.help-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--soft);
}
.help-cta p {
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
}

/* ------------------------------------------------------------------------- help categories */
.cat-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.cat-head h1 {
  margin-bottom: 4px;
}
.cat-head .lede {
  margin: 0;
}
.article-list {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.article-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  color: inherit;
}
.article-row:last-child {
  border-bottom: 0;
}
.article-row:hover {
  background: var(--hover);
  text-decoration: none;
  color: inherit;
}
.article-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.article-row-title {
  font:
    600 15px Figtree,
    sans-serif;
  color: var(--heading);
}
.article-row-summary {
  font:
    400 13.5px/1.45 Figtree,
    sans-serif;
  color: var(--muted-2);
}
.article-row .chevron {
  color: var(--faint);
  font-size: 16px;
}
.other-topics {
  margin-top: 36px;
  max-width: 760px;
}
.other-topics .toc-title {
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- article chrome */
.toc {
  min-width: 0;
}
.toc-inner {
  position: sticky;
  top: 64px;
  padding: 82px 24px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.toc-title {
  font:
    600 12.5px Figtree,
    sans-serif;
  color: var(--subtle);
  margin-bottom: 10px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc li a {
  display: block;
  padding-left: 12px;
  font:
    400 13.5px/1.4 Figtree,
    sans-serif;
  color: var(--muted-2);
}
.toc li a:hover {
  color: var(--heading);
  text-decoration: none;
}
.toc li a.active {
  color: var(--heading);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}
.feedback-buttons {
  display: flex;
  gap: 8px;
}
.feedback-buttons .icon-btn {
  width: 40px;
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.feedback-buttons .icon-btn .i {
  font-size: 16px;
}
.feedback-buttons .icon-btn[aria-pressed='true'] {
  background: var(--soft-2);
  color: var(--accent);
}
.feedback-remark {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.feedback-remark[hidden] {
  display: none;
}
.feedback-label {
  font-size: 12.5px;
  color: var(--muted);
}
.feedback-remark textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}
.feedback-remark .btn {
  justify-self: start;
}
.doc-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line-3);
  border-radius: 8px;
}
.feedback-thanks {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted-2);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 0;
  max-width: 720px;
}
.pager a {
  flex: 1;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font:
    600 14.5px Figtree,
    sans-serif;
  color: var(--heading);
}
.pager a:hover {
  border-color: var(--line-3);
  text-decoration: none;
  color: var(--accent);
}
.pager a span {
  font:
    500 12.5px Figtree,
    sans-serif;
  color: var(--subtle);
}
.pager-next {
  text-align: right;
  margin-left: auto;
}
.support-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  max-width: 720px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--soft);
}
.support-card > .i {
  font-size: 22px;
  color: var(--accent);
}
.support-card div {
  flex: 1;
}
.support-card strong {
  color: var(--heading);
  font-weight: 600;
}
.support-card p {
  margin: 2px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

/* --------------------------------------------------------------------------- developer home */
.dev-home {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 56px;
  align-items: start;
}
.dev-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}
.dev-hero h1 {
  font:
    800 44px/1.05 Barlow,
    Figtree,
    sans-serif;
  margin: 0;
}
.dev-hero .lede {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}
.badge-soft {
  align-self: flex-start;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font:
    600 12px/26px Figtree,
    sans-serif;
}
.base-url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  height: 40px;
  padding: 0 6px 0 14px;
  border-radius: 10px;
  background: var(--soft);
  font:
    500 13.5px 'JetBrains Mono',
    monospace;
  color: var(--heading);
  max-width: 100%;
}
.base-url code {
  overflow: hidden;
  text-overflow: ellipsis;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.dev-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dev-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.dev-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--line-3);
  box-shadow: 0 10px 30px -18px rgba(36, 36, 74, 0.35);
}
.dev-card > .i {
  font-size: 20px;
  color: var(--accent);
}
.dev-card-title {
  font:
    600 15px Figtree,
    sans-serif;
  color: var(--heading);
}
.dev-card-text {
  font:
    400 13.5px/1.45 Figtree,
    sans-serif;
  color: var(--muted-2);
}
.dev-overview {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

/* ------------------------------------------------------------------------ code panels, tabs */
.panel {
  background: var(--code-card);
  border-radius: 12px;
  overflow: hidden;
  color: var(--code-text);
}
.dev-hero-code .panel {
  background: var(--code-bg);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(28, 28, 54, 0.5);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font:
    600 12.5px Figtree,
    sans-serif;
}
.panel-title {
  padding: 0 6px 0 4px;
  color: #fff;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
}
.tab {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--code-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font:
    600 12.5px Figtree,
    sans-serif;
  white-space: nowrap;
}
.tab:hover {
  color: #fff;
}
.tab[aria-selected='true'] {
  background: var(--code-tab);
  color: #fff;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-ok {
  background: #7fd3a0;
}
.dot-err {
  background: #ff8b96;
}
.tab[aria-selected='true']:has(.dot-ok) {
  color: #7fd3a0;
}
.pane pre {
  max-height: 560px;
}
.pane-note {
  margin: 0;
  padding: 16px 18px;
  color: var(--code-muted);
  font-size: 13.5px;
}

/* ------------------------------------------------------------------------------- reference */
.layout-ref .main {
  padding: 0;
}
.ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  min-height: 100%;
}
.ref-main {
  padding: 40px 48px 72px;
  min-width: 0;
}
.ref-code {
  background: var(--code-panel);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ref-code > .panel:first-child {
  position: sticky;
  top: 92px;
}
.ref-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ref-path code {
  font:
    500 14px 'JetBrains Mono',
    monospace;
  color: var(--heading);
  overflow-wrap: anywhere;
}
.ref-main h1 {
  font-size: 32px;
}
.m {
  display: inline-block;
  min-width: 46px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  text-align: center;
  font:
    700 10.5px/22px 'JetBrains Mono',
    monospace;
}
.m-lg {
  height: 24px;
  font-size: 11.5px;
  line-height: 24px;
  border-radius: 6px;
}
.m-post,
.m-put {
  background: var(--m-post-bg);
  color: var(--m-post);
}
.m-get {
  background: var(--m-get-bg);
  color: var(--m-get);
}
.m-patch {
  background: var(--m-patch-bg);
  color: var(--m-patch);
}
.m-delete {
  background: var(--m-delete-bg);
  color: var(--m-delete);
}
.nav-m.m-post,
.nav-m.m-put,
.nav-m.m-get,
.nav-m.m-patch,
.nav-m.m-delete {
  background: transparent;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 26px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  font:
    500 12.5px Figtree,
    sans-serif;
  color: var(--muted);
}
.pill .i {
  font-size: 13px;
}
.pill code {
  font-size: 11.5px;
  color: var(--heading);
}
.fields-section {
  margin-bottom: 30px;
}
.fields-section h2 {
  font:
    600 15px Figtree,
    sans-serif;
  color: var(--heading);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.field-name {
  font:
    600 13.5px 'JetBrains Mono',
    monospace;
  color: var(--heading);
}
.field-type {
  font:
    400 13px Figtree,
    sans-serif;
  color: var(--subtle);
}
.req {
  font:
    600 12px Figtree,
    sans-serif;
  color: var(--req);
}
.field-extra {
  font:
    400 12px Figtree,
    sans-serif;
  color: var(--subtle);
}
.field p {
  margin: 0;
  font:
    400 14px/1.5 Figtree,
    sans-serif;
  color: var(--muted);
}
.enum {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.enum code {
  font:
    500 11.5px 'JetBrains Mono',
    monospace;
  background: var(--soft-2);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--heading);
}
.enum span {
  font-size: 12px;
  color: var(--subtle);
}
.children {
  margin-top: 8px;
}
.children summary {
  font:
    600 12.5px Figtree,
    sans-serif;
  color: var(--muted-2);
  cursor: pointer;
  width: fit-content;
}
.fields.nested {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 14px;
}
.fields.nested > .field:last-child {
  border-bottom: 0;
}
.fields.nested .field {
  padding: 10px 0;
}
.statuses {
  display: flex;
  flex-direction: column;
}
.status-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
}
.status-code {
  flex: none;
  min-width: 44px;
  font:
    700 12px 'JetBrains Mono',
    monospace;
}
.status-code.ok {
  color: var(--ok);
}
.status-code.err {
  color: var(--req);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
  max-width: 1000px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
}
.fact > span:first-child {
  font:
    600 12.5px Figtree,
    sans-serif;
  color: var(--subtle);
}
.fact code {
  font-size: 12.5px;
  color: var(--heading);
}
.ref-group {
  max-width: 1000px;
  margin-bottom: 28px;
}
.ref-group h2 {
  font:
    700 20px Barlow,
    Figtree,
    sans-serif;
  color: var(--heading);
  margin: 0 0 10px;
}
.ref-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ref-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  color: inherit;
}
.ref-row:last-child {
  border-bottom: 0;
}
.ref-row:hover {
  background: var(--hover);
  text-decoration: none;
  color: inherit;
}
.ref-row-title {
  font:
    600 14px Figtree,
    sans-serif;
  color: var(--heading);
}
.ref-row code {
  font:
    500 12.5px 'JetBrains Mono',
    monospace;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------------- search */
.search {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 104px 16px 16px;
}
.search[hidden] {
  display: none;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.search-dialog {
  position: relative;
  width: 660px;
  max-width: 100%;
  align-self: flex-start;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(20, 20, 45, 0.45);
  overflow: hidden;
}
.search-input {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.search-input > .i {
  font-size: 19px;
  color: var(--heading);
}
.search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font:
    400 17px Figtree,
    sans-serif;
  color: var(--heading);
}
.search-input input::-webkit-search-cancel-button {
  display: none;
}
.search-results {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-group {
  font:
    600 12px Figtree,
    sans-serif;
  color: var(--subtle);
  padding: 10px 10px 6px;
}
.search-group:not(:first-child) {
  padding-top: 14px;
}
.result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  color: inherit;
}
.result:hover,
.result[aria-selected='true'] {
  background: var(--soft-2);
  text-decoration: none;
  color: inherit;
}
.result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft-2);
  display: grid;
  place-items: center;
  color: var(--heading);
  flex: none;
}
.result[aria-selected='true'] .result-icon {
  background: var(--bg);
}
.result-icon .i {
  font-size: 15px;
}
.result .m {
  min-width: 44px;
  flex: none;
}
.result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.result-title {
  font:
    600 14px Figtree,
    sans-serif;
  color: var(--heading);
}
.result-sub {
  font:
    400 13px Figtree,
    sans-serif;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-sub.mono {
  font:
    500 12.5px 'JetBrains Mono',
    monospace;
}
.result mark {
  background: transparent;
  color: var(--accent);
}
.result-enter {
  font-size: 15px;
  color: var(--subtle);
  visibility: hidden;
}
.result[aria-selected='true'] .result-enter {
  visibility: visible;
}
.search-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}
.search-empty strong {
  color: var(--heading);
}
.search-foot {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  font:
    400 12.5px Figtree,
    sans-serif;
  color: var(--subtle);
}
.search-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-foot kbd {
  padding: 1px 5px;
}
.search-help {
  margin-left: auto;
  white-space: nowrap;
}
.search-help a {
  font-weight: 600;
}
body.search-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding: 16px 32px;
  font:
    400 13px Figtree,
    sans-serif;
  color: var(--subtle);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.foot a {
  color: var(--muted-2);
}

/* ------------------------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .layout-article {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .dev-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 1180px) {
  .ref {
    grid-template-columns: minmax(0, 1fr);
  }
  .ref-code {
    padding: 24px;
  }
  .ref-code > .panel:first-child {
    position: static;
  }
  .search-trigger {
    width: 220px;
  }
  .support-link {
    display: none;
  }
}
@media (max-width: 960px) {
  .top {
    gap: 16px;
    padding: 0 16px;
  }
  .nav-toggle,
  .search-icon {
    display: inline-grid;
  }
  .search-trigger,
  .status-link {
    display: none;
  }
  .top-links {
    gap: 8px;
  }
  .layout,
  .layout-article {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 35;
    background: var(--bg);
    border-right: 1px solid var(--line) !important;
    transform: translateX(-100%);
    transition: transform 0.2s;
    overflow-y: auto;
  }
  .side-inner {
    position: static;
    max-height: none;
  }
  body.nav-open .side {
    transform: none;
    box-shadow: 0 20px 60px -20px rgba(20, 20, 45, 0.45);
  }
  .main,
  .main.wide,
  .ref-main {
    padding: 28px 20px 56px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dev-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .ref-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .ref-row code {
    grid-column: 2;
  }
}
@media (max-width: 640px) {
  .section-tab {
    font-size: 13px;
  }
  .section-tabs {
    gap: 14px;
  }
  .brand {
    display: none;
  }
  .btn-navy {
    padding: 0 12px;
  }
  .hero {
    padding: 40px 16px 32px;
  }
  .hero h1,
  .dev-hero h1 {
    font-size: 34px;
  }
  .main h1 {
    font-size: 28px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .cat-grid,
  .popular-grid,
  .dev-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .help-cta,
  .support-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .pager {
    flex-direction: column;
  }
  .pager a {
    max-width: none;
  }
  .search {
    padding: 12px;
  }
  .search-dialog {
    max-height: calc(100vh - 24px);
  }
  .search-foot span:not(.search-help) {
    display: none;
  }
  .code-list {
    columns: 1;
  }
}
