/* Backchannel - free resource pages. Loaded after styles.css. */
.article-hero { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.article-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-hero .label { background: var(--blush); color: var(--rose-ink); padding: 5px 14px; border-radius: 999px; }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.02; max-width: 22ch; }
.article-hero .lede { max-width: 44rem; }
.crumbs { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.article-meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: 0.12em; }
.article-body { padding-bottom: clamp(56px, 8vw, 96px); }

.prose { max-width: 46rem; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; margin-top: 2.1em; }
.prose h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--rose-ink); font-weight: 800; }
.prose a { color: var(--rose-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose strong { font-weight: 800; }
.prose .small { font-size: 0.875rem; color: var(--ink-2); }

.answer { background: var(--sheet); border-radius: 24px; padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.answer .label { align-self: flex-start; background: var(--lilac); color: var(--ink); padding: 4px 12px; border-radius: 999px; }
.answer p { margin: 0; }

.table-wrap { background: var(--sheet); border-radius: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 0.9375rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1.5px dashed var(--rule); }
.table-wrap thead th { border-top: 0; background: var(--blush); font-family: var(--display); font-weight: 700; font-size: 1rem; }
.table-wrap tbody th { font-weight: 700; width: 24%; }
.table-wrap caption { caption-side: bottom; text-align: left; padding: 10px 16px 14px; font-size: 0.8125rem; color: var(--ink-2); }

.checklist { list-style: none; padding: 0 !important; counter-reset: chk; display: flex; flex-direction: column; gap: 12px; }
.checklist > li { counter-increment: chk; background: var(--sheet); border-radius: 20px; padding: 18px 20px 18px 64px; position: relative; margin: 0 !important; }
.checklist > li::before { content: counter(chk); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font: 800 0.875rem/1 var(--display); }
.checklist > li strong { display: block; font-family: var(--display); font-size: 1.125rem; margin-bottom: 4px; }

.qa { display: flex; flex-direction: column; gap: 10px; padding: 0 !important; list-style: none; }
.qa > li { background: var(--sheet); border-radius: 18px; padding: 16px 20px; margin: 0 !important; }
.qa > li strong { display: block; font-weight: 800; }
.qa > li span { display: block; color: var(--ink-2); font-size: 0.9375rem; margin-top: 4px; }

.cta-card { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 2.2em; }
.cta-card > div { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 6px; }
.cta-card .label { color: var(--mark); }
.cta-card h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--paper); }
.cta-card p { color: var(--night-dim); margin: 0; font-size: 1rem; }

.prose .faq { margin-top: 0.8em; }
.prose .faq details p { font-size: 1rem; }

.sources { font-size: 0.9375rem; color: var(--ink-2); }
.sources ol { padding-left: 1.3em; }
.sources a { color: var(--ink); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 14px; margin-top: 0.8em; }
.related a { display: flex; flex-direction: column; gap: 8px; background: var(--sheet); border-radius: 20px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; }
.related a:hover { box-shadow: var(--shadow); }
.related .label { align-self: flex-start; background: var(--butter); color: var(--ink); padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; }

/* resources hub */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { display: flex; flex-direction: column; gap: 10px; background: var(--sheet); border-radius: 24px; padding: 24px; text-decoration: none; color: var(--ink); min-width: 0; }
.hub-card:hover { box-shadow: var(--shadow); }
.hub-card .label { align-self: flex-start; background: var(--butter); color: var(--ink); padding: 4px 12px; border-radius: 999px; }
.hub-grid .hub-card:nth-child(4n+2) .label { background: var(--lilac); }
.hub-grid .hub-card:nth-child(4n+3) .label { background: var(--blush); }
.hub-card h2 { font-size: 1.5rem; line-height: 1.15; }
.hub-card p { color: var(--ink-2); font-size: 0.9375rem; }
.hub-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--rose-ink); font-size: 0.9375rem; }

.template { background: var(--sheet); border-radius: 20px; padding: 20px 22px; font-size: 1rem; }
.template p + p { margin-top: 0.8em; }
.template .label { display: block; margin-bottom: 8px; }
.prose .btn, .prose .btn:hover { text-decoration: none; }
.prose .btn-mark { color: var(--mark-ink); }
.sources h2 { color: var(--ink); }
