/* PayCruit Quality & Compliance pages
   Scoped under .qc-page so nothing leaks into the site theme.
   Fonts follow the live site: Outfit (headings), Inter (body). */

.qc-page {
  --qc-dark: #124F4A;
  --qc-teal: #68BC82;
  --qc-orange: #E35205;
  --qc-ink: #1a1a1a;
  --qc-body: #333;
  --qc-muted: #6b7280;
  --qc-line: #e5e7eb;
  --qc-soft: #f7f8fa;
  font-family: Inter, sans-serif;
  color: var(--qc-body);
  font-size: 16px;
  line-height: 1.65;
}
.qc-page h1, .qc-page h2, .qc-page h3 {
  font-family: Outfit, sans-serif;
  color: var(--qc-ink);
  margin: 0;
}
.qc-page p { margin: 0 0 1rem; }
.qc-page a { color: var(--qc-dark); }

.qc-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.qc-narrow { max-width: 860px; }
.qc-section { padding: 64px 0; }
.qc-section--soft { background: var(--qc-soft); }

/* Hero */
.qc-hero { padding: 56px 0 40px; text-align: center; }
.qc-hero h1 { font-size: 40px; font-weight: 500; line-height: 1.2; margin-bottom: 16px; }
.qc-hero .qc-lead { font-size: 18px; color: #4b5563; max-width: 760px; margin: 0 auto; }
.qc-eyebrow {
  display: inline-block; font-family: Outfit, sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--qc-teal); margin-bottom: 12px;
}

.qc-page .qc-h2 { font-size: 32px; font-weight: 600; line-height: 1.25; margin-bottom: 20px; }
.qc-h2--center { text-align: center; }
.qc-page .qc-h3 { font-size: 20px; font-weight: 500; margin-bottom: 16px; }
.qc-page .qc-rule { width: 56px; height: 3px; background: var(--qc-teal); border: 0; opacity: 1; margin: 0 0 24px; }
.qc-h2--center + .qc-rule { margin-left: auto; margin-right: auto; }

/* Link cards */
.qc-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  list-style: none; padding: 0; margin: 0;
}
.qc-cards--single { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 10px); margin: 0 auto; }
.qc-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--qc-line); border-left: 4px solid var(--qc-orange);
  border-radius: 8px; padding: 18px 20px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qc-card:hover, .qc-card:focus-visible {
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18, 79, 74, .10); text-decoration: none;
}
.qc-card__text { min-width: 0; }
.qc-card__name {
  display: block; font-family: Outfit, sans-serif; font-size: 18px; font-weight: 500;
  color: var(--qc-dark); line-height: 1.3;
}
.qc-card__url {
  display: block; font-size: 13px; color: var(--qc-muted); margin-top: 4px;
  overflow-wrap: anywhere;
}
.qc-card__arrow {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--qc-orange); color: var(--qc-orange);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.qc-card__arrow svg { width: 16px; height: 16px; }
.qc-card:hover .qc-card__arrow, .qc-card:focus-visible .qc-card__arrow { background: var(--qc-orange); color: #fff; }

.qc-group + .qc-group { margin-top: 44px; }

/* Responsibility table */
.qc-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--qc-line); }
.qc-table th, .qc-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--qc-line); }
.qc-table thead th {
  background: var(--qc-dark); color: #fff; font-family: Outfit, sans-serif; font-weight: 500; font-size: 17px;
}
.qc-table tbody th { font-family: Outfit, sans-serif; font-weight: 500; color: var(--qc-dark); width: 22%; }
.qc-table tbody tr:nth-child(even) { background: #fafbfb; }

/* Commitments */
.qc-commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; list-style: none; padding: 0; margin: 0; }
.qc-commit li { border-top: 1px solid var(--qc-line); padding-top: 18px; }
.qc-commit__num { display: block; font-family: Outfit, sans-serif; font-size: 32px; font-weight: 600; color: var(--qc-orange); line-height: 1; margin-bottom: 12px; }
.qc-page .qc-commit h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.qc-commit p { margin: 0; font-size: 15.5px; }

/* Escalation */
.qc-steps { list-style: none; counter-reset: qc; padding: 0; margin: 0 0 20px; }
.qc-steps li { counter-increment: qc; position: relative; padding: 12px 0 12px 52px; border-bottom: 1px solid var(--qc-line); }
.qc-steps li::before {
  content: counter(qc); position: absolute; left: 0; top: 9px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--qc-dark); color: #fff; font-family: Outfit, sans-serif; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.qc-note { font-size: 15px; color: #4b5563; }

/* Contact */
.qc-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qc-page .qc-contact__item h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; color: var(--qc-dark); }
.qc-contact__item p { margin: 0; }

/* Missing-info flag: must be visible until resolved */
.qc-confirm { background: #fff3b0; color: #7a4b00; padding: 1px 6px; border-radius: 3px; font-weight: 600; }

@media (max-width: 991px) {
  .qc-commit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .qc-hero h1 { font-size: 32px; }
  .qc-page .qc-h2 { font-size: 26px; }
  .qc-section { padding: 48px 0; }
  .qc-cards, .qc-commit, .qc-contact { grid-template-columns: minmax(0, 1fr); }
  .qc-cards--single { max-width: none; }
  /* Stack the table into labelled rows */
  .qc-table thead { display: none; }
  .qc-table, .qc-table tbody, .qc-table tr, .qc-table th, .qc-table td { display: block; width: 100%; }
  .qc-table tbody tr { border-bottom: 6px solid var(--qc-soft); }
  .qc-table tbody th { background: var(--qc-dark); color: #fff; width: 100%; }
  .qc-table td { border-bottom: 1px solid var(--qc-line); }
  .qc-table td::before { content: attr(data-label); display: block; font-family: Outfit, sans-serif; font-weight: 500; color: var(--qc-dark); font-size: 14px; margin-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-card, .qc-card__arrow { transition: none; }
  .qc-card:hover { transform: none; }
}
.qc-page .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
