/* ---------- Cookie consent: slim full-width strip stuck to the bottom ---------- */
/* Space below the page while the strip shows (set by the "Cookie consent spacing" script) */
body { padding-bottom: var(--consent-space, 0px); }
html { scroll-padding-bottom: var(--consent-space, 0px); }

body .webmason-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.5rem max(1.25rem, calc((100% - 1120px) / 2));
  background: var(--surface);
  color: var(--muted);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 -4px 16px rgba(30, 27, 46, 0.06);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.4;
}
/* Thin rainbow flourish along the top edge */
body .webmason-consent::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-magenta), var(--c-coral), var(--c-sun), var(--c-teal), var(--c-violet));
  opacity: 0.7;
}
body .webmason-consent-message {
  flex: 1 1 28rem;
  margin: 0;
  color: var(--muted);
}
body .webmason-consent-privacy { color: var(--link); margin-left: 0.25rem; }
body .webmason-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  margin: 0;
}
body .webmason-consent-button {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease;
}
body .webmason-consent-button:hover { transform: translateY(-1px); }
body .webmason-consent-accept { background: var(--accent); color: #fff; }
body .webmason-consent-decline { background: transparent; color: var(--text); border-color: var(--line); }
body .webmason-consent-decline:hover { border-color: var(--text); }

@media (max-width: 600px) {
  body .webmason-consent { justify-content: flex-start; padding-block: 0.6rem; }
  body .webmason-consent-message { flex-basis: 100%; }
}

/* Footer "Cookie settings" link (a button that looks like the other footer links) */
.site-footer__button {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.site-footer__button:hover { text-decoration-thickness: 2px; }