/* ── Content pages: blog, posts, authors, about, legal pages, 404 ──
   Same tokens and look as the tool pages (css/sections.css) and the directory pages (css/listing.css). */
body {
  background: #fff;
}

.pg {
  --pg-brand: #dd4db5;
  --pg-brand-strong: #c2379b;
  --pg-brand-soft: #fdf1fa;
  --pg-brand-line: #f6cfea;
  --pg-ink: #17131f;
  --pg-text: #4b4758;
  --pg-muted: #7b7788;
  --pg-line: #e9e7ef;
  --pg-tint: #faf9fc;
  display: block;
  width: 100%;
  max-width: none;
  color: var(--pg-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.pg *,
.pg *::before,
.pg *::after {
  box-sizing: border-box;
}

/* Theme stylesheets set their own font on links, spans and headings */
.pg * {
  font-family: inherit;
}

.pg a {
  text-decoration: none;
}

.pg svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.pg-container--narrow {
  max-width: 800px;
}

/* ── Page heading ── */
.pg-hero {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--pg-line);
  background:
    radial-gradient(800px 260px at 50% -60px, rgba(221, 77, 181, 0.12), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--pg-tint) 100%);
}

.pg-hero--center {
  text-align: center;
}

.pg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--pg-muted);
  font-size: 14px;
}

.pg-hero--center .pg-crumbs {
  justify-content: center;
}

.pg-crumbs a {
  color: var(--pg-brand-strong);
  font-weight: 600;
}

.pg-crumbs a:hover {
  text-decoration: underline;
}

.pg .pg-kicker {
  margin: 0 0 8px;
  color: var(--pg-brand-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg .pg-h1 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--pg-ink);
  font-family: inherit;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: inherit;
  text-wrap: balance;
}

.pg .pg-sub {
  max-width: 680px;
  margin: 0;
  color: var(--pg-text);
  font-size: 17px;
  line-height: 1.55;
}

.pg-hero--center .pg-sub {
  margin: 0 auto;
}

.pg-body {
  padding: 48px 0 80px;
}

.pg .pg-h2 {
  margin: 0 0 20px;
  color: var(--pg-ink);
  font-family: inherit;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: inherit;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--pg-brand);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(221, 77, 181, 0.28);
  transition: background 0.18s ease;
}

.pg-btn:hover {
  background: var(--pg-brand-strong);
}

.pg-btn--ghost {
  border: 1px solid var(--pg-line);
  background: #fff;
  color: var(--pg-ink) !important;
  box-shadow: none;
}

.pg-btn--ghost:hover {
  border-color: var(--pg-brand);
  background: var(--pg-brand-soft);
}

/* ── Long-form text: posts and legal pages ── */
.pg-prose {
  color: var(--pg-text);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.pg-prose > :first-child {
  margin-top: 0;
}

.pg-prose p,
.pg-prose ul,
.pg-prose ol,
.pg-prose blockquote,
.pg-prose table,
.pg-prose figure {
  margin: 0 0 1.25em;
}

.pg-prose h2,
.pg-prose h3,
.pg-prose h4 {
  padding: 0;
  color: var(--pg-ink);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
}

.pg-prose h2 {
  margin: 2em 0 0.6em;
  font-size: 26px;
}

.pg-prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 21px;
}

.pg-prose h4 {
  margin: 1.5em 0 0.4em;
  font-size: 18px;
}

.pg-prose a {
  color: var(--pg-brand-strong);
  text-decoration: underline;
  text-decoration-color: var(--pg-brand-line);
  text-underline-offset: 3px;
}

.pg-prose a:hover {
  text-decoration-color: currentColor;
}

.pg-prose strong,
.pg-prose b {
  color: var(--pg-ink);
  font-weight: 700;
}

.pg-prose ul,
.pg-prose ol {
  padding-left: 1.4em;
}

.pg-prose li {
  margin: 0 0 0.45em;
  padding-left: 0.2em;
}

.pg-prose li::marker {
  color: var(--pg-brand);
}

.pg-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75em auto;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
}

