body.ai-page main {
  width: calc(100% - 2em);
  max-width: 100%;
  margin: 0;
}
body.ai-page main.ai-content {
  --article-content-width: 780px;
  --article-padding-inline: 0.625rem;
  padding-top: calc(56px + 2em);
}
.hero-shell {
  width: 100%;
  margin: 0 auto 1rem;
  position: relative;
  box-sizing: border-box;
}
body.ai-page .ai-response-wrap .article-tags {
  margin: -0.25rem 0 0.6rem;
  gap: 0.25rem 0.8rem;
}
body.ai-page .ai-content .ai-response-wrap .article-tags a {
  --tag-color: var(--neon-accent, #aadcf4);
  position: relative;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tag-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: none;
  animation: none;
  transition:
    color 160ms ease,
    text-shadow 160ms ease;
}
body.ai-page .ai-content .ai-response-wrap .article-tags a::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tag-color) 20%,
    #fff 50%,
    var(--tag-color) 80%,
    transparent
  );
  box-shadow: 0 0 4px var(--tag-color);
  pointer-events: none;
  animation: article-tag-scan 3.6s linear infinite;
}
body.ai-page .ai-content .ai-response-wrap .article-tags a:nth-child(3n + 2)::after {
  animation-delay: -1.2s;
}
body.ai-page .ai-content .ai-response-wrap .article-tags a:nth-child(3n)::after {
  animation-delay: -2.4s;
}
@keyframes article-tag-scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  65% {
    transform: translateY(1.45rem);
    opacity: 0.85;
  }
  72%,
  100% {
    transform: translateY(1.45rem);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ai-page .ai-content .ai-response-wrap .article-tags a::after {
    animation: none;
    display: none;
  }
}
body.ai-page .ai-content .ai-response-wrap .article-tags a:visited {
  color: var(--tag-color);
}
body.ai-page .ai-content .ai-response-wrap .article-tags a::before {
  content: '#';
  opacity: 0.85;
}
body.ai-page .ai-content .ai-response-wrap .article-tags a:hover,
body.ai-page .ai-content .ai-response-wrap .article-tags a:focus-visible {
  color: color-mix(in srgb, var(--tag-color) 65%, white);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 9px color-mix(in srgb, var(--tag-color) 35%, transparent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  animation: none;
  opacity: 1;
}
.hero-image {
  width: 100%;
  margin: 0;
  position: relative;
  box-sizing: border-box;
  border-radius: 0;
  overflow: hidden;
}
.hero-pane {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(156, 192, 218, 0.36);
  box-shadow:
    0 0 0 1px rgba(186, 222, 246, 0.14),
    0 24px 48px rgba(8, 18, 30, 0.68),
    0 0 34px rgba(8, 18, 30, 0.64);
}
.hero-stack {
  position: relative;
  aspect-ratio: 3 / 1;
  background: #0a1218;
}
.hero-base-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-base-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 260ms ease;
}
.hero-canvas-wrap.ready {
  opacity: 1;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-frame {
  position: absolute;
  top: 0.65rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.26rem 0.62rem;
  border: 1px solid rgba(164, 206, 232, 0.44);
  background: rgba(8, 18, 30, 0.8);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(208, 236, 254, 0.9);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(176, 216, 240, 0.14),
    0 0 14px rgba(20, 54, 84, 0.4);
}
.hero-frame-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 64, 82, 0.98);
  box-shadow: 0 0 10px rgba(255, 72, 96, 0.72);
  animation: hero-frame-alert 1.1s ease-in-out infinite;
}
.hero-threat-bar {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.24rem 0.5rem;
  box-sizing: border-box;
  border-top: 1px solid rgba(164, 206, 232, 0.24);
  background: linear-gradient(90deg, rgba(10, 22, 38, 0.7), rgba(8, 16, 28, 0.76));
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(188, 226, 248, 0.82);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}
@keyframes hero-frame-alert {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}
@media (max-width: 720px) {
  .hero-stack {
    aspect-ratio: 2 / 1;
  }
  .hero-frame {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .hero-threat-bar {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }
}
body.ai-page .prose {
  width: 720px;
  max-width: calc(100% - 2em);
  margin: auto;
  padding: 1em;
  color: rgb(var(--text));
}
/* Reclaim space inside the existing 802px reading panel rather than shrinking it. */
body.ai-page .ai-content .ai-article > .prose {
  width: var(--article-content-width);
  padding: 0.75rem var(--article-padding-inline) 0.55rem;
}
body.ai-page .ai-content > .ai-related {
  box-sizing: border-box;
  width: calc(var(--article-content-width) + 2 * var(--article-padding-inline) + 2px);
  max-width: 100%;
}
@media (min-width: 721px) {
  body.ai-page .ai-content .ai-article > .prose {
    max-width: calc(100% - 1.25rem - 2px);
  }
}
@media (max-width: 720px) {
  body.ai-page .ai-content > .ai-related {
    width: var(--article-content-width);
    max-width: calc(100% - 1rem - 2px);
  }
  body.ai-page .ai-content .ai-article > .prose {
    max-width: calc(100% - 1rem - 2px);
    padding: 0.75rem 0.5rem 0.5rem;
  }
}
.rq-tv[data-placement='article'] {
  position: fixed;
  --content-w: 720px;
  --gutter: max(0px, (100vw - var(--content-w)) / 2);
  left: max(1rem, calc(var(--gutter) * 0.18));
  top: 25vh;
}
.rq-tv[data-placement='article']:not(.rq-tv-collapsed) {
  width: clamp(112px, calc(var(--gutter) * 0.42), 260px);
}
@media (max-width: 1300px) {
  .rq-tv[data-placement='article'] {
    display: none;
  }
}
body.ai-page .title {
  margin-bottom: 0.85rem;
  padding: 0;
  text-align: center;
  line-height: 1;
}
body.ai-page .title h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.ai-subtitle-text {
  margin: -0.15rem 0 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(210, 240, 255, 0.86);
  text-wrap: balance;
}
.ai-title-flow {
  position: relative;
  height: 3px;
  margin: 0.75rem 0 0.1rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(96, 176, 255, 0.22),
    rgba(132, 214, 255, 0.3),
    rgba(96, 176, 255, 0.22)
  );
  box-shadow:
    0 0 0 1px rgba(148, 216, 244, 0.08),
    0 0 14px rgba(124, 206, 246, 0.24);
}
.ai-title-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(162, 224, 250, 0.18) 0 9px,
    rgba(162, 224, 250, 0) 9px 16px
  );
}
.ai-title-flow::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(
    90deg,
    rgba(132, 214, 255, 0),
    rgba(164, 228, 255, 0.88),
    rgba(132, 214, 255, 0)
  );
  transform: translateX(-100%);
  will-change: transform;
  animation: ai-title-flow-run 3.8s linear infinite;
}
@keyframes ai-title-flow-run {
  to {
    transform: translateX(285%);
  }
}
.ai-stage-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 56;
  padding: 0.5rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 246, 255, 0.98);
  background: rgba(6, 16, 28, 0.94);
  border: 1px solid rgba(132, 214, 255, 0.44);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(132, 214, 255, 0.16),
    0 0 24px rgba(124, 206, 246, 0.32);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.ai-stage-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 1360px) {
  .ai-stage-toast {
    left: calc(var(--article-right, 100vw) + 12px);
    right: auto;
    width: max-content;
    max-width: calc(100vw - var(--article-right, 100vw) - 28px);
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
}
body.ai-page .date {
  margin-bottom: 0.5em;
  color: rgb(var(--text-muted));
}
body.ai-page .last-updated-on {
  font-style: italic;
}

/* Native top-layer image preview; limited to article-body images. */
.image-preview-trigger {
  cursor: zoom-in;
}
.image-preview-trigger:focus-visible {
  outline: 2px solid #9bd9f5;
  outline-offset: 4px;
}
.article-image-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 24px 24px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #d0e9f5;
  overflow: auto;
}
.article-image-preview[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.article-image-preview::backdrop {
  background: rgba(3, 8, 15, 0.94);
}
.article-image-preview > img {
  display: block;
  flex-shrink: 1;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.article-image-preview > p {
  margin: 0;
  max-width: 800px;
  max-height: 3em;
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.article-image-preview .image-preview-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #557486;
  border-radius: 6px;
  background: #0c1823;
  color: #d0e9f5;
  font-size: 28px;
  cursor: pointer;
}
.image-preview-close:focus-visible {
  outline: 2px solid #9bd9f5;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .article-image-preview {
    padding-inline: 12px;
  }
}
