/* /accounts: scoring key, filters, results table (stacked cards on phones). Shared pieces live in throne.css. */

.key { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.key-head { padding: 16px 20px; border-bottom: 2px solid var(--gold-500); background: #FBFAF6; }
.key-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.key-head p { margin: 0; color: var(--ink-soft); font-size: .92rem; max-width: 70ch; }
.key-rows { margin: 0; padding: 0; list-style: none; }
.key-rows li { display: grid; grid-template-columns: 1fr; gap: 6px 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.key-rows li:last-child { border-bottom: 0; }
.key-rows p { margin: 0; font-size: .94rem; }
.key-zones { padding: 14px 20px 18px; background: #F6F8FB; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.key-zones dl { margin: 0; display: grid; gap: 6px; }
.key-zones dl div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 10px; }
.key-zones dt { font-weight: 600; color: var(--navy-700); }
.key-zones dd { margin: 0; }
.key-zones p { margin: 12px 0 0; }
@media (min-width: 720px) { .key-rows li { grid-template-columns: 8.5rem minmax(0, 1fr); align-items: center; } }

/* Fit score: three small orbs, the same shape as the emblem's orbit nodes */
.orbs { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.orb { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--gold-700); background: transparent; }
.orb.on { background: var(--gold-500); border-color: var(--gold-700); }
.score { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.score-num { min-width: 1ch; }

/* Controls */
.controls { display: grid; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); margin-bottom: 14px; }
.controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.controls legend { padding: 0; margin-bottom: 8px; font: 600 .9rem/1.3 var(--display); color: var(--navy-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 .9rem/1.2 var(--body); cursor: pointer; }
.chip:hover { border-color: var(--navy-700); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip-count { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.chip[aria-pressed="true"] .chip-count { color: var(--gold-400); }
.controls-row { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .controls-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); } }
.field input[type="search"] { -webkit-appearance: none; appearance: none; }

.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 12px; }
.result-count { margin: 0; font-weight: 600; color: var(--navy-700); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Results table */
.accounts-table th, .accounts-table td { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .accounts-table { table-layout: fixed; }
  .accounts-table .c-name { width: 21%; }
  .accounts-table .c-type { width: 12%; }
  .accounts-table .c-city { width: 11%; }
  .accounts-table .c-role { width: 15%; }
  .accounts-table .c-score { width: 9%; }
  .accounts-table .c-why { width: 32%; }
}
.org { font-weight: 600; color: var(--navy-700); }
.org-src { display: block; margin-top: 2px; font-size: .8rem; font-weight: 400; }
.sub { display: block; font-size: .82rem; color: var(--ink-soft); }
.why { font-size: .88rem; color: var(--ink-soft); }
.table-wrap.flush { overflow-x: visible; }
.empty { padding: 28px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: #fff; }
.empty p { margin: 0 0 12px; }

.note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); max-width: 72ch; }

@media (max-width: 899px) {
  .accounts-table, .accounts-table tbody, .accounts-table tr, .accounts-table td { display: block; width: auto; }
  .accounts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .accounts-table tbody { display: grid; gap: 14px; padding: 12px; background: var(--shell); }
  .accounts-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); border-left: 4px solid var(--gold-500); padding: 6px 14px 10px; box-shadow: var(--shadow); }
  .accounts-table td { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .accounts-table td:last-child { border-bottom: 0; }
  .accounts-table td::before { content: attr(data-label); font: 600 .8rem/1.5 var(--display); color: var(--navy-700); }
  .accounts-table td.c-name { grid-template-columns: 1fr; padding-top: 10px; font-size: 1.02rem; }
  .accounts-table td.c-name::before { content: none; }
  .table-wrap { border: 0; background: transparent; }
}
.btn[hidden] { display: none; }
