/*
 * pro-days.css — Pro Days trial + free sign-in copy (spec 005).
 * Linked from main.php with ?v=filemtime (not @import-ed in app.css) so a
 * deploy reaches returning browsers immediately.
 */

/* ── Pro Days (spec 005) ─────────────────────────────────────────────────── */
.login-card__free {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink-strong);
  max-width: 340px;
  margin: 0;
}

.login-card__free:empty {
  display: none;
}

.login-trial-note {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  text-align: center;
  max-width: 340px;
  margin: 0;
}

/* Quota-reset note: was --color-ink-subtle (0.15 alpha), unreadable on white. */
.login-quota-reset {
  color: var(--color-ink-muted);
}

/* ── Sign-in button: short label on narrow screens (spec 005) ─────────────── */
.topbar-login-btn__short {
  display: none;
}

@media (max-width: 767px) {
  .topbar-login-btn__full  { display: none; }
  .topbar-login-btn__short { display: inline; }
}

/* ── Pro Day chip (spec 005) ─────────────────────────────────────────────── */
.pro-day-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-ink-strong);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 32px;
}

.pro-day-chip__label {
  unicode-bidi: isolate;
}

.pro-day-chip__pop {
  display: none;
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-end: 0;
  background: var(--color-surface-raised);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  min-width: 200px;
  z-index: 600;
  flex-direction: column;
  gap: var(--space-2);
  font-weight: 500;
  white-space: normal;
}

.pro-day-chip:hover .pro-day-chip__pop,
.pro-day-chip:focus-within .pro-day-chip__pop,
.pro-day-chip.is-open .pro-day-chip__pop {
  display: flex;
}

.pro-day-chip__upgrade {
  font-weight: 700;
  color: var(--color-primary-solid);
}