.pg-prose blockquote {
  padding: 14px 20px;
  border-left: 4px solid var(--pg-brand);
  border-radius: 0 12px 12px 0;
  background: var(--pg-brand-soft);
  color: var(--pg-ink);
}

.pg-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.pg-prose th,
.pg-prose td {
  padding: 10px 14px;
  border: 1px solid var(--pg-line);
  text-align: left;
}

.pg-prose th {
  background: var(--pg-tint);
  color: var(--pg-ink);
  font-weight: 700;
}

.pg-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--pg-tint);
  color: var(--pg-ink);
  font-size: 0.9em;
}

.pg-prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--pg-line);
}

/* Legal pages: the theme text sits in .py-3 blocks */
.pg-legal .py-3 {
  padding: 0 !important;
}

.pg-legal-card {
  padding: 40px 44px;
  border: 1px solid var(--pg-line);
  border-radius: 20px;
  background: #fff;
}

.pg-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--pg-muted);
  font-size: 14px;
}

/* ── Post page ── */
.pg-post-head {
  max-width: 800px;
}

.pg-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--pg-muted);
  font-size: 14px;
}

.pg-post-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pg-ink);
  font-weight: 600;
}

.pg-post-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pg-brand-soft);
  object-fit: cover;
}

.pg-post-author:hover span {
  color: var(--pg-brand-strong);
}

.pg-dot {
  color: #c4c1cf;
}

.pg-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.pg-post-cover {
  margin: 0 0 32px;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: var(--pg-brand-soft);
}

.pg-post-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.pg-aside {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pg-card {
  padding: 20px;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
}

.pg .pg-card-title {
  margin: 0 0 14px;
  color: var(--pg-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.pg-share {
  display: flex;
  gap: 8px;
}

.pg-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  color: var(--pg-ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pg-share a:hover {
  border-color: var(--pg-brand);
  background: var(--pg-brand-soft);
  color: var(--pg-brand-strong);
}

.pg-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.pg-toollinks {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-toollinks li {
  margin: 0;
  padding: 0;
}

.pg-toollinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pg-line);
  color: var(--pg-ink);
  font-size: 14px;
  font-weight: 500;
}

.pg-toollinks li:last-child a {
  border-bottom: 0;
}

.pg-toollinks a svg {
  width: 16px;
  height: 16px;
  color: #c4c1cf;
}

.pg-toollinks a:hover {
  color: var(--pg-brand-strong);
}

.pg-toollinks a:hover svg {
  color: var(--pg-brand);
}

.pg-cta-card {
  border-color: var(--pg-brand-line);
  background: linear-gradient(160deg, #fff, var(--pg-brand-soft));
}

.pg-cta-card p {
  margin: 0 0 14px;
  color: var(--pg-text);
  font-size: 14px;
  line-height: 1.55;
}

.pg-cta-card .pg-btn {
  width: 100%;
  height: 44px;
}

.pg-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--pg-line);
}

.pg-postnav a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  color: var(--pg-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pg-postnav a:hover {
  border-color: var(--pg-brand);
  background: var(--pg-brand-soft);
}

.pg-postnav span {
  display: block;
  margin-bottom: 4px;
  color: var(--pg-muted);
  font-size: 13px;
  font-weight: 500;
}

.pg-postnav .is-next {
  grid-column: 2;
  text-align: right;
}

.pg-bio {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: var(--pg-tint);
}

.pg-bio img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.pg-bio-name {
  margin: 2px 0 6px;
  color: var(--pg-ink);
  font-size: 18px;
  font-weight: 800;
}

.pg-bio-name a {
  color: inherit;
}

.pg-bio-name a:hover {
  color: var(--pg-brand-strong);
}

.pg-bio p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Blog list ── */
.pg-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pg-pagination a,
.pg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pg-ink);
  font-size: 14px;
  font-weight: 600;
}

.pg-pagination a:hover {
  border-color: var(--pg-brand);
  background: var(--pg-brand-soft);
}

.pg-pagination .is-current {
  border-color: var(--pg-brand);
  background: var(--pg-brand);
  color: #fff;
}

.pg-pagination .is-disabled {
  color: #c4c1cf;
}

/* ── Authors ── */
.pg-authors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-authors > li {
  margin: 0;
  padding: 0;
}

.pg-author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 24px 24px;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pg-author-card:hover {
  border-color: var(--pg-brand-line);
  box-shadow: 0 12px 32px rgba(23, 19, 31, 0.08);
  transform: translateY(-2px);
}

.pg-avatar {
  display: block;
  width: 88px;
  height: 88px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pg-brand-soft);
  box-shadow: 0 0 0 1px var(--pg-line);
  object-fit: cover;
}

