/* Article pages */

.article__head { margin-bottom: 1.25rem; }
.article__head h1 { max-width: 22ch; }
@media (min-width: 50em) { .article__head h1 { max-width: 26ch; } }

.article__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.75rem; margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--desk-line); font-size: .95rem; color: var(--muted); }
.article__meta div { display: flex; gap: .4rem; }
.article__meta dt { font-weight: 600; }
.article__meta dd { margin: 0; color: var(--ink); }

.postit--short { max-width: 40rem; }

.toc { margin: 1.75rem 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--desk-line); background: #fff; max-width: 40rem; }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 650; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
.toc li { margin-bottom: .25rem; font-size: 1rem; line-height: 1.45; }
@media (min-width: 46em) { .toc ol { columns: 2; column-gap: 2rem; } .toc li { break-inside: avoid; } }

/* Wide screens: the table of contents moves to a side column and stays in view while reading */
@media (min-width: 72em) {
  .wrap--article { max-width: 70rem; }
  .article { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; column-gap: 3.5rem; align-items: start; }
  .article > * { grid-column: 1; }
  .article > .toc { grid-column: 2; grid-row: 1 / span 9; position: sticky; top: 1.25rem; margin: .4rem 0 0; max-width: none; border: 0; border-left: 3px solid var(--petrol); background: transparent; padding: .2rem 0 .2rem 1.1rem; }
  .article > .toc ol { columns: 1; padding-left: 1.1rem; }
  .article > .toc li { margin-bottom: .55rem; font-size: .97rem; }
  .article .postit--short { max-width: none; }
}

.prose { max-width: 66ch; }
.prose > section > h2:first-child { margin-top: 2.2em; }
.prose__lead { font-size: 1.22rem; line-height: 1.55; color: var(--petrol-deep); }
.prose .table-wrap, .prose .sheet-note, .prose .postit { max-width: none; }
.prose .table-wrap { margin-inline: 0; }

sup.cite { font-size: .72em; line-height: 0; vertical-align: super; margin-left: .1em; white-space: nowrap; }
sup.cite a { text-decoration: none; padding: 0 .08em; border-radius: 2px; }
sup.cite a:hover { background: var(--yellow); color: var(--petrol-deep); }

/* Common mistakes: each pair reads as "what goes wrong" then "what to do" */
.mistakes { margin: 1.25rem 0; }
.mistakes > div { padding: .9rem 1.1rem 1rem; margin-bottom: .9rem; background: #fff; border: 1px solid var(--desk-line); border-left: 5px solid var(--alert); }
.mistakes dt { font-family: var(--font-head); font-weight: 650; color: var(--petrol-deep); line-height: 1.35; margin-bottom: .3rem; }
.mistakes dd { margin: 0; }

/* Sources */
.sources-block { margin-top: 2.5rem; padding-top: .5rem; border-top: 2px solid var(--petrol); }
.sources-block h2 { margin-top: 1.2em; }
.sources { padding-left: 1.5rem; margin: 1rem 0 0; }
.sources li { margin-bottom: 1rem; padding-left: .3rem; font-size: .98rem; line-height: 1.5; }
.sources li:target { background: var(--yellow-soft); outline: 3px solid var(--yellow); outline-offset: 4px; }
.sources a { font-weight: 650; overflow-wrap: anywhere; }
.sources__pub, .sources__note { display: block; color: var(--muted); }
.sources__note { color: var(--ink); }

/* Call to try the editor, and related reading */
.try-editor { margin: 3rem 0 0; padding: 1.5rem 1.75rem; background: var(--petrol); color: var(--paper); border-radius: 2px; max-width: 44rem; }
.try-editor h2 { color: var(--paper); font-size: 1.35rem; margin: 0 0 .5rem; }
.try-editor p { margin: 0 0 1rem; }
.try-editor p:last-child { margin-bottom: 0; }
.try-editor :focus-visible { outline-color: var(--yellow); }
.try-editor .button { background: var(--yellow); border-color: var(--yellow); color: var(--petrol-deep); }
.try-editor .button:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--petrol-deep); }

.related { margin-top: 3rem; }
.related h2 { margin-top: 0; }
.related .agenda-list { max-width: 48rem; }
