/* The API Hub (tools/api-reference/hub.mjs): packages, APIs and operations.
   Built on the theme's own tokens, so light, dark and high contrast follow. */
.ah-hero, .ah-head { padding: 8px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.ah-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ah-hero h1, .ah-head h1 { margin: 0 0 8px; }
.ah-lead { max-width: 820px; color: var(--text-dim); font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.ah-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-dim); margin: 0 0 14px; }
.ah-stats b { color: var(--text); }
.ah-search input, .ah-filter { width: 100%; max-width: 640px; padding: 11px 14px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--text); box-sizing: border-box; }
.ah-filter { max-width: 420px; padding: 8px 12px; font-size: 14px; }
.ah-hits { list-style: none; padding: 0; margin: 10px 0 0; max-width: 820px; border: 1px solid var(--card-line); border-radius: 10px; background: var(--card); }
.ah-hits li { border-top: 1px solid var(--line); }
.ah-hits li:first-child { border-top: 0; }
.ah-hits a, .ah-hits li { display: block; padding: 9px 14px; text-decoration: none; color: var(--text); }
.ah-hits a:hover { background: var(--wash); }
.ah-hits span, .ah-hits small { color: var(--text-dim); }
.ah-start { margin: 0 0 26px; }
.ah-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 12px; }
.ah-steps > div { border: 1px solid var(--card-line); border-radius: 12px; background: var(--card); padding: 14px 16px; }
.ah-steps p { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.ah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 26px; }
.ah-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 12px;
  background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.ah-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(var(--shadow-rgb, 0,0,0), .08); }
.ah-card[hidden] { display: none; }
.ah-card strong { font-size: 15px; }
.ah-pkg strong { font-size: 17px; }
.ah-pkg-kind { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ah-desc { color: var(--text-dim); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ah-meta { font-size: 12.5px; color: var(--text-dim); overflow-wrap: anywhere; }
.ah-verbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: auto; }
.ah-n { font-size: 12px; color: var(--text-dim); margin-right: 6px; }
.ah-verb { display: inline-block; min-width: 48px; text-align: center; padding: 2px 6px; border-radius: 6px; font: 600 11.5px/1.5 "IBM Plex Mono", monospace; color: #fff; }
.ah-get { background: #1f7a4d; } .ah-post { background: #1d5fbf; } .ah-put, .ah-patch { background: #a3620a; } .ah-delete { background: #b42318; }
.ah-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 12px; }
.ah-btn { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.ah-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 8px; }
.ah-tabs a { padding: 8px 14px; text-decoration: none; color: var(--text-dim); border-bottom: 2px solid transparent; font-weight: 600; font-size: 14px; }
.ah-tabs a:hover { color: var(--text); border-bottom-color: var(--accent); }
section[id] { scroll-margin-top: 80px; }
.ah-facts th { text-align: left; white-space: nowrap; vertical-align: top; width: 1%; padding-right: 18px; }
.ah-hint { color: var(--text-dim); }
.ah-op { border: 1px solid var(--card-line); border-radius: 10px; background: var(--card); margin: 0 0 8px; overflow: hidden; }
.ah-op > summary { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.ah-op > summary::-webkit-details-marker { display: none; }
.ah-op[open] > summary { border-bottom: 1px solid var(--line); background: var(--wash); }
.ah-path { font-size: 13.5px; overflow-wrap: anywhere; }
.ah-sum { color: var(--text-dim); font-size: 14px; margin-left: auto; }
.ah-op-body { padding: 4px 16px 14px; min-width: 0; }
.ah-op-body h4 { margin: 14px 0 6px; font-size: 14px; }
.ah-code { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--wash-2, var(--wash)); overflow-x: auto; font-size: 12.5px; line-height: 1.5; max-height: 360px; }
.ah-fields td, .ah-fields th { vertical-align: top; }
.ah-fields small { color: var(--text-dim); }
@media (max-width: 640px) {
  .ah-sum { margin-left: 0; flex-basis: 100%; }
  .ah-grid { grid-template-columns: 1fr; }
}
