/* ==========================================================================
   Facebook Marketplace page only (facebook-marketplace.html). Loads after css/core.css and
   css/lawn.css. Page-only art uses the .mp- prefix; kit classes are only restyled under a .mp-
   class or a section id. Everything is drawn finished at rest: the "before" states of the
   scenes live only under html.js and a class js/pages/facebook-marketplace.js adds on view.
   ========================================================================== */

/* ---------- shared: the listing tile (hero feed, season rail, search result) ---------- */
.mp-tile { position: relative; border-radius: 12px; box-shadow: 2px 2px 0 rgba(22, 58, 37, 0.18); }
.mp-tile .fc-tile__img { aspect-ratio: 5 / 4; height: auto; }
.mp-tile b { padding: 7px 9px 0; font-size: 0.92rem; line-height: 1.2; }
.mp-tile .mp-tile__t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  height: calc(2.5em + 1px);
  margin: 2px 0 9px;
  padding: 0 9px;
  color: var(--fc-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}
/* the deck's tile titles never lose a word: a third line where a narrow tile needs one */
@media (min-width: 1000px) and (max-width: 1179px), (max-width: 379px) {
  #top .mp-tile .mp-tile__t { -webkit-line-clamp: 3; line-clamp: 3; height: calc(3.75em + 1px); }
}
.mp-tile .mp-tile__seller { margin-top: -4px; padding: 0 9px 9px; font-size: 0.7rem; font-weight: 700; color: var(--fc-ink-2); }
.mp-block { display: block; }
html:not(.js) .mp-pausebox { display: none; }
/* drawn-scene lines never strand one word */
.mp-pad__what,
.mp-wb__txt > b,
.mp-wb__txt > span,
.mp-task__body > span,
.mp-strip__label,
.mp-pull,
.mp-wo__list li,
.mp-order .fc-line__item { text-wrap: pretty; }
.mp-nowrap { white-space: nowrap; }

/* ---------- 1. Hero: the kinetic headline and the managed feed ---------- */
/* the deck's three lines, one line each on desktop: a wider copy column and a capped slab */
@media (min-width: 1000px) {
  #top .fc-phero__grid { grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr); }
}
.mp-line { display: block; }
.mp-line,
.mp-k { animation: mp-kin 0.7s var(--fc-ease) both; animation-delay: calc(0.08s + var(--k, 0) * 0.12s); }
@keyframes mp-kin { from { opacity: 0; transform: translateY(0.45em); } }
#top .mp-sub1 { margin-bottom: 12px; }
.mp-cue { margin-top: 6px; font-size: 0.95rem; }
.mp-cue .fc-link { display: inline-flex; align-items: center; min-height: 44px; }

.mp-hero { position: relative; width: min(100%, 470px); padding-top: 6px; }
.mp-feed { position: relative; margin: 0; }
.mp-feed__sample { top: -8px; right: auto; left: 22px; }
.mp-tab {
  position: relative;
  padding: 18px 14px 16px;
  border: var(--fc-line);
  border-radius: 34px;
  background-color: var(--fc-orange);
  background-image:
    radial-gradient(circle at 30px 30px, var(--fc-orange-2) 26px, transparent 27px),
    radial-gradient(circle at calc(100% - 30px) 30px, var(--fc-orange-2) 26px, transparent 27px),
    radial-gradient(circle at 30px calc(100% - 30px), var(--fc-orange-2) 26px, transparent 27px),
    radial-gradient(circle at calc(100% - 30px) calc(100% - 30px), var(--fc-orange-2) 26px, transparent 27px);
  box-shadow: var(--fc-chunk-lg);
  transform: rotate(1deg);
}
.mp-tab__cam { position: absolute; top: 6px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--fc-ink-black); }
.mp-tab__screen { position: relative; overflow: hidden; padding: 0 12px 12px; border: var(--fc-line); border-radius: 20px; background: var(--fc-white); }
.mp-tab__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -12px 12px;
  padding: 10px 12px;
  border-bottom: 1.5px solid rgba(22, 58, 37, 0.18);
  background: var(--fc-pure);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}
.mp-tab__shop { flex: none; width: 22px; height: 20px; }
.mp-tab__title { min-width: 0; }
.mp-tab__chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 9px 3px 7px;
  border: 1.5px solid var(--fc-green-ink);
  border-radius: 999px;
  background: var(--fc-mint);
  color: var(--fc-green-ink);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-tab__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fc-green-ink); }
