/* ── Mobile Pill Bar ──────────────────────────────
   Scrollable cross-promo strip, visible only on mobile.
   Include this CSS + add the HTML block below your <header>.

   HTML:
   <div class="pill-bar">
     <div class="pill-bar-track">
       <a href="..." class="pill-bar-pill" target="_blank">SiteName</a>
       <a href="..." class="pill-bar-pill" target="_blank">SiteName</a>
     </div>
   </div>
*/

.pill-bar {
  display: none;
}

@media (max-width: 480px) {
  .pill-bar {
    display: block;
    position: relative;
    margin: 0 0 2px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .pill-bar-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 20px;
    justify-content: center;
  }
  .pill-bar-track::-webkit-scrollbar { display: none; }
  .pill-bar-pill {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--gold, #B8960C);
    background: var(--gold-light, #faf3d8);
    border: 1px solid var(--gold, #B8960C);
    border-radius: 20px;
    padding: 6px 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 6px rgba(184, 150, 12, 0.3);
  }
}

/* ── Install Banner (mobile only) ────────────────── */
.install-banner {
  display: none;
}

@media (max-width: 768px) {
  .install-banner {
    display: none; /* shown via JS */
    align-items: center;
    gap: 10px;
    margin: 8px 16px;
    padding: 12px 14px;
    background: var(--surface, #fff);
    border: 1px solid var(--gold, #B8960C);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(184, 150, 12, 0.15);
    animation: installSlide 0.4s ease both;
  }
  .install-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
  }
  .install-banner-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary, #222);
  }
  .install-banner-text strong {
    display: block;
    font-size: 14px;
    color: var(--gold, #B8960C);
  }
  .install-banner-text span {
    font-size: 12px;
    color: var(--text-muted, #999);
  }
  .install-banner-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted, #999);
    cursor: pointer;
    padding: 4px 8px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  @keyframes installSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
