/*
 * Eurofound embed theme v1: design tokens and components for pages embedded in
 * the Eurofound website. Generated from the design system: link this file, don't copy values from it.
 *
 * Use only the tokens and ef-* classes listed in the embed instructions. Everything else here (primitives such
 * as --navy-500, and the --base-*, --contrast-* and --accent-* sets behind the semantic tokens) is
 * the site's internals and can change without notice.
 */

@layer ef-tokens, ef-base, ef-components;

@import url('https://fonts.bunny.net/css?family=roboto:500,600|source-sans-3:400,600,700&display=swap');

@layer ef-tokens {
:root {
  --white: #ffffff;
  --black: #000000;

  --navy-50: #e8eaee;
  --navy-100: #b8bfca;
  --navy-200: #969fb1;
  --navy-300: #66748d;
  --navy-400: #485977;
  --navy-450: #314466;
  --navy-500: #1a2f55;
  --navy-600: #182b4d;
  --navy-700: #12213c;
  --navy-800: #0e1a2f;
  --navy-900: #0b1424;

  --sky-50: #e6f2f7;
  --sky-100: #b2d7e7;
  --sky-200: #8cc4db;
  --sky-300: #58a9cb;
  --sky-400: #3898c1;
  --sky-500: #067eb1;
  --sky-600: #0573a1;
  --sky-700: #04597e;
  --sky-800: #034561;
  --sky-900: #03354a;
  --sky-950: #012635;

  --neutral-50: #f6f6f6;
  --neutral-100: #e4e4e4;
  --neutral-200: #c8c8c8;
  --neutral-300: #a3a3a3;
  --neutral-400: #8a8a8a;
  --neutral-500: #666666;
  --neutral-600: #4c4c4c;
  --neutral-700: #363636;
  --neutral-800: #2a2a2a;
  --neutral-900: #1f1f1f;

  --green-50: #e7f7f4;
  --green-100: #b3e6dd;
  --green-200: #8edacd;
  --green-300: #5bc9b6;
  --green-400: #3bbea8;
  --green-500: #0aae92;
  --green-600: #099e85;
  --green-700: #077c68;
  --green-800: #066050;
  --green-900: #04493d;

  --orange-50: #fdf2e7;
  --orange-100: #f9d5b5;
  --orange-200: #f6c191;
  --orange-300: #f2a55e;
  --orange-400: #ef943f;
  --orange-500: #eb790f;
  --orange-600: #d66e0e;
  --orange-700: #a7560b;
  --orange-800: #814308;
  --orange-900: #633306;

  --leaf-500: #50833f;

  --red-50: #fdecf0;
  --red-100: #f9cfd9;
  --red-200: #f2a1b4;
  --red-600: #d4053c;
  --red-700: #a8042f;
  --red-800: #7c0323;

  --radius: 0.5rem;
  --font-source-sans-3: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
  --font-roboto: 'Roboto', ui-sans-serif, system-ui, sans-serif;
  --font-montserrat: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --padding-xxs: 4px;
  --padding-xs: 8px;
  --padding-sm: 12px;
  --padding-md: 16px;
  --padding-lg: 24px;
  --padding-xl: 32px;
  --padding-xxl: 40px;
  --spacing-flow-tight: var(--padding-sm);
  --spacing-flow-default: var(--padding-md);
  --spacing-flow-section: var(--padding-lg);
  --icon-size-xs: 16px;
  --icon-size-sm: 20px;
  --icon-size-md: 24px;
  --icon-size-lg: 32px;
  --icon-size-xl: 40px;
  --icon-size-2xl: 48px;
  --icon-size-3xl: 64px;
  --shadow-bottom-sheet: 0px -2px 8px 0px rgba(134, 134, 134, 0.25);
}

:root,
.light,
[data-theme='light'] {
  color-scheme: light;

  --surface-default: var(--white);
  --surface-raised: var(--white);
  --surface-muted: var(--neutral-50);
  --surface-tint: var(--sky-50);
  --surface-inverse: var(--navy-700);
  --surface-brand: var(--sky-900);
  --surface-accent: var(--green-700);

  --base-foreground: var(--navy-800);
  --base-heading: var(--navy-500);
  --base-muted-foreground: var(--neutral-600);
  --base-subtle-foreground: var(--neutral-500);
  --base-link: var(--sky-600);
  --base-link-hover: var(--sky-700);
  --base-brand: var(--navy-500);
  --base-border: var(--neutral-100);
  --base-border-strong: var(--neutral-300);
  --base-hover: var(--neutral-100);
  --base-active: var(--neutral-200);
  --base-emphasis: var(--green-800);
  --base-rule: var(--navy-700);
  --base-input: var(--neutral-100);
  --base-field-border: var(--neutral-400);
  --tint-border: var(--sky-100);

  --contrast-foreground: var(--white);
  --contrast-heading: var(--white);
  --contrast-muted-foreground: rgb(255 255 255 / 0.8);
  --contrast-subtle-foreground: rgb(255 255 255 / 0.7);
  --contrast-link: var(--white);
  --contrast-link-hover: var(--white);
  --contrast-brand: var(--white);
  --contrast-border: rgb(255 255 255 / 0.2);
  --contrast-border-strong: rgb(255 255 255 / 0.4);
  --contrast-hover: rgb(255 255 255 / 0.12);
  --contrast-active: rgb(255 255 255 / 0.2);
  --contrast-emphasis: var(--green-300);
  --contrast-rule: var(--green-400);
  --contrast-input: rgb(255 255 255 / 0.2);
  --contrast-field-border: rgb(255 255 255 / 0.5);
  --contrast-raised: rgb(255 255 255 / 0.08);

  --field: var(--white);
  --field-foreground: var(--navy-800);
  --field-placeholder: var(--neutral-500);
  --accent-muted-foreground: rgb(255 255 255 / 0.95);
  --accent-subtle-foreground: rgb(255 255 255 / 0.92);
  --accent-field-border: rgb(255 255 255 / 0.7);
  --accent-focus-ring: var(--white);
  --accent-emphasis: var(--white);

  --badge-new: var(--leaf-500);
  --badge-new-foreground: var(--white);
  --badge-neutral: var(--neutral-600);
  --badge-neutral-foreground: var(--white);
  --badge-status: var(--neutral-100);
  --badge-status-foreground: var(--black);
  --base-badge-primary: var(--navy-700);
  --contrast-badge-primary: var(--navy-450);
  --accent-badge-primary: rgb(0 0 0 / 0.25);
  --badge-primary-foreground: var(--white);
  --placeholder-from: var(--sky-50);
  --placeholder-to: var(--sky-100);
  --placeholder-motif: var(--sky-100);
  --placeholder-accent-from: var(--green-400);
  --placeholder-accent-to: var(--green-900);
  --placeholder-accent-motif: var(--green-300);
  --scrim: var(--navy-900);
  --paper: var(--white);
  --ink: var(--navy-900);
  --shadow-header: 0px 4px 6px 3px rgb(141 141 141 / 0.25);
  --shadow-sticky: 0px 4px 6px -2px rgb(141 141 141 / 0.25);
  --shadow-vector: 0px 6px 13.6px 0px rgb(90 90 90 / 0.5);

  --primary: var(--sky-500);
  --primary-hover: var(--sky-700);
  --primary-foreground: var(--white);
  --selected: var(--navy-500);
  --selected-foreground: var(--white);
  --focus-ring: var(--orange-600);
  --overlay: rgb(11 20 36 / 0.8);

  --success: var(--green-700);
  --success-foreground: var(--white);
  --success-muted: var(--green-50);
  --success-muted-foreground: var(--green-800);
  --warning: var(--orange-700);
  --warning-foreground: var(--white);
  --warning-muted: var(--orange-50);
  --warning-muted-foreground: var(--orange-800);
  --danger: var(--red-600);
  --danger-foreground: var(--white);
  --danger-muted: var(--red-50);
  --danger-muted-foreground: var(--red-700);
  --info: var(--sky-600);
  --info-foreground: var(--white);
  --info-muted: var(--sky-50);
  --info-muted-foreground: var(--sky-800);

  --chart-1: #0d95d0;
  --chart-2: #7dc462;
  --chart-3: #e72f52;
  --chart-4: #774fa0;
  --chart-5: #efb743;
  --chart-6: #077c68;
  --chart-axis: var(--black);
  --chart-grid: var(--neutral-200);
  --chart-label: var(--neutral-600);
  --chart-label-strong: var(--navy-800);
  --chart-label-on-data: var(--white);
  --map-scale-1: #b2dbca;
  --map-scale-2: #8fbeb6;
  --map-scale-3: #70a0a1;
  --map-scale-4: #55848c;
  --map-scale-5: #3e6776;
  --map-scale-6: #2a4c5f;
  --map-scale-7: #1b3247;
  --map-no-data: #d9d9d9;
}
.dark, [data-theme='dark'] {
  color-scheme: dark;

  --surface-default: var(--navy-900);
  --surface-raised: var(--navy-700);
  --surface-muted: var(--navy-800);
  --surface-tint: var(--sky-950);
  --surface-inverse: var(--navy-600);
  --surface-brand: var(--sky-900);
  --surface-accent: var(--green-900);

  --base-foreground: var(--navy-50);
  --base-heading: var(--white);
  --base-muted-foreground: var(--navy-100);
  --base-subtle-foreground: var(--navy-200);
  --base-link: var(--sky-300);
  --base-link-hover: var(--sky-200);
  --base-brand: var(--navy-100);
  --base-border: var(--navy-600);
  --base-border-strong: var(--navy-400);
  --base-hover: rgb(255 255 255 / 0.08);
  --base-active: rgb(255 255 255 / 0.16);
  --base-emphasis: var(--green-300);
  --base-rule: var(--green-400);
  --base-input: var(--navy-600);
  --base-field-border: var(--navy-300);
  --tint-border: var(--sky-900);

  --contrast-foreground: var(--white);
  --contrast-heading: var(--white);
  --contrast-muted-foreground: rgb(255 255 255 / 0.8);
  --contrast-subtle-foreground: rgb(255 255 255 / 0.7);
  --contrast-link: var(--white);
  --contrast-link-hover: var(--white);
  --contrast-brand: var(--white);
  --contrast-border: rgb(255 255 255 / 0.2);
  --contrast-border-strong: rgb(255 255 255 / 0.4);
  --contrast-hover: rgb(255 255 255 / 0.12);
  --contrast-active: rgb(255 255 255 / 0.2);
  --contrast-emphasis: var(--green-300);
  --contrast-rule: var(--green-400);
  --contrast-input: rgb(255 255 255 / 0.2);
  --contrast-field-border: rgb(255 255 255 / 0.5);
  --contrast-raised: rgb(255 255 255 / 0.08);

  --field: var(--navy-800);
  --field-foreground: var(--navy-50);
  --field-placeholder: var(--navy-200);

  --accent-muted-foreground: rgb(255 255 255 / 0.8);
  --accent-subtle-foreground: rgb(255 255 255 / 0.7);
  --accent-field-border: rgb(255 255 255 / 0.5);
  --accent-focus-ring: var(--orange-500);
  --accent-emphasis: var(--white);

  --badge-new: var(--leaf-500);
  --badge-new-foreground: var(--white);
  --badge-neutral: var(--neutral-600);
  --badge-neutral-foreground: var(--white);
  --badge-status: var(--neutral-100);
  --badge-status-foreground: var(--black);
  --base-badge-primary: var(--navy-450);
  --contrast-badge-primary: var(--navy-450);
  --accent-badge-primary: rgb(255 255 255 / 0.16);
  --badge-primary-foreground: var(--white);

  --placeholder-from: var(--sky-950);
  --placeholder-to: var(--sky-900);
  --placeholder-motif: var(--sky-800);
  --placeholder-accent-from: var(--green-400);
  --placeholder-accent-to: var(--green-900);
  --placeholder-accent-motif: var(--green-300);
  --scrim: var(--navy-900);
  --paper: var(--white);
  --ink: var(--navy-900);

  --shadow-header: 0px 4px 6px 3px rgb(0 0 0 / 0.5);
  --shadow-sticky: 0px 4px 6px -2px rgb(0 0 0 / 0.5);
  --shadow-vector: 0px 6px 13.6px 0px rgb(0 0 0 / 0.6);

  --primary: var(--sky-500);
  --primary-hover: var(--sky-600);
  --primary-foreground: var(--white);
  --selected: var(--green-400);
  --selected-foreground: var(--navy-900);
  --focus-ring: var(--orange-500);
  --overlay: rgb(0 0 0 / 0.7);

  --success: var(--green-700);
  --success-foreground: var(--white);
  --success-muted: var(--green-900);
  --success-muted-foreground: var(--green-100);
  --warning: var(--orange-700);
  --warning-foreground: var(--white);
  --warning-muted: var(--orange-900);
  --warning-muted-foreground: var(--orange-100);
  --danger: var(--red-600);
  --danger-foreground: var(--white);
  --danger-muted: var(--red-800);
  --danger-muted-foreground: var(--red-100);
  --info: var(--sky-600);
  --info-foreground: var(--white);
  --info-muted: var(--sky-950);
  --info-muted-foreground: var(--sky-100);

  --chart-axis: var(--navy-200);
  --chart-grid: var(--navy-600);
  --chart-label: var(--navy-100);
  --chart-label-strong: var(--white);
  --chart-label-on-data: var(--white);
  --map-no-data: var(--navy-600);
}
@media (prefers-color-scheme: dark) {
:root:not(.light, .dark, [data-theme]) {
  color-scheme: dark;

  --surface-default: var(--navy-900);
  --surface-raised: var(--navy-700);
  --surface-muted: var(--navy-800);
  --surface-tint: var(--sky-950);
  --surface-inverse: var(--navy-600);
  --surface-brand: var(--sky-900);
  --surface-accent: var(--green-900);

  --base-foreground: var(--navy-50);
  --base-heading: var(--white);
  --base-muted-foreground: var(--navy-100);
  --base-subtle-foreground: var(--navy-200);
  --base-link: var(--sky-300);
  --base-link-hover: var(--sky-200);
  --base-brand: var(--navy-100);
  --base-border: var(--navy-600);
  --base-border-strong: var(--navy-400);
  --base-hover: rgb(255 255 255 / 0.08);
  --base-active: rgb(255 255 255 / 0.16);
  --base-emphasis: var(--green-300);
  --base-rule: var(--green-400);
  --base-input: var(--navy-600);
  --base-field-border: var(--navy-300);
  --tint-border: var(--sky-900);

  --contrast-foreground: var(--white);
  --contrast-heading: var(--white);
  --contrast-muted-foreground: rgb(255 255 255 / 0.8);
  --contrast-subtle-foreground: rgb(255 255 255 / 0.7);
  --contrast-link: var(--white);
  --contrast-link-hover: var(--white);
  --contrast-brand: var(--white);
  --contrast-border: rgb(255 255 255 / 0.2);
  --contrast-border-strong: rgb(255 255 255 / 0.4);
  --contrast-hover: rgb(255 255 255 / 0.12);
  --contrast-active: rgb(255 255 255 / 0.2);
  --contrast-emphasis: var(--green-300);
  --contrast-rule: var(--green-400);
  --contrast-input: rgb(255 255 255 / 0.2);
  --contrast-field-border: rgb(255 255 255 / 0.5);
  --contrast-raised: rgb(255 255 255 / 0.08);

  --field: var(--navy-800);
  --field-foreground: var(--navy-50);
  --field-placeholder: var(--navy-200);

  --accent-muted-foreground: rgb(255 255 255 / 0.8);
  --accent-subtle-foreground: rgb(255 255 255 / 0.7);
  --accent-field-border: rgb(255 255 255 / 0.5);
  --accent-focus-ring: var(--orange-500);
  --accent-emphasis: var(--white);

  --badge-new: var(--leaf-500);
  --badge-new-foreground: var(--white);
  --badge-neutral: var(--neutral-600);
  --badge-neutral-foreground: var(--white);
  --badge-status: var(--neutral-100);
  --badge-status-foreground: var(--black);
  --base-badge-primary: var(--navy-450);
  --contrast-badge-primary: var(--navy-450);
  --accent-badge-primary: rgb(255 255 255 / 0.16);
  --badge-primary-foreground: var(--white);

  --placeholder-from: var(--sky-950);
  --placeholder-to: var(--sky-900);
  --placeholder-motif: var(--sky-800);
  --placeholder-accent-from: var(--green-400);
  --placeholder-accent-to: var(--green-900);
  --placeholder-accent-motif: var(--green-300);
  --scrim: var(--navy-900);
  --paper: var(--white);
  --ink: var(--navy-900);

  --shadow-header: 0px 4px 6px 3px rgb(0 0 0 / 0.5);
  --shadow-sticky: 0px 4px 6px -2px rgb(0 0 0 / 0.5);
  --shadow-vector: 0px 6px 13.6px 0px rgb(0 0 0 / 0.6);

  --primary: var(--sky-500);
  --primary-hover: var(--sky-600);
  --primary-foreground: var(--white);
  --selected: var(--green-400);
  --selected-foreground: var(--navy-900);
  --focus-ring: var(--orange-500);
  --overlay: rgb(0 0 0 / 0.7);

  --success: var(--green-700);
  --success-foreground: var(--white);
  --success-muted: var(--green-900);
  --success-muted-foreground: var(--green-100);
  --warning: var(--orange-700);
  --warning-foreground: var(--white);
  --warning-muted: var(--orange-900);
  --warning-muted-foreground: var(--orange-100);
  --danger: var(--red-600);
  --danger-foreground: var(--white);
  --danger-muted: var(--red-800);
  --danger-muted-foreground: var(--red-100);
  --info: var(--sky-600);
  --info-foreground: var(--white);
  --info-muted: var(--sky-950);
  --info-muted-foreground: var(--sky-100);

  --chart-axis: var(--navy-200);
  --chart-grid: var(--navy-600);
  --chart-label: var(--navy-100);
  --chart-label-strong: var(--white);
  --chart-label-on-data: var(--white);
  --map-no-data: var(--navy-600);
}
}
:root,
.light,
.dark,
[data-theme='light'],
[data-theme='dark'] {
  --background: var(--surface-default);
  --surface: var(--surface-raised);
  --foreground: var(--base-foreground);
  --heading: var(--base-heading);
  --muted-foreground: var(--base-muted-foreground);
  --subtle-foreground: var(--base-subtle-foreground);
  --link: var(--base-link);
  --link-hover: var(--base-link-hover);
  --brand: var(--base-brand);
  --badge-primary: var(--base-badge-primary);
  --border: var(--base-border);
  --border-strong: var(--base-border-strong);
  --hover: var(--base-hover);
  --active: var(--base-active);
  --emphasis: var(--base-emphasis);
  --rule: var(--base-rule);
  --input: var(--base-input);
  --field-border: var(--base-field-border);
}
}

