/* Shared article shell for /blog and /learn: tokens, breadcrumb, header, meta, TOC rail, prose typography.
   One source for both templates so they cannot drift apart again. */
/* Same editorial system as /reviews: Space Grotesk headings, IBM Plex Sans
   prose, IBM Plex Mono captions, ink #16181c on #f7f8fa, indigo accent. */
.article-page {
  --ink: #16181c; --head: #101317; --body: #40444a; --muted: #55595f; --faint: #8a8e96;
  --line: #e6e8ee; --soft: #f7f8fa; --page: #ffffff;
  --accent: #4f46e5; --accent-dark: #3a30c9; --accent-soft: #eeeefe; --accent-line: #cdccfa;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
.navbar-logo-left-2 { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; }
.article-page { background: var(--page); color: var(--ink); min-height: 100vh; padding-top: 80px; font-family: 'IBM Plex Sans', Inter, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

/* Breadcrumb */
.breadcrumb { padding: 40px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--faint); }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: #ccc; }
.breadcrumb__current { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }


/* Header */
.article-header { padding: 48px 0 24px; }
.article-header h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; color: var(--head); line-height: 1.06; letter-spacing: -0.035em; margin: 0; font-family: var(--display); text-wrap: balance; }

.article-end-disclosure { font-size: 13.5px; line-height: 1.6; color: #6b6b6b; margin: 40px 0 0; padding-top: 18px; border-top: 1px solid #eee; }
.article-end-disclosure a { color: inherit; text-decoration: underline; }
/* Meta */
.article-meta { margin: 0 0 48px; padding: 24px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.article-author { display: flex; align-items: center; gap: 12px; }
.article-author img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.article-author__info { display: flex; flex-direction: column; gap: 2px; }
.article-author__name { font-size: 14px; color: #1a1a1a; }
.article-author__role { font-size: 13px; color: #6b6b6b; }
.article-date { font-size: 14px; color: #6b6b6b; }
.article-updated { color: #8a8a8a; }
.article-reading-time { font-size: 13px; color: #8a8a8a; }
.article-meta__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Sidebar TOC layout */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* No headings, no TOC rail: the text column is centred instead of sitting in the 260px rail */
.article-layout:not(:has(.article-toc)) { grid-template-columns: 1fr; }
.article-layout:not(:has(.article-toc)) .article-content { margin: 0 auto; width: 100%; }
.article-toc { position: relative; }
.article-toc__inner { position: sticky; top: 100px; padding: 20px 0; }
.article-toc__title { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.article-toc__links { display: flex; flex-direction: column; gap: 2px; }
.article-toc__link { display: block; padding: 6px 0; border: none; transition: color 0.15s ease; text-decoration: none; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.article-toc__link:hover { color: var(--accent); background: none; }
.article-toc__link.active { color: var(--accent); font-weight: 500; }

/* Content area */
/* min-width:0 is required: as a grid item its default min-width:auto let the
   1fr track grow to the content min-content (~476px) instead of the available
   width, pushing the whole article past the viewport on mobile (title/text cut
   off). With min-width:0 wide children (tables) scroll inside instead. */
.article-content { max-width: 800px; padding: 0 0 60px; min-width: 0; }
.article-content article { font-size: 17px; line-height: 1.75; color: var(--body); }
.article-content article h1 { display: none; }

/* H2 with accent bar */
.article-content article h2 {
  font-size: 32px; font-weight: 600; color: var(--head); font-family: var(--display);
  margin: 56px 0 20px; letter-spacing: -0.02em;
  padding-top: 32px; border-top: 1px solid #eee;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.article-content article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 32px; }

/* H3 */
.article-content article h3 { font-family: var(--display);
  font-size: 20px; font-weight: 700; color: #1a1a1a;
  margin: 36px 0 14px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* H4 */
.article-content article h4 { font-size: 18px; font-weight: 600; color: #1a1a1a; margin: 32px 0 12px; }

/* Paragraphs */
.article-content article p { margin-bottom: 1.5em; }

/* Bold text */
.article-content article strong { color: #0a0a0a; font-weight: 600; }

/* Lists */
.article-content article ul, .article-content article ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.article-content article li { margin-bottom: 0.5em; }
.article-content article ul li { list-style: disc; }
.article-content article ol li { list-style: decimal; }
.article-content article li strong { color: #0a0a0a; }

/* Blockquotes, styled as prompt/example boxes */
.article-content article blockquote {
  margin: 20px 0; padding: 20px 24px;
  border-left: 4px solid #6452ff; background: #f8f7ff;
  font-style: italic; color: #3a3a5c;
  border-radius: 0 10px 10px 0;
  font-size: 15.5px; line-height: 1.7;
}
.article-content article blockquote p { margin-bottom: 0; }

/* Links */
.article-content article a { color: #6452ff; text-decoration: none; font-weight: 500; border-bottom: 1px solid #d4d0ff; transition: border-color 0.15s; }
.article-content article a:hover { border-bottom-color: #6452ff; }

/* Images */
.article-content article img { max-width: 100%; height: auto; border-radius: 10px; margin: 28px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
/* Square vendor logo (512x512), size/center it instead of full-width like the wide screenshots */
.article-content article img[src$="testmu-ai.png"] { max-width: 200px; display: block; margin: 28px auto; box-shadow: none; border-radius: 0; }

/* Inline code */
.article-content article code {
  background: #f3f2f8; padding: 2px 7px; border-radius: 5px;
  font-family: 'SF Mono', 'Fira Code', Monaco, monospace; font-size: 0.88em;
  color: #6452ff; font-weight: 500;
}

/* Code blocks */
.article-content article pre {
  background: #1e1e2e; color: #cdd6f4;
  padding: 24px; border-radius: 12px;
  overflow-x: auto; margin: 24px 0;
  border: 1px solid #313244;
  font-size: 14px; line-height: 1.65;
}
.article-content article pre code { background: none; padding: 0; color: inherit; font-weight: 400; }

/* Tables, proper styled with borders and backgrounds */
.article-content article table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 28px 0; font-size: 15px;
  border: 1px solid #e5e5ea; border-radius: 12px;
  overflow: hidden;
}
.article-content article th {
  background: #f4f3f9; text-align: left;
  padding: 14px 18px; font-weight: 700; color: #1a1a1a;
  border-bottom: 2px solid #ddd8f0; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.article-content article td {
  padding: 13px 18px; color: #3a3a3a;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.article-content article tr:last-child td { border-bottom: none; }
.article-content article tr:hover td { background: #f9f8fd; }
.article-content article td:first-child { font-weight: 600; color: #1a1a1a; }


/* HR */
.article-content article hr { border: none; border-top: 1px solid #eee; margin: 48px 0; }

/* Cover image (blog), same column as the text */
.article-image { margin: 0 0 32px; }
.article-image img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Responsive: the TOC rail drops out and the column takes the full width */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; max-width: 800px; }
  .article-toc { display: none; }
  .article-content { padding: 0 24px 60px; }
}
@media (max-width: 640px) {
  .article-header { padding: 28px 0 8px; }
  .article-header h1 { font-size: 30px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .article-layout { padding: 0; }
  .article-content { padding: 0 16px 40px; }
  .article-content article { font-size: 16px; }
  .article-content article h2 { font-size: 24px; margin: 40px 0 16px; padding-top: 24px; }
  .article-content article h3 { font-size: 18px; }
  .article-content article table { font-size: 13px; }
  .article-content article th, .article-content article td { padding: 10px 12px; }
  .article-content article pre { padding: 16px; font-size: 13px; }
}

/* Bottom of the article: newsletter CTA and related cards, shared by /blog and /learn */
.article-related { max-width: 800px; margin: 0 auto 48px; padding: 0 24px; }
.article-related__title { font-size: 20px; font-weight: 700; color: #0a0a0a; margin: 0 0 20px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.article-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* The Offer Network's "Sponsored" tile, once drawn, takes the last related card's place, in the
   related cards' own look: no image, same corners and border (tokens read by the embed). */
.article-related__grid:has(> [data-dupple-filled]) > a:last-of-type { display: none; }
.article-related__grid [data-dupple-offer] { --offer-radius: 12px; --offer-border: #e5e5e5; --offer-stack-img: none; --offer-cta-radius: 12px; }
.article-related__card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; display: flex; flex-direction: column; gap: 10px; }
.article-related__card:hover { border-color: #6452ff; box-shadow: 0 2px 8px rgba(100, 82, 255, 0.08); }
.article-related__badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 3px; color: #fff; align-self: flex-start; }
.article-related__card-title { font-size: 15px; font-weight: 600; color: #0a0a0a; line-height: 1.4; margin: 0; }
.article-related__card-excerpt { font-size: 13px; color: #6b6b6b; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-cta { max-width: 800px; margin: 0 auto 60px; padding: 0 24px; }
.article-cta__box { background: #fbfaff; border-radius: 18px; padding: 44px 40px; text-align: center; color: #191923; border: 1px solid #e7e3f0; box-shadow: none; }
.article-cta__brand { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.article-cta__brand img { width: 40px; height: 40px; border-radius: 10px; }
.article-cta__brand span { font-family: Mulish, sans-serif; font-size: 18px; font-weight: 800; color: #111; letter-spacing: 1.5px; }
.article-cta__title { font-size: 30px; line-height: 1.3; font-weight: 600; margin: 0 0 14px; color: #111; font-family: Poppins, sans-serif; letter-spacing: -1px; text-wrap: balance; }
.article-cta__text { font-size: 16px; line-height: 1.7; color: #626270; margin: 0 0 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.article-cta__form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; margin: 0 auto; }
.article-cta__input { flex: 1; min-width: 0; min-height: 52px; padding: 14px 18px; border: 1px solid #d8d8e3; border-radius: 10px; font-size: 16px; background: #fff; color: #20202b; font-family: Inter, sans-serif; }
.article-cta__input::placeholder { color: #83838f; }
.article-cta__input:focus { outline: 3px solid #eeebff; outline-offset: 1px; border-color: #6452ff; }
.article-cta__submit { min-height: 52px; padding: 14px 28px; background: #6452ff; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; white-space: nowrap; font-family: inherit; }
.article-cta__submit:hover { transform: none; background: #7b6bff; }
.article-cta__submit:focus-visible { outline: 3px solid #a99dff; outline-offset: 3px; }
.article-cta__note { margin: 14px 0 0; font: 12px/1.6 Inter, sans-serif; color: #71717e; }
.article-cta__social { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13px; color: #6b6b78; }
.article-cta__success { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; margin-top: 24px; background: #f0fdf4; border-radius: 8px; border: 1px solid #bbf7d0; }
.article-cta__success-icon { width: 24px; height: 24px; background: #22c55e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; }
.article-cta__success span { color: #166534; font-size: 14px; font-weight: 500; }
.article-cta__social img { height: 36px; width: auto; object-fit: contain; border: none; outline: none; box-shadow: none; }
.article-related__meta { font-size: 12.5px; color: #8a8a8a; }
@media (max-width: 640px) {
  .article-cta__box { padding: 36px 24px; }
  .article-cta__title { font-size: 26px; }
  .article-cta__text { font-size: 15px; }
  .article-cta__form { flex-direction: column; }
  .article-related__grid { grid-template-columns: 1fr; }
}
