/* Public intake pages (ADR-0080): the few rules site.css does not already have. Loaded after site.css; no inline styles anywhere. */

/* Honeypot: off-screen for people, hidden from assistive technology (the wrapper is aria-hidden; the field is out of the tab order). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* The booking page's days: one disclosure per day, so it works with no script and stays short at 390 px. */
.day-list { display: grid; gap: 8px; }
.day-group { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.day-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px;
  cursor: pointer; font-weight: 650; list-style: none; }
.day-group > summary::-webkit-details-marker { display: none; }
.day-group > summary::after { content: "+"; font-weight: 700; color: var(--ink-2); }
.day-group[open] > summary::after { content: "\2212"; }
.day-group > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.day-group .dc { font-weight: 500; color: var(--ink-2); font-size: var(--t-sm); margin-left: auto; }
.day-group fieldset, .day-group .hint { padding: 0 14px 14px; }
.day-group .slots { margin-top: 0; }
.site-footer address { color: var(--on-dark-2); }

/* The website chat (ADR-0085): the bubble (site.css) sits low on these pages (no action bar here), and the panel. */
.chat-bubble { bottom: calc(16px + env(safe-area-inset-bottom)); }
.chat-bubble.is-open { display: none; }
body:has(#chat-bubble) .site-footer { padding-bottom: 96px; }
.chat-panel { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.chat-panel-float { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); }
@media (min-width: 560px) { .chat-panel-float { left: auto; right: 24px; bottom: 24px; width: 400px; max-height: min(680px, calc(100dvh - 48px)); } }
.chat-panel-page { margin-top: 16px; }
/* The chat page as a compact pop-out (owner, 29 Nov 2026): the panel fills the window under a slim header; the transcript scrolls
   inside it and the typing box stays at the bottom. 390 px: full width; 1280 px: centred at 560 px. The footer follows the panel. */
.chat-page { --chat-head-h: 52px; }
.chat-page .site-header .header-bar { min-height: var(--chat-head-h); height: var(--chat-head-h); }
.chat-page .brand .logo { height: 30px; }
.chat-page main { display: flex; flex-direction: column; height: calc(100dvh - var(--chat-head-h)); min-height: 420px; }
.chat-page .journey { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; width: 100%; max-width: 560px;
  padding: 6px 8px 8px; }
.chat-page .journey > p:first-child { margin-bottom: 6px; font-size: var(--t-sm); }
.chat-page .chat-panel-page { flex: 1 1 auto; min-height: 0; margin-top: 0; }
.chat-page .chat-body { overflow: hidden; padding: 10px 12px 12px; gap: 8px; }
.chat-page .chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.chat-page .chat-label { margin-top: 4px; }
.chat-page #chat-text-hint { display: none; }
/* Inside the website's NJS Chat panel (`/chat/?embed=1`, owner 29 Nov 2026): the panel has its own title and close button, so no
   header, back link or footer here; the chat fills the frame edge to edge. */
.chat-embed .site-header, .chat-embed .site-footer, .chat-embed .skip, .chat-embed .journey > p:first-child { display: none; }
.chat-embed main { height: 100dvh; min-height: 0; }
.chat-embed .journey { max-width: none; padding: 0; }
.chat-embed .chat-panel-page { border: 0; border-radius: 0; box-shadow: none; }
.chat-embed .chat-head { border-radius: 0; padding: 6px 10px; }
.chat-embed .chat-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* v2 (owner, 29 Nov 2026: "give it more space", "make the writing a little bit smaller"): the website panel's header carries "NJS
   Chat", "Speak to a person", full screen and close, so the chat's own header goes; 14 px text, 13 px notices (never smaller; the
   inputs stay 16 px on phones so iOS does not zoom); in a wide (full-screen) frame the chat keeps a readable 760 px column. */
