/* Scoped: EDGAR widget has no effect on THE CASE existing layouts or navigation. */
#edgar-site-chat-root {
  font-family: 'Changa', 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  color: #f6f1e9;
  --edgar-gold: #c4a674;
  --edgar-muted: #b5aaa0;
  --edgar-edge: rgba(196,166,116,.34);
  --edgar-bg: #141312;
  position: relative;
  z-index: 2147483000;
}
#edgar-site-chat-root *, #edgar-site-chat-root *::before, #edgar-site-chat-root *::after { box-sizing: border-box; }
#edgar-site-chat-root [hidden] { display: none !important; }
#edgar-site-chat-root button, #edgar-site-chat-root textarea { font: inherit; }
#edgar-site-chat-root button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#edgar-site-chat-root button:focus-visible, #edgar-site-chat-root textarea:focus-visible {
  outline: 2px solid var(--edgar-gold); outline-offset: 3px;
}
#edgar-site-chat-root .edgar-site-chat-launcher {
  position: fixed; inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; gap: 9px; align-items: center; justify-content: center;
  border: 1px solid var(--edgar-gold); border-radius: 100px;
  padding: 7px 16px 7px 7px; background: #151514;
  color: #f6f1e9; font-size: 14px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 10px 35px rgba(0,0,0,.48); transition: transform .15s ease, background .15s ease;
}
#edgar-site-chat-root[dir="rtl"] .edgar-site-chat-launcher { padding: 7px 7px 7px 16px; }
#edgar-site-chat-root .edgar-site-chat-launcher:hover { background: #29231b; transform: translateY(-2px); }
#edgar-site-chat-root .edgar-site-chat-mark,
#edgar-site-chat-root .edgar-site-chat-seal {
  display: grid; place-items: center; flex: none; border: 1px solid rgba(247,220,167,.35);
  background: #493b29; color: #f4dfb7; font-family: Georgia, serif; font-weight: bold;
}
#edgar-site-chat-root .edgar-site-chat-mark { width: 41px; height: 41px; border-radius: 50%; font-size: 22px; }
#edgar-site-chat-root .edgar-site-chat-panel {
  position: fixed; inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 80px));
  width: min(390px, calc(100vw - 24px));
  height: min(570px, calc(100dvh - 110px));
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--edgar-edge); border-radius: 16px;
  background: var(--edgar-bg); color: #f4efe8;
  box-shadow: 0 22px 72px rgba(0,0,0,.67);
}
#edgar-site-chat-root .edgar-site-chat-header {
  display: flex; gap: 11px; align-items: center; flex: none;
  padding: 13px 15px; background: #1e1b17;
  border-bottom: 1px solid var(--edgar-edge);
}
#edgar-site-chat-root .edgar-site-chat-seal { border-radius: 9px; height: 39px; width: 39px; font-size: 21px; }
#edgar-site-chat-root .edgar-site-chat-brand { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 1px; }
#edgar-site-chat-root .edgar-site-chat-brand strong { letter-spacing: 1px; font-size: 12px; line-height: 1.4; }
#edgar-site-chat-root .edgar-site-chat-brand span { font-size: 11px; color: var(--edgar-muted); line-height: 1.5; }
#edgar-site-chat-root .edgar-site-chat-close {
  border: 0; background: transparent; color: #e5d2b4; width: 35px; height: 35px;
  border-radius: 8px; font-size: 27px; line-height: 1;
}
#edgar-site-chat-root .edgar-site-chat-close:hover { background: rgba(255,255,255,.08); }
#edgar-site-chat-root .edgar-site-chat-messages {
  flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere;
  display: flex; flex-direction: column; gap: 11px; padding: 16px;
  scrollbar-color: #695335 transparent;
}
#edgar-site-chat-root .edgar-site-chat-bubble {
  max-width: 90%; width: fit-content; padding: 11px 13px; border-radius: 12px;
  font-size: 13px; line-height: 1.85; white-space: pre-wrap; unicode-bidi: plaintext;
}
#edgar-site-chat-root .edgar-site-chat-assistant {
  align-self: flex-start; background: #26221e; color: #eee8de;
  border: 1px solid rgba(196,166,116,.22); border-start-start-radius: 3px;
}
#edgar-site-chat-root .edgar-site-chat-visitor {
  align-self: flex-end; background: #513f29; color: #fff5e8; border-start-end-radius: 3px;
}
#edgar-site-chat-root .edgar-site-chat-bottom {
  flex: none; background: #1b1917; padding: 9px 12px 11px;
  border-top: 1px solid rgba(196,166,116,.2);
}
#edgar-site-chat-root .edgar-site-chat-status {
  color: var(--edgar-muted); font-size: 10px; line-height: 1.5; margin-bottom: 5px; min-height: 15px;
}
#edgar-site-chat-root .edgar-site-chat-turnstile { width: 100%; min-height: 0; }
#edgar-site-chat-root .edgar-site-chat-form {
  display: flex; gap: 7px; align-items: flex-end; background: #0f0f0f;
  border: 1px solid var(--edgar-edge); border-radius: 10px; padding: 7px;
}
#edgar-site-chat-root .edgar-site-chat-form:focus-within { border-color: #bda06f; }
#edgar-site-chat-root .edgar-site-chat-form textarea {
  display: block; flex: 1; min-width: 0; max-height: 125px; resize: vertical;
  font-size: 13px; line-height: 1.55; background: transparent; border: 0;
  padding: 5px; color: #f5efe4; outline: none; box-shadow: none;
}
#edgar-site-chat-root .edgar-site-chat-form textarea::placeholder { color: #8f877e; }
#edgar-site-chat-root .edgar-site-chat-send {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: #c4a674; color: #15110b; border: 0; border-radius: 8px; font-size: 18px;
}
#edgar-site-chat-root[dir="rtl"] .edgar-site-chat-send { transform: scaleX(-1); }
#edgar-site-chat-root .edgar-site-chat-send:disabled { cursor: not-allowed; opacity: .36; }
#edgar-site-chat-root .edgar-site-chat-disclaimer {
  color: #aaa094; font-size: 10px; line-height: 1.5; text-align: center; margin: 6px 0 0;
}
#edgar-site-chat-root .edgar-site-chat-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 540px) {
  #edgar-site-chat-root .edgar-site-chat-launcher { inset-inline-end: 12px; bottom: max(13px, env(safe-area-inset-bottom)); padding: 5px 11px 5px 5px; }
  #edgar-site-chat-root[dir="rtl"] .edgar-site-chat-launcher { padding: 5px 5px 5px 11px; }
  #edgar-site-chat-root .edgar-site-chat-mark { width: 38px; height: 38px; }
  /* Mobile: icon-only launcher so it does not cover page content. */
  #edgar-site-chat-root .edgar-site-chat-launcher,
  #edgar-site-chat-root[dir="rtl"] .edgar-site-chat-launcher { padding: 4px; gap: 0; }
  #edgar-site-chat-root .edgar-site-chat-launcher-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  #edgar-site-chat-root .edgar-site-chat-panel {
    inset-inline-end: 10px; bottom: max(70px, calc(env(safe-area-inset-bottom) + 66px));
    width: calc(100vw - 20px); height: min(545px, calc(100dvh - 96px));
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #edgar-site-chat-root .edgar-site-chat-launcher { transition: none; }
}

