/* Product-blog article layout (/l/<slug>, /j/<slug> articles). Loaded only by article pages, after
   style.css, so it never changes any other page. Black page with the article in a framed panel; inside, the structure of the top-ranked
   language-learning articles (Busuu, Rocket Languages, Coursera, checked 2026-11-12): one column, breadcrumbs, byline with an updated date, a key-takeaways box,
   plain numbered headings and a single coloured promo box mid-article. The site's dark header,
   final CTA banner and footer stay as they are; purple is the accent. */

.article-page {
  --a-ink: #1c1a2b;
  --a-text: #3b3950;
  --a-muted: #6c6a80;
  --a-line: #e6e3f2;
  --a-accent: #6b4fe8;
  --a-accent-soft: #efebff;
  background: #000;
  color: var(--a-text);
  padding: 150px 0 96px;
}
/* The framed reading panel: one column, a purple gradient border, a slightly lifted dark surface. */
.article {
  max-width: 860px; margin: 0 auto; padding: 56px 60px 52px;
  border-radius: 24px; border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(140deg, #907cff, rgba(144,124,255,0.45) 45%, #b350c9) border-box;
  /* A soft purple glow hugging the frame, plus the wider drop glow. */
  box-shadow: 0 0 0 1px rgba(144,124,255,0.35), 0 0 22px rgba(144,124,255,0.55), 0 0 60px rgba(179,80,201,0.28), 0 30px 80px rgba(122,100,255,0.22);
}

/* Breadcrumbs, title and byline */
.article-crumbs { font-size: 0.92rem; color: var(--a-muted); margin: 0 0 18px; }
.article-crumbs a { color: var(--a-accent); text-decoration: none; }
.article-crumbs a:hover { text-decoration: underline; }
.article-crumbs .sep { margin: 0 8px; }
.article h1 {
  color: var(--a-ink); text-transform: none; font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.15; margin: 0 0 14px;
}
.article .article-sub { font-size: 1.15rem; line-height: 1.6; color: var(--a-text); margin: 0 0 18px; }
.article .article-byline { font-size: 0.95rem; color: var(--a-muted); margin: 0 0 26px; }
.article-byline strong { color: var(--a-ink); font-weight: 600; }
.article-byline .sep { margin: 0 8px; }
.article-start { margin: 0 0 34px; }

/* Cover illustration */
.article-cover { margin: 0 0 34px; }
.article-figure { margin: 6px 0 24px; }
.article-cover img, .article-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* Running text */
.article p { color: var(--a-text); font-size: 1.12rem; line-height: 1.75; margin: 0 0 20px; }
.article .article-lead { font-size: 1.18rem; color: var(--a-ink); }
.article h2 {
  color: var(--a-ink); text-transform: none; font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.25; margin: 46px 0 14px;
}
.article h3 { color: var(--a-ink); font-size: 1.2rem; line-height: 1.4; margin: 28px 0 8px; }
.article strong { color: var(--a-ink); }
.article h2 .step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-inline-end: 12px;
  border-radius: 50%; background: var(--a-accent-soft); color: var(--a-accent);
  font-size: 1.05rem; font-weight: 800; vertical-align: 4px;
}

/* Key takeaways */
.short-answer {
  background: var(--a-accent-soft); border-left: 5px solid var(--a-accent);
  border-radius: 0 14px 14px 0; padding: 22px 26px; margin: 8px 0 12px;
}
.article .short-answer h2 {
  margin: 0 0 8px; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: #4f35c9;
}
.article .short-answer p { margin: 0; color: var(--a-ink); font-size: 1.1rem; }

/* Common mistakes */
.mistakes { list-style: none; margin: 0 0 20px; padding: 0; }
.mistakes li {
  position: relative; padding: 12px 0 12px 40px; margin: 0;
  color: var(--a-text); font-size: 1.08rem; line-height: 1.65; border-bottom: 1px solid var(--a-line);
}
.mistakes li:last-child { border-bottom: 0; }
.mistakes li::before {
  content: '✕'; position: absolute; left: 0; top: 13px;
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #ffe9e9; color: #d64545; font-size: 0.8rem; font-weight: 700;
}

/* The one coloured promo box */
.article-help {
  margin: 48px 0; border-radius: 18px; padding: 34px 34px 30px; text-align: center;
  background: linear-gradient(135deg, #5536d6, #7041d9 55%, #8f3bb5);
  box-shadow: 0 20px 44px rgba(107,79,232,0.28);
}
.article .article-help h2 { color: #fff; margin: 0 0 12px; }
.article .article-help p { color: #ffffff; font-size: 1.06rem; margin: 0 auto 12px; max-width: 600px; }
.article-help .btn-row { justify-content: center; margin-top: 20px; }
.article-help .btn-pill { background: #fff; color: #2a1d6e; }

/* FAQ */
.faq-cards { border-top: 1px solid var(--a-line); }
.faq-card { padding: 4px 0 8px; border-bottom: 1px solid var(--a-line); }
.article .faq-card h3 { margin: 20px 0 6px; }
.article .faq-card p { margin: 0 0 16px; }

/* Back (top) and Next article (bottom), reusing the /ai-engineering .post-back / .post-next buttons. */
.article .article-nav-top { max-width: none; padding: 0; margin: 0 0 26px; }
.article .article-nav-bottom {
  max-width: none; margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--a-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.article .article-nav-bottom .post-next-title { flex-basis: 100%; text-align: right; margin: 0; }
.post-next.is-disabled { opacity: 0.7; cursor: default; pointer-events: none; }

@media (max-width: 760px) {
  .article-page { padding: 112px 0 64px; }
  .article { padding: 32px 20px 30px; border-radius: 18px; }
  .article-help { padding: 26px 20px; }
  .short-answer { padding: 18px 18px; }
}

/* Buttons on the white panel: the site's default pill is white and its outline button is white-on-dark,
   both invisible here, so the article uses the accent colour (the promo box keeps its white pill). */
.article .btn-pill { background: var(--a-accent); color: #fff; }
.article .btn-pill:hover { background: #5a3fd6; }
.article .btn-outline { color: var(--a-ink); border-color: rgba(28,26,43,0.35); }
.article .btn-outline:hover { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.article .article-help .btn-pill { background: #fff; color: #2a1d6e; }
.article .article-help .btn-pill:hover { background: #f1edff; }