/*
 * Base styles and components for pages embedded in the site (dashboards in eurofound/static etc.).
 * Served after the design tokens by /api/embed/v1/theme.css. Uses semantic tokens only.
 *
 * Everything is in cascade layers, so a dashboard's own (unlayered) CSS always wins, whatever its
 * specificity. Class names are a public API: rename or remove one only in a new version.
 */

@layer ef-base {
  /* The padding keeps focus rings clear of the iframe edge and child margins inside the measured height. */
  .ef-embed {
    margin: 0;
    padding: 0.375rem;
    font-family: var(--font-source-sans-3);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
  }

  /* Inside the site the card shows through, whether it sits on --background or --surface. */
  :root[data-embedded] .ef-embed {
    background: transparent;
  }

  .ef-embed *,
  .ef-embed *::before,
  .ef-embed *::after {
    box-sizing: border-box;
  }

  .ef-embed :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
  }

  .ef-embed :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-roboto);
    font-weight: 600;
    color: var(--heading);
  }

  .ef-embed :where(a) {
    color: var(--link);
  }

  .ef-embed :where(a:hover) {
    color: var(--link-hover);
  }

  .ef-embed :where(input[type='checkbox'], input[type='radio']) {
    accent-color: var(--primary);
  }

  .ef-embed :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
  }
}

