:host(:not(:is([hydrated], .hydrated))) {
  @apply not-hydrated;
}



/**
 * @prop --mds-accordion-border-color: Sets the border-color of the component children mds-accordion-item
 * @prop --mds-accordion-border-width: Sets the border-width of the separators of the component children mds-accordion-item
 * @prop --mds-accordion-color: Public. Sets the text-color of the component children mds-accordion-item
 * @prop --mds-accordion-description-color: Sets the color of the always visible title description
 * @prop --mds-accordion-duration: Sets the transition duration of the close/open animation of the component children mds-accordion-item
 * @prop --mds-accordion-padding-selected: Public. Sets the vertical padding of the component children mds-accordion-item when it's selected
 * @prop --mds-accordion-padding-unselected: Public. Sets the vertical padding of the component children mds-accordion-item when it's unselected
 */

:host {
  --mds-accordion-border-color: rgb(var(--magma-border-default, var(--border-neutral-default, 183 183 183)));
  --mds-accordion-border-width: --spacing(50);
  --mds-accordion-color: rgb(var(--magma-text-muted, var(--text-neutral-muted, 73 73 73)));
  --mds-accordion-description-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
  --mds-accordion-duration: var(--duration-300, 300ms);
  --mds-accordion-padding-selected: --spacing(400) 0 --spacing(800) 0;
  --mds-accordion-padding-unselected: --spacing(400) 0;

  display: grid;
}

/* Theme preference. The component takes its colours from semantic roles that
 * flip per mode at :root (spec 6.1-6.3) and inherit into the shadow DOM, so it
 * needs no per-mode dark refinement. The former dark override (a ramp step
 * re-set to lift the colour off the old flat-black canvas) is intentionally gone. */

/* Contrast preference. The component reflects the resolved mode from <html> onto
 * its host as pref-contrast (see subscribePreference in @common/preference); these
 * plain shadow selectors refine for high contrast. `more` is the explicit choice;
 * `system` and no controller follow the OS via @media. Cross-browser, no :host-context. */

:host([pref-contrast='more']) {
  --mds-accordion-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
}

@media (prefers-contrast: more) {
  :host([pref-contrast='system']),
  :host(:not([pref-contrast])) {
    --mds-accordion-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
  }
}

