@import 'tailwindcss';

@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }

  /* Tailwind CSS v4 uses the browser default cursor for buttons; restore the v3 pointer cursor. */
  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }
}

.prose blockquote, .prose a {
    font-weight: inherit; /* don't use font-weight 500 for blockquotes or links, which is the default in prose */
}

html:not([data-turbo-preview]) .current-list-item {
    @apply bg-gray-100;
}

html:not([data-turbo-preview]) .pinned-items .current-list-item {
    @apply bg-indigo-100;
}

.sortable-drag .edit-link {
    @apply hidden;
}