/* Blog visual + affiliate pilot (PHASE2, 2026-11-09): post presentation
   components in the definitive design system. Loaded only on singular
   posts, after the child stylesheet. Pilot scope: the five posts that
   carry _mmm_pilot meta; the figure treatment applies to post figures
   generally so Paul judges the system, not five exceptions.
   2026-11-13 (blog-post optimization): component vertical margins
   normalized to a 32px rhythm; ordered step rows tightened to match
   the list-card restyle in style.css. */

/* ---- 1. Figure treatment: the headed figure and in-body figures take
   the definitive frame (soft radius, hairline, soft green shadow); the
   caption keeps the mono place-label pattern (uppercase Plex Mono). */
.mmm-fig2{border:1px solid var(--line);border-radius:var(--r-card);
  box-shadow:var(--shadow-img);padding:10px 10px 4px}
.mmm-fig2 img{border-radius:var(--r-media)}
.mmm-fig2 figcaption{padding:10px 6px 6px;color:var(--muted)}
.mmm-post-body figure{margin:32px 0;background:var(--sheet);
  border:1px solid var(--line);border-radius:var(--r-card);
  box-shadow:var(--shadow-img);padding:10px 10px 4px}
.mmm-post-body figure img{display:block;width:100%;height:auto;
  border-radius:var(--r-media)}
.mmm-post-body figcaption{font:600 11px "IBM Plex Mono",monospace;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  padding:10px 6px 6px;line-height:1.6}

/* ---- Disclosure strip: once per post that carries affiliate
   elements, at the top of the body. Wording follows the site's own
   Affiliate Disclosure short version. */
