/* The articles (/articles and /articles/*). Loaded after styles.css and docs.css, on those pages only. */

.article-section { padding-top: 56px; }
.article-meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

.article-body { max-width: 760px; margin-inline: auto; }
.article-body > h2:first-child, .article-body > .note:first-child + h2 { margin-top: 0; }
.article-body ol:not(.steps):not(.sources) { color: var(--ink-2); padding-left: 1.3em; margin: 14px 0 0; display: grid; gap: 8px; }
.article-body li { color: var(--ink-2); }
.article-body strong { color: var(--ink); }
.article-body .compare { min-width: 0; }
.article-body .note:first-child { margin-top: 0; }
.page-hero .wrap .article-meta, .page-hero .wrap .topic-jump { max-width: 44em; }

/* Footnote numbers and the sources list. */
.cite { font-size: 0.7em; line-height: 0; vertical-align: super; margin-left: 1px; }
.cite a { color: var(--brand-hi); text-decoration: none; padding: 0 2px; }
.cite a:hover { text-decoration: underline; }
.sources { margin: 14px 0 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 15px; }
.sources li { color: var(--ink-2); overflow-wrap: anywhere; }
.sources li:target { color: var(--ink); }
.sources a { color: var(--brand-hi); }
.sources-note { font-size: 14px; color: var(--ink-3) !important; }

/* Cards and the topic index. */
.card-topic { display: block; margin-bottom: 8px; font: 600 12px/1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-hi); }
.more-articles { margin-top: 22px; }
.topic-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.topic-jump a { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.topic-jump a:hover { color: var(--ink); background: var(--bg-2); }
.topic { scroll-margin-top: 92px; }
.topic + .topic { margin-top: 72px; }
.topic h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.topic-intro { margin-top: 10px; color: var(--ink-2); max-width: 44em; }
.topic-intro a { color: var(--brand-hi); }

/* Screenshots: the cover under the title, and the figure inside the article. */
.article-cover { padding-bottom: 8px; }
.article-cover .wrap { max-width: calc(1040px + 48px); }
.article-cover .shot-theme-end { margin-bottom: 14px; }
.article-figure { margin: 40px 0 0; }
.article-cover .article-figure { margin: 0; }
.article-figure .shot img { display: block; width: 100%; height: auto; }
.article-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }
.article-body .article-figure { margin-inline: -40px; }
@media (max-width: 900px) { .article-body .article-figure { margin-inline: 0; } }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 640px; margin-inline: auto; }
.phones img { display: block; width: 100%; height: auto; border-radius: 22px; }

/* Card thumbnails. */
.article-card { overflow: hidden; padding-top: 0; }
.card-thumb { display: block; width: calc(100% + 36px); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: 0 -18px 16px; border-bottom: 1px solid var(--line); transition: transform 0.3s; }
.article-card:hover .card-thumb { transform: scale(1.03); }
