/* article.css: what the blocks do not cover on articles/<slug>.html and articles/index.html. Section headings in the
   text look like the block section heading (accent rule, capitals); the contents list sits beside the text from 900px. */
@layer pages {
  .art-meta { margin-top: 10px; color: var(--mu); font-size: 15px; }
  .art-short { margin: 0; padding: 0; list-style: none; color: var(--tx); font-size: 17px; line-height: 1.5; }
  .art-short li { position: relative; padding-left: 20px; }
  .art-short li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--acg); }
  .art-short li + li { margin-top: 10px; }
  .art-body { margin-top: 28px; }
  .art-body h2 { margin-top: 36px; color: var(--tx); font: 900 27px/1.05 var(--disp); text-transform: uppercase; letter-spacing: .01em; }
  .art-body h2::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 10px; border-radius: 2px; background: var(--acg); }
  .art-body h3 { margin-top: 24px; }
  .art-body :is(h2, h3) + * { margin-top: 10px; }
  .art-body :is(.warn, .list, .tablewrap, .seq, figure) { margin-top: 18px; }
  .art-toc { display: none; }
  #articles { margin-top: 24px; }
  /* Tables in the text fit a phone: headings wrap, row headings may shrink, cells a little tighter. */
  @media (max-width: 899px) {
    .art-body .cmp { font-size: 15px; }
    .art-body .cmp :is(th, td) { padding-right: 10px; }
    .art-body .cmp thead th { white-space: normal; }
    .art-body .cmp th[scope=row] { min-width: 0; }
  }
  /* search.html (the page loads this stylesheet too) */
  #sform { margin-top: 20px; max-width: 680px; }
  #sform .btn-main { flex: none; }
  .srch-n { min-height: 1.55em; margin-top: 14px; color: var(--mu); }
  #sresults > .sec { margin-top: 36px; }
  #sresults > .sec:first-child { margin-top: 24px; }
  #sresults .sec-h { margin-bottom: 4px; }
  #sresults .sec-h h2 { font-size: 28px; }
  #best .qa { max-width: 680px; }
  #best .qa .badge { justify-self: start; }
  @media (min-width: 900px) {
    .art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 56px; align-items: start; }
    .art-main { grid-column: 1; grid-row: 1; min-width: 0; }
    .art-toc { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--top-h) + 24px); margin-top: 48px; padding: 16px 18px; border-radius: var(--r3); background: var(--s1); }
    .art-toc h2 { margin: 0 0 6px; color: var(--mu); font: 600 15px/1.3 var(--body); }
    .art-toc ol { margin: 0; padding: 0; list-style: none; }
    .art-toc a { display: block; padding: 8px 0; border-top: 1px solid var(--line2); color: var(--tx); font-size: 15px; line-height: 1.35; text-decoration: none; }
    .art-toc li:first-child a { border-top: 0; }
    .art-toc a:hover { color: var(--ac); }
    .art-body h2 { font-size: 38px; }
  }
}
