/* HVP-R7A-04B — accepted Project Signature install prompt reconciliation · staging + production */

.site-header .header-tools{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:18px;
}

.site-header .header-tools .header-cta{
  justify-self:auto;
  flex:0 0 auto;
}

.site-header .pwa-install[hidden]{
  display:none!important;
}

.site-header .pwa-install-header{
  position:static;
  z-index:auto;
  width:auto;
  min-width:248px;
  max-width:292px;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 8px 7px 9px;
  border:1px solid rgba(177,132,76,.28);
  border-radius:999px;
  background:rgba(251,246,242,.86);
  box-shadow:none;
  backdrop-filter:blur(10px);
}

.site-header .pwa-install-header img{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:50%;
  border:1px solid rgba(177,132,76,.22);
  background:#f4f1ec;
  padding:5px;
}

.site-header .pwa-install-header .pwa-install-copy{
  min-width:0;
  flex:1;
  display:grid;
  gap:1px;
  line-height:1.05;
}

.site-header .pwa-install-header strong{
  overflow:hidden;
  color:var(--ink);
  font:700 10px/1.1 var(--sans);
  letter-spacing:.045em;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.site-header .pwa-install-header span{
  margin:0;
  overflow:hidden;
  color:var(--ink-soft);
  font:500 8px/1.15 var(--sans);
  letter-spacing:.025em;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.site-header .pwa-install-header [data-pwa-install]{
  flex:0 0 auto;
  min-height:34px;
  padding:0 13px;
  border:0;
  border-radius:999px;
  background:var(--gold);
  color:#fff;
  font:800 9px/1 var(--sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}

.site-header .pwa-install-header .pwa-install-close{
  width:26px;
  height:32px;
  flex:0 0 26px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--ink-soft);
  font:400 18px/1 var(--sans);
  cursor:pointer;
}

.site-header .pwa-install-header [data-pwa-install]:hover{
  transform:translateY(-1px);
}

.site-header .pwa-install-header .pwa-install-close:hover{
  color:var(--ink);
}

/* Give the header's right-hand track enough room for the inline tool. */
@media(min-width:1181px){
  .site-header{
    grid-template-columns:minmax(300px,1fr) auto minmax(430px,1fr);
  }
}

/* At intermediate desktop widths, keep the prompt compact rather than crowding navigation. */
@media(min-width:901px) and (max-width:1180px){
  .site-header{
    gap:18px;
    padding-left:24px;
    padding-right:24px;
  }

  .site-header .header-tools{
    gap:10px;
  }

  .site-header .pwa-install-header{
    min-width:0;
    width:190px;
  }

  .site-header .pwa-install-header .pwa-install-copy span{
    display:none;
  }

  .site-header .pwa-install-header strong{
    font-size:9px;
  }

  .site-header .pwa-install-header [data-pwa-install]{
    padding:0 10px;
  }
}

/* Mobile: do not force an install control into the compact site header.
   The same functional component becomes a small Project Signature card. */
@media(max-width:900px){
  .site-header .header-tools{
    display:contents;
  }

  .site-header .header-tools .header-cta{
    display:none;
  }

  .site-header .pwa-install-header{
    position:fixed;
    z-index:65;
    top:92px;
    right:12px;
    left:12px;
    width:auto;
    max-width:none;
    min-height:56px;
    padding:8px 10px;
    border-radius:18px;
    background:rgba(251,246,242,.97);
    border:1px solid rgba(177,132,76,.24);
    box-shadow:0 14px 34px rgba(26,26,26,.14);
  }

  .site-header .pwa-install-header img{
    width:36px;
    height:36px;
    flex-basis:36px;
  }

  .site-header .pwa-install-header strong{
    font-size:11px;
  }

  .site-header .pwa-install-header span{
    display:block;
    font-size:9px;
  }
}

@media(max-width:560px){
  .site-header .pwa-install-header{
    top:108px;
  }
}
