/* Sofia's answer box (2026-10-30): works on the dark site pages, the light Community board and the header search window
   (colours follow the text). Readability pass (owner 2026-10-30, "hard to read"): 16px text at 1.65, a 68-character measure,
   real lists with coloured numbers and air between steps, sources set apart under a hairline, links in a blue mixed with the
   text colour so they keep their contrast on dark and light pages. */
.sofia-box { --sofia-link: color-mix(in srgb, #2D8CEB 66%, currentColor); margin-top: 16px; padding: 18px 20px 16px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-left: 3px solid #4FA3F5; border-radius: 12px;
  background: color-mix(in srgb, currentColor 5%, transparent); max-width: 760px; text-align: left; }
.sofia-box[hidden] { display: none; }
.sofia-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.sofia-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2F6FE4, #5AA9F5); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.sofia-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, #5AA9F5 22%, transparent); }
.sofia-body { font-size: 16px; line-height: 1.65; max-width: 68ch; overflow-wrap: anywhere; }
.sofia-body :where(p, ol, ul) { margin: 0; }   /* low specificity: the spacing rule below must win */
.sofia-body > * + * { margin-top: 12px; }
.sofia-body .sofia-h { font-weight: 650; margin-top: 16px; }
.sofia-body ol, .sofia-body ul { padding-left: 26px; }
.sofia-body li { padding-left: 4px; }
.sofia-body li + li { margin-top: 8px; }
.sofia-body li::marker { color: var(--sofia-link); font-weight: 650; }
.sofia-body b { font-weight: 650; }
.sofia-body a { color: var(--sofia-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sofia-body a:hover { text-decoration-thickness: 2px; }
.sofia-body .sofia-src { margin-top: 16px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 14px; line-height: 1.6; }
.sofia-src a { color: var(--sofia-link); }
.sofia-foot { margin: 12px 0 0; font-size: 13px; line-height: 1.5; opacity: .78; }
.sofia-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sofia-wait { display: flex; gap: 5px; align-items: center; height: 22px; }
.sofia-wait span:not(.sr) { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: sofia-dot 1s infinite ease-in-out; }
.sofia-wait span:nth-child(2) { animation-delay: .15s; } .sofia-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes sofia-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-3px); } }
.sofia-step { margin-left: 6px; font-weight: 500; font-size: 14.5px; opacity: .85; }
.sofia-line { display: block; height: 10px; margin-top: 10px; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, currentColor 8%, transparent) 30%, color-mix(in srgb, currentColor 22%, transparent) 50%, color-mix(in srgb, currentColor 8%, transparent) 70%) 100% 0 / 300% 100%; animation: sofia-shine 1.6s infinite linear; }
.sofia-line:nth-of-type(2) { width: 92%; } .sofia-line:nth-of-type(3) { width: 64%; }
.is-working .sofia-av { animation: sofia-pulse 1.6s infinite ease-out; }
.sofia-body.is-new > * { animation: sofia-in .28s ease-out both; }
@keyframes sofia-shine { to { background-position: 0 0; } }
@keyframes sofia-pulse { 0% { box-shadow: 0 0 0 0 rgb(90 169 245 / .55); } 100% { box-shadow: 0 0 0 10px rgb(90 169 245 / 0); } }
@keyframes sofia-in { from { opacity: 0; transform: translateY(4px); } }
/* on a Community topic while she writes her reply */
.sofia-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 0; max-width: none; }
.sofia-note .sofia-av { flex: none; }
.sofia-note p { margin: 0; }
.sofia-note .sofia-wait { display: inline-flex; height: auto; margin-right: 8px; vertical-align: middle; }
.sofia-note-text { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.sofia-note-text a { color: var(--sofia-link); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .sofia-wait span:not(.sr), .sofia-line, .is-working .sofia-av, .sofia-body.is-new > * { animation: none; } }
@media (max-width: 640px) { .sofia-box { padding: 16px 16px 14px; } .sofia-body { font-size: 15.5px; } }
