/* Styles for the meetings section of the home page (meetings.js). Uses the colour variables
   from styles.css. */
.mt-sec { padding-top: clamp(72px, 10vw, 128px); }
.mt-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.mt-head h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; }
.mt-head p { margin: 18px auto 0; max-width: 44ch; font-size: 19px; color: var(--ink-2); }

.ma svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@keyframes mpulse { 50% { transform: scale(1.7); } }

/* A: three steps */
.ma { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.ma-step { position: relative; border-radius: 30px; padding: 26px; background: var(--sand); min-height: 372px; display: flex; flex-direction: column; gap: 14px; transition: background 0.45s ease, transform 0.45s ease; }
.ma-step.on { background: var(--peach); transform: translateY(-6px); }
.ma-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: 14px; font-weight: 700; transition: background 0.45s ease, color 0.45s ease; }
.ma-step.on .ma-num { background: var(--ink); color: var(--paper); }
.ma-art { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
/* A step that has not had its turn yet is quieter, but its text keeps full reading contrast. */
.ma-title { font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-2); transition: color 0.45s ease; }
.ma-step.on .ma-title, .ma-step.done .ma-title { color: var(--ink); }
.ma .r { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.ma-step.on .r, .ma-step.done .r { opacity: 1; transform: none; }
.ma-step.on .r:nth-child(2) { transition-delay: 0.3s; } .ma-step.on .r:nth-child(3) { transition-delay: 0.7s; } .ma-step.on .r:nth-child(4) { transition-delay: 0.95s; }
.ma-step.on .ma-sheet + .ma-proj { transition-delay: 0.9s; }
.ma-person { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding: 9px 16px 9px 14px; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600; }
.ma-person i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: block; }
.ma-person.alt i { background: var(--ink); }
.ma-step.on .ma-person i { animation: mpulse 0.8s ease-in-out infinite; }
.ma-step.on .ma-person.alt i { animation-delay: 0.4s; }
.ma-small { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.ma-sheet { background: var(--card); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; box-shadow: 0 14px 30px rgba(60, 30, 15, 0.1); margin-bottom: 4px; }
.ma-sheet b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ma-sheet mark { background: rgba(212, 71, 46, 0.12); color: var(--coral-text); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.ma-todo { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ma-todo::before { content: ""; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--ink-3); flex: none; }
.ma-proj { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.55); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.ma-tick { margin-left: auto; display: flex; }
.ma-proj.pick { background: var(--card); color: var(--coral-text); font-weight: 600; box-shadow: 0 10px 24px rgba(60, 30, 15, 0.1); }
.ma-term { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 20px 20px; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 13.5px; line-height: 1.4; }
.ma-term .dim { color: rgba(251, 248, 242, 0.6); }
.ma-term .ok { color: #ffa98f; }

/* On a phone the steps are stacked and read one after another while scrolling, so they are
   all shown in full instead of lighting up in turn. */
@media (max-width: 900px) {
  .ma { grid-template-columns: minmax(0, 1fr); }
  .ma-step, .ma-step.on, .ma-step.done { min-height: 0; transform: none; background: var(--sand); }
  .ma-title { color: var(--ink); }
  .ma-step:nth-child(2) { background: var(--peach); }
  .ma .r { opacity: 1; transform: none; transition: none; }
  .ma-step.on .ma-num { background: var(--card); color: inherit; }
  .ma-art { padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ma-step.on .ma-person i { animation: none; }
}
