/* Deltas for the peer mentorship flow (/doorstops/peer-mentorship).

   The step system, cards and templates come from bathroom-flow.css,
   repainted for the zine by components/flow/flow-css.js. This file adds what
   only this page has: the link-outs above the steps, the research list, the
   design cards (grade match, who, format, when), the training checklist and
   scenarios, the matcher and the year plan.

   Everything inside a step is drawn with rules, not boxes: the step is
   already the card. */

.pm .bf-title { max-width: 15ch; margin-left: auto; margin-right: auto; }
.pm .pm-hero-sub {
  max-width: 600px;
  margin: 0 auto 26px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--dl-muted);
  text-align: center;
}

/* it only speaks up when the directory fails, so it takes no room otherwise */
#bf-school-status:empty { display: none; }
.pm a { display: inline; }

/* Any class rule with a `display` beats the browser's own `[hidden]`. */
.pm [hidden] { display: none !important; }

/* folds open flush with the text above them, not indented under the caret */
.pm .bf-solution-body { padding-left: 0; }

/* ------------------------------------------------- the link-outs */

.pm .pm-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 28px; }
.bf-page.pm a.pm-fork-card {
  display: grid; gap: 4px; align-content: start;
  padding: 16px 18px; border: 3px solid #16130f; background: #fff; box-shadow: 5px 5px 0 #16130f;
  color: #16130f; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.bf-page.pm a.pm-fork-card:hover { transform: translateY(-2px); box-shadow: 7px 7px 0 #16130f; background: #FDF3D8; }
.pm .pm-fork-emoji { display: block; font-size: 26px; }
.pm .pm-fork-q { display: block; font-family: var(--dl-font-display); font-size: 18px; font-weight: 700; }
.pm .pm-fork-a { display: block; font-size: 15px; color: #148d75; font-weight: 600; }
@media (max-width: 620px) { .pm .pm-fork { grid-template-columns: 1fr; } }


/* ------------------------------------------------------ shared bits */

.pm .pm-part {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
  border: 2px solid #16130f; border-radius: 0; background: #E4F6E9;
  color: #16130f; font-size: 14px; font-weight: 700; vertical-align: 1px;
}
.pm .bf-step-body p.pm-note, .pm p.pm-note {
  margin: 12px 0 16px; padding: 10px 14px; background: #E4F6E9;
  color: var(--bf-ink); font-size: 15.5px; line-height: 1.6;
}
.pm .bf-step-body p.pm-warn, .pm p.pm-warn {
  margin: 12px 0; padding: 10px 14px; background: #FDF3D8;
  color: var(--bf-ink); font-size: 15px; line-height: 1.55;
}
.pm .pm-muted-line { margin: 8px 0; font-size: 14.5px; line-height: 1.55; color: var(--bf-soft); }
.pm .pm-hint { margin: 2px 0 14px; font-size: 14px; line-height: 1.5; color: var(--bf-soft); }
.pm .pm-find { margin: 8px 0 0; font-size: 14px; color: var(--bf-soft); }
.pm .bf-template > .pm-find { margin: -4px 0 0; padding: 0 18px 16px; }
.pm .pm-src, .bf-page.pm .bf-step-body p.pm-src, .bf-page.pm .bf-solution p.pm-src { font-size: 12px; line-height: 1.5; color: var(--bf-soft); }

.pm .pm-list { list-style: none; padding: 0 !important; margin: 6px 0 14px; border-top: 2px solid #16130f; border-bottom: 2px solid #16130f; }
.pm .pm-list li, .pm .bf-solution .pm-list li {
  list-style: none; margin: 0; padding: 11px 0; font-size: 15.5px; line-height: 1.6; color: var(--bf-ink);
}
.pm .pm-list li + li { border-top: 1px solid var(--bf-line); }
.pm .pm-list strong { color: #16130f; }
.pm .pm-list .pm-src { display: block; margin-top: 2px; }

.pm .pm-name { margin-top: 18px; }
.pm .pm-outcome { margin-top: 24px; padding-top: 14px; border-top: 3px solid #16130f; }
.pm .pm-outcome .bf-h3 { margin-top: 0; }
.pm .pm-h3-gap { margin-top: 30px; }

/* ----------------------------------------------------- the research */

.pm .pm-research { margin: 0 0 22px; }

/* --------------------------------------------------- the design cards */

.pm .pm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 12px; }
.pm .pm-cards.pm-cards--two { grid-template-columns: 1fr 1fr; }
.bf-page.pm button.pm-card {
  display: grid; gap: 8px; align-content: start; text-align: left;
  padding: 14px 16px; border: 3px solid #16130f; border-radius: 0; background: #fff;
  box-shadow: 4px 4px 0 #16130f; font: inherit; color: #16130f; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bf-page.pm button.pm-card:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 #16130f; }
.bf-page.pm button.pm-card.is-active { background: #E4F6E9; box-shadow: 2px 2px 0 #16130f; transform: translate(2px, 2px); outline: 3px solid #3ECFB0; outline-offset: -8px; }
.pm .pm-card-head { display: flex; gap: 10px; align-items: center; }
.pm .pm-card-head > span { display: block; }
/* (0,3,1) so it beats the card head's `> span { display: block }` */
.pm .pm-card-head > span.pm-card-emoji { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 2px solid #16130f; background: #FDF3D8; font-size: 20px; line-height: 1; }
.pm .pm-card-name { display: block; font-family: var(--dl-font-display); font-size: 17px; font-weight: 700; line-height: 1.2; }
.pm .pm-card-rule { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #148d75; }
.pm .pm-card-how { display: block; font-size: 14.5px; line-height: 1.5; }
.pm .pm-card-fit { display: block; padding-top: 8px; border-top: 1px solid var(--bf-line); font-size: 13.5px; line-height: 1.5; color: var(--bf-soft); }
@media (max-width: 760px) { .pm .pm-cards, .pm .pm-cards.pm-cards--two { grid-template-columns: 1fr; } }

.pm .pm-inputs { display: grid; grid-template-columns: minmax(0, 300px); margin-top: 8px; }
.pm .pm-inputs .bf-field { margin-bottom: 6px; }

/* ---------------------------------------------------------- the math */

.pm .pm-stat {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  margin: 0 0 16px; padding: 0 0 14px; border-bottom: 2px solid #16130f;
}
.pm .pm-stat-num { font-family: var(--dl-font-display); font-size: 52px; font-weight: 700; line-height: 1; color: #148d75; }
.pm .pm-stat p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--bf-ink); }

/* ---------------------------------------------------------- checklists */

.pm .pm-check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: 15.5px; line-height: 1.5; color: var(--bf-ink); cursor: pointer; }
.pm .pm-check span { display: block; }
.pm .pm-check input, .pm .pm-month-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #148d75; }
.pm .pm-check.is-on span { color: var(--bf-soft); text-decoration: line-through; text-decoration-color: rgba(22,19,15,.35); }

/* --------------------------------------------- "tell your sponsor" box */


/* ---------------------------------------------------------- scenarios */

.pm .pm-scenarios { list-style: none; padding: 0 !important; margin: 6px 0 14px; border-top: 2px solid #16130f; border-bottom: 2px solid #16130f; }
.pm .pm-scenarios li { list-style: none; margin: 0; padding: 12px 0; font-size: 15.5px; line-height: 1.55; color: var(--bf-ink); }
.pm .pm-scenarios li + li { border-top: 1px solid var(--bf-line); }
.pm .pm-scenarios .pm-say { display: block; font-weight: 600; color: #16130f; }
.pm .pm-scenarios .pm-do { display: block; margin-top: 4px; color: var(--bf-soft); font-size: 14.5px; }

/* ---------------------------------------------------------- the matcher */

.pm .pm-rule { margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
.pm .pm-rosters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pm .pm-rosters textarea {
  width: 100%; min-height: 170px; padding: 10px 12px; box-sizing: border-box;
  border: 2px solid #16130f; border-radius: 0; background: #fff;
  font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #16130f; resize: vertical;
}
.pm .pm-rosters textarea:focus { outline: 3px solid #3ECFB0; outline-offset: 0; }
@media (max-width: 720px) { .pm .pm-rosters { grid-template-columns: 1fr; } }
.pm .pm-matcher-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }

.pm .pm-matches { list-style: none; padding: 0 !important; margin: 6px 0 14px; border-top: 2px solid #16130f; border-bottom: 2px solid #16130f; }
.pm .pm-match {
  list-style: none; margin: 0; padding: 10px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 12px; align-items: start;
  font-size: 15px; line-height: 1.5; color: var(--bf-ink);
}
.pm .pm-match + .pm-match { border-top: 1px solid var(--bf-line); }
.pm .pm-match-who, .pm .pm-match-kids { display: block; }
.pm .pm-match-tag {
  display: inline-block; margin-right: 6px; padding: 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: #16130f; color: #FBF6EC; vertical-align: 2px;
}
.pm .pm-match-arrow { font-weight: 700; color: #148d75; }
.pm .pm-kid { display: block; }
.pm .pm-kid + .pm-kid { margin-top: 4px; }
.pm .pm-grade { display: inline; font-size: 12.5px; color: var(--bf-soft); }
.pm .pm-why { display: block; font-size: 13px; color: #148d75; }
@media (max-width: 560px) {
  .pm .pm-match { grid-template-columns: 1fr; gap: 2px; }
  .pm .pm-match-arrow { display: none; }
  .pm .pm-match-kids { padding-left: 14px; border-left: 3px solid #3ECFB0; }
}

/* ---------------------------------------------------------- the year */

.pm .pm-year { list-style: none; padding: 0 !important; margin: 6px 0 18px; border-top: 2px solid #16130f; border-bottom: 2px solid #16130f; }
.pm .pm-month {
  list-style: none; margin: 0; padding: 11px 0;
  display: grid; grid-template-columns: 190px 1fr; gap: 14px;
  font-size: 15.5px; line-height: 1.55; color: var(--bf-ink);
}
.pm .pm-month + .pm-month { border-top: 1px solid var(--bf-line); }
.pm .pm-month-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pm .pm-month-when { display: block; font-family: var(--dl-font-display); font-weight: 700; color: #16130f; }
.pm .pm-month-what { display: block; }
.pm .pm-month.is-on .pm-month-what { color: var(--bf-soft); }
@media (max-width: 600px) { .pm .pm-month { grid-template-columns: 1fr; gap: 2px; } }

/* ------------------------------------------------ Doorstop Session ending */

.pm .pm-session { margin: 4px 0 18px; padding: 16px 0 22px; border-top: 3px solid #16130f; border-bottom: 2px solid #16130f; }
.pm .pm-session h3 {
  font-family: var(--dl-font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25; color: #16130f; margin: 0 0 10px;
}
.pm .pm-session p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--bf-ink); }
.pm .pm-session ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.pm .pm-session li { list-style: disc; font-size: 16px; line-height: 1.6; color: var(--bf-ink); margin-bottom: 6px; }

/* the stat's rule already closes the list's top edge */
.pm .pm-stat + .pm-matches { border-top: 0; margin-top: -10px; }

/* ------------------------------------------------- the kickoff agenda */

.pm .pm-agenda { list-style: none; padding: 0 !important; margin: 6px 0 12px; border-top: 2px solid #16130f; border-bottom: 2px solid #16130f; }
.pm .pm-agenda li {
  list-style: none; margin: 0; padding: 11px 0;
  display: grid; grid-template-columns: 70px 1fr; gap: 12px;
  font-size: 15.5px; line-height: 1.55; color: var(--bf-ink);
}
.pm .pm-agenda li + li { border-top: 1px solid var(--bf-line); }
.pm .pm-agenda li > span { display: block; }
.pm .pm-agenda .pm-agenda-time { font-family: var(--dl-font-display); font-weight: 700; color: #148d75; }
.pm .pm-agenda strong { color: #16130f; }

/* -------------------------------------- what mentors help with all year */

.pm .pm-helps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 6px; }
.pm .pm-helps > div { display: block; min-width: 0; }
.pm .pm-helps-h { margin: 0 0 6px; font-family: var(--dl-font-display); font-size: 18px; font-weight: 700; color: #16130f; }
.pm .pm-helps-h.pm-h4-gap { margin-top: 16px; }
@media (max-width: 760px) { .pm .pm-helps { grid-template-columns: 1fr; gap: 6px; } }

/* the same-gender switch under the rosters */
.pm .pm-check.pm-gender { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--bf-line); }
.pm .pm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; }

/* ------------------------------------------------- sample meetings */

.pm .pm-meetings { list-style: none; padding: 0 !important; margin: 8px 0 12px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 6px; }
.pm .pm-meeting, .pm .bf-solution .pm-meeting {
  list-style: none; margin: 0; display: grid; gap: 8px; align-content: start;
  padding: 12px 0 14px; border-top: 2px solid #16130f; font-size: 14.5px; line-height: 1.5; color: var(--bf-ink);
}
.pm .pm-meeting > span { display: block; }
.pm .pm-meeting-head { display: flex !important; gap: 10px; align-items: center; }
.pm .pm-meeting-head > span.pm-meeting-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 2px solid #16130f; background: #E4F6E9; color: #148d75; font-size: 19px; line-height: 1; }
.pm .pm-meeting-icon ion-icon { display: block; }
.pm .pm-meeting-name { display: block; font-family: var(--dl-font-display); font-size: 17px; font-weight: 700; color: #16130f; }
.pm .pm-meeting-label {
  display: inline-block; margin-right: 6px; padding: 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: #E4F6E9; color: #16130f; vertical-align: 1px;
}
.pm .pm-meeting-label.is-flex { background: #FDF3D8; }
.pm .pm-meeting .pm-src { padding-top: 6px; border-top: 1px solid var(--bf-line); }
@media (max-width: 720px) { .pm .pm-meetings { grid-template-columns: 1fr; row-gap: 0; } }

/* ------------------------------------------------------- the step nav

   Every step is open, and the nav jumps between them. On a wide screen it's
   a sticky column to the left of the steps; on a narrow one it's a sticky
   strip under the header that scrolls sideways. */

.pm .pm-nav-list { list-style: none; margin: 0; padding: 0 !important; }
.pm .pm-nav-list li { list-style: none; margin: 0; }
.bf-page.pm a.pm-nav-link {
  display: flex; align-items: center; gap: 10px;
  color: #16130f; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.25;
}
.pm .pm-nav-num {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px;
  border: 2px solid #16130f; background: #fff; font-family: var(--dl-font-display); font-size: 14px; font-weight: 700;
}
.pm .pm-nav-label { display: block; }
.bf-page.pm a.pm-nav-link.is-done .pm-nav-num { background: #16130f; color: #fff; }
.bf-page.pm a.pm-nav-link.is-open .pm-nav-num { background: #3ECFB0; color: #16130f; }
.pm .pm-nav-title {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bf-soft);
}

@media (min-width: 1000px) {
  .bf-page.pm .bf-wrap { max-width: 1100px; }
  .pm .pm-layout { display: grid; grid-template-columns: 210px minmax(0, 800px); gap: 36px; justify-content: center; }
  .pm .pm-nav { position: sticky; top: 100px; z-index: 2; align-self: start; padding: 4px 6px 8px 0; background: var(--dl-bg-alt); }
  .pm .pm-nav-list { border-left: 3px solid #16130f; }
  .pm .pm-nav-list li + li { margin-top: 2px; }
  .bf-page.pm a.pm-nav-link { padding: 8px 10px 8px 12px; margin-left: -3px; border-left: 3px solid transparent; }
  .bf-page.pm a.pm-nav-link:hover { background: #FDF3D8; }
  .bf-page.pm a.pm-nav-link.is-open { border-left-color: #3ECFB0; background: #E4F6E9; }
}

@media (max-width: 999px) {
  .pm .pm-nav {
    position: sticky; top: 75px; z-index: 3;
    margin: 0 -24px 14px; padding: 10px 0; background: var(--dl-bg-alt); border-bottom: 2px solid #16130f;
  }
  .pm .pm-nav-title { display: none; }
  .pm .pm-nav-list { display: flex; gap: 8px; overflow-x: auto; padding: 0 24px !important; scrollbar-width: none; }
  .pm .pm-nav-list::-webkit-scrollbar { display: none; }
  .pm .pm-nav-list li { flex: none; }
  .bf-page.pm a.pm-nav-link { padding: 5px 10px 5px 5px; border: 2px solid #16130f; background: #fff; font-size: 14px; white-space: nowrap; gap: 8px; }
  .pm .pm-nav-num { width: 22px; height: 22px; font-size: 12px; border-width: 0; background: transparent; }
  .bf-page.pm a.pm-nav-link.is-open { background: #3ECFB0; }
  .bf-page.pm a.pm-nav-link.is-done .pm-nav-num { background: #16130f; color: #fff; }
  .bf-page.pm a.pm-nav-link.is-open .pm-nav-num { background: transparent; }
}
@media (max-width: 620px) {
  .pm .pm-nav { margin-inline: -16px; }
  .pm .pm-nav-list { padding: 0 16px !important; }
}

/* subsections of the open step, under its name in the side nav */
.pm .pm-nav-sub { display: none; list-style: none; margin: 2px 0 8px; padding: 0 0 0 50px !important; }
.pm .pm-nav-sub li { list-style: none; margin: 0; }
.bf-page.pm .pm-nav-sub a {
  display: block; padding: 4px 8px 4px 0; color: var(--bf-soft); text-decoration: none; font-size: 14px; line-height: 1.3;
}
.bf-page.pm .pm-nav-sub a:hover { color: #16130f; }
.bf-page.pm .pm-nav-sub a.is-here { color: #16130f; font-weight: 700; }
@media (min-width: 1000px) {
  .pm .pm-nav-link.is-open + .pm-nav-sub { display: block; }
  /* the sticky column can't grow taller than the screen */
  .pm .pm-nav { max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* ------------------------------------------------ the recruiting poster */

.pm .pm-poster-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: start; margin: 10px 0 12px; }
.pm .pm-poster-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-content: start; }
.pm .pm-field { display: block; min-width: 0; }
.pm .pm-field .bf-label { display: block; margin-bottom: 4px; }
.pm .pm-field .bf-input { width: 100%; }
.pm .pm-poster-actions { grid-column: 1 / -1; margin-top: 6px; }
.pm .pm-poster-canvas { display: block; width: 100%; height: auto; border: 2px solid #16130f; box-shadow: 6px 6px 0 #16130f; background: #FBF6EC; }
@media (max-width: 760px) {
  .pm .pm-poster-wrap { grid-template-columns: 1fr; }
  .pm .pm-poster-canvas { max-width: 360px; }
}
@media (max-width: 420px) { .pm .pm-poster-fields { grid-template-columns: 1fr; } }


/* ------------------------------------------------ the training link */

.bf-page.pm .bf-step-body a.pm-train-card { display: block; margin: 8px 0 12px; padding: 16px 18px; border: 2px solid #16130f; background: #fff; color: #16130f; text-decoration: none; transition: background .12s; }
.bf-page.pm .bf-step-body a.pm-train-card:hover { background: #FBF6EC; }
.pm .pm-train-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.pm .pm-train-name { font-family: var(--dl-font-display); font-size: 22px; font-weight: 700; }
.pm .pm-train-go { padding: 3px 10px; background: #3ECFB0; border: 2px solid #16130f; font-size: 14px; font-weight: 700; }
.pm .pm-train-sub { display: block; margin: 6px 0 10px; font-size: 15px; line-height: 1.5; color: #57524a; }
.pm .pm-train-parts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0; padding: 0 !important; }
.pm .pm-train-parts li { list-style: none; display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14.5px; font-weight: 600; }
.pm .pm-train-parts span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; background: #16130f; color: #FBF6EC; font-size: 12px; }
@media (max-width: 560px) { .pm .pm-train-parts { grid-template-columns: 1fr; } }

/* the kickoff: three ideas, side by side */
.pm .pm-ideas { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 12px; padding: 0 !important; }
.pm .pm-ideas li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 18px 14px 16px; border: 2px solid #16130f; background: #fff; text-align: center; color: var(--bf-ink); }
.pm .pm-ideas .pm-idea-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 2px solid #16130f; background: #E4F6E9; color: #148d75; font-size: 28px; }
.pm .pm-ideas .pm-idea-icon ion-icon { display: block; }
.pm .pm-ideas strong { display: block; font-family: var(--dl-font-display); font-size: 16px; line-height: 1.3; }
@media (max-width: 760px) { .pm .pm-ideas { grid-template-columns: 1fr; } }
