/* Ruth chat widget: Researchnews.Africa red, white and black. Follows light and dark mode. */
.ruth-w,.ruth-w *{box-sizing:border-box}
.ruth-w{--r-bg:#FFFFFF;--r-fg:#111111;--r-soft:#F4F4F4;--r-line:#E0E0E0;--r-muted:#666666;--r-red:#A8141D;--r-red2:#8A0F17;position:fixed;right:20px;bottom:20px;z-index:99990;font-family:"Libre Franklin",Arial,sans-serif}
html[data-theme="dark"] .ruth-w{--r-bg:#111111;--r-fg:#EDEDED;--r-soft:#1C1C1C;--r-line:#333333;--r-muted:#A6A6A6}
.ruth-launch{display:flex;align-items:center;gap:10px;padding:9px 14px 9px 9px;border:1px solid #000;border-radius:2px;background:#000;color:#fff;cursor:pointer;box-shadow:none;font:600 13px/1 "Libre Franklin",Arial,sans-serif}
html[data-theme="dark"] .ruth-launch{border-color:#444}
.ruth-launch:hover{background:var(--r-red);border-color:var(--r-red)}
.ruth-launch:focus-visible{outline:2px solid var(--r-red);outline-offset:3px}
.ruth-ava{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--r-red);color:#fff;font:600 13px/1 "Newsreader",Georgia,serif;flex:0 0 auto}
.ruth-launch .ruth-dot{display:none}
.ruth-panel{position:absolute;right:0;bottom:0;width:380px;max-width:calc(100vw - 32px);height:580px;max-height:calc(100vh - 44px);display:none;flex-direction:column;background:var(--r-bg);border:1px solid var(--r-line);border-radius:0;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.ruth-w.is-open .ruth-panel{display:flex}
.ruth-w.is-open .ruth-launch{display:none}
.ruth-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:#000;color:#fff;border-bottom:3px solid var(--r-red);flex:0 0 auto}
.ruth-head .ruth-ava{width:32px;height:32px;font-size:14px}
.ruth-id{min-width:0;flex:1 1 auto}
.ruth-id b{display:block;font:600 17px/1.2 "Newsreader",Georgia,serif}
.ruth-x{border:0;background:transparent;color:#BDBDBD;font-size:22px;line-height:1;cursor:pointer;padding:4px 6px;border-radius:0}
.ruth-x:hover{color:#fff}
.ruth-x:focus-visible{outline:2px solid var(--r-red);outline-offset:2px}
.ruth-log{flex:1 1 auto;overflow-y:auto;padding:16px 14px 8px;background:var(--r-bg)}
.ruth-msg{max-width:86%;margin:0 0 12px;padding:10px 12px;font-size:14.5px;line-height:1.55;border-radius:0;white-space:pre-wrap;overflow-wrap:break-word}
.ruth-msg.ruth-from{background:var(--r-soft);color:var(--r-fg);border-left:2px solid var(--r-red)}
.ruth-msg.ruth-you{margin-left:auto;background:#000;color:#fff;border-left:0}
html[data-theme="dark"] .ruth-msg.ruth-you{background:#2A2A2A}
.ruth-msg a{color:var(--r-red)}
html[data-theme="dark"] .ruth-msg a{color:#F0565C}
.ruth-msg.ruth-you a{color:#fff;text-decoration:underline}
.ruth-note{margin:0 0 14px;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--r-muted);text-align:center}
.ruth-flag{margin:0 0 12px;padding:9px 12px;background:var(--r-soft);border:1px solid var(--r-line);border-radius:0;font-size:13px;line-height:1.5;color:var(--r-fg)}
.ruth-typing{display:flex;gap:4px;padding:12px;width:54px;background:var(--r-soft);border-left:2px solid var(--r-red);margin-bottom:12px}
.ruth-typing i{width:6px;height:6px;border-radius:50%;background:var(--r-muted);opacity:.6}
.ruth-foot{flex:0 0 auto;border-top:1px solid var(--r-line);background:var(--r-bg);padding:10px 12px 12px}
.ruth-row{display:flex;align-items:flex-end;gap:8px}
.ruth-in{flex:1 1 auto;resize:none;max-height:120px;min-height:42px;padding:10px 12px;border:1px solid var(--r-line);border-radius:0;background:var(--r-bg);color:var(--r-fg);font:400 14.5px/1.45 "Libre Franklin",Arial,sans-serif}
.ruth-in:focus{outline:0;border-color:var(--r-fg);box-shadow:none}
.ruth-send{flex:0 0 auto;height:42px;padding:0 16px;border:0;border-radius:0;background:var(--r-red);color:#fff;cursor:pointer;font:600 13px/1 "Libre Franklin",Arial,sans-serif}
.ruth-send:hover{background:var(--r-red2)}
.ruth-send:disabled{opacity:.5;cursor:default}
.ruth-send:focus-visible{outline:2px solid var(--r-fg);outline-offset:2px}
.ruth-bar{display:flex;align-items:center;gap:12px;margin-top:9px}
.ruth-human{flex:0 0 auto;white-space:nowrap;border:0;background:transparent;padding:0;color:var(--r-red);cursor:pointer;font:600 11px/1 "Libre Franklin",Arial,sans-serif;text-transform:uppercase}
html[data-theme="dark"] .ruth-human{color:#F0565C}
.ruth-human:hover{text-decoration:underline}
.ruth-legal{flex:1 1 auto;text-align:right;font-size:9.5px;line-height:1.3;text-transform:uppercase;color:var(--r-muted)}
.ruth-hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
@media (max-width:600px){.ruth-w{right:12px;bottom:12px;left:auto}.ruth-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border:0}}
.ruth-msg.ruth-team{background:var(--r-soft);border-left:2px solid var(--r-fg);color:var(--r-fg)}
.ruth-who{display:block;margin-bottom:5px;font-size:9.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--r-muted)}
/* Phones: a small round button so it never covers headlines */
@media (max-width:600px){.ruth-launch{padding:6px;border-radius:50%;gap:0}.ruth-launch>span:not(.ruth-ava):not(.ruth-dot){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.ruth-launch .ruth-ava{width:36px;height:36px;font-size:15px}}
@media (max-width:600px){.ruth-launch,html[data-theme="dark"] .ruth-launch{padding:0;border:0;background:transparent;box-shadow:0 4px 14px rgba(0,0,0,.28);border-radius:50%}.ruth-launch:hover{background:transparent}.ruth-launch .ruth-ava{width:44px;height:44px;font-size:17px}}
