/* Guest posting page — page-specific on top of nh-base/nh-pages */
.pg-gp .sr { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--nh-ease), transform .6s var(--nh-ease); }
.pg-gp .sr.sr-left { transform: translateX(-24px); }
.pg-gp .sr.sr-right { transform: translateX(24px); }
.pg-gp .sr.sr-scale { transform: scale(.96); }
.pg-gp .sr.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pg-gp .sr { opacity: 1; transform: none; transition: none; } }

.pg-gp-accent { font-style: normal; color: var(--nh-cyan); }
.nhp-section .pg-gp-accent, .nhp-band:not(.nhp-band--navy) .pg-gp-accent { color: var(--nh-h2-accent, #0da8d6); }
.pg-gp-h2 { margin-bottom: 16px; }
.pg-gp-lead { font-size: 1.12rem; color: var(--nh-ink); font-weight: 500; }
.pg-gp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 22px auto 0; max-width: 820px; }
.pg-gp-pills li { font-size: .92rem; }
.pg-gp-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.pg-gp-head .nh-sec-sub { margin-top: 12px; }

/* Overview stat cards */
.pg-gp-stat { gap: 8px; }
.pg-gp-stat-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--nh-ink); line-height: 1.1; }
.pg-gp-stat p { font-size: .85rem; }

/* Keyword section */
.pg-gp-kw { max-width: 820px; margin: 0 auto; }
.pg-gp-kw h2 { margin-top: 0; }
.pg-gp-kw p { margin-bottom: 0; }

/* Niche cards */
.pg-gp-niche { position: relative; }
.pg-gp-count { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--nh-cyan-d); background: var(--nh-sky); padding: 4px 10px; border-radius: 999px; }

/* DR tier cards */
.pg-gp-dr-grid { align-items: stretch; }
.pg-gp-tag { background: var(--nh-sky); color: var(--nh-ink); }
.pg-gp-dr-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--nh-ink); line-height: 1; margin-top: 6px; }
.pg-gp-bar-wrap { display: grid; gap: 6px; }
.pg-gp-bar-head { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--nh-muted); letter-spacing: .04em; text-transform: uppercase; }
.pg-gp-track { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.pg-gp-track .gp-dr-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--nh-cyan-d), var(--nh-cyan)); transition: width 1.1s var(--nh-ease); }
@media (prefers-reduced-motion: reduce) { .pg-gp-track .gp-dr-fill { transition: none; } }
.pg-gp-dr-desc { margin: 0; font-size: .9rem; color: var(--nh-body); line-height: 1.55; border-top: 1px solid var(--nh-line); padding-top: 14px; flex: 1; }

/* Process — horizontal stepper: numbered circle, connector at circle height, title + text underneath.
   (The connector never crosses the titles; it runs from one circle to the next.) */
.pg-gp-process { position: relative; }
.pg-gp-timeline { display: none; }
.pg-gp-process .nhp-steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pg-gp-process .nhp-steps li { position: relative; flex-direction: column; align-items: flex-start; gap: 0; }
.pg-gp-process .nhp-step-n, .pg-gp-process .nhp-steps li:nth-child(n) .nhp-step-n { width: 56px; height: 56px; background: var(--nh-ink); color: #fff; font-size: 1.05rem; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(15,29,51,.18); }
.pg-gp-process .nhp-steps li:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: 72px; right: -16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--nh-cyan-d), var(--nh-cyan)); }
.pg-gp-process .nhp-steps h3 { margin: 20px 0 8px; font-size: 1.12rem; line-height: 1.25; }
.pg-gp-process .nhp-steps p { font-size: .95rem; line-height: 1.6; max-width: 30ch; }

/* Guarantee */
.pg-gp-guar { text-align: center; }
.pg-gp-shield { display: inline-flex; width: 72px; height: 72px; border-radius: 20px; background: rgba(37,208,255,.14); color: var(--nh-cyan); align-items: center; justify-content: center; margin-bottom: 18px; }
.pg-gp-guar .nh-h2 { color: #fff; }
.pg-gp-guar > p { max-width: 640px; margin: 14px auto 0; font-size: 1.05rem; line-height: 1.6; }

/* Final CTA */
.pg-gp-cta { padding-top: 56px; }
.pg-gp-cta .nhp-badge { margin-bottom: 10px; }
.pg-gp-cta .nh-cta-copy p { margin-top: 10px; }

@media (max-width: 1024px) {
  /* two-up: no connectors */
  .pg-gp-process .nhp-steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .pg-gp-process .nhp-steps li:not(:last-child)::after { content: none; }
  .pg-gp-process .nhp-steps p { max-width: 38ch; }
}
@media (max-width: 768px) {
  /* nothing slides in sideways on phones */
  .pg-gp .sr.sr-left, .pg-gp .sr.sr-right { transform: translateY(24px); }
}
@media (max-width: 640px) {
  .pg-gp-pills { gap: 10px 18px; }
  /* phones: vertical timeline — circle left, text right, connector running down between circles */
  .pg-gp-process .nhp-steps--row { grid-template-columns: 1fr; gap: 28px; }
  .pg-gp-process .nhp-steps li { flex-direction: row; gap: 16px; }
  .pg-gp-process .nhp-step-n, .pg-gp-process .nhp-steps li:nth-child(n) .nhp-step-n { width: 48px; height: 48px; font-size: .95rem; }
  .pg-gp-process .nhp-steps li:not(:last-child)::after { content: ''; top: 56px; bottom: -20px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--nh-cyan-d), var(--nh-cyan)); }
  .pg-gp-process .nhp-steps h3 { margin: 10px 0 6px; }
  .pg-gp-process .nhp-steps p { max-width: none; }
  .pg-gp-cta .nh-h2 br { display: none; }
  .pg-gp-count { font-size: .75rem; }
}

/* legacy style.css sets p { color: var(--text-secondary) } — restore prose colour */
.pg-gp .nhp-prose p { color: var(--nh-body); }
.pg-gp .nhp-prose p.pg-gp-lead { color: var(--nh-ink); }
