/* Public blog pages — scoped to .pb-blog */

.pb-blog-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pb-blog-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.pb-blog-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
}

.pb-blog-featured {
  border-radius: 1.25rem;
  overflow: hidden;
}

.pb-blog-featured__media {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #f8fafc 100%);
  min-height: 12rem;
}

.pb-blog-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.pb-blog-prose h2,
.pb-blog-prose h3,
.pb-blog-prose h4 {
  color: #0f172a;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.pb-blog-prose h2 { font-size: 1.5rem; }
.pb-blog-prose h3 { font-size: 1.25rem; }
.pb-blog-prose h4 { font-size: 1.125rem; }

.pb-blog-prose p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.pb-blog-prose a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pb-blog-prose a:hover {
  color: #1d4ed8;
}

.pb-blog-prose a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 0.125rem;
}

.pb-blog-prose ul,
.pb-blog-prose ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.pb-blog-prose li {
  margin-bottom: 0.5rem;
}

.pb-blog-prose blockquote {
  border-left: 4px solid #dbeafe;
  color: #475569;
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
}

.pb-blog-prose img {
  border-radius: 0.75rem;
  height: auto;
  max-width: 100%;
}

.pb-blog-prose pre,
.pb-blog-prose code {
  background: #f1f5f9;
  border-radius: 0.375rem;
  font-size: 0.9em;
}

.pb-blog-prose pre {
  overflow-x: auto;
  padding: 1rem;
}

.pb-blog-prose pre code {
  background: transparent;
  padding: 0;
}

.pb-blog-cta {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 1.25rem;
}

.pb-blog-pagination a,
.pb-blog-pagination span {
  align-items: center;
  border-radius: 0.5rem;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.5rem 0.875rem;
}

.pb-blog-pagination a {
  border: 1px solid #e2e8f0;
  color: #334155;
}

.pb-blog-pagination a:hover {
  background: #f8fafc;
  color: #2563eb;
}

.pb-blog-pagination a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pb-blog-pagination .is-current {
  background: #2563eb;
  color: #fff;
}

/* Help Center — scoped to .pb-help */

.pb-help-pill {
  align-items: center;
  background: #eff6ff;
  border-radius: 9999px;
  color: #2563eb;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.375rem 0.75rem;
}

.pb-help-category-icon {
  align-items: center;
  background: #eff6ff;
  border-radius: 9999px;
  color: #2563eb;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.pb-help-search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

/* Changelog — scoped to .pb-changelog */

.pb-changelog-pill {
  align-items: center;
  border-radius: 9999px;
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  text-transform: uppercase;
}

.pb-changelog-pill--added {
  background: #eff6ff;
  color: #2563eb;
}

.pb-changelog-pill--improved {
  background: #ecfdf5;
  color: #059669;
}

.pb-changelog-pill--fixed {
  background: #fff7ed;
  color: #ea580c;
}

.pb-changelog-timeline {
  position: relative;
}

.pb-changelog-month + .pb-changelog-month {
  margin-top: 2.5rem;
}

.pb-changelog-month__label {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.pb-changelog-month__entries {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.pb-changelog-month__entries::before {
  background: #e2e8f0;
  bottom: 0.75rem;
  content: '';
  left: 0.375rem;
  position: absolute;
  top: 0.75rem;
  width: 2px;
}

.pb-changelog-item {
  margin: 0;
  padding: 0 0 1rem 1.5rem;
  position: relative;
}

.pb-changelog-item:last-child {
  padding-bottom: 0;
}

.pb-changelog-item::before {
  background: #2563eb;
  border: 2px solid #fff;
  border-radius: 9999px;
  box-shadow: 0 0 0 2px #dbeafe;
  content: '';
  height: 0.75rem;
  left: 0;
  position: absolute;
  top: 1.5rem;
  width: 0.75rem;
}

.pb-changelog-item__card {
  width: 100%;
}

/* Public header — explicit spacing (Tailwind gap/h utilities not always in built CSS) */

.pb-pub-header__inner {
  min-height: 4rem;
}

.pb-pub-header__desktop {
  align-items: center;
  gap: 2rem;
}

.pb-pub-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.pb-pub-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  border-left: 1px solid #e2e8f0;
}

.pb-pub-header__link {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pb-pub-header__link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pb-pub-header__link--active {
  background: #f1f5f9;
  color: #2563eb;
}

.pb-pub-header__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pb-pub-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pb-pub-header__mobile-link {
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
}

.pb-pub-header__mobile-link:hover {
  background: #f1f5f9;
}

.pb-pub-header__mobile-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Public footer — dark slate across modern public pages */

.pb-pub-footer {
  background-color: #020617;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-pub-footer__inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.pb-pub-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .pb-pub-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pb-pub-footer__grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.pb-pub-footer__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.pb-pub-footer__copy {
  margin: 1rem 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
}

.pb-pub-footer__heading {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f5f9;
}

.pb-pub-footer__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.pb-pub-footer__copyright {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #64748b;
}

.pb-pub-footer__link {
  border-radius: 0.25rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pb-pub-footer__link:hover {
  color: #fff;
}

.pb-pub-footer__link:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
