/* Shared document styling for the homepage, task catalog, and task readers. */
:root {
  color-scheme: light;
  --home-ink: #262b33;
  --home-muted: #626a75;
  --home-link: #315cad;
  --home-line: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--home-ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; font-size: 16px; line-height: 1.7; }
a { color: var(--home-link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--home-link); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, dl { margin: 0; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 30; padding: 8px 12px; background: #fff; border: 1px solid var(--home-link); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.home-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--home-line); background: #fff; }
.home-header-inner { width: min(1100px, calc(100% - 64px)); min-height: 65px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--home-ink); font-size: 17px; font-weight: 650; white-space: nowrap; }
.home-brand:hover { text-decoration: none; }
.home-brand img { display: block; object-fit: contain; }
.home-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.home-nav a { color: var(--home-muted); padding: 12px 0; }
.home-nav a[aria-current] { color: var(--home-link); font-weight: 600; }
.home-layout { display: grid; grid-template-columns: 170px minmax(0, 790px); column-gap: 64px; width: min(1100px, calc(100% - 64px)); margin: 0 auto; padding: 55px 0 0; }
.home-sidebar nav { position: sticky; top: 112px; font-size: 14px; line-height: 1.5; }
.home-sidebar p { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--home-ink); }
.home-sidebar a { display: block; padding: 7px 0; color: var(--home-muted); }
.home-sidebar a:hover { color: var(--home-link); }
.home-document { min-width: 0; }
.home-intro { padding-bottom: 32px; border-bottom: 1px solid var(--home-line); }
.home-hero { display: block; width: 100%; height: auto; margin-bottom: 24px; border-radius: 12px; }
.home-intro h1 { font-size: 42px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin-bottom: 12px; }
.home-subtitle { font-size: 21px; color: #505864; line-height: 1.5; margin-bottom: 21px; }
.home-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 19px; font-size: 15px; }
.home-section { margin-top: 36px; }
.home-section h2 { margin-bottom: 14px; font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.home-section h3 { margin: 21px 0 10px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.section-followup { margin-top: 12px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.home-section-heading a { font-size: 14px; }
.home-demo { margin-top: 24px; }
.home-demo-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 8px; }
.home-section .home-demo-heading h3 { margin: 0; }
.home-demo-heading a { font-size: 14px; }
.demo-video { display: block; width: 100%; height: auto; margin-top: 16px; border: 1px solid var(--home-line); border-radius: 12px; background: #f8f9fa; }
.contribution-steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: contribution-step; border-top: 1px solid var(--home-line); }
.contribution-steps li { display: grid; grid-template-columns: 34px 155px minmax(0, 1fr); gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--home-line); counter-increment: contribution-step; }
.contribution-steps li::before { content: counter(contribution-step, decimal-leading-zero); padding-top: 1px; color: var(--home-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.contribution-steps strong { font-size: 14px; }
.contribution-steps span { color: #505864; font-size: 14px; line-height: 1.55; }
.contribution-examples { margin-top: 16px; color: var(--home-muted); font-size: 14px; }
.home-task-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--home-line); }
.home-task-list li { border-bottom: 1px solid var(--home-line); }
.home-task { display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: start; gap: 16px; padding: 16px 6px; }
.home-task:hover { background: #f8f9fb; text-decoration: none; }
.home-task:hover .home-task-title { text-decoration: underline; }
.home-task-copy { min-width: 0; }
.home-task-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.6; }
.home-task-summary { display: block; margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--home-muted); }
.evaluation-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; text-align: left; }
.evaluation-table th, .evaluation-table td { padding: 12px 14px; border-bottom: 1px solid var(--home-line); vertical-align: top; }
.evaluation-table thead th { border-top: 1px solid var(--home-line); background: #f8f9fa; font-size: 13px; font-weight: 600; }
.evaluation-table tbody th { width: 165px; font-weight: 600; }
.evaluation-table td { color: #505864; }
.results-note { margin-top: 18px; font-size: 14px; color: var(--home-muted); }
.results-note strong { color: var(--home-ink); }
.home-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 22px 0 30px; border-top: 1px solid var(--home-line); font-size: 12px; color: var(--home-muted); }
@media (max-width: 960px) {
  .home-layout { grid-template-columns: 145px minmax(0, 1fr); column-gap: 36px; }
  .home-task { grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 10px 12px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 85px; }
  .home-header-inner, .home-layout { width: calc(100% - 40px); }
  .home-header-inner { min-height: 60px; gap: 12px; }
  .home-brand { gap: 6px; font-size: 15px; }
  .home-brand img { width: 28px; height: 28px; }
  .home-nav { gap: 16px; font-size: 13px; }
  .home-layout { display: flex; flex-direction: column; padding-top: 20px; }
  .home-sidebar { margin-bottom: 28px; }
  .home-sidebar nav { display: flex; flex-wrap: wrap; gap: 2px 18px; position: static; font-size: 12px; border-bottom: 1px solid var(--home-line); padding-bottom: 12px; }
  .home-sidebar p { flex-basis: 100%; margin-bottom: 3px; font-size: 12px; }
  .home-sidebar a { padding: 4px 0; }
  .home-intro h1 { font-size: 36px; }
  .home-subtitle { font-size: 19px; margin-bottom: 16px; }
  .home-intro { padding-bottom: 26px; }
  .home-section { margin-top: 30px; }
  .home-section h2 { font-size: 23px; }
  .contribution-steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; }
  .contribution-steps span { grid-column: 2; }
  .home-task { padding: 14px 0; }
  .home-task-title { font-size: 15px; }
  .home-task-summary { font-size: 13px; }
  .evaluation-table th, .evaluation-table td { padding: 10px 8px; }
  .evaluation-table tbody th { width: 105px; }
  .home-footer { flex-wrap: wrap; gap: 10px; margin-top: 32px; }
}
@media (max-width: 360px) {
  .home-header-inner { flex-wrap: wrap; justify-content: center; gap: 0 18px; padding-top: 8px; }
  .home-nav { gap: 24px; }
  html { scroll-padding-top: 115px; }
}
.home-task-icon { display: flex; align-items: center; height: 24px; color: #426bb4; }
.home-task-icon svg { display: block; width: 18px; height: 18px; flex: none; }
.home-task-arrow { padding-top: 2px; color: var(--home-muted); }
.home-task-topic { display: block; margin-top: 8px; font-size: 12px; color: var(--home-muted); }
