/* Awake to Power Academy LMS v2.2.0: the Academy as an app (install card, invitation bar, iPhone sheet,
   and the navigation bar along the bottom of the installed app on phones). */
.atp-app-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px !important;
  border: 2px solid #BF9B30 !important; border-radius: 4px !important; background: #BF9B30 !important; color: #0C2A24 !important;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
  cursor: pointer; box-shadow: none !important; white-space: nowrap;
}
.atp-app-btn:hover { background: #D1AE45 !important; border-color: #D1AE45 !important; }
.atp-app-btn:focus-visible, .atp-appbar-later:focus-visible, .atp-appnav a:focus-visible { outline: 3px solid #CFE0D8; outline-offset: 2px; }
[data-atp-install][hidden], [data-atp-install-card][hidden] { display: none !important; }

/* Install card */
.atp-app-card {
  position: relative; display: flex; align-items: center; gap: 26px; margin: 56px 0 0; padding: 30px 34px; overflow: hidden;
  border-radius: 10px; background: #123B33; color: #fff; font-family: Arial, Helvetica, sans-serif;
}
.atp-app-card::after { content: ""; position: absolute; right: -60px; top: -120px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(191, 155, 48, .35); pointer-events: none; }
.atp-app-card--home { margin-bottom: 64px; }
.atp-app-card-icon { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 0 1px rgba(207, 224, 216, .25); }
.atp-app-card-text { flex: 1; min-width: 0; }
.atp-app-card-kicker { margin: 0 0 4px !important; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #CFE0D8; }
.atp-app-card-title { margin: 0 0 6px !important; padding: 0 !important; font: 400 26px/1.2 Georgia, "Times New Roman", serif !important; color: #fff !important; text-transform: none !important; }
.atp-app-card p { margin: 0 !important; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .84); }
.atp-app-card .atp-app-btn { position: relative; z-index: 1; }

/* Invitation bar */
.atp-appbar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99990; display: flex; align-items: center; gap: 14px;
  max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 10px; border-top: 3px solid #BF9B30;
  background: #0C2A24; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font-family: Arial, Helvetica, sans-serif;
}
.atp-appbar[hidden] { display: none; }
.atp-appbar-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; }
.atp-appbar-text { flex: 1; min-width: 0; margin: 0 !important; font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.atp-appbar-text strong { display: block; font-size: 15px; color: #fff; }
.atp-appbar .atp-app-btn { min-height: 40px; padding: 0 16px !important; }
.atp-appbar-later { min-height: 40px; padding: 0 8px !important; border: 0 !important; background: none !important; color: #CFE0D8 !important; font: 700 14px/1 Arial, Helvetica, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important; }

/* iPhone and iPad instructions */
.atp-appsheet-back { position: fixed; inset: 0; z-index: 99995; display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 42, 36, .55); }
.atp-appsheet-back[hidden] { display: none; }
.atp-appsheet { width: 100%; max-width: 520px; padding: 26px 24px 30px; border-radius: 14px 14px 0 0; background: #fff; color: #1F2933; font: 16px/1.55 Arial, Helvetica, sans-serif; border-top: 4px solid #BF9B30; }
.atp-appsheet h2 { margin: 0 0 14px !important; font: 400 22px/1.25 Georgia, serif !important; color: #123B33 !important; text-transform: none !important; }
.atp-appsheet ol { margin: 0 0 20px !important; padding-left: 22px !important; }
.atp-appsheet li { margin: 0 0 8px; }
.atp-appsheet .atp-app-btn { width: 100%; background: #123B33 !important; border-color: #123B33 !important; color: #fff !important; }
.atp-appsheet-share { display: inline-block; width: 14px; height: 16px; margin: 0 2px; vertical-align: -2px; border: 2px solid #123B33; border-top: 0; border-radius: 0 0 2px 2px; position: relative; }
.atp-appsheet-share::before { content: ""; position: absolute; left: 3px; top: -8px; width: 2px; height: 12px; background: #123B33; }
.atp-appsheet-share::after { content: ""; position: absolute; left: 0; top: -9px; width: 6px; height: 6px; border-left: 2px solid #123B33; border-top: 2px solid #123B33; transform: rotate(45deg); }

/* Navigation along the bottom of the installed app on phones */
.atp-appnav { display: none; }
@media (max-width: 900px) {
  html.atp-academy-standalone .atp-appnav { display: block; }
}
@media (max-width: 900px) and (display-mode: standalone) {
  .atp-appnav { display: block; }
}
.atp-appnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99980; background: #fff; border-top: 1px solid #E1E6E3;
  box-shadow: 0 -6px 20px rgba(12, 42, 36, .08); padding-bottom: env(safe-area-inset-bottom, 0);
  font-family: Arial, Helvetica, sans-serif;
}
.atp-appnav ul { display: flex; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.atp-appnav li { flex: 1; margin: 0; }
.atp-appnav li::before { content: none !important; }
.atp-appnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 6px 2px; color: #56626A !important; font-size: 11.5px; font-weight: 700; text-decoration: none !important; }
.atp-appnav a[aria-current="page"] { color: #123B33 !important; }
.atp-appnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: #BF9B30; }
.atp-appnav-l { white-space: nowrap; }
.atp-appnav-count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #BF9B30; color: #0C2A24; font: 700 11px/18px Arial, sans-serif; text-align: center; }
@media (max-width: 900px) {
  html.atp-academy-standalone body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
  html.atp-academy-standalone .atp-cp-bar { bottom: calc(61px + env(safe-area-inset-bottom, 0)) !important; }
}
/* The installed app opens in its own window: the "other Awake to Power sites" top bar is not needed there. */
html.atp-academy-standalone .atp-topbar { display: none; }

@media (max-width: 640px) {
  .atp-app-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; }
  .atp-app-card-icon { width: 64px; height: 64px; border-radius: 15px; }
  .atp-app-card .atp-app-btn { width: 100%; }
  .atp-appbar { left: 10px; right: 10px; bottom: 10px; flex-wrap: wrap; }
  .atp-appbar-text { flex-basis: calc(100% - 60px); }
  .atp-appbar .atp-app-btn { flex: 1; }
}
@media print { .atp-appnav, .atp-appbar, .atp-app-card { display: none !important; } }
