/* =========================================================
   ProFinder Blog Formatter — article body styling
   Applies automatically to every blog post (existing and future),
   wherever this plugin is active. No per-article edits needed.
   ========================================================= */

/* ---- Reading width: cap + center the article ---- */
body.single-post .blog-post {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ---- Body text: darken + give sections room to breathe ---- */
body.single-post .blog-post p {
  color: #3a3a3a;
  margin-bottom: 18px;
}

body.single-post .blog-post h1 {
  margin-bottom: 22px;
}

body.single-post .blog-post h2,
body.single-post .blog-post h3,
body.single-post .blog-post h4 {
  margin-top: 38px;
  margin-bottom: 16px;
}

body.single-post .blog-post h1 + h2,
body.single-post .blog-post h1 + h3 {
  margin-top: 10px;
}

/* ---- Tables: real borders, a header row that stands out,
   sensible column sizing, and space above/below ---- */
body.single-post .blog-post table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin: 10px 0 30px 0;
  font-size: 16px;
}

body.single-post .blog-post table td,
body.single-post .blog-post table th {
  border: 1px solid #e0e3e2;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

body.single-post .blog-post table tr:first-child td {
  background: #f2f8f5;
  color: #1e3d2f;
  font-weight: 700;
  border-bottom: 2px solid #00a651;
}

body.single-post .blog-post table tr:not(:first-child):nth-child(even) td {
  background: #fafbfa;
}

@media (max-width: 767px) {
  body.single-post .blog-post table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ---- Lists: restore real bullets/numbers (theme resets
   list-style:none globally for menus etc; this re-enables
   real markers specifically inside the article body) ---- */
body.single-post .blog-post ul {
  list-style: disc outside !important;
  padding-left: 22px !important;
  margin: 4px 0 26px 0 !important;
}

body.single-post .blog-post ol {
  list-style: decimal outside !important;
  padding-left: 22px !important;
  margin: 4px 0 26px 0 !important;
}

body.single-post .blog-post ul li,
body.single-post .blog-post ol li {
  list-style: inherit !important;
  color: #3a3a3a;
  margin-bottom: 10px;
  line-height: 1.6;
}

body.single-post .blog-post li ul,
body.single-post .blog-post li ol {
  margin: 8px 0 8px 0 !important;
}

/* ---- "Quick Answer" / TL;DR callout box ----
   Inserted via the "Quick Answer Box" pattern in the block
   inserter (Patterns tab) — no CSS class typing required. */
body.single-post .blog-post .pf-tldr {
  background: #f2f8f5;
  border-left: 4px solid #00a651;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 6px 0 30px 0;
  font-size: 17px;
  line-height: 1.6;
  color: #1e3d2f;
}

body.single-post .blog-post .pf-tldr p:last-child {
  margin-bottom: 0;
}

body.single-post .blog-post .pf-tldr::before {
  content: "Quick Answer";
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00a651;
  margin-bottom: 8px;
}

/* ---- Same styling inside the block editor, so what editors
   see while writing matches the published article ---- */
.block-editor .editor-styles-wrapper p {
  color: #3a3a3a;
}

.block-editor .editor-styles-wrapper table {
  border-collapse: collapse;
  width: 100%;
}

.block-editor .editor-styles-wrapper table td,
.block-editor .editor-styles-wrapper table th {
  border: 1px solid #e0e3e2;
  padding: 10px 12px;
}

.block-editor .editor-styles-wrapper table tr:first-child td {
  background: #f2f8f5;
  font-weight: 700;
  border-bottom: 2px solid #00a651;
}

.block-editor .editor-styles-wrapper ul {
  list-style: disc outside;
  padding-left: 22px;
}

.block-editor .editor-styles-wrapper ol {
  list-style: decimal outside;
  padding-left: 22px;
}

.block-editor .editor-styles-wrapper .pf-tldr {
  background: #f2f8f5;
  border-left: 4px solid #00a651;
  border-radius: 6px;
  padding: 18px 20px;
}
