/* ─── PWA / Mobile App Feel ────────────────────────────────────────── */

/* Prevent text size adjust on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  /* App-like: prevent rubber-banding on iOS */
  overscroll-behavior-y: none;
}

/* ─── Mobile bottom navigation bar (app feel) ─────────────────────── */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 1050;
    padding: 6px 0 env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.mobile-nav-bar .mnav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-bar .mnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.mobile-nav-bar .mnav-item i {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav-bar .mnav-item.active,
.mobile-nav-bar .mnav-item:hover {
    color: #2e8b1e;
}

.mobile-nav-bar .mnav-item.mnav-cta {
    color: #fff;
}

.mobile-nav-bar .mnav-item.mnav-cta .mnav-icon-wrap {
    background: #2e8b1e;
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(46,139,30,0.4);
}

.mobile-nav-bar .mnav-item.mnav-cta i { font-size: 22px; }

@media (max-width: 768px) {
    .mobile-nav-bar { display: block; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Smooth tap highlight */
@media (max-width: 768px) {
    a, button { -webkit-tap-highlight-color: rgba(46,139,30,0.15); }
}