.mp-feed__grid { gap: 10px; }
.mp-feed .fc-tile { transition: transform 0.48s var(--fc-ease), opacity 0.48s var(--fc-ease); }
.mp-feed .fc-tile__img { transition: filter 0.3s; }
/* the rubber stamp: Schedule full · Pulled */
.mp-stamp {
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 6px 10px 5px;
  border: 3px solid var(--fc-red-ink);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.82);
  color: var(--fc-red-ink);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1.7);
  transition: transform 0.28s var(--fc-bounce), opacity 0.14s;
  -webkit-mask: url("../../assets/lawn/paint.svg") 0 0 / 150px;
  mask: url("../../assets/lawn/paint.svg") 0 0 / 150px;
}
.mp-tile .mp-stamp span { display: block; padding: 0; color: inherit; }
.mp-tile .mp-stamp span:last-child { margin-top: 3px; padding-top: 2px; border-top: 2px solid currentColor; font-size: 1.5em; letter-spacing: 0.16em; }
.mp-tile.is-stamped .mp-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
.mp-tile.is-stamped .fc-tile__img { filter: saturate(0.3); }
.mp-feed .mp-tile.is-out { opacity: 0; transform: translateY(-16px) scale(0.9) rotate(-3deg); }
.mp-feed .mp-tile.is-enter { opacity: 0; transform: translateY(18px) scale(0.96); transition: none; }
.mp-tile.is-enter .mp-stamp { transition: none; }
.mp-stamper { position: absolute; left: -30px; bottom: -40px; z-index: 3; width: 62px; height: 82px; transform: rotate(-10deg); }
.mp-hero__pause { position: absolute; top: -14px; right: -12px; z-index: 7; }
.mp-feed__cap { display: block; max-width: 25em; margin: 52px auto 0; font-size: 1.08rem; text-align: center; transform: rotate(-1deg); }
@media (max-width: 1099px) and (min-width: 1000px) { .mp-stamper { display: none; } }
@media (max-width: 600px) {
  /* phones: the h1, the sub and Check my area all land in the first screen (WebKit, 390 x 664) */
  #top .fc-crumbs { margin-bottom: 16px; font-size: 0.66rem; letter-spacing: 0.03em; }
  .mp-h1 { margin-bottom: 12px; }
  #top .fc-phero__sub { margin-bottom: 14px; font-size: 1rem; }
  #top .mp-sub1 { margin-bottom: 8px; }
  .mp-hero { width: calc(100% - 6px); }
  .mp-tab { padding: 14px 9px 12px; border-radius: 26px; }
  .mp-tab__screen { padding: 0 9px 9px; border-radius: 16px; }
  .mp-tab__bar { gap: 6px; margin: 0 -9px 9px; padding: 8px 9px; font-size: 0.72rem; }
  .mp-tab__chip { padding: 2px 7px 2px 6px; font-size: 0.6rem; }
  .mp-feed__grid { gap: 8px; }
  .mp-tile b { padding: 6px 7px 0; font-size: 0.8rem; }
  .mp-tile .mp-tile__t { margin: 1px 0 7px; padding: 0 7px; font-size: 0.72rem; }
  .mp-stamp { padding: 4px 7px; border-width: 2.5px; font-size: 0.56rem; }
  .mp-stamper { left: -8px; bottom: -44px; width: 48px; height: 64px; }
  .mp-hero__pause { right: -4px; }
  .mp-feed__cap { margin-top: 54px; font-size: 1rem; }
}

