/* AI Builds article detail styles — Developer Studio stylesheet.
 * GENERATED from partials/ — edit partials, then run:
 *   npm run build:article-css  (from widgets/adobe-ai-recipe-library)
 *   OR node stylesheets/ai-builds-article/bin/build-article-css.mjs
 * Scopes to body.rl-recipe-article. Pair with scripts/ai-builds-article.
 * Target: Figma ExL AI Recipe Library Detail Desktop (2344:2211)
 * TEMP (2026-09-10): ship only tokens + Contribute CTA + Related recipes.
 * Dormant (on disk, not concatenated): _page, _sections, _try-it, _tags, _replies.
 */
/* === partials/_tokens.css === */
/* Article CSS custom properties (Adobe Spectrum-ish / Figma R3). */

body.rl-recipe-article {
  --rl-brand:        #1473e6;
  --rl-brand-dark:   #0d66d0;
  --rl-text:         #2c2c2c;
  --rl-text-muted:   #686868;
  --rl-border:       #e8e8e8;
  --rl-surface:      #ffffff;
  --rl-page-bg:      #f5f5f5;
  --rl-banner-bg:    #f8f8f8;
  --rl-cta-bg:       #f3f8fe;
  --rl-radius:       12px;
  --rl-radius-sm:    8px;
  --rl-radius-lg:    16px;
  --rl-font:         adobe-clean, "Adobe Clean", "Segoe UI", system-ui, sans-serif;
}

/* === partials/_contribute-cta.css === */
/*
 * Contribute CTA (injected) — Figma Post / Share a Build Banner `2344:2436`
 * Light blue card, dark copy, blue pill + how-to link (not solid brand banner).
 * Mobile Detail stacks actions (`2344:20426`).
 */
body.rl-recipe-article .rl-contribute-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  margin: 16px 0 20px;
  padding: 24px;
  background: var(--rl-cta-bg);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-lg);
  color: var(--rl-text);
  font-family: var(--rl-font);
  box-sizing: border-box;
}
body.rl-recipe-article .rl-contribute-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
body.rl-recipe-article .rl-contribute-cta__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--rl-text);
}
body.rl-recipe-article .rl-contribute-cta__body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--rl-text);
  max-width: 40rem;
}
body.rl-recipe-article .rl-contribute-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
body.rl-recipe-article .rl-contribute-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 18px 6px;
  min-height: 30px;
  background: var(--rl-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 19px;
  border-radius: 100px;
  text-decoration: none !important;
  border: none;
  box-sizing: border-box;
}
body.rl-recipe-article .rl-contribute-cta__btn:hover {
  background: var(--rl-brand-dark);
}
body.rl-recipe-article .rl-contribute-cta__btn:focus-visible {
  outline: 2px solid var(--rl-brand-dark);
  outline-offset: 2px;
}
body.rl-recipe-article .rl-contribute-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rl-brand) !important;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
}
body.rl-recipe-article .rl-contribute-cta__link:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
body.rl-recipe-article .rl-contribute-cta__link:focus-visible {
  outline: 2px solid var(--rl-brand);
  outline-offset: 2px;
  border-radius: 2px;
}
body.rl-recipe-article .rl-contribute-cta__chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  body.rl-recipe-article .rl-contribute-cta__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* === partials/_related.css === */
/* ── Related recipes sidebar ────────────────────────────────── */
body.rl-recipe-article .widget--related-topics {
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  padding: 20px;
  position: sticky;
  top: 16px;
}
body.rl-recipe-article .related-topics__widget-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rl-text-muted);
  margin: 0 0 14px;
}
body.rl-recipe-article .related-topics__topic {
  padding: 10px 0;
  border-bottom: 1px solid var(--rl-border);
}
body.rl-recipe-article .related-topics__topic:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
body.rl-recipe-article .related-topics__topic-title a {
  color: var(--rl-text) !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}
body.rl-recipe-article .related-topics__topic-title a:hover {
  color: var(--rl-brand) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.rl-recipe-article .related-topics__topic .text--meta {
  color: var(--rl-text-muted) !important;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  body.rl-recipe-article .col--main,
  body.rl-recipe-article .col--side {
    width: 100%;
  }
  body.rl-recipe-article .topic__header,
  body.rl-recipe-article .post__content,
  body.rl-recipe-article .post__user__info,
  body.rl-recipe-article .post__footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  body.rl-recipe-article .rl-info-banner {
    margin-left: 20px;
    margin-right: 20px;
  }
}
