/* ══════════════════════════════════════════════════════════════
   AN PROCURE — the procurement list.

   The design job here is one thing: make the difference between a
   confirmed fit and a guess impossible to miss. A grower skimming
   this on a phone in a shop must never mistake the second for the
   first, so confirmed rows get the accent and a left rule, and
   unverified ones are set quieter with the caveat above them rather
   than beside them.
   ══════════════════════════════════════════════════════════════ */

.an-pr {
  --pr-ink:    #F2F4F1;
  --pr-dim:    rgba(242, 244, 241, .64);
  --pr-faint:  rgba(242, 244, 241, .40);
  --pr-ground: #0A1110;
  --pr-panel:  rgba(255, 255, 255, .05);
  --pr-line:   rgba(255, 255, 255, .12);
  --pr-ok:     #5FD8A0;
  --pr-maybe:  #E0A63C;

  color: var(--pr-ink);
  background: var(--pr-ground);
  font-family: var(--an-font-ui, system-ui, sans-serif);
  padding: clamp(18px, 4vw, 44px) clamp(14px, 4vw, 40px) clamp(56px, 9vw, 104px);
  max-width: 960px;
  margin: 0 auto;
  overflow-x: clip;
}

.an-pr-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pr-faint);
  margin-bottom: 8px;
}

.an-pr-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 600;
}

.an-pr-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pr-dim);
}

.an-pr-count {
  margin: clamp(22px, 4vw, 34px) 0 14px;
  font-family: var(--an-font-mono, ui-monospace, monospace);
  font-size: 13.5px;
  color: var(--pr-faint);
  font-variant-numeric: tabular-nums;
}

/* ── lines ──────────────────────────────────────────────────── */

.an-pr-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.an-pr-line {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--pr-line);
  border-left: 3px solid var(--pr-line);
  background: var(--pr-panel);
}

/* The one visual distinction that matters on this page. */
.an-pr-line.is-sourced { border-left-color: var(--pr-ok); }

.an-pr-line-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.an-pr-part { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }

.an-pr-qty {
  font-family: var(--an-font-mono, ui-monospace, monospace);
  font-size: 14px;
  color: var(--pr-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── suppliers ──────────────────────────────────────────────── */

.an-pr-sup { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.an-pr-sup li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
}

.an-pr-sup a {
  color: var(--pr-ink);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--pr-line);
  /* A supplier name can be long and must never be cut off — a truncated part
     number is a part somebody orders wrongly. */
  overflow-wrap: anywhere;
}

.an-pr-sup a:hover { border-bottom-color: var(--pr-ok); }
.an-pr-sup a:focus-visible { outline: 2px solid var(--pr-ok); outline-offset: 2px; }

.an-pr-price {
  font-family: var(--an-font-mono, ui-monospace, monospace);
  font-size: 13.5px;
  color: var(--pr-dim);
  font-variant-numeric: tabular-nums;
}

.an-pr-tier {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--pr-faint);
  border: 1px solid var(--pr-line);
  white-space: nowrap;
}

.an-pr-tier.is-declared {
  color: var(--pr-ok);
  border-color: rgba(95, 216, 160, .4);
}

/* The caveat sits above the list rather than beside it, so it is read before
   the links rather than after somebody has already picked one. */
.an-pr-maybe {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--pr-maybe);
}

.an-pr-sup.is-maybe li { background: rgba(255, 255, 255, .022); }
.an-pr-sup.is-maybe a { color: var(--pr-dim); }

.an-pr-none,
.an-pr-empty {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--pr-faint);
}

.an-pr-empty {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--pr-line);
  font-size: 14.5px;
}

.an-pr-fine {
  margin: clamp(26px, 5vw, 40px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--pr-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--pr-faint);
  max-width: 68ch;
}

.an-pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  margin-top: 14px;
  border-radius: 10px;
  background: var(--pr-ok);
  color: #05100C;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
}

.an-pr-btn:hover { background: #3FC48C; color: #05100C; }
