/* Homepage task grid: every task visible, grouped by suite. Flat, one type scale. */
html body main #tasks .ht-head { align-items: flex-end; }
html body main #tasks .ht-suite { margin-top: 44px; padding-top: 26px; border-top: 1px solid #dde4e1; }
html body main #tasks .ht-suite:first-of-type { margin-top: 32px; }
html body main #tasks .ht-suite-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
html body main #tasks .ht-suite-head h3 {
  margin: 0 !important; font: 700 26px/1.2 var(--m2a-font-sans, 'Google Sans Flex', system-ui, Arial, sans-serif) !important;
  letter-spacing: -.02em !important; color: #16263a !important;
}
html body main #tasks .ht-suite-head p { flex: 1; margin: 0 !important; font-size: 17px !important; line-height: 1.4 !important; color: #35353b !important; }
html body main #tasks .ht-suite-head a { flex: none; font-size: 16px; font-weight: 600; color: #2f6f5c; text-decoration: none; white-space: nowrap; }
html body main #tasks .ht-suite-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
html body main #tasks .ht-marquee {
  overflow: hidden; padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
html body main #tasks .ht-lane { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ht-slide 90s linear infinite; }
html body main #tasks .ht-marquee[data-row="1"] .ht-lane { animation-direction: reverse; animation-duration: 100s; }
html body main #tasks .ht-marquee[data-row="2"] .ht-lane { animation-duration: 95s; }
html body main #tasks .ht-marquee:hover .ht-lane, html body main #tasks .ht-marquee:focus-within .ht-lane { animation-play-state: paused; }
@keyframes ht-slide { to { transform: translateX(-50%); } }
html body main #tasks .ht-tile { flex: none; width: 212px; margin: 0 18px 0 0; }
html body main #tasks .ht-tile a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important;
  color: #16263a; text-decoration: none; transform: none !important;
}
html body main #tasks .ht-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #eef2f0; }
html body main #tasks .ht-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
html body main #tasks .ht-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .25s; background: #101c2b; }
html body main #tasks .ht-tile.is-playing .ht-video { opacity: 1; }
html body main #tasks .ht-code { margin-top: 4px; font: 600 14px/1.2 var(--m2a-font-sans, system-ui, Arial, sans-serif); letter-spacing: .06em; color: #45505a; }
html body main #tasks .ht-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; white-space: normal;
  font: 600 15px/1.35 var(--m2a-font-sans, system-ui, Arial, sans-serif); color: #16263a;
}
html body main #tasks .ht-tile a:hover .ht-name { text-decoration: underline; text-underline-offset: 3px; }
html body main #tasks .ht-tile a:hover img { filter: brightness(.94); }
html body main #tasks .ht-tile a:focus-visible { outline: 2px solid #2f6f5c; outline-offset: 4px; border-radius: 8px; }
@media (max-width: 760px) {
  html body main #tasks .ht-suite-head { flex-wrap: wrap; gap: 4px 14px; }
  html body main #tasks .ht-suite-head p { flex-basis: 100%; order: 3; }
}

/* Resources: a plain list; items that do not exist yet say so. */
html body main #resources-links.academic-section { width: var(--home-content-width) !important; max-width: 1024px !important; margin: 0 auto !important; padding: 56px 0 24px !important; box-sizing: border-box; }
html body main #resources-links h2 { font-size: 34px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.025em !important; margin: 0 0 24px !important; color: #16263a !important; }
html body main #resources-links .hr-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #dde4e1; }
html body main #resources-links .hr-list li { margin: 0; border-bottom: 1px solid #dde4e1; }
html body main #resources-links .hr-item { display: flex; align-items: center; gap: 18px; padding: 20px 4px; color: #16263a; text-decoration: none; }
html body main #resources-links a.hr-item:hover { background: #f6f9f7; }
html body main #resources-links .hr-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #f3f6f4; }
html body main #resources-links .hr-icon img { width: 30px; height: 30px; }
html body main #resources-links .hr-text { flex: 1; min-width: 0; }
html body main #resources-links .hr-text h3 { margin: 0 0 2px !important; font: 650 20px/1.3 var(--m2a-font-sans, system-ui, Arial, sans-serif) !important; color: #16263a !important; }
html body main #resources-links .hr-text p { margin: 0 !important; font-size: 17px !important; line-height: 1.6 !important; color: #35353b !important; }
html body main #resources-links .hr-go { flex: none; font-size: 20px; color: #2f6f5c; }
html body main #resources-links .is-soon { opacity: .92; }
html body main #resources-links .is-soon .hr-icon { filter: grayscale(.25); }
html body main #resources-links .soon-tag { flex: none; font-size: 13px; }
@media (max-width: 760px) { html body main #resources-links.academic-section { width: calc(100% - 28px) !important; } }
@media (prefers-reduced-motion: reduce) {
  html body main #tasks .ht-lane { animation: none; }
  html body main #tasks .ht-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html body main #tasks .ht-tile:nth-child(n+11) { display: none; }
}

/* Suite explanations live with their demonstrations, without a second set of cards. */
html body main #tasks .ht-suite-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; gap: 9px 24px; margin-bottom: 22px;
}
html body main #tasks .ht-suite-head h3 { grid-column: 1; grid-row: 1; }
html body main #tasks .ht-suite-head a { grid-column: 2; grid-row: 1; }
html body main #tasks .ht-suite-head p {
  grid-column: 1 / -1; grid-row: 2; max-width: 78ch;
  font-weight: 400; line-height: 1.55 !important; text-wrap: pretty;
}
@media (max-width: 760px) {
  html body main #tasks .ht-suite-head { gap: 8px 12px; }
  html body main #tasks .ht-suite-head a { font-size: 14px; }
  html body main #tasks .ht-suite-head p { font-size: 16px !important; }
}