/* ---------- 2. The math: the pad vs the work order, the napkin, the plaque ---------- */
.mp-mathhead { max-width: 900px; }
.mp-mathhead__body { display: grid; gap: 12px; max-width: 40rem; }
.mp-cost { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 7vw, 84px); margin: clamp(8px, 2vw, 20px) 0 0; }
.mp-vs { align-items: start; }
.mp-vs .fc-vs__stamp { align-self: center; }
.mp-pad {
  --rule: 36px;
  --margin: 112px;
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 40px 20px 22px 0;
  border: var(--fc-line);
  border-radius: 4px 4px 10px 10px;
  background:
    linear-gradient(90deg, transparent 0 calc(var(--margin) - 2px), rgba(180, 35, 24, 0.45) calc(var(--margin) - 2px) var(--margin), transparent var(--margin)),
    var(--fc-pure);
  box-shadow: var(--fc-chunk);
}
.mp-pad__spiral {
  position: absolute;
  top: -11px;
  left: 16px;
  right: 16px;
  height: 22px;
  background:
    radial-gradient(circle at 50% 72%, var(--fc-mint) 0 3.5px, var(--fc-ink) 3.8px 5.2px, transparent 5.6px) 0 0 / 22px 22px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 8px, var(--fc-steel-c) 8px 11px, transparent 11px 22px) 0 0 / 100% 13px no-repeat;
}
.mp-pad__ring { top: auto; right: 22px; bottom: 26px; width: 84px; height: 80px; border-color: rgba(122, 75, 42, 0.16); }
.mp-pad__head {
  margin: 0 0 8px var(--margin);
  padding-left: 14px;
  font-family: var(--fc-hand);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
  line-height: 1.2;
}
.mp-pad__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  background: repeating-linear-gradient(transparent 0 calc(var(--rule) - 1.5px), rgba(31, 79, 160, 0.22) calc(var(--rule) - 1.5px) var(--rule));
}
.mp-pad__lines li { position: relative; display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); line-height: var(--rule); }
.mp-pad__when { padding-right: 10px; font-family: var(--fc-hand); font-size: 0.88rem; line-height: inherit; text-align: right; color: var(--fc-ink-2); white-space: nowrap; }
.mp-pad__what { padding-left: 14px; font-family: var(--fc-hand); font-size: 1.02rem; color: var(--fc-ballpoint); }
.mp-pad__q .mp-pad__what,
.mp-pad__nq .mp-pad__what { padding-right: 40px; }
.mp-pad__qmark {
  position: absolute;
  top: -11px;
  right: -4px;
  font-family: var(--fc-hand);
  font-size: 3.6rem;
  line-height: 0.75;
  color: var(--fc-red-ink);
  transform: rotate(14deg);
}
.mp-pad__total { margin: 14px 0 0 calc(var(--margin) + 14px); font-family: var(--fc-hand); font-size: 1.12rem; line-height: 1.3; color: var(--fc-red-ink); }
.mp-pad__total span { border-bottom: 3px double var(--fc-red-ink); }
.mp-wo { width: min(100%, 460px); transform: rotate(-0.5deg); }
.mp-wo .fc-board__paper { transform: none; }
.mp-wo .fc-route__head { margin-bottom: 20px; }
.mp-wo .fc-route__head b { font-size: 1.45rem; }
.mp-wo__list li { font-size: 1.05rem; }
.mp-wo__total {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 12px 16px 14px;
  border: var(--fc-line);
  border-radius: 10px;
  background: var(--fc-sun-2);
  font-weight: 700;
  line-height: 1.35;
}
.mp-wo__total b { font-family: var(--fc-display); font-size: 2.3rem; font-weight: 400; line-height: 1; }
/* the pad and the work order need room side by side: they stack below 960px */
@media (max-width: 959px) {
  .mp-vs { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mp-vs .fc-vs__a,
  .mp-vs .fc-vs__b { width: 100%; transform: none; }
  .mp-vs .fc-vs__stamp { margin: 6px 0; }
  .mp-vs .fc-vs__b { margin-top: 30px; }
}
@media (max-width: 600px) {
  .mp-pad { --rule: 32px; --margin: 76px; padding-right: 14px; }
  .mp-pad__when { padding-right: 8px; font-size: 0.78rem; white-space: normal; }
  .mp-pad__what { padding-left: 10px; font-size: 0.95rem; }
  .mp-pad__head { padding-left: 10px; }
  .mp-pad__total { margin-left: calc(var(--margin) + 10px); font-size: 1.02rem; }
}

.mp-napkinrow { display: grid; gap: 14px; align-items: center; justify-items: center; }
@media (min-width: 960px) { .mp-napkinrow { grid-template-columns: minmax(0, 1.2fr) 120px minmax(0, 0.8fr); gap: 10px; } }
.mp-napkin {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 32px clamp(24px, 3vw, 38px) 30px;
  border: var(--fc-line);
  border-radius: 3px;
  background:
    radial-gradient(circle, rgba(22, 58, 37, 0.09) 1.2px, transparent 1.8px) 0 0 / 14px 14px,
    var(--fc-pure);
  box-shadow: inset 0 0 0 11px var(--fc-pure), inset 0 0 0 12.5px rgba(22, 58, 37, 0.16), 4px 4px 0 rgba(22, 58, 37, 0.3);
  transform: rotate(-1deg);
}
.mp-napkin__l {
  font-family: var(--fc-hand);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.4;
  color: var(--fc-ink-2);
  clip-path: inset(-6px -8px -6px -4px);
  transition: clip-path 1.1s cubic-bezier(0.5, 0, 0.4, 1);
}
.mp-napkin__l + .mp-napkin__l { margin-top: 12px; }
.mp-napkin__l:nth-child(2) { transition-delay: 0.8s; }
.mp-napkin__l:nth-child(3) { transition-delay: 1.6s; }
.mp-napkin__l:nth-child(4) { transition-delay: 2.4s; }
html.js .mp-napkin:not(.is-in) .mp-napkin__l { clip-path: inset(-6px 100% -6px -4px); }
.mp-napkin__sum { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); color: var(--fc-ink); }
/* the sum only breaks after the ×: each half is an .mp-nowrap chunk, so it never widens the figure */
.mp-napkin__sum .fc-field-line { height: 1.1em; margin: 0 2px; border-bottom-color: var(--fc-ink-2); }
.mp-napkin__l:last-child { color: var(--fc-ink); }
.mp-napkinrow__arrow { width: 110px; height: 58px; transform: rotate(-4deg); }
.mp-plaque { width: min(100%, 360px); padding: 30px 32px 26px; transform: rotate(1deg); text-align: center; }
.mp-plaque__eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase; }
.mp-plaque__num { font-family: var(--fc-display); font-size: clamp(2.7rem, 2.1rem + 1.6vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; }
.mp-plaque__cap { font-weight: 700; line-height: 1.4; }
@media (max-width: 959px) {
  .mp-napkinrow__arrow { width: 80px; height: 44px; transform: rotate(84deg); }
}

/* ---------- 3. Your nights back: the shop whiteboard, the key rack ---------- */
.mp-time { align-items: center; }
/* the two-column split starts at 960px: keep its headline to three lines there */
@media (min-width: 960px) and (max-width: 999px) { .mp-time .fc-h2 { font-size: 1.9rem; } }
/* the key rack hangs on the wall beside the board (above it on phones) */
.mp-shop { position: relative; margin: 0; padding-top: 112px; }
.mp-rack { position: absolute; top: 0; left: 6px; width: 118px; height: 116px; }
@media (min-width: 960px) {
  .mp-shop { padding: 0; }
  .mp-rack { top: 24px; left: auto; right: calc(-1 * clamp(100px, 8.8vw, 138px)); width: clamp(88px, 8vw, 124px); height: auto; aspect-ratio: 120 / 118; }
}
.mp-wb { padding: clamp(26px, 3vw, 38px) clamp(18px, 3vw, 38px) clamp(36px, 4vw, 48px); }
.mp-wb__head {
  margin: 0 0 20px;
  font-family: var(--fc-hand);
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.15;
  color: var(--fc-ink);
}
/* the sticky note's footprint: the heading wraps around it, never under it */
.mp-wb__head::before { content: ""; float: right; width: 172px; height: 48px; }
.mp-wb .fc-sample--pin { top: auto; right: 18px; bottom: -8px; }
.mp-wb__rows { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mp-wb__row { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 14px; }
.mp-wb__box { width: 24px; height: 24px; margin-top: 3px; border: 2.5px solid var(--fc-ink); border-radius: 4px; transform: rotate(-4deg); }
.mp-wb__row:nth-child(even) .mp-wb__box { transform: rotate(3deg); }
.mp-wb__txt b { display: block; font-family: var(--fc-hand); font-size: clamp(1.1rem, 1rem + 0.3vw, 1.22rem); font-weight: 400; line-height: 1.25; color: var(--fc-ink); }
.mp-wb__txt span { display: block; margin-top: 2px; font-family: var(--fc-hand); font-size: 0.98rem; line-height: 1.3; color: var(--fc-ballpoint); }
.mp-wb__pick { margin-top: 8px; padding: 22px 46px 20px 0; }
.mp-wb__pick .mp-wb__txt b { color: var(--fc-orange-ink); }
.mp-wb__circle { position: absolute; top: -2px; left: -16px; width: calc(100% + 16px); height: calc(100% + 4px); overflow: visible; pointer-events: none; }
.mp-wb__circle path {
  fill: none;
  stroke: var(--fc-orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s cubic-bezier(0.55, 0, 0.3, 1) 0.2s;
}
.mp-wb__circle .mp-wb__two { stroke-width: 3; opacity: 0.75; transition-delay: 1.1s; }
html.js .mp-wb:not(.is-in) .mp-wb__circle path { stroke-dashoffset: 100; }
.mp-wb__sticky { position: absolute; top: -22px; right: 20px; z-index: 3; font-size: 1.15rem; transform: rotate(5deg); }
.mp-wb__marker {
  position: absolute;
  bottom: -21px;
  left: 20%;
  z-index: 2;
  width: 92px;
  height: 14px;
  border: var(--fc-line);
  border-radius: 7px;
  background: linear-gradient(90deg, var(--fc-ink) 0 22px, var(--fc-pure) 22px 64px, var(--fc-ballpoint) 64px);
}
/* the fence stands in the grass: the fringe grows in front of its posts */
#time .fc-fence { margin-top: var(--fc-pad-y); }
@media (max-width: 600px) {
  /* phones: the note is too wide to wrap around, so the heading starts just under it */
  .mp-wb__head { padding-top: 42px; }
  .mp-wb__head::before { content: none; }
  .mp-wb__sticky { right: 10px; font-size: 1rem; }
  .mp-wb__row { gap: 10px; }
}

/* ---------- 4. Who does what: route sheet, hand-off, phone (the turf band) ---------- */
.mp-hand { position: relative; display: grid; gap: 30px; align-items: center; margin: 0; }
@media (min-width: 1000px) { .mp-hand { grid-template-columns: minmax(0, 1.1fr) 112px minmax(0, 0.9fr); gap: 0 10px; } }
.mp-hand__ours { position: relative; display: grid; justify-items: center; }
.mp-route { width: min(100%, 580px); }
.mp-route__kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fc-orange-ink); }
.mp-route__title { margin: 4px 0 6px; padding-bottom: 12px; border-bottom: 4px double var(--fc-ink); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.1; }
.mp-tasks { margin: 0; padding: 0; list-style: none; }
.mp-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; align-items: start; gap: 12px; padding: 13px 0; border-bottom: 1.5px dashed rgba(22, 58, 37, 0.2); }
.mp-task:last-child { border-bottom: 0; }
.mp-task__tick { position: relative; width: 26px; height: 26px; margin-top: 1px; border: 2.5px solid var(--fc-ink); border-radius: 5px; background: var(--fc-pure); }
.mp-task__tick::after {
  content: "";
  position: absolute;
  top: -12px;
  left: -3px;
  width: 36px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M4 20l8 8L32 6' fill='none' stroke='%232E7D46' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* the loops run only with JS, where their pause button is (without it the ticks sit checked) */
html.js .mp-task__tick::after { animation: mp-pop 5.6s ease-in-out infinite; }
.mp-task:nth-child(2) .mp-task__tick::after { animation-delay: 0.35s; }
.mp-task:nth-child(3) .mp-task__tick::after { animation-delay: 0.7s; }
.mp-task:nth-child(4) .mp-task__tick::after { animation-delay: 1.05s; }
.mp-task:nth-child(5) .mp-task__tick::after { animation-delay: 1.4s; }
@keyframes mp-pop {
  0%, 72%, 100% { transform: scale(1); }
  6% { transform: scale(0.5); }
  16% { transform: scale(1.18); }
  24% { transform: scale(1); }
}
.mp-task__body b { display: block; font-weight: 800; line-height: 1.3; }
.mp-task__body span { display: block; margin-top: 2px; font-size: 0.93rem; line-height: 1.45; color: var(--fc-ink-2); }
.mp-task__doodle { width: 40px; height: 32px; fill: none; stroke: var(--fc-ballpoint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-4deg); }
.mp-task:nth-child(even) .mp-task__doodle { transform: rotate(5deg); }
.mp-route__foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 13px 6px 8px;
  border: 1.5px solid var(--fc-ink);
  border-radius: 999px;
  background: var(--fc-sun-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-gear { flex: none; width: 22px; height: 22px; fill: var(--fc-sun); stroke: var(--fc-ink); stroke-width: 1.6; stroke-linejoin: round; }
html.js .mp-gear { animation: mp-spin 4s linear infinite; }
.mp-gear circle { fill: var(--fc-pure); }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-hand__pause { position: absolute; right: 2px; bottom: -26px; z-index: 4; }
.mp-hand__node { position: relative; display: grid; justify-items: center; gap: 10px; }
.mp-node { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border: var(--fc-line); border-radius: 50%; background: var(--fc-sun); box-shadow: var(--fc-chunk); }
.mp-node svg { position: relative; z-index: 1; width: 30px; height: 30px; fill: none; stroke: var(--fc-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mp-node__ring { position: absolute; inset: -3px; border: 3px solid var(--fc-sun); border-radius: 50%; opacity: 0; }
html.js .mp-node__ring { animation: mp-ring 2.8s ease-out infinite; }
@keyframes mp-ring { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(1.65); opacity: 0; } }
.mp-hand__node small { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fc-sun); }
.mp-hand__theirs { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.mp-hand__kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fc-sun); }
.mp-hand__title { font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem); }
.mp-hand__body { max-width: 30em; color: var(--fc-chalk-2); }
.mp-pull { max-width: 17em; margin-top: 4px; font-family: var(--fc-display); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.15; color: var(--fc-chalk); }
.mp-pull__q { color: var(--fc-sun); }
.mp-chat { position: relative; justify-self: center; margin-top: 18px; text-align: left; }
.mp-chat__phone { --pw: 250px; }
.mp-chat .fc-bubble { font-size: 0.84rem; }
.mp-chat__phone .fc-phone__screen { padding-top: 40px; }
.mp-chat__bar { justify-content: space-between; }
/* the Live dot: ::before is the dot, ::after the ping under it. The ping grows and fades with
   transform and opacity only, so it runs on the compositor (a box-shadow pulse restyled the scene
   every frame). At rest, and with reduced motion, the ping is hidden and the dot stays. */
