/* =============================================
   OUTBOUND — Blog Stylesheet
   Shared by: /blog (index), /blog/<slug> (post)
   ============================================= */

/* ---- Index: Categories Strip ---- */
.blog-index-section {
  padding: 64px 24px 80px;
  border-bottom: 1px solid var(--border);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.blog-chip:hover {
  color: var(--white);
  border-color: var(--orange);
}

.blog-chip--active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.blog-guides {
  margin: -12px 0 36px;
}

.blog-guides__title {
  margin: 0 0 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.blog-guides__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blog-guides__link {
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.blog-guides__link:hover {
  border-color: var(--orange);
  color: var(--white);
}

/* ---- Index: Cards ---- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.blog-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.blog-card__meta {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.blog-card__sep {
  margin: 0 8px;
  color: var(--muted-2);
}

.blog-card__category { color: var(--orange); }

.blog-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover { color: var(--orange); }

.blog-card__excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.blog-card__cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  margin-top: 4px;
}

.blog-card__cta:hover { text-decoration: underline; }

/* ---- Empty state ---- */
.blog-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
  margin-bottom: 48px;
}

.blog-empty a { color: var(--orange); }

/* ---- Index: Pagination ---- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.blog-pagination__label {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Post detail: Article body ---- */
.blog-post-section {
  padding: 64px 24px 80px;
  border-bottom: 1px solid var(--border);
}

.article-body { color: var(--white); }

.article-section { margin-bottom: 56px; }
.article-section:last-child { margin-bottom: 0; }

.article-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.article-section h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white);
  margin: 32px 0 12px;
}

.article-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}

.article-section p strong { color: var(--white); }
.article-section p em { color: var(--white); font-style: italic; }

.article-section ul,
.article-section ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
}

.article-section li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-section a {
  color: var(--orange);
  text-decoration: none;
}

.article-section a:hover { text-decoration: underline; }

.article-section blockquote {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: var(--white);
  font-style: italic;
}

.article-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--white);
}

.article-section pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 20px;
}

/* ---- Post detail: Staffing service CTA ---- */
.blog-staffing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
}

.blog-staffing-cta__content { min-width: 0; }

.blog-staffing-cta__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 8px;
}

.blog-staffing-cta__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.blog-staffing-cta__link {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.blog-staffing-cta__link:hover { opacity: 0.88; }

.blog-staffing-cta__link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ---- Post detail: prev/next nav ---- */
.blog-post__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.blog-post__nav-link--next {
  text-align: right;
  align-items: flex-end;
}

.blog-post__nav-link:hover { border-color: var(--orange); }

.blog-post__nav-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.blog-post__nav-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ---- Lead Capture (inline form: /blog index + /blog/<slug>) ---- */
.blog-lead-capture {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 0 0 40px;
  overflow: hidden;
}

.blog-lead-capture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 92, 0, 0));
}

.blog-lead-capture__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-lead-capture__label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10b981;
}

.blog-lead-capture__headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.blog-lead-capture__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}

.blog-lead-capture__form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
}

.blog-lead-capture__input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--white);
  outline: none;
  min-width: 0;
  transition: border-color 0.18s ease;
}

.blog-lead-capture__input::placeholder { color: var(--muted-2); }

.blog-lead-capture__input:focus { border-color: var(--orange); }

.blog-lead-capture__btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
}

.blog-lead-capture__btn:hover:not(:disabled) { opacity: 0.88; }
.blog-lead-capture__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.blog-lead-capture__success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  color: #10b981;
  font-weight: 500;
  max-width: 520px;
}

.blog-lead-capture__note {
  font-size: 12px;
  color: var(--muted-2);
  margin: 0;
}

@media (max-width: 768px) {
  .blog-guides__list { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .blog-card { padding: 18px; }
  .article-section p { font-size: 16px; }
  .blog-staffing-cta { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .blog-staffing-cta__link { width: 100%; }
  .blog-post__nav { grid-template-columns: 1fr; }
  .blog-post__nav-link--next { text-align: left; align-items: flex-start; }
  .blog-lead-capture { padding: 22px 20px 20px; }
  .blog-lead-capture__form { flex-direction: column; }
  .blog-lead-capture__btn { width: 100%; }
}

@media print {
  body.staffing-checklist-print {
    background: #fff;
    color: #111;
    font-size: 11pt;
    line-height: 1.45;
    overflow: visible;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.staffing-checklist-print .nav,
  body.staffing-checklist-print .footer,
  body.staffing-checklist-print .blog-staffing-cta,
  body.staffing-checklist-print .blog-lead-capture,
  body.staffing-checklist-print .blog-guides,
  body.staffing-checklist-print .blog-post__nav,
  body.staffing-checklist-print .hiw-cta-section {
    display: none !important;
  }

  body.staffing-checklist-print .page-hero,
  body.staffing-checklist-print .blog-post-section {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.staffing-checklist-print .page-hero::before {
    display: none;
  }

  body.staffing-checklist-print .page-hero__inner,
  body.staffing-checklist-print .section-inner {
    max-width: none;
    padding: 0;
  }

  body.staffing-checklist-print .page-hero__badge {
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
  }

  body.staffing-checklist-print .page-hero__headline {
    margin-bottom: 8pt;
    color: #111;
    font-size: 24pt;
    line-height: 1.2;
  }

  body.staffing-checklist-print .page-hero__sub {
    margin-bottom: 18pt;
    color: #333;
    font-size: 10pt;
  }

  body.staffing-checklist-print .article-body,
  body.staffing-checklist-print .article-body * {
    color: #111 !important;
  }

  body.staffing-checklist-print .article-section {
    margin-bottom: 14pt;
  }

  body.staffing-checklist-print .article-section h2 {
    margin-bottom: 8pt;
    font-size: 16pt;
    line-height: 1.25;
    break-after: avoid-page;
  }

  body.staffing-checklist-print .article-section h3 {
    margin: 12pt 0 6pt;
    font-size: 12pt;
    line-height: 1.3;
    break-after: avoid-page;
  }

  body.staffing-checklist-print .article-section p,
  body.staffing-checklist-print .article-section li {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  body.staffing-checklist-print .article-section p {
    margin-bottom: 8pt;
  }

  body.staffing-checklist-print .article-section ul,
  body.staffing-checklist-print .article-section ol {
    margin-bottom: 10pt;
  }

  body.staffing-checklist-print .article-section li {
    margin-bottom: 3pt;
    break-inside: avoid-page;
  }

  body.staffing-checklist-print .article-section a {
    text-decoration: underline;
    overflow-wrap: anywhere;
  }

  body.staffing-checklist-print .article-section a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    overflow-wrap: anywhere;
  }

  body.staffing-checklist-print .article-section blockquote,
  body.staffing-checklist-print .article-section code,
  body.staffing-checklist-print .article-section pre {
    background: transparent;
    border-color: #777;
  }
}
