/* Offers shown around posts. One block per offer; markup in partials/offers/. */

/* ---------- Visual Guide (partials/offers/guide.hbs) ---------- */
.ws-guide {
  --wg-blue: #356EE9; --wg-blue-dk: #2a5bc7; --wg-tint: #f1f5fd; --wg-black: #111; --wg-grey: #666;
  background: var(--wg-tint); border-radius: 16px; font-family: 'Inter', sans-serif; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 520px; align-items: center;
}
.ws-guide__body { padding: 38px 0 38px 40px; display: grid; gap: 12px; min-width: 0; }
.ws-guide__eyebrow { font: 700 11px/1.4 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--wg-blue); margin: 0; }
.ws-guide .ws-guide__title { margin: 0; font: 800 28px/1.18 'Inter', sans-serif; letter-spacing: -0.02em; color: var(--wg-black); text-wrap: balance; }
.ws-guide__text { margin: 0; font-size: 16px; line-height: 1.55; color: #3b3b3b; max-width: 34em; }
.ws-guide__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 30em; margin: 4px 0 0; }
.ws-guide__form input[type="email"] {
  width: 100%; font: 15px 'Inter', sans-serif; padding: 11px 12px; border: 1px solid #cfd6e3; border-radius: 8px;
  background: #fff; color: #111; margin: 0;
}
.ws-guide__btn {
  font: 700 14px/1 'Inter', sans-serif; border: 2px solid var(--wg-blue); border-radius: 999px; padding: 11px 18px;
  background: var(--wg-blue); color: #fff; cursor: pointer; white-space: nowrap;
}
.ws-guide__btn:hover { background: var(--wg-blue-dk); border-color: var(--wg-blue-dk); }
.ws-guide__load { display: none; }
.ws-guide__form.loading .ws-guide__btn { opacity: .75; pointer-events: none; }
.ws-guide__form.loading .ws-guide__idle { display: none; }
.ws-guide__form.loading .ws-guide__load { display: inline; }
.ws-guide__err { display: none; grid-column: 1 / -1; margin: 0; font-size: 14px; color: #c0392b; }
.ws-guide__form.error .ws-guide__err { display: block; }
.ws-guide__fine { margin: 0; font-size: 12px; color: var(--wg-grey); }
/* After sign-up (Ghost marks the form .success): the "check your email" step, as on /expert-writing/ */
.ws-guide__done { display: none; }
.ws-guide__form.success, .ws-guide__form.success ~ .ws-guide__fine { display: none; }
.ws-guide__form.success ~ .ws-guide__done { display: block; }
.ws-guide__done h3 { margin: 4px 0 6px; font: 800 20px/1.3 'Inter', sans-serif; color: var(--wg-black); }
.ws-guide__done p { margin: 0 0 6px; font-size: 15px; color: #3b3b3b; }
.ws-guide__done .ws-guide__hint { font-size: 13px; color: var(--wg-grey); }

/* The fan: the landing page's four pages, order and angles, scaled to fit beside the copy.
   The box is the fan's measured footprint after rotation (456 x 250): pages pivot 212px from the
   left and 22px up, so the tilted corners stay inside and the fan centres in its column. */
.ws-guide__art { padding: 40px 32px; align-self: stretch; display: grid; place-items: center; }
.ws-guide__fan { position: relative; width: 456px; max-width: 100%; height: 250px; }
.ws-guide__fan img {
  position: absolute; left: 212px; bottom: 22px; width: 150px; height: auto; max-width: none; margin: 0; background: #fff;
  border-radius: 5px; transform-origin: center bottom;
  box-shadow: 0 1px 2px rgba(17,17,17,.08), 0 12px 28px rgba(17,17,17,.14);
}
.ws-guide__fan .p0 { transform: translateX(calc(-50% + 115px)) rotate(17deg); z-index: 1; }
.ws-guide__fan .p1 { transform: translateX(calc(-50% - 104px)) rotate(-10deg); z-index: 2; }
.ws-guide__fan .p2 { transform: translateX(calc(-50% + 101px)) rotate(9deg); z-index: 3; }
.ws-guide__fan .p3 { width: 176px; transform: translateX(-50%); z-index: 4; box-shadow: 0 1px 2px rgba(17,17,17,.1), 0 18px 40px rgba(17,17,17,.2); }

@media (max-width: 1020px) {
  .ws-guide { grid-template-columns: minmax(0, 1fr); }
  .ws-guide__art { order: -1; padding: 32px 16px 28px; }
  .ws-guide__body { padding: 0 32px 32px; }
}
@media (max-width: 800px) {
  .ws-guide__art { padding: 24px 8px 20px; }
  .ws-guide__body { padding: 0 20px 24px; }
  .ws-guide .ws-guide__title { font-size: 22px; }
  .ws-guide__form { grid-template-columns: minmax(0, 1fr); }
  /* Phone fan: the landing page's own phone sizes; footprint 336 x 174, pivot 159px in and 13px up */
  .ws-guide__fan { width: 336px; height: 174px; }
  .ws-guide__fan img { width: 104px; border-radius: 4px; left: 159px; bottom: 13px; }
  .ws-guide__fan .p3 { width: 124px; }
  .ws-guide__fan .p0 { transform: translateX(calc(-50% + 92px)) rotate(15deg); }
  .ws-guide__fan .p1 { transform: translateX(calc(-50% - 84px)) rotate(-10deg); }
  .ws-guide__fan .p2 { transform: translateX(calc(-50% + 82px)) rotate(9deg); }
}
