/* Article pages and the /resources library (site/build/build-articles.mjs). Loads after vendor.css. */
.art-hero { background: var(--ink); color: var(--fg-dark); }
.art-hero .wrap { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.art-hero .crumbs { padding-top: 0; }
.art-hero h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.22; letter-spacing: 0; max-width: 20em; text-wrap: balance; }
.art-meta { margin: 0; font-size: 14px; color: var(--muted-dark); }
.art-lede { font-size: 18px; color: #C9D3E1; max-width: 42em; margin: 0; }
.art-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); background: #E6F3FB; padding: 4px 9px; border-radius: var(--r-sm); }
.art-cover { margin-top: -28px; }
.art-cover figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(10, 15, 28, .45); background: var(--surface); max-height: 560px; }
.art-cover img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; display: block; }

.art-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; justify-content: center; padding-top: 56px; padding-bottom: 88px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.5; }
.toc a:hover, .toc a.is-current { color: var(--ink); border-left-color: var(--accent); }

.art-body { font-size: 17.5px; color: var(--ink); }
.art-body section + section { margin-top: 48px; }
.art-body h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.3; margin-bottom: 18px; }
.art-body h3 { font-size: 21px; font-weight: 600; line-height: 1.4; margin: 28px 0 10px; }
.art-body p { margin: 0 0 16px; }
.art-body ul, .art-body ol { margin: 0 0 18px; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.art-body .checklist { list-style: none; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.ck { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--accent); display: grid; place-items: center; margin-top: 3px; }
.callout-box { margin: 8px 0 20px; padding: 18px 22px; border-left: 4px solid var(--amber); background: var(--amber-tint); border-radius: 0 var(--r-md) var(--r-md) 0; }
.callout-box b { display: block; margin-bottom: 4px; }
.callout-box p { margin: 0; }
.art-fig { margin: 8px 0 24px; }
.art-fig img { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.art-fig figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.art-body .faq details .th { padding-right: 44px; }

.art-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art-card { display: flex; flex-direction: column; gap: 12px; padding: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.art-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.art-card > :not(img) { margin-left: 22px; margin-right: 22px; }
.art-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.art-card .th { font-size: 15px; color: var(--text-2); margin-top: 0; margin-bottom: 0; }
.art-date { font-size: 13px; color: var(--text-2); margin-top: auto; }
.art-card:hover { border-color: var(--accent); }

@media (max-width: 1080px) { .art-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static; } .art-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .art-cards { grid-template-columns: minmax(0, 1fr); } .art-body { font-size: 16.5px; } .art-cover { margin-top: 0; padding-top: 16px; } }
