@import url("./fan-de-icon.css");

:root {
  --rl-navy-950: #061a31;
  --rl-navy-900: #0b1d33;
  --rl-navy-700: #224266;
  --rl-blue-500: #406b8e;
  --rl-cyan-400: #6ec6e8;
  --rl-ice-200: #b8c2cc;
  --rl-ice-100: #e6ebf0;
  --rl-white: #ffffff;
  --rl-font-sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --rl-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rl-surface,
.rl-brand-bar,
.rl-badge,
.rl-callout,
.rl-icon-button {
  box-sizing: border-box;
}

:root,
.rl-theme-light,
[data-rl-theme="light"] {
  --rl-ink: #0b1d33;
  --rl-muted: #40617d;
  --rl-accent: #1b5b8d;
  --rl-highlight: #58bce2;
  --rl-surface: #f5f9fc;
  --rl-surface-soft: rgba(255, 255, 255, .74);
  --rl-edge: rgba(25, 75, 116, .3);
  --rl-line: rgba(76, 166, 207, .64);
  color: var(--rl-ink);
}

.rl-theme-dark,
[data-rl-theme="dark"] {
  --rl-ink: #f4f9fd;
  --rl-muted: #bad0df;
  --rl-accent: #8bdcff;
  --rl-highlight: #72d3fa;
  --rl-surface: #071c33;
  --rl-surface-soft: rgba(13, 43, 70, .76);
  --rl-edge: rgba(157, 219, 246, .48);
  --rl-line: rgba(105, 206, 247, .7);
  color: var(--rl-ink);
}

.rl-surface {
  background: var(--rl-surface);
  color: var(--rl-ink);
  font-family: var(--rl-font-sans);
}

.rl-brand-image {
  display: block;
  width: min(100%, 720px);
  height: auto;
}

.rl-brand-image--white { display: none; }
.rl-theme-dark .rl-brand-image--color,
[data-rl-theme="dark"] .rl-brand-image--color { display: none; }
.rl-theme-dark .rl-brand-image--white,
[data-rl-theme="dark"] .rl-brand-image--white { display: block; }

.rl-brand-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  width: fit-content;
  max-width: 100%;
  color: var(--rl-accent);
}

.rl-brand-bar__primary {
  display: block;
  width: clamp(290px, 42vw, 520px);
  max-width: calc(100vw - 190px);
  height: auto;
}

.rl-brand-bar__primary--white { display: none; }
.rl-theme-dark .rl-brand-bar__primary--color,
[data-rl-theme="dark"] .rl-brand-bar__primary--color { display: none; }
.rl-theme-dark .rl-brand-bar__primary--white,
[data-rl-theme="dark"] .rl-brand-bar__primary--white { display: block; }

.rl-brand-bar__divider {
  align-self: stretch;
  width: 1px;
  min-height: 54px;
  background: linear-gradient(transparent, currentColor 18%, currentColor 82%, transparent);
  opacity: .52;
}

.rl-de-host {
  --color-accent: var(--rl-accent);
  --color-muted: var(--rl-muted);
  --fan-de-z: 1;
  --fan-de-top: 0;
  --fan-de-left: 0;
  --fan-de-mark-width: 62px;
  --fan-de-mark-height: 31px;
  --fan-de-name-width: 116px;
  --fan-de-name-size: 10px;
  --fan-de-desktop-top: 0;
  --fan-de-desktop-mark-width: 70px;
  --fan-de-desktop-mark-height: 35px;
  --fan-de-desktop-name-width: 124px;
  --fan-de-desktop-name-size: 11px;
  position: relative;
  flex: 0 0 124px;
  width: 124px;
  height: 54px;
}

.rl-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 18px;
}

.rl-module-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--rl-ink);
  font-family: var(--rl-font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-align: center;
}

.rl-icon-button,
.rl-badge__icon,
.rl-callout__icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rl-edge);
  border-radius: 50%;
  background: var(--rl-surface-soft);
  color: var(--rl-accent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .42), 0 8px 24px rgba(3, 25, 47, .08);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.rl-icon-button { width: 52px; height: 52px; }
.rl-badge__icon,
.rl-callout__icon { width: 32px; height: 32px; flex: 0 0 32px; }

.rl-icon {
  display: block;
  width: 56%;
  height: 56%;
  background: currentColor;
  -webkit-mask: var(--rl-icon-url) center / contain no-repeat;
  mask: var(--rl-icon-url) center / contain no-repeat;
}

.rl-icon--data { --rl-icon-url: url("../assets/icons/data.svg"); }
.rl-icon--standards { --rl-icon-url: url("../assets/icons/standards.svg"); }
.rl-icon--knowledge { --rl-icon-url: url("../assets/icons/knowledge.svg"); }
.rl-icon--studio { --rl-icon-url: url("../assets/icons/studio.svg"); }
.rl-icon--clinical { --rl-icon-url: url("../assets/icons/clinical.svg"); }
.rl-icon--analytics { --rl-icon-url: url("../assets/icons/analytics.svg"); }
.rl-icon--quality { --rl-icon-url: url("../assets/icons/quality.svg"); }

.rl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rl-ink);
  font-family: var(--rl-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .055em;
}

.rl-badge__label,
.rl-callout__label {
  padding: 4px 7px;
  border: 1px solid var(--rl-edge);
  border-radius: 5px;
  background: var(--rl-surface-soft);
  box-shadow: 0 4px 14px rgba(3, 25, 47, .07);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.rl-callout {
  display: inline-grid;
  grid-template-columns: 32px auto minmax(54px, 92px);
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: var(--rl-ink);
  font-family: var(--rl-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .055em;
}
.rl-callout__label { justify-self: start; }

.rl-callout--right { grid-template-columns: minmax(54px, 92px) 32px auto; }
.rl-callout__line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, var(--rl-line), transparent);
}
.rl-callout__line::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rl-highlight);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rl-surface) 72%, transparent);
  content: "";
}
.rl-callout--right .rl-callout__line { order: 0; background: linear-gradient(90deg, transparent, var(--rl-line)); }
.rl-callout--right .rl-callout__line::after { right: auto; left: -2px; }
.rl-callout--right .rl-callout__icon { order: 1; }
.rl-callout--right .rl-callout__label { order: 2; }
.rl-callout:not(.rl-callout--right) .rl-callout__icon { order: 0; }
.rl-callout:not(.rl-callout--right) .rl-callout__label { order: 1; }
.rl-callout:not(.rl-callout--right) .rl-callout__line { order: 2; }

@media (max-width: 720px) {
  .rl-brand-bar { gap: 10px; }
  .rl-brand-bar__primary { width: min(68vw, 360px); max-width: none; }
  .rl-brand-bar__divider { min-height: 42px; }
  .rl-de-host { transform: scale(.76); transform-origin: left center; margin-right: -28px; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-de-host .fan-de-brand { animation: none; }
}
