/* Written by build.py. The hosted copy of a self-contained app gets one bar
   linking back to the site; the app's own source has no idea this exists.
   A separate file because the site's CSP has no 'unsafe-inline' in style-src,
   so a <style> block here would be dropped without an error. */
.hosted-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 18px; background: #0a0d12; color: #93a2b8;
  border-bottom: 1px solid #263041;
  font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-top: max(8px, env(safe-area-inset-top, 0px));
}
.hosted-bar a { color: #ff6a13; text-decoration: none; white-space: nowrap; }
.hosted-bar a:hover { text-decoration: underline; }
.hosted-bar p { margin: 0; flex: 1; min-width: 200px; }
.hosted-bar b { color: #e6ecf5; font-weight: 700; font-size: 1.15em; }
@media (max-width: 640px) {
  /* On a 375px phone the untrimmed bar ran to 143px -- a sixth of the screen
     before you reach the app it is advertising. Measured, not guessed. */
  .hosted-bar { padding: 7px 12px; gap: 4px 10px; font-size: 11px; line-height: 1.45;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-top: max(7px, env(safe-area-inset-top, 0px)); }
  .hosted-bar p { min-width: 0; }
}
@media (max-height: 540px) {
  /* Landscape phone: one line, or the map never reaches the first screen. */
  .hosted-bar { flex-wrap: nowrap; padding: 4px 10px; gap: 10px; font-size: 11px;
    line-height: 1.3;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    padding-top: max(4px, env(safe-area-inset-top, 0px)); }
  .hosted-bar p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (pointer: coarse) {
  .hosted-bar a { min-height: 44px; display: inline-flex; align-items: center; }
}
