/* /bantuan: a quiet page around the chat. The chat (Brevo Conversations, frame mode) is always on
   the page; the common questions sit beside it on wide screens and under it on phones. Flat: thin
   lines, no card shadows, one accent. Colours and type from style.css (design/tokens.json). */
.helpdesk { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.helpdesk .bar { width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 20px 0; }

.helpdesk main.hd {
  flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 20px 40px;
  display: grid; gap: 24px; grid-template-areas: "intro" "chat" "faq";
}
.hd-intro { grid-area: intro; }
.hd-intro h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.hd-intro p { margin: 6px 0 0; font-size: 1.05rem; }

.landing .hd-chat { grid-area: chat; margin: 0; padding: 0; max-width: none; }
.chat-frame {
  position: relative; height: 72vh; height: min(72dvh, 640px); min-height: 420px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
/* Brevo puts its iframe inside; it should fill the frame whatever size it asks for. */
.chat-frame > div, .chat-frame iframe { width: 100% !important; height: 100% !important; border: 0; }
.chat-wait { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.chat-frame:has(iframe) .chat-wait { display: none; }
.hd-note { margin: 10px 2px 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.hd-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.hd-note a:hover { color: var(--accent); }

.landing .hd-faq { grid-area: faq; margin: 8px 0 0; padding: 0; max-width: none; border-top: 0; }
.hd-faq h2 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.01em; }
.hd-faq details:first-of-type { border-top: 1px solid var(--line); }
.hd-faq summary { padding: 16px 0; font-size: 1rem; }
.hd-faq details p { padding: 0 0 18px; font-size: .95rem; }

.helpdesk footer.foot { margin-top: 0; padding-top: 20px; justify-content: center; border: 0; font-size: .88rem; }

/* Wide screens: questions on the left, the chat on the right and in view while scrolling. */
@media (min-width: 900px) {
  .helpdesk main.hd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "intro chat" "faq chat"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 32px; padding-top: 48px; }
  .landing .hd-chat { position: sticky; top: 24px; align-self: start; }
  .chat-frame { height: min(78dvh, 680px); }
  .landing .hd-faq { margin: 0; }
}
