/* honor-calculator: every selector starts with the tool's root class (TOOLS.md; bin/build.mjs refuses anything else).
   The idea: the game's honor tab. Rank insignia, the gold progress bar inside its rank, numbers in tabular figures. */
.kc-t-honor-calculator .kc-t-honor-app { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 28px; align-items: start; margin: 8px 0 12px; }
.kc-t-honor-calculator .kc-t-honor-form { font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding: 18px; border: 1px solid #5d5132; background: rgba(6, 8, 26, 0.7); }
.kc-t-honor-calculator fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.kc-t-honor-calculator legend { color: #ffd100; font-weight: 600; padding: 0; margin-bottom: 8px; }
.kc-t-honor-calculator .kc-t-honor-form label { display: grid; gap: 4px; margin-bottom: 10px; color: #c9c0a8; }
.kc-t-honor-calculator .kc-t-honor-form select,
.kc-t-honor-calculator .kc-t-honor-form input { font-family: inherit; font-size: 16px; padding: 8px 10px; background: #0a0d16; color: #f3ead1; border: 1px solid #8d713b; border-radius: 0; width: 100%; font-variant-numeric: tabular-nums; }
.kc-t-honor-calculator .kc-t-honor-form button { font-family: inherit; font-size: 15px; font-weight: 700; padding: 12px 18px; background: #ddb45e; color: #171105; border: 1px solid #efcd7b; cursor: pointer; }
.kc-t-honor-calculator .kc-t-honor-result { min-width: 0; }
.kc-t-honor-calculator .kc-t-honor-result h3 { color: #ffd100; font-size: 18px; margin-top: 0; }
.kc-t-honor-calculator .kc-t-honor-bars { display: grid; gap: 14px; margin-bottom: 16px; }
.kc-t-honor-calculator .kc-t-honor-bars p { margin: 0 0 4px; font: 13px/1.3 system-ui, sans-serif; color: #aaa38f; }
.kc-t-honor-calculator .kc-t-honor-bar { display: grid; grid-template-columns: 32px auto 1fr auto; align-items: center; gap: 10px; font: 600 15px/1.3 system-ui, sans-serif; }
.kc-t-honor-calculator .kc-t-honor-badge { width: 32px; height: 32px; }
.kc-t-honor-calculator .kc-t-honor-badge-none { display: inline-block; border: 1px solid #3a3d48; border-radius: 50%; background: #0d1020; }
.kc-t-honor-calculator .kc-t-honor-title { color: #ffd100; font-weight: 600; }
.kc-t-honor-calculator .kc-t-honor-bar-track { height: 14px; border: 1px solid #9aa0ae; background: #0b0d14; box-shadow: inset 0 1px 3px #000; }
.kc-t-honor-calculator .kc-t-honor-bar-fill { display: block; height: 100%; background: linear-gradient(#f6c55a, #b07a1c); }
.kc-t-honor-calculator .kc-t-honor-bar-pct { font-variant-numeric: tabular-nums; color: #f3ead1; }
.kc-t-honor-calculator .kc-t-honor-sum { border-collapse: collapse; width: 100%; font: 15px/1.4 system-ui, sans-serif; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.kc-t-honor-calculator .kc-t-honor-sum th { text-align: start; font-weight: 400; color: #c9c0a8; padding: 5px 0; border-bottom: 1px solid rgba(154, 160, 174, 0.14); }
.kc-t-honor-calculator .kc-t-honor-sum td { text-align: end; padding: 5px 0; border-bottom: 1px solid rgba(154, 160, 174, 0.14); }
.kc-t-honor-calculator .kc-t-honor-sum tr:last-child th,
.kc-t-honor-calculator .kc-t-honor-sum tr:last-child td { color: #ffd100; font-weight: 700; }
.kc-t-honor-calculator .kc-t-honor-note { font: 14px/1.4 system-ui, sans-serif; color: #e6a23c; }
.kc-t-honor-calculator .kc-t-honor-never { color: #6f6a5c; }
.kc-t-honor-calculator td img.kc-t-honor-badge { width: 24px; height: 24px; vertical-align: middle; margin-inline-end: 8px; }
@media (max-width: 720px) {
  .kc-t-honor-calculator .kc-t-honor-app { grid-template-columns: 1fr; }
  .kc-t-honor-calculator .kc-t-honor-bar { grid-template-columns: 32px 1fr auto; }
  .kc-t-honor-calculator .kc-t-honor-bar-track { grid-column: 1 / -1; }
}
