/* Everyday Sentry help site. Design system v1: large, calm, high contrast (WCAG 2.2 AA, readers 60+). */
:root {
  --navy: #0F2D5B; --blue: #2D7FF9; --blue-text: #1E63D6; --light-blue: #E6F1FF; --blue-border: #B3D4FF;
  --neutral: #F5F7FA; --surface: #FFFFFF; --border: #D5DCE6; --control: #8A94A6; --text: #1F2937; --muted: #4B5563;
  --amber-bg: #FFF1DC; --amber-border: #F0C88A; --amber-text: #7A4300; --green-bg: #E8F5E9; --green-border: #A5D6A7; --green: #2E7D32;
  --red-bg: #FDECEA; --red-border: #EBA7A0; --red-text: #C0392B;
  --head: "Bricolage Grotesque", system-ui, sans-serif; --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--neutral); color: var(--text); }
body { font: 400 19px/1.55 var(--body); }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); color: var(--text); line-height: 1.15; }
h1 { font-weight: 800; font-size: clamp(30px, 5vw, 40px); margin: 0 0 16px; }
h2 { font-weight: 700; font-size: 25px; margin: 0 0 10px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 50; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top > div, .page, .foot > div { max-width: 960px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.top > div { min-height: 72px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand b { display: block; font: 800 24px/1 var(--head); }
.brand small { display: block; margin-top: 3px; font: 700 13px/1 system-ui, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.page { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.page.narrow { max-width: 780px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.ask { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); margin: 0; }
input, textarea { font: inherit; font-size: 19px; color: var(--text); background: #fff; border: 1px solid var(--control); border-radius: 12px; padding: 10px 14px; min-height: 52px; width: 100%; }
textarea { resize: vertical; min-height: 56px; }
.qs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.qs li { border-bottom: 1px solid var(--border); }
.qs a { display: block; padding: 14px 4px; font-weight: 700; text-decoration: none; min-height: 48px; }
.qs a:hover { text-decoration: underline; }
.qs li.hidden, .cat.hidden { display: none; }
.crumbs { color: var(--muted); font-size: 17px; }
.answer h1 { font-size: clamp(28px, 4.4vw, 36px); }
.answer p, .answer li { font-size: 20px; }
.answer kbd { font: 700 16px/1 system-ui, sans-serif; border: 1px solid var(--control); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; background: var(--neutral); }
.still p { margin: 0 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 999px; font: 700 18px/1 var(--body); border: 2px solid var(--blue); background: #fff; color: var(--blue-text); cursor: pointer; text-decoration: none; margin: 0 8px 8px 0; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #1F6FE5; } .btn:disabled { opacity: .55; cursor: default; }
button.link { font: inherit; color: var(--blue-text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0 120px; }
.foot p { margin: 0; }

/* ---- chat ---------------------------------------------------------------------------------------- */
.chat-open { position: fixed; right: 20px; bottom: 20px; z-index: 30; min-height: 60px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; font: 700 19px/1 var(--body); box-shadow: 0 12px 32px rgba(15, 45, 91, .25); cursor: pointer; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(440px, calc(100vw - 40px)); height: min(680px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 48px rgba(15, 45, 91, .25); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--navy); color: #fff; }
.chat-head h2 { color: #fff; font-size: 21px; margin: 0; flex: 1 1 auto; }
.chat-head button { min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); background: transparent; color: #fff; font: 700 17px/1 var(--body); cursor: pointer; padding: 0 14px; }
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 16px; white-space: pre-line; font-size: 18px; }
.msg.user { align-self: flex-end; background: var(--neutral); border: 1px solid var(--border); }
.msg.bot { align-self: flex-start; background: var(--light-blue); border: 1px solid var(--blue-border); }
.msg.sys { align-self: stretch; max-width: none; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: 17px; }
.msg.ok { align-self: stretch; max-width: none; background: var(--green-bg); border: 1px solid var(--green-border); color: var(--text); }
.msg .src { display: block; margin-top: 8px; font-size: 16px; white-space: normal; }
.msg .btn { margin: 10px 0 0; min-height: 48px; font-size: 17px; }
.chat-form { border-top: 1px solid var(--border); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-form .row { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { min-height: 52px; max-height: 160px; font-size: 18px; }
.chat-form .btn { margin: 0; flex: none; }
.chat-form .small { font-size: 15px; color: var(--muted); margin: 0; }
.team { display: flex; flex-direction: column; gap: 10px; }
.team label { font-weight: 700; }
.ts { min-height: 0; }
@media (max-width: 600px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .chat-open { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: no-preference) { .chat { animation: up .18s ease-out; } @keyframes up { from { transform: translateY(12px); opacity: 0; } } }
