/* Bink Machine tab.
 *
 * Page 9834 styles this block in its own cream-and-#ff8616 palette, hard-coded
 * in a <style> tag in the post content. Inside the hub it uses stacks.css's own
 * variables instead, so the launch card cannot drift from the tab bar sitting
 * directly above it — same reasoning as tabs-merged.css. The geometry is 9834's.
 */

/* The optimiser is a dense, wide app and our own tabs are built for 1100px.
   Break out 20px a side, the same trick and the same breakpoint the Cascading
   Projections panel uses: 1140 still sits inside the theme's 1170 container, so
   the page never scrolls sideways. The real answer to width is the "Open Full
   Screen" button in the launch card — this just stops the hub squeezing it
   more than it has to. */
@media (min-width: 1140px) {
  #stx-panel-bink { margin-left: -20px; margin-right: -20px; }
}

.stx-bink { margin-top: 18px; }

/* ---- launch card ---------------------------------------------------------- */

.stx-bink-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 10px;
}
.stx-bink-launch__copy { min-width: 0; }
.stx-bink-eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stx-bink-launch h2 {
  margin: 0 0 5px !important;
  font-family: var(--display) !important;
  font-size: 26px !important;
  letter-spacing: -.02em;
  line-height: 1.05 !important;
}
.stx-bink-launch p {
  margin: 0 !important;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.stx-bink-launch__actions { display: flex; flex: 0 0 auto; gap: 10px; }

.stx-bink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}
.stx-bink-btn--primary { background: var(--orange); color: var(--ink) !important; }
.stx-bink-btn--primary:hover { background: var(--orange-dark); color: #fff !important; }
.stx-bink-btn--secondary { background: var(--ink); color: #fff !important; }
.stx-bink-btn--secondary:hover { background: var(--muted); color: #fff !important; }

/* ---- Bink Sims cross-sell ------------------------------------------------- */

.stx-bink-sims {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 12px;
  padding: 15px 18px;
  background: var(--page);
  border: 1px solid var(--orange);
  border-radius: 8px;
}
.stx-bink-sims__copy { min-width: 0; }
.stx-bink-sims h3 {
  margin: 0 0 3px !important;
  font-family: var(--display) !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
}
.stx-bink-sims p { margin: 0 !important; color: var(--muted); font-size: 14px; line-height: 1.45; }
.stx-bink-sims__link {
  flex: 0 0 auto;
  color: var(--orange-dark) !important;
  font-family: var(--sans);
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}
.stx-bink-sims__link:hover { color: var(--orange) !important; }

/* ---- the app -------------------------------------------------------------- */

.stx-bink-app { position: relative; margin-top: 16px; }
.stx-bink-frame {
  display: block;
  width: 100%;
  /* 9834 runs this at 1500px with scrolling="no" inside a 1440px column. The
     hub gives it ~300px less width, so the same board reflows taller — a fixed
     1500 would clip the bottom of it. Taller as the column narrows, for the
     same reason 9834 goes to 1650 on a phone. */
  min-height: 1600px;
  border: 0;
}
@media (max-width: 1139px) { .stx-bink-frame { min-height: 1750px; } }
@media (max-width: 760px) { .stx-bink-frame { min-height: 1900px; } }

/* The iframe is blank until it answers, so say something rather than showing a
   tall empty box. Removed once the load event fires. */
.stx-bink-boot {
  margin: 0 0 10px !important;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}
.stx-bink-app.is-ready .stx-bink-boot { display: none; }

/* ---- locked ---------------------------------------------------------------- */

.stx-bink-locked .stx-bink-lead { margin: 6px 0 0 !important; font-size: 17px; }

@media (max-width: 760px) {
  .stx-bink-launch { flex-direction: column; align-items: flex-start; padding: 18px; }
  .stx-bink-launch__actions { width: 100%; flex-direction: column; }
  .stx-bink-btn { width: 100%; }
  .stx-bink-sims { flex-direction: column; align-items: flex-start; }
  .stx-bink-sims__link { white-space: normal; }
}
