.officer-grid{
  display:grid;
  gap:16px;
}
.officer-card{
  padding:20px;
  border-radius:22px;
  background:var(--surface);
  border:1px solid rgba(28,36,48,.08);
  box-shadow:var(--shadow-soft);
}
.officer-card header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.officer-identity{
  display:flex;
  gap:14px;
  align-items:flex-start;
  min-width:min(100%, 340px);
}
.officer-identity > div{
  min-width:0;
}
.officer-name-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
}
.officer-card .officer-name-row h3{
  margin:0;
  overflow-wrap:anywhere;
}
.officer-badge-shield{
  --shield-shape:polygon(50% 0, 70% 8%, 95% 12%, 94% 47%, 90% 65%, 81% 79%, 67% 90%, 50% 100%, 33% 90%, 19% 79%, 10% 65%, 6% 47%, 5% 12%, 30% 8%);
  position:relative;
  display:inline-grid;
  place-items:center;
  box-sizing:border-box;
  min-width:56px;
  height:58px;
  padding:0 12px 4px;
  clip-path:var(--shield-shape);
  background:#0f6078;
  color:#0f6078;
  font:700 14px/1 ui-monospace, monospace;
}
.officer-badge-shield::before{
  content:"";
  position:absolute;
  inset:2px 3px 3px;
  clip-path:var(--shield-shape);
  background:#eef7f9;
}
.officer-badge-shield span{
  position:relative;
}
.officer-badge-sources{
  overflow-wrap:anywhere;
}
.officer-photo{
  width:76px;
  height:76px;
  flex:0 0 76px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(28,36,48,.12);
  background:rgba(15,96,120,.06);
}
.officer-meta{
  color:var(--muted);
  font-size:14px;
}
.activity-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:6px 11px;
  border-radius:999px;
  background:#faf0dc;
  color:#875214;
  font-size:13px;
  font-weight:600;
  max-width:100%;
  box-sizing:border-box;
}
.activity-icon{ width:20px; height:20px; flex:0 0 20px; }
.activity-coverage{ margin:12px 0; color:var(--muted); font-size:13px; }
.photo-source{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
.officer-kpis{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  margin:14px 0;
}
.officer-kpi{
  padding:14px 16px;
  border-radius:16px;
  background:rgba(15,96,120,.05);
  border:1px solid rgba(15,96,120,.08);
}
.officer-kpi .label{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.officer-kpi .value{
  display:block;
  margin-top:6px;
  font-family:"Source Serif 4", Georgia, serif;
  font-size:1.55rem;
  line-height:1;
}
.detail-grid{
  display:grid;
  align-items:start;
  gap:14px;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.detail-column{
  display:grid;
  align-content:start;
  gap:14px;
  min-width:0;
}
.detail-block{
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(28,36,48,.08);
}
.detail-block h4{
  margin-bottom:10px;
  font-size:1.05rem;
}
.detail-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
  color:var(--text);
  font-size:14px;
}
.detail-list strong{ color:var(--muted); }
.subtle-note{
  color:var(--muted);
  font-size:13px;
}
.officer-pay-position{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid color-mix(in srgb, var(--muted) 22%, transparent);
}
.officer-pay-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  color:var(--text);
  font-size:13px;
}
.officer-pay-label{
  padding:6px 10px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:600;
}
.officer-pay-cohort,
.officer-pay-rank,
.officer-pay-note{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.officer-pay-rank strong{ color:var(--text); }
.officer-pay-ribbon{
  position:relative;
  margin:18px 3px 0;
  padding-top:26px;
}
.officer-pay-track{
  height:14px;
  border-radius:5px;
  overflow:hidden;
  background:repeating-linear-gradient(to right,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) 0,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) calc(10% - 2px),
    transparent calc(10% - 2px), transparent 10%);
}
.officer-pay-fill{
  width:var(--pay-position);
  height:100%;
  background:color-mix(in srgb, var(--accent) 40%, var(--surface));
}
.officer-pay-marker{
  position:absolute;
  left:var(--pay-position);
  top:21px;
  width:4px;
  height:24px;
  border-radius:2px;
  transform:translateX(-50%);
  background:var(--accent);
}
.officer-pay-mid-label{
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
  color:var(--muted);
  font-size:11px;
}
.officer-pay-mid-line{
  position:absolute;
  left:50%;
  top:22px;
  width:1px;
  height:22px;
  background:var(--muted);
}
.officer-pay-scale{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  color:var(--muted);
  font-size:11px;
}

