/* =========================================================================
   note-*.html — additive stylesheet for full article pages.
   Loaded after styles.css + blog-styles.css. Reuses the same tokens and
   the .cta-card component verbatim for the inline CTA.
   ========================================================================= */

/* ---------- WIDTH SYSTEM ----------
   Two widths, not one: the outer container is wide enough that the page
   doesn't read as a thin stick floating in a sea of empty gutter on a
   laptop screen. The actual reading text stays narrower (720px) for
   comfortable line length — long lines are harder to read, not easier.
   Only the hero image and the inline CTA card use the full container
   width, so the page has some visual rhythm (narrow / wide / narrow)
   instead of one static column the whole way down. */
.article-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 140px 5% 60px;
}

.article-back-link,
.article-header,
.article-body,
.article-author-box,
.article-related {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article-back-link {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  transition: 0.2s ease;
}

.article-back-link:hover {
  color: #fff;
}

/* !important here is required to beat styles.css's bare, unscoped rule
   `h1 { font-size: clamp(3rem, 10vw, 7.5rem) !important; }`, written for
   the homepage's animated hero title but applying to every h1 site-wide. */
.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 14px 0 22px;
}

.article-meta {
  margin-bottom: 40px;
}

.article-hero-image {
  max-width: 960px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 44px 0 18px;
  letter-spacing: -0.3px;
}

.article-body h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 30px 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px 22px;
}

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

.article-body strong {
  color: #fff;
}

.article-body em {
  color: #fff;
  font-style: italic;
}

/* ---------- INLINE CTA ----------
   .cta-card (from styles.css) is built as a wide flex ROW for its normal
   1300px-max-width home on the marketing pages. Nested inside an article's
   ~960px container, that row layout doesn't have enough space: the
   content-left block and the button fight over width, and — since
   .cta-btn has no white-space:nowrap — the button's text wraps onto
   multiple lines while border-radius:50px turns what should be a pill
   into a near-circle. Forcing a stacked layout at every width (not just
   on mobile) removes the cramped row entirely, so it can't happen. */
.article-inline-cta {
  max-width: 960px;
  width: 100%;
  margin: 50px auto;
  padding: 45px 40px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.article-inline-cta .cta-buttons-right {
  width: 100%;
}

.article-inline-cta .cta-btn {
  display: inline-block;
  white-space: nowrap;
}

.article-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 60px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.author-avatar-mark--lg {
  width: 48px;
  height: 48px;
  padding: 8px;
}

.article-author-box h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.article-author-box p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.article-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.article-related h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.article-related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-related-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.article-related-links a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .article-container {
    padding: 120px 6% 50px;
  }
  .article-inline-cta {
    padding: 32px 26px;
  }
  .article-inline-cta .cta-btn {
    width: 100%;
    text-align: center;
  }
}