.chat-embed .chat-head { display: none; }
.chat-embed .chat-panel-page { font-size: 0.875rem; line-height: 1.45; }
.chat-embed .chat-body { padding: 12px 14px; gap: 8px; }
.chat-embed .chat-text, .chat-embed .chat-label, .chat-embed .btn, .chat-embed input, .chat-embed textarea { font-size: 0.875rem; }
.chat-embed .chat-fine, .chat-embed .chat-who, .chat-embed .chat-msg-system .chat-text, .chat-embed .chat-status, .chat-embed .btn-link,
.chat-embed .chat-err, .chat-embed .chat-typing, .chat-embed .chat-disclosure-short { font-size: 0.8125rem; }
.chat-embed .chat-msg { padding: 6px 10px; }
.chat-embed .btn { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.chat-embed .btn-link { min-height: 32px; }
.chat-embed .chat-details input[type="text"], .chat-embed .chat-details input[type="tel"], .chat-embed .chat-details input[type="email"] {
  min-height: 40px; }
@media (max-width: 600px) { .chat-embed input, .chat-embed textarea { font-size: 1rem; } }
@media (min-width: 900px) { .chat-embed .chat-body { width: 100%; max-width: 760px; margin: 0 auto; } }
/* What is on screen (chat.js `data-stage`; owner, 29 Nov 2026: "It should wait for the code"): before the code is checked no
   transcript bubble, typing line or message box; at the code step only the code entry; "Start the chat" is never shown while the code
   comes first (the details form's "Text me a code" starts it). */
.chat-panel[data-code="1"] #chat-start-btn { display: none; }
.chat-panel[data-stage="details"] .chat-log { flex: none; overflow: visible; }
.chat-panel[data-stage="details"] .chat-typing, .chat-panel[data-stage="code"] .chat-typing,
.chat-panel[data-stage="code"] .chat-log, .chat-panel[data-stage="code"] .chat-start { display: none; }
.chat-panel[data-stage="details"] .chat-start .chat-fine { margin-top: 0; }
/* The review round of 29 Nov 2026 (v2): bubbles wrap at their width (the site's `p { text-wrap: pretty }` left short lines in wide
   bubbles), "Check code" on one line, the code links in line with the box. */
.chat-msg .chat-text { text-wrap: wrap; }
#chat-code-check, #chat-send { white-space: nowrap; }
.chat-code-actions .btn-link { padding-left: 0; }
.chat-disclosure-short { margin: 0; color: var(--ink-2); font-size: var(--t-xs); }
.chat-disclosure-short .btn-link { min-height: 32px; padding: 0; font-size: inherit; }
.chat-disclosure-short a { color: var(--indigo); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px;
  background: var(--navy); color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.chat-title { margin: 0; font-size: 1.0625rem; line-height: 1.3; color: #fff; }
.chat-head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.chat-head .btn-secondary { color: #fff; border-color: rgb(255 255 255 / 60%); }
.chat-head .btn-secondary:hover { border-color: #fff; background: rgb(255 255 255 / 10%); }
.chat-head .btn:focus-visible, .chat-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.chat-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: var(--r-full); background: transparent; color: #fff; cursor: pointer; }
.chat-close:hover { background: rgb(255 255 255 / 12%); }
.chat-close svg { width: 22px; height: 22px; }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; overflow-y: auto; min-height: 0; flex: 1 1 auto;
  overscroll-behavior: contain; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.chat-log:focus-visible, .chat-panel a:focus-visible, .chat-panel .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.chat-msg { max-width: 92%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas); }
.chat-msg-visitor { align-self: flex-end; background: var(--indigo-soft); border-color: #d6d6f0; }
.chat-msg-assistant { align-self: flex-start; }
.chat-msg-team { align-self: flex-start; background: var(--green-soft); border-color: #d5e8bf; }
.chat-msg-system { align-self: stretch; max-width: none; background: var(--amber-soft); border-color: #f1d9ad; }
.chat-who { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.chat-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.chat-link { color: var(--indigo); font-weight: 600; overflow-wrap: anywhere; }
.chat-fine { margin: 4px 0 0; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.chat-typing { margin: 0; min-height: 1.25em; font-size: var(--t-sm); font-style: italic; color: var(--ink-2); }
.chat-status { margin: 0; padding: 8px 12px; border-left: 4px solid #b7791f; border-radius: 8px; background: var(--amber-soft); font-size: var(--t-15); }
.chat-status .chat-link { white-space: nowrap; }
.chat-label { display: block; margin: 10px 0 4px; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; }
.chat-compose textarea { flex: 1 1 auto; min-width: 0; min-height: 48px; resize: vertical; }
.chat-attach { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 48px; white-space: nowrap; }
.chat-attach-icon { width: 20px; height: 20px; flex: none; }
.chat-attach.chat-attach-nudge { outline: 3px solid var(--focus, #1d4ed8); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .chat-attach.chat-attach-nudge { animation: chat-attach-nudge 1.2s ease-in-out 2; }
  @keyframes chat-attach-nudge { 50% { transform: scale(1.06); } }
}
.chat-file, .chat-file-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat-file-status { margin: 4px 0 0; min-height: 1.25em; font-size: var(--t-sm); color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .chat-attach-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chat-attach { padding-left: 12px; padding-right: 12px; }
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.chat-chip { min-height: 44px; white-space: normal; text-align: left; }
.chat-chip[aria-pressed="true"] { background: var(--indigo-soft); border-color: var(--indigo); font-weight: 700; }
.chat-chip[aria-pressed="true"]::before { content: "\2713\00a0"; }
@media (prefers-reduced-motion: no-preference) {
  .chat-typing.is-on { animation: chat-pulse 1.2s ease-in-out infinite; }
}
@keyframes chat-pulse { 50% { opacity: 0.45; } }
.chat-details { display: flex; flex-direction: column; gap: 4px; }
.chat-details input[type="text"], .chat-details input[type="tel"], .chat-details input[type="email"] { width: 100%; min-height: 44px; }
.chat-details .btn-primary { margin-top: 8px; align-self: flex-start; }
.chat-err { margin: 2px 0 0; font-size: var(--t-sm); color: #9b1c1c; font-weight: 600; }
.chat-code-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }
.chat-closed { padding: 10px 14px; border-left: 4px solid var(--indigo); border-radius: 8px; background: var(--canvas); }
.chat-closed p { margin: 0; }
.chat-closed p + p { margin-top: 8px; }
.chat-foot { margin: 0; text-align: right; }
.btn-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--indigo); font: 600 var(--t-sm) / 1.2 var(--font);
  text-decoration: underline; cursor: pointer; }
.chat-msg-system .chat-text { font-size: var(--t-15); }
