/* The ⓘ information bubble (DESIGN.md section 9): explanations live here, next to the subheading, never as paragraphs on the page.
   Markup:  <h2>Heading <button type="button" class="fos-info" aria-label="About this"></button></h2>
            <div class="fos-info-text" hidden>One or two short sentences.</div>   (the element right after the heading)
   Hover opens it on a mouse; tap opens it on a phone; Esc, a second tap or a tap elsewhere closes it. */
.fos-info {
  display: inline-grid; place-items: center; vertical-align: middle;
  inline-size: 28px; block-size: 28px; min-inline-size: 28px; min-block-size: 28px; margin-inline-start: 6px; padding: 0;
  -webkit-tap-highlight-color: transparent; flex: 0 0 auto;
  border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: var(--muted, currentColor);
  font: 700 15px/1 system-ui, sans-serif; cursor: pointer; position: relative;
}
.fos-info::before { content: "i"; font-style: italic; }
/* a 44px tap area around the small circle */
.fos-info::after { content: ""; position: absolute; inset: -8px; }
.fos-info[aria-expanded="true"] { color: var(--accent-ink, currentColor); }
.fos-info-text {
  position: absolute; z-index: 60; max-inline-size: min(320px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: var(--r-md, 12px); border: 1px solid var(--line, Canvas);
  background: var(--surface, Canvas); color: var(--ink, CanvasText); box-shadow: var(--e2, 0 8px 24px color-mix(in srgb, CanvasText 18%, transparent));
  font-size: var(--t-sm, 15px); line-height: 1.45; font-weight: 400; text-transform: none; letter-spacing: normal; font-family: var(--font-body, inherit);
}
.fos-info-text[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .fos-info-text:not([hidden]) { animation: fos-info-in .14s ease-out; } }
@keyframes fos-info-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* the bubble button: no grey tap flash, and a bigger circle for Amaya and the grandparent persona (DESIGN-REVIEW 5.2, component 12) */
.fos-info { -webkit-tap-highlight-color: transparent; touch-action: manipulation; filter: none; }
[data-persona="amaya"] .fos-info, [data-persona="grandparent"] .fos-info { inline-size: 36px; block-size: 36px; min-inline-size: 36px; min-block-size: 36px; font-size: 18px; }
[data-persona="amaya"] .fos-info::after, [data-persona="grandparent"] .fos-info::after { inset: -6px; }
.fos-info:focus-visible { outline-style: solid; outline-width: 3px; outline-color: CanvasText; outline-color: var(--accent-ink, CanvasText); outline-offset: 2px; }
