/* La pagina «API v3»: documentazione delle rotte /v3 e prova delle chiamate. */
.ad-page { padding: 0 32px 60px; color: #14161a; }
.ad-page code { font-size: 12px; background: #f3f4f6; padding: 1px 5px; border-radius: 4px; color: #2b2f36; }

.ad-warn { background: #fdecee; color: #8a1c28; border: 1px solid #f3c2c8; border-radius: 8px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; }
.ad-warn code { background: #fff; }

.ad-card { max-width: 1100px; margin-bottom: 20px; }
.ad-card .card-block { padding: 22px 26px 22px; }
.ad-prova { margin-top: 16px; background: #f7f8fa; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #535c6b; }
.ad-prova .ad-actions { margin-top: 10px; }
.ad-scopes { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 10px; }
.ad-scopes-col > div:last-child { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 520px; }
.ad-scope-opt { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #2b2f36; }
.ad-o { margin: 14px 0 -6px; font-size: 12px; color: #9B9B9B; text-transform: uppercase; letter-spacing: .06em; }
.ad-ottieni-ko { color: #b02a37; font-weight: 700; }
.ad-auth { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.ad-grow { flex: 1 1 360px; }
.ad-auth-btns { display: flex; gap: 8px; }
.ad-field { display: flex; flex-direction: column; min-width: 140px; }
.ad-lab { font-size: 12px; color: #6c757d; margin: 0 0 4px; font-weight: 600; }
.ad-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #535c6b; margin: 10px 0 0; }
.ad-tokinfo { margin-top: 12px; font-size: 13px; color: #535c6b; background: #f7f8fa; border-radius: 6px; padding: 10px 12px; }
.ad-tokinfo.ko { background: #fff6e5; }
.ad-kv { display: flex; gap: 10px; padding: 2px 0; word-break: break-all; }
.ad-kv .k { color: #9B9B9B; min-width: 70px; flex: none; }
.ad-kv .v { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.ad-avviso { color: #b02a37; font-weight: 700; margin-top: 6px; }
.ad-howto { margin-top: 14px; font-size: 13px; color: #535c6b; }
.ad-howto summary { cursor: pointer; font-weight: 700; color: #14161a; }
.ad-howto p { margin: 10px 0; max-width: 900px; }

.ad-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; background: #f5f6f8; padding: 10px 0; }
.ad-bar #ad-q { flex: 1 1 380px; max-width: 640px; }
.ad-bar select { width: auto; }

.ad-layout { display: flex; gap: 24px; align-items: flex-start; }
.ad-nav { flex: 0 0 230px; position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; border-radius: 8px; padding: 8px 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ad-nav-item { display: flex; justify-content: space-between; padding: 6px 14px; font-size: 13px; color: #2b2f36; text-decoration: none; }
.ad-nav-item:hover { background: #f3f4f6; text-decoration: none; color: #14161a; }
.ad-main { flex: 1; min-width: 0; }
.ad-count { color: #9B9B9B; font-size: 12px; }

.ad-mod { margin-bottom: 28px; scroll-margin-top: 70px; }
.ad-mod-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid #e3e5e8; padding-bottom: 6px; margin-bottom: 8px; }
.ad-mod-head h2 { font-size: 19px; font-weight: 800; margin: 0; }
.ad-mod-note { margin: 0 0 10px; font-size: 13px; }
.ad-mod-note summary { cursor: pointer; color: #535c6b; }
.ad-mod-note[open] { background: #fff; border-radius: 8px; padding: 10px 16px 14px; }

.ad-op { background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; margin-bottom: 6px; scroll-margin-top: 70px; }
.ad-op.open { border-color: #b9c0ca; }
.ad-op-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; cursor: pointer; font: inherit; color: inherit; }
.ad-op-head:hover { background: #fafbfc; }
.ad-op-head:focus-visible { outline: 2px solid #4c8bf5; outline-offset: -2px; }
.ad-m { flex: none; font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 5px 0; width: 58px; text-align: center; border-radius: 4px; color: #fff; }
.m-get { background: #2f7dd1; }
.m-post { background: #1f9254; }
.m-put { background: #c27c0e; }
.m-patch { background: #8a5cc7; }
.m-delete { background: #c8323f; }
.ad-path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ad-sum { color: #6c757d; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ad-chips { display: flex; gap: 6px; flex: none; }
.ad-chip { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eef1f5; color: #535c6b; white-space: nowrap; }
.ad-chip.pub { background: #e8f5ee; color: #146c43; }
.ad-chip.disp { background: #fff3d6; color: #8a5a00; }
.ad-chip.manca { background: #fdecee; color: #b02a37; text-decoration: line-through; }

.ad-op-body { border-top: 1px solid #e3e5e8; padding: 14px 18px 18px; font-size: 13px; }
.ad-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #9B9B9B; margin: 16px 0 6px; }
.ad-op-body > .ad-h:first-child { margin-top: 0; }
.ad-descr { white-space: pre-wrap; color: #2b2f36; line-height: 1.5; }
.ad-meta { margin-top: 12px; color: #6c757d; }
.ad-whisper { color: #9B9B9B; font-size: 12.5px; }
.ad-table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.ad-table th { text-align: left; font-size: 11.5px; color: #6c757d; border-bottom: 1px solid #e3e5e8; padding: 4px 8px; white-space: nowrap; }
.ad-table td { border-bottom: 1px solid #f0f1f3; padding: 5px 8px; vertical-align: top; }
.ad-table td:first-child { white-space: nowrap; }
.ad-pre { background: #1e2228; color: #e6e9ee; border-radius: 6px; padding: 10px 12px; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; margin: 6px 0; }
.ad-pre.small { max-height: 220px; font-size: 11.5px; }
.ad-resp { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.ad-exname { font-size: 11.5px; color: #6c757d; margin-top: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ad-code { font: 700 11.5px/1 ui-monospace, Menlo, Consolas, monospace; padding: 4px 7px; border-radius: 4px; background: #eef1f5; }
.ad-code.c2 { background: #e8f5ee; color: #146c43; }
.ad-code.c4 { background: #fff3d6; color: #8a5a00; }
.ad-code.c5, .ad-code.cr { background: #fdecee; color: #b02a37; }

.ad-try { margin-top: 18px; border-top: 1px dashed #d5d9df; padding-top: 4px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin-bottom: 10px; }
.ad-body { font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; margin-bottom: 10px; }
.ad-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.lsBtn.ad-danger { background: #c8323f !important; border-color: #c8323f !important; color: #fff !important; }
.ad-confirm { margin-top: 12px; background: #fdecee; border: 1px solid #f3c2c8; color: #8a1c28; border-radius: 8px; padding: 12px 14px; }
.ad-confirm .ad-actions { margin-top: 10px; }
.ad-esito { margin-top: 12px; }
.ad-status { display: flex; gap: 10px; align-items: center; color: #6c757d; font-size: 12.5px; }

/* markdown dei docs */
.ad-md { color: #2b2f36; line-height: 1.55; max-width: 980px; }
.ad-md p { margin: 6px 0; }
.ad-md ul, .ad-md ol { margin: 6px 0 6px 20px; padding: 0; }
.ad-md blockquote { border-left: 3px solid #d5d9df; margin: 8px 0; padding: 2px 12px; color: #535c6b; }
.ad-md .ad-mdh { font-weight: 800; margin: 14px 0 6px; font-size: 14px; }
.ad-tw { overflow-x: auto; }
.ad-mdt { border-collapse: collapse; font-size: 12.5px; margin: 8px 0; }
.ad-mdt th, .ad-mdt td { border: 1px solid #e3e5e8; padding: 4px 8px; vertical-align: top; text-align: left; }
.ad-mdt th { background: #f7f8fa; }
.ad-rel { border-bottom: 1px dotted #9B9B9B; }
.ad-md + .ad-md { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f1f3; }

@media (max-width: 991px) {
  .ad-page { padding: 0 16px 40px; }
  .ad-layout { display: block; }
  .ad-nav { display: none; }
  .ad-sum { display: none; }
  .ad-op-head { flex-wrap: wrap; }
  .ad-path { white-space: normal; word-break: break-all; }
}
