/* article.css — the blog family (the owner articles and the blog index), rendered by scripts/blog/build.mjs on
   the system (css/system.css: the page head and the contents card beside it, numbered sections, the questions,
   the cards, the closing band). Only the family's own parts are laid out here: the article's prose blocks (lists,
   tables, sub-headings, quotes), the contents list, the index's filter row. Tokens only. */

.loc-hero { padding: 0; }
.art-h1 { font-size: var(--text-display-lg); line-height: 1.12; }
@media (min-width: 900px) { .art-h1 { font-size: 52px; } }

/* the contents card */
.art-contents__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: art-contents; border-top: 1px solid var(--color-border); }
.art-contents__list li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-2); padding: var(--space-2-5, 10px) 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); line-height: var(--leading-normal); }
.art-contents__list li::before { counter-increment: art-contents; content: counter(art-contents, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-widest); color: var(--color-primary); padding-top: 2px; }
.art-contents__list a { color: var(--color-text); text-decoration: none; }
.art-contents__list a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.art-contents .loc-glance__foot { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--color-border); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--color-text-meta); }

/* the article's blocks in the reading measure */
.art-body { display: flex; flex-direction: column; gap: var(--space-md); padding-bottom: var(--space-24, 96px); }
.art-body > p, .art-body > ul, .art-body > ol, .art-body > blockquote { margin-block: 0; max-width: 68ch; font-size: 16.5px; line-height: 1.7; color: var(--color-gray-600); }
.art-body > p a, .art-body > ul a, .art-body > ol a, .art-body .s-faq p a, .art-body blockquote a { color: var(--color-primary-dark); font-weight: 600; }
.art-body > ul, .art-body > ol { padding-left: 1.4em; }
.art-body > ul li, .art-body > ol li { margin: 0 0 var(--space-2); }
.art-body > ul li::marker { color: var(--color-primary); }
.art-body > ol li::marker { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-primary); }
.art-body strong { color: var(--color-text); font-weight: 600; }
.art-body > h3 { max-width: 68ch; }
.art-body > h4 { margin: var(--space-6) 0 var(--space-2); max-width: 68ch; font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; color: var(--color-charcoal); }
.art-body > blockquote { padding: 0 0 0 var(--space-5); border-left: 3px solid var(--color-primary); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.45; color: var(--color-charcoal); }
.art-body > blockquote p { margin: 0; }
.art-body > img, .art-body > figure { max-width: var(--max-width-narrow, 50rem); margin: 0; }
.art-body > img, .art-body > figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.art-body > figure figcaption { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--color-text-meta); }
.art-body > hr { width: 100%; max-width: var(--max-width-narrow, 50rem); margin: var(--space-4) 0; border: 0; border-top: 1px solid var(--color-border); }
.art-body .s-faq { max-width: var(--max-width-narrow, 50rem); }
.art-body [id] { scroll-margin-top: var(--space-20); }

/* tables: hairlined, the header in the mono face, scrolling sideways on a phone */
.art-table { max-width: var(--max-width-narrow, 50rem); overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--color-border-strong); }
.art-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--leading-normal); }
.art-table th { padding: var(--space-3) var(--space-3) var(--space-3) 0; text-align: left; vertical-align: bottom; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary-dark); border-bottom: 1px solid var(--color-border-strong); }
.art-table td { padding: var(--space-3) var(--space-3) var(--space-3) 0; vertical-align: top; color: var(--color-gray-600); border-bottom: 1px solid var(--color-border); }
.art-table td:first-child { color: var(--color-text); font-weight: 600; }
.art-table th:last-child, .art-table td:last-child { padding-right: 0; }

/* related articles as system cards */
.art-related { max-width: none; }
.art-related > * { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-6); }
.art-related .s-cards__title a { color: inherit; text-decoration: none; }
.art-related .s-cards__title a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.art-related .s-cards__meta { margin: auto 0 0; padding-top: var(--space-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--color-text-meta); }

/* the index: the filter row (its script is the index's own) and the photo cards */
.art-index { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-6) var(--space-md) var(--space-24, 96px); }
.art-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.art-filter .blog-filter__btn { min-height: var(--touch-target-min); padding: 0 var(--space-5); border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-white); font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); cursor: pointer; }
.art-filter .blog-filter__btn:hover { border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
.art-filter .blog-filter__btn.is-active { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); }
.art-filter .blog-filter__btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.art-grid > li { display: block; }
