/* OpenOcti promo card — intermittent, dismissable, site-wide.
   Theme-aware through the site's CSS custom properties: no hard-coded colors,
   so it paints correctly in both the dark default and the light theme. */
.oc-promo {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(68px + clamp(16px, 3vw, 32px) + 14px);
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .oc-promo { transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
  .oc-promo.is-visible { transform: none; }
}
.oc-promo.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 560px) {
  .oc-promo {
    left: 16px; right: 16px;
    width: auto;
    bottom: calc(60px + 16px + 14px);
  }
}

.oc-promo-inner {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 40px 20px 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in oklab, var(--amber) 10%, transparent);
}

.oc-promo-mark {
  flex: 0 0 56px;
  width: 56px;
  margin-top: 2px;
}
.oc-promo-mark img { display: block; width: 100%; height: auto; }

.oc-promo-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oc-promo-body .eyebrow { font-size: 10px; }
.oc-promo-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}
.oc-promo-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-dim);
  margin: 0;
}
.oc-promo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.oc-promo-actions .btn {
  padding: 10px 16px;
  font-size: 11px;
}
.oc-promo-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oc-promo-link:hover, .oc-promo-link:focus-visible { color: var(--paper); }

.oc-promo-close {
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--mute);
  font-size: 20px;
  line-height: 1;
  transition: color .2s ease;
}
.oc-promo-close:hover, .oc-promo-close:focus-visible {
  color: var(--paper);
  outline: none;
}
