/* ═══════════════════════════════════════════════════════════
   Errand board - "things founders hand over"
   Lives inside #autopilot, between .wm2a-hubstage and .wm2a-weekly.
   Class prefix: wm2e
   The idea it encodes: a human sentence (display serif, italic)
   becoming a scheduled machine job (mono stamp). Nothing else on
   the page sets body-level text in the display face - that contrast
   is the point, so everything around it stays quiet.
   ═══════════════════════════════════════════════════════════ */

.wm2e {
  position: relative;
  margin: 92px auto 0;
  max-width: 1120px;
}

.wm2e-head { text-align: center; }

.wm2e-eyebrow {
  display: block;
  font-family: var(--font-mono), "Inconsolata", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #59bfff;
}

.wm2e-head h3 {
  margin: 16px 0 0;
  font-family: var(--font-display), "Larken", Georgia, serif;
  font-weight: 400;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #f2f6ff;
}

.wm2e-head > p {
  margin: 14px auto 0;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(214, 228, 255, 0.66);
}

/* ── tabs ───────────────────────────────────────────────── */
.wm2e-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 0;
}

.wm2e-tabs .wm2e-tab {
  appearance: none;
  border: 1px solid rgba(108, 178, 255, 0.22);
  background: rgba(10, 22, 46, 0.6);
  border-radius: 999px;
  padding: 9px 17px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(214, 228, 255, 0.74);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.wm2e-tabs .wm2e-tab:hover { color: #f2f6ff; border-color: rgba(108, 178, 255, 0.42); }

.wm2e-tabs .wm2e-tab.is-on {
  color: #04101f;
  background: linear-gradient(180deg, #8ed8ff, #59bfff);
  border-color: transparent;
  font-weight: 600;
}

.wm2e-tabs .wm2e-tab:focus-visible {
  outline: 2px solid #8ed8ff;
  outline-offset: 3px;
}

/* ── panels ─────────────────────────────────────────────── */
.wm2e-panels { margin: 26px 0 0; }

.wm2e-panels .wm2e-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wm2e-panels .wm2e-panel[hidden] { display: none; }

@media (min-width: 860px) {
  .wm2e-panels .wm2e-panel { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ── card ───────────────────────────────────────────────── */
.wm2e-panels .wm2e-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(108, 178, 255, 0.16);
  border-left: 2px solid rgba(89, 191, 255, 0.5);
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(180deg, rgba(14, 28, 58, 0.72), rgba(10, 22, 46, 0.58));
}

.wm2e-panels .wm2e-when {
  font-family: var(--font-mono), "Inconsolata", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #68c9ff;
}

.wm2e-panels .wm2e-say {
  margin: 0;
  font-family: var(--font-display), "Larken", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: #f2f6ff;
  text-wrap: pretty;
}

.wm2e-panels .wm2e-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 2px;
}

/* dark-on-dark marks (Notion, X) need a chip to stay legible */
.wm2e-panels .wm2e-tools img {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 7px;
  background: rgba(233, 242, 255, 0.07);
  border: 1px solid rgba(108, 178, 255, 0.16);
  object-fit: contain;
}

/* ── foot ───────────────────────────────────────────────── */
.wm2e-foot {
  margin: 24px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(214, 228, 255, 0.62);
}

.wm2e-foot .blue { color: #8ed8ff; font-weight: 600; }

/* ── motion: panel swap ─────────────────────────────────── */
.wm2e-panels .wm2e-panel.is-swapping > .wm2e-card {
  animation: wm2eIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wm2e-panels .wm2e-panel.is-swapping > .wm2e-card:nth-child(2) { animation-delay: 0.04s; }
.wm2e-panels .wm2e-panel.is-swapping > .wm2e-card:nth-child(3) { animation-delay: 0.08s; }
.wm2e-panels .wm2e-panel.is-swapping > .wm2e-card:nth-child(4) { animation-delay: 0.12s; }

@keyframes wm2eIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wm2e-panels .wm2e-panel.is-swapping > .wm2e-card { animation: none; }
  .wm2e-tabs .wm2e-tab { transition: none; }
}

@media (max-width: 560px) {
  .wm2e { margin-top: 68px; }
  .wm2e-panels .wm2e-card { padding: 17px 18px 16px; }
}
