/* NACA help pages: Get help (/contact) and the help desk (/helpdesk).
   Built on the NACA theme (naca-wa.css tokens) inside the Wild Apricot-style
   page column; the site header and footer come from site-chrome.css. */

.hd-main { padding-bottom: 8px; }
.hd-main [hidden], .hd-main[hidden] { display: none !important; }
.hd-lead { max-width: 720px; margin-left: auto !important; margin-right: auto !important; margin-bottom: 26px !important; text-align: center; }
.hd-loading { padding: 40px 0; text-align: center; }

/* Two columns: the work on the left, a narrow column on the right */
.hd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.hd-ticket { grid-template-columns: minmax(0, 1fr) 270px; }
.hd-main-col, .hd-side-col { min-width: 0; }
.hd-side-col { display: flex; flex-direction: column; gap: 16px; }
@media screen and (max-width: 820px) {
  .hd-grid, .hd-ticket { grid-template-columns: 1fr; }
}

.naca-scope .hd-card { margin: 0; padding: 22px 24px; border-radius: 10px; box-shadow: var(--naca-shadow-sm); }
.naca-scope .hd-side-card { padding: 18px 20px; }
.naca-scope .hd-card-title { margin: 0 0 14px; font-size: 19px; color: var(--naca-heading); }
.naca-scope .hd-side-title { margin: 0 0 10px; font-size: 16px; color: var(--naca-heading); }
.hd-side-text { margin: 0; font-size: 14px; color: var(--naca-text-secondary); line-height: 1.5; }
@media screen and (max-width: 767px) { .naca-scope .hd-card { padding: 18px 16px; } }

/* ── Form pieces ─────────────────────────────────────────────────────── */
.hd-form .naca-field, .hd-group { margin: 0 0 18px; }
.hd-group { border: 0; padding: 0; min-width: 0; }
.naca-scope .hd-label, .hd-group > legend {
  display: block; margin: 0 0 7px; padding: 0; font-size: 14px; font-weight: 700; color: var(--naca-heading);
}
.hd-optional { font-weight: 400; color: var(--naca-muted); }
.naca-scope .hd-hint { display: block; margin: 0 0 7px; font-size: 13px; line-height: 1.45; color: var(--naca-muted); }
.naca-scope .hd-tcard .hd-hint, .naca-scope td .hd-hint, .naca-scope .hd-msg-files .hd-hint, .naca-scope .hd-actions .hd-hint { display: inline; margin: 0; }
.naca-scope td .hd-hint, .naca-scope .hd-earlier .hd-hint { display: block; }
.hd-left { margin-top: 5px !important; }
.hd-note { font-size: 13px; color: var(--naca-muted); line-height: 1.5; margin: 0 0 16px !important; }
.hd-signin-note { padding: 10px 12px; background: var(--naca-tint-100); border: 1px solid var(--naca-border); border-radius: 8px; color: var(--naca-text-secondary); }
.hd-form input[type="text"], .hd-form input[type="email"], .hd-form textarea { width: 100%; }
.hd-form textarea, .hd-composer textarea, .hd-member-reply textarea { width: 100%; min-height: 140px; resize: vertical; line-height: 1.5; }
.hd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media screen and (max-width: 560px) { .hd-two { grid-template-columns: 1fr; } }

/* "What is it about?" cards */
.hd-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media screen and (max-width: 940px) { .hd-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media screen and (max-width: 640px) { .hd-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 380px) { .hd-cats { grid-template-columns: 1fr; } }
.hd-cat { position: relative; display: block; padding: 12px 13px; border: 1.5px solid var(--naca-border-strong); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.hd-cat:hover { border-color: var(--naca-tint-400); }
.hd-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hd-cat:has(input:checked) { border: 2px solid var(--naca-navy-deep); padding: 11.5px 12.5px; background: #dcecfd; }
.hd-cat:has(input:focus-visible) { outline: 2px solid var(--naca-gold); outline-offset: 2px; }
.hd-cat-text { display: flex; flex-direction: column; gap: 3px; }
.hd-cat-text strong { font-size: 15px; line-height: 1.3; color: var(--naca-heading); }
.hd-cat-text span { font-size: 12.5px; line-height: 1.4; color: var(--naca-muted); }

/* Pill choices */
.hd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1.5px solid var(--naca-border-strong); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--naca-heading); cursor: pointer; }
.hd-pill input { margin: 0; accent-color: var(--naca-navy-deep); }
.hd-pill:has(input:checked) { border-color: var(--naca-navy-deep); background: #dcecfd; }
.hd-pill:has(input:focus-visible) { outline: 2px solid var(--naca-gold); outline-offset: 2px; }

/* Files */
.hd-files { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hd-file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--naca-border); border-radius: 8px; background: var(--naca-tint-100); }
.hd-file img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; border: 1px solid var(--naca-border); background: #fff; }
.hd-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 48px; border-radius: 5px; background: var(--naca-tint-300); color: var(--naca-navy); font-size: 12px; font-weight: 700; }
.hd-file-name { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.hd-file-pick { position: relative; overflow: hidden; cursor: pointer; }
.hd-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.hd-check { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; font-size: 14px; color: var(--naca-text); cursor: pointer; }
.hd-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--naca-navy-deep); flex: none; }
.naca-scope .hd-path { font-size: 12.5px; background: var(--naca-tint-200); border-radius: 5px; padding: 1px 6px; word-break: break-all; }
.hd-reply-line { margin: 0 0 14px; padding: 11px 14px; border-radius: 8px; background: var(--naca-tint-200); font-size: 14px; color: var(--naca-text); }
.hd-reply-line .naca-field { margin: 0 0 6px; }
.hd-reply-line input { width: 100%; }