.mmm-disc{margin:0 0 32px;background:var(--sand);border-radius:12px;
  padding:13px 16px;font-size:13.5px;line-height:1.55;color:var(--ink-text);
  display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.mmm-disc-tag{flex:none;font:600 10.5px "IBM Plex Mono",monospace;
  letter-spacing:.14em;text-transform:uppercase;background:var(--ochre);
  color:#16130D;border-radius:6px;padding:3px 8px}
.mmm-disc a{color:var(--deep-pink);text-underline-offset:3px}

/* ---- 2. Fact band: verified figures, read live from the figures
   service at render time. Deep green panel, Fraunces numerals. */
.mmm-facts{margin:32px 0;background:var(--ink);color:var(--cream);
  border-radius:var(--r-card);padding:26px 28px 20px;
  box-shadow:var(--shadow-img)}
.mmm-facts-h{font:600 11px "IBM Plex Mono",monospace;letter-spacing:.2em;
  text-transform:uppercase;color:var(--sun);margin:0 0 18px;
  display:flex;align-items:center;gap:12px}
.mmm-facts-h::after{content:"";width:46px;height:3px;background:var(--pink)}
.mmm-facts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:20px 22px;margin:0}
.mmm-fact dt{font:600 10.5px "IBM Plex Mono",monospace;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(250,246,236,.72);margin:0 0 6px;line-height:1.5}
.mmm-fact dd{margin:0;font-family:Fraunces,serif;font-weight:600;
  font-size:31px;line-height:1;color:#fff}
.mmm-fact dd .u{display:block;margin-top:6px;font:600 10px "IBM Plex Mono",monospace;
  letter-spacing:.14em;text-transform:uppercase;color:var(--sun)}
.mmm-facts-src{margin:20px 0 4px;padding-top:14px;
  border-top:1px solid rgba(250,246,236,.25);
  font:500 10.5px "IBM Plex Mono",monospace;letter-spacing:.06em;
  line-height:1.6;color:rgba(250,246,236,.75)}

/* ---- 3. Pull quote: the post's single most useful line. */
.mmm-pq{margin:32px 0;background:var(--sheet);border:1px solid var(--line);
  border-radius:var(--r-card);box-shadow:var(--shadow-img);padding:28px 30px 24px}
.mmm-pq::before{content:"";display:block;width:46px;height:3px;
  background:var(--pink);margin-bottom:16px}
.mmm-pq p{margin:0;font-family:Fraunces,serif;font-style:italic;font-weight:560;
  font-size:24px;line-height:1.35;color:var(--ink-text)}

/* ---- 4 + 6. Cards: program cards, internal CTA cards, Amazon
   placeholder cards. One base, three registers. */
.mmm-card{margin:32px 0;background:var(--sheet);border:1px solid var(--line);
  border-radius:var(--r-card);box-shadow:var(--shadow-img);padding:24px 26px 18px}
.mmm-card-tag{display:inline-block;font:600 10.5px "IBM Plex Mono",monospace;
  letter-spacing:.14em;text-transform:uppercase;border-radius:6px;
  padding:4px 9px;margin:0 0 14px}
.mmm-card--prog .mmm-card-tag{background:var(--pink-tint);color:#07382A}
.mmm-card--cta{background:var(--sky-panel);border-color:#C9DCEC}
.mmm-card--cta .mmm-card-tag{background:#fff;color:var(--deep-blue)}
.mmm-card-t{font-family:Fraunces,serif;font-weight:600;font-size:22px;
  line-height:1.2;color:var(--ink-text);margin:0 0 8px}
.mmm-card-b{margin:0 0 18px;font-size:15.5px;line-height:1.6;color:var(--muted)}
.mmm-card-disc{margin:16px 0 6px;padding-top:12px;
  border-top:1px solid var(--line);font-size:12px;line-height:1.55;
  color:var(--faint)}
.mmm-card--amz{border:1.5px dashed var(--ochre);background:var(--paper);
  box-shadow:none}
.mmm-card--amz .mmm-card-tag{background:var(--ochre);color:#16130D}
.mmm-amz-items{list-style:none;margin:0 0 6px;padding:0}
.mmm-amz-items li{padding:9px 0;border-top:1px solid var(--line)}
.mmm-amz-items li:first-child{border-top:0;padding-top:0}
.mmm-amz-items a{font-weight:600;color:var(--deep-pink);text-underline-offset:3px}
.mmm-amz-note{margin:14px 0 6px;font:600 11px "IBM Plex Mono",monospace;
  letter-spacing:.08em;line-height:1.7;text-transform:uppercase;color:#8A6410}

/* ---- 5. End-of-post next step: internal route paired with a fitting
   affiliate action where one exists. */
.mmm-next2{margin:32px 0 8px;background:var(--sand);
  border-radius:var(--r-card);padding:26px 28px 20px}
.mmm-next2-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:6px}
.mmm-next2-cell{background:var(--sheet);border:1px solid var(--line);
  border-radius:12px;padding:18px 20px 14px}
.mmm-next2-lab{font:600 10.5px "IBM Plex Mono",monospace;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint);margin:0 0 8px}
.mmm-next2-t{display:block;font-family:Fraunces,serif;font-weight:600;
  font-size:19px;line-height:1.25;color:var(--ink-text);text-decoration:none}
.mmm-next2-t .arr{color:var(--deep-pink)}
.mmm-next2-t:hover{text-decoration:underline;text-underline-offset:4px}
.mmm-next2-x{margin:8px 0 4px;font-size:14px;line-height:1.55;color:var(--muted)}
.mmm-next2 .mmm-card-disc{border-top-color:rgba(76,70,56,.18)}

/* Specificity overrides against the post body's prose rules (the body
   caps paragraph measure and colours links deep pink; both would
   otherwise leak into the components). */
.mmm-post-body .mmm-disc{max-width:none}
.mmm-post-body .mmm-pq p{max-width:none}
.mmm-post-body .mmm-card-b{max-width:62ch}
.mmm-post-body .mmm-next2-x{max-width:52ch}
.mmm-post-body a.mmm-sq{color:var(--cream)}
.mmm-post-body .mmm-next2-t{color:var(--ink-text)}

@media (max-width:640px){
  .mmm-facts{padding:22px 20px 16px}
  .mmm-facts-grid{grid-template-columns:1fr 1fr;gap:16px}
  .mmm-fact dd{font-size:26px}
  .mmm-pq{padding:22px 20px 18px}
  .mmm-pq p{font-size:21px}
  .mmm-card{padding:20px 18px 14px}
  .mmm-next2{padding:20px 18px 14px}
  .mmm-next2-grid{grid-template-columns:1fr}
  .mmm-disc{gap:8px}
}

/* ---- Blog template layer (PHASE2 s.87, 2026-11-09): the furniture
   every post gains from the template system: short-answer box, table
   of contents, mid-post checklist signup, FAQ block, disclaimer line,
   author box, category related cards, and the /blog/ index upgrade
   (thumbnails, filter chips, search, pagination). Same definitive
   tokens and component grammar as the s.84 pilot above. */

/* ---- Short answer: the post's own opening paragraph, boxed. */
.mmm-answer{margin:0 0 32px;background:var(--sand);
  border-radius:var(--r-card);padding:20px 24px 8px}
.mmm-answer-tag{display:inline-block;font:600 10.5px "IBM Plex Mono",monospace;
  letter-spacing:.14em;text-transform:uppercase;background:var(--ochre);
  color:#16130D;border-radius:6px;padding:3px 8px;margin:0 0 12px}
.mmm-post-body .mmm-answer p{max-width:68ch}
.mmm-answer p:last-child{font-size:16.5px;line-height:1.6;color:var(--ink-text)}

/* ---- Table of contents: four or more h2 sections. */
.mmm-toc{margin:0 0 32px;background:var(--sheet);border:1px solid var(--line);
  border-radius:var(--r-card);box-shadow:var(--shadow-img);padding:20px 24px 12px}
.mmm-toc-h{font:600 11px "IBM Plex Mono",monospace;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);margin:0 0 12px;
  display:flex;align-items:center;gap:12px}
.mmm-toc-h::after{content:"";width:46px;height:3px;background:var(--pink)}
.mmm-toc ol,.mmm-toc ul{list-style:none;margin:0;padding:0;columns:2;column-gap:34px}
.mmm-toc li{break-inside:avoid;padding:7px 0;border-top:1px solid var(--line)}
.mmm-toc li:first-child{border-top:0}
.mmm-toc a{font-size:14.5px;font-weight:500;line-height:1.45;
  color:var(--ink-text);text-decoration:none}
.mmm-toc a:hover{color:var(--deep-pink);text-decoration:underline;
  text-underline-offset:3px}

/* ---- Disclaimer line: legal, tax and immigration posts only. */
.mmm-disclaimer{margin:22px 0 0;background:var(--paper);
  border-left:4px solid var(--ochre);border-radius:0 10px 10px 0;
  padding:12px 16px;font-size:13.5px;line-height:1.55;color:var(--muted);
  display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;max-width:760px}
.mmm-disclaimer-tag{flex:none;font:600 10.5px "IBM Plex Mono",monospace;
  letter-spacing:.14em;text-transform:uppercase;color:#8A6410}

/* ---- Mid-post checklist signup. */
.mmm-signup{margin:32px 0;background:var(--sheet);border:1px solid var(--line);
  border-radius:var(--r-card);box-shadow:var(--shadow-img);padding:24px 26px 20px}
.mmm-signup-tag{background:var(--ochre);color:#16130D}
.mmm-signup .mmm-capture{max-width:560px}

/* ---- FAQ block: the post's own questions, answered from its own
   content and the verified figures. */
.mmm-faq{margin:32px 0 8px}
.mmm-faq-h{margin-bottom:6px}
.mmm-faq-item{padding:16px 0 4px;border-top:1px solid var(--line)}
.mmm-faq-q{font-family:Fraunces,serif;font-weight:600;font-size:19px;
  line-height:1.3;color:var(--ink-text);margin:0 0 6px}
.mmm-post-body .mmm-faq-a{max-width:68ch;color:var(--muted)}

/* ---- Author box: closes every post. */
.mmm-author{margin:40px 0 4px;display:flex;gap:20px;align-items:center;
  background:var(--sand);border-radius:var(--r-card);padding:22px 26px}
.mmm-author-img{flex:none;width:88px;height:88px;object-fit:cover;
  border-radius:16px;box-shadow:var(--shadow-img)}
.mmm-author-name{font-family:Fraunces,serif;font-weight:600;font-size:21px;
  line-height:1.2;color:var(--ink-text);margin:0}
.mmm-author-line{margin:4px 0 0;font-size:15px;line-height:1.55;color:var(--muted)}
.mmm-author-link{margin:8px 0 0}

/* ---- Related cards (post end) and blog index cards: the photo. */
.mmm-related2{margin-top:44px}
.mmm-postcard-img{display:block;margin:-26px -28px 18px;
  border-radius:var(--r-card) var(--r-card) 0 0;overflow:hidden}
.mmm-postcard-img img{display:block;width:100%;height:100%;
  aspect-ratio:16/10;object-fit:cover}

/* ---- /blog/ index: search, filter chips, pagination. */
.mmm-blogsearch{max-width:560px;margin:26px 0 4px}
.mmm-blogsearch .wp-block-search__inside-wrapper{display:flex;gap:0}
.mmm-blogsearch .wp-block-search__input{flex:1;min-width:0;min-height:48px;
  padding:12px 16px;border:1px solid var(--line);border-right:0;
  border-radius:10px 0 0 10px;font:500 15px "Inter",sans-serif;
  background:var(--sheet);color:var(--ink-text)}
.mmm-blogsearch .wp-block-search__button{min-height:48px;margin:0;
  padding:12px 20px;background:var(--ink);color:var(--cream);border:0;
  border-radius:0 10px 10px 0;font:700 13px "Inter",sans-serif;
  letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.mmm-cats{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 2px}
.mmm-catchip{display:inline-flex;align-items:center;gap:7px;min-height:48px;
  padding:8px 14px;background:var(--sheet);border:1px solid var(--line);
  border-radius:8px;font:600 11px "IBM Plex Mono",monospace;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink-text);
  text-decoration:none}
.mmm-catchip:hover{border-color:var(--ink)}
.mmm-catchip-n{color:var(--faint);letter-spacing:0}
.mmm-catchip.is-active{background:var(--ink);color:var(--cream);
  border-color:var(--ink)}
.mmm-catchip.is-active .mmm-catchip-n{color:var(--sun)}
.mmm-blogpages{margin:36px 0 6px}
.mmm-blogpages .page-numbers{display:inline-flex;align-items:center;
  min-height:44px;padding:8px 15px;background:var(--sheet);
  border:1px solid var(--line);border-radius:8px;
  font:600 12px "IBM Plex Mono",monospace;letter-spacing:.06em;
  color:var(--ink-text);text-decoration:none}
.mmm-blogpages .page-numbers.current{background:var(--ink);
  color:var(--cream);border-color:var(--ink)}
.mmm-blogpages a.page-numbers:hover{border-color:var(--ink)}

@media (max-width:640px){
  .mmm-toc ol,.mmm-toc ul{columns:1}
  .mmm-toc{padding:18px 18px 8px}
  .mmm-answer{padding:18px 18px 6px}
  .mmm-signup{padding:20px 18px 16px}
  .mmm-author{flex-direction:column;align-items:flex-start;
    padding:20px 18px;gap:14px}
  .mmm-disclaimer{gap:6px}
  .mmm-postcard-img{margin:-20px -18px 16px}
}

/* ---- Pass 1 (2026-11-13) P3: ordered lists are numbered step rows,
   mirroring the .v2t-card ol grammar (numbered disc, card rows). Scoped
   to top-level post-body lists and lists inside collapsible section
   bodies, so the table of contents (nav.mmm-toc ol) is untouched.
   Tightened 2026-11-13 (blog-post optimization) to match the
   list-card restyle in style.css: same 6px gap, 10px vertical
   padding, 26px disc centred on the first text line. */
.mmm-post-body>ol,.mmm-post-body .mmm-coll-b>ol{list-style:none;margin:0 0 18px;padding:0;max-width:640px;display:grid;gap:6px;counter-reset:mmm-step}
.mmm-post-body>ol li,.mmm-post-body .mmm-coll-b>ol li{position:relative;counter-increment:mmm-step;background:var(--sheet);border:1px solid var(--line);border-radius:var(--r-card);padding:10px 14px 10px 50px;font-size:16px;line-height:1.6;box-shadow:0 1px 0 var(--line)}
.mmm-post-body>ol li::before,.mmm-post-body .mmm-coll-b>ol li::before{content:counter(mmm-step);position:absolute;left:14px;top:9px;width:26px;height:26px;border-radius:50%;background:var(--ink);color:var(--cream);font:700 13px/26px "Inter",sans-serif;text-align:center}
.mmm-post-body>ol li>strong:first-child,.mmm-post-body .mmm-coll-b>ol li>strong:first-child{display:block;font-family:Fraunces,serif;font-weight:560;font-size:18px;line-height:1.25;margin-bottom:3px;color:var(--ink)}

/* ---- Pass 1 (2026-11-13) P4 REMOVED 2026-11-13 (blog-post
   optimization): the pill-link rules are gone. The "Keep going" band
   is now a vertical list; its rules live in style.css so they also
   load on pages, where this sheet is not enqueued. */

/* ---- P5 REMOVED 2026-11-13 (pass-1 verification): the survey was wrong.
   .mmm-try was never unstyled: global styles post 1740 already carries the
   complete v3 dark-green callout. These rules lost that cascade except the
   strong-lead color, which rendered the tool name dark-on-dark. The v3
   callout stands alone. */

@media (max-width:640px){
  .mmm-post-body>ol li,.mmm-post-body .mmm-coll-b>ol li{padding:10px 12px 10px 46px}
  .mmm-post-body>ol li::before,.mmm-post-body .mmm-coll-b>ol li::before{left:12px;top:9px}
}
