/* Sandbox flag ?hero= on the map at rest (src/map/index.njk, hero-flag.js). Absent: today's hero, unchanged.
   box:  the heading sits on the ask box's top edge as its label; the line under it stays for screen readers only (the
         box's own placeholder says its first half; the masthead's "Use in your agent" says the second). The featured
         link, "+5 more" and Start here stay on the box's row.
   fade: today's hero; the heading and line fade once the visitor touches the map or after a few seconds, and come back
         when the map is at rest and idle (hero-flag.js sets html.hero-quiet). Layout does not move: only opacity.
   Map tokens only (app.css), so both themes hold. */
html[data-hero="box"] .hero > #headline,
html[data-hero="box"] .hero > .kicker { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-hero="box"] .hero > .slot, html[data-hero="box"] .hero-aside { grid-row: 1 !important; }
/* below the rail the hero is one column (app.css, max-width 1179px): Start here and How it works go on the row under the
   box, never in its cell, where the box covered them. Short viewports keep them beside it on row 1 (app.css). */
@media (max-width: 1179px) and (min-height: 521px) {
  html[data-hero="box"] .hero-aside { grid-row: 2 !important; }
}
html[data-hero="box"] .hero > .slot { position: relative; }
html[data-hero="box"] .hero > .slot::before {
  content: attr(data-label);
  position: absolute; left: 22px; top: 0; transform: translateY(-58%); z-index: 1;
  padding: 0 8px; border-radius: 999px; background: var(--panel-solid);
  font: 500 var(--text-ui)/1.5 var(--serif); color: var(--ink); white-space: nowrap; pointer-events: none;
}
html[data-hero="fade"] .hero > #headline,
html[data-hero="fade"] .hero > .kicker { transition: opacity .8s var(--ease); }
html[data-hero="fade"].hero-quiet .hero > #headline,
html[data-hero="fade"].hero-quiet .hero > .kicker { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html[data-hero="fade"] .hero > #headline, html[data-hero="fade"] .hero > .kicker { transition: none; }
}
