/* Page-specific content styles carried over from the old theme: utility roles,
   LLM-ready docs page, connector navigation, field reference, release notes. */

/* Utility classes ----------------------------------------------------- */
.blue-text { color: var(--adv-brand); }
.grey-text, .yellow-text { color: var(--adv-text-secondary); }
.red-text { color: var(--adv-brand-hover); }

.btn-icon {
  width: 15px; height: auto; margin-left: var(--adv-space-x-small); margin-bottom: var(--adv-space-xx-small);
  vertical-align: middle; filter: brightness(0) invert(1);
}

.section-filter { padding: var(--adv-space-x-small) 0; margin: var(--adv-space-small) 0; }
.section-filter label { cursor: pointer; transition: opacity var(--dx-duration) var(--dx-ease); }
.section-filter label:hover { opacity: 0.8; }
.section-filter input[type="checkbox"] { cursor: pointer; }

/* Light/dark image switching */
html[data-theme="light"] .only-dark, html[data-theme="dark"] .only-light { display: none !important; }

/* LLM-ready docs page ------------------------------------------------- */
.llm-container header {
  text-align: center;
  border-bottom: 1px solid var(--adv-border);
  padding-bottom: var(--adv-space-small);
  margin-bottom: var(--adv-space-medium);
  color: var(--adv-text);
}

.llm-container .controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--adv-space-medium);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--adv-space-medium);
  background-color: var(--adv-surface-2);
  padding: var(--adv-space-small);
  border-radius: var(--adv-radius-medium);
}

.llm-container label {
  font-weight: 600;
}

.llm-container select,
.llm-container input[type="checkbox"] {
  font: inherit;
  border-radius: var(--adv-radius-medium);
  border: 1px solid var(--adv-border);
  background-color: var(--adv-surface);
  color: var(--adv-text);
  cursor: pointer;
}

.llm-container #persona-select {
  padding: var(--adv-space-x-small) var(--adv-space-small);
  min-width: 250px;
}

.llm-container #connectors-checkbox {
  width: 1.25rem;
  height: 1.25rem;
}

.llm-container #output-display {
  background-color: var(--adv-surface-2);
  padding: var(--adv-space-small);
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 60vh;
  overflow-y: auto;
  font-family: var(--adv-font-mono, monospace);
  font-size: 0.9em;
  color: var(--adv-text);
}

.llm-container footer {
  text-align: center;
  margin-top: var(--adv-space-medium);
  padding-top: var(--adv-space-medium);
  border-top: 1px solid var(--adv-border);
  font-size: 0.9em;
  color: var(--adv-text-secondary);
}

.llm-persona-grid {
  display: flex;
  flex-direction: column;
  gap: var(--adv-space-large);
  margin: var(--adv-space-large) auto var(--adv-space-xx-large);
  max-width: 700px;
  background-color: var(--adv-surface-2);
  padding: var(--adv-space-large);
  border-radius: var(--adv-radius-medium);
}

.llm-persona-card,
.llm-docs-section,
.llm-persona-description-card {
  background: var(--adv-surface);
  border: 1px solid var(--adv-border);
  border-radius: var(--adv-radius-medium);
  box-shadow: none;
}

.llm-persona-card {
  padding: var(--adv-space-large) var(--adv-space-x-large);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-width: 0;
}

.llm-persona-card .persona-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--adv-space-small);
  object-fit: contain;
}

.llm-persona-card .persona-title,
.persona-desc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--adv-text);
  margin: var(--adv-space-small) 0 var(--adv-space-small) 0;
}

.persona-desc-title {
  font-size: 1.2rem;
}

.llm-persona-card .persona-description {
  color: var(--adv-text);
  font-size: 1rem;
  margin-bottom: var(--adv-space-small);
}

.llm-persona-card .persona-benefits,
.persona-desc-benefits {
  margin: 0 0 var(--adv-space-small) var(--adv-space-medium);
  padding: 0;
  color: var(--adv-text);
  font-size: 0.98rem;
}

.llm-persona-card .persona-meta {
  font-size: 0.85rem;
  color: var(--adv-text-secondary);
  margin-bottom: var(--adv-space-small);
}

.llm-persona-card .view-docs-btn {
  margin-top: var(--adv-space-small);
  background: var(--adv-brand);
  color: var(--adv-surface);
  border: none;
  border-radius: var(--adv-radius-medium);
  padding: var(--adv-space-x-small) var(--adv-space-small);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--dx-duration) var(--dx-ease);
}

.llm-persona-card .view-docs-btn:hover,
.llm-persona-card .view-docs-btn:focus {
  background: var(--adv-brand-hover);
}

.view-docs-btn img {
  filter: brightness(0) invert(1) !important;
  background-color: transparent !important;
}

.scroll-to-card-top-btn {
  margin-top: var(--adv-space-small);
  background: var(--adv-brand);
  color: var(--adv-surface);
  border: none;
  border-radius: var(--adv-radius-medium);
  padding: var(--adv-space-x-small) var(--adv-space-small);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--dx-duration) var(--dx-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--adv-space-x-small);
  width: 100%;
}

