/* The dock (assets/lp/js/bx-dock.js): the side widget and the pop-up screen every journey widget lives in.
   Art, 22 Sep 2026: "side widget popping or pop up screen ... not as separate sections". Loaded in the head of the
   site frame, so the card never shifts the page; the kit (bx-capture.css) supplies the glass, the X and the buttons.
   Palette: the brand blue family, white at opacities, the one red for the map's complaint dots. */

/* ------------------------------------------------------------ the side widget */
.bxd-side { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 400px; border-radius: 24px; padding: 18px;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.bxd-side.is-in { opacity: 1; transform: none; }
.bxd-side__x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.bxd-side__open { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 48px 0 0; margin: 0;
  border: none; background: none; color: #FFFFFF; text-align: left; cursor: pointer; font: inherit; border-radius: 16px; }
.bxd-side__open:focus-visible { outline: 2px solid #8585E9; outline-offset: 4px; }
.bxd-side__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bxd-kicker { font-style: normal; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #8585E9;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxd-side__title { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 500; font-size: 18px; line-height: 23px; letter-spacing: -0.01em; color: #FFFFFF; }
.bxd-side__line { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .64); }
.bxd-side__row { display: flex; margin-top: 14px; }
.bxd-side__row .btn { width: 100%; }
.bxd-side:hover .bxd-side__cta { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(38, 75, 255, .45); }

/* the tile: an icon, a number, the scam clock, or the map's dots */
.bxd-tile { position: relative; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 18px; color: #FFFFFF;
  background: radial-gradient(120% 90% at 30% 0%, rgba(55, 93, 251, .38) 0%, rgba(38, 75, 255, .08) 70%), rgba(9, 12, 33, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 4px 16px rgba(255, 255, 255, .06); }
.bxd-tile > svg { width: 48%; height: 48%; }
.bxd-tile--map { background: radial-gradient(90% 90% at 50% 50%, rgba(38, 75, 255, .16) 0%, rgba(9, 12, 33, 0) 70%), rgba(9, 12, 33, .96); }
.bxd-tile--map > svg, .bxd-tile--ring > svg { width: 100%; height: 100%; }
.bxd-tile--num b, .bxd-tile--ring b { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 500; font-size: 20px; line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; }
.bxd-tile--num.is-long b { font-size: 15px; }
.bxd-tile--ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; }

/* the pill: the same card, small, after its pop-up closed */
.bxd-side.is-pill { width: auto; max-width: 380px; display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 8px; border-radius: 999px; }
.bxd-side.is-pill .bxd-side__open { min-height: 44px; padding: 0 4px 0 0; gap: 12px; border-radius: 999px; }
.bxd-side.is-pill .bxd-tile { border-radius: 999px; }
.bxd-side.is-pill .bxd-side__title { font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxd-side.is-pill .bxd-kicker { font-size: 11px; line-height: 14px; }
.bxd-side.is-pill .bxd-side__x { position: static; flex: none; order: 2; }

/* ------------------------------------------------------------ the pop-up screen */
.bxd-overlay { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: 32px 88px;
  background: rgba(8, 8, 20, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease; }
.bxd-overlay[hidden] { display: none; }
.bxd-overlay.is-in { opacity: 1; }
.bxd-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 64px); display: flex; flex-direction: column; outline: none;
  transform: translateY(18px) scale(.98); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.bxd-overlay.is-in .bxd-dialog { transform: none; }
.bxd-bar { position: absolute; top: 0; right: -60px; z-index: 3; }
.bxd-bar .bxd-kicker { display: none; }
.bxd-x { position: relative; top: 0; right: 0; background: rgba(9, 12, 33, .86); }
.bxd-scroll { position: relative; overflow-y: auto; overscroll-behavior: contain; max-height: calc(100vh - 64px); border-radius: 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.bxd-body[hidden] { display: none; }
.bxd-body > .bxh, .bxd-body .bxh-slot--inline { margin: 0; }
/* the map's heading sits above its card in a page; in the pop-up the heading and the card share one panel, like
   every other widget, whose own card is the panel */
.bxd-body .bxp { padding: 28px 28px 24px; border-radius: 24px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(38, 75, 255, .20) 0%, rgba(38, 75, 255, 0) 62%), rgba(9, 12, 33, .97);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .10); }
.bxd-body .bxp-head .bxc-h3 { font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
.bxd-body .bxh-slot--inline + link + .bxh-slot--inline { margin-top: 16px; }

.bxd-skel { display: flex; flex-direction: column; gap: 16px; height: 520px; padding: 32px; border-radius: 24px;
  background: rgba(9, 12, 33, .94); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.bxd-skel[hidden] { display: none; }
.bxd-skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .05) 70%);
  background-size: 220% 100%; animation: bxd-sheen 1.2s linear infinite; }
.bxd-skel i:nth-child(1) { width: 28%; }
.bxd-skel i:nth-child(2) { width: 72%; height: 30px; }
.bxd-skel i:nth-child(3) { flex: 1; border-radius: 18px; }
.bxd-skel i:nth-child(4) { width: 88%; }
.bxd-skel i:nth-child(5) { width: 54%; }
@keyframes bxd-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.bxd-fail { display: flex; flex-direction: column; gap: 6px; padding: 40px 32px; border-radius: 24px; text-align: center; color: rgba(255, 255, 255, .7);
  background: rgba(9, 12, 33, .94); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.bxd-fail b { color: #FFFFFF; font-weight: 500; font-size: 17px; }
.bxd-fail .btn { align-self: center; margin-top: 12px; }
html.bxd-open, html.bxd-open body { overflow: hidden; }

/* a narrow computer: the X comes inside, over the widget's corner; the forecast strip, which has no heading to sit
   beside it, moves its words down under it */
@media (max-width: 960px) {
  .bxd-body .bxsw-card { padding-top: 68px !important; }
  .bxd-body .bxp-head { padding-right: 52px; }
}
@media (max-width: 960px) and (min-width: 601px) {
  .bxd-overlay { padding: 24px; }
  .bxd-bar { top: 12px; right: 12px; }
}

/* ------------------------------------------------------------ a phone */
@media (max-width: 600px) {
  .bxd-side { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 12px; border-radius: 22px; }
  .bxd-side__open { min-height: 52px; gap: 12px; padding-right: 44px; }
  .bxd-side__line, .bxd-side__row { display: none; }
  .bxd-side__title { font-size: 16px; line-height: 21px; }
  .bxd-side__x { top: 50%; right: 8px; margin-top: -22px; }
  .bxd-side.is-pill { left: auto; max-width: calc(100vw - 24px); }
  .bxd-side.is-pill .bxd-side__x { margin-top: 0; }
  /* the Shield button rides above the card at the foot of the phone */
  html.bxd-has-side .bxs-fab { transform: translateY(-88px); }

  /* a sheet from the bottom, and the widget is the sheet: one surface, the X over its corner */
  .bxd-overlay { align-items: flex-end; padding: 0; }
  .bxd-dialog { width: 100%; max-height: 92vh; transform: translateY(100%); }
  .bxd-bar { top: 12px; right: 12px; }
  .bxd-x { background: rgba(255, 255, 255, .08); }
  .bxd-scroll { max-height: 92vh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
    background: radial-gradient(120% 50% at 50% 0%, rgba(38, 75, 255, .20) 0%, rgba(38, 75, 255, 0) 62%), rgba(9, 12, 33, .98);
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .10), 0 -20px 60px -20px rgba(0, 0, 0, .7); }
  /* each widget's own card edge would be a card inside the sheet (the map keeps its tile) */
  .bxd-body :is(.brt, .dp-card, .dd-card, .lc-card, .pc-card, .sd-card, .sg-card, .bxsr-card, .bxwy-card, .bxsw-card) {
    background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important; }
  .bxd-body .bxp { padding: 22px 18px 18px; background: transparent; box-shadow: none; border-radius: 0; }
  .bxd-body .bxp-head .bxc-h3 { font-size: 24px; line-height: 29px; }
  .bxd-skel { height: 64vh; border-radius: 0; box-shadow: none; background: transparent; }
  .bxd-fail { border-radius: 0; box-shadow: none; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .bxd-side, .bxd-overlay, .bxd-dialog, .bxd-skel i { transition: none !important; animation: none !important; }
}
