.tuning-docs {
  padding-top: 3rem;
  padding-bottom: 4rem;
  max-width: 1200px;
}
.tuning-docs section {
  margin-bottom: 3.5rem;
}
.tuning-docs h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.07;
  max-width: 18ch;
}
.tuning-docs h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.tuning-docs p {
  max-width: 85ch;
  line-height: 1.7;
}
.api-base {
  display: block;
  margin: 1.5rem 0;
  overflow-wrap: anywhere;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.concept-grid article {
  padding: 1.5rem;
  border: 1px solid #dedbd6;
  border-radius: 12px;
  background: #fff;
}
.concept-grid h3 {
  margin: 0 0 0.7rem;
}
.reference-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.reference-controls label {
  display: grid;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
  font-weight: 600;
}
.reference-controls label:last-child {
  flex: 0 1 230px;
}
.reference-controls input,
.reference-controls select,
.operation-input {
  font: inherit;
  min-height: 44px;
  border: 1px solid #aaa59d;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  color: #202020;
  max-width: 100%;
}
.operation {
  border: 1px solid #d8d4cd;
  border-radius: 8px;
  margin: 1rem 0;
  background: #fff;
  overflow: hidden;
}
.operation summary {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 1rem;
  cursor: pointer;
  flex-wrap: wrap;
}
.operation summary::before {
  content: "+";
  font-weight: 700;
}
.operation[open] summary::before {
  content: "−";
}
.operation-path {
  font-family: monospace;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 160px;
  font-size: 0.95rem;
}
.operation-role {
  font-size: 0.8rem;
  color: #5b5752;
}
.method {
  font-family: monospace;
  font-weight: 700;
  min-width: 4rem;
  color: #a92b24;
}
.method-get {
  color: #236043;
}
.operation-detail {
  padding: 0 1rem 1rem;
  border-top: 1px solid #eee;
}
.operation-detail h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}
.operation-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f3ef;
  padding: 1rem;
  border-radius: 6px;
  max-height: 34rem;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}
.operation-detail table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
.operation-detail th,
.operation-detail td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid #e5e1da;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.operation-detail th {
  font-weight: 700;
}
.table-scroll {
  overflow: auto;
}
.operation-fields {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.operation-fields label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.try-button {
  font: inherit;
  border: 1px solid #333;
  background: #222;
  color: #fff;
  border-radius: 5px;
  padding: 0.65rem 1rem;
  margin: 1rem 0;
  min-height: 44px;
  cursor: pointer;
}
.try-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.contract-note {
  color: #625d55;
  font-size: 0.9rem;
}
.tuning-footer {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.tuning-footer p {
  margin: 0.4rem 0;
}
:focus-visible {
  outline: 3px solid #a32822;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .tuning-docs {
    padding-top: 2rem;
  }
  .operation summary {
    gap: 0.5rem;
  }
  .operation-detail th,
  .operation-detail td {
    padding: 0.45rem;
  }
  .reference-controls label:last-child {
    flex: 1;
  }
  .tuning-docs .actions {
    align-items: stretch;
  }
  .tuning-docs .button {
    white-space: normal;
  }
}
/* Preserve readable actions/long headings when a user enlarges text to 200%. */
.tuning-docs h1,
.tuning-docs h2,
.tuning-docs h3,
.tuning-docs code,
.tuning-footer {
  overflow-wrap: anywhere;
}
