/* css/shared/family-help.css: the families' Help button, card, questions sheet, live chat and the review sheet (js/shared/help.js, chat.js,
   review-sheet.js), on the request form and on their quotes page (founders, 8 November 2026). Needs the page's --font-body and --font-display. */
/* Help (js/shared/help.js and chat.js; founders, 8 November 2026): one round button by the thumb. On a phone it shares a row with View your
   service (centred); on a computer it sits alone at the bottom right. One tap opens a small card: chat with a person (only when chat is on), call,
   three quick answers, and See all questions, which opens the families' questions in a sheet over the form (the form keeps every answer). */
.gq-dock { position: fixed; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; pointer-events: none }
.gq-dock > * { pointer-events: auto }
.gq-dock .gq-sumbtn { position: static; margin: 0; justify-self: center; grid-column: 2 }
.gq-help-btn { grid-column: 3; position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 999px; border: 1px solid #152a23;
  background: linear-gradient(180deg, #2f6150, #25483c); color: #f6f3ee; box-shadow: 0 12px 28px rgba(31,45,43,.28); cursor: pointer }
.gq-help-btn:focus-visible { outline: 2px solid #366b55; outline-offset: 3px }
.gq-help-btn .gq-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #7fd1a1; border: 2px solid #25483c }
.gq-help-btn .gq-ic-x, .gq-help-btn[aria-expanded="true"] .gq-ic-chat, .gq-help-btn[aria-expanded="true"] .gq-dot { display: none }
.gq-help-btn[aria-expanded="true"] .gq-ic-x { display: block }
.gq-scrim { position: fixed; inset: 0; z-index: 41; background: rgba(20,30,28,.35) }
.gq-help-card { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 42; max-height: calc(100vh - 140px); overflow-y: auto; padding: 16px; border-radius: 16px;
  background: #fbf8f2; color: #25483c; box-shadow: 0 20px 50px rgba(10,20,18,.3); font-family: var(--font-body) }
.gq-help-card h2 { margin: 0 0 4px; font: 400 20px/1.2 var(--font-display) }
.gq-hopt { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px solid #e3ddd0; background: #fff; color: #25483c; font: inherit; text-align: left; text-decoration: none; cursor: pointer }
.gq-hopt.pri { background: #25483c; border-color: #152a23; color: #f6f3ee }
.gq-hopt b { display: block; font-size: 16px } .gq-hopt small { display: block; font-size: 13px; font-weight: 600; opacity: .85 }
.gq-live { display: inline-flex; align-items: center; gap: 6px } .gq-live i { width: 8px; height: 8px; border-radius: 50%; background: #7fd1a1 }
.gq-qk { margin: 16px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #366b55 }
.gq-qa { border-top: 1px solid #e3ddd0 }
.gq-qa button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: none; color: #25483c; font: 700 15px var(--font-body); text-align: left; cursor: pointer }
.gq-qa button::after { content: "+"; font-size: 20px; color: #366b55 } .gq-qa button[aria-expanded="true"]::after { content: "\2212" }
.gq-qa p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #4a514d }
.gq-allq { display: inline-block; margin-top: 8px; padding: 8px 0; border: 0; background: none; color: #366b55; font: 700 15px var(--font-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer }
.gq-help-card button:focus-visible, .gq-help-card a:focus-visible { outline: 2px solid #366b55; outline-offset: 2px }
/* the sheets: the families' questions, and the chat (a sheet from the bottom on a phone, a panel at the right on a computer) */
.gq-panel { position: fixed; left: 0; right: 0; bottom: 0; top: 72px; z-index: 43; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: #fbf8f2; color: #25483c;
  box-shadow: 0 -10px 40px rgba(10,20,18,.25); font-family: var(--font-body) }
.gq-panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid #e3ddd0 }
.gq-panel-head h2 { margin: 0; font: 400 20px/1.2 var(--font-display) } .gq-panel-head small { display: block; font-size: 13px; font-weight: 700; color: #366b55 }
.gq-panel-x { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: #4a514d; cursor: pointer }
.gq-panel-x:hover { background: #efe9dd }
.gq-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 16px; overscroll-behavior: contain }
.gq-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e5efe8; color: #25483c; font-weight: 800; flex: none }
.gq-msgs { display: flex; flex-direction: column; gap: 8px; padding-top: 8px }
.gq-m { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere }
.gq-m.them { align-self: flex-start; background: #fff; border: 1px solid #e3ddd0; border-bottom-left-radius: 4px }
.gq-m.me { align-self: flex-end; background: #25483c; color: #f6f3ee; border-bottom-right-radius: 4px }
.gq-m.sys { align-self: center; max-width: 100%; padding: 0; font-size: 12px; font-weight: 700; color: #4a514d; text-align: center }
.gq-chat-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 0 }
.gq-chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #d6e4da; background: #fff; color: #25483c; font: 700 14px var(--font-body); cursor: pointer }
.gq-chip-btn[disabled] { opacity: .6; cursor: default }
.gq-chat-note { margin: 8px 16px 0; font-size: 12px; color: #4a514d; text-align: center }
.gq-chat-form { display: flex; gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #e3ddd0 }
.gq-chat-form textarea { flex: 1; box-sizing: border-box; min-height: 48px; max-height: 120px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d6e4da; background: #fff; color: #25483c; font: 500 16px var(--font-body); resize: none }
.gq-chat-form textarea:focus { outline: 2px solid #366b55; outline-offset: 0 }
.gq-chat-form button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 12px; background: #25483c; color: #f6f3ee; cursor: pointer }
.gq-chat-err { margin: 8px 0; padding: 12px; border-radius: 12px; background: #fbf2f1; color: #8a2f28; font-size: 14px }
.gq-faq .faq-item { border-top: 1px solid #e3ddd0 } .gq-faq .faq-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; background: none; color: #25483c; font: 700 15px var(--font-body); text-align: left; cursor: pointer }
.gq-faq .faq-a { display: none; padding: 0 0 12px; font-size: 15px; line-height: 1.55; color: #4a514d } .gq-faq .faq-item[data-open] .faq-a { display: block }
.gq-faq .faq-arrow { flex: none; transition: transform .2s ease } .gq-faq .faq-item[data-open] .faq-arrow { transform: rotate(180deg) }
@media (min-width: 721px) {
  .gq-dock { left: auto; right: 24px; bottom: 24px; grid-template-columns: 56px }
  .gq-help-btn { grid-column: 1 }
  .gq-help-card { left: auto; right: 24px; bottom: 96px; width: 340px }
  .gq-panel { left: auto; top: 0; width: 420px; border-radius: 24px 0 0 24px }
}
@media (prefers-reduced-motion: no-preference) { .gq-help-card, .gq-panel { animation: gqHelpIn .3s cubic-bezier(.22,1,.36,1) both } }
@keyframes gqHelpIn { from { opacity: 0; transform: translateY(12px) } }
/* End chat (founder, 8 November 2026): quieter than the two actions beside it */
.gq-chat-acts .gq-chip-end { background: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px }
/* the request a concierge put together in the chat (chat.js, migration 067): the family reads it and approves it */
.gq-propose { align-self: stretch; display: grid; gap: 12px; margin: 8px 0; padding: 16px; border: 1px solid #d6e4da; border-radius: 16px; background: #fbf8f2; color: #25483c }
.gq-propose h3 { margin: 0; font: 300 22px/1.2 'Literata', Georgia, serif }
.gq-propose dl { margin: 0; display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: 4px 12px; font-size: 15px }
.gq-propose dt { font-weight: 700; color: #4a514d }
.gq-propose dd { margin: 0; overflow-wrap: anywhere }
.gq-propose-acts { display: flex; flex-wrap: wrap; gap: 8px }
.gq-propose-ok { min-height: 52px; padding: 0 20px; border-radius: 12px; border: 1px solid #152a23; background: #25483c linear-gradient(180deg, #2f6150 0%, #25483c 100%); color: #f6f3ee; font: 700 16px var(--font-body); cursor: pointer }
.gq-propose-acts .gq-chip-btn { min-height: 52px; border-radius: 12px }
/* the request a concierge put together, grouped by chapter (review-sheet.js): the family's sheet pulls up from the bottom; the concierge's
   "What you sent" uses the same list in plum. Only a real change is tagged; answers filled in with the concierge get a quiet dot. */
.rv { display: grid; gap: 16px }
.rv-lead { margin: 0; font-size: 15px; color: #4a514d }
.rv-only { justify-self: start; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #d6e4da; background: #fff; color: #25483c; font: 700 14px var(--font-body); cursor: pointer }
.rv-only[aria-pressed="true"] { background: #25483c; border-color: #25483c; color: #f6f3ee }
.rv-changes .rv-same, .rv-changes .rv-row:not(.rv-changed):not(.rv-added) { display: none }
.rv-group h4 { margin: 0 0 8px; font: 700 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #366b55 }
.rv-group dl { margin: 0; border-top: 1px solid #e3ddd0 }
.rv-row { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid #e3ddd0 }
.rv-row dt { margin: 0; font-size: 15px; color: #4a514d }
.rv-row dd { margin: 0; font-size: 16px; color: #25483c; overflow-wrap: anywhere }
.rv-row.rv-changed dd { font-weight: 700 }
.rv-tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: #e5efe8; color: #25483c; font: 700 12px/20px var(--font-body); vertical-align: 1px }
.rv-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #add6c0; vertical-align: 2px }
@media (max-width: 560px) { .rv-row { grid-template-columns: 1fr; gap: 4px } .rv-row dt { font-size: 14px } }
.rv--staff .rv-lead { color: #655b78 }
.rv--staff .rv-only { border-color: #d9cfe8; color: #4b2f73 } .rv--staff .rv-only[aria-pressed="true"] { background: #6A4C93; border-color: #6A4C93; color: #fff }
.rv--staff .rv-group h4 { color: #6A4C93 }
.rv--staff .rv-group dl, .rv--staff .rv-row { border-color: #e3deec }
.rv--staff .rv-row dt { color: #655b78 } .rv--staff .rv-row dd { color: #251d33 }
.rv--staff .rv-tag { background: #ece4f7; color: #4b2f73 } .rv--staff .rv-dot { background: #cbb8e6 }
.rv-scrim { position: fixed; inset: 0; z-index: 2147482000; background: rgba(20,40,33,.45); backdrop-filter: blur(2px) }
.rv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147482001; display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh; margin: 0 auto; width: 100%; max-width: 680px;
  border-radius: 24px 24px 0 0; background: #fbf8f2; color: #25483c; box-shadow: 0 -12px 40px rgba(20,40,33,.25); transform: translateY(100%); transition: transform .26s cubic-bezier(.22,1,.36,1) }
.rv-sheet.is-up { transform: none }
@media (prefers-reduced-motion: reduce) { .rv-sheet { transition: none } }
.rv-grip { align-self: center; width: 48px; height: 4px; margin: 8px 0 0; border-radius: 999px; background: #d6e4da }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 24px 16px; border-bottom: 1px solid #e3ddd0; touch-action: none }
.rv-head h2 { margin: 0; font: 300 30px/1.15 var(--font-display); color: #25483c }
.rv-head p { margin: 4px 0 0; font-size: 15px; color: #4a514d }
.rv-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d6e4da; border-radius: 999px; background: #fff; color: #25483c; cursor: pointer }
.rv-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 24px }
.rv-foot { display: grid; gap: 8px; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #e3ddd0; background: #fbf8f2 }
.rv-ok { min-height: 52px; border-radius: 12px; border: 1px solid #152a23; background: #25483c linear-gradient(180deg, #2f6150 0%, #25483c 100%); color: #f6f3ee; font: 700 16px var(--font-body); cursor: pointer }
.rv-more { display: flex; justify-content: center; gap: 24px }
.rv-link { min-height: 40px; padding: 0 8px; border: 0; background: none; color: #25483c; font: 700 15px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.rv-fine { margin: 0; text-align: center; font-size: 13px; color: #4a514d }
