/* job-description-ai-impact: tool-specific styles only. Primitives live in ai-tools.css, tools.css and ds.css. */
.jd-frame { border: 2px solid var(--line-2); border-left: 6px solid var(--m); background: #fff; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; color: var(--ink-2); max-width: 78ch; }
.jd-frame b { color: var(--ink); }
.jd-lead { font-weight: 800; color: var(--ink); font-size: 16px; margin: 0 0 8px; }
.jd-sections { margin: 0 0 12px 1.2em; font-size: 14px; color: var(--ink-2); }
.jd-sections li { margin-bottom: 4px; overflow-wrap: anywhere; }
.jd-ignored { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.jd-ignored > summary { cursor: pointer; font-weight: 800; color: var(--ink); display: flex; align-items: center; min-height: 40px; }
.jd-ign-head { font-weight: 700; margin: 10px 0 4px; color: var(--ink-2); }
.jd-ign-list { margin: 0 0 0 1.2em; font-size: 13.5px; color: var(--ink-3); }
.jd-ign-list li { overflow-wrap: anywhere; margin-bottom: 3px; }
.jd-ign-group { margin: 6px 0 0; }
.jd-ign-group > summary { cursor: pointer; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; min-height: 40px; }
.jd-ign-group .jd-ign-list { margin: 2px 0 6px 1.6em; font-size: 13.5px; color: var(--ink-2); }
.jd-na { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 10px 0 0; max-width: 78ch; }
.jd-stats { margin: 16px 0 10px; }
.jd-bar-wrap { margin: 6px 0 4px; }
.jd-bar { display: flex; min-height: 46px; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.jd-seg { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 8px 6px; font: 800 13px/1.2 var(--font-ui); color: var(--ink); text-align: center; overflow-wrap: anywhere; border-right: 2px solid var(--ink); }
.jd-seg-name { margin-right: 3px; }
.jd-seg:last-child { border-right: 0; }
.jd-seg.human { background: var(--ok-soft); }
.jd-seg.aug { background: var(--info-soft); }
.jd-seg.auto { background: var(--warn-soft); }
.jd-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.jd-h4 { font: 850 1.08rem/1.25 var(--display); font-stretch: 108%; margin: 26px 0 8px; color: var(--ink); }
.jd-tblwrap { margin: 8px 0 18px; }
.jd-tbl caption { text-align: left; padding: 10px 13px; white-space: normal; }
.jd-tbl td, .jd-tbl th { vertical-align: top; }
.jd-wrap { white-space: normal !important; min-width: 180px; overflow-wrap: anywhere; }
.jd-tick { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.jd-tick input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--m); cursor: pointer; }
.jd-reasons { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--ink-2); min-width: 240px; }
.jd-reasons li { margin-bottom: 3px; overflow-wrap: anywhere; }
.jd-off td { color: var(--ink-3); }
.jd-off td.jd-wrap > span:first-child { text-decoration: line-through; }
.jd-row-actions { margin-top: 6px; }
.jd-list { margin: 22px 0 6px; }
.jd-list h4 { font: 850 1.02rem/1.25 var(--display); margin: 0 0 4px; color: var(--ink); }
.jd-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.jd-items li { border: 2px solid var(--line-2); background: #fff; padding: 10px 12px; font-size: 15px; color: var(--ink); }
.jd-items .ait-meta { display: block; margin-top: 4px; }
.jd-terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jd-questions { margin: 10px 0 0 1.3em; font-size: 15px; color: var(--ink-2); max-width: 78ch; }
.jd-questions li { margin-bottom: 8px; }
.jd-exports { margin-top: 22px; }
.jd-method { margin-top: 18px; }
.jd-method > summary.jd-sum { cursor: pointer; font: 850 1rem/1.3 var(--display); padding: 14px 16px; display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.jd-method .card-b p { max-width: 78ch; font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.jd-sources { margin: 0 0 12px 1.2em; max-width: 78ch; font-size: 14.5px; color: var(--ink-2); }
.jd-sources li { margin-bottom: 8px; }
/* Touch targets: at least 40px for controls, 44px for the main ones. */
#app .btn { min-height: 44px; }
#app .btn-sm { min-height: 40px; }
#app input[type="text"] { min-height: 44px; }
#jd-file { font-size: 15px; min-height: 44px; }
#jd-file::file-selector-button { min-height: 40px; padding: 0 14px; margin-right: 12px; font: inherit; font-weight: 800; color: var(--ink); background: #fff; border: 2px solid var(--line-2); cursor: pointer; }
#jd-mode { min-height: 44px; }
#jd-text { min-height: 260px; }
.jd-more { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.jd-more > summary { cursor: pointer; font-weight: 800; color: var(--ink); display: flex; align-items: center; min-height: 40px; }
.jd-more p { margin: 6px 0 0; line-height: 1.5; }
.jd-more b { color: var(--ink); }

/* Narrow screens: each task becomes a labelled card instead of a sideways-scrolling table. */
@media (max-width: 640px) {
  .jd-seg-name { display: none; }
  .jd-tblwrap.tblwrap { border: 0; background: transparent; overflow: visible; }
  .jd-tbl, .jd-tbl tbody, .jd-tbl tr, .jd-tbl td { display: block; width: 100%; }
  .jd-tbl caption { padding: 0 0 10px; }
  .jd-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .jd-tbl tbody tr { border: 2px solid var(--line-2); background: #fff; margin-bottom: 14px; padding: 6px 0; }
  .jd-tbl td { border-bottom: 0; padding: 6px 12px; white-space: normal; }
  .jd-tbl td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; color: var(--ink-3); margin-bottom: 2px; }
  .jd-tbl td.jd-check { padding-bottom: 0; }
  .jd-wrap { min-width: 0; }
  .jd-reasons { min-width: 0; }
}
