/* Hire an AI agent — the hub (/hire-ai-agent) and its category pages
   (templates/pages/hire/*.j2). Built on the shared page-hero, split and qa
   patterns; everything here is spacing, cards and check marks. */

.hr-hero .page-hero__plate {
  object-position: 50% 58%;
}

.hr-hero::before {
  background:
    linear-gradient(to top, color-mix(in oklab, var(--bg-deep) 94%, transparent) 0%, color-mix(in oklab, var(--bg-deep) 54%, transparent) 50%, transparent 86%),
    linear-gradient(90deg, color-mix(in oklab, var(--bg-deep) 82%, transparent), color-mix(in oklab, var(--bg-deep) 22%, transparent) 60%, transparent 82%);
}

[data-theme="dark"] .hr-hero .page-hero__plate {
  filter: brightness(0.62) saturate(0.9);
}

.hr-hero__title {
  max-width: 18ch;
}

:lang(zh) .hr-hero__title {
  max-width: 13em;
}

.hr-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--ink-2);
}

.hr-crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-3);
  font-weight: 400;
}

.hr-crumbs a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.hr-crumbs a:hover {
  color: var(--ink);
}

.hr-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.hr-promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── check marks ───────────────────────────── */

.hr-mark {
  position: relative;
  flex: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok-soft);
}

.hr-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3.5px;
  width: 5px;
  height: 9px;
  border: solid var(--ok);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hr-mark--no {
  background: var(--bad-soft);
}

.hr-mark--no::before,
.hr-mark--no::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: var(--bad);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hr-mark--no::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hr-list {
  display: grid;
  gap: 12px;
}

.hr-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.5;
  color: var(--ink-2);
}

.hr-list .hr-mark {
  margin-top: 2px;
}

/* ── sections ──────────────────────────────── */

.hr-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hr-lede {
  max-width: 62ch;
  color: var(--ink-2);
  margin-top: -6px;
}

.hr-sec--alt {
  background: color-mix(in oklab, var(--surface-2) 60%, transparent);
}

.hr-more {
  font-weight: 600;
}

/* ── category cards ────────────────────────── */

.hr-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hr-cat {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.hr-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line) inset;
}

.hr-cat__title {
  font-size: 1.25rem;
  font-weight: 640;
  letter-spacing: -0.012em;
}

.hr-cat__title a {
  color: inherit;
}

/* the whole card is the link's hit area */
.hr-cat__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hr-cat__title a:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hr-cat__body {
  color: var(--ink-2);
}

.hr-cat__eg {
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.hr-cat__eg li::before {
  content: "—";
  margin-right: 8px;
  color: var(--ink-3);
}

.hr-cat__more {
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--link);
}

/* ── steps ─────────────────────────────────── */

.hr-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: hr-step;
}

.hr-step {
  counter-increment: hr-step;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.hr-step::before {
  content: counter(hr-step, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.hr-step__title {
  font-size: 1.0625rem;
  font-weight: 640;
}

.hr-step__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ── cost ──────────────────────────────────── */

.hr-cost {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hr-cost__item {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.hr-cost__k {
  font-size: 0.8125rem;
  font-weight: 620;
  color: var(--ink-3);
}

.hr-cost__v {
  font-size: 1.125rem;
  font-weight: 640;
  color: var(--ink);
}

.hr-cost__note {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ── pairs: fits / does not fit, includes / accepted when ── */

.hr-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hr-box {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-card);
  background: var(--surface);
}

.hr-box__title {
  font-size: 1.125rem;
  font-weight: 640;
}

.hr-note {
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--held-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.hr-note--quiet {
  background: var(--surface);
  color: var(--ink-2);
}

/* ── brief template ────────────────────────── */

.hr-brief {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.hr-brief__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.hr-brief__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.hr-brief__row dt {
  font-weight: 640;
  color: var(--ink);
}

.hr-brief__row dd {
  color: var(--ink-2);
}

.hr-brief__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hr-brief__hint {
  color: var(--ink-3);
  max-width: 62ch;
}

/* ── FAQ, reading, closer ──────────────────── */

.hr-faq__list {
  margin-top: 8px;
  max-width: 820px;
}

.hr-read__title {
  margin-bottom: 14px;
}

.hr-read {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hr-read__card {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.hr-read__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line) inset;
}

.hr-read__name {
  font-weight: 640;
  color: var(--link);
}

.hr-read__desc {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.hr-sec .hr-cats + .hr-more {
  margin-top: 18px;
}

.hr-closer__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.hr-closer__lede {
  max-width: 56ch;
  color: var(--ink-2);
}

.hr-closer__actions {
  justify-content: center;
  --cluster: 20px;
}

.hr-closer__alt {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hr-cat,
  .hr-read__card {
    transition: none;
  }

  .hr-cat:hover,
  .hr-read__card:hover {
    transform: none;
  }
}

@media (max-width: 1000px) {
  .hr-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hr-cats,
  .hr-pair,
  .hr-cost,
  .hr-read {
    grid-template-columns: minmax(0, 1fr);
  }

  .hr-brief__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .hr-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chinese headings break at phrase boundaries, never inside a word. */
:lang(zh) main :is(h1, h2, h3, h4) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
