/* The peer mentor training (/doorstops/peer-mentorship/training): six parts,
   one at a time once the script is running (without it, all six show in a
   column). Each part pairs a drawing with a little copy. The drawings rest in
   their finished state; .is-play replays them whenever a part comes up,
   unless the reader prefers less motion. Part 3 holds /doorstops/listen's
   practice conversation, styled by listen-flow.css. Scoped under .mt. */

.mt .mt-wrap { max-width: 1060px; margin: 0 auto; padding-top: 28px; padding-bottom: 48px; }
.mt .mt-back { margin: 0 0 14px; font-size: 14.5px; }
.mt .mt-back a { color: #148d75; font-weight: 600; }
.mt .mt-title { margin: 0 0 6px; font-family: var(--dl-font-display); font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: #16130f; }
.mt .mt-lede { max-width: 640px; margin: 0 0 22px; font-size: 16.5px; line-height: 1.55; color: #3d3831; }
.mt .mt-src { margin: 22px 0 0; font-size: 13px; color: #57524a; }
.mt .mt-src a { color: #148d75; }

.mt .mt-deck { container-type: inline-size; margin: 12px 0 10px; border: 2px solid #16130f; background: #fff; box-shadow: 6px 6px 0 #16130f; }
.mt .mt-deck-tabs { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0 !important; border-bottom: 2px solid #16130f; background: #16130f; }
.mt .mt-deck-tabs li { list-style: none; margin: 0; min-width: 0; background: #FBF6EC; }
.mt .mt-deck-tabs button {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; width: 100%; height: 100%;
  padding: 10px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: #16130f; font: inherit;
}
.mt .mt-deck-tabs button:hover { background: #fff; }
.mt .mt-deck-tabs button.is-on { background: #3ECFB0; }
.mt .mt-deck-n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; background: #16130f; color: #FBF6EC; font-size: 13px; font-weight: 700; }
.mt .mt-deck-name { font-family: var(--dl-font-display); font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.mt .mt-deck-min { font-size: 12px; line-height: 1.2; color: #57524a; }
.mt .mt-deck-tabs button.is-on .mt-deck-min { color: #16130f; }

.mt .mt-slide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px; min-height: 440px; }
.mt .mt-slide + .mt-slide { border-top: 2px solid #16130f; }
.mt .mt-deck.is-ready .mt-slide { border-top: 0; }
.mt .mt-deck.is-ready .mt-slide:not(.is-on) { display: none; }
.mt .mt-slide-wide { grid-column: 1 / -1; min-width: 0; }
.mt .mt-slide-art { margin: 0; padding: 22px; min-height: 340px; display: grid; align-content: center; gap: 14px; background: #FBF6EC; border: 2px solid #16130f; }
.mt .mt-slide-art > svg { display: block; width: 100%; height: auto; }
.mt .mt-slide-copy p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--bf-ink); }
.mt .mt-slide-copy p.mt-slide-kicker { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #148d75; }
.mt .mt-slide-title { margin: 0 0 12px; font-family: var(--dl-font-display); font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.15; color: #16130f; }
.mt .mt-slide-copy p.mt-slide-run { margin-top: 14px; padding: 9px 12px; background: #FDF3D8; border-left: 4px solid #16130f; font-size: 14.5px; }
.mt .mt-tell-list { margin: 0 0 10px; padding-left: 22px; }
.mt .mt-tell-list li { list-style: decimal; margin: 2px 0; font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--bf-ink); }
.mt .mt-deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 14px; border-top: 2px solid #16130f; }
.mt .mt-deck-nav .bf-btn { margin: 0; }
.mt .mt-deck-nav .bf-btn:disabled { opacity: .35; cursor: default; }
.mt .mt-deck-count { font-size: 14px; font-weight: 600; color: #57524a; }
.mt .mt-deck:not(.is-ready) .mt-deck-nav { display: none; }

/* 1. one line from a freshman, answered three ways */
.mt .mt-art-role { gap: 10px; }
.mt .mt-role-q { justify-self: start; margin: 0 0 4px; padding: 8px 12px; border: 2px solid #16130f; background: #E6ECFF; font-family: var(--dl-font-display); font-size: 16px; font-weight: 700; box-shadow: 3px 3px 0 #16130f; }
.mt .mt-role { display: grid; grid-template-columns: 92px 1fr; align-items: stretch; border: 2px solid #16130f; background: #fff; }
.mt .mt-role-h { position: relative; display: grid; place-items: center; margin: 0; padding: 6px; border-right: 2px solid #16130f; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.mt .mt-role.is-no .mt-role-h { background: #FDE7E0; color: #57524a; }
.mt .mt-role.is-yes { box-shadow: 4px 4px 0 #16130f; }
.mt .mt-role.is-yes .mt-role-h { background: #3ECFB0; }
.mt .mt-role .mt-msg { margin: 0; padding: 9px 12px; font-size: 14.5px; line-height: 1.4; }
.mt .mt-role.is-no .mt-msg { color: #8a8278; }
.mt .mt-role.is-no .mt-role-h::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; background: #E8505B; transform-origin: left; }

/* 2. rescheduling ahead of time, and the shape of every meeting */
.mt .mt-art-show { justify-items: center; gap: 18px; }
.mt .mt-art-show > * { width: 100%; max-width: 320px; }
.mt .mt-phone { display: grid; gap: 7px; align-content: start; padding: 10px 10px 16px; border: 3px solid #16130f; border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 #16130f; }
.mt .mt-phone-top { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid #F1EADB; font-size: 13px; font-weight: 700; text-align: center; }
.mt .mt-text { max-width: 88%; margin: 0; padding: 6px 10px; border: 2px solid #16130f; border-radius: 12px; font-size: 13px; line-height: 1.35; }
.mt .mt-text.is-me { justify-self: end; background: #3ECFB0; }
.mt .mt-text.is-them { justify-self: start; background: #F1EADB; }
.mt .mt-receipt { padding: 12px 14px 14px; background: #fff; border: 2px solid #16130f; box-shadow: 4px 4px 0 #16130f; transform: rotate(1.5deg); }
.mt .mt-receipt-h { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px dashed #16130f; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mt .mt-receipt-row { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; font-size: 13.5px; line-height: 1.3; }
.mt .mt-receipt-row span { flex: 1; }
.mt .mt-receipt-row b { font-family: var(--dl-font-display); font-size: 18px; white-space: nowrap; }
.mt .mt-receipt-row b::after { content: ' min'; font-size: 11px; font-weight: 600; }

/* 3. what to say instead */
.mt .mt-art-talk { gap: 8px; }
.mt .mt-swap-head, .mt .mt-swap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt .mt-swap-head span { padding: 4px 10px; border: 2px solid #16130f; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mt .mt-swap-head .is-no { background: #FDE7E0; }
.mt .mt-swap-head .is-yes { background: #3ECFB0; }
.mt .mt-swap span { position: relative; display: flex; align-items: center; padding: 8px 10px; font-size: 14px; line-height: 1.35; }
.mt .mt-swap .is-no { color: #16130f; background: #fff; border: 2px dashed #c9bfae; }
.mt .mt-swap .is-yes { background: #E4F6E9; border: 2px solid #16130f; font-weight: 700; }
.mt .mt-swap .is-yes::before { content: '\2192'; position: absolute; left: -15px; top: 50%; margin-top: -11px; font-weight: 700; color: #16130f; }

/* 4. the lock */
.mt .mt-art-lock > svg { width: 46%; margin: 0 auto; }
.mt .mt-lock-say { margin: 0; padding: 10px 12px; border: 2px solid #16130f; background: #fff; box-shadow: 4px 4px 0 #16130f; font-size: 14.5px; font-weight: 600; line-height: 1.45; text-align: center; }

/* 5. three noes */
.mt .mt-no { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid #16130f; background: #fff; }
.mt .mt-no-icon { display: block; width: 36px; height: 36px; }
.mt .mt-no-what { font-size: 16px; font-weight: 700; }
.mt .mt-no-stamp {
  padding: 2px 10px;
  border: 3px solid #E8505B; color: #E8505B; font-family: var(--dl-font-display); font-size: 22px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; transform: rotate(-10deg); background: rgba(255, 255, 255, .85);
}

/* 6. the goodbye note, out of its envelope */
.mt .mt-art-bye { justify-items: center; gap: 4px; }
.mt .mt-env { position: relative; width: min(100%, 340px); height: 270px; overflow: hidden; }
.mt .mt-letter {
  position: absolute; left: 22px; right: 22px; bottom: 66px; z-index: 1; padding: 12px 16px 10px;
  background: #fff; border: 2px solid #16130f; box-shadow: 3px 3px 0 #16130f;
  font-family: var(--dl-caveat, cursive); font-size: 19px; line-height: 1.15; color: #16130f; transform: rotate(-1.5deg);
}
.mt .mt-letter p { margin: 0 0 6px; }
.mt .mt-letter .mt-letter-hi { font-weight: 700; }
.mt .mt-letter .mt-letter-sign { margin: 0; text-align: right; font-weight: 700; color: #148d75; }
.mt .mt-env-front { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 96px; background: #FFD65A; border: 2px solid #16130f; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.mt .mt-env-front::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1.5px), #16130f calc(50% - 1.5px), #16130f calc(50% + 1.5px), transparent calc(50% + 1.5px)) left / 50% 100% no-repeat, linear-gradient(to top left, transparent calc(50% - 1.5px), #16130f calc(50% - 1.5px), #16130f calc(50% + 1.5px), transparent calc(50% + 1.5px)) right / 50% 100% no-repeat; }
.mt .mt-env-flap { position: absolute; left: 0; right: 0; bottom: 94px; z-index: 0; height: 60px; background: #F5C94A; border: 2px solid #16130f; clip-path: polygon(0 100%, 50% 0, 100% 100%); transform-origin: bottom; }

@media (prefers-reduced-motion: no-preference) {
  .mt .is-play .mt-role-q { animation: mt-rise .4s .1s both ease-out; }
  .mt .is-play .mt-role { animation: mt-rise .4s both ease-out; }
  .mt .is-play .mt-role:nth-of-type(2) { animation-delay: .6s; }
  .mt .is-play .mt-role:nth-of-type(3) { animation-delay: 1.1s; }
  .mt .is-play .mt-role:nth-of-type(4) { animation-delay: 1.8s; }
  .mt .is-play .mt-role.is-no .mt-role-h::after { animation: mt-strike .3s both ease-out; }
  .mt .is-play .mt-role:nth-of-type(2) .mt-role-h::after { animation-delay: 1.5s; }
  .mt .is-play .mt-role:nth-of-type(3) .mt-role-h::after { animation-delay: 1.7s; }

  .mt .is-play .mt-text { animation: mt-rise .35s both ease-out; }
  .mt .is-play .mt-text:nth-of-type(2) { animation-delay: .3s; }
  .mt .is-play .mt-text:nth-of-type(3) { animation-delay: 1.1s; }
  .mt .is-play .mt-text:nth-of-type(4) { animation-delay: 1.9s; }
  .mt .is-play .mt-receipt { animation: mt-print .7s 2.4s both cubic-bezier(.3, 1.2, .5, 1); }

  .mt .is-play .mt-swap .is-no { animation: mt-rise .3s both ease-out; }
  .mt .is-play .mt-swap .is-yes { animation: mt-pop .35s both cubic-bezier(.3, 1.5, .6, 1); }
  .mt .is-play .mt-swap:nth-of-type(2) .is-no { animation-delay: .2s; }
  .mt .is-play .mt-swap:nth-of-type(2) .is-yes { animation-delay: .6s; }
  .mt .is-play .mt-swap:nth-of-type(3) .is-no { animation-delay: 1s; }
  .mt .is-play .mt-swap:nth-of-type(3) .is-yes { animation-delay: 1.4s; }
  .mt .is-play .mt-swap:nth-of-type(4) .is-no { animation-delay: 1.8s; }
  .mt .is-play .mt-swap:nth-of-type(4) .is-yes { animation-delay: 2.2s; }
  .mt .is-play .mt-swap:nth-of-type(5) .is-no { animation-delay: 2.6s; }
  .mt .is-play .mt-swap:nth-of-type(5) .is-yes { animation-delay: 3s; }

  .mt .is-play .mt-lock-shackle { animation: mt-shut .5s .5s both cubic-bezier(.5, 0, .7, 1.4); }
  .mt .is-play .mt-lock-say { animation: mt-pop .45s 1.1s both cubic-bezier(.3, 1.5, .6, 1); }

  .mt .is-play .mt-no-stamp { animation: mt-stamp .3s both cubic-bezier(.4, 0, .9, 1.4); }
  .mt .is-play .mt-no:nth-child(1) .mt-no-stamp { animation-delay: .4s; }
  .mt .is-play .mt-no:nth-child(2) .mt-no-stamp { animation-delay: .8s; }
  .mt .is-play .mt-no:nth-child(3) .mt-no-stamp { animation-delay: 1.2s; }

  .mt .is-play .mt-env-flap { animation: mt-flap .5s .3s both ease-in-out; }
  .mt .is-play .mt-letter { animation: mt-letter .9s .8s both cubic-bezier(.3, 1.1, .5, 1); }
}
@keyframes mt-pop { from { transform: scale(0); opacity: 0; } }
@keyframes mt-rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes mt-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mt-print { from { transform: translateY(-14px) rotate(0); opacity: 0; } }
@keyframes mt-shut { from { transform: translateY(-22px); } to { transform: translateY(0); } }
@keyframes mt-stamp { from { transform: rotate(-10deg) scale(2.4); opacity: 0; } to { transform: rotate(-10deg) scale(1); opacity: 1; } }
/* closed, then the flap swings up and the note slides out */
@keyframes mt-flap { from { transform: scaleY(-1); z-index: 3; } 50% { transform: scaleY(0); z-index: 3; } 51% { z-index: 0; } to { transform: none; z-index: 0; } }
@keyframes mt-letter { from { transform: translateY(170px) rotate(0); } }

/* sized by the deck's own width, since the side nav eats into the page */
@container (max-width: 860px) {
  .mt .mt-deck-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 720px) {
  .mt .mt-slide { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .mt .mt-slide-art { min-height: 0; justify-items: center; }
  .mt .mt-slide-art > * { width: 100%; max-width: 440px; }
  .mt .mt-art-lock > svg { width: 30%; }
  .mt .mt-deck-nav { padding: 12px 16px; }
}
@container (max-width: 420px) {
  .mt .mt-deck-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt .mt-deck-tabs button { padding: 8px; }
}
.mt [hidden] { display: none !important; }
