/* Long-form article layout. Loaded only on article pages, on top of console.css. */
main.article { max-width: 44rem; }
.article h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 0.6rem; }
.article .byline { color: var(--muted); font-size: 0.9rem; margin: 0 0 2.5rem; }

/* Long-form measure: prose is easier to read a little larger than UI text. */
.article article { font-size: 1.05rem; line-height: 1.7; }
.article article h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.02em;
  color: var(--fg); text-transform: none; font-weight: 600; margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 1.5rem; }
.article article h3 { font-size: 1.1rem; margin: 2rem 0 0.6rem; font-weight: 600; }
.article article p { margin: 0 0 1.15rem; }
.article article ul, .article article ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.article article li { margin: 0 0 0.4rem; }
.article article strong { font-weight: 600; }
.article article blockquote { margin: 0 0 1.15rem; padding-left: 1rem;
  border-left: 2px solid var(--line); color: var(--muted); }

/* The anchor is a quiet affordance: visible on hover, and always reachable by
   keyboard, rather than a permanent # beside every heading. */
.article .anchor { text-decoration: none; color: var(--faint); opacity: 0;
  margin-left: -1.1rem; padding-right: 0.35rem; font-weight: 400; }
.article h2:hover .anchor, .article .anchor:focus { opacity: 1; }

.article .toc { border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 0 0 2.5rem; background: var(--code-bg); }
.article .toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0 0 0.6rem; font-weight: 600; }
.article .toc ol { margin: 0; padding-left: 1.2rem; }
.article .toc li { margin: 0.25rem 0; font-size: 0.93rem; }

/* Wide comparison tables scroll inside their own box rather than making the
   whole page scroll sideways on a phone. */
.article article table { display: block; overflow-x: auto; white-space: normal;
  min-width: 0; margin: 0 0 1.5rem; font-size: 0.9rem; }
.article article table th { white-space: nowrap; }
.article article table td { min-width: 8rem; }

.article article code { background: var(--code-bg); padding: 0.1rem 0.3rem;
  border-radius: 3px; font-size: 0.88em; }
.article article pre code { background: none; padding: 0; }

.cta { border: 1px solid var(--accent); border-radius: 8px; padding: 1.25rem 1.4rem;
  margin: 3rem 0 0; }
.cta h2 { margin: 0 0 0.5rem; font-size: 1.05rem; text-transform: none;
  letter-spacing: normal; color: var(--fg); font-weight: 600; }
.cta p { margin: 0 0 0.9rem; }
.cta p:last-child { margin: 0; }
