/* /docs/: Hello24 Custom API reference (built from openapi.yaml), console-style layout:
   sticky nav | documentation (light) | requests and responses (dark). Uses blog.css for .post-hero and .prose. */
.api { --code-bg: #142016; --code-bg-2: #1c2b1f; --code-line: rgba(255,255,255,.09); --code-text: #e6efe0; --code-muted: #9fb09a; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-hero { padding-bottom: 44px; }
.api-lead { margin: 18px auto 0; max-width: 34em; color: var(--muted); font-size: 19px; line-height: 1.55; }
.api-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* Shell: nav + rows */
.api-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); border-top: 1px solid var(--line); }
.api-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 84px); overflow-y: auto; padding: 26px 14px 40px 22px; font-size: 14px; border-right: 1px solid var(--line); }
.api-nav p { margin: 22px 0 6px 10px; color: var(--text); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.api-nav p:first-child { margin-top: 0; }
.api-nav ol { list-style: none; margin: 0; padding: 0; }
.api-nav a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.api-nav a:hover { color: var(--text); background: #eef6e6; }
.api-nav a.active { color: var(--text); background: #e4f1d8; font-weight: 500; }

.api-method { flex: none; display: inline-block; min-width: 40px; padding: 1px 6px; border-radius: 5px; font: 700 11px/1.6 var(--mono); letter-spacing: .02em; text-align: center; background: #e4f1d8; color: #2b6a31; }
.api-method-get { background: #e3eefb; color: #1f5c99; }
.api-method-delete { background: #fbe6e3; color: #9a2f22; }

.api-main { min-width: 0; }
.api-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); scroll-margin-top: 76px; }
.api-doc { min-width: 0; padding: 44px 48px 48px; border-bottom: 1px solid var(--line); }
.api-side { min-width: 0; padding: 44px 32px 32px; background: var(--code-bg); border-bottom: 1px solid var(--code-line); }
.api-side-sticky { position: sticky; top: 96px; display: grid; gap: 22px; }
.api-side:not(:has(.api-side-sticky)) { display: grid; align-content: start; gap: 22px; }

.api-doc h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 18px; }
.api-group .api-doc { background: linear-gradient(180deg, #f3f8ed, transparent); }
.api-tag { color: var(--muted); font-size: 16.5px; }
.api-doc.prose { font-size: 16.5px; line-height: 1.68; }
.api-doc.prose > h2 { margin-top: 0; }

/* Quick start */
.api-features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.api-features li { padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.api-features h3 { font-size: 16.5px; font-weight: 500; }
.api-features p { margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.api-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.api-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 50px; border-top: 1px solid var(--line); }
.api-steps li::before { content: counter(step); position: absolute; left: 0; top: 15px; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.api-steps h3 { font-size: 16.5px; font-weight: 500; }
.api-steps p { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.api-steps strong { color: var(--text); font-weight: 600; }
.api-note { padding: 14px 18px; border-left: 3px solid #d79b2b; border-radius: 0 12px 12px 0; background: #fbf5e6; font-size: 15.5px; line-height: 1.6; }

/* Operation */
.api-endpoint { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; overflow-wrap: anywhere; }
.api-endpoint code { font: 500 14.5px var(--mono); color: var(--text); }
.api-op h3, .api-model h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.api-op h4 { margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text); }
.api-op .prose, .api-model .prose { font-size: 15.5px; line-height: 1.65; }
.api-op .prose > :first-child, .api-model .prose > :first-child { margin-top: 12px; }
.api-op .prose h2, .api-op .prose h3, .api-op .prose h4 { font-size: 17px; margin-top: 1.4em; }
.api-op .prose table, .api-model .prose table { font-size: 14px; }
.api-op .prose th { white-space: nowrap; }
.api-op .prose pre { font-family: var(--mono); font-size: 13.5px; }
.api-variant { margin: 18px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--mint); }

/* Field tables: name | type | description, no header (console style) */
.api-table { overflow-x: auto; }
.api-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.api-table td { padding: 10px 12px 10px 0; vertical-align: top; border-top: 1px solid var(--line); color: #26332a; }
.api-table tr:first-child td { border-top: 0; }
.api-table td:first-child { width: 34%; }
.api-table td:nth-child(2) { width: 18%; color: var(--muted); font-size: 13px; }
.api-table code, .api-meta code { padding: 1px 5px; border-radius: 5px; background: #eef6e6; font: 13px var(--mono); overflow-wrap: anywhere; }
.api-table td:first-child code { background: none; padding: 0; font-weight: 600; color: var(--text); }
.api-req { display: block; margin-top: 2px; font-size: 11.5px; color: #b0562a; }
.api-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.api-responses { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.api-responses li { padding: 8px 0; border-top: 1px solid var(--line); }
.api-responses li:first-child { border-top: 0; }
.api-status { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 5px; font: 700 12px/1.6 var(--mono); background: #e4f1d8; color: #2b6a31; }
.api-status-4, .api-status-5 { background: #fbe6e3; color: #9a2f22; }

/* Dark code boxes */
.api-sample { border-radius: 12px; background: var(--code-bg-2); box-shadow: 0 0 0 1px var(--code-line) inset; overflow: hidden; }
.api-sample-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--code-line); }
.api-sample-title { flex: none; color: var(--code-text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.api-sample-label { color: var(--code-muted); font-size: 12.5px; }
.api-sample-bar .api-status { background: rgba(108,186,66,.18); color: #a9dc8a; }
.api-sample-bar .api-status-4, .api-sample-bar .api-status-5 { background: rgba(230,110,90,.18); color: #f2a493; }
.api-pick { min-width: 0; max-width: 62%; padding: 4px 26px 4px 9px; border: 1px solid var(--code-line); border-radius: 7px; background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239fb09a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--code-text); font: 12.5px var(--sans); text-overflow: ellipsis; appearance: none; cursor: pointer; }
.api-pick option { color: #142016; background: #fff; }
.api-copy { margin-left: auto; padding: 4px 10px; border: 0; border-radius: 7px; background: rgba(255,255,255,.08); color: var(--code-text); font: 500 12px var(--sans); cursor: pointer; }
.api-copy:hover { background: rgba(255,255,255,.18); }
.api-pane-status { margin: 0; padding: 10px 14px 0; }
.api-pane-status .api-status { background: rgba(108,186,66,.18); color: #a9dc8a; }
.api-pane-status .api-status-4, .api-pane-status .api-status-5 { background: rgba(230,110,90,.18); color: #f2a493; }
.api-pane pre { margin: 0; padding: 14px 16px 16px; max-height: 520px; overflow: auto; color: var(--code-text); font: 400 13px/1.6 var(--mono); white-space: pre; }
.api-pane pre code { padding: 0; background: none; color: inherit; font: inherit; }

@media (max-width: 1180px) {
  .api-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .api-doc { padding: 36px 32px 40px; }
  .api-side { padding: 36px 22px 28px; }
}
@media (max-width: 980px) {
  .api-shell { grid-template-columns: minmax(0, 1fr); }
  .api-nav { display: none; }
  .api-row { grid-template-columns: minmax(0, 1fr); }
  .api-side:empty, .api-side:not(:has(*)) { display: none; }
  .api-side-sticky { position: static; }
}
@media (max-width: 600px) {
  .api-doc { padding: 30px 16px 34px; }
  .api-side { padding: 22px 16px; }
  .api-features { grid-template-columns: minmax(0, 1fr); }
  .api-table td:first-child { width: auto; }
}
