/* explain.css — the "?" and its popup (explain-ui.js; words in explain.js), shared by the Approvals page, the Team page and the claim page. It uses only the
   colour tokens those pages' own stylesheets define (the website's ink and peach), so it looks native on each. */
/* "WHAT DOES THIS DO?" (owner direction 2026-10-21). A "?" in its own row at the top of each card, a popup on <body>, and small print
   under the buttons. THE ONE LOOP is the "?" ring's pulse: one slow breath every 1.5 s (0.67 a second, far under the three-a-second ceiling: nothing on this site may flash faster),
   it ends for good once the popup has been opened for that kind of card (.is-seen), and for reduced motion it never moves (a still ring). */
.explain-row { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.explain-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; min-width: 44px; min-height: 44px; margin: 0; padding: 0 12px 0 4px; border: 0; background: transparent; border-radius: 999px; color: var(--peach-ink); font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; box-shadow: none; text-shadow: none; }
.explain-btn:hover { background: rgba(232, 196, 192, 0.08); }
.explain-mark { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--peach-line); background: rgba(232, 196, 192, 0.16); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; }
.explain-mark::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--peach); pointer-events: none; opacity: 0.85; animation: explain-pulse 1.5s ease-in-out var(--explain-phase, 0ms) infinite; }
.explain-btn.is-seen .explain-mark::after { animation: none; opacity: 0; }
@keyframes explain-pulse { 0%, 100% { opacity: 0.15; transform: scale(0.94); } 50% { opacity: 0.9; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .explain-mark::after { animation: none; transform: none; opacity: 0.7; } .explain-btn.is-seen .explain-mark::after { opacity: 0; } }
.card-fineprint { margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: var(--faint); }

body.explain-open { overflow: hidden; }
.explain-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(1, 2, 4, 0.78); }
.explain-dialog { position: relative; display: flex; flex-direction: column; padding-top: 52px; /* the X's own strip: text never scrolls under it */ width: 100%; max-width: 480px; max-height: 100%; background: linear-gradient(165deg, rgba(232, 196, 192, 0.09) 0%, transparent 46%), #05070d; border: 1px solid rgba(232, 196, 192, 0.45); border-radius: 16px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); -webkit-user-select: text; user-select: text; }
.explain-dialog:focus { outline: none; }
.explain-close { position: absolute; top: 4px; right: 4px; z-index: 1; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--ghost-line); border-radius: 50%; display: grid; place-items: center; color: var(--fg); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; background: #05070d; cursor: pointer; }
.explain-close:focus-visible, .explain-btn:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
.explain-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 18px 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.explain-scroll:focus-visible { outline: 2px solid var(--peach); outline-offset: -4px; border-radius: 12px; }
.explain-title { margin: 0 0 10px 0; font-family: var(--display); font-weight: 500; font-synthesis: none; font-size: 22px; line-height: 1.2; letter-spacing: 0.03em; color: var(--peach); }
.explain-head { margin: 14px 0 4px; font-size: 17px; font-weight: 500; font-variant-caps: small-caps; text-transform: lowercase; letter-spacing: 0.06em; color: var(--peach); }
.explain-list { margin: 0; padding-left: 20px; color: var(--fg); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.explain-list li { margin: 4px 0; }
.explain-list li::marker { color: var(--peach-dim); }
.explain-closing { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--peach-ink); font-size: 17px; font-weight: 600; line-height: 1.4; }
.explain-time { margin: -4px 0 6px; font-size: 15px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.explain-time.is-ended { color: var(--danger); font-weight: 600; }
.explain-time:empty { display: none; }

/* A PLAIN NOTICE in the same dialog (explain-ui.js notice(): the pop-up after "Turn on notifications", "That request has ended"), and the buttons on it. Nothing here moves or flashes. */
.explain-notice-text { margin: 10px 0; color: var(--fg); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.explain-address { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--peach-line); border-radius: 12px; background: rgba(232, 196, 192, 0.08); color: var(--peach-ink); font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; user-select: all; }
.explain-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.explain-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--peach-line); border-radius: 999px; background: rgba(232, 196, 192, 0.16); color: #fff; font-family: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.explain-action:hover { background: rgba(232, 196, 192, 0.26); }
.explain-action:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
.explain-action-secondary { background: transparent; border-color: var(--ghost-line); color: var(--fg); }

/* THE SITE'S THEME, 2026-10-27 (docs/THEME-FROM-SITE.md): the primary pill's colour, text halo and glow. */
.explain-action { color: var(--peach-ink); background: rgba(232, 196, 192, 0.12); border-color: rgba(232, 196, 192, 0.45); text-shadow: 0 0 14px rgba(232, 196, 192, 0.45), 0 0 2px rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 1px rgba(232, 196, 192, 0.1), 0 0 18px rgba(232, 196, 192, 0.28), inset 0 0 12px rgba(232, 196, 192, 0.14); }
.explain-action:hover { color: #fff; background: rgba(232, 196, 192, 0.2); border-color: rgba(232, 196, 192, 0.7); }
.explain-action-secondary { background: transparent; border-color: var(--ghost-line); color: var(--fg); text-shadow: none; box-shadow: none; }
.explain-action-secondary:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(243, 240, 232, 0.5); color: var(--fg); }
