/* Repko cookie consent banner — shared across all pages
 * Loaded from /assets/css/repko-consent.css via <link rel="stylesheet">.
 * Matches the original homepage banner styling 1:1, extracted as single
 * source of truth so every page (including future ones) renders the same
 * banner without duplicating CSS in each page's <style>.
 *
 * Tokens consumed: --brand, --text, --text-dim, --text-muted (must be
 * declared by the page's :root or design-tokens block).
 */

.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0A0A18;
  border-top: 1px solid rgba(218, 165, 32, 0.3);
  z-index: 9999;
  padding: 16px 20px 18px;
  transform: translateY(100%);
  animation: ccSlideUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.cc-banner[hidden] { display: none; }
@keyframes ccSlideUp { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .cc-banner { animation: none; transform: translateY(0); }
}

.cc-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  padding-right: 32px;
}
.cc-banner-content { flex: 1; min-width: 0; }
.cc-banner-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}
.cc-banner-body {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.cc-banner-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cc-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, border-color 0.2s, color 0.2s;
  min-width: 110px;
  min-height: 44px;
  letter-spacing: -0.01em;
}
.cc-btn:hover { opacity: 0.92; }
.cc-btn:active { transform: scale(0.98); }
.cc-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cc-btn-decline {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid rgba(218, 165, 32, 0.4);
}
.cc-btn-decline:hover { color: var(--text); border-color: var(--brand); }
.cc-btn-accept {
  background: var(--brand);
  color: #0A0A18;
  border: 1px solid var(--brand);
}

.cc-banner-close {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.cc-banner-close:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.cc-banner-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Hide homepage sticky CTA while banner is up — harmless no-op on subpages */
body.cc-banner-shown .sticky-cta { visibility: hidden; }

@media (max-width: 700px) {
  .cc-banner { padding: 14px 16px 16px; }
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-right: 8px;
  }
  .cc-banner-actions { display: flex; }
  .cc-btn { flex: 1; min-width: 0; }
}
