/* Cookie-consent banner — geo-targeted GDPR opt-in.
 * Cream/ink palette; reuses the custom properties from style.css. No inline
 * styles, no framework.
 */

.srip-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60; /* above footer + the side tabs (z-index 50) */
  background: var(--paper-warm);
  border-top: 1px solid var(--ink-soft);
  color: var(--ink);
  box-shadow: 0 -4px 20px rgba(26, 22, 18, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .srip-cookie-banner:not([hidden]) {
    animation: srip-cookie-in 150ms ease-out;
  }
  @keyframes srip-cookie-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

.srip-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.srip-cookie-msg {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.srip-cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* All three buttons share the same size/weight — no dark-pattern hierarchy. */
.srip-cookie-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-medium, 8px);
  border: 1.5px solid var(--ink);
  background: var(--lime);
  color: var(--on-lime);
  cursor: pointer;
  white-space: nowrap;
  transition: filter 120ms ease;
}

.srip-cookie-btn:hover { filter: brightness(1.04); }

.srip-cookie-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* "More info" is visually quieter but the SAME size as Accept/Reject. */
.srip-cookie-btn-quiet {
  background: transparent;
  color: var(--ink);
}

.srip-cookie-details {
  flex-basis: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.srip-cookie-details p { margin: 0 0 0.5rem; }
.srip-cookie-details p:last-child { margin-bottom: 0; }
.srip-cookie-details code { font-size: 0.78em; word-break: break-word; }

/* When the banner is open, pad the body so it never covers footer links.
   Added/removed by cookie-banner.js so US visitors (who never see it) get no
   layout shift. */
body.srip-banner-open { padding-bottom: 9.5rem; }

@media (max-width: 640px) {
  .srip-cookie-inner { flex-direction: column; align-items: stretch; }
  .srip-cookie-actions { justify-content: stretch; }
  .srip-cookie-btn { flex: 1 1 auto; text-align: center; }
  body.srip-banner-open { padding-bottom: 15rem; }
}
