/* Developers pages: integration guide (developers.html) and the API reference explorer (developers-reference.html).
   Palette follows public-surfaces.css: ink #0f1f33, body #2d3e55, accent #1d4f8c, rule #dbe4f0, ground #f4f7fb. */

.dv-notice {
  display: block;
  margin: 18px 0 0; padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid #dbe4f0; border-left: 4px solid #1d4f8c;
  color: #2d3e55; font-size: .95rem; line-height: 1.6; max-width: 820px;
}
.dv-notice strong { color: #0f1f33; }

.dv-pre {
  margin: 10px 0 0; padding: 14px 16px; border-radius: 10px; overflow-x: auto;
  background: #0f1f33; color: #e6eef8; font: 13px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  max-width: 820px;
}
.dv-pre code { white-space: pre; }
.pg-section code, .dv-table code { font: .88em ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #163c67;
  background: rgba(29, 79, 140, .07); padding: 1px 5px; border-radius: 5px; }
.dv-pre code { background: none; color: inherit; padding: 0; }

.dv-table-wrap { overflow-x: auto; max-width: 100%; margin-top: 8px; }
.dv-table { border-collapse: collapse; width: 100%; min-width: 560px; background: #fff; border: 1px solid #dbe4f0; border-radius: 12px; overflow: hidden; font-size: .94rem; }
.dv-table th, .dv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e8eef6; vertical-align: top; color: #2d3e55; }
.dv-table th { background: #f4f7fb; color: #0f1f33; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.dv-table tr:last-child td { border-bottom: 0; }
.dv-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.dv-surfaces { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 10px; }
.dv-surface { display: block; text-decoration: none; background: #fff; border: 1px solid #dbe4f0; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 18px 32px rgba(15, 31, 51, .05); transition: border-color .15s, transform .15s; }
.dv-surface:hover, .dv-surface:focus-visible { border-color: #1d4f8c; transform: translateY(-1px); }
.dv-surface h3 { margin: 0 0 4px; color: #0f1f33; font-size: 1.02rem; }
.dv-surface p { margin: 0; color: #46607d; font-size: .92rem; line-height: 1.55; }
.dv-surface .dv-host { display: block; margin-top: 8px; color: #1d4f8c; font: 12.5px ui-monospace, Menlo, Consolas, monospace; }
.dv-surface .dv-ops { float: right; color: #46607d; font-size: .8rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- reference explorer */
.ar-shell { max-width: 1320px; margin: 0 auto; padding: 22px 20px 48px; }
.ar-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ar-head h1 { margin: 0; color: #0f1f33; font-size: clamp(1.5rem, 2.2vw, 2rem); text-wrap: balance; }
.ar-head p { margin: 0; color: #46607d; font-size: .9rem; }
.ar-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ar-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); background: #fff; border: 1px solid #dbe4f0; border-radius: 14px;
  display: flex; flex-direction: column; max-height: calc(100vh - 32px); overflow: hidden; }
.ar-controls { padding: 12px; border-bottom: 1px solid #e8eef6; display: grid; gap: 8px; }
.ar-controls label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #46607d; }
.ar-controls select, .ar-controls input {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #c9d6e6; border-radius: 9px;
  font: inherit; font-size: .92rem; color: #0f1f33; background: #fff;
}
.ar-controls select:focus-visible, .ar-controls input:focus-visible, .ar-opitem:focus-visible, .ar-copy:focus-visible { outline: 2px solid #1d4f8c; outline-offset: 2px; }
#ar-count { font-size: .8rem; color: #46607d; font-variant-numeric: tabular-nums; }
#ar-oplist { overflow-y: auto; padding: 6px 0 10px; }
.ar-group summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; padding: 8px 14px; font-weight: 700; color: #0f1f33; font-size: .9rem; list-style: none; }
.ar-group summary::-webkit-details-marker { display: none; }
.ar-group summary::before { content: "▸"; color: #8aa0ba; margin-right: 6px; transition: transform .15s; display: inline-block; }
.ar-group[open] > summary::before { transform: rotate(90deg); }
.ar-group summary > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-group ul { list-style: none; margin: 0; padding: 0 0 4px; }
.ar-opitem { display: flex; gap: 8px; align-items: center; padding: 6px 14px 6px 24px; text-decoration: none; color: #2d3e55; font-size: .84rem; border-left: 3px solid transparent; }
.ar-opitem:hover { background: #f4f7fb; }
.ar-opitem.is-active { background: rgba(29, 79, 140, .08); border-left-color: #1d4f8c; color: #0f1f33; }
.ar-oppath { font-family: ui-monospace, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ar-dot { margin-left: auto; color: #b07d10; }

.ar-method { flex: none; display: inline-block; min-width: 50px; text-align: center; padding: 2px 6px; border-radius: 6px;
  font: 700 10.5px/1.6 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; color: #fff; }
.ar-m-get { background: #1d6b4f; } .ar-m-post { background: #1d4f8c; } .ar-m-put { background: #7a5410; }
.ar-m-patch { background: #6a4a9c; } .ar-m-delete { background: #a33a32; }

.ar-main { background: #fff; border: 1px solid #dbe4f0; border-radius: 14px; min-height: 60vh; padding: 22px 26px 30px; min-width: 0; }
.ar-pad { padding: 14px; }
.ar-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1d4f8c; }
.ar-op h2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 6px; color: #0f1f33; font-size: 1.3rem; }
.ar-path { font: 600 1.02rem ui-monospace, Menlo, Consolas, monospace; color: #0f1f33; word-break: break-all; }
.ar-summary { font-size: 1.05rem; color: #0f1f33; margin: 4px 0; }
.ar-desc { color: #2d3e55; line-height: 1.65; max-width: 860px; }
.ar-muted { color: #5b6f88; font-size: .88rem; margin: 2px 0; }
.ar-error { color: #a33a32; font-weight: 600; }
.ar-block { margin-top: 22px; }
.ar-block h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #46607d; }
.ar-access dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 14px 16px;
  background: #f8fbff; border: 1px solid #e3ebf5; border-radius: 10px; }
.ar-access dt { font-weight: 700; color: #0f1f33; font-size: .88rem; }
.ar-access dd { margin: 0; color: #2d3e55; font-size: .9rem; }
.ar-role { display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px; border-radius: 999px; background: rgba(29, 79, 140, .08);
  border: 1px solid rgba(29, 79, 140, .16); color: #163c67; font: 600 11.5px ui-monospace, Menlo, Consolas, monospace; }
.ar-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.ar-r-public { background: #e5f3ec; color: #1d5a40; }
.ar-r-internal { background: #fbf1dc; color: #7a5410; }
.ar-r-infrastructure { background: #eceff4; color: #46607d; }

.ar-table-wrap { overflow-x: auto; }
.ar-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ar-table th, .ar-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #edf2f8; vertical-align: top; color: #2d3e55; }
.ar-table th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #46607d; background: #f8fbff; }
.ar-table td p { margin: 0 0 4px; }
.ar-table code { font: 600 12.5px ui-monospace, Menlo, Consolas, monospace; color: #0f1f33; }
.ar-type { font: 12px ui-monospace, Menlo, Consolas, monospace; color: #1d4f8c; white-space: nowrap; }
.ar-req { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; color: #a33a32; text-transform: uppercase; letter-spacing: .06em; }
.ar-nested summary { cursor: pointer; color: #1d4f8c; font-size: .82rem; margin-top: 4px; }
.ar-nested > .ar-table-wrap, .ar-nested > p { margin: 6px 0 0 6px; padding-left: 10px; border-left: 2px solid #e3ebf5; }

.ar-response { border: 1px solid #e3ebf5; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.ar-response summary { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 9px 12px; cursor: pointer; background: #f8fbff; color: #2d3e55; font-size: .9rem; }
.ar-response > *:not(summary) { margin: 10px 12px; }
.ar-code { font: 700 12px ui-monospace, Menlo, Consolas, monospace; padding: 1px 8px; border-radius: 6px; }
.ar-c-ok { background: #e5f3ec; color: #1d5a40; } .ar-c-warn { background: #fbf1dc; color: #7a5410; }
.ar-c-bad { background: #fbe4e2; color: #8c2c25; } .ar-c-info { background: #eceff4; color: #46607d; }

.ar-codehead { display: flex; justify-content: space-between; align-items: center; }
.ar-copy { font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: 8px; border: 1px solid #c9d6e6; background: #fff; color: #1d4f8c; cursor: pointer; }
.ar-pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0f1f33; color: #e6eef8; overflow-x: auto; font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; }
.ar-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.ar-stats div { flex: 1 1 140px; padding: 12px 14px; border: 1px solid #e3ebf5; border-radius: 12px; background: #f8fbff; }
.ar-stats strong { display: block; font-size: 1.5rem; color: #0f1f33; font-variant-numeric: tabular-nums; }
.ar-stats span { font-size: .82rem; color: #46607d; }
.ar-download { font-weight: 700; color: #1d4f8c; }

@media (max-width: 900px) {
  .ar-grid { grid-template-columns: 1fr; }
  .ar-side { position: static; max-height: 60vh; }
  .ar-main { padding: 18px 16px 24px; }
  .ar-access dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-surface, .ar-group summary::before { transition: none; }
}

/* Long URLs, paths and identifiers must wrap instead of widening the page on phones. */
.ar-grid > * { min-width: 0; }
.ar-controls select { max-width: 100%; }
.ar-op p, .ar-op dd, .ar-op td, .ar-op summary, .ar-path, .ar-head p { overflow-wrap: anywhere; word-break: normal; }
.ar-op h2 > * { min-width: 0; }
