/* Copied from pbn.red's skin (Projects/pbn-red-site/skin/assets/css/hunt.css) by profiles-red/src/build.py. Site changes go in profiles.css. */
/* Hallmark · component: request form (the hunt request) · genre: modern-minimal · theme: custom (pbn.red skin v1)
 * states: default · hover · focus · active · disabled · loading · error · success
 * pbn.red hire requests (10/23/2026): the done-for-you side's one form (markup: app/pbnred/hireform.py), on the hire
 * page and on the app's own request and receipt pages (pages.hire_page, hire_receipt). On paper it wears ink-edged
 * fields; inside a red slab (.on-red) the check form's white fields. Source: tools/skin_src/hunt/ (build_skin.py).
 */

.hunt { margin: 0; display: grid; gap: var(--space-md); max-width: 40rem; }
.hunt[hidden] { display: none; }
.hunt fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hunt__label, .hunt label.hunt__label, .hunt__field > label {
  display: block; font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.hunt__field > label span, .hunt__label span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--color-muted); }
.on-red .hunt__field > label span, .on-red .hunt__label span { color: var(--color-on-red); opacity: 0.85; }

/* what to find: two-line boxes in the verdict-box voice */
.hunt__opts { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.hunt__opt { position: relative; cursor: pointer; }
.hunt__opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hunt__box {
  display: grid; gap: 0.1rem; min-height: 3.6rem; padding: 0.55rem 0.95rem 0.6rem; align-content: center;
  background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.hunt__box b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: var(--text-md); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.hunt__box > span { font-size: var(--text-sm); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hunt__opt:hover .hunt__box { background: var(--color-paper-2); }
.hunt__opt:active .hunt__box { transform: translateY(1px); }
.hunt__opt input:checked + .hunt__box { background: var(--color-ink); color: var(--color-paper); }
.hunt__opt input:focus-visible + .hunt__box { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.on-red .hunt__box { box-shadow: none; }
.on-red .hunt__opt input:focus-visible + .hunt__box { outline-color: var(--color-paper); }

/* fields */
.hunt__field { min-width: 0; }
.hunt input[type="url"], .hunt input[type="email"], .hunt input[type="text"], .hunt textarea {
  display: block; width: 100%; min-width: 0; border: 0; border-radius: 0;
  background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink);
  font: inherit; font-size: var(--text-md); font-weight: 500; padding: 0 1rem; height: 3.5rem;
}
.hunt textarea { height: auto; min-height: 6.5rem; padding-block: 0.8rem; font-size: var(--text-base); line-height: 1.5; resize: vertical; }
.hunt input::placeholder, .hunt textarea::placeholder { color: var(--color-muted); }
.hunt input:hover, .hunt textarea:hover { box-shadow: inset 0 0 0 3px var(--color-ink); }
.hunt input:focus-visible, .hunt textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.on-red .hunt input[type="url"], .on-red .hunt input[type="email"], .on-red .hunt input[type="text"], .on-red .hunt textarea { box-shadow: none; }
.on-red .hunt input:focus-visible, .on-red .hunt textarea:focus-visible { outline-color: var(--color-paper); outline-offset: 3px; }
.hunt input:disabled, .hunt textarea:disabled { background: var(--color-paper-2); color: var(--color-muted); cursor: not-allowed; }

.hunt__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
/* with JS only the picked package's extra part shows; without JS every part shows, each one named */
.js .hunt__more { display: none; }
.js .hunt__more.is-on { display: block; }
.js .hunt__pick--nojs, .js .hunt__nojs { display: none; }
.hunt__check { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-weight: 700; cursor: pointer; margin-top: var(--space-xs); }
.hunt__check input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--color-ink); cursor: pointer; flex: none; }
.on-red .hunt__check input { accent-color: var(--color-ink); }

/* notes stay folded until wanted */
.hunt details.more { margin: 0; border-top: 0; padding-top: 0; }
.hunt details.more > summary { font-size: var(--text-base); }
.on-red .hunt details.more > summary::before { box-shadow: inset 0 0 0 2px var(--color-on-red); }
.hunt details.more textarea { margin-top: var(--space-xs); }

/* the trap for bots: off screen, never focusable */
.hunt__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* send */
.hunt__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-2xs); }
.hunt__send .btn-ink { padding: 1rem 1.7rem; font-size: var(--text-lg); }
.on-red .hunt__send .btn-ink:focus-visible { outline-color: var(--color-paper); }
.hunt__send .btn-ink[aria-busy="true"] { background: var(--color-ink-2); cursor: progress; }
.hunt__send .btn-ink[aria-busy="true"]::after {
  content: ""; width: 0.8rem; height: 0.8rem; background: var(--color-red); margin-left: 0.2rem;
}
@media (prefers-reduced-motion: no-preference) {
  .hunt__send .btn-ink[aria-busy="true"]::after { animation: hunt-pulse 0.9s var(--ease-in-out) infinite alternate; }
}
@keyframes hunt-pulse { from { opacity: 1; } to { opacity: 0.25; } }
.hunt__fine { font-size: var(--text-sm); font-weight: 600; max-width: 46ch; }
/* A shop order (11/3/2026): its tier, shown like a picked package box */
.hunt__order { display: grid; gap: var(--space-xs); justify-items: start; }
.hunt__box--order { background: var(--color-ink); color: var(--color-paper); }
.hunt__promise {
  display: grid; grid-template-columns: 0.85rem minmax(0, 1fr); gap: var(--space-sm); align-items: baseline;
  font-size: var(--text-sm); font-weight: 700; max-width: 52ch;
}
.hunt__promise::before { content: ""; width: 0.7rem; height: 0.7rem; background: var(--color-red); transform: translateY(0.05em); }
.on-red .hunt__promise::before { background: var(--color-paper); }

