/* Header installation entry for the Bible, Audio Bible, Radio and TV hubs. */
.imbf-pwa-header {
  min-block-size: 36px;
  margin-inline-end: 12px;
  gap: .45rem;
  padding: 0 .75rem;
  border: 1px solid #ffffff38;
  border-radius: .45rem;
  background: #ffffff0d;
  color: #f5f6f8;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  justify-self: end;
}

.imbf-pwa-header svg { color: #ff9a56; flex: none; }
.imbf-pwa-header:hover { background: #ffffff20; }
.imbf-pwa-header:focus-visible { outline-color: #ff9a56; }

@media screen {
  body > header:has(> .imbf-pwa-header:not([hidden])) {
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    min-block-size: 50px;
  }

  body > header > [itemscope]:has(~ .imbf-pwa-header) { grid-column: 1; grid-row: 1; }
  body > header > .nav:has(~ .imbf-pwa-header) { grid-column: 2; grid-row: 1; min-width: 0; }
  body > header:has(> .imbf-pwa-header) > .search { display: none; }
  body > header > .imbf-pwa-header { grid-column: 3; grid-row: 1; }

  body > header .wrapper:has(> .imbf-pwa-header:not([hidden])) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-block-size: 50px;
  }

  body > header:has(.wrapper > .imbf-pwa-header:not([hidden])) { height: auto; }
  body > header .wrapper:has(> .imbf-pwa-header) > .rub { min-width: 0; }
}

@media screen and (max-width: 760px) {
  body > header:has(> .imbf-pwa-header:not([hidden])) {
    grid-template-columns: 134px minmax(0, 1fr);
  }

  body > header > .imbf-pwa-header { grid-column: 2; }
  body > header > .nav:has(~ .imbf-pwa-header:not([hidden])) { grid-area: 2 / 1 / 3 / -1; }
}

@media screen and (max-width: 470px) {
  body > header .wrapper:has(> .imbf-pwa-header:not([hidden])) {
    grid-template-columns: 134px minmax(0, 1fr);
  }

  body > header .wrapper:has(> .imbf-pwa-header:not([hidden])) > .rub {
    grid-area: 2 / 1 / 3 / -1;
    font-size: 1.25rem;
    padding: 0 0 .35rem;
  }
}

@media screen and (max-width: 350px) {
  .imbf-pwa-header { margin-inline-end: 7px; gap: .3rem; padding-inline: .4rem; font-size: .75rem; white-space: normal; text-align: start; }
}


