/* Guide article layout — extends guide-page canvas shell + brand tokens */

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  color: var(--text-strong);
  font-family: var(--font);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-aaa-soft);
  color: var(--text-strong);
  font-weight: 600;
  border-radius: 0.85rem;
  transform: translateY(-200%);
  transition: transform 200ms ease, box-shadow 200ms ease;
  z-index: 1000;
}

.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 0 0 3px var(--accent-aaa);
  outline: none;
}

.guide-page {
  --accent: var(--accent-aaa);
  color: var(--text-strong);
  background: #000;
}

/* Canvas background — matches guide.css / about.css */
.about-canvas-shell {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #000 0%, #101820 100%);
}

.about-canvas__gradient,
.about-canvas__fallback {
  position: absolute;
  inset: 0;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: lighten;
  opacity: 0.9;
}

.about-overlay__pane {
  position: absolute;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(0, 184, 230, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 32px 80px -52px rgba(0, 184, 230, 0.6);
  opacity: 0.6;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-overlay__pane--primary {
  top: 12vh;
  right: clamp(4vw, 12vw, 18vw);
  width: clamp(14rem, 26vw, 20rem);
  height: clamp(8rem, 18vw, 14rem);
}

.about-overlay__pane--secondary {
  bottom: 10vh;
  left: clamp(6vw, 18vw, 24vw);
  width: clamp(10rem, 20vw, 15rem);
  height: clamp(6rem, 14vw, 10rem);
  opacity: 0.45;
}

.about-overlay__pane-glyph {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(circle at 82% 78%, rgba(0, 200, 255, 0.18), transparent 65%),
    repeating-linear-gradient(90deg, rgba(0, 200, 255, 0.12) 0 2px, transparent 2px 14px);
  opacity: 0.55;
  border-radius: inherit;
}

.about-overlay__scanline {
  position: absolute;
  top: 18vh;
  left: 12vw;
  width: clamp(10rem, 32vw, 26rem);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 40%, rgba(0, 200, 255, 0.22) 50%, transparent 100%);
  opacity: 0.45;
  animation: article-scanline 12s ease-in-out infinite;
}

.about-overlay__hud {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.6rem;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(0, 200, 255, 0.24);
  border-radius: 1.2rem;
  box-shadow: 0 24px 60px -40px rgba(0, 184, 230, 0.65);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-overlay__hud--alpha {
  top: clamp(16vh, 28vh, 24vh);
  right: clamp(6vw, 16vw, 18vw);
}

.about-overlay__hud--beta {
  bottom: clamp(14vh, 22vh, 18vh);
  right: clamp(12vw, 20vw, 24vw);
}

.about-overlay__hud-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.about-overlay__hud-value {
  font-size: 0.78rem;
  color: rgba(0, 200, 255, 0.72);
  text-transform: none;
  letter-spacing: 0.02em;
}

@keyframes article-scanline {
  0% { opacity: 0; transform: translateX(-12%); }
  20% { opacity: 0.4; }
  50% { opacity: 0.2; transform: translateX(12%); }
  80% { opacity: 0.35; transform: translateX(-8%); }
  100% { opacity: 0; transform: translateX(0); }
}

/* Article main shell */
.article-main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 5;
}

.article-container {
  width: min(780px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 2rem;
  background: rgba(4, 12, 18, 0.86);
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 80px -50px rgba(0, 200, 255, 0.38);
  border: 1px solid rgba(0, 200, 255, 0.25);
}

/* Article header */
.article-header {
  display: grid;
  gap: 0.65rem;
}

.article-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.14);
  border: 1px solid rgba(0, 200, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-aaa);
}

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  color: var(--text-strong);
  text-shadow: none;
  line-height: 1.25;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.article-meta a {
  color: var(--accent-aaa);
  text-decoration: none;
}

.article-meta a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

/* Prose body */
.article-body {
  display: grid;
  gap: 1rem;
}

.article-body h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0.75rem 0 0;
  color: var(--text-strong);
  line-height: 1.3;
}

.article-body h3 {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin: 0.5rem 0 0;
  color: var(--text-strong);
  line-height: 1.35;
}

.article-body p {
  color: var(--text-mid);
  margin: 0;
  max-width: none;
  text-align: left;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  color: var(--text-mid);
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.7;
  display: grid;
  gap: 0.5rem;
}

.article-body li {
  text-align: left;
}

.article-body strong {
  color: var(--text-strong);
  font-weight: 700;
}

/* Callout box */
.article-callout {
  padding: 1.15rem 1.35rem;
  border-radius: 1.1rem;
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.2);
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-callout strong {
  color: var(--accent-aaa);
}

/* Red-flag callout */
.article-flag {
  padding: 1.15rem 1.35rem;
  border-radius: 1.1rem;
  background: rgba(255, 66, 66, 0.06);
  border: 1px solid rgba(255, 66, 66, 0.22);
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-flag strong {
  color: #ff6b6b;
}

/* Example quote block */
.article-example {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 200, 255, 0.15);
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.article-example code {
  color: var(--accent-aaa);
  font-size: 0.9em;
}

/* Script/template block */
.article-script {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid var(--accent-aaa);
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
}

/* Article CTA section */
.article-cta {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  text-align: center;
  margin-top: 0.5rem;
}

.article-cta p {
  color: var(--text-mid);
  margin: 0;
  text-align: center;
  max-width: none;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent-aaa);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 28px -18px rgba(0, 200, 255, 0.65);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-link:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -18px rgba(0, 200, 255, 0.55);
  outline: none;
}

.cta-link--ghost {
  background: transparent;
  color: var(--accent-aaa);
  border: 1px solid rgba(0, 200, 255, 0.45);
  box-shadow: none;
}

.cta-link--ghost:is(:hover, :focus-visible) {
  box-shadow: 0 18px 30px -20px rgba(0, 200, 255, 0.45);
}

/* Footer */
.site-footer {
  position: relative;
  margin: 1.5rem auto 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: var(--text-mid);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 6;
}

.site-footer a {
  color: var(--accent-aaa);
  text-decoration: none;
}

.site-footer a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 700px) {
  .article-main {
    padding: clamp(1.25rem, 5vw, 2rem);
  }

  .article-container {
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .article-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
