/* Shared calculator support affordance. No calculator or footer selectors change. */
.bnghub-support {
  --bng-support-gap: 12px;
  position: fixed;
  inset-inline-start: max(var(--bng-support-gap), env(safe-area-inset-left, 0px));
  bottom: var(--bng-support-bottom, max(var(--bng-support-gap), env(safe-area-inset-bottom, 0px)));
  z-index: 90;
  box-sizing: border-box;
  display: inline-flex;
  align-items: stretch;
  max-width: calc(100% - 24px);
  overflow: visible;
  border: 1px solid var(--bng-accent, #67d8ef);
  border-radius: 999px;
  background: var(--bng-surface, #18232e);
  color: var(--bng-text, #f1f5f9);
  box-shadow: 0 3px 12px #0005;
  font: 600 14px/1.3 system-ui, sans-serif;
  opacity: 1;
  transition: opacity 240ms ease-out;
}
.bnghub-support[hidden] { display: none; }
.bnghub-support.is-idle { opacity: .6; }
.bnghub-support:focus-within { opacity: 1; transition: none; }
.bnghub-support.is-active { opacity: 1; transition: none; }
.bnghub-support__options { display: flex; min-width: 0; }
.bnghub-support .bnghub-support__expand { display: none; }
.bnghub-support .bnghub-support__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 0;
  padding: 0 13px;
  border-radius: 999px 0 0 999px;
  color: var(--bng-text, #f1f5f9);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bnghub-support__link > [aria-hidden] { color: var(--bng-accent, #67d8ef); }
.bnghub-support .bnghub-support__dismiss {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--bng-border, #597185);
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: var(--bng-muted, #b7c5d3);
  font: 400 22px/1 system-ui, sans-serif;
  cursor: pointer;
}
.bnghub-support .bnghub-support__link:hover,
.bnghub-support .bnghub-support__dismiss:hover {
  background: var(--bng-surface-raised, #223240);
  color: var(--bng-accent-hover, #a5ebf7);
}
.bnghub-support :is(a, button):focus-visible { outline: 3px solid var(--bng-accent, #67d8ef); outline-offset: 3px; }
@media (hover: hover) {
  .bnghub-support:hover { opacity: 1; transition: none; }
}
/* The compact control keeps a full tap target. It expands before navigating. */
@media (max-width: 600px) {
  .bnghub-support.is-compact {
    inset-inline-start: max(4px, env(safe-area-inset-left, 0px));
  }
  .bnghub-support.is-compact .bnghub-support__options { display: none; }
  .bnghub-support.is-compact .bnghub-support__expand {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bng-text, #f1f5f9);
    font: 600 13px/1 system-ui, sans-serif;
    cursor: pointer;
  }
  .bnghub-support.is-compact.is-idle {
    opacity: .4;
    background: transparent;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bnghub-support { transition: none; }
}
@media print {
  .bnghub-support { display: none !important; }
}
