/* BLN PWA install – plugin BLN PWA Install 2026.11.18.3 (from draft 18.11.2026). Colours: GPT palette (#1E9ABE, #143A52, #C9861E), Heebo. */

/* Inside the installed app / TWA: no install or download UI anywhere. */
html.bln-in-app [data-bln-install],
html.bln-in-app a[href$=".apk"],
html.bln-in-app a[href*=".apk?"],
html.bln-in-app .host-app-install,          /* /botkey/ card (botkey-pilot, GPT) */
html.bln-in-app #bln-inst,                  /* homepage "התקינו" banner */
html.bln-in-app #bln-board-app,             /* homepage app dialog */
html.bln-in-app .bln-hp-chips .c3,
html.bln-in-app #bln-pwa-strip,
html.bln-in-app #bln-pwa-help { display: none !important; }
/* 18.11.2026 Claude: עיצוב דף הבית החדש (bln-home-ui-1811) מציג את כרטיס ההתקנה עם display:flex!important ומזהה #v4 – לכן כלל חזק יותר שמסתיר אותו בתוך האפליקציה המותקנת. */
html.bln-in-app[data-hp] body.page-id-563 #v4 .bln-hp-chips .c3,
html.bln-in-app body #v4 .bln-hp-chips .c3 { display: none !important; }

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  [data-bln-install], a[href$=".apk"], a[href*=".apk?"], .host-app-install,
  #bln-inst, #bln-board-app, .bln-hp-chips .c3, #bln-pwa-strip, #bln-pwa-help { display: none !important; }
}

/* Fallback instructions dialog. */
#bln-pwa-help {
  max-width: min(92vw, 420px); border: 0; border-radius: 18px; padding: 22px 20px 18px;
  background: #FFFBF4; color: #143A52; font-family: Heebo, Arial, sans-serif; text-align: right;
  box-shadow: 0 18px 48px rgba(20, 58, 82, .25);
}
#bln-pwa-help::backdrop { background: rgba(20, 58, 82, .45); }
#bln-pwa-help h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.35; color: #143A52; }
#bln-pwa-help .bln-pwa-help-msg { margin: 0 0 8px; font-size: 17px; line-height: 1.6; }
#bln-pwa-help .bln-pwa-help-note { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #4A5C68; }
#bln-pwa-help .bln-pwa-help-note:empty { display: none; }
#bln-pwa-help .bln-pwa-help-x {
  display: block; width: 100%; min-height: 48px; border: 0; border-radius: 12px;
  background: #1E9ABE; color: #fff; font: 700 17px Heebo, Arial, sans-serif; cursor: pointer;
}
#bln-pwa-help .bln-pwa-help-x:focus-visible { outline: 3px solid #C9861E; outline-offset: 2px; }

/* Old homepage banner (bln-board-shell) retired at runtime: hidden everywhere this file loads, markup kept. */
#bln-inst, #bln-inst.is-on, .bln-inst.is-on { display: none !important; }
/* Neutralise <style id="gpt-home-install-clearance-20261013">: its 272px footer padding applied only while .bln-inst.is-on.
   Restores the value the footer has without the banner (rule .v4 .v4-foot in bln-board-shell; measured 88px at 390px, see tests). */
@media (max-width: 900px) {
  html body.page-id-563:has(.bln-inst.is-on) .v4 .v4-foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
}
