/* Cross-page audit fixes: keep hash destinations below the fixed navigation
   and make standalone action links usable on touch screens. */
.entry[id],
.article-body h2,
.article-body h3,
.library-pillar,
.template-category {
  scroll-margin-top: 104px;
}

.about-link,
.field-note-route a,
.entry-bridge a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.analytics-consent {
  position: fixed;
  z-index: 100;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 720px;
  margin-inline: auto;
  padding: 14px 16px;
  color: var(--ink, #f4f7fb);
  border: 1px solid rgba(94, 230, 255, .32);
  border-radius: 14px;
  background: rgba(5, 8, 14, .96);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
}

.analytics-consent strong {
  display: block;
  font-size: .85rem;
}

.analytics-consent p {
  max-width: 52ch;
  margin-top: 4px;
  color: var(--ink-dim, #b8c3d2);
  font-size: .74rem;
  line-height: 1.45;
}

.analytics-consent a {
  color: var(--cyan, #5ee6ff);
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.analytics-consent button {
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink, #f4f7fb);
  border: 1px solid rgba(137, 151, 177, .6);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font: .72rem var(--font-mono, monospace);
  cursor: pointer;
}

.analytics-consent button[data-analytics-choice="allow"] {
  color: #041015;
  border-color: var(--cyan, #5ee6ff);
  background: var(--cyan, #5ee6ff);
}

@media (max-width: 620px) {
  .analytics-consent {
    inset-inline: 10px;
    bottom: 10px;
    display: block;
    padding: 14px;
  }

  .analytics-consent-actions {
    margin-top: 12px;
  }

  .analytics-consent button {
    flex: 1;
  }
}
