/* Embeddable chart widget (2026-11-10): /embed/chart/ inside an iframe. Light, no web fonts. */
:root { --ink: #1A1428; --paper: #FFFDF8; --line: #D9D2C6; --pink: #F3D3DA; --brick: #A8322A; --muted: #5E5868; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.em { max-width: 480px; margin: 0 auto; padding: 16px; }
.em-title { font: italic 600 22px/1.2 Georgia, "Times New Roman", serif; margin: 0 0 12px; }
.em-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.em-form input[type=date], .em-form input[type=time], .em-form select { display: block; width: 100%; margin-top: 4px; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.em-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.em-form .em-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: -4px 0 6px; color: var(--ink); font-size: 14px; }
.em-check input { width: 20px; height: 20px; margin: 0; }
.em-btn { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 16px/1.2 inherit; text-align: center; text-decoration: none; cursor: pointer; }
.em-btn:focus-visible, .em-again:focus-visible, .em a:focus-visible, .em input:focus-visible, .em select:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.em-err { color: var(--brick); font-size: 14px; margin: 4px 0; }
.em-out { background: var(--pink); border-radius: 14px; padding: 16px; }
.em-kicker { margin: 0; font-size: 14px; color: var(--muted); }
.em-type { margin: 0 0 10px; font: italic 600 30px/1.1 Georgia, "Times New Roman", serif; }
.em-keys { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.em-keys dt { color: var(--muted); }
.em-keys dd { margin: 0; font-weight: 600; }
.em-note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.em-again { display: block; margin: 10px auto 0; min-height: 44px; padding: 8px 12px; background: none; border: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; }
.em-by { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.em-by a { color: var(--ink); font-weight: 600; }
/* ?theme=dark on the iframe URL (light by default, since host sites pick their own look). */
html.dark { --ink: #F4EFE6; --paper: #1A1428; --line: #4A4258; --pink: #3A2A3E; --muted: #C9C1D2; color-scheme: dark; }
html.dark .em-form input[type=date], html.dark .em-form input[type=time], html.dark .em-form select { background: #241C33; }
html.dark .em-btn { background: #F4EFE6; color: #1A1428; }
