/* TG Vault v176: accessibility and low-motion baseline for blog articles. */
.tgv-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  max-width: calc(100vw - 20px);
  padding: 12px 16px;
  border: 2px solid #ffe5a6;
  border-radius: 10px;
  background: #24030b;
  color: #fff8e9;
  font: 800 15px/1.25 Nunito, system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.tgv-skip-link:focus {
  transform: translateY(0);
}

#main-content {
  scroll-margin-top: 110px;
}

body.mobile-nav-open,
body.tgv-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Shared announcement baseline for pages whose legacy base stylesheet starts mid-rule. */
body .ann-banner,
body .tg-lux-ann {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  overflow: hidden !important;
}

body .ann-track {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  width: max-content !important;
  white-space: nowrap !important;
  animation: tgvQualityAnnScroll 38s linear infinite;
  will-change: transform;
}

body .ann-item {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 0 36px !important;
  color: rgba(244, 235, 221, .84) !important;
  font: 800 10px/1.1 "DM Mono", monospace !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body .ann-dot {
  display: block !important;
  flex: 0 0 5px !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
}

body .tgv-header-v72 {
  top: 36px !important;
}

@keyframes tgvQualityAnnScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 620px) {
  body .ann-banner,
  body .tg-lux-ann {
    height: 30px !important;
    min-height: 30px !important;
  }

  body .ann-item {
    min-height: 30px !important;
    padding: 0 24px !important;
    font-size: 9px !important;
    letter-spacing: .9px !important;
  }

  body .tgv-header-v72 {
    top: 30px !important;
  }
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ffe5a6;
  outline-offset: 3px;
}

.article .blog-table-wrap:focus-visible,
.article .cm-table-wrap:focus-visible {
  outline: 3px solid #751832;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .tgv-ann span,
  .ann-track {
    animation: none !important;
    transform: none !important;
  }
}
