/* Baiqi Studio - tool reference page.
   Kept separate from styles.css so the shared site stylesheet is not touched by a
   generated-content page. Only classes prefixed .tools-* are defined here; the rest
   (topbar, doc-hero, section-pad, button, footer, nav dropdown) comes from
   styles.css / nav.css. */

.tools-hero-lede {
  max-width: 62ch;
}

.tools-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tools-count {
  align-items: baseline;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  padding: 7px 14px;
}

.tools-count strong {
  font-size: 15px;
}

.tools-count span {
  font-size: 12.5px;
  opacity: .78;
}

.tools-body {
  margin: 0 auto;
  max-width: 1120px;
  padding: 40px 0 100px;
}

.tools-controls {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  position: sticky;
  top: 78px;
  z-index: 20;
}

.tools-search {
  border: 1px solid var(--line);
  border-radius: 9px;
  flex: 1 1 320px;
  font-family: inherit;
  font-size: 14.5px;
  min-width: 0;
  padding: 11px 13px;
}

.tools-search:focus {
  border-color: #7ba05b;
  outline: 2px solid rgba(123, 160, 91, .22);
}

.tools-domain {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14.5px;
  max-width: 260px;
  padding: 11px 13px;
}

.tools-status {
  color: #5c6b5e;
  font-size: 13px;
  margin: 18px 0 10px;
}

.tools-status b {
  color: #1d2a20;
}

.tools-list {
  display: grid;
  gap: 10px;
}

.tools-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.tools-item[open] {
  border-color: #b9cfa2;
}

.tools-summary {
  align-items: baseline;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 14px 16px;
}

.tools-summary::-webkit-details-marker {
  display: none;
}

.tools-summary:hover {
  background: #f7faf5;
}

.tools-name {
  color: #16211a;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
}

.tools-summary-text {
  color: #55645a;
  flex: 1 1 320px;
  font-size: 13.5px;
  min-width: 0;
}

.tools-tag {
  background: #eef4e7;
  border-radius: 999px;
  color: #4d6b3a;
  font-size: 11.5px;
  letter-spacing: .02em;
  padding: 3px 9px;
  white-space: nowrap;
}

.tools-tag-params {
  background: #f0f1ee;
  color: #5f6b62;
}

.tools-detail {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.tools-detail p {
  color: #3d4b41;
  font-size: 14px;
  line-height: 1.62;
  margin: 0 0 14px;
}

.tools-params {
  border-collapse: collapse;
  font-size: 13.5px;
  width: 100%;
}

.tools-params th {
  border-bottom: 1px solid var(--line);
  color: #6b7a6e;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 0 10px 8px 0;
  text-align: left;
  text-transform: uppercase;
}

.tools-params td {
  border-bottom: 1px solid #eef1ec;
  padding: 9px 10px 9px 0;
  vertical-align: top;
}

.tools-params tr:last-child td {
  border-bottom: 0;
}

.tools-param-name {
  color: #16211a;
  font-family: "DM Mono", ui-monospace, monospace;
  white-space: nowrap;
}

.tools-param-type {
  color: #7a8a7d;
  font-size: 12.5px;
  white-space: nowrap;
}

.tools-req {
  color: #9a5b2a;
  font-size: 11px;
  letter-spacing: .04em;
  margin-left: 6px;
  text-transform: uppercase;
}

.tools-empty,
.tools-note {
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: #5c6b5e;
  font-size: 13.5px;
  padding: 18px;
}

.tools-more {
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 720px) {
  .tools-controls {
    position: static;
  }

  .tools-domain {
    max-width: none;
    width: 100%;
  }
}
