/* DB Spacer v1.0.1
 * Divider colors use site design tokens (with fallbacks), so they follow
 * high contrast mode. The divider is decorative (aria-hidden), so no
 * contrast minimum applies. Spacer heights are layout, not text, and do not
 * scale with text size.
 */

/* -- Spacer sizes -------------------------------------- */
.db-spacer          { display: block; width: 100%; }

.db-spacer--xs      { height: 8px; }
.db-spacer--sm      { height: 16px; }
.db-spacer--md      { height: 32px; }
.db-spacer--lg      { height: 48px; }
.db-spacer--xl      { height: 64px; }
.db-spacer--xxl     { height: 96px; }

/* When divider is present, split height evenly above and below */
.db-spacer--has-divider { display: flex; align-items: center; }

.db-spacer--xs.db-spacer--has-divider  { height: 8px; }
.db-spacer--sm.db-spacer--has-divider  { height: 16px; }
.db-spacer--md.db-spacer--has-divider  { height: 32px; }
.db-spacer--lg.db-spacer--has-divider  { height: 48px; }
.db-spacer--xl.db-spacer--has-divider  { height: 64px; }
.db-spacer--xxl.db-spacer--has-divider { height: 96px; }

/* -- Divider line -------------------------------------- */
.db-spacer__divider {
    border: none;
    border-top-style: solid;
    border-top-width: 1px;
    margin: 0 auto;
    width: 100%;
    flex-shrink: 0;
}

/* Line style */
.db-spacer__divider--dashed { border-top-style: dashed; }
.db-spacer__divider--dotted { border-top-style: dotted; }
.db-spacer__divider--solid  { border-top-style: solid; }

/* Line color */
.db-spacer__divider--brand { border-top-color: var(--brand-red, #c32b2a); }
.db-spacer__divider--dark  { border-top-color: var(--surface-dark, #1a1a1a); }
.db-spacer__divider--light { border-top-color: var(--border-light, #dddddd); }
.db-spacer__divider--white { border-top-color: var(--color-white, #ffffff); }

/* Line width */
.db-spacer__divider--width-full   { width: 100%; }
.db-spacer__divider--width-wide   { width: 80%; }
.db-spacer__divider--width-medium { width: 60%; }
.db-spacer__divider--width-narrow { width: 40%; }