.officer-uof-comparison{
  margin:18px 0;
  padding:16px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.officer-uof-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--text);
  font-size:13px;
}
.officer-uof-heading strong{
  font-family:"Source Serif 4", Georgia, serif;
  font-size:26px;
  line-height:1;
}
.officer-uof-delta{
  margin:8px 0 0;
  color:var(--accent-strong);
  font-size:13px;
  font-weight:600;
}
.officer-uof-ribbon{
  position:relative;
  height:160px;
  margin:24px 4px 32px;
}
.officer-uof-axis{
  position:absolute;
  inset:-8px auto -8px 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px;
}
.officer-uof-track{
  position:absolute;
  left:32px;
  bottom:0;
  width:16px;
  height:100%;
  overflow:hidden;
  border-radius:5px;
  background:repeating-linear-gradient(to top,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) 0,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) calc(10% - 2px),
    transparent calc(10% - 2px), transparent 10%);
}
.officer-uof-fill{
  position:absolute;
  bottom:0;
  width:100%;
  height:var(--uof-marker);
  background:color-mix(in srgb, var(--accent) 40%, var(--surface));
}
.officer-uof-baseline{
  position:absolute;
  left:24px;
  right:0;
  bottom:var(--uof-baseline);
  height:1px;
  background:var(--muted);
}
.officer-uof-baseline span{
  position:absolute;
  left:40px;
  bottom:5px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.officer-uof-marker{
  position:absolute;
  left:28px;
  bottom:var(--uof-marker);
  width:24px;
  height:4px;
  border-radius:2px;
  transform:translateY(50%);
  background:var(--accent);
}
.officer-uof-legend{
  position:absolute;
  bottom:-23px;
  left:32px;
  color:var(--accent-strong);
  font-size:12px;
}
.officer-uof-context{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.officer-uof-period{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.officer-uof-history{ margin:14px 0; }
.officer-uof-history summary{
  color:var(--accent-strong);
  cursor:pointer;
  font-size:13px;
  font-weight:600;
}
.officer-postc-position{
  margin-top:18px;
  padding:16px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.officer-postc-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--text);
  font-size:13px;
}
.officer-postc-heading strong{ font-weight:600; }
.officer-postc-delta{
  margin:8px 0 0;
  color:var(--accent-strong);
  font-size:13px;
  font-weight:600;
}
.officer-postc-ribbon{ position:relative; margin:22px 3px 18px; padding-top:26px; }
.officer-postc-track{
  height:14px;
  border-radius:5px;
  overflow:hidden;
  background:repeating-linear-gradient(to right,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) 0,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) calc(10% - 2px),
    transparent calc(10% - 2px), transparent 10%);
}
.officer-postc-fill{
  height:100%;
  width:var(--postc-marker);
  background:color-mix(in srgb, var(--accent) 40%, var(--surface));
}
.officer-postc-median-label{
  position:absolute;
  top:0;
  left:0;
  font-size:11px;
  color:var(--muted);
}
.officer-postc-median{
  position:absolute;
  top:22px;
  left:var(--postc-median);
  height:22px;
  width:1px;
  background:var(--muted);
}
.officer-postc-marker{
  position:absolute;
  top:21px;
  left:var(--postc-marker);
  height:24px;
  width:4px;
  border-radius:2px;
  transform:translateX(-50%);
  background:var(--accent);
}
.officer-postc-scale{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
  font-size:11px;
  color:var(--muted);
}
.officer-postc-context{
  margin:8px 0 0;
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
}
.officer-postc-method{ margin-top:12px; }
.officer-postc-method summary{ font-size:12px; font-weight:600; color:var(--accent-strong); cursor:pointer; }
.officer-incident-mix{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.officer-incident-mix-heading{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; }
.officer-incident-mix-heading strong{ font-weight:600; }
.officer-incident-mix-heading>span{ color:var(--muted); font-size:11px; }
.officer-incident-mix-period{ margin:8px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.officer-incident-donut{ position:relative; width:210px; max-width:100%; margin:18px auto; }
.officer-incident-donut>svg{ display:block; width:100%; height:auto; overflow:visible; }
.officer-incident-slice{ stroke:var(--incident-slice-color); }
.officer-incident-color-1{ --incident-slice-color:var(--accent); }
.officer-incident-color-2{ --incident-slice-color:#4f6f52; }
.officer-incident-color-3{ --incident-slice-color:#a96a1c; }
.officer-incident-color-4{ --incident-slice-color:#8158a1; }
.officer-incident-color-5{ --incident-slice-color:#6f93a8; }
.officer-incident-color-6{ --incident-slice-color:#8b969e; }
.officer-incident-donut-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.officer-incident-donut-center strong{ font-family:"Source Serif 4", Georgia, serif; font-size:26px; line-height:1.2; font-weight:600; }
.officer-incident-donut-center>span{ margin-top:4px; font-size:12px; color:var(--muted); }
.officer-incident-legend{ display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.officer-incident-legend li{ display:grid; grid-template-columns:8px minmax(0,1fr) 34px 40px; align-items:center; gap:7px; font-size:12px; line-height:1.4; }
.officer-incident-key{ width:8px; height:8px; border-radius:50%; background:var(--incident-slice-color); }
.officer-incident-type{ overflow-wrap:anywhere; }
.officer-incident-legend strong{ text-align:right; font-weight:500; font-variant-numeric:tabular-nums; }
.officer-incident-share{ color:var(--muted); text-align:right; font-size:11px; font-variant-numeric:tabular-nums; }
.officer-incident-mix-note{ margin:14px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.officer-incident-mix-method{ margin-top:12px; }
.officer-incident-mix-method summary{ font-size:12px; font-weight:600; color:var(--accent-strong); cursor:pointer; }
.officer-kpi-note{ display:block; margin-top:6px; color:var(--muted); font-size:11px; line-height:1.4; }
.officer-kpi .officer-arrest-quotient-high{ color:var(--bad); }
.officer-arrest-comparison{
  --arrest-comparison-color:var(--accent);
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.officer-arrest-comparison.is-above-baseline{ --arrest-comparison-color:var(--bad); }
.officer-arrest-heading{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; }
.officer-arrest-heading strong{ font-weight:600; }
.officer-arrest-context{ margin:8px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.officer-arrest-delta{ margin:10px 0 0; font-size:13px; font-weight:600; color:var(--arrest-comparison-color); }
.officer-arrest-ribbon{ position:relative; margin:20px 3px 18px; padding-top:26px; }
.officer-arrest-baseline-label{ position:absolute; top:0; left:0; color:var(--muted); font-size:11px; }
.officer-arrest-track{
  height:14px;
  border-radius:5px;
  overflow:hidden;
  background:repeating-linear-gradient(to right,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) 0,
    color-mix(in srgb, var(--muted) 20%, var(--surface)) calc(10% - 2px),
    transparent calc(10% - 2px), transparent 10%);
}
.officer-arrest-fill{ height:100%; width:var(--arrest-marker); background:color-mix(in srgb, var(--arrest-comparison-color) 40%, var(--surface)); }
.officer-arrest-baseline{ position:absolute; top:22px; left:var(--arrest-baseline); width:1px; height:22px; background:var(--muted); }
.officer-arrest-marker{ position:absolute; top:21px; left:var(--arrest-marker); width:4px; height:24px; border-radius:2px; transform:translateX(-50%); background:var(--arrest-comparison-color); }
.officer-arrest-scale{ display:flex; justify-content:space-between; gap:8px; margin-top:10px; color:var(--muted); font-size:11px; }
.officer-arrest-method{ margin-top:12px; }
.officer-arrest-method summary{ font-size:12px; font-weight:600; color:var(--accent-strong); cursor:pointer; }

.officer-attribution{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
