/* Offer bar: a one-line strip at the very top of every page that stays in view with the menu bar.
   Computers and tablets get the full sentence and a "See plans" button; phones get a short line and the
   whole strip is the link. Its height feeds --offer-h, which the menu bar uses to sit just below it. */
:root { --offer-h: 46px; }
html { scroll-padding-top: calc(96px + var(--offer-h)); }
html.offer-closed { --offer-h: 0px; }
html.offer-closed .offer { display: none; }

.offer {
  position: sticky; top: 0; z-index: 41;
  min-height: calc(var(--offer-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(100deg, var(--blue) 0%, #3d78ff 55%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
}
.offer-in {
  max-width: 1180px; height: var(--offer-h); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.offer-link {
  flex: 1 1 auto; min-width: 0; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.offer-tag {
  flex: none; padding: 4px 10px; border-radius: 999px;
  background: #fff; color: var(--blue);
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
}
.offer-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.offer-text b { font-weight: 800; }
.offer-text .mob { display: none; }
.offer-cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 13.5px; font-weight: 700; transition: background .15s;
}
.offer-cta .arr { transition: translate .15s; }
.offer-link:hover .offer-cta { background: #172a6b; }
.offer-link:hover .offer-cta .arr { translate: 3px 0; }
.offer-link:focus-visible { outline: 3px solid #fff; outline-offset: -3px; border-radius: 8px; }
.offer-x {
  flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; opacity: .85; font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background .15s, opacity .15s;
}
.offer-x:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.offer-x:focus-visible { outline: 3px solid #fff; outline-offset: 0; }

/* The menu bar sits just below the offer bar while scrolling */
header.site { top: calc(var(--offer-h) + env(safe-area-inset-top, 0px) + 12px); }

/* Tablets: a little tighter */
@media (min-width: 761px) and (max-width: 1040px) {
  .offer-link { gap: 10px; font-size: 14px; }
}

/* Phones: short line, the whole strip is the link */
@media (max-width: 760px) {
  :root { --offer-h: 40px; }
  html { scroll-padding-top: calc(72px + var(--offer-h)); }
  .offer-in { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(4px, env(safe-area-inset-right, 0px)); gap: 2px; }
  .offer-link { gap: 8px; font-size: 13.5px; }
  .offer-tag { font-size: 10.5px; padding: 3px 8px; }
  .offer-text .desk, .offer-cta { display: none; }
  .offer-text .mob { display: inline; }
  .offer-x { width: 40px; height: 40px; font-size: 20px; }
  header.site { top: calc(var(--offer-h) + env(safe-area-inset-top, 0px) + 8px); }
}
@media (max-width: 350px) {
  .offer-link { font-size: 12.5px; gap: 6px; }
}