.naca-scope .hd-link { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--naca-navy); text-decoration: underline; cursor: pointer; }
.naca-scope .hd-link:hover { color: var(--naca-navy-soft); }
.hd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.naca-scope .hd-actions .naca-button[disabled] { opacity: .6; cursor: progress; }
.hd-error { margin: 0 0 14px; }
.hd-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you card */
.hd-thanks p { font-size: 15px; color: var(--naca-text-secondary); }
.naca-scope .hd-ref { font-family: var(--naca-font-mono); font-size: 15px; color: var(--naca-heading); }

/* ── Chips ───────────────────────────────────────────────────────────── */
.hd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.hd-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--naca-tint-200); color: var(--naca-heading); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.hd-chip-info { background: #e3eefc; color: #1e395e; }
.hd-chip-blue { background: #d6e9fd; color: #12305a; }
.hd-chip-ok { background: var(--naca-ok-bg); color: var(--naca-ok-text); }
.hd-chip-warn { background: #fde9cc; color: #7a4a05; }
.hd-chip-red { background: #fde3e1; color: #9a2318; }
.hd-chip-reopen { background: #efe4fb; color: #5b2a86; }

/* ── My requests ─────────────────────────────────────────────────────── */
.hd-mine { list-style: none; margin: 0; padding: 0; }
.hd-mine li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--naca-border); }
.hd-mine li:first-child { border-top: 0; padding-top: 0; }
.naca-scope .hd-mine-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; min-width: 0; }
.hd-mine-subject { font-size: 14px; font-weight: 700; color: var(--naca-heading); line-height: 1.35; }
.naca-scope .hd-mine-link:hover .hd-mine-subject { text-decoration: underline; }
.hd-mine-meta { font-size: 12.5px; color: var(--naca-muted); }

/* ── Conversation ────────────────────────────────────────────────────── */
.naca-scope .naca-back { margin: 0 0 6px; }   /* back link above a ticket or case; its look is in naca-wa.css */
.naca-scope .hd-thread-title { margin: 0 0 16px; font-size: 24px; line-height: 1.3; color: var(--naca-heading); }
.hd-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hd-msg { padding: 14px 18px; border: 1px solid var(--naca-border); border-radius: 10px; background: #fff; }
.hd-msg-reply { background: #f1f7fe; border-color: #c9ddf5; }
.hd-msg-note { background: #fff7d9; border-color: #f0d374; }
.hd-msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-bottom: 6px; }
.hd-msg-head strong { font-size: 15px; color: var(--naca-heading); }
.hd-msg-when { font-size: 12.5px; color: var(--naca-muted); }
.naca-scope .hd-msg-body p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--naca-text); overflow-wrap: anywhere; }
.naca-scope .hd-msg-body p:last-child { margin-bottom: 0; }
.naca-scope .hd-msg-files { margin: 8px 0 0; font-size: 13px; color: var(--naca-muted); }
.naca-scope .hd-msg-files a { margin-right: 8px; }
.naca-scope .hd-msg-system { margin: 0; padding: 0 4px; font-size: 13px; color: var(--naca-muted); font-style: italic; }
.hd-member-reply { margin-top: 4px; }

/* Composer */
.hd-tabs { display: flex; border: 1px solid var(--naca-border-strong); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.hd-tabs button { flex: 1; padding: 10px 14px; border: 0; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--naca-heading); cursor: pointer; }
.hd-tabs button + button { border-left: 1px solid var(--naca-border-strong); }
.hd-tabs button[aria-selected="true"] { background: var(--naca-navy-deep); color: #fff; }
.hd-composer.is-note { background: #fffbea; border-color: #f0d374; }

/* Side panel */
.hd-side-card select.is-changed { border-color: var(--naca-gold); box-shadow: 0 0 0 1px var(--naca-gold); }
.hd-save-row { margin: 0 0 6px; }
.hd-activity { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.hd-activity li { padding: 7px 0; border-top: 1px solid var(--naca-border); line-height: 1.45; color: var(--naca-text); }
.hd-activity li:first-child { border-top: 0; padding-top: 0; }
.naca-scope .hd-activity .hd-hint { display: block; margin: 2px 0 0; }
.naca-scope .hd-flash { background: var(--naca-ok-bg); border-color: var(--naca-ok-text); color: var(--naca-ok-text); margin-bottom: 14px; }
.hd-side-card .naca-field { margin: 0 0 12px; }
.hd-side-card select { width: 100%; }
.naca-scope .hd-saved { margin: 0; min-height: 18px; font-size: 13px; color: var(--naca-ok-text); }
.naca-scope .hd-member-name { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--naca-heading); }
.naca-scope .hd-side-link { margin: 6px 0 0; font-size: 14px; }
.hd-dl { margin: 0; font-size: 14px; }
.hd-dl dt { font-size: 12.5px; color: var(--naca-muted); }
.hd-dl dd { margin: 0 0 8px; overflow-wrap: anywhere; color: var(--naca-text); }
.hd-dl dd:last-child { margin-bottom: 0; }
.hd-earlier { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hd-earlier li + li { margin-top: 9px; }

/* ── The desk ────────────────────────────────────────────────────────── */
.hd-deskhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: -6px 0 16px; }
.naca-scope .hd-lead-text { margin: 0; font-size: 15px; color: var(--naca-text-secondary); }
.hd-deskhead-tools { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.hd-toggle { display: inline-flex; border: 1px solid var(--naca-border-strong); border-radius: 8px; overflow: hidden; }
.hd-toggle button { padding: 8px 16px; border: 0; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--naca-heading); cursor: pointer; }
.hd-toggle button[aria-pressed="true"] { background: var(--naca-navy-deep); color: #fff; }

.hd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media screen and (max-width: 700px) { .hd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hd-stat { padding: 12px 16px; border: 1px solid var(--naca-border); border-radius: 10px; background: #fff; }
.hd-stat-label { display: block; font-size: 12.5px; color: var(--naca-muted); }
.hd-stat-num { display: block; font-size: 24px; line-height: 1.25; color: var(--naca-heading); }

.hd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.hd-filter-label { font-size: 13px; color: var(--naca-muted); }
.hd-filters select { min-width: 140px; }
.hd-filters input[type="search"] { flex: 1 1 240px; min-width: 200px; }

.hd-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media screen and (max-width: 900px) { .hd-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hd-col[data-status="Re-opened"] { background: #f1eafa; }
@media screen and (max-width: 520px) { .hd-board { grid-template-columns: 1fr; } }
.hd-col { padding: 8px; border-radius: 10px; background: #e9eef6; min-height: 140px; transition: box-shadow 120ms ease; }
.hd-col.is-over { box-shadow: inset 0 0 0 2px var(--naca-blue); }
.hd-col-head { display: flex; justify-content: space-between; padding: 2px 4px 10px; font-size: 14px; font-weight: 700; color: var(--naca-heading); }
.hd-col-count { font-weight: 400; color: var(--naca-muted); }
.hd-col-cards { display: flex; flex-direction: column; gap: 9px; min-height: 60px; }
.naca-scope .hd-col-empty { margin: 0; padding: 14px 0; text-align: center; font-size: 13px; color: var(--naca-faint); }
.hd-tcard { padding: 10px 10px; border: 1px solid var(--naca-border); border-radius: 8px; background: #fff; cursor: pointer; box-shadow: var(--naca-shadow-sm); }
.hd-tcard:hover, .hd-tcard:focus-visible { border-color: var(--naca-tint-400); box-shadow: var(--naca-shadow-md); outline: none; }
.hd-tcard.is-replied { border-color: var(--naca-blue); }
.hd-tcard.is-dragging { opacity: .5; }
.hd-tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.naca-scope .hd-tcard-title { margin: 0 0 4px; font-size: 15px; line-height: 1.3; color: var(--naca-heading); overflow-wrap: anywhere; }
.naca-scope .hd-tcard-meta, .naca-scope .hd-tcard-when { margin: 0; font-size: 12.5px; color: var(--naca-muted); line-height: 1.45; }
.hd-tcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.hd-tcard-tags:empty { display: none; }
.hd-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--naca-navy-deep); color: #fff; font-size: 11px; font-weight: 700; }
.hd-avatar-none { background: #fff; color: var(--naca-muted); border: 1.5px dashed var(--naca-faint); }

.hd-tablescroll { overflow-x: auto; }
.hd-table td { vertical-align: top; }
.hd-table a { text-decoration: none; }
.hd-table a:hover strong { text-decoration: underline; }
.hd-allresolved { margin-bottom: 10px; }
.naca-scope .hd-footnote { margin: 16px 0 0; font-size: 13px; color: var(--naca-muted); }

@media print {
  .hd-composer, .hd-filters, .hd-deskhead-tools, .hd-side-col .hd-side-card:first-child { display: none !important; }
}

/* Tickets from the shared Zoom scheduler (/meetings) */
.hd-meeting { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.hd-meeting .hd-chip { align-self: flex-start; margin: 0; }
.naca-scope .hd-meeting-title { margin: 0; font-size: 18px; }
.hd-meeting-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 14.5px; }
.hd-meeting-dl dt { color: var(--naca-muted); font-weight: 600; }
.hd-meeting-dl dd { margin: 0; }
.hd-meeting textarea { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid var(--naca-border-strong); border-radius: 8px; font: inherit; }
.hd-ok { background: #eaf5ec; border-color: #9ac4a5; color: #1d5c33; }
