/* Shared, explicitly themed About dialog for the ML map and its host header.
   Every selector is scoped so the rest of the website keeps its own design. */
@font-face {
  font-family: "ML About Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/tools/_shared/fonts/Manrope-variable.ttf") format("truetype");
}
.ml-about-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Standalone page: an icon-only button after the title, so it never competes
   with it. Hover only darkens the icon; no fill or pill. */
.ml-about-trigger {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  color: var(--muted, #606d85); background: none; cursor: pointer;
  transition: color .15s ease;
}
.ml-about-trigger svg { width: 20px; height: 20px; }
.ml-about-trigger:hover { color: var(--ink, currentColor); }
.ml-about-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ml-about-title-row .ml-about-trigger { align-self: center; }
.ml-about-overlay { position: fixed; inset: 0; z-index: 80; background: #24304440; backdrop-filter: blur(8px); }
.ml-about-overlay[data-theme="dark"] { background: #060a1266; }
.ml-about-dialog {
  --about-surface: #fff; --about-ink: #243044; --about-muted: #606d85;
  --about-line: #e2e5ee; --about-tint: #edf1ff; --about-accent: #4f6bd5;
  position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%);
  box-sizing: border-box; width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 28px; border: 1px solid var(--about-line); border-radius: 20px;
  color: var(--about-ink); background: var(--about-surface);
  box-shadow: 0 24px 80px #14233c26;
  font-family: "ML About Manrope", system-ui, sans-serif; font-size: 14px; line-height: 1.6;
}
.ml-about-dialog[data-theme="dark"] {
  --about-surface: #1e2633; --about-ink: #e7ecf6; --about-muted: #aab7ce;
  --about-line: #354259; --about-tint: #25314c; --about-accent: #9bb5ff;
  box-shadow: 0 24px 80px #0006;
}
dialog.ml-about-dialog:not([open]) { display: none; }
dialog.ml-about-dialog::backdrop { background: #24304440; backdrop-filter: blur(8px); }
dialog.ml-about-dialog[data-theme="dark"]::backdrop { background: #060a1266; }
.ml-about-dialog .ml-about-title { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.03em; margin: 0 40px 8px 0; }
.ml-about-dialog .ml-about-intro { margin: 0 0 18px; color: var(--about-muted); }
.ml-about-dialog .ml-about-prediction { padding: 12px 16px; background: var(--about-tint); border-radius: 12px; margin-bottom: 18px; }
.ml-about-dialog .ml-about-prediction strong { display: block; font-size: 11px; color: var(--about-accent); margin-bottom: 3px; }
.ml-about-dialog .ml-about-prediction p { margin: 0; font-weight: 600; line-height: 1.6; }
.ml-about-dialog section + section { margin-top: 14px; }
.ml-about-dialog h3 { font-size: 14px; font-weight: 700; margin: 0 0 2px; line-height: 1.5; }
.ml-about-dialog section p { margin: 0; }
.ml-about-dialog ul { margin: 4px 0 0; padding-left: 19px; list-style: disc; }
.ml-about-dialog li + li { margin-top: 4px; }
.ml-about-close {
  position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--about-line); border-radius: 8px;
  color: var(--about-muted); background: var(--about-surface); cursor: pointer;
}
.ml-about-close svg { width: 16px; height: 16px; }
.ml-about-close:hover { color: var(--about-ink); border-color: var(--about-muted); }
.ml-about-close:focus-visible { outline: 2px solid var(--about-accent); outline-offset: 2px; }