.pg-avatar--lg {
  width: 120px;
  height: 120px;
}

.pg-author-card-name {
  margin: 16px 0 4px;
  color: var(--pg-ink);
  font-size: 18px;
  font-weight: 800;
}

.pg-author-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 14px;
}

.pg-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pg-brand-soft);
  color: var(--pg-brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.pg-author-card-bio {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--pg-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.pg-author-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--pg-brand-strong);
  font-size: 14px;
  font-weight: 600;
}

.pg-author-card-link svg {
  width: 16px;
  height: 16px;
}

.pg-profile {
  display: flex;
  gap: 28px;
  align-items: center;
}

.pg-profile .pg-sub {
  max-width: 720px;
}

.pg-profile .pg-author-stats {
  justify-content: flex-start;
  margin: 14px 0 0;
}

.pg-section + .pg-section {
  margin-top: 56px;
}

.pg-empty {
  padding: 32px;
  border: 1px dashed var(--pg-line);
  border-radius: 16px;
  color: var(--pg-muted);
  text-align: center;
}

/* ── About ── */
.pg-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pg-callout {
  padding: 24px;
  border: 1px solid var(--pg-brand-line);
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, var(--pg-brand-soft));
}

.pg-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--pg-brand-strong);
}

.pg-callout h3 {
  margin: 0 0 6px;
  color: var(--pg-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.pg-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.pg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-stats li {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.pg-stat-value {
  display: block;
  color: var(--pg-ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pg-stat-label {
  display: block;
  margin-top: 6px;
  color: var(--pg-muted);
  font-size: 14px;
}

.pg-band {
  margin-top: 64px;
  padding: 40px;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(135deg, var(--pg-brand), var(--pg-brand-strong));
  color: #fff;
  text-align: center;
}

.pg .pg-band h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: inherit;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.pg-band p {
  margin: 0 auto 22px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
}

.pg-band .pg-btn {
  background: #fff;
  color: var(--pg-brand-strong) !important;
  box-shadow: none;
}

.pg-band .pg-btn:hover {
  background: var(--pg-brand-soft);
}

/* ── 404 ── */
.pg-404 {
  padding: 96px 0 112px;
  text-align: center;
}

.pg-404-code {
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--pg-brand), #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(72px, 14vw, 132px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pg-404 .pg-sub {
  margin: 0 auto 28px;
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 960px) {
  .pg-post-layout,
  .pg-about-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-aside {
    position: static;
  }

  .pg-authors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pg-container {
    padding: 0 16px;
  }

  .pg-body {
    padding: 32px 0 56px;
  }

  .pg-prose {
    font-size: 16px;
  }

  .pg-prose h2 {
    font-size: 22px;
  }

  .pg-legal-card {
    padding: 24px 20px;
  }

  .pg-authors,
  .pg-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-profile {
    flex-direction: column;
    text-align: center;
  }

  .pg-profile .pg-author-stats {
    justify-content: center;
  }

  .pg-profile .pg-sub {
    margin: 0 auto;
  }

  .pg-postnav {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-postnav .is-next {
    grid-column: auto;
  }

  .pg-bio {
    flex-direction: column;
  }

  .pg-band {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg * {
    transition: none !important;
  }
}

/* About: "what we offer" tiles are labels, not links */
.cs .pg-offer {
  cursor: default;
}

.cs .pg-offer svg,
.cs .pg-offer:hover svg {
  color: var(--cs-brand);
  transform: none;
}

.cs .pg-offer:hover {
  border-color: var(--cs-line);
  background: #fff;
  color: var(--cs-ink);
}

.pg-stats a {
  color: inherit;
}

.pg-stats a:hover .pg-stat-value {
  color: var(--pg-brand-strong);
}
