/* The context anchors the overlay to the copy, not to a viewport edge. */
.inline-help-context { position: relative; }
.inline-help { display: inline-block; width: var(--s-6); height: var(--s-6); margin-inline-start: var(--s-1); vertical-align: -.3em; }
.inline-help > summary { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer; list-style: none; }
.inline-help > summary::-webkit-details-marker { display: none; }
.inline-help > summary::marker { content: ''; }
.inline-help-symbol { display: inline-grid; place-items: center; width: var(--icon-sm); height: var(--icon-sm); border: 1px solid var(--ink-3); background: var(--ground); color: var(--ink-2); font-family: inherit; font-size: inherit; font-weight: inherit; line-height: 1; }
.inline-help > summary:hover .inline-help-symbol,
.inline-help[open] .inline-help-symbol { background: var(--green); border-color: var(--green); color: var(--ground); }
.inline-help-panel { position: absolute; z-index: 10; inset-inline: 0; top: 100%; max-width: 65ch; padding-top: var(--s-3); font-size: var(--type-body); font-weight: var(--body-weight); line-height: var(--leading-body); text-align: start; }
.inline-help-content { display: grid; gap: var(--s-5); padding: clamp(var(--s-6), 3vw, var(--s-7)); padding-inline-start: var(--s-8); max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--raised); color: var(--ink-2); }
.inline-help-example { display: grid; gap: var(--s-5); max-width: 65ch; margin-top: var(--s-6); }
/* Text-relative tile treatments share the button palette and motion.
   The absolute glyph leaves sizing and baseline alignment to the outer box. */
.inline-help-tile .inline-help { width: 1.3cap; height: 1.3cap; margin-inline: .4em .3em; vertical-align: -.15cap; }
.inline-help-tile .inline-help > summary { position: relative; display: flex; min-height: 0; padding: 0; font-size: inherit; line-height: 1; }
.inline-help-tile .inline-help > summary .inline-help-symbol { position: absolute; inset: 0; width: auto; height: auto; border: 0; background: transparent; color: inherit; font-size: .8em; }
.inline-help-card .inline-help { width: 1.33cap; height: 1.777cap; margin-inline: .6em .6em; vertical-align: -.44cap; }
.inline-help-card .inline-help > summary .inline-help-symbol { font-size: .88em; }
