/*
 * CHANGE LOG
 * File: /var/www/html/prohrhq.com/static/css/how-google-jobs.css
 * Purpose: Page-specific layout for /how-google-jobs-works.
 *          Reuses the global ProHRHQ design tokens, typography, button,
 *          table, palette, and container system from prohrhq_public.css.
 * Version History:
 *   2026-08-19 v2.0 - Rebuilt vertical rhythm and page structure.
 *
 * Architectural rule:
 *   Global typography/buttons/colors remain in prohrhq_public.css.
 *   This file contains only layout and components unique to this page.
 */

.gj-page {
  padding-bottom: var(--space-6);
}

/* In-page back-nav, top of content. Same pattern already used on
   /post-a-job and /atlantic (.ph-page-nav is page-scoped there too --
   no shared definition in prohrhq_public.css), token-based here rather
   than the hardcoded hex those two use. Fixes the "orphaned page" gap:
   the global top navbar (untouched) has Home + CDL Jobs, but nothing
   back to /post-a-job, which is this page's own funnel target. */
.ph-page-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  max-width: 980px;
  margin: 0 auto var(--space-5);
  padding: var(--space-3) 1.25rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.ph-page-nav a {
  color: var(--color-accent);
  text-decoration: none;
}

.ph-page-nav a:hover {
  text-decoration: underline;
}

.ph-page-nav .ph-page-nav-sep {
  color: var(--color-text-mute);
}

.gj-eyebrow,
.gj-section__eyebrow,
.gj-principle__label {
  margin: 0 0 var(--space-2);
  color: var(--color-text-mute);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gj-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.gj-section--wide {
  max-width: 980px;
}

.gj-section + .gj-section {
  border-top: 1px solid var(--color-rule-soft);
}

.gj-section h2:first-of-type {
  margin-top: 0;
}

.gj-lede {
  max-width: var(--maxw-prose);
  color: var(--color-text-mute);
}

.gj-principle {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}

.gj-principle h2 {
  margin-top: 0;
}

.gj-principle p:last-child {
  margin-bottom: 0;
}

.gj-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.gj-point {
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-accent);
}

.gj-point h3 {
  margin-top: 0;
}

.gj-point p:last-child {
  margin-bottom: 0;
}

.gj-table-wrap {
  margin-top: var(--space-5);
  overflow-x: auto;
}

.gj-source-note {
  max-width: var(--maxw-prose);
  margin-top: var(--space-4);
  color: var(--color-text-mute);
}

.gj-flow {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: gj-step;
}

.gj-flow li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--space-4);
  align-items: start;
  counter-increment: gj-step;
}

.gj-flow li::before {
  content: counter(gj-step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-rule);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-weight: 600;
}

.gj-flow h3 {
  margin-top: 0;
}

.gj-flow p:last-child {
  margin-bottom: 0;
}

.gj-guardrail {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border-top: 3px solid var(--color-text-mute);
}

.gj-guardrail h2 {
  margin-top: 0;
}

.gj-guardrail p:last-child {
  margin-bottom: 0;
}

.gj-section--cta {
  max-width: var(--maxw-prose);
  text-align: center;
}

.gj-section--cta h2 {
  border-bottom: 0;
}

.gj-section--cta p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .gj-points {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .gj-principle,
  .gj-guardrail {
    padding: var(--space-5);
  }

  .gj-flow li {
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-3);
  }
}
