/**
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.admonition {
  background-color: var(--bg-color);
  color: var(--color);
  display: flow-root;
  font-size: 0.95rem;
  margin: 16px 0 24px 0;
  border-left: 4px solid var(--bg);
  border-radius: 4px;
  page-break-inside: avoid;
}

.admonition-note,
.admonition-info {
  --color: #202124;
  --bg: #1a73e8;
  --bg-title: #e8f0fe;
  --bg-color: #f8f9fa;
}

.admonition-tip,
.admonition-hint,
.admonition-success {
  --color: #202124;
  --bg: #1e8e3e;
  --bg-title: #e6f4ea;
  --bg-color: #f8f9fa;
}

.admonition-warning,
.admonition-caution {
  --color: #202124;
  --bg: #f9ab00;
  --bg-title: #fef7e0;
  --bg-color: #f8f9fa;
}

.admonition-danger,
.admonition-error,
.admonition-failure {
  --color: #202124;
  --bg: #d93025;
  --bg-title: #fce8e6;
  --bg-color: #f8f9fa;
}

.admonition-title {
  background-color: var(--bg-title);
  padding: 10px 16px;
  font-weight: 500;
  margin: 0;
}

.admonition p:not(.admonition-title) {
  padding: 10px 16px;
  margin: 0;
}
