/* Tool notes and tools hub groups (audit pass, 2026-11-09).
   Explanatory blocks under each tool: a fact band in the deep
   green panel, how-to-read prose, and FAQ rows. Grouped tools
   index headings. Definitive design tokens only. */
.mmm-tool-notes{margin-top:36px}
.mmm-tn-band{background:var(--green);color:var(--cream);border-radius:var(--r-card);padding:20px 22px;box-shadow:var(--shadow-img)}
.mmm-tn-eyebrow{font-family:"IBM Plex Mono",monospace;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sun);margin:0 0 14px}
.mmm-tn-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.mmm-tn-cell{min-width:0}
.mmm-tn-k{display:block;font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--cream);opacity:.72;margin-bottom:5px}
.mmm-tn-v{display:block;font-weight:600;line-height:1.45}
.mmm-tn-h{font-family:"Fraunces",serif;font-weight:600;font-size:26px;line-height:1.2;color:var(--ink-text);margin:30px 0 10px}
.mmm-tool-notes>p{max-width:640px;font-size:16px;line-height:1.65;margin:0 0 14px;color:var(--ink-text)}
.mmm-tn-faq{border-bottom:1px solid var(--line)}
.mmm-tn-qa{border-top:1px solid var(--line);padding:14px 0 16px}
.mmm-tn-qa h3{font-size:17px;margin:0 0 6px;color:var(--ink-text)}
.mmm-tn-qa p{margin:0;line-height:1.55}
.mmm-tool-notes a{color:var(--deep-pink)}
.tk-panel .mmm-tool-notes{margin-top:20px}
.tk-panel .mmm-tn-h{font-size:22px}
.mmm-tools-start{background:var(--sky-panel);border-radius:var(--r-media);padding:14px 18px;line-height:1.5}
.mmm-tools-start a{color:var(--deep-pink);font-weight:600}
.mmm-tg-h{font-family:"Fraunces",serif;font-weight:600;font-size:28px;line-height:1.2;margin:34px 0 4px;color:var(--ink-text)}
.mmm-tg-sub{color:var(--muted);margin:0 0 16px}
@media (max-width:640px){.mmm-tn-cells{grid-template-columns:1fr}}

/* Tools as apps (PHASE2 s.121, 2026-11-10): slider pairs, button-group
   mirrors of short selects, picked-answer marking on the quizzes, and
   pinned result regions at phone widths. Tokens are the theme's. */
/* The pinned regions need the page wrap's overflow released (done in
   mmm-tools-apps.js); overflow-x:clip keeps that release from letting
   any long tool row widen the page, exactly as the wrap's clip did,
   without recreating a scroll container (sticky still engages). */
.mmm-tool-body{overflow-x:clip}
.mmm-tool-body input[type="range"].mmm-slider{-webkit-appearance:none;appearance:none;
  width:100%;height:48px;background:transparent;cursor:pointer;margin:2px 0 0;padding:0;border:0}
.mmm-tool-body input[type="range"].mmm-slider::-webkit-slider-runnable-track{height:8px;
  background:rgba(34,48,42,.25)}
.mmm-tool-body input[type="range"].mmm-slider::-webkit-slider-thumb{-webkit-appearance:none;
  width:30px;height:30px;margin-top:-11px;background:var(--deep-pink);
  border:3px solid var(--ink);border-radius:4px}
.mmm-tool-body input[type="range"].mmm-slider::-moz-range-track{height:8px;
  background:rgba(34,48,42,.25)}
.mmm-tool-body input[type="range"].mmm-slider::-moz-range-thumb{width:24px;height:24px;
  background:var(--deep-pink);border:3px solid var(--ink);border-radius:4px}
.mmm-tool-body input[type="range"].mmm-slider:focus-visible{outline:3px solid var(--sun);
  outline-offset:2px}
.mmm-tool-body select.mmm-select-native{position:absolute!important;width:1px;height:1px;
  opacity:0;pointer-events:none}
