/*! © 2026 Cyber Affinity LLC. All rights reserved. Use is subject to https://www.cyber-affinity.com/terms — copying or redistributing this code is not permitted. */
/* Job Description & Interview Scorecard Builder — tool-specific styles (shared classes live in /styles.css) */
.hk-summary { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.hk-sum-title { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.hk-sum-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-chip { cursor: pointer; border: 0; font: inherit; font-size: 12px; font-weight: 700; }
.hk-chip:hover { filter: brightness(1.15); }
.hk-tabs { margin-top: 16px; }
.hk-tab-out { border-style: dashed; }
.hk-tab-out[aria-selected="true"] { border-style: solid; }

#view .cw-section { grid-template-columns: minmax(0, 1fr); }
#view .cw-section > * { min-width: 0; }
.hk-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.hk-grow { flex: 1 1 200px; min-width: 0; }
.hk-h3 { font-size: 16px; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hk-label { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.hk-num { flex: none; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(45, 212, 191, 0.15); color: var(--accent); }
.hk-next { margin-top: 12px; }

/* Visually hidden label text (the section heading already says it) */
.hk-sr-label > .hk-lab-text, .hk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hk-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

.hk-tpl, .hk-add-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.hk-tpl label, .hk-add-row label { flex: 1 1 240px; max-width: 420px; }
.hk-pay .row3 { align-items: end; }
.hk-pay .small { margin-top: 4px; }

/* JD editor + language panel */
.hk-jd-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hk-jd-main { min-width: 0; }
.hk-lang { position: sticky; top: 84px; margin-top: 28px; display: grid; gap: 10px; max-height: calc(100vh - 100px); overflow-y: auto; }
.hk-lang .panel-title { margin: 0; }
.hk-hits, .hk-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hk-hits li { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.hk-hits li:last-child { border-bottom: 0; }
.hk-hits p { margin: 4px 0 0; }
.hk-hit-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.hk-hit-head .flag { white-space: normal; }
.hk-fix { color: var(--accent-2) !important; }
.hk-clear { margin: 0; color: #6ee7b7; font-weight: 600; }
.hk-notes li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.hk-notes .flag { flex: none; margin-top: 2px; }
@media (max-width: 900px) {
  .hk-jd-layout { grid-template-columns: minmax(0, 1fr); }
  .hk-lang { position: static; max-height: none; margin-top: 8px; order: -1; }
}

/* String lists */
.hk-list { display: grid; gap: 8px; }
.hk-list ol { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
.hk-list li { color: var(--muted); }
.hk-list li > * { vertical-align: middle; }
.hk-list li { display: list-item; }
.hk-list li input { width: calc(100% - 44px); padding: 8px 10px; font-size: 14px; }
.hk-list .btn { justify-self: start; }
.hk-suggest { margin-top: 8px; }

/* Competencies / stages */
.hk-comp-name { font-weight: 700; }
.hk-stage-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.hk-cover { margin: 0; }
.hk-cover .opt-row.inline { margin: 4px 18px 4px 0; }
.hk-cov-table td:first-child { font-weight: 600; }
@media (max-width: 560px) { .hk-stage-row { grid-template-columns: minmax(0, 1fr); } }

/* Candidates + scorecards */
.hk-cands { margin: 0; padding-left: 26px; display: grid; gap: 8px; }
.hk-cands li { color: var(--muted); }
.hk-cands li > input { width: min(360px, 100%); padding: 8px 10px; font-size: 14px; margin-right: 8px; }
.hk-cands li > .flag, .hk-cands li > .btn { margin-right: 4px; vertical-align: middle; }
.hk-cands li.hk-cur > input { border-color: var(--accent); }
.hk-card { border-left: 3px solid var(--accent); }
.hk-rates { display: grid; gap: 10px; }
.hk-rate { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.hk-rate-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.hk-rate-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hk-rate-head select { width: auto; max-width: 100%; padding: 6px 10px; font-size: 14px; }
.hk-rate textarea { font-size: 14px; padding: 8px 10px; background: var(--surface); }
.hk-anchors summary { cursor: pointer; color: var(--accent-2); font-weight: 600; font-size: 13px; }
.hk-anchors p { margin: 6px 0 0; color: var(--muted); }

/* Comparison */
.hk-compare { min-width: 640px; }
.hk-compare td { vertical-align: top; }
.hk-avg { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; }
.hk-split { margin-top: 4px; display: inline-block; }

/* Generated document (preview + print) */
.hk-paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); }
.hk-doc { display: grid; gap: 18px; max-width: 860px; overflow-wrap: anywhere; }
.hk-doc-head { border-bottom: 2px solid var(--accent); padding-bottom: 12px; }
.hk-doc-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.hk-doc .hk-doc-title { font-size: 28px; margin: 0 0 8px; line-height: 1.2; }
.hk-doc-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; font-size: 14px; }
.hk-doc-meta div { display: flex; gap: 6px; }
.hk-doc-meta dt { color: var(--muted); }
.hk-doc-meta dd { margin: 0; font-weight: 600; color: var(--text); }
.hk-doc-sec { display: grid; gap: 8px; }
.hk-doc-sec h3 { font-size: 19px; margin: 0; color: var(--accent-2); }
.hk-doc-sub { font-size: 15px; margin: 6px 0 0; }
.page .hk-doc-p, .hk-doc-p { margin: 0; white-space: pre-wrap; color: var(--text); }
.page .hk-doc-p.muted { color: var(--muted); }
.hk-doc ul, .hk-doc ol { margin: 0; padding-left: 22px; }
.page .hk-doc li { color: var(--text); margin: 3px 0; }
.hk-doc-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; }
.hk-doc-table th, .hk-doc-table td { border: 1px solid var(--line); padding: 6px 10px; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.hk-doc-table th { background: var(--bg); }
.hk-doc-anchors th { width: 120px; }
.hk-doc-fields { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hk-doc-fields div { display: flex; gap: 6px; align-items: flex-end; flex: 1 1 180px; }
.hk-doc-line { flex: 1; border-bottom: 1px solid var(--muted); min-height: 1.2em; }
.hk-doc-checks { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hk-doc-label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.hk-doc-box { border: 1px solid var(--line); border-radius: 6px; min-height: 90px; }
.hk-doc-comp { display: grid; gap: 6px; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }

/* Printing: only the generated document is printed — never the editing UI. */
#hk-print { display: none; }
@media print {
  body.hk-printing > *:not(#hk-print) { display: none !important; }
  body.hk-printing { background: #fff !important; }
  body.hk-printing #hk-print { display: block; color: #111; width: 100%; max-width: 100%; overflow: visible; }
  #hk-print .hk-doc { max-width: none; width: 100%; gap: 12px; }
  #hk-print, #hk-print * { color: #111 !important; background: transparent !important; box-shadow: none !important; }
  #hk-print .muted, #hk-print dt, #hk-print .hk-doc-label, #hk-print .hk-doc-eyebrow { color: #444 !important; }
  #hk-print .hk-doc-head { border-bottom-color: #111; }
  #hk-print .hk-doc-sec h3 { font-size: 15pt; border-bottom: 1px solid #bbb; padding-bottom: 2px; break-after: avoid; }
  #hk-print .hk-doc-break { break-before: page; }
  #hk-print .hk-doc-sub { break-after: avoid; }
  #hk-print .hk-doc-table { width: 100% !important; min-width: 0 !important; table-layout: auto; font-size: 10pt; }
  #hk-print .hk-doc-table th, #hk-print .hk-doc-table td { border: 1px solid #999; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
  #hk-print .hk-doc-table th { background: #f0f0f0 !important; }
  #hk-print .hk-doc-table tr { break-inside: avoid; }
  #hk-print .hk-doc-comp { border-left-color: #666; break-inside: avoid; }
  #hk-print .hk-doc-box { border-color: #999; min-height: 80px; }
  #hk-print .hk-doc-line { border-bottom-color: #666; }
  #hk-print .hk-doc-p, #hk-print li { overflow-wrap: anywhere; word-break: break-word; }
}

/* "Made a hire?" → Onboarding Plan */
.hk-hire input[type="date"] { width: 100%; }