/* A compact three-row gallery: keep the original camera proportions. */
html body main #tasks.academic-section { padding-top: 40px !important; padding-bottom: 24px !important; }
html body main #tasks .ht-suite { margin-top: 22px; padding-top: 18px; }
html body main #tasks .ht-suite:first-of-type { margin-top: 24px; }
html body main #tasks .ht-suite-head { margin-bottom: 14px; gap: 5px 24px; }
html body main #tasks .ht-tile { width: 184px; margin-right: 14px; }
html body main #tasks .ht-name { font-size: 16px; line-height: 1.4; }
html body main #tasks .ht-code { margin-top: 2px; }
@media (max-width: 760px) {
  html body main #tasks .ht-tile { width: 176px; }
}

/* Suite identity is a small accent beside a dark heading. */
html body main #tasks .ht-suite { border-color: var(--m2a-line, #dde3e6); margin-top: 28px; padding-top: 24px; }
html body main #tasks .ht-suite-head { gap: 8px 24px; margin-bottom: 18px; }
#home-suite-mind { --suite-color: var(--m2a-mind, #3c7561); }
#home-suite-act { --suite-color: var(--m2a-act, #3d6b83); }
#home-suite-mind2act { --suite-color: var(--m2a-mind2act, #866c32); }
html body main #tasks .ht-suite-head h3 { display: flex; align-items: center; gap: 12px; color: var(--m2a-ink, #17212b) !important; }
html body main #tasks .ht-suite-head h3::before { content: ''; width: 4px; height: 22px; border-radius: 1px; background: var(--suite-color); }
html body main #tasks .ht-suite-head a, html body main #resources-links .hr-go { color: var(--m2a-link, #205fbd); }
html body main #tasks .ht-suite-head p { color: var(--m2a-text, #303740) !important; }
html body main #tasks .ht-code { color: var(--m2a-muted, #4c5965); letter-spacing: .02em; }
html body main #tasks .ht-tile a:hover .ht-name { color: var(--m2a-link, #205fbd); }
html body main #resources-links .hr-icon { background: none; border-radius: 0; }

/* With JavaScript the rows are real scroll areas: drag with a mouse, swipe, or use a trackpad. */
html body main #tasks .ht-marquee.is-js { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
html body main #tasks .ht-marquee.is-js::-webkit-scrollbar { display: none; }
html body main #tasks .ht-marquee.is-js .ht-lane { animation: none; }
html body main #tasks .ht-marquee.is-dragging { cursor: grabbing; user-select: none; }
html body main #tasks .ht-marquee.is-dragging a { cursor: grabbing; }
html body main #tasks .ht-marquee.is-js img { -webkit-user-drag: none; }

/* Citation: BibTeX of the arXiv technical report below Resources. */
html body main #citation.academic-section { width: var(--home-content-width) !important; max-width: 1024px !important; margin: 0 auto !important; padding: 40px 0 24px !important; box-sizing: border-box; }
html body main #citation h2 { font-size: 34px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.025em !important; margin: 0 0 12px !important; color: #16263a !important; }
html body main #citation .hc-lead { margin: 0 0 18px !important; font-size: 17px !important; line-height: 1.6 !important; color: #35353b !important; }
html body main #citation .hc-box { position: relative; border: 1px solid #dde4e1; border-radius: 12px; background: #f6f9f7; }
html body main #citation pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #243d48; white-space: pre-wrap; overflow-wrap: anywhere; }
html body main #citation .hc-copy { position: absolute; top: 10px; right: 10px; padding: 5px 12px; border: 1px solid #cfd9d5; border-radius: 8px; background: #fff; font: 600 13px/1.4 var(--m2a-font-sans, system-ui, Arial, sans-serif); color: #2f6f5c; cursor: pointer; }
html body main #citation .hc-copy:hover { background: #eef4f1; }
@media (max-width: 760px) { html body main #citation.academic-section { width: calc(100% - 28px) !important; } html body main #citation pre { padding: 44px 14px 16px; font-size: 12.5px; } }

/* Figures from the arXiv technical report: Figure 1 in the introduction and Figure 2 between Tasks and the leaderboard. */
html body #introduction .intro-overview .intro-overview-zoom { display: block; cursor: zoom-in; }
html body .m2a-view { font-weight: 700; }
html body .m2a-view--mind { color: #416d62 !important; }
html body .m2a-view--act { color: #36566f !important; }
html body .m2a-view--mind2act { color: #8a6a2f !important; }
html body main #report-figures.academic-section { width: var(--home-content-width) !important; max-width: 1024px !important; margin: 0 auto !important; padding: 48px 0 16px !important; box-sizing: border-box; }
html body main #report-figures .rf-card { box-sizing: border-box; margin: 0; padding: 28px 28px 20px; border: 1px solid #dce3e5; border-radius: 16px; background: #fff; box-shadow: 0 10px 34px -22px rgba(22, 38, 58, .3); }
html body main #report-figures .rf-figure { display: block; cursor: zoom-in; }
html body main #report-figures .rf-figure img { display: block; width: 100%; height: auto; }
html body main #report-figures figcaption { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: #5a6b78; }
html body main #report-figures figcaption > b:first-child { color: #16263a; font-weight: 650; }
html body main #report-figures figcaption a { color: #2f6f5c; font-weight: 600; }
@media (max-width: 760px) { html body main #report-figures.academic-section { width: calc(100% - 28px) !important; padding-top: 36px !important; } html body main #report-figures .rf-card { padding: 16px 14px 14px; border-radius: 12px; } }
