/* Support form on /support and /en/support (PAP-1710): form card, debug-log dialog, community cards beside the form.
   Moved here from the inline <style> of the old contact pages. */
/* form card */
.form-card { background: var(--bone-pale); border: 1px solid var(--hairline); border-radius: 22px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 0; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--bone); border: 1px solid var(--hairline-strong); border-radius: 12px;
  padding: 13px 15px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(129,159,128,0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn { padding: 14px 26px; font-size: 15px; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-sent {
  display: none; align-items: center; gap: 10px; margin-top: 22px;
  background: var(--sage-mist); border: 1px solid var(--sage-pale); color: var(--sage-deep);
  padding: 14px 16px; border-radius: 12px; font-size: 14px;
}
.form-sent.show { display: flex; }
.form-sent svg { width: 18px; height: 18px; flex: 0 0 18px; }
.form-error {
  display: none; align-items: flex-start; gap: 10px; margin-top: 22px;
  background: #fdf3ef; border: 1px solid #f0d6c9; color: #8a4b2f;
  padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55;
}
.form-error.show { display: flex; }
.form-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Technical questions — only shown for the support topic. */
.tech-fields { display: none; }
.tech-fields.show { display: block; }
.tech-hint { font-size: 12.5px; color: var(--muted); margin: -6px 0 18px; line-height: 1.5; }
/* Screenshot picker — the native file input is hidden behind a button that
   matches the form's language; the preview proves what will be sent. */
.shot-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* `.field input` and `.field label` outrank the single classes above and below: without these the hidden
   inputs got width: 100% of the window (the page scrolled sideways) and the picker buttons the small
   uppercase mono of the field labels. */
.field input.shot-input { width: 1px; height: 1px; padding: 0; border: 0; }
.field label.shot-pick { font-family: var(--sans); font-size: 14.5px; letter-spacing: normal; text-transform: none; }
.shot-pick {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-family: var(--sans); font-size: 14.5px; color: var(--sage-deep);
  background: var(--bone); border: 1px dashed var(--hairline-strong); border-radius: 12px;
  padding: 12px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.shot-pick:hover { border-color: var(--sage); }
.shot-input:focus-visible + .shot-pick { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(129,159,128,0.18); }
.shot-pick svg { width: 17px; height: 17px; flex: none; }
.shot-preview { display: none; align-items: center; gap: 12px; margin-top: 12px; }
.shot-preview.show { display: flex; }
.shot-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; border: 1px solid var(--hairline-strong); flex: none; }
.shot-name { font-size: 13.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-remove {
  margin-left: auto; flex: none; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 15px; line-height: 1; padding: 6px 9px; border-radius: 8px;
}
.shot-remove:hover { color: var(--ink); background: var(--bone-warm); }
.shot-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
/* Debug-log ZIPs (PAP-1709): picker button and a "how to" link in the form; the <dialog> shows only the guide. */
.logs-field { display: none; }
.logs-field.show { display: flex; }
.logs-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.log-input:focus-visible + .logs-row .log-pick { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(129,159,128,0.18); }
.log-pick.over { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(129,159,128,0.18); }
.logs-howto {
  background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--sans); font-size: 14.5px;
  color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px;
}
.logs-howto:hover { color: var(--ink); }
.logs-howto:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.logs-intro { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.log-list { list-style: none; margin: 12px 0 0; padding: 0; display: none; flex-direction: column; gap: 8px; }
.log-list.show { display: flex; }
.log-list li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.log-list .log-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.log-list .log-size { flex: none; }
.log-list .shot-remove { margin-left: auto; }
.log-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0;
  background: var(--bone-pale); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15,20,16,0.28);
}
.log-dialog::backdrop { background: rgba(15,20,16,0.45); }
.log-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.log-dialog .dlg-head { display: flex; align-items: center; gap: 12px; padding: 22px 26px 14px; }
.log-dialog h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 0; flex: 1; }
/* The body is the only scroller. position: relative makes it the containing block of the guide's
   device radios (position: absolute); otherwise the modal dialog is, and the dialog itself scrolls. */
.log-dialog .dlg-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 26px 8px; }
.log-dialog .dlg-foot { display: flex; justify-content: flex-end; padding: 16px 26px 22px; }
.dlg-help { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.dlg-help h2 { font-size: 19px; margin: 0 0 8px; }
.dlg-help a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.dlg-help img { max-width: 100%; height: auto; border-radius: 10px; }
.dlg-help-status { font-size: 13.5px; color: var(--muted); }
.log-error { display: none; margin: 12px 0 0; background: #fdf3ef; border: 1px solid #f0d6c9; color: #8a4b2f; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.55; }
.log-error.show { display: block; }
.cf-turnstile { margin-top: 22px; }
.privacy-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 14px; }
.privacy-note a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }

/* community / feedback options — in the side column next to the form */
.community { margin-top: 44px; }
.community .eyebrow { margin-bottom: 20px; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .community-grid { grid-template-columns: 1fr; } }
.community-card {
  background: var(--bone-pale); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 26px 26px 24px; display: flex; flex-direction: column; align-items: flex-start;
}
.community-card .tile {
  width: 44px; height: 44px; border-radius: 11px; background: var(--sage-mist);
  border: 1px solid var(--sage-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.community-card .tile svg { width: 22px; height: 22px; color: var(--sage-deep); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.community-card h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; margin: 0; }
.community-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 7px 0 20px; }
.community-card .btn { margin-top: auto; }
.community-card .btn svg { width: 15px; height: 15px; }


/* PAP-1710: the form is the last section of /support. */
.support-contact { margin-top: 72px; padding-top: 8px; scroll-margin-top: 90px; }
.support-contact .sc-head { max-width: 680px; }
.support-contact .sc-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 14px 0 0; text-wrap: balance; }
.support-contact .sc-head h2 em { font-style: italic; color: var(--sage-deep); }
.support-contact .sc-head p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 0; }
.support-contact .sc-head p a { color: var(--sage-link); text-decoration: underline; text-underline-offset: 2px; }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
/* A grid item is at least as wide as its content: without min-width: 0 a long attached file name widened
   the form card past the column on the phone. */
.contact-grid > * { min-width: 0; }
.support-contact .contact-grid { margin-top: 40px; }
/* Beside the form (Timo, 2026-11-15): the side column holds only the community cards, one above the other. */
.support-contact aside .community { margin-top: 0; }
.support-contact aside .community-grid { grid-template-columns: 1fr; gap: 16px; }
