/* Optional analytics: a quiet choice, with equal actions and native scrolling. */
.ga-consent {
  position: fixed;
  z-index: 100;
  inset: auto 16px calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  overflow: auto;
  overscroll-behavior: auto;
  padding: 22px;
  color: #262C26;
  background: #ECEDE8;
  border: 1px solid #FCFDF8;
  border-radius: 22px;
  box-shadow: 8px 12px 30px #a6afa23d, -5px -5px 16px #fffffcbd;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
.ga-consent[hidden] { display: none !important; }
.ga-consent h2 { margin: 0 0 7px; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.ga-consent-copy { margin: 0; max-width: 60ch; }
.ga-consent-copy strong { font-weight: 600; }
.ga-consent-copy p + p { margin-top: 8px; }
.ga-consent-link {
  display: inline-block;
  color: #425A4C;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ga-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}
.ga-consent-button {
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #262C26;
  background: #ECEDE8;
  border: 1px solid #CAD1C6;
  border-radius: 12px;
  box-shadow: 4px 4px 9px #cbd0c6, -4px -4px 9px #fffffc;
  font-family: inherit;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ga-consent-button:active {
  box-shadow: inset 3px 3px 6px #cbd0c6, inset -3px -3px 6px #fffffc;
}
.ga-consent-button:focus-visible,
.ga-consent-link:focus-visible,
[data-analytics-preferences]:focus-visible {
  outline: 2px solid #425A4C;
  outline-offset: 4px;
}
footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 18px;
}
footer [data-analytics-preferences] {
  min-height: 44px;
  padding: 10px 0;
  color: #425A4C;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
  touch-action: manipulation;
}
footer .footer-meta .ga-consent-link { font-size: 13px; padding-block: 10px; min-height: 44px; }
@media (hover: hover) and (pointer: fine) {
  .ga-consent-button:hover { border-color: #647560; background: #E3E7DE; }
  .ga-consent-link:hover, footer [data-analytics-preferences]:hover { color: #262C26; }
}
@media (max-width: 760px) {
  .ga-consent { padding: 17px; border-radius: 19px; }
  .ga-consent-copy { font-size: 16px; line-height: 1.4; }
  .ga-consent-actions { gap: 10px; margin-top: 14px; }
  .ga-consent-button { padding: 11px 10px; font-size: 14px; min-height: 46px; }
}
@media (max-width: 480px) {
  footer { flex-wrap: wrap; gap: 8px 16px; }
  footer .footer-meta { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 2px 16px; }
  footer .back-top { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ga-consent, .ga-consent-button { animation: none; transition: none; }
}
