:root {
  --dle-content-max: 70ch;
}

body,
body * {
  text-transform: none !important;
}

input::placeholder,
textarea::placeholder {
  text-transform: none !important;
}

/* Admin bar offsets for fixed/sticky UI. */
body.admin-bar .dle-nav {
  top: 32px;
}

body.admin-bar .dle-sticky {
  top: 105px;
}

@media (max-width: 782px) {
  body.admin-bar .dle-nav {
    top: 46px;
  }

  body.admin-bar .dle-sticky {
    top: 119px;
  }
}

/* Keep WordPress output aligned with the Astro typography. */
.entry-content {
  max-width: var(--dle-content-max);
}

.entry-content :where(p) {
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(var(--foreground));
}

.entry-content :where(h2) {
  font-family: var(--font-serif, ui-serif);
  font-size: 1.875rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
  padding-top: 2rem;
  text-wrap: balance;
}

.entry-content :where(h3) {
  font-family: var(--font-serif, ui-serif);
  font-size: 1.5rem;
  line-height: 1.25;
  color: hsl(var(--foreground));
  padding-top: 1.5rem;
}

.entry-content :where(ul, ol) {
  padding-left: 1.25rem;
  color: hsl(var(--foreground));
}

.entry-content :where(li) {
  margin: 0.35rem 0;
  line-height: 1.7;
}

.entry-content :where(a) {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content :where(blockquote) {
  border-left: 3px solid hsl(var(--border));
  padding-left: 1rem;
  color: hsl(var(--muted-foreground));
}

.entry-content :where(img) {
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

/* Paginate links output by WordPress. */
.page-numbers {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.page-numbers li {
  margin: 0;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid hsl(var(--border));
  padding: 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.page-numbers a:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground));
}

.page-numbers .current {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}
