/**
 * Sitewide offer box + bottom bar for The Agent Income & Pipeline Kit
 * (assets/js/kit-offer.js). Site palette: Modern Blue #1D4ED8 on a light blue
 * tint, charcoal text, and the deep green the commission calculator already
 * uses for "Your Commission" as the Buy color. Class names are kit-prefixed
 * and colors are !important so article styles (.prose a, Tailwind resets)
 * can never turn the Buy button into a transparent link.
 */
.kit-offer { display: flex; gap: 16px; align-items: flex-start; background: #EFF6FF; border: 2px solid #DBEAFE; border-left: 5px solid #1D4ED8; border-radius: 14px; padding: 16px; margin: 28px auto; max-width: 720px; box-sizing: border-box; font-family: Inter, "Helvetica Neue", Arial, sans-serif; text-align: left; clear: both; }
.kit-offer * { box-sizing: border-box; }
.kit-offer-thumb { flex: 0 0 auto; display: block; }
.kit-offer-thumb img { display: block; width: 96px; height: auto; border-radius: 6px; box-shadow: 0 4px 12px rgba(30,58,138,.22); background: #fff; border: 1px solid #DBEAFE; }
.kit-offer-body { min-width: 0; flex: 1 1 auto; }
.kit-offer .kit-offer-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1E3A8A !important; margin: 0 0 6px; }
.kit-offer .kit-offer-line { font-size: .98rem; line-height: 1.5; color: #111827 !important; margin: 0 0 8px; }
.kit-offer .kit-offer-line b { color: #047857; }
.kit-offer .kit-offer-bullets { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 3px; }
.kit-offer .kit-offer-bullets li { position: relative; padding-left: 1.3rem; font-size: .9rem; line-height: 1.45; color: #111827; margin: 0; }
.kit-offer .kit-offer-bullets li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #1D4ED8; font-weight: 800; }
.kit-offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
a.kit-btn-buy, .kit-offer a.kit-btn-buy, .kit-bar a.kit-btn-buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #047857 !important; background-image: linear-gradient(135deg, #059669 0%, #047857 100%) !important; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: .98rem; line-height: 1.1; padding: .7rem 1.2rem; border-radius: 10px; min-height: 44px; box-shadow: 0 3px 10px rgba(4,120,87,.28); border: 0; white-space: nowrap; }
a.kit-btn-buy:hover { box-shadow: 0 6px 16px rgba(4,120,87,.38); color: #fff !important; }
.kit-mono { font-variant-numeric: tabular-nums; font-weight: 800; color: inherit !important; }
.kit-offer .kit-offer-guar { flex: 1 1 13rem; min-width: 0; margin: 0; font-size: .84rem; line-height: 1.4; color: #374151 !important; }
.kit-offer .kit-offer-guar a { color: #111827 !important; text-decoration: underline; }
.kit-offer .kit-offer-fine { font-size: .78rem; color: #4b5563 !important; margin: 10px 0 0; }
.kit-offer a.kit-offer-look { color: #1E3A8A !important; font-weight: 700; text-decoration: underline; }
@media (max-width: 520px) {
  .kit-offer { flex-direction: column; gap: 10px; margin: 24px 0; }
  .kit-offer-thumb { display: none; }
  a.kit-btn-buy { width: 100%; }
}

.kit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: rgba(255,255,255,.98); border-top: 2px solid #1D4ED8; box-shadow: 0 -4px 16px rgba(30,58,138,.14); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); font-family: Inter, "Helvetica Neue", Arial, sans-serif; box-sizing: border-box; }
.kit-bar[hidden] { display: none; }
.kit-bar-in { max-width: 44rem; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.kit-bar-sub { flex: 1 1 auto; min-width: 0; font-size: .82rem; color: #374151; }
.kit-bar a.kit-btn-buy { flex: 0 0 auto; padding: .55rem 1rem; min-height: 40px; font-size: .92rem; }
.kit-bar-close { flex: 0 0 auto; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: #4b5563; cursor: pointer; padding: 4px 6px; }
@media print { .kit-offer, .kit-bar { display: none !important; } }

/* Phones: pre-existing calculator layouts (grid items holding a row of three
   buttons, fixed-width form cards) widened 6 tool pages past 360px before the
   kit shipped. Let grid/flex children shrink and wide tables scroll.
   Phone-only, so no desktop layout changes. */
@media (max-width: 767px) {
  .grid > *, .flex > * { min-width: 0; }
  body { overflow-wrap: break-word; }
  main table, article table, .prose table, .guide-content table { display: block; max-width: 100%; overflow-x: auto; position: relative; }
  img, iframe, video { max-width: 100%; height: auto; }
}
