/* Unhyped's design kit: the pieces every Unhyped page shares (kit.js draws them).
   The source is shared/kit in miracle-health-community; scripts/sync_kit.sh copies it into the
   community app and the website, and CI checks every copy matches. Load it before each app's
   own stylesheet. */
:root{
  --mh-lime:#3D8BFF;--mh-lime-2:#2E7BFF;
  --mh-ink:#000000;--mh-ink-2:#121214;--mh-ink-3:#000000;
  --mh-on-ink:#F7F8FA;--mh-on-ink-2:#A1A7B2;--mh-on-ink-3:#7F8796;
  --mh-text:#F7F8FA;--mh-text-2:#A1A7B2;--mh-muted:#7F8796;
  --mh-line:rgba(255,255,255,.10);--mh-line-ink:rgba(255,255,255,.10);
  --mh-good:#2E7BFF;--mh-red:#B0453D;--mh-amber:#E8B75A;
  --mh-scale:linear-gradient(90deg,rgba(61,139,255,.28),#3D8BFF);
  --mh-head:'Mona Sans Display','Mona Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mh-body:'Mona Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mh-mono:'Monaspace Neon',ui-monospace,SFMono-Regular,Menlo,monospace;
  --mh-chip-bg:rgba(255,255,255,.06);
}
/* The punchline, in both apps: the second sentence of a two-sentence headline (the line "No miracles.
   Just what happened.", a page's own headline, a share card's), in the Signal's light: its blue running
   into the violets of its bars, each line drawn with the whole run (decision, November 18). Signal blue
   underneath, for a browser that can't clip a gradient to words and for high-contrast modes */
.punch{font-style:normal;color:var(--lime);background:linear-gradient(90deg,#3D8BFF 0%,#6B48F1 52%,#9AA0F4 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media (forced-colors:active){.punch{background:none;-webkit-text-fill-color:currentColor}}
.mh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* The four places, on the dark top bar of every page */
.mh-bar{display:flex;align-items:center;gap:26px;min-width:0}
.mh-bar a{position:relative;display:inline-flex;align-items:center;height:36px;color:var(--mh-on-ink-2);text-decoration:none;font:500 14px/1 var(--mh-body);white-space:nowrap;transition:color .15s}
.mh-bar a:hover{color:var(--mh-on-ink)}
.mh-bar a[aria-current="page"]{color:var(--mh-on-ink)}
.mh-bar a[aria-current="page"]::after{content:'';position:absolute;left:0;right:0;bottom:3px;height:1.5px;background:var(--mh-on-ink)}

/* How strong the evidence is: four bars, in the color of the text around them
   (set --mh-meter to color them) */
.mh-ev{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.mh-meter{display:inline-grid;grid-template-columns:repeat(4,8px);gap:2px;flex:none;color:var(--mh-meter,currentColor)}
.mh-meter i{height:6px;border-radius:0;background:currentColor;opacity:.22}
.mh-meter.m1 i:nth-child(-n+1),.mh-meter.m2 i:nth-child(-n+2),.mh-meter.m3 i:nth-child(-n+3),.mh-meter.m4 i{opacity:1}

/* The Community Signal: the seal and the number */
.mh-signal{display:inline-flex;align-items:center;gap:5px;font:600 13px/1 var(--mh-mono);font-variant-numeric:tabular-nums;white-space:nowrap;vertical-align:middle}
.mh-signal svg{flex:none;width:18px;height:18px}
.mh-signal.big{gap:8px;font-size:22px;letter-spacing:-.02em}
.mh-signal.big svg{width:30px;height:30px}

/* A compound: tile, name, meter and Signal, and its part in a plan or stack */
.mh-chip{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-width:0;padding:7px 12px 7px 7px;border-radius:0;background:var(--mh-chip-bg,rgba(0,0,0,.05));color:inherit;text-decoration:none;vertical-align:middle}
.mh-chip .mh-tile{flex:none;width:28px;height:28px}
.mh-chip-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.mh-chip-n{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;font:600 14.5px/1.3 var(--mh-body);letter-spacing:-.01em}
.mh-chip-name{overflow-wrap:anywhere}
.mh-chip-r{font-size:12.5px;line-height:1.4;opacity:.75}
a.mh-chip:hover .mh-chip-name{text-decoration:underline;text-underline-offset:3px}

/* Sig: a fine ring with the mood drawn inside it, in the hand of the front page's three step
   drawings (kit.js). It moves only to say something: the three dots beat while it thinks, the
   drawing swells when something good happens and the eye looks aside while it watches. The
   drawing's middle is the grid's 0 0, which is where an SVG transform starts from.
   (sig-dot is also the waiting dots' beat in Ask Sig.) */
.sig.think .sig-dot{animation:sig-dot 1.2s ease-in-out infinite}
.sig.think .sig-dot.d2{animation-delay:.2s}
.sig.think .sig-dot.d3{animation-delay:.4s}
.sig.happy .sig-in,.sig.cheer .sig-in,.sig.burst .sig-in{animation:sig-swell .7s ease 2}
.sig.watching .sig-pupil{animation:sig-look 4s ease-in-out infinite}
@keyframes sig-dot{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes sig-swell{0%,100%{transform:scale(1)}40%{transform:scale(1.09)}}
@keyframes sig-look{0%,40%,100%{transform:translateX(0)}50%,90%{transform:translateX(-7px)}}
@media (prefers-reduced-motion:reduce){
  .sig *{animation:none!important}
}

/* The body map (bodymap.js): how a compound works in the body, place by place. Its colors come
   from the text around it, so it reads on light and dark pages alike (set the --mh-bm-* properties
   to change them), and it lays itself out by its own width (a container query), not the window's */
.mh-bm{position:relative;container:mh-bm/inline-size;
  --mh-bm-rule:color-mix(in srgb,currentColor 14%,transparent);
  --mh-bm-soft:color-mix(in srgb,currentColor 68%,transparent);
  --mh-bm-warn:#FF6B5B;
  --mh-bm-watch:#3FE0C5;
  --mh-bm-meet:color-mix(in srgb,var(--mh-lime) 18%,transparent);
  --mh-bm-lit:color-mix(in srgb,var(--mh-lime) 42%,transparent);
  font:15px/1.5 var(--mh-body);overflow-wrap:break-word}
.mh-bm-lead{max-width:52ch;margin:0 0 14px;font-weight:600}
.mh-bm-txt{max-width:52ch}
.mh-bm-route{display:inline-block;margin-left:6px;padding:1px 8px;border:1px solid var(--mh-bm-rule);border-radius:0;font:500 12px/1.6 var(--mh-body);color:var(--mh-bm-soft);white-space:nowrap}
.mh-bm-list{margin:0}
.mh-bm-row{display:grid;gap:6px;padding:12px 0;border-top:1px solid var(--mh-bm-rule)}
.mh-bm-row dt{font:600 12px/1.5 var(--mh-mono);color:var(--mh-bm-soft)}
.mh-bm-row dd{margin:0}
@container mh-bm (min-width:34rem){.mh-bm-row{grid-template-columns:10rem 1fr;gap:18px}.mh-bm-row dt{padding-top:2px}}
.mh-bm-list ul,.mh-bm-table ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.mh-bm-ln{display:grid;grid-template-columns:1.1em 1fr;gap:8px;align-items:baseline;margin:0 -6px;padding:2px 6px;border-radius:0}
.mh-bm-op{font:600 12px/1 var(--mh-mono);color:var(--mh-bm-soft);text-align:center}
.mh-bm-ln.op-warn .mh-bm-op,.mh-bm-key .op-warn .mh-bm-op{color:var(--mh-bm-warn)}
.mh-bm-ln.op-watch .mh-bm-op,.mh-bm-key .op-watch .mh-bm-op{color:var(--mh-bm-watch)}
.mh-bm-refs{white-space:nowrap}
.mh-bm-src{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;margin-right:2px;padding:0 4px;border-radius:0;background:var(--mh-bm-rule);color:inherit;font:600 11px/1 var(--mh-mono);text-decoration:none;vertical-align:middle}
.mh-bm-src:hover{text-decoration:underline}
.mh-bm-mks{display:inline-flex;flex-wrap:wrap;gap:4px;vertical-align:middle}
.mh-bm-mk{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:0 8px;border:1px solid var(--mh-bm-rule);border-radius:0;background:none;color:inherit;font:500 12px/1 var(--mh-body)}
button.mh-bm-mk{cursor:pointer}
@media (max-width:700px){button.mh-bm-mk{min-height:40px}}
button.mh-bm-mk:hover{border-color:currentColor}
button.mh-bm-mk[aria-pressed="true"]{border-color:currentColor;background:var(--mh-bm-lit);font-weight:600}
.mh-bm-dir{font:600 11px/1 var(--mh-mono)}
.mh-bm-mk.d-watch .mh-bm-dir{color:var(--mh-bm-watch)}
.mh-bm-ln.lit{background:var(--mh-bm-lit);box-shadow:inset 3px 0 0 currentColor}
/* Its own positioning context, so the words only screen readers hear can't stick out past it */
.mh-bm-scroll{position:relative;overflow-x:auto;border-radius:0}
/* Fixed columns: the place, then one equal column per compound, drawn or not */
.mh-bm-table{width:100%;min-width:calc(8rem + var(--n,2) * 13rem);border-collapse:collapse;table-layout:fixed}
.mh-bm-table[data-n="3"]{--n:3}.mh-bm-table[data-n="4"]{--n:4}.mh-bm-table[data-n="5"]{--n:5}.mh-bm-table[data-n="6"]{--n:6}
.mh-bm-table thead td{width:8rem}
.mh-bm-table th,.mh-bm-table td{padding:12px;text-align:left;vertical-align:top;border-top:1px solid var(--mh-bm-rule)}
.mh-bm-table thead th,.mh-bm-table thead td{border-top:0}
.mh-bm-table thead th{font-weight:600}
.mh-bm-table tbody th{font:600 12px/1.5 var(--mh-mono);color:var(--mh-bm-soft)}
.mh-bm-table tr.meet{background:var(--mh-bm-meet)}
.mh-bm-table tr.meet th{color:inherit}
.mh-bm-name{display:block}
.mh-bm-table .mh-bm-route{margin:4px 0 0}
.mh-bm-note{display:block;margin-top:4px;font:500 12px/1.4 var(--mh-body);color:var(--mh-bm-soft)}
.mh-bm-meet{display:block;margin-top:4px;font:600 11px/1.3 var(--mh-body)}
.mh-bm-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin:14px 0 0;padding:0;list-style:none;font:500 12px/1.4 var(--mh-body);color:var(--mh-bm-soft)}
.mh-bm-key li{display:inline-flex;align-items:center;gap:6px}
.mh-bm-msg{margin:0;color:var(--mh-bm-soft)}
.mh-bm-retry{margin-top:12px;min-height:44px;padding:0 18px;border:1px solid currentColor;border-radius:0;background:none;color:inherit;font:600 14px/1 var(--mh-body);cursor:pointer}
.mh-bm-foot{margin:12px 0 0;font-size:12px;color:var(--mh-bm-soft)}
.mh-bm :focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mh-bm-scroll:focus-visible{outline-offset:4px}
@media (prefers-reduced-motion:no-preference){
  .mh-bm-ln{transition:background-color .15s}
}
@media (forced-colors:active){.mh-bm-ln.lit{outline:2px solid CanvasText}button.mh-bm-mk[aria-pressed="true"]{outline:2px solid CanvasText}}

/* Loading, in both apps (kit.js waitHtml): Sig's ring is the spinner, its pieces lit one by one round
   the ring from the Safety agent's coral, beside one plain line saying what's loading */
.mh-wait{display:flex;align-items:center;gap:10px;margin:0;color:var(--mh-muted);font:400 14px/1.5 var(--mh-body)}
.mh-wait-ring{display:block;flex:none}
.mh-wait-ring .rg{opacity:.18}
@media (prefers-reduced-motion:no-preference){
  .mh-wait-ring .rg{animation:mh-wait 1.32s linear infinite}
  .mh-wait-ring .rg:nth-child(2){animation-delay:.12s}.mh-wait-ring .rg:nth-child(3){animation-delay:.24s}
  .mh-wait-ring .rg:nth-child(4){animation-delay:.36s}.mh-wait-ring .rg:nth-child(5){animation-delay:.48s}
  .mh-wait-ring .rg:nth-child(6){animation-delay:.6s}.mh-wait-ring .rg:nth-child(7){animation-delay:.72s}
  .mh-wait-ring .rg:nth-child(8){animation-delay:.84s}.mh-wait-ring .rg:nth-child(9){animation-delay:.96s}
  .mh-wait-ring .rg:nth-child(10){animation-delay:1.08s}.mh-wait-ring .rg:nth-child(11){animation-delay:1.2s}
}
@media (prefers-reduced-motion:reduce){.mh-wait-ring .rg{opacity:1}}
@keyframes mh-wait{0%,10%{opacity:1}35%,100%{opacity:.18}}
@media (forced-colors:active){.mh-wait-ring .rg{opacity:1;stroke:CanvasText}}

/* The Signal's drawings (signalviz.js), in both apps: words in the body face, as written (never tracked
   capitals in the code face); numbers stay in the code face (t-mono, each app's) */
.t-label{font-family:var(--mh-body);font-weight:500;letter-spacing:0}