.scroll-to-card-top-btn:hover,
.scroll-to-card-top-btn:focus {
  background: var(--adv-brand-hover);
}

.llm-docs-section {
  padding: var(--adv-space-large) var(--adv-space-medium);
  margin-bottom: var(--adv-space-large);
}

.llm-docs-header {
  display: flex;
  align-items: center;
  gap: var(--adv-space-medium);
  margin-bottom: var(--adv-space-small);
}

.llm-docs-meta {
  font-size: 0.95rem;
  color: var(--adv-text-secondary);
  margin-bottom: var(--adv-space-small);
}

.llm-docs-toc {
  margin-bottom: var(--adv-space-medium);
}

.llm-docs-content {
  background: var(--adv-surface);
  border-radius: var(--adv-radius-medium);
  padding: var(--adv-space-medium);
  font-family: var(--adv-font-mono, monospace);
  font-size: 0.98em;
  color: var(--adv-text);
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: none;
}

.llm-options-bar.llm-options-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: var(--adv-space-small) 0 var(--adv-space-small);
}

.llm-checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 500;
  gap: var(--adv-space-small);
  margin-bottom: var(--adv-space-medium);
  padding: var(--adv-space-small);
  background: var(--adv-surface);
  border: 1px solid var(--adv-border);
  border-radius: var(--adv-radius-medium);
  transition: background-color var(--dx-duration) var(--dx-ease);
  cursor: pointer;
}

.llm-checkbox:hover {
  background: var(--adv-surface-2);
}

.llm-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--adv-brand);
  margin-top: var(--adv-space-xx-small);
  flex-shrink: 0;
  cursor: pointer;
}

.llm-checkbox span {
  flex: 1;
  line-height: 1.4;
}

.llm-checkbox small {
  display: block;
  margin-top: var(--adv-space-x-small);
  color: var(--adv-text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}

.llm-error-message {
  color: var(--adv-ink-danger);
  background: var(--adv-tint-danger);
  border: 1px solid var(--adv-ink-danger);
  border-radius: var(--adv-radius-medium);
  padding: var(--adv-space-small) var(--adv-space-medium);
  margin: var(--adv-space-medium) auto 0;
  text-align: center;
  font-weight: 600;
  max-width: 500px;
  display: block;
}

.llm-persona-description-card {
  margin: var(--adv-space-medium) auto;
  padding: var(--adv-space-medium) var(--adv-space-medium);
  border-radius: var(--adv-radius-medium);
  box-shadow: none;
  max-width: 700px;
}

.persona-toc-container {
  width: 100%;
  margin: var(--adv-space-small) 0 var(--adv-space-small);
}

.persona-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--adv-text);
  margin-bottom: var(--adv-space-x-small);
  cursor: pointer;
}

.toc-text {
  flex: 1;
}

.persona-toc-count {
  font-size: 0.88em;
  color: var(--adv-text-secondary);
  font-style: italic;
  font-weight: 400;
  margin-left: var(--adv-space-small);
}

