/* Website offer switches (sql/317, functions/_lib/offer.js, Jose 2026-12-03).
   Loaded only on pages the switches change. With Order AND Free trial on, every Order button
   gets a "Try It Free for 30 Days" twin with the SAME classes (same size, same weight), so the
   taps show which offer visitors prefer. Nothing new: the twins reuse the Kitchen-theme pills. */

/* The pair: side by side, wrapping when there is no room. */
html body .offer-pair {
  display: inline-flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center; vertical-align: middle; max-width: 100%;
}
html body .offer-pair > a { margin-left: 0 !important; margin-right: 0 !important; }
/* Phones: stacked, full width, Order on top. */
@media (max-width: 600px) {
  html body .offer-pair {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; max-width: 360px; margin-left: auto; margin-right: auto;
  }
  html body .offer-pair > a { width: 100% !important; max-width: none !important; box-sizing: border-box; }
}

/* Header: a second pill beside Order Printer on computers and tablets. */
html body .site-header a.header-trial { margin-left: 10px; white-space: nowrap; flex-shrink: 0; }
/* Computers 1200-1439px: no room for logo + menu + phone + two buttons, so the phone pill
   steps aside (the number is still in the menu, the hero and the footer). */
@media (min-width: 1200px) and (max-width: 1439px) {
  html body[data-offer="both"] .site-header .header-phone { display: none !important; }
}
/* Tablets: the Order button keeps margin-left:auto; the trial pill sits right after it. */
@media (min-width: 769px) and (max-width: 1199px) {
  html body .header-inner a.header-trial { margin-left: 8px; margin-right: 16px; }
  html body .header-inner a.header-cta[href="/order-printer/"]:has(+ a.header-trial) { margin-right: 0; }
  html body .header-inner:has(.main-nav.open) a.header-trial { display: none !important; }
}
/* Phones: one header button (Order); both offers are in the hero and the menu. When Order is
   switched off the header button points at the trial (or the phone), so the phone-header rule
   from styles.css (written for href="/order-printer/") is repeated for any header button. */
@media (max-width: 768px) {
  html body .site-header a.header-trial { display: none !important; }
  html body[data-offer] .header-inner a.header-cta:not(.header-trial) {
    margin-left: auto; margin-right: 16px; padding: 9px 14px; font-size: .82rem; white-space: nowrap;
  }
  html body[data-offer] .header-inner:has(.main-nav.open) a.header-cta { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  html body[data-offer] .header-inner a.header-cta:not(.header-trial) { margin-left: auto; white-space: nowrap; }
}

/* Phone/tablet menu: the trial pill right under Order Printer, same green. */
html body .main-nav.open a.nav-trial-link { margin-top: 0 !important; }

/* Top of each blog post (Jose, 2026-12-04): the trial button under the subtitle, only while the
   trial is open. The same green pill as the end box; full width on phones like the pairs above. */
html body .hero .offer-post-top { margin: 0; }
@media (max-width: 600px) {
  html body .hero .offer-post-top a { display: block; width: 100%; max-width: 360px; text-align: center; box-sizing: border-box; }
}
