/* Homepage discovery strip; native scrolling also works without JavaScript. */
html body[data-mapkai-page] .home-page .home-minimal {
  min-height: 280px;
  padding-block: 24px;
  padding-inline: 0;
  grid-template-columns: minmax(0, 1fr);
}
html body[data-mapkai-page] .home-page .hero .eyebrow { margin: 0 0 14px; }
html body[data-mapkai-page] .home-page .hero h1 { max-width: 820px; font-size: clamp(2.25rem, 4.8vw, 4.4rem); font-weight: 650; line-height: 1.06; }
html body[data-mapkai-page] .home-page .hero-copy { max-width: 720px; margin: 16px 0 0; }
html body[data-mapkai-page] .home-page .hero-microcopy { margin: 14px 0 0; }
html body[data-mapkai-page] .home-page .hero-actions { margin-top: 24px; }
.home-toolbox { margin-top: 24px; }
.home-toolbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.home-toolbox-heading h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.home-toolbox-heading p { margin: 5px 0 0; font-size: 13px; }
.home-toolbox-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.home-toolbox-all { color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.home-toolbox-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-toolbox-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }
.home-toolbox-toggle[hidden] { display: none; }
.home-toolbox-toggle:hover { color: var(--blue); border-color: var(--blue); }
.home-toolbox-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.home-toolbox-toggle .home-toolbox-play, .home-toolbox-toggle[aria-pressed="true"] .home-toolbox-pause { display: none; }
.home-toolbox-toggle[aria-pressed="true"] .home-toolbox-play { display: block; }
.home-toolbox-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding: 5px; margin: -5px; }
.home-toolbox-viewport::-webkit-scrollbar { display: none; }
.home-toolbox-track { display: flex; width: max-content; }
.home-toolbox-group { display: flex; gap: 14px; padding-right: 14px; }
.home-toolbox-card { display: flex; align-items: center; gap: 14px; width: 272px; min-height: 110px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-sizing: border-box; transition: border-color 150ms ease, background 150ms ease; }
.home-toolbox-card:hover { border-color: var(--blue); background: var(--surface-soft); }
.home-toolbox-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--surface-soft); color: var(--blue); }
.home-toolbox-icon svg { width: 25px; height: 25px; }
.home-toolbox-card[data-home-tool="dishkai"] .home-toolbox-icon { color: #b46b23; background: #b46b2310; }
.home-toolbox-card[data-home-tool="frameworks"] .home-toolbox-icon, .home-toolbox-card[data-home-tool="pdc"] .home-toolbox-icon { color: var(--violet); background: #818cf810; }
.home-toolbox-card[data-home-tool="music"] .home-toolbox-icon, .home-toolbox-card[data-home-tool="metronome"] .home-toolbox-icon { color: #219287; background: #21928710; }
.home-toolbox-copy { flex: 1; min-width: 0; }
.home-toolbox-copy strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.home-toolbox-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-toolbox-arrow { align-self: flex-start; color: var(--muted-soft); font-size: 14px; }
@media(max-width:600px) {
  html body[data-mapkai-page] .home-page .home-minimal { min-height: auto; padding: 18px 0 28px; }
  html body[data-mapkai-page] .home-page .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .home-toolbox-heading { gap: 12px; align-items: flex-start; }
  .home-toolbox-heading h2 { font-size: 18px; }
  .home-toolbox-heading p { max-width: 190px; font-size: 12px; }
  .home-toolbox-controls { gap: 10px; }
  .home-toolbox-all { font-size: 12px; white-space: nowrap; }
  .home-toolbox-toggle { width: 34px; height: 34px; }
  .home-toolbox-card { width: 248px; min-height: 108px; padding: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-toolbox-duplicate { display: none; }
  .home-toolbox-card { transition: none; }
}