.toc-chevron {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.5em;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23111928' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
  vertical-align: middle;
  transform-origin: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.persona-toc-content {
  padding: var(--adv-space-small);
  border: 1px solid var(--adv-border);
  border-radius: var(--adv-radius-medium);
  background: var(--adv-surface);
  font-size: 0.97rem;
}

.persona-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.persona-toc-header-item {
  display: block;
  padding: var(--adv-space-x-small) var(--adv-space-small);
  margin: var(--adv-space-small) 0 var(--adv-space-x-small);
  background: var(--adv-surface-2);
  color: var(--adv-text);
  border-left: 4px solid var(--adv-brand);
  border-radius: var(--adv-radius-small);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

.persona-toc-item {
  display: flex;
  align-items: center;
  padding: var(--adv-space-x-small) 0;
  border-bottom: 1px solid var(--adv-border);
  font-size: 0.9rem;
}

.persona-toc-item:last-child {
  border-bottom: none;
}

.toc-title {
  font-weight: 500;
  color: var(--adv-text);
  flex: 1;
}

.toc-link {
  color: var(--adv-brand);
  text-decoration: none;
  transition: color var(--dx-duration) var(--dx-ease);
  flex: 1;
}

.toc-link:hover {
  color: var(--adv-brand-hover);
  text-decoration: underline;
}

.toc-link:focus {
  outline: 2px solid var(--adv-brand);
  outline-offset: 2px;
  border-radius: var(--adv-radius-x-small);
}

@media (max-width: 600px) {
  .llm-persona-grid {
    gap: var(--adv-space-medium);
    padding: var(--adv-space-small);
  }
  .llm-docs-section {
    padding: var(--adv-space-small) var(--adv-space-x-small);
  }
}

/* Connector pages: Setup guide / Most-used fields / Troubleshooting / Tips, styled as the
   site's tabs (see the sphinx_design tab rules in adverity.css) */
.connector-additional-nav {
  display: flex; flex-wrap: wrap; gap: 0 var(--adv-space-medium);
  margin: var(--adv-space-small) 0 var(--adv-space-medium);
  border-bottom: 1px solid var(--adv-border);
}
.connector-additional-nav-button a, .connector-additional-nav-button.current span {
  display: inline-flex; align-items: center; height: var(--adv-control-lg); margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--adv-text-secondary);
}
.dx-prose .connector-additional-nav-button a { text-decoration: none; }
.connector-additional-nav-button a:hover { color: var(--adv-text-strong); }
.connector-additional-nav-button.current span { color: var(--adv-brand); border-bottom-color: var(--adv-brand); cursor: default; }

/* Connector field reference (fields-json-to-rst.py output) */
.fr-wrap {
  border: 1px solid var(--adv-border);
  border-radius: var(--adv-radius-medium);
  overflow: hidden;
  margin: 1.5em 0;
}

.fr-head,
details.fr-row summary,
.fr-row.fr-row--static {
  display: grid;
  grid-template-columns: 1.4fr 1fr 90px 20px;
  gap: var(--adv-space-small);
  align-items: start;
  padding: var(--adv-space-x-small) var(--adv-space-small);
}

.fr-head {
  background: var(--adv-surface-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adv-text-muted);
  border-bottom: 1px solid var(--adv-border);
  align-items: center;
}

details.fr-row {
  border-bottom: 1px solid var(--adv-border);
  background: var(--adv-surface);
}
details.fr-row:last-child,
.fr-row.fr-row--static:last-child {
  border-bottom: none;
}

.fr-row.fr-row--static {
  background: var(--adv-surface);
  border-bottom: 1px solid var(--adv-border);
}

details.fr-row summary {
  list-style: none;
  cursor: pointer;
}
details.fr-row summary::-webkit-details-marker {
  display: none;
}
details.fr-row summary:hover {
  background: var(--adv-brand-tint);
}

.fr-api,
.fr-ui {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fr-api {
  font-family: var(--adv-font-mono, monospace);
  font-size: 13.5px;
  color: var(--adv-text);
}

.fr-ui {
  font-size: 13px;
  color: var(--adv-text-secondary);
}

.fr-usage {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px var(--adv-space-x-small);
  border-radius: var(--adv-radius-medium);
  white-space: nowrap;
  justify-self: start;
}
.fr-usage--metric {
  color: var(--adv-brand);
  background: var(--adv-brand-soft);
}
.fr-usage--dimension {
  color: var(--adv-text-secondary);
  background: var(--adv-surface-2);
}

.fr-chevron {
  width: 16px;
  height: 16px;
  color: var(--adv-text-muted);
  align-self: center;
  transition: transform var(--dx-duration) var(--dx-ease);
  justify-self: end;
}
details.fr-row[open] .fr-chevron {
  transform: rotate(90deg);
}

.fr-detail {
  padding: var(--adv-space-xx-small) var(--adv-space-small) var(--adv-space-small) var(--adv-space-small);
  border-top: 1px dashed var(--adv-border);
  margin-top: calc(-1 * var(--adv-space-xx-small));
}

.fr-desc {
  font-size: 13.5px;
  color: var(--adv-text-secondary);
  margin: var(--adv-space-x-small) 0 0;
  max-width: 68ch;
}

.fr-chips {
  display: flex;
  flex-direction: column;
  gap: var(--adv-space-x-small);
  margin-top: var(--adv-space-x-small);
}
.fr-chip-group {
  display: flex;
  align-items: center;
  gap: var(--adv-space-x-small);
  flex-wrap: wrap;
}
.fr-chip-extra:not([hidden]) {
  display: contents;
}
.fr-chip-label {
  font-size: 11px;
  color: var(--adv-text-muted);
  margin-right: 2px;
  flex: 0 0 auto;
}
.fr-chip {
  font-size: 11.5px;
  color: var(--adv-text-secondary);
  background: var(--adv-surface-2);
  border: 1px solid var(--adv-border);
  border-radius: var(--adv-radius-medium);
  padding: 2px var(--adv-space-x-small);
  overflow-wrap: anywhere;
}
.fr-chip.fr-chip--mono {
  font-family: var(--adv-font-mono, monospace);
  font-size: 11px;
}
.fr-chip-more {
  font-size: 11px;
  font-weight: 600;
  color: var(--adv-brand);
  background: none;
  border: none;
  padding: 2px var(--adv-space-xx-small);
  cursor: pointer;
  white-space: nowrap;
}
.fr-chip-more:hover {
  text-decoration: underline;
}

/* Release notes: endpoint lists under API entries (scripts/release-agent/simple/notes.py) */
p.rn-endpoints-label {
  margin-bottom: var(--adv-space-xx-small);
}
ul.rn-endpoints {
  margin-bottom: var(--adv-space-large);
}

