html .button.page-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 26px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

html .button.page-button.primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb 0%, #0fbaa5 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.30);
}

html .button.page-button.primary:hover,
html .button.page-button.primary:focus-visible {
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea795 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.40);
  outline: none;
  transform: translateY(-1px);
}

html .button.page-button.secondary {
  border-color: var(--line-strong, var(--border));
  background: var(--paper, var(--card-bg));
  color: var(--ink, var(--text));
  box-shadow: none;
}

html .button.page-button.secondary:hover,
html .button.page-button.secondary:focus-visible {
  border-color: var(--brand, var(--accent));
  color: var(--brand, var(--accent));
  box-shadow: 0 8px 20px rgba(15, 32, 51, 0.12);
  outline: none;
  transform: translateY(-1px);
}

html .related .pill {
  display: inline-block;
  border: 1.5px solid var(--border, var(--line));
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--card-bg, var(--paper));
  color: var(--text, var(--ink));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

[data-theme="light"] .related .pill {
  border-color: #aebdd1;
  background: #d8e0ec;
}

[data-theme="dark"] .related .pill {
  border-color: #3b4863;
  background: #28324a;
}

html .related .pill:hover,
html .related .pill:focus-visible {
  border-color: var(--accent, var(--brand));
  color: var(--accent, var(--brand));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
  outline: none;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  html .button.page-button {
    transition: none;
  }

  html .button.page-button:hover,
  html .button.page-button:focus-visible,
  html .related .pill:hover,
  html .related .pill:focus-visible {
    transform: none;
  }
}
