/* WordPress additions to site.css: the cookie banner, and content written in the page editor. */

/* ---------- Cookie choices ---------- */

.consent {
  position: fixed;
  z-index: 1000;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(28, 28, 31, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.consent.is-open { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent-choices { display: grid; gap: 12px; margin-top: 14px; }
.consent-choices[hidden] { display: none; }
.consent-option { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); cursor: pointer; }
.consent-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.consent-button,
.consent-link {
  min-height: 44px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
/* Accept and Reject look the same: neither is pushed. */
.consent-button {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.consent-button:hover { background: rgba(255, 255, 255, 0.2); }
.consent-button[hidden],
.consent-link[hidden] { display: none; }
.consent-link {
  padding: 10px 6px;
  background: none;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-link:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

/* "Cookie settings" in the footer and on the privacy page. */
.footer-link-button,
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.footer-link-button { color: var(--text-2); }
.footer-link-button:hover { color: var(--text); text-decoration: underline; }
.link-button { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Page content from the editor ---------- */

.page h3 { font-size: 1.125rem; margin-top: 28px; }
.page ol { margin-top: 14px; padding-left: 1.4em; }
.page ol li + li { margin-top: 8px; }
.page figure,
.page .wp-block-image { margin: 24px 0 0; }
.page img { max-width: 100%; height: auto; border-radius: 14px; }
.page figcaption { margin-top: 8px; color: var(--text-3); font-size: 0.875rem; }
.page blockquote {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  color: var(--text-2);
}
.page hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.page table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.9375rem; }
.page th,
.page td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.page .wp-block-buttons { margin-top: 20px; }
.page .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.page .has-text-align-center { text-align: center; }
.page .has-text-align-right { text-align: right; }
.page .nav-links { display: flex; gap: 16px; margin-top: 32px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