/* errors: a red edge on the field and one plain line under it */
.hunt__err { display: none; margin-top: var(--space-xs); font-size: var(--text-sm); font-weight: 800; color: var(--color-red-deep); }
.hunt__field.is-bad .hunt__err { display: grid; grid-template-columns: 0.85rem minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; }
.hunt__field.is-bad .hunt__err::before { content: ""; width: 0.7rem; height: 0.7rem; background: var(--color-red); }
.hunt__field.is-bad input { box-shadow: inset 0 0 0 3px var(--color-red); }
.on-red .hunt__field.is-bad .hunt__err { color: var(--color-paper); background: var(--color-ink); padding: 0.4rem 0.6rem; }
.on-red .hunt__field.is-bad .hunt__err::before { background: var(--color-red); }
.on-red .hunt__field.is-bad input { box-shadow: inset 0 0 0 4px var(--color-ink); }

/* sent: the form gives way to a plain receipt */
.hunt-sent { display: grid; gap: var(--space-md); max-width: 40rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 3px var(--color-ink); }
.hunt-sent[hidden] { display: none; }
.hunt-sent__h { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.5rem); line-height: 1; letter-spacing: -0.035em; }
.hunt-sent__h .vbox { font-size: 0.8em; margin-right: 0.3em; vertical-align: 0.06em; }
.hunt-sent p { color: var(--color-ink-2); max-width: 52ch; }
.hunt-sent b { color: var(--color-ink); overflow-wrap: anywhere; }
.hunt-sent ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); counter-reset: hs; border-top: var(--rule-hair); padding-top: var(--space-sm); }
.hunt-sent li { counter-increment: hs; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: var(--space-sm); color: var(--color-ink-2); }
.hunt-sent li::before { content: counter(hs); font-family: var(--font-display); font-weight: 900; font-style: italic; color: var(--color-ink); }
.hunt-sent .tlink { justify-self: start; }

@media (max-width: 47.99rem) {
  .hunt__pair { grid-template-columns: minmax(0, 1fr); }
  .hunt__send .btn-ink { width: 100%; }
  .hunt__box { min-height: 3.25rem; padding-inline: 0.8rem; }
  .hunt__box b { font-size: var(--text-base); }
}

/* ---------- the red request slab: the app's request and receipt pages (and the hire page, if it carries one) ---------- */
.request { background: var(--color-red); color: var(--color-on-red); padding-block: clamp(3rem, 6vw, 5.5rem); border-top: var(--rule-slab); }
.request--page { border-top: 0; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.request__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) clamp(2rem, 5vw, 5rem); align-items: start; }
.request .sec-h { max-width: 14ch; }
.request__lead { margin-top: var(--space-md); font-size: var(--text-md); font-weight: 500; line-height: 1.42; max-width: 38ch; }
.request__more { margin-top: var(--space-md); font-weight: 600; }
.request a.tlink { color: inherit; }
.request .tlink:focus-visible { outline: 3px solid var(--color-paper); outline-offset: 3px; }
.request .hunt-sent a.tlink { color: var(--color-ink); }
.request .hunt-sent .tlink:focus-visible { outline-color: var(--color-focus); }
.request__next { list-style: none; padding: 0; margin: var(--space-xl) 0 0; counter-reset: rq; border-top: 2px solid var(--color-on-red); max-width: 34rem; }
.request__next li {
  counter-increment: rq; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: var(--space-sm);
  padding-block: var(--space-sm); border-bottom: 1px solid var(--color-red-line); line-height: 1.4;
}
.request__next li::before {
  content: counter(rq); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-top: -0.05rem;
  background: var(--color-paper); color: var(--color-red); font-family: var(--font-display); font-weight: 900; font-style: italic;
}
.request__next b { font-weight: 800; }
.request .hunt, .request .hunt-sent { max-width: none; }
.request .msg { margin: 0 0 var(--space-lg); max-width: none; }
@media (max-width: 63.99rem) {
  .request__in { grid-template-columns: minmax(0, 1fr); }
  .request__next { margin-top: var(--space-lg); }
}
