/* The "How do I…?" help (help.jsx): the header's button, the dialog's card and the ring around a place in the report. Colours come from the page's tokens (playground.css), so light and dark follow. */ :root { --pg-help-accent: #1d5fd1; --pg-help-shade: rgb(10 14 22 / 0.45); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pg-help-accent: #8ab4ff; --pg-help-shade: rgb(0 0 0 / 0.6); } } :root[data-theme="dark"] { --pg-help-accent: #8ab4ff; --pg-help-shade: rgb(0 0 0 / 0.6); } .pg-help-button { align-self: flex-end; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid var(--pg-help-accent); border-radius: 7px; /* filled, unlike the selects beside it: the one control that is not a setting stands out */ background: var(--pg-help-accent); color: var(--pg-card); font: inherit; font-size: 0.93rem; font-weight: 600; cursor: pointer; } .pg-help-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--pg-card); color: var(--pg-help-accent); font-size: 0.8rem; line-height: 1; } /* the dialog is the whole window: a click beside the card lands on it and closes it */ .pg-help { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--pg-text); } .pg-help::backdrop { background: transparent; } /* without a ring (the question list, a place not on screen) the page is shaded as a whole */ .pg-help-dimmed::backdrop { background: var(--pg-help-shade); } .pg-help-ring { position: fixed; z-index: 2147483000; border: 3px solid var(--pg-help-accent); border-radius: 9px; pointer-events: none; } /* inside the dialog the ring also shades everything around it */ .pg-help-dim { box-shadow: 0 0 0 100vmax var(--pg-help-shade); } .pg-help-card { position: fixed; /* above the ring, whose shade would otherwise dim the card too */ z-index: 2147483001; overflow: auto; padding: 16px 18px; border: 1px solid var(--pg-line); border-radius: 10px; background: var(--pg-card); box-shadow: 0 12px 32px rgb(16 24 40 / 0.25); font-size: 0.95rem; } .pg-help-card h2 { margin: 0 32px 6px 0; font-size: 1.05rem; } .pg-help-card h2:focus { outline: none; } .pg-help-card p { margin: 0 0 12px; } .pg-help-note { color: var(--pg-muted); } .pg-help-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--pg-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; } .pg-help-list { margin: 0; padding: 0; list-style: none; } .pg-help-list button, .pg-help-back { width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--pg-text); font: inherit; text-align: left; cursor: pointer; } .pg-help-list button:hover, .pg-help-back:hover, .pg-help-close:hover { background: var(--pg-bg); } .pg-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; } .pg-help-primary { min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--pg-help-accent); color: var(--pg-card); font: inherit; font-weight: 600; cursor: pointer; } .pg-help-card a { color: var(--pg-help-accent); text-underline-offset: 2px; } .pg-help-back { width: auto; padding-left: 0; color: var(--pg-muted); } .pg-help :focus-visible, .pg-help-button:focus-visible { outline: 2px solid var(--pg-help-accent); outline-offset: 2px; } .pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } @media (prefers-reduced-motion: no-preference) { .pg-help-ring { transition: top 0.15s, left 0.15s, width 0.15s, height 0.15s; } }