/* Docs Page Specific Styles */
.docs-layout {
  display: flex;
  flex-direction: column; /* keep column layout */
  gap: 1rem;
  height: auto; /* allow the document to determine height so the page scrolls normally */
}

.docs-tabs-horizontal {
  display: flex;
  flex-direction: row; /* Ensure tabs are in a row */
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--surface);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.docs-tab {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  user-select: none;
  border: 1px solid transparent;
}

.docs-tab:hover {
  background-color: var(--surface);
}

.docs-tab.active {
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary-variant);
  font-weight: 700;
}

.docs-content {
  flex-grow: 1;
  height: auto; /* let the page scroll; do not force full viewport height */
}

.docs-iframe {
  width: 100%;
  min-height: 560px; /* ensure a reasonable visible area, but don't force page to be non-scrollable */
  height: auto;
  border: none;
  border-radius: 8px;
  background-color: #fff; /* To hide the loading flicker */
}
