/* ------------------------------------------------------------------
   Learning sub-pages — editorial article, cinematic gradient hero
   Extends legal.css (navbar, footer, reset, fonts, scrollbar)
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   Article hero — gradient glow, cut by the body section
   ------------------------------------------------------------------ */

.article-hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 130px 60px 100px;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  bottom: -450px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 850px;
  background: radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.04) 55%, transparent 75%);
  filter: blur(150px);
  animation: fadeIn 2s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.article-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 40px;
  transition: color 0.2s ease;
}

.article-back:hover {
  color: rgba(255, 255, 255, 0.8);
}

.article-back svg {
  width: 14px;
  height: 14px;
}

.article-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.article-title {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.article-subtitle {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  max-width: 620px;
}

.article-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-top: 36px;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

/* ------------------------------------------------------------------
   Article body — clean reading column, cuts the hero gradient
   ------------------------------------------------------------------ */

.article-body {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 60px 80px;
  background: #000000;
  z-index: 2;
}

.article-body h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 56px;
  margin-bottom: 16px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-body p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.article-body a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.article-body a:hover {
  color: #FFFFFF;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.article-body code {
  font-family: 'Manrope', monospace;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.article-body pre {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: 'Manrope', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Callout */
.article-callout {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}

.article-callout p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Article footer — "Next" link
   ------------------------------------------------------------------ */

.article-next {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 60px 80px;
  z-index: 2;
}

.article-next-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.article-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.article-next-link:hover {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.article-next-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.article-next-link:hover .article-next-title {
  color: #FFFFFF;
}

.article-next-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, transform 0.25s ease;
}

.article-next-link:hover .article-next-arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .article-hero {
    padding: 100px 24px 64px;
  }

  .article-hero-glow {
    width: 600px;
    height: 600px;
    top: -200px;
  }

  .article-body {
    padding: 0 24px 56px;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-body pre {
    padding: 16px;
    font-size: 13px;
  }

  .article-next {
    padding: 0 24px 56px;
  }

  .article-meta {
    gap: 16px;
  }
}