/* NOVO website chat. Uses the site's tokens from site.css (--blue, --red, --ink, --sky, --sun). */
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Launcher: bottom right (the accessibility button is bottom left). */
.nc-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 999990;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 24px 0 18px; border: 3px solid var(--white, #fff); border-radius: 999px;
  background: var(--blue, #1660B0); color: var(--white, #fff); cursor: pointer;
  font: 900 1.15rem var(--display, system-ui); font-stretch: 110%;
  box-shadow: 0 6px 18px rgba(11, 31, 68, .28);
}
.nc-launcher svg { width: 30px; height: 30px; flex: none; }
.nc-launcher:hover { background: var(--ink, #0B1F44); }
.nc-launcher:hover svg circle { fill: var(--ink, #0B1F44); }
.nc-launcher:focus-visible { outline: 4px solid var(--sun, #FFC845); outline-offset: 3px; }
.nc-launcher .nc-short { display: none; }
.nc-open .nc-launcher { background: var(--ink, #0B1F44); }

/* Panel: a non-modal dialog, so the page stays usable. */
.nc-panel {
  position: fixed; inset: auto 24px 100px auto; margin: 0; padding: 0; z-index: 999991;
  width: min(420px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 120px));
  border: 3px solid var(--ink, #0B1F44); border-radius: 24px; overflow: hidden;
  background: var(--white, #fff); color: var(--ink, #0B1F44);
  font-family: var(--body, system-ui); font-size: 1.125rem; line-height: 1.5;
  box-shadow: 0 18px 48px rgba(11, 31, 68, .3);
}
.nc-panel[open] { display: flex; flex-direction: column; }

.nc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; background: var(--blue, #1660B0); color: var(--white, #fff); }
.nc-head-text { flex: 1; min-width: 0; }
.nc-title { margin: 0; font: 900 1.35rem/1.1 var(--display, system-ui); font-stretch: 112%; color: inherit; }
.nc-sub { margin: 2px 0 0; font-size: .95rem; }
.nc-lang { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255, 255, 255, .18); border-radius: 999px; }
.nc-lang button {
  min-height: 40px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .95rem var(--body, system-ui); color: var(--white, #fff); background: transparent;
}
.nc-lang button[aria-pressed="true"] { background: var(--white, #fff); color: var(--blue, #1660B0); }
.nc-close {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--white, #fff); cursor: pointer;
}
.nc-close svg { width: 26px; height: 26px; }
.nc-close:hover { background: rgba(255, 255, 255, .18); }
.nc-head button:focus-visible { outline: 3px solid var(--sun, #FFC845); outline-offset: 2px; }

.nc-test { margin: 0; padding: 8px 20px; background: var(--sun, #FFC845); font-size: .95rem; font-weight: 700; }

/* Intro: the notice people see before the chat starts. */
.nc-intro { flex: 1; min-height: 0; padding: 18px 20px 20px; overflow-y: auto; }
.nc-intro h3 { margin: 0 0 12px; font: 900 1.4rem var(--display, system-ui); font-stretch: 110%; }
.nc-intro-list { margin: 0 0 14px; padding: 0; list-style: none; }
.nc-intro-list li { padding: 6px 0 6px 16px; border-left: 4px solid var(--sky, #DCEBFA); margin-bottom: 8px; }
.nc-intro-list li:last-child { border-left-color: var(--red, #C8202A); font-weight: 700; }
.nc-privacy { display: inline-block; margin-bottom: 14px; font-weight: 700; color: var(--blue, #1660B0); text-underline-offset: 4px; }
.nc-intro-actions { display: grid; gap: 10px; }
.nc-start, .nc-call {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px;
  font: 900 1.15rem var(--display, system-ui); font-stretch: 108%; text-decoration: none; cursor: pointer;
}
.nc-start { border: 0; background: var(--blue, #1660B0); color: var(--white, #fff); }
.nc-start:hover { background: var(--ink, #0B1F44); }
.nc-call { border: 3px solid var(--red, #C8202A); color: var(--red, #C8202A); background: var(--white, #fff); }
.nc-start:focus-visible, .nc-call:focus-visible { outline: 4px solid var(--sun, #FFC845); outline-offset: 2px; }

/* Conversation */
.nc-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nc-chat[hidden], .nc-intro[hidden], .nc-form[hidden], .nc-quick[hidden] { display: none; }
.nc-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.nc-log:focus-visible { outline: 3px solid var(--blue, #1660B0); outline-offset: -3px; }
.nc-msg { max-width: 86%; }
.nc-msg p { margin: 0; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nc-bot { align-self: flex-start; }
.nc-bot p { background: var(--sky, #DCEBFA); border-bottom-left-radius: 6px; }
.nc-bot a { color: var(--blue, #1660B0); font-weight: 700; }
.nc-user { align-self: flex-end; }
.nc-user p { background: var(--blue, #1660B0); color: var(--white, #fff); border-bottom-right-radius: 6px; }

.nc-typing { display: inline-flex; gap: 6px; padding: 14px 16px; background: var(--sky, #DCEBFA); border-radius: 18px; border-bottom-left-radius: 6px; }
.nc-typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue, #1660B0); animation: nc-dot 1.1s infinite ease-in-out; }
.nc-typing i:nth-of-type(2) { animation-delay: .15s; }
.nc-typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes nc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* Crisis and emergency cards */
.nc-card { align-self: stretch; padding: 16px; border-radius: 18px; border: 3px solid var(--red, #C8202A); background: #FFF4F4; }
.nc-card h3 { margin: 0 0 6px; font: 900 1.2rem/1.2 var(--display, system-ui); font-stretch: 108%; color: var(--red-deep, #A51A23); }
.nc-card p { margin: 0 0 12px; }
.nc-card-actions { display: grid; gap: 8px; }
.nc-card-btn {
  display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 16px;
  border-radius: 14px; background: var(--ink, #0B1F44); color: var(--white, #fff); text-decoration: none;
}
.nc-card-btn strong { font: 900 1.15rem var(--display, system-ui); font-stretch: 108%; }
.nc-card-btn span { font-size: .95rem; }
.nc-card-btn-alt { background: var(--white, #fff); color: var(--ink, #0B1F44); border: 3px solid var(--ink, #0B1F44); font-weight: 700; align-items: flex-start; }
.nc-card-911 { background: var(--red, #C8202A); }
.nc-card-btn:focus-visible { outline: 4px solid var(--sun, #FFC845); outline-offset: 2px; }

/* Quick replies */
.nc-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px; }
.nc-chip {
  min-height: 44px; padding: 6px 16px; border: 2px solid var(--blue, #1660B0); border-radius: 999px;
  background: var(--white, #fff); color: var(--blue, #1660B0); font: 700 1rem var(--body, system-ui); cursor: pointer; text-align: left;
}
.nc-chip:hover { background: var(--blue, #1660B0); color: var(--white, #fff); }
.nc-chip:focus-visible { outline: 3px solid var(--sun, #FFC845); outline-offset: 2px; }

/* Composer */
.nc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 3px solid var(--sky, #DCEBFA); }
.nc-input {
  flex: 1; min-width: 0; min-height: 52px; max-height: 140px; resize: none; padding: 12px 14px;
  border: 2px solid var(--ink, #0B1F44); border-radius: 16px; font: 1.125rem/1.4 var(--body, system-ui); color: var(--ink, #0B1F44);
}
.nc-input:focus { outline: 3px solid var(--blue, #1660B0); outline-offset: 1px; }
.nc-send { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--red, #C8202A); color: var(--white, #fff); cursor: pointer; }
.nc-send svg { width: 24px; height: 24px; }
.nc-send:hover { background: var(--red-deep, #A51A23); }
.nc-send:focus-visible { outline: 4px solid var(--sun, #FFC845); outline-offset: 2px; }
.nc-foot { margin: 0; padding: 0 16px 10px; font-size: .9rem; color: #3B4A66; }

/* Phones: the chat fills the screen above the red call bar. */
@media (max-width: 720px) {
  .nc-launcher { right: 14px; bottom: calc(var(--bar-h, 0px) + 14px); min-height: 56px; padding: 0 18px 0 14px; }
  .nc-launcher .nc-long { display: none; }
  .nc-launcher .nc-short { display: inline; }
  .nc-open .nc-launcher, .nc-open #a11y-trigger { display: none !important; }
  .nc-panel { inset: 0 0 var(--bar-h, 0px) 0; width: 100%; height: auto; max-height: none; border-radius: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-typing i { animation: none; opacity: .7; }
}
@media print { .nc-launcher, .nc-panel { display: none !important; } }
