@import 'tailwindcss';
@config '../../tailwind.config.ts';
@source '../../../../packages/ui-primitives/src/**/*.{ts,tsx}';
@source '../components/islands/**/*.{ts,tsx}';
@import '@platform-modules/ui-tokens/base.css';
@import '@platform-modules/ui-tokens/theme.css';

/* mod-cms design law: 2px radius universal — remap primitive `rounded-md` to sm token. */
@theme inline {
  --radius-md: var(--mod-radius-sm);
}

/* Preflight resets prose UA defaults; restore for set:html content (no Astro cid). */
.post-body ul,
.post-body ol,
.comment__body ul,
.comment__body ol,
.editorial-post__body ul,
.editorial-post__body ol,
.editorial-post__comment-body ul,
.editorial-post__comment-body ol,
.magazine-post__body ul,
.magazine-post__body ol,
.magazine-post__comment-body ul,
.magazine-post__comment-body ol,
.cms-body ul,
.cms-body ol,
.prose ul,
.prose ol {
  list-style: revert;
  padding-inline-start: 2em;
  margin: revert;
}
.post-body blockquote,
.comment__body blockquote,
.editorial-post__body blockquote,
.editorial-post__comment-body blockquote,
.magazine-post__body blockquote,
.magazine-post__comment-body blockquote,
.cms-body blockquote,
.prose blockquote {
  margin: revert;
}
.post-body h4,
.post-body h5,
.post-body h6,
.comment__body h4,
.comment__body h5,
.comment__body h6,
.editorial-post__body h4,
.editorial-post__body h5,
.editorial-post__body h6,
.editorial-post__comment-body h4,
.editorial-post__comment-body h5,
.editorial-post__comment-body h6,
.magazine-post__body h4,
.magazine-post__body h5,
.magazine-post__body h6,
.magazine-post__comment-body h4,
.magazine-post__comment-body h5,
.magazine-post__comment-body h6,
.cms-body h4,
.cms-body h5,
.cms-body h6,
.prose h4,
.prose h5,
.prose h6 {
  font-size: revert;
  font-weight: revert;
}
.post-body pre,
.comment__body pre,
.editorial-post__body pre,
.editorial-post__comment-body pre,
.magazine-post__body pre,
.magazine-post__comment-body pre,
.cms-body pre,
.prose pre {
  margin: revert;
  white-space: pre-wrap;
  overflow-x: auto;
}
.post-body hr,
.comment__body hr,
.editorial-post__body hr,
.editorial-post__comment-body hr,
.magazine-post__body hr,
.magazine-post__comment-body hr,
.cms-body hr,
.prose hr {
  height: revert;
  border-top-width: revert;
}
.post-body table,
.comment__body table,
.editorial-post__body table,
.editorial-post__comment-body table,
.magazine-post__body table,
.magazine-post__comment-body table,
.cms-body table,
.prose table {
  border-collapse: revert;
}
.post-body th,
.post-body td,
.comment__body th,
.comment__body td,
.editorial-post__body th,
.editorial-post__body td,
.editorial-post__comment-body th,
.editorial-post__comment-body td,
.magazine-post__body th,
.magazine-post__body td,
.magazine-post__comment-body th,
.magazine-post__comment-body td,
.cms-body th,
.cms-body td,
.prose th,
.prose td {
  padding: revert;
}