/* THE CASE monochrome noir emblem with signature red accents. */
#edgar-site-chat-root { --edgar-gold: #c92b34; --edgar-edge: rgba(200,43,52,.35); }
#edgar-site-chat-root .edgar-site-chat-launcher { background: #111113; border-color: #b91c28; box-shadow: 0 9px 26px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.06) inset; }
#edgar-site-chat-root .edgar-site-chat-launcher:hover { background: #241417; }
#edgar-site-chat-root .edgar-site-chat-mark,
#edgar-site-chat-root .edgar-site-chat-seal { background: #19191b; color: #f5f3f1; border-color: #b91c28; }
#edgar-site-chat-root .edgar-site-chat-emblem { display: block; width: 85%; height: 85%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
#edgar-site-chat-root .edgar-site-chat-header { background: #1d1517; }
#edgar-site-chat-root .edgar-site-chat-send { background: #b91c28; color: #fff; }
#edgar-site-chat-root .edgar-site-chat-form:focus-within { border-color: #d83b43; }
#edgar-site-chat-root .edgar-site-chat-assistant { border-color: rgba(201,43,52,.2); }
#edgar-site-chat-root .edgar-site-chat-visitor { background: #571b21; }


/* THE CASE light/dark mode: only the EDGAR widget is affected. */
#edgar-site-chat-root {
  --edgar-emblem-dark: #171717;
  --edgar-emblem-white: #f1e9e1;
  --edgar-emblem-red: #ba1924;
}
#edgar-site-chat-root[data-edgar-theme="light"] {
  --edgar-muted: #595151;
  --edgar-edge: rgba(151,30,42,.32);
  --edgar-bg: #fffaf7;
  --edgar-emblem-dark: #f8f5f2;
  --edgar-emblem-white: #292225;
  --edgar-emblem-red: #b91c28;
  color: #241c1e;
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-launcher {
  background: #fffaf7; color: #231d1e; border-color: #bb2430;
  box-shadow: 0 8px 24px rgba(35,20,20,.18), 0 0 0 1px rgba(255,255,255,.6) inset;
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-launcher:hover { background: #f4e7e5; }
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-mark,
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-seal {
  background: #f5eae9; color: #231d1e; border-color: #c32b38;
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-panel {
  background: #fffaf7; color: #231d1e;
  box-shadow: 0 18px 56px rgba(26,18,20,.24);
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-header {
  background: #f3e8e6; color: #2a2022;
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-close { color: #3c3032; }
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-close:hover { background: rgba(128,20,28,.08); }
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-assistant {
  background: #f4eeeb; color: #2b2424; border-color: rgba(160,38,45,.21);
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-visitor {
  background: #a52631; color: #fff;
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-bottom {
  background: #fffaf7; border-top-color: rgba(151,30,42,.2);
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-form {
  background: #fff; border-color: rgba(151,30,42,.32);
}
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-form textarea { color: #2a2324; }
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-form textarea::placeholder { color: #776f70; }
#edgar-site-chat-root[data-edgar-theme="light"] .edgar-site-chat-disclaimer { color: #625758; }
