/* Shared blog article design; the selected Guide layout is the default. */
.blog-reading-layout {
  --ink: #182840;
  --muted: #526379;
  --blue: #216cce;
  --pale: #eef5ff;
  --line: #dce5ef;
  color: var(--ink);
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  padding: 16px 0 88px;
}
.blog-reading-layout *, .blog-reading-layout *::before, .blog-reading-layout *::after { box-sizing: border-box; }
.blog-reading-layout a { text-decoration: none; }
.blog-reading-layout a:hover { text-decoration: underline; }
.blog-reading-layout :is(a, button, summary):focus-visible { outline: 3px solid #216cce; outline-offset: 5px; }
.blog-reading-layout .article-skip { position: fixed; top: -100px; left: 20px; z-index: 2000; background: white; padding: 12px 18px; }
.blog-reading-layout .article-skip:focus { top: 120px; }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; pointer-events: none; }
.reading-progress div { height: 100%; width: 0; background: #2f80ed; }
.hero-inner { max-width: 1160px; margin: auto; padding: 38px 32px 48px; }
.article-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; margin-bottom: 36px; }
.article-breadcrumb a, .article-breadcrumb span { color: var(--muted); }
.article-category { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.category-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero-read-time { margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--line); font-weight: 400; color: var(--muted); }
.blog-reading-layout h1 { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.09; font-weight: 650; letter-spacing: -1.8px; color: var(--ink); margin: 0 0 24px; }
.article-deck { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.article-byline { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.article-byline img { object-fit: cover; object-position: center top; padding: 4px; background: #fff; border-radius: 50%; flex-shrink: 0; }
.article-byline a { display: block; font-size: 13px; font-weight: 650; color: var(--ink); }
.article-byline span { display: block; color: var(--muted); margin-top: 3px; }
.byline-date { border-left: 1px solid var(--line); margin-left: 10px; padding-left: 22px; }
.byline-date span { font-size: 11px; margin: 0 0 3px; }
.byline-date time { color: var(--ink); font-size: 12px; }
.article-updated { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.article-grid { max-width: 1160px; margin: auto; padding: 0 32px; }
.article-main { min-width: 0; }
.blog-reading-layout .article-grid.article-grid-no-toc { display: block; max-width: 820px; }
.article-prose { font-size: 16px; line-height: 1.9; color: #34455b; overflow-wrap: anywhere; }
.article-prose > :first-child { margin-top: 0; }
.article-prose p { font-size: inherit; line-height: inherit; margin: 0 0 22px; color: inherit; font-weight: 400; }
.article-prose :is(h2, h3, h4) { color: var(--ink); scroll-margin-top: 145px; }
.article-prose h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; font-weight: 650; margin: 48px 0 18px; }
.article-prose h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 650; margin: 32px 0 14px; line-height: 1.5; }
.article-prose :is(ul, ol) { padding-left: 24px; margin: 0 0 26px; }
.article-prose li { padding-left: 5px; margin-bottom: 10px; }
.article-prose a { color: #1765bd; text-decoration: underline; text-underline-offset: 3px; }
.article-prose strong { font-weight: 650; color: var(--ink); }
.article-prose blockquote { border-left: 3px solid var(--blue); margin: 28px 0; background: var(--pale); padding: 24px; }
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 28px 0; font-size: 13px; line-height: 1.65; border: 1px solid var(--line); border-radius: 8px; }
.article-prose :is(th, td) { padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 120px; vertical-align: top; }
.article-prose th { color: var(--ink); background: #eef4fb; font-weight: 650; }
.article-prose tr:last-child td { border-bottom: 0; }
.article-prose tbody tr:nth-child(even) { background: #f8fafc; }
.article-prose img, .article-prose video { max-width: 100%; height: auto; }
.article-prose iframe { max-width: 100%; }
.article-prose pre { max-width: 100%; overflow: auto; padding: 20px; background: #f3f6fa; border-radius: 6px; }
.article-prose code { font-size: .9em; }
.article-prose .blog-toc { display: none; }
.article-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.article-prose iframe { max-width: 100%; }
.article-prose .comparison-table-wrapper { max-width: 100%; overflow-x: auto; }
.article-prose .robofy-col { background: var(--pale); font-weight: 600; }
.article-prose .check { color: #15803d; font-weight: 650; }
.article-prose .cross { color: #b91c1c; font-weight: 650; }
.article-prose .partial { color: #a34e00; font-weight: 600; }
.article-prose :is(.cta-box, .related-links-box, .blog-related) { margin: 32px 0; padding: 24px; background: var(--pale); border: 1px solid var(--line); border-radius: 8px; }
.article-prose .cta-box h3 { margin-top: 0; }
.article-prose .btn-cta-white { display: inline-block; background: var(--blue); color: white; padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.article-prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.rail-sticky { position: sticky; top: 125px; max-height: calc(100vh - 145px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.rail-title { font-size: 14px; font-weight: 650; color: var(--ink); margin: 0 0 18px; }
.article-toc ol { list-style: none; padding: 0; margin: 0; }
.article-toc a { display: block; font-size: 12px; line-height: 1.55; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--muted); }
.article-toc a[aria-current="location"] { border-left-color: var(--blue); color: #175fb8; font-weight: 600; background: #f4f8fe; }
.rail-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rail-note strong { font-size: 13px; }
.rail-note p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 10px 0; }
.rail-note a { font-size: 12px; font-weight: 600; color: var(--blue); }
.article-end { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--line); margin: 48px 0 24px; padding-top: 24px; }
.article-end p { font-size: 12px; color: var(--muted); margin: 0; }
.copy-link { font: 600 12px 'Inter', sans-serif; color: #175fb8; background: #fff; border: 1px solid #bfd4ed; border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.copy-status { font-size: 12px; color: var(--muted); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.article-tags a { font-size: 11px; color: #516078; background: #f3f6fa; padding: 6px 10px; border-radius: 4px; }
.design-author { display: flex; align-items: flex-start; gap: 22px; padding: 30px 0; border-block: 1px solid var(--line); scroll-margin-top: 140px; }
.design-author img { object-fit: cover; object-position: center top; padding: 4px; background: #fff; border-radius: 50%; flex-shrink: 0; }
.design-author .author-caption { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
.design-author h2 { font-size: 22px; margin: 0 0 10px; color: var(--ink); }
.design-author p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 12px; }
.design-author a { font-size: 12px; color: var(--blue); font-weight: 600; }
.author-expertise { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 6px; margin: 0 0 18px; }
.author-expertise li { font-size: 11px; padding: 6px 9px; border-radius: 4px; background: #f3f6fa; }
.author-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.article-back-link { display: inline-block; margin-top: 24px; color: var(--blue); font-size: 13px; font-weight: 600; }
.article-bottom-cta { max-width: 1096px; margin: 64px auto 56px; background: var(--pale); padding: 38px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 12px; }
.article-bottom-cta p { font-size: 12px; color: var(--blue); margin: 0 0 10px; }
.article-bottom-cta h2 { font-size: 30px; letter-spacing: -.6px; margin: 0 0 10px; color: var(--ink); }
.article-bottom-cta span { font-size: 13px; color: var(--muted); }
.design-button { display: inline-flex; justify-content: center; align-items: center; padding: 13px 22px; background: #216cce; border: 1px solid #216cce; color: white; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.blog-reading-layout .design-button:hover { background: #175bb1; color: white; text-decoration: none; }
.related-articles { max-width: 1160px; padding: 0 32px; margin: auto; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.related-heading h2 { font-size: 28px; color: var(--ink); margin: 0; }
.related-heading a { font-size: 12px; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-article { display: flex; flex-direction: column; align-items: flex-start; border-top: 3px solid #c7ddf6; padding: 22px 0; }
.related-article > span { font-size: 11px; color: var(--blue); }
.related-article h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 21px; color: var(--ink); line-height: 1.35; margin: 13px 0 24px; }
.related-article .related-read { font-size: 12px; color: var(--muted); margin-top: auto; }
/* Guide: centered hero, left contents rail, and a content-first reading surface. */
.layout-guide .article-hero { background: #f5f9ff; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.layout-guide .hero-copy { max-width: 840px; margin-inline: auto; text-align: center; }
.layout-guide :is(.article-breadcrumb, .article-category, .article-byline) { justify-content: center; }
.layout-guide .article-deck { max-width: 740px; margin-inline: auto; }
.layout-guide .article-byline { text-align: left; }
.layout-guide .hero-inner { padding-bottom: 44px; }
.layout-guide .article-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 60px; }
.guide-rail { min-width: 0; }
/* Contents use the full rail unless a MOFU promotion is explicitly enabled. */
.guide-rail .rail-sticky { display: grid; grid-template-rows: minmax(0, 1fr); gap: 0; height: calc(100dvh - 145px); max-height: none; overflow: hidden; padding-bottom: 0; }
.guide-rail .article-toc { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.guide-rail .rail-title { flex-shrink: 0; }
.guide-rail .article-toc ol { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.layout-guide .article-prose h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.layout-guide .article-toc a { font-size: 12px; padding-block: 9px; }
.layout-guide .article-bottom-cta { border-radius: 6px; }

.guide-rail .rail-sticky.has-toc.has-promo { grid-template-rows: minmax(0, 4fr) minmax(min-content, 1fr); gap: 16px; }
.guide-rail .rail-sticky:not(.has-toc) { height: auto; }
.guide-rail .blog-rail-promo { margin-top: 24px; padding: 20px; background: var(--pale); border: 1px solid #d6e4f5; border-radius: 12px; }
.promo-brand { display: flex; align-items: center; gap: 9px; }
.promo-brand span { color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 650; }
.blog-rail-promo h2 { color: var(--ink); font-size: 23px; line-height: 1.25; letter-spacing: -.4px; margin: 18px 0 12px; min-width: 0; overflow-wrap: anywhere; }
.blog-rail-promo p { margin: 0 0 18px; }
.blog-rail-promo .design-button { width: 100%; color: white; font-size: 12px; padding: 12px 14px; white-space: normal; text-align: center; }
.blog-rail-promo .promo-secondary { display: block; margin-top: 14px; text-align: center; font-size: 11px; font-weight: 500; }
/* The same branded promotion, arranged compactly for Guide's lower fifth. */
.guide-rail .blog-rail-promo { display: grid; grid-template-columns: auto 1fr; align-content: center; align-items: center; gap: 8px; margin: 0; padding: 12px; }
.guide-rail .promo-brand { gap: 6px; }
.guide-rail .promo-brand img { width: 24px; height: 24px; }
.guide-rail .promo-brand span { font-size: 14px; }
.guide-rail .blog-rail-promo h2 { font-size: 18px; margin: 0; text-align: right; }
.guide-rail .blog-rail-promo p { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.6; }
.guide-rail .blog-rail-promo .design-button { grid-column: 1 / -1; padding: 9px 12px; }
.guide-rail .promo-secondary { grid-column: 1 / -1; margin: 0; }


@media (min-width: 992px) { .blog-reading-layout { padding-top: 124px; } }
/* The desktop menu wraps onto a second row at these widths. */
@media (min-width: 992px) and (max-width: 1199px) {
  .guide-rail .rail-sticky { top: 170px; height: calc(100dvh - 190px); }
  .guide-rail .rail-sticky:not(.has-toc) { height: auto; }
}
@media (max-width: 1050px) {
  .layout-guide .article-grid { gap: 36px; grid-template-columns: 260px minmax(0, 1fr); }
  .article-bottom-cta { margin-inline: 32px; }
}
@media (max-width: 760px) {
  .hero-inner { padding: 28px 22px 34px; }
  .blog-reading-layout h1 { font-size: 38px; letter-spacing: -1.3px; }
  .article-breadcrumb { margin-bottom: 28px; }
  .article-deck { font-size: 14px; }
  .article-byline { flex-wrap: wrap; gap: 10px; }
  .byline-date { margin-left: 3px; padding-left: 14px; }
  .article-grid { padding-inline: 22px; }
  .article-prose { font-size: 15px; line-height: 1.85; }
  .article-prose h2 { font-size: 25px; margin-top: 38px; }
  .article-prose h3 { font-size: 19px; }
  .layout-guide .article-grid { display: block; }
  .layout-guide .article-hero { margin-bottom: 28px; }
  .guide-rail { margin-bottom: 28px; }
  .guide-rail .rail-sticky { position: static; max-height: none; overflow: visible; display: block; height: auto; }
  .guide-rail .article-toc { background: #f5f9ff; border-radius: 8px; padding: 20px; overflow: visible; }
  .guide-rail .article-toc ol { max-height: 200px; overflow-y: auto; }
  .guide-rail .rail-note { display: none; }
  .article-bottom-cta { flex-direction: column; align-items: flex-start; padding: 28px; margin: 44px 22px; }
  .article-bottom-cta h2 { font-size: 27px; }
  .related-articles { padding-inline: 22px; }
  .related-grid { grid-template-columns: 1fr; gap: 8px; }
  .related-article { padding-block: 20px; }
  .related-article h3 { margin-bottom: 15px; }
}
@media (max-width: 380px) {
  .blog-reading-layout h1 { font-size: 32px; }
  .article-byline .byline-date { width: 100%; padding: 8px 0 0; border: 0; margin: 0; text-align: center; }
  .design-author { gap: 16px; }
  .design-author img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: no-preference) { .blog-reading-layout { scroll-behavior: smooth; } }
@media print {
  .guide-rail, .article-bottom-cta, .related-articles, .article-end { display: none; }
  .blog-reading-layout .article-grid, .blog-reading-layout .hero-inner { display: block; }
}
