/* ResumeGrow — Single blog post template
   Pairs with blog-category.css (shared CTA, cards, pills, scroll-to-top). */

:root {
  --rg-callout-bg: #EEF3FF;
  --rg-callout-border: #DCE6FF;
  --rg-quote-bg: #F6F8FF;
  --rg-body-text: #3A4A60;
  --rg-body-muted: #5C6B7A;
}

.rg-post-page { font-family: var(--rg-font, "Inter", system-ui, sans-serif); color: var(--rg-text, #1A2B4C); background: #fff; }

/* BACK TO BLOG BAR */
.rg-postbar { background: #F5F7FB; border-bottom: 1px solid var(--rg-border, #E5E7EB); }
.rg-postbar__inner { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.rg-postbar__back {
  color: var(--rg-text, #1A2B4C); text-decoration: none; font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.rg-postbar__back:hover { color: var(--rg-blue, #4D7CFE); }
.rg-postbar__cat {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--rg-text, #1A2B4C); text-decoration: none;
  border: 1px solid var(--rg-border, #E5E7EB); border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.rg-postbar__cat:hover { border-color: var(--rg-blue, #4D7CFE); color: var(--rg-blue, #4D7CFE); }

/* ARTICLE WRAPPER */
.rg-post { padding: 56px 24px 32px; }
.rg-post__inner { max-width: 760px; margin: 0 auto; }

/* HEADER */
.rg-post__title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rg-navy, #1A2B4C);
  margin: 0 0 24px;
}

.rg-post-author { display: flex; align-items: center; gap: 12px; color: var(--rg-body-muted); font-size: .95rem; }
.rg-post-author__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rg-post-author__name { color: var(--rg-navy, #1A2B4C); font-weight: 600; }
.rg-post-author__sep { color: #C9D0DA; }
.rg-post-author__date { color: var(--rg-body-muted); }

.rg-post__cover { margin: 32px 0 0; }
.rg-post__cover img { width: 100%; height: auto; border-radius: 16px; display: block; }

.rg-post__rule { border: 0; border-top: 1px solid var(--rg-border, #E5E7EB); margin: 36px 0 28px; }

/* TOC */
.rg-toc { margin: 0 0 16px; }
.rg-toc__label {
  display: inline-block; font-weight: 700; color: var(--rg-navy, #1A2B4C);
  margin-bottom: 12px; font-size: 1rem;
}
.rg-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: rg-toc; }
.rg-toc__item {
  counter-increment: rg-toc;
  margin: 6px 0; padding-left: 28px; position: relative; line-height: 1.5;
}
.rg-toc__item::before {
  content: counter(rg-toc) ".";
  position: absolute; left: 0; top: 0;
  color: var(--rg-blue, #4D7CFE); font-weight: 600;
}
.rg-toc__item--h3 { padding-left: 44px; font-size: .95rem; }
.rg-toc__item--h3::before { left: 18px; color: var(--rg-body-muted); }
.rg-toc__item a {
  color: var(--rg-blue, #4D7CFE); text-decoration: none; font-weight: 500;
}
.rg-toc__item a:hover { text-decoration: underline; }

/* BODY TYPOGRAPHY */
.rg-post__body {
  font-size: 1.0625rem; line-height: 1.75; color: var(--rg-body-text);
}
.rg-post__body > * + * { margin-top: 1.2em; }
.rg-post__body p { margin: 0 0 1.2em; }
.rg-post__body h2 {
  font-size: 1.75rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em;
  color: var(--rg-navy, #1A2B4C); margin: 2.2em 0 .8em; scroll-margin-top: 80px;
}
.rg-post__body h3 {
  font-size: 1.3rem; font-weight: 700; line-height: 1.35;
  color: var(--rg-navy, #1A2B4C); margin: 1.8em 0 .6em; scroll-margin-top: 80px;
}
.rg-post__body h4 { font-size: 1.1rem; font-weight: 700; color: var(--rg-navy, #1A2B4C); margin: 1.5em 0 .5em; }
.rg-post__body strong, .rg-post__body b { color: var(--rg-navy, #1A2B4C); font-weight: 700; }
.rg-post__body a {
  color: var(--rg-blue, #4D7CFE); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .15s;
}
.rg-post__body a:hover { border-bottom-color: var(--rg-blue, #4D7CFE); }

.rg-post__body ul, .rg-post__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.rg-post__body li { margin: 0 0 .5em; }
.rg-post__body ul li::marker { color: var(--rg-blue, #4D7CFE); }

.rg-post__body img {
  max-width: 100%; height: auto; display: block;
  border-radius: 12px; margin: 1.5em 0;
}
.rg-post__body figure { margin: 1.8em 0; }
.rg-post__body figcaption {
  text-align: center; color: var(--rg-body-muted); font-size: .875rem; margin-top: 8px;
}

.rg-post__body blockquote {
  background: var(--rg-quote-bg);
  border-left: 4px solid var(--rg-blue, #4D7CFE);
  border-radius: 8px;
  padding: 18px 22px; margin: 1.8em 0;
  font-style: italic; color: var(--rg-navy, #1A2B4C);
}
.rg-post__body blockquote::before {
  content: "EXPERT CALLOUT";
  display: block;
  font-style: normal; font-size: .7rem; letter-spacing: .14em;
  color: var(--rg-blue, #4D7CFE); font-weight: 700; margin-bottom: 6px;
}
.rg-post__body blockquote p:last-child { margin-bottom: 0; }

/* Tip / callout box — wrap content like <div class="rg-callout">…</div> in editor */
.rg-post__body .rg-callout,
.rg-post__body .wp-block-group.is-style-rg-callout {
  background: var(--rg-callout-bg);
  border: 1px solid var(--rg-callout-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 1.8em 0;
  color: var(--rg-navy, #1A2B4C);
}
.rg-post__body .rg-callout p:last-child { margin-bottom: 0; }

.rg-post__body code {
  background: #F1F4FA; padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
}
.rg-post__body pre {
  background: #0F172A; color: #E2E8F0; padding: 16px 18px;
  border-radius: 10px; overflow-x: auto;
}
.rg-post__body pre code { background: transparent; padding: 0; color: inherit; }

/* RECOMMENDED */
.rg-recommended { padding: 72px 0 32px; background: #F9FAFC; }
.rg-recommended__head { text-align: center; margin-bottom: 36px; }
.rg-recommended__title {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 800;
  color: var(--rg-navy, #1A2B4C); margin: 0 0 8px; letter-spacing: -.01em;
}
.rg-recommended__sub { color: var(--rg-body-muted); margin: 0; }
.rg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rg-recommended__more { text-align: center; margin-top: 32px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .rg-post { padding: 36px 20px 24px; }
  .rg-post__title { font-size: 1.85rem; }
  .rg-post-author { flex-wrap: wrap; }
  .rg-postbar__inner { flex-wrap: wrap; gap: 10px; }
  .rg-grid--4 { grid-template-columns: 1fr; }
  .rg-post__body { font-size: 1rem; }
  .rg-post__body h2 { font-size: 1.5rem; }
  .rg-post__body h3 { font-size: 1.2rem; }
}
