/* For employers: the one page that sells the listing offer.
   Every figure it prints comes from data/offer.json through
   scripts/build-for-employers.mjs. Board surfaces carry chalk; paper stays ink.
   Square corners (3px at most). No motion: nothing here transitions. */

/* ---------- Header band ---------- */

.offer-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin: 26px 0 4px; }
.offer-hero__ask { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--font-ui); font-weight: 600; }
.chalk-arrow { width: 1.1em; height: auto; flex: none; vertical-align: -.12em; }
/* A CTA on the board is the chalk button (Fable, B2-13 point 6): --chalk-yellow
   is retired for buttons, because on a board it reads as the English-online
   track colour. css/pages/home.css owns the home hero's .btn-chalk and is not
   loaded on this page, so the page carries its own copy of that rule, scoped to
   its hero. Keep the two in step until the class moves into styles.css. */
.offer-hero .btn-chalk {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 26px;
  font: 700 1.06rem/1 var(--font-ui);
  color: var(--board-deep); background: var(--chalk);
  border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28), 0 10px 22px -12px rgba(0, 0, 0, .7);
}
.offer-hero .btn-chalk:hover { background: #FFFFFF; color: var(--board-deep); }
.offer-hero .btn-chalk:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.offer-hero .btn-chalk:focus-visible { outline: 3px solid var(--focus-board); outline-offset: 3px; }

/* ---------- What you get, free ---------- */

.offer-list { list-style: none; margin: 18px 0 0; padding: 0; max-width: 72ch; }
.offer-list li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.offer-list li:last-child { border-bottom: 1px solid var(--rule); }
.offer-list strong { color: var(--ink-strong); }

/* ---------- Featured placement ---------- */

.offer-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px;
  margin: 22px 0 0; padding: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 3px;
}
.offer-fact { background: var(--surface); padding: 16px 18px 18px; }
.offer-fact__label { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.offer-fact__value { margin: 8px 0 0; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.offer-fact__note { margin: 10px 0 0; font-size: .9375rem; color: var(--ink-2); }

/* ---------- How it works: the stamps ---------- */

.offer-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; max-width: 74ch; }
.offer-step { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 8px 22px; align-items: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.offer-step .stamp { justify-self: start; }
.offer-step p { margin: 0; color: var(--ink-2); }

/* ---------- What we check before publishing ---------- */

.offer-checks {
  list-style: none; margin: 20px 0 0; padding: 20px 22px; display: grid; gap: 14px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; max-width: 74ch;
}
.offer-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-2); }
.offer-check { width: 18px; height: auto; margin-top: .32em; color: var(--stamp-green); }
.offer-checks strong { color: var(--ink-strong); }
.offer-refuse { margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--stamp-red); border-radius: 3px; background: var(--surface); color: var(--ink-2); max-width: 74ch; }
.offer-refuse strong { color: var(--ink-strong); }

/* ---------- Live preview ---------- */

.offer-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin: 24px 0 18px; }
.offer-preview__fields { display: grid; gap: 14px; align-content: start; }
.offer-field { display: grid; gap: 6px; min-width: 0; }
.offer-field label { font-family: var(--font-ui); font-weight: 600; font-size: .9375rem; color: var(--ink-strong); }
/* The page's own square field corner. styles.css:692 sets every field's radius
   with !important, so this needs !important to take effect (as css/pages/jobs.css:174
   does); without it the declaration never applied and the fields rendered at 10px. */
.offer-preview .offer-field :is(input, select) {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--field-border); border-radius: 3px !important;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 400;
}
.offer-field--pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.offer-preview__board {
  background-color: var(--board); background-image: var(--board-surface);
  border-radius: 3px; padding: 22px 22px 24px; box-shadow: inset 0 10px 14px -12px rgba(0, 0, 0, .55);
}
.offer-preview__head { margin: 0 0 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); }
.offer-card__employer { margin: 0; font-size: .9375rem; color: var(--chalk-2); overflow-wrap: anywhere; }
.offer-card__role { margin: 6px 0 14px; font-family: var(--font-ui); font-weight: 600; font-variation-settings: normal; font-size: 1.35rem; line-height: 1.15; color: var(--chalk); overflow-wrap: anywhere; }
.offer-card__pay { margin: 0 0 10px; font-family: var(--font-mono); font-size: 1.35rem; line-height: 1.2; color: var(--chalk-yellow); overflow-wrap: anywhere; }
.offer-card__unit { font-size: .875rem; color: var(--chalk-2); }
.offer-card__eligibility { margin: 0; font-size: .9375rem; color: var(--chalk-2); overflow-wrap: anywhere; }

/* ---------- Questions employers ask ---------- */

.offer-faq { margin: 22px 0 0; max-width: 74ch; border-top: 1px solid var(--rule); }
.offer-faq__item { border-bottom: 1px solid var(--rule); }
.offer-faq__item summary { padding: 17px 2px; font-family: var(--font-ui); font-weight: 600; font-size: 1.0625rem; color: var(--ink-strong); cursor: pointer; }
.offer-faq__item summary::marker { color: var(--ink-3); }
.offer-faq__item p { margin: 0 0 20px; color: var(--ink-2); }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .offer-preview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 620px) {
  .offer-step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .offer-field--pair { grid-template-columns: minmax(0, 1fr); }
  .offer-checks { padding: 18px 16px; }
}
