/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
/* The primary use-case for responsive spacings are
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
/* Elevation */
/* Border */
/* Opacity */
/* Transitions */
/* Screen sizes */
/* Container sizes */
/* Variants for adaptive components like input, select, notification, ... */
@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

/**
 * @mixin screen-min-max
 * @param $data an object like (min:"sm", max:"lg") or (min: "sm")
 */
.db-accordion[data-variant=card] .db-accordion-item::after {
  border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-60-default);
}

/*
The styling for the spacings between the items is defined in the accordion, where they meet.
The spacings are not part of the styling of the accordion items themselves.
 */
.db-accordion {
  padding: 0;
  margin: 0;
  list-style-type: "";
}
.db-accordion[data-variant=divider] db-accordion-item + db-accordion-item .db-accordion-item,
.db-accordion[data-variant=divider] .db-accordion-item + .db-accordion-item, .db-accordion:not([data-variant]) db-accordion-item + db-accordion-item .db-accordion-item,
.db-accordion:not([data-variant]) .db-accordion-item + .db-accordion-item {
  margin-block-start: calc(2 * var(--db-spacing-fixed-sm));
  --db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
  position: var(--db-tooltip-parent-position, relative);
}
.db-accordion[data-variant=divider] db-accordion-item + db-accordion-item .db-accordion-item[data-emphasis=strong],
.db-accordion[data-variant=divider] .db-accordion-item + .db-accordion-item[data-emphasis=strong], .db-accordion:not([data-variant]) db-accordion-item + db-accordion-item .db-accordion-item[data-emphasis=strong],
.db-accordion:not([data-variant]) .db-accordion-item + .db-accordion-item[data-emphasis=strong] {
  --db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
}
.db-accordion[data-variant=divider] db-accordion-item + db-accordion-item .db-accordion-item::before,
.db-accordion[data-variant=divider] .db-accordion-item + .db-accordion-item::before, .db-accordion:not([data-variant]) db-accordion-item + db-accordion-item .db-accordion-item::before,
.db-accordion:not([data-variant]) .db-accordion-item + .db-accordion-item::before {
  content: "";
  background-color: var(--db-divider-bg-color);
  position: absolute;
  block-size: var(--db-border-width-3xs);
  inset-block-start: 0;
  inset-inline: 0;
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
@media (forced-colors: active) {
  .db-accordion[data-variant=divider] db-accordion-item + db-accordion-item .db-accordion-item,
  .db-accordion[data-variant=divider] .db-accordion-item + .db-accordion-item, .db-accordion:not([data-variant]) db-accordion-item + db-accordion-item .db-accordion-item,
  .db-accordion:not([data-variant]) .db-accordion-item + .db-accordion-item {
    /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
    border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
  }
}
.db-accordion[data-variant=divider] db-accordion-item + db-accordion-item .db-accordion-item::before,
.db-accordion[data-variant=divider] .db-accordion-item + .db-accordion-item::before, .db-accordion:not([data-variant]) db-accordion-item + db-accordion-item .db-accordion-item::before,
.db-accordion:not([data-variant]) .db-accordion-item + .db-accordion-item::before {
  inset-block-start: calc(-1 * var(--db-spacing-fixed-sm));
}
.db-accordion[data-variant=card] db-accordion-item + db-accordion-item .db-accordion-item,
.db-accordion[data-variant=card] .db-accordion-item + .db-accordion-item {
  margin-block-start: var(--db-spacing-fixed-sm);
}
.db-accordion[data-variant=card] .db-accordion-item {
  /*
  Adding the component-border to the item itself leads to a render error (tested in Chrome and Safari):
  On mouseover, a small white gap appears between the rounded border and the rounded gray area.
  If the border is added to the after element, the error does not occur.
   */
}
.db-accordion[data-variant=card] .db-accordion-item::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 100%;
  block-size: 100%;
  border-radius: var(--db-border-radius-sm);
  pointer-events: none;
}