@layer ef-components {
  /* Form label above a control. */
  .ef-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: var(--foreground);
  }

  /* A native <select>, or a <button> that opens a custom list (put the text in the first <span>). */
  .ef-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid var(--field-border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--field);
    color: var(--field-foreground);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
  }

  .ef-select:hover {
    border-color: var(--foreground);
  }

  .ef-select:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  .ef-select > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ef-select > svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    fill: currentColor;
  }

  /* Pill toggle, e.g. a topic filter. Selected: aria-pressed="true" or .is-active. */
  .ef-chip {
    height: 2.25rem;
    padding: 0 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s;
  }

  .ef-chip:hover {
    background: var(--hover);
  }

  .ef-chip:is([aria-pressed='true'], .is-active) {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
  }

  .ef-chip:is([aria-pressed='true'], .is-active):hover {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
  }

  /* Outline button; add .ef-button--primary for the main action. */
  .ef-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 1rem;
    border: 1px solid var(--border-strong);
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s;
  }

  .ef-button:hover {
    background: var(--hover);
  }

  .ef-button > svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
  }

  .ef-button--primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
  }

  .ef-button--primary:hover {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
  }

  /* Underlined tab row. Selected tab: aria-selected="true" or .is-active. */
  .ef-tabs {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
  }

  .ef-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.25rem 0.85rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--muted-foreground);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition:
      color 0.15s,
      border-color 0.15s;
  }

  .ef-tab:hover {
    color: var(--foreground);
  }

  .ef-tab:is([aria-selected='true'], .is-active) {
    border-bottom-color: var(--primary);
    color: var(--heading);
  }

  .ef-tab > svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
  }

  .ef-tab:is([aria-selected='true'], .is-active) > svg {
    fill: var(--primary);
  }

  .ef-tab:focus-visible {
    outline-offset: -3px;
  }

  /* Floating panel: dropdown lists, menus. Position it yourself. */
  .ef-popover {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface);
    color: var(--foreground);
    box-shadow: var(--shadow-header);
  }

  /* Chart tooltip card (render tooltips as HTML and drop the library's own box). */
  .ef-tooltip {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--foreground);
    font-family: var(--font-source-sans-3);
    box-shadow: var(--shadow-header);
  }

  /* Inline message. Default is informational; add --warning, --danger or --success. */
  .ef-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: fit-content;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    background: var(--info-muted);
    color: var(--info-muted-foreground);
    font-size: 0.875rem;
  }

  .ef-notice--warning {
    background: var(--warning-muted);
    color: var(--warning-muted-foreground);
  }

  .ef-notice--danger {
    background: var(--danger-muted);
    color: var(--danger-muted-foreground);
  }

  .ef-notice--success {
    background: var(--success-muted);
    color: var(--success-muted-foreground);
  }

  .ef-text-muted {
    color: var(--muted-foreground);
  }

  .ef-text-subtle {
    color: var(--subtle-foreground);
  }

  /* Single-colour logo drawn for a light background; recoloured light in dark mode. */
  :is(.dark, [data-theme='dark']) .ef-logo-mono {
    filter: brightness(0) invert(0.8);
  }
}

/* No theme set on the page: follow the OS. */
@media (prefers-color-scheme: dark) {
  @layer ef-components {
    :root:not(.light, .dark, [data-theme]) .ef-logo-mono {
      filter: brightness(0) invert(0.8);
    }
  }
}

