/* Minimal accessible opt-in notice; independent of the portfolio page layout. */
.analytics-consent[hidden] { display: none !important; }
.analytics-consent {
  position: fixed; z-index: 10000; bottom: 16px; left: 50%;
  transform: translateX(-50%); box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  overflow: auto; gap: 22px; padding: 22px 24px;
  color: #FFFFFF; background: #101A2C;
  border: 1px solid #C6A15B; border-radius: 15px;
  box-shadow: 0 8px 35px rgba(0,0,0,.38);
  font-family: Inter, system-ui, sans-serif; line-height: 1.5;
}
.analytics-consent-copy { min-width: 0; max-width: 590px; }
.analytics-consent-copy strong { display: block; color: #E9D9B5; font-size: 1rem; margin-bottom: 6px; }
.analytics-consent-copy p { margin: 0; font-size: .9rem; color: #FFFFFF; }
.analytics-consent-copy a { color: #E9D9B5; text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 10px; }
.analytics-consent-actions button {
  min-height: 44px; padding: 10px 13px; cursor: pointer;
  border: 2px solid #C6A15B; border-radius: 8px;
  background: transparent; color: #FFFFFF;
  font: 700 .86rem/1.25 Inter, system-ui, sans-serif;
}
.analytics-consent-actions button[data-analytics-choice="accepted"] { background: #C6A15B; color: #101A2C; }
.analytics-consent-actions button:hover { text-decoration: underline; }
.analytics-consent-actions button:focus-visible,
.analytics-preferences-link:focus-visible { outline: 3px solid #E9D9B5; outline-offset: 3px; }
.analytics-preferences-link {
  padding: 0; border: none; background: none; color: inherit;
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 760px) {
  .analytics-consent { align-items: stretch; flex-direction: column; gap: 18px; padding: 20px; }
  .analytics-consent-actions { width: 100%; }
  .analytics-consent-actions button { flex: 1 1 130px; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .analytics-consent { border: 3px solid currentColor; }
  .analytics-consent-actions button { border: 2px solid currentColor; }
}
@media print { .analytics-consent, .analytics-preferences-link { display: none !important; } }
