/* The hit calculator (Damage tab of /skills, pipeline/gen/hitcalc.py + hitcalc.js). It sits on
   the dark planner pane (.stree-pane), so it uses the light ink tokens of style.css. */
.hc { color: var(--ink); }
.hc .lead { color: var(--ink); }
.hc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 10px 0; }
@media (max-width: 760px) { .hc-grid { grid-template-columns: minmax(0, 1fr); } }
.hc-box { margin: 0; padding: 8px 10px 10px; border: 1px solid rgba(232, 199, 115, 0.35); min-width: 0; }
.hc-box legend { padding: 0 4px; color: var(--gold); font-family: Cinzel, serif; }
.hc-mode { display: flex; gap: 16px; margin-bottom: 8px; }
.hc-mode label, .hc-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
.hc-chks { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.hc-find { width: 100%; box-sizing: border-box; padding: 6px 8px; font: inherit; color: #1a1208; background: #f4ead2; border: 1px solid #8a6a3a; }
.hc-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 220px; overflow-y: auto; border: 1px solid rgba(232, 199, 115, 0.2); }
.hc-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; cursor: pointer; min-height: 32px; }
.hc-list li:hover, .hc-list li:focus { background: rgba(232, 199, 115, 0.14); outline: none; }
.hc-list li[aria-selected="true"] { background: rgba(232, 199, 115, 0.24); }
.hc-list small, .hc-picked small { color: var(--ink-muted); white-space: nowrap; }
.hc-mref { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-picked { margin-top: 6px; }
.hc-num { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; }
.hc-num input, .hc-sel select { font: inherit; color: #1a1208; background: #f4ead2; border: 1px solid #8a6a3a; padding: 4px 6px; }
.hc-num input { width: 7em; }
.hc-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.hc-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; padding: 8px 10px; background: rgba(0, 0, 0, 0.25); }
.hc-stat small { color: var(--ink-muted); }
.hc-stat b { color: var(--gold); }
.hc-nogear { flex-basis: 100%; }
.hc-group { margin-top: 14px; }
.hc-group .p-h3 { color: var(--gold); margin: 0 0 6px; }
.hc-spell { padding: 8px 0; border-top: 1px solid rgba(232, 199, 115, 0.18); }
.hc-name { margin-bottom: 4px; font-weight: 700; }
.hc-tablewrap { overflow-x: auto; }
/* fixed columns, so every spell's table lines up with the next one */
.hc-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hc-table thead th:nth-child(1) { width: 36%; }
.hc-table thead th:nth-child(2) { width: 14%; }
.hc-table thead th:nth-child(3) { width: 20%; }
.hc-table thead th:nth-child(4), .hc-table thead th:nth-child(5) { width: 15%; }
.hc-table th, .hc-table td { overflow-wrap: anywhere; }
.hc-table th, .hc-table td { padding: 4px 8px; text-align: left; vertical-align: top; }
.hc-table thead th { color: var(--ink-muted); font-weight: 400; font-size: 0.9em; border-bottom: 1px solid rgba(232, 199, 115, 0.2); }
.hc-table .num { text-align: right; white-space: nowrap; }
.hc-table tbody th { font-weight: 400; }
.hc-dmg { color: var(--ink); font-weight: 700; font-size: 1.1em; }
.hc-crit { color: var(--gold); font-weight: 700; font-size: 1.1em; }
.hc .muted, .hc-why { color: var(--ink-muted); }
.hc-flag { margin: 6px 0 0; font-size: 0.92em; color: var(--ink-dim); }
.hc-notes { margin-top: 14px; color: var(--ink-dim); }
.hc-notes summary { cursor: pointer; color: var(--gold); }
/* phone: each hit is a small card, the column names move into the cells */
@media (max-width: 760px) {
  .hc-table, .hc-table tbody { display: block; }
  .hc-table thead { display: none; }
  .hc-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 6px; padding: 6px 0; border-bottom: 1px solid rgba(232, 199, 115, 0.12); }
  .hc-table tbody th { grid-column: 1 / -1; padding: 0; }
  .hc-table td { padding: 0; text-align: left; white-space: normal; }
  .hc-table td[colspan] { grid-column: 1 / -1; }
  .hc-table td[data-l]::before { content: attr(data-l); display: block; font-size: 0.78em; color: var(--ink-muted); font-weight: 400; }
  .hc-table .num { text-align: left; }
}
/* the damage per second estimate: its own dashed box, so it never reads as one of the exact
   numbers above (owner ruling 2026-09-30) */
.hc-est { margin-top: 22px; padding: 10px 14px 12px; border: 2px dashed rgba(117, 162, 217, 0.55); background: rgba(20, 28, 40, 0.35); }
.hc-est .p-h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-est-tag { display: inline-block; padding: 2px 10px; border: 1px solid #75a2d9; color: #bcd6f2; font: 700 13px "Philosopher", Georgia, serif; letter-spacing: 0.04em; text-transform: uppercase; }
.hc-est-total { font-size: 1.08em; margin: 10px 0 4px; }
.hc-est-total b { color: #bcd6f2; font-size: 1.25em; }
.hc-est .hc-dmg { color: #bcd6f2; }
.hc-est-table thead th:nth-child(1) { width: 34%; }
.hc-est-table thead th:nth-child(2), .hc-est-table thead th:nth-child(3), .hc-est-table thead th:nth-child(4) { width: 18%; }
.hc-est-table thead th:nth-child(5) { width: 12%; }
.hc-est-table input[type="checkbox"] { width: 20px; height: 20px; }
.hc-dot-table thead th:nth-child(1) { width: 40%; }
.hc-rot-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.hc-rot-add select { font: inherit; color: #1a1208; background: #f4ead2; border: 1px solid #8a6a3a; padding: 4px 6px; min-height: 36px; max-width: 100%; }
.hc-rot-add button, .hc-rot-list button {
  min-height: 36px; padding: 0 12px; font: 700 13px "Cinzel", Georgia, serif; color: var(--gold-warm, #f0cf8a); cursor: pointer;
  background: none; border-style: solid; border-width: 0 15px; border-image: url("/assets/ui/game/tall-btn.png?v=6c67721c") 0 15 fill stretch;
}
.hc-rot-list { margin: 6px 0; padding-left: 22px; }
.hc-rot-list li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.hc-rot-list li::marker { color: var(--gold); }
.hc-rot-list button { min-height: 32px; padding: 0 4px; font-size: 12px; }
@media (max-width: 760px) {
  .hc-est { padding: 8px 10px; }
  .hc-est-table tr, .hc-dot-table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