.mmm-tool-body .tk-opt.selected{border-color:var(--deep-pink);
  box-shadow:4px 4px 0 var(--deep-pink)}
.mmm-tool-body .tk-opt.selected .tk-key{background:var(--deep-pink);color:#fff}
@media (max-width:900px){
  .mmm-tool-body .tk-hero.mmm-pin{position:sticky;top:90px;z-index:60;
    padding:20px 20px;margin-bottom:24px}
  .mmm-tool-body .tk-hero.mmm-pin .tk-big{font-size:clamp(36px,6vw,60px)}
  .mmm-tool-body .tk-progress.mmm-pin{position:sticky;top:90px;z-index:60;
    background:var(--sheet);padding:12px 0 10px;margin:0 0 24px}
  .mmm-tool-body .tk-controls.mmm-pin{position:sticky;top:90px;z-index:60;
    background:var(--paper);padding:12px 0 10px;margin:-12px 0 18px}
}
@media (max-width:560px){
  .mmm-tool-body .tk-hero.mmm-pin,
  .mmm-tool-body .tk-progress.mmm-pin,
  .mmm-tool-body .tk-controls.mmm-pin{top:68px}
}

/* T2 (Pass 1, 2026-11-13): tool-notes prose treatment. Paragraphs read
   as designed prose (640px measure, airy leading, pink links with an
   underline offset); the source band and FAQ keep their own treatments. */
.mmm-tool-notes>p:last-of-type{margin-bottom:0}
.mmm-tool-notes a{text-underline-offset:3px}

/* T3 (Pass 1, 2026-11-13): dataset link lists on the /tools/ hub
   (page 18, .mmm-index-body--tools). The consulate list renders as
   designed link rows in the .mmm-rows grammar (ink rules, Fraunces
   arrow, pink hover); the "City versus city" intro keeps its prose
   form with emphasised links. No stored markup changed. */
.mmm-index-body--tools .section{margin-top:48px}
.mmm-index-body--tools .section h2{font-family:"Fraunces",serif;font-weight:600;font-size:28px;line-height:1.2;margin:0 0 4px;color:var(--ink-text)}
.mmm-index-body--tools .section>p{color:var(--muted);margin:0 0 16px;max-width:640px;line-height:1.6}
.mmm-index-body--tools .section>p a{color:var(--deep-pink);font-weight:600;text-underline-offset:3px}
.mmm-index-body--tools .section ul{list-style:none;margin:0;padding:0;border-top:3px solid var(--ink)}
.mmm-index-body--tools .section ul li{border-bottom:2px solid var(--ink)}
.mmm-index-body--tools .section ul li a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 6px;min-height:48px;font-weight:600;color:var(--ink-text);text-decoration:none}
.mmm-index-body--tools .section ul li a::after{content:"\2192";font-family:Fraunces,serif;font-size:24px;color:var(--burnt);flex:none;transition:transform .25s var(--ease)}
.mmm-index-body--tools .section ul li a:hover{color:var(--deep-pink)}
.mmm-index-body--tools .section ul li a:hover::after{transform:translateX(5px)}

/* T4 (Pass 1, 2026-11-13): classes replacing the calculator's static
   inline styles (page 85, _mmm_tool_html). Values are identical to the
   inline styles they replace; the JS-generated bar widths stay inline. */
.mmm-tool-body .tk-sub--tight{margin:6px 0 0}
.mmm-tool-body .mmm-re-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mmm-tool-body .tk-field--flush{margin-bottom:0}
.mmm-tool-body .tk-meta--tight{margin-top:6px}

/* B-23 (Pass 2, 2026-11-13): segmented-control buttons had no visible
   keyboard focus (the selected state is a colour change only). Same
   3px sun outline as the sliders above; the buttons keep their own
   active styling. */
.mmm-tool-body .tk-seg button:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
