/* ============================================================
   27-dev-banner.css — top-of-page "still in development" notice.
   Sticky banner with a dismiss button. Once dismissed, hidden
   for that visitor (localStorage). Bump the version key in
   js/dev-banner.js when you want everyone to see it again.
   When the site goes fully live, remove:
     - this file's <link> in index.html
     - the <div class="dev-banner"> block in index.html
     - js/dev-banner.js + its <script> tag
   ============================================================ */

/* Fixed at viewport top — sits above the sticky header reliably on mobile */
/* Yellow always pairs with --c-ink (#1a1a1a) for AA contrast — keep them
   hardcoded together so this banner stays readable even if a future theme
   recolors --c-ink. The fallback `#f9c74f` matches --c-yellow exactly. */
.dev-banner {
  background: linear-gradient(90deg, var(--c-yellow, #f9c74f) 0%, #ffd966 100%);
  color: #1a1a1a;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Push the rest of the page down so content isn't hidden behind the banner.
   Class `dev-banner-active` is added to <body> by dev-banner.js while the
   banner is visible — once dismissed, the class is removed and padding goes. */
body.dev-banner-active { padding-top: 52px; }
@media (max-width: 600px) {
  body.dev-banner-active { padding-top: 68px; }
}
@media (max-width: 380px) {
  body.dev-banner-active { padding-top: 88px; }
}

.dev-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dev-banner-text {
  flex: 1;
  line-height: 1.4;
}

.dev-banner-text strong {
  font-weight: 700;
}

.dev-banner-text a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.dev-banner-close {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: #1a1a1a;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dev-banner-close:hover {
  background: rgba(0, 0, 0, 0.22);
}

.dev-banner-close:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.dev-banner.is-hidden {
  display: none;
}

@media (max-width: 600px) {
  .dev-banner {
    font-size: 0.85rem;
    padding: 9px 12px;
  }
  .dev-banner-inner {
    gap: 10px;
  }
  .dev-banner-icon {
    display: none;
  }
}
