/* Cadence-specific components, built on @threespot/tds tokens (--tds-*).
   Linked AFTER tds.css so these win at equal specificity. Only for patterns TDS
   doesn't ship — reach for a TDS component first (manifest/components.json in
   Threespot/tds), Tailwind utilities for layout, and add here only when neither
   fits. Prefix: .cad-* ; scope under .tds like the system's own rules. */

/* Inline "?" button beside a .tds-label (field_help_label). */
.tds .cad-helpbtn { display:inline-flex; align-items:center; padding:2px; border:0; background:transparent;
  color:var(--tds-fg-faint); border-radius:var(--tds-radius-sm); cursor:pointer; }
.tds .cad-helpbtn:hover { color:var(--tds-fg); }
.tds .cad-helpbtn svg { width:16px; height:16px; }

/* Rendered request description (MarkdownHelper::PROSE_CLASSES = "tds-prose
   cad-md"): .tds-prose sized down for a description, not an article. */
.tds .cad-md h1, .tds .cad-md h2 { font-size:15px; font-weight:650; }
.tds .cad-md h3, .tds .cad-md h4 { font-size:14px; font-weight:600; }
.tds .cad-md img { display:block; max-width:100%; margin:.5em 0; border:1px solid var(--tds-line);
  border-radius:var(--tds-radius-sm); }
.tds .cad-md pre { overflow-x:auto; padding:10px 12px; border-radius:var(--tds-radius-sm);
  background:var(--tds-surface-2); font-family:var(--tds-font-mono); font-size:12px; }
.tds .cad-md pre code { padding:0; background:none; }
.tds .cad-md code { font-size:12px; }

/* Disabled controls — TDS ships no disabled state. (contract-form disables
   the scope tier / retainer amount; type-to-confirm disables the delete.) */
.tds .tds-btn:disabled { opacity:.5; cursor:not-allowed; }
.tds .tds-input:disabled, .tds .tds-select:disabled, .tds .tds-textarea:disabled {
  background:var(--tds-surface-2); color:var(--tds-fg-faint); cursor:not-allowed; }

/* TDS gives the off-canvas (<900px) sidebar its pop shadow even while it's
   parked off-screen, which bleeds a grey strip onto the left edge. Only cast
   it while the drawer is open. */
@media (max-width:900px) {
  .tds:not(.tds-nav-open) .tds-sidebar { box-shadow:none; }
}
