.admonition {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-left: 4px solid var(--neon-purple);
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.08);
}

.admonition-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admonition-title::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background-size: contain;
  background-repeat: no-repeat;
}

.admonition > p:last-child,
.admonition > ul:last-child,
.admonition > ol:last-child {
  margin-bottom: 0;
}


.admonition.note {
  border-left-color: var(--neon-cyan);
}

.admonition.note .admonition-title {
  color: var(--neon-cyan);
}


.admonition.tip,
.admonition.hint {
  border-left-color: var(--success);
}

.admonition.tip .admonition-title,
.admonition.hint .admonition-title {
  color: var(--success);
}


.admonition.warning,
.admonition.caution {
  border-left-color: var(--warning);
  background: rgba(255, 170, 0, 0.08);
}

.admonition.warning .admonition-title,
.admonition.caution .admonition-title {
  color: var(--warning);
}


.admonition.danger,
.admonition.error {
  border-left-color: var(--error);
  background: rgba(255, 68, 102, 0.08);
}

.admonition.danger .admonition-title,
.admonition.error .admonition-title {
  color: var(--error);
}


.admonition.important {
  border-left-color: var(--neon-magenta);
}

.admonition.important .admonition-title {
  color: var(--neon-magenta);
}


.admonition.seealso {
  border-left-color: var(--neon-purple);
}

.admonition.seealso .admonition-title {
  color: var(--neon-purple);
}



.versionadded,
.versionchanged,
.deprecated {
  margin: 1em 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.versionadded {
  background: rgba(0, 255, 136, 0.1);
  border-left: 3px solid var(--success);
}

.versionchanged {
  background: rgba(0, 255, 255, 0.1);
  border-left: 3px solid var(--neon-cyan);
}

.deprecated {
  background: rgba(255, 170, 0, 0.1);
  border-left: 3px solid var(--warning);
}



dl {
  margin: 1em 0;
}

dt {
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1em;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.25em 0 0 1.5em;
  color: var(--text-secondary);
}



.sd-card {
  background: rgba(10, 12, 18, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sd-card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.2);
}

.sd-card-header {
  padding: 1rem 1.25rem;
  background: rgba(12, 14, 24, 0.9);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  font-weight: 600;
}

.sd-card-body {
  padding: 1.25rem;
}

.sd-card-footer {
  padding: 0.75rem 1.25rem;
  background: rgba(12, 14, 24, 0.9);
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  font-size: 0.875rem;
}


.sd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.sd-col {
  flex: 1;
  min-width: 250px;
}



.sd-tab-set {
  margin: 1em 0;
}

.sd-tab-set > input {
  display: none;
}

.sd-tab-set > label {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: -1px;
  background: rgba(12, 14, 24, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.sd-tab-set > label:first-of-type {
  border-radius: 4px 0 0 0;
}

.sd-tab-set > label:last-of-type {
  border-radius: 0 4px 0 0;
}

.sd-tab-set > input:checked + label {
  background: rgba(10, 12, 18, 0.85);
  color: var(--neon-cyan);
  border-bottom-color: rgba(10, 12, 18, 0.85);
  position: relative;
  z-index: 1;
}

.sd-tab-content {
  padding: 1.25rem;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 0 4px 4px 4px;
  margin-top: -1px;
}



.sd-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sd-badge-primary {
  background: var(--neon-cyan);
  color: var(--bg-deep);
}

.sd-badge-secondary {
  background: rgba(12, 14, 24, 0.9);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.sd-badge-success {
  background: var(--success);
  color: var(--bg-deep);
}

.sd-badge-warning {
  background: var(--warning);
  color: var(--bg-deep);
}

.sd-badge-danger {
  background: var(--error);
  color: white;
}


.sd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sd-btn-primary {
  background: var(--neon-cyan);
  color: var(--bg-deep);
}

.sd-btn-primary:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.4);
  text-decoration: none;
}

.sd-btn-outline-primary {
  background: transparent;
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.sd-btn-outline-primary:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  text-decoration: none;
}



.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

figure {
  margin: 1.5em 0;
}

figcaption {
  margin-top: 0.5em;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}



.footnote {
  font-size: 0.875rem;
}

.footnote-reference {
  font-size: 0.75rem;
  vertical-align: super;
}



.search-results {
  margin-top: 1rem;
}

.search-results li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results .context {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlighted {
  background: rgba(255, 216, 77, 0.25);
  padding: 0 0.125em;
  border-radius: 2px;
}



kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-family: inherit;
  font-size: 0.875rem;
  background: rgba(12, 14, 24, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(0, 255, 255, 0.3);
}



abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}



[data-theme="light"] .admonition {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .admonition.warning,
[data-theme="light"] .admonition.caution {
  background: rgba(255, 170, 0, 0.12);
}

[data-theme="light"] .admonition.danger,
[data-theme="light"] .admonition.error {
  background: rgba(255, 68, 102, 0.12);
}

[data-theme="light"] .sd-card {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sd-card-header,
[data-theme="light"] .sd-card-footer {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}

[data-theme="light"] .sd-tab-set > label {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}

[data-theme="light"] .sd-tab-set > input:checked + label {
  background: var(--bg-surface);
  border-bottom-color: var(--bg-surface);
}

[data-theme="light"] .sd-tab-content {
  background: var(--bg-surface);
  border-color: var(--border-color);
}

[data-theme="light"] .sd-badge-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .page-content img {
  border-color: var(--border-color);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .search-results li {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] kbd {
  background: var(--bg-elevated);
  border-color: var(--border-color);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