.mp-live { position: relative; flex: none; width: 10px; height: 10px; isolation: isolate; }
.mp-live::before,
.mp-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.mp-live::before { border: 1.5px solid var(--fc-ink); background: var(--fc-lawn-b); }
.mp-live::after { z-index: -1; background: rgba(79, 162, 87, 0.7); opacity: 0; }
html.js .mp-live::after { animation: mp-live 2.4s ease-out infinite; }
@keyframes mp-live { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.mp-win {
  justify-self: center;
  margin-top: 6px;
  padding: 5px 10px 6px;
  border: 1.5px solid var(--fc-green-ink);
  border-radius: 999px;
  background: var(--fc-mint);
  color: var(--fc-green-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.mp-callout { margin: clamp(56px, 6vw, 80px) auto 0; max-width: 42rem; padding: 28px 28px 22px 30px; background: var(--fc-white); }
.mp-callout p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 600; line-height: 1.5; color: var(--fc-ink); }
.mp-callout :focus-visible { outline-color: var(--fc-ink); }
.mp-hand.is-paused *,
.mp-hand.is-paused *::before,
.mp-hand.is-paused *::after { animation-play-state: paused !important; }
@media (min-width: 1000px) {
  .mp-hand__node::before { content: ""; position: absolute; top: 34px; left: -6px; right: -6px; border-top: 3px dashed rgba(255, 248, 230, 0.45); }
  .mp-hand__node .mp-node { z-index: 1; }
}
@media (max-width: 999px) {
  .mp-node svg { transform: rotate(90deg); }
  .mp-hand__theirs { justify-items: center; text-align: center; }
  .mp-hand__pause { right: 8px; }
}

/* ---------- 5. The season rail: a wall calendar on the shop wall, and the tile it posts ---------- */
.mp-seasoncopy__head { display: grid; gap: 12px; justify-items: start; }
.mp-wall { display: grid; gap: 34px; padding: clamp(30px, 4vw, 50px) clamp(12px, 3vw, 40px); }
@media (min-width: 1000px) { .mp-wall { grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 34px; } }
.mp-rail {
  --lab: 250px;
  position: relative;
  margin: 0;
  padding: 30px clamp(12px, 2.4vw, 26px) 20px;
  border: var(--fc-line);
  border-radius: 6px;
  background: var(--fc-white);
  box-shadow: var(--fc-chunk-lg);
}
.mp-rail__pin--l { left: 26px; }
.mp-rail__pin--r { left: auto; right: 26px; margin-left: 0; }
.mp-rail .fc-sample--pin { right: 64px; }
.mp-rail__months { display: grid; grid-template-columns: var(--lab) repeat(12, minmax(0, 1fr)); margin: 0 0 4px; padding: 0 0 8px; border-bottom: var(--fc-line); list-style: none; }
.mp-rail__months li { font-family: var(--fc-display); font-size: 0.82rem; text-align: center; text-transform: uppercase; }
.mp-rail__months li:first-child { grid-column: 2; }
.mp-rail__rows { position: relative; margin: 0; padding: 0; list-style: none; }
.mp-rail__rows::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lab);
  right: 0;
  background: linear-gradient(90deg, rgba(22, 58, 37, 0.12) 1.5px, transparent 1.5px) 0 0 / calc(100% / 12) 100%;
  pointer-events: none;
}
.mp-strip {
  position: relative;
  display: grid;
  grid-template-columns: var(--lab) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-bottom: 1.5px dashed rgba(22, 58, 37, 0.16);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
html:not(.js) .mp-strip { cursor: default; }
.mp-strip:hover { background-color: rgba(22, 58, 37, 0.04); }
.mp-strip[aria-pressed="true"] { background-color: var(--fc-sun-2); }
.mp-strip__label { padding: 0 14px 0 8px; font-size: 0.9rem; line-height: 1.25; }
.mp-strip__label b { font-weight: 800; }
.mp-strip__label small { display: block; font-size: 0.76rem; font-weight: 600; color: var(--fc-ink-2); }
.mp-strip[aria-pressed="true"] .mp-strip__label b { background: linear-gradient(transparent 58%, var(--fc-sun) 58% 92%, transparent 92%); }
.mp-strip__track { position: relative; height: 30px; }
.mp-tape {
  position: absolute;
  top: 1px;
  left: calc((var(--from) - 1) * 100% / 12);
  width: calc(var(--span) * 100% / 12);
  height: 28px;
  background: linear-gradient(rgba(255, 255, 255, 0.34), transparent 50%), var(--c);
  box-shadow: 2px 2px 0 rgba(22, 58, 37, 0.25);
  clip-path: polygon(0 6%, 4px 30%, 0 55%, 3px 78%, 0 100%, 100% 100%, calc(100% - 3px) 72%, 100% 48%, calc(100% - 4px) 22%, 100% 0);
  transform-origin: 0 50%;
  transition: transform 0.8s var(--fc-ease);
  transition-delay: calc(0.1s + var(--i, 0) * 0.11s);
}
.mp-tape::after { content: ""; position: absolute; inset: 0; border-block: 1.5px solid rgba(22, 58, 37, 0.45); }
.mp-tape--ghost { background: none; box-shadow: none; clip-path: none; border: 2px dashed rgba(22, 58, 37, 0.35); border-radius: 3px; }
.mp-tape--ghost::after { display: none; }
html.js .mp-rail:not(.in) .mp-tape { transform: scaleX(0); }
.mp-pulled {
  position: absolute;
  top: -1px;
  left: calc(var(--at) * 100% / 12 - 14px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s, transform 0.4s var(--fc-bounce);
  transition-delay: 1.3s;
}
html.js .mp-rail:not(.in) .mp-pulled { opacity: 0; transform: translateY(-12px); }
.mp-pulled__mag { --mag: var(--fc-can); position: relative; top: 0; left: 0; flex: none; width: 28px; height: 28px; margin: 0; }
.mp-pulled__tag {
  padding: 2px 7px 3px;
  border: 1.5px solid var(--fc-red-ink);
  border-radius: 4px;
  background: var(--fc-pure);
  color: var(--fc-red-ink);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
}
.mp-rail__note { margin: 14px 4px 0 auto; max-width: 30em; font-family: var(--fc-hand); font-size: 1rem; line-height: 1.3; text-align: right; color: var(--fc-ink-2); transform: rotate(-1deg); }
.mp-preview { position: relative; justify-self: center; width: 196px; margin-top: 12px; transform: rotate(2deg); }
.mp-preview .fc-tile { box-shadow: var(--fc-chunk); }
.mp-preview .fc-sample--pin { top: -8px; right: auto; left: -16px; }
/* phones: a tapped strip opens its tile right under the row (js/pages/facebook-marketplace.js) */
.mp-rail__rows .mp-preview { width: 176px; margin: 12px auto 22px; transform: rotate(-1.5deg); }
.mp-preview .fc-tile.is-pop { animation: mp-popin 0.45s var(--fc-bounce); }
@keyframes mp-popin { from { transform: scale(0.9) rotate(-3deg); opacity: 0.4; } }
@media (max-width: 1199px) {
  .mp-rail { --lab: 200px; }
  .mp-rail__months li { font-size: 0.72rem; }
}
@media (max-width: 999px) {
  .mp-preview { transform: rotate(-2deg); }
}
@media (max-width: 760px) {
  .mp-rail { --lab: 0px; padding-inline: 12px; }
  .mp-rail__months li { font-family: var(--fc-body); font-size: clamp(0.5rem, 2.5vw, 0.62rem); font-weight: 800; letter-spacing: -0.01em; }
  .mp-strip { grid-template-columns: minmax(0, 1fr); gap: 4px; min-height: 44px; padding: 8px 0 6px; }
  .mp-strip__label { padding: 0 2px; font-size: 0.85rem; }
  .mp-strip__label small { display: inline; font-size: 0.74rem; }
  .mp-strip__track { height: 26px; }
  .mp-tape { height: 22px; }
  .mp-pulled__tag { font-size: 0.58rem; }
  .mp-pulled__mag { width: 24px; height: 24px; }
}
@media (max-width: 360px) {
  .mp-wall { padding-inline: 8px; }
  .mp-rail { padding-inline: 8px; }
  .mp-pulled { left: calc(var(--at) * 100% / 12 - 24px); gap: 4px; }
  .mp-pulled__tag { padding-inline: 5px; font-size: 0.54rem; }
}

/* ---------- 6. The team: the favorites phone in the truck ---------- */
.mp-teamsplit { align-items: center; }
.mp-team { display: flex; justify-content: center; margin: 0; }
.mp-team__hold { position: relative; transform: rotate(-1deg); }
.mp-fav { --pw: 288px; }
.mp-fav .fc-phone__screen { display: flex; flex-direction: column; padding: 46px 12px 0; }
.mp-fav__title { margin: 0 2px 8px; font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.mp-fav__list { margin: 0; padding: 0; list-style: none; }
.mp-fav__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 15px 2px; border-bottom: 1.5px solid rgba(22, 58, 37, 0.12); }
.mp-fav__row:last-child { border-bottom: 0; }
.mp-fav__av {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--fc-line);
  border-radius: 50%;
  background: var(--fc-leaf);
  font-family: var(--fc-display);
  font-size: 1.2rem;
  font-weight: 400;
  object-fit: cover;
}
.mp-fav__av--sun { background: var(--fc-sticky); }
.mp-fav__who b { display: block; font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.mp-fav__who span { display: block; margin-top: 1px; font-size: 0.74rem; font-weight: 600; line-height: 1.25; color: var(--fc-ink-2); }
/* the Favorites tab bar at the foot of the screen (drawn, no words) */
.mp-fav__tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: auto -12px 0;
  padding: 12px 10px 16px;
  border-top: 1.5px solid rgba(22, 58, 37, 0.14);
  background: var(--fc-pure);
}
.mp-fav__tabs svg { width: 26px; height: 26px; fill: none; stroke: var(--fc-ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-fav__tabs .is-on { fill: var(--fc-sun); stroke: var(--fc-ink); }
.mp-fav__tabs .mp-fav__dots { fill: var(--fc-ink-2); stroke: none; }
.mp-fav__text { padding: 5px 11px 6px; border: 1.5px solid var(--fc-ink); border-radius: 999px; background: var(--fc-green-ink); color: var(--fc-pure); font-size: 0.72rem; font-weight: 800; line-height: 1.1; }
@media (max-width: 600px) {
  /* phones: rows sized so the thumb never covers a name */
  .mp-fav { --pw: 272px; }
  .mp-fav .fc-phone__screen { padding: 42px 10px 0; }
  .mp-fav__tabs { margin-inline: -10px; padding: 10px 8px 14px; }
  .mp-fav__title { margin-bottom: 4px; font-size: 1.08rem; }
  .mp-fav__row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; padding: 13px 0; }
  .mp-fav__av { width: 46px; height: 46px; font-size: 1.1rem; }
  .mp-fav__who b { font-size: 0.88rem; }
  .mp-fav__who span { font-size: 0.7rem; }
  .mp-fav__text { padding: 4px 9px 5px; font-size: 0.68rem; }
}

/* ---------- 7. The price: the carbon work order on a clipboard, the back sheet ---------- */
.mp-plan { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 920px; margin: 0 auto; padding: 0 0 128px; }
.mp-plan__board { z-index: 2; justify-self: center; width: 100%; max-width: 780px; transform: rotate(-0.6deg); }
.mp-plan__board .fc-order { max-width: none; }
.mp-plan__back {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: 420px;
  height: 260px;
  padding: 18px 26px 20px 30px;
  border: var(--fc-line);
  border-radius: 4px;
  background:
    linear-gradient(transparent 0 38px, rgba(22, 58, 37, 0.2) 38px 40px, transparent 40px),
    var(--fc-carbon-yellow);
  box-shadow: var(--fc-chunk);
  transform: rotate(1deg);
}
.mp-plan__back p { max-width: 20em; font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.mp-order__total b { font-size: 2rem; }
.mp-line--yours .fc-line__price { color: var(--fc-orange-ink); }
.mp-order__stamp { top: 26px; right: clamp(20px, 4vw, 46px); font-size: 1.1rem; transform: rotate(-9deg); transition: transform 0.35s var(--fc-bounce), opacity 0.2s; }
html.js .mp-order:not(.is-in) .mp-order__stamp { opacity: 0; transform: scale(1.8) rotate(-9deg); }
/* mid widths: the title wraps before the stamp, which stays in the head row */
@media (min-width: 641px) and (max-width: 860px) { .mp-order .fc-order__head { padding-right: 182px; } }
@media (max-width: 860px) {
  .mp-plan { padding: 0; }
  .mp-plan__back { position: relative; right: auto; bottom: auto; width: auto; height: auto; margin: -30px 12px 0 22px; padding: 52px 20px 18px; }
  .mp-order__total { flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .mp-order__total .fc-line__dots { display: none; }
}

/* ---------- 8. The closing band: the Marketplace search as the prop ---------- */
#check .fc-cta__copy { display: grid; gap: 14px; }
/* wide screens: the search phone stands beside the form, right of the words */
@media (min-width: 1200px) {
  #check .fc-cta__copy { grid-template-columns: minmax(0, 1fr) auto; column-gap: 26px; align-items: start; }
  #check .fc-cta__copy > .fc-lead { grid-column: 1; }
  #check .mp-search { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}
#check .mp-cta__body { font-size: clamp(1.02rem, 1rem + 0.2vw, 1.12rem); font-weight: 500; }
#check .mp-search { flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(18px, 3vw, 30px); }
.mp-search__hold { position: relative; }
.mp-search__phone { --pw: 200px; }
.mp-search__phone .fc-phone__screen { padding: 38px 10px 12px; }
.mp-search__loc { margin: 9px 0 10px; }
.mp-search__loc span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border: 1.5px solid var(--fc-ink);
  border-radius: 999px;
  background: var(--fc-sun-2);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}
.mp-search__loc span::before {
  content: "";
  width: 9px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpath d='M4.5 11.2C2 8 .9 6.2.9 4.4a3.6 3.6 0 0 1 7.2 0c0 1.8-1.1 3.6-3.6 6.8Z' fill='%23FF6B2C' stroke='%23163A25' stroke-width='1.2'/%3E%3Ccircle cx='4.5' cy='4.4' r='1.3' fill='%23FFFDF6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mp-search__tile b { font-size: 0.8rem; }
.mp-search__tile .mp-tile__t { font-size: 0.72rem; }
.mp-search__cap { max-width: 12em; font-size: 1.05rem; text-align: center; color: var(--fc-ink-deep); transform: rotate(2deg); }
@media (max-width: 600px) {
  /* phones: a smaller phone with its caption beside it, so the ZIP form stays close */
  #check .mp-search { flex-direction: row; justify-content: flex-start; gap: 18px; max-width: none; margin-left: 4px; transform: rotate(-1deg); }
  .mp-search__phone { --pw: 162px; }
  .mp-search__phone .fc-phone__screen { padding: 32px 8px 8px; }
  .mp-search__phone .fc-search { min-height: 26px; font-size: 0.72rem; }
  .mp-search__loc { margin: 5px 0 6px; }
  .mp-search__tile b { padding-top: 5px; }
  .mp-search__tile .mp-tile__seller { padding: 0 7px 7px; font-size: 0.66rem; }
  .mp-search__cap { max-width: 8em; }
  #check .mp-search__tile .mp-tile__t { -webkit-line-clamp: 3; line-clamp: 3; height: calc(3.75em + 1px); margin-bottom: 5px; }
}

/* ---------- motion off: every scene is drawn finished ---------- */
@media (prefers-reduced-motion: reduce) {
  .mp-line,
  .mp-k,
  .mp-task__tick::after,
  .mp-gear,
  .mp-node__ring,
  .mp-live::after { animation: none !important; }
  /* no staggered delays either: each scene is finished the moment it shows */
  .mp-napkin__l,
  .mp-tape,
  .mp-pulled,
  .mp-wb__circle path,
  .mp-order__stamp,
  .mp-feed .fc-tile,
  .mp-stamp,
  .mp-preview .fc-tile { transition: none !important; }
  .mp-pausebox { display: none; }
}
