:root {
  --readtune-brand-gap: 8px;
  --readtune-brand-icon-size: 36px;
  --readtune-brand-wordmark-height: 20px;
}

.readtune-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: var(--readtune-brand-gap);
}

.readtune-brand__icon,
.readtune-brand__wordmark {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.readtune-brand__icon,
.brand .readtune-brand__icon,
.auth-brand .readtune-brand__icon {
  width: var(--readtune-brand-icon-size);
  height: var(--readtune-brand-icon-size);
  border-radius: 50%;
}

.readtune-brand__wordmark,
.brand .readtune-brand__wordmark,
.auth-brand .readtune-brand__wordmark {
  width: auto;
  height: var(--readtune-brand-wordmark-height);
  border-radius: 3px;
  box-shadow: none;
}

.readtune-brand--icon-only .readtune-brand__wordmark,
.readtune-brand--wordmark-only .readtune-brand__icon {
  display: none;
}

.readtune-brand--footer {
  --readtune-brand-icon-size: 34px;
  --readtune-brand-wordmark-height: 19px;
}

.readtune-brand--compact {
  --readtune-brand-gap: 9px;
  --readtune-brand-icon-size: 26px;
  --readtune-brand-wordmark-height: 10px;
}

.concept-panel-header > .readtune-brand--compact {
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: var(--readtune-brand-icon-size) minmax(0, 1fr);
}

.concept-panel-header .readtune-brand--compact .readtune-brand__icon {
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.3);
}

.page-footer .readtune-brand--wordmark-only,
.referral-footer .readtune-brand--wordmark-only {
  --readtune-brand-wordmark-height: 18px;
}

.auth-brand.readtune-brand {
  --readtune-brand-gap: 10px;
  --readtune-brand-icon-size: 44px;
  --readtune-brand-wordmark-height: 22px;
}

.auth-brand .readtune-brand__icon {
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

@media (max-width: 430px) {
  .auth-brand.readtune-brand {
    --readtune-brand-icon-size: 40px;
    --readtune-brand-wordmark-height: 20px;
  }
}
