/* Framework-owned components on Sand pages. Concept CSS provides the page style. */
.sand-release .ack-diagram svg {
  max-width: 100%;
  height: auto;
}

/* Keep the concept's two-row title grid and the existing semantic H1 text. */
.sand-title {
  display: grid;
  gap: 22px;
}
.sand-title .eyebrow {
  font-weight: 400;
  line-height: 1.02;
}

/* Preserve the v4 caption and control; the artwork expands below them. */
.sand-release .sand-inline-diagram .diagram-toolbar { display: contents; }

.sand-release .sand-inline-diagram .tl {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.sand-release .sand-inline-diagram button.tl {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.sand-release .sand-diagram-art {
  display: flow-root;
  padding-top: 12px;
}

.sand-release ~ .media-dialog {
  width: min(calc(100vw - 32px), 1440px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.sand-release ~ .media-dialog::backdrop { background: #17201cbb; }
.sand-release ~ .media-dialog .media-dialog-toolbar { display: flex; justify-content: flex-end; gap: 16px; margin-bottom: 12px; }
.sand-release ~ .media-dialog .media-dialog-content { max-height: calc(100dvh - 135px); overflow: auto; }
.sand-release ~ .media-dialog .media-dialog-content:not(.media-actual) img { display: block; max-width: 100%; max-height: calc(100dvh - 135px); width: auto; height: auto; margin: auto; }
