.android-apk-offer[hidden] { display: none; }

.android-apk-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px 12px;
  width: calc(100% - 32px);
  max-width: 1100px;
  margin: 16px auto;
  padding: 16px;
  border: 1px solid var(--line-strong, #657049);
  border-radius: var(--r-md, 14px);
  background: #152c23;
  color: var(--ivory, #fff8e7);
  text-align: start;
}

.android-apk-offer__copy { min-width: 0; }
.android-apk-offer__title { font-size: 1rem; font-weight: 800; line-height: 1.6; }
.android-apk-offer__description { margin-block: 4px; font-size: .875rem; line-height: 1.7; }
.android-apk-offer__version { color: #d9d9bd; font-size: .75rem; }

.android-apk-offer__dismiss {
  align-self: start;
  width: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
}

.android-apk-offer__download {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--gold, #c9a961);
  color: #14152a;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.android-apk-offer__dismiss:hover { background: #264337; }
.android-apk-offer__download:hover { background: #e0c580; }
.android-apk-offer__dismiss:focus-visible,
.android-apk-offer__download:focus-visible { outline: 2px solid #fff8e7; outline-offset: 3px; }

/* Keep one install offer on the home page while the APK notice is visible. */
body.android-apk-offer-visible #pwa-install-btn,
body.android-apk-offer-visible #pwa-ios-hint { display: none; }
