.library-document {
  --background: 0 0% 100%;
  --foreground: 0 0% 5%;
  --muted-foreground: 215 16% 37%;
  --primary: 18 100% 42%;
  --border: 214 32% 91%;
  margin: 0;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.library-document * { box-sizing: border-box; }
.library-document main { max-width: 960px; margin: auto; padding: 48px 24px; }
.library-document header, .library-document footer { padding: 24px; border-bottom: 1px solid hsl(var(--border)); display: flex; flex-wrap: wrap; gap: 24px; }
.library-document h1, .library-document h2, .library-document h3 { font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.3; }
.library-document h1 { font-size: 36px; }
.library-document h2 { font-size: 26px; margin-top: 40px; }
.library-document h3 { font-size: 21px; }
.library-document a { color: hsl(var(--primary)); text-underline-offset: 4px; }
.library-document article { max-width: 760px; }
.library-document section { margin: 32px 0; }
.library-document p { margin: 16px 0; }
.library-document .library-category { color: hsl(var(--muted-foreground)); }
.library-document .library-course { display: inline-block; padding: 12px 0; font-weight: 600; }
.library-document .library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.library-document .library-entry { display: block; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 24px; text-decoration: none; }
.library-document .library-entry h3 { margin-top: 0; }
.library-document .library-entry p { color: hsl(var(--muted-foreground)); }
@media (max-width: 640px) {
  .library-document main { padding: 28px 20px; }
  .library-document h1 { font-size: 28px; }
  .library-document .library-grid { grid-template-columns: minmax(0, 1fr); }
}