/* Compass & Dove · 508 Social PWA Install Menu Controls & Visual iOS/Install Sheet */
.m508-pwa-menu-group{display:flex;flex-direction:column;gap:6px;margin-bottom:2px}
.hm-link.m508-pwa-install-btn{
  background:linear-gradient(135deg,#fff8e2 0%,#f7e1a0 100%);
  border:1.5px solid #d4a84b;
  color:#0f1d3a;
  font-weight:800;
}
.hm-link.m508-pwa-install-btn:hover{
  filter:brightness(.98);
  border-color:#b88928;
}
.hm-link.m508-pwa-install-btn.is-installed{
  background:linear-gradient(135deg,#e9f8ef 0%,#d7f2e2 100%);
  border-color:#74c798;
  color:#115836;
}
.hm-link.m508-pwa-dl-link{
  background:linear-gradient(135deg,#eef6fe 0%,#dfeefc 100%);
  border:1.5px solid #9dc5ef;
  color:#0f2d5e;
  font-weight:800;
}
.hm-link.m508-pwa-dl-link:hover{
  background:linear-gradient(135deg,#e2f0fd 0%,#d0e6fb 100%);
  border-color:#1b4fa0;
}
.m508-pwa-pill{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:2px 7px;
  border-radius:999px;
  background:#0f1d3a;
  color:#ffe89e;
  flex-shrink:0;
}
.m508-pwa-install-btn.is-installed .m508-pwa-pill{
  background:#16794c;
  color:#ffffff;
}

/* Modal Sheet (iPhone Safari Visual Guide & Universal Install Help) */
.m508-pwa-backdrop{
  position:fixed;
  inset:0;
  z-index:2147483000;
  background:rgba(15,29,58,.62);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
}
.m508-pwa-backdrop.is-open{
  display:flex;
  animation:m508PwaFade .18s ease-out;
}
@media(min-width:640px){
  .m508-pwa-backdrop{align-items:center}
}
.m508-pwa-sheet{
  width:100%;
  max-width:460px;
  max-height:90vh;
  overflow-y:auto;
  background:#ffffff;
  border:2px solid #d4a84b;
  border-radius:24px;
  box-shadow:0 24px 64px rgba(10,18,40,.34);
  color:#0f1d3a;
  font-family:'Figtree',-apple-system,Segoe UI,sans-serif;
  animation:m508PwaRise .22s cubic-bezier(.22,1,.36,1);
}
.m508-pwa-sheet-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  background:linear-gradient(135deg,#0f1d3a 0%,#1b4fa0 100%);
  color:#ffffff;
  border-bottom:2px solid #d4a84b;
}
.m508-pwa-sheet-brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.m508-pwa-sheet-brand img{
  width:42px;
  height:42px;
  border-radius:11px;
  border:1.5px solid #d4a84b;
  background:#0f1d3a;
  flex-shrink:0;
}
.m508-pwa-sheet-eye{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#ffe89e;
}
.m508-pwa-sheet-title{
  font-family:'Cormorant',Georgia,serif;
  font-size:23px;
  font-weight:700;
  line-height:1.1;
  color:#ffffff;
  margin:2px 0 0;
}
.m508-pwa-close{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.14);
  color:#ffffff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
}
.m508-pwa-close:hover{background:rgba(255,255,255,.24)}
.m508-pwa-sheet-body{
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.m508-pwa-lead{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:#344768;
}
.m508-pwa-steps{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.m508-pwa-step{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 13px;
  border-radius:15px;
  background:#f2f8fe;
  border:1px solid #d0e3f6;
}
.m508-pwa-step-num{
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(135deg,#1b4fa0,#0f1d3a);
  color:#ffe89e;
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  margin-top:1px;
}
.m508-pwa-step-txt strong{
  display:block;
  font-size:14px;
  font-weight:800;
  color:#0f1d3a;
  margin-bottom:2px;
}
.m508-pwa-step-txt span{
  display:block;
  font-size:13px;
  line-height:1.48;
  color:#3b4f70;
}
.m508-pwa-ico-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:8px;
  background:#ffffff;
  border:1px solid #bfd7f2;
  color:#1b4fa0;
  font-weight:800;
  font-size:12px;
  vertical-align:middle;
}
.m508-pwa-sheet-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.m508-pwa-cta{
  flex:1;
  min-width:160px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:11px 16px;
  border-radius:999px;
  border:1.5px solid #d4a84b;
  background:linear-gradient(135deg,#fff4c8,#e4b94c);
  color:#0f1d3a;
  font-size:13.5px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}
.m508-pwa-cta-sec{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:999px;
  border:1.5px solid #c6d7ec;
  background:#ffffff;
  color:#0f1d3a;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}
.m508-pwa-toast{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%) translateY(16px);
  z-index:2147483010;
  background:#0f1d3a;
  color:#fff8e2;
  border:1.5px solid #d4a84b;
  border-radius:999px;
  padding:10px 18px;
  font-size:13.5px;
  font-weight:700;
  box-shadow:0 14px 32px rgba(10,18,40,.32);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
.m508-pwa-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
@keyframes m508PwaFade{from{opacity:0}to{opacity:1}}
@keyframes m508PwaRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* Defensive styling for header Install App pill button (prevents oversized SVG) */
.m508-install-btn{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  min-height:36px;
  max-height:38px;
  padding:0 13px;
  border-radius:999px;
  border:1.5px solid rgba(212,168,75,.82);
  background:linear-gradient(135deg,#1e2a52,#141c38);
  color:#fff8e2;
  font-family:'Figtree',-apple-system,Segoe UI,sans-serif;
  font-size:12.5px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 3px 10px rgba(10,16,38,.28);
  flex-shrink:0;
}
.m508-install-btn:hover{filter:brightness(1.1);border-color:#ffe89e}
.m508-install-btn svg{width:15px !important;height:15px !important;flex-shrink:0;stroke:#d4a84b}
@media(max-width:560px){.m508-install-btn{display:none !important}}
