/* ============================================================
   /moves pages, rendered by api/moves.js. The swimlane follows the
   app's StrategySwimlane.tsx: one line per move on a shared month
   axis. Under 768px the title sits above its line.
   ============================================================ */
  .moves { --mv-green: #8ee5b3; --mv-label: 240px; --mv-pad: 14px; }

  .mv-kicker-link { color: inherit; text-decoration: none; }
  .mv-kicker-link:hover { color: var(--mint-bright); }

  /* ---- logo avatar, initials underneath ---- */
  .mv-avatar {
    position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
    background: rgba(148,163,184,0.16); color: var(--text-secondary); font-size: 13px; font-weight: 600;
  }
  .mv-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
  .mv-avatar--hero { width: 56px; height: 56px; border-radius: 14px; margin-bottom: var(--sp-md); font-size: 18px; }

  /* ---- swimlane ---- */
  .mv-swimlane { margin-bottom: var(--sp-2xl); }

  .mv-ruler { display: grid; grid-template-columns: var(--mv-label) 1fr; padding: 0 var(--mv-pad); }
  .mv-ruler-track { position: relative; height: 20px; }
  .mv-tick { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
  .mv-tick--edge { font-weight: 600; }

  .mv-rows { position: relative; margin-top: 6px; }
  .mv-grid { position: absolute; top: 0; bottom: 0; left: calc(var(--mv-label) + var(--mv-pad)); right: var(--mv-pad); pointer-events: none; }
  .mv-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-subtle); }
  .mv-gridline--edge { width: 0; background: none; border-left: 1px dashed rgba(255,255,255,0.28); }

  .mv-row {
    position: relative; display: grid; grid-template-columns: var(--mv-label) 1fr; align-items: center;
    min-height: 72px; margin-bottom: 10px; padding: 12px var(--mv-pad); border-radius: 14px;
    border: 1px solid var(--border-subtle); text-decoration: none;
    background: linear-gradient(180deg, rgba(148,163,184,0.12), rgba(148,163,184,0.035));
    transition: background 0.15s, border-color 0.15s;
  }
  .mv-row:hover {
    z-index: 5; border-color: rgba(255,255,255,0.28);
    background: linear-gradient(180deg, rgba(148,163,184,0.18), rgba(148,163,184,0.06));
  }
  .mv-row-title { padding-right: 16px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text-primary); }

  .mv-track { position: relative; display: block; min-height: 24px; }
  .mv-line {
    position: absolute; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 6px;
    background: var(--mv-green); box-shadow: 0 0 14px rgba(142,229,179,0.4);
  }
  .mv-dot {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 13px; height: 13px; border-radius: 999px; border: 2px solid rgba(14,14,15,0.9);
    background: var(--mv-green); color: #0b0b0c; font-size: 9px; font-weight: 700; line-height: 1;
  }
  .mv-dot--count { height: 16px; padding: 0 4px; }
  .mv-dot--red { background: #ef4444; }
  .mv-arrow {
    position: absolute; top: 50%; transform: translate(-1px, -50%); width: 0; height: 0;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--mv-green);
  }

  /* hover card, same content as the evidence list below */
  .mv-tip {
    display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 60;
    width: 340px; padding: 0.75rem; border-radius: 10px; pointer-events: none; text-align: left;
    background: #191b21; border: 1px solid var(--border-subtle); box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  }
  @media (hover: hover) { .mv-dot:hover .mv-tip { display: block; } }
  .mv-tip-row { display: block; margin-bottom: 10px; }
  .mv-tip-row:last-child { margin-bottom: 0; }
  .mv-tip-date { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
  .mv-tip-date--red { color: #ef4444; }
  .mv-tip-text { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--text-secondary); }
  .mv-tip-more { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 400; color: var(--text-muted); }

  /* ---- move detail ---- */
  .mv-moves { max-width: 760px; margin: 0 auto; }
  .mv-move { padding: var(--sp-xl) 0; border-top: 1px solid var(--border-subtle); scroll-margin-top: 84px; }
  .mv-move h2 { margin: 0 0 var(--sp-md); font-family: var(--font-serif); font-size: var(--fz-h3); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-primary); }
  .mv-move > p { margin: 0 0 var(--sp-md); font-size: var(--fz-body); line-height: 1.6; color: var(--text-secondary); }

  .mv-ev { list-style: none; margin: var(--sp-lg) 0 0; padding: 0; }
  .mv-ev li { display: grid; grid-template-columns: 92px 1fr; gap: 0 var(--sp-md); padding: 10px 0; border-top: 1px solid var(--border-subtle); }
  .mv-ev time { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
  .mv-ev p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
  .mv-ev .mv-ev-source { margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
  .mv-ev-source a { color: var(--text-muted); }
  .mv-ev-source a:hover { color: var(--mint-bright); }
  .mv-ev-flag { color: #ef4444; }

  .mv-note { max-width: 760px; margin: var(--sp-lg) auto 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
  .mv-note--center { text-align: center; }
  .mv-note a { color: var(--text-secondary); }
  .mv-note a:hover { color: var(--mint-bright); }

  /* ---- index ---- */
  .moves [hidden] { display: none !important; }

  .mv-search { position: relative; max-width: 520px; margin: 0 auto var(--sp-xl); }
  .mv-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
  .mv-search input {
    width: 100%; padding: 0.85rem 1.2rem 0.85rem 48px; border-radius: 999px;
    font-family: "DM Sans", sans-serif; font-size: var(--fz-body); color: var(--text-primary);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .mv-search input::placeholder { color: var(--text-muted); }
  .mv-search input:focus { outline: none; border-color: rgba(78,207,143,0.5); box-shadow: 0 0 0 3px rgba(78,207,143,0.12); }

  /* 1fr rows make every card as tall as the tallest */
  .mv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
  .mv-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
    border: 1px solid var(--border-subtle); text-decoration: none;
    background: linear-gradient(180deg, rgba(148,163,184,0.12), rgba(148,163,184,0.035));
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .mv-card:hover { border-color: rgba(255,255,255,0.28); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
  .mv-cover { display: block; flex: 0 0 auto; height: 88px; background-color: #0d1712; }
  .mv-card-body { display: flex; flex: 1; flex-direction: column; padding: 0 20px 18px; }
  .mv-avatar--card {
    width: 52px; height: 52px; margin: -26px 0 12px; border-radius: 13px; font-size: 15px;
    background: #1b2420; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  }
  .mv-card h2 {
    margin: 0; font-family: var(--font-serif); font-size: var(--fz-h4); font-weight: 500; line-height: 1.25; color: var(--text-primary);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .mv-card-meta { margin: 4px 0 14px; font-size: 13px; color: var(--mv-green); }
  .mv-card ul { list-style: none; margin: 0 0 16px; padding: 0; }
  .mv-card li { position: relative; margin-bottom: 7px; padding-left: 17px; font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); }
  .mv-card li span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .mv-card li::before {
    content: ""; position: absolute; left: 1px; top: 0.5em; width: 7px; height: 7px; border-radius: 50%;
    background: var(--mv-green); box-shadow: 0 0 8px rgba(142,229,179,0.55);
  }
  .mv-card-foot {
    display: flex; align-items: center; gap: 6px; margin: auto 0 0; padding-top: 12px;
    border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--text-muted);
  }
  .mv-card-foot .arrow { margin-left: auto; transition: transform 0.2s var(--ease); }
  .mv-card:hover .mv-card-foot { color: var(--text-secondary); }
  .mv-card:hover .mv-card-foot .arrow { transform: translateX(3px); color: var(--mv-green); }

  /* no match: the search turns into a demo ask */
  .mv-empty {
    display: grid; justify-items: center; gap: var(--sp-md); max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vh, 3rem) 1.5rem;
    text-align: center; border-radius: 20px; border: 1px solid var(--border-subtle);
    background:
      radial-gradient(40% 90% at 15% 20%, rgba(78,207,143,0.18), rgba(78,207,143,0) 70%),
      radial-gradient(35% 90% at 85% 80%, rgba(184,169,212,0.16), rgba(184,169,212,0) 70%),
      #0d1712;
  }
  .mv-empty p { margin: 0; font-size: 14px; color: var(--text-muted); }
  .mv-empty h2 { margin: 0; font-family: var(--font-serif); font-size: var(--fz-h3); font-weight: 500; line-height: 1.25; color: var(--text-primary); overflow-wrap: anywhere; }
  .mv-empty em { color: var(--mint-bright); }

  @media (max-width: 767px) {
    .moves { --mv-label: 0px; }
    .mv-grid { display: none; }
    .mv-row { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
    .mv-row-title { padding-right: 0; }
    .mv-ev li { grid-template-columns: 1fr; }
  }
