/* Miami-Dade Sheriff's Office - pieces the shared styles don't have:
   the dispatch bar, the chain of command, and card eligibility notes. */

/* -- headings: the condensed face reads better with a little air ------------------------ */

h1,
h2,
h3 {
  letter-spacing: 0.01em;
}

.hero h1 {
  line-height: 0.92;
}

.hero h1 #hero-title {
  color: var(--ink);
}

/* -- dispatch bar ---------------------------------------------------------------------- */

.dispatch {
  background: var(--ground-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dispatch-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 36px;
  padding-block: 8px;
}

.dispatch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.dispatch-sep {
  color: rgba(232, 240, 234, 0.2);
}

.dispatch #dispatch-open:empty,
.dispatch #dispatch-open:empty + .dispatch-sep {
  display: none;
}

.beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6);
  animation: beacon 2.4s ease-out infinite;
}

@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0); }
}

/* -- application cards ------------------------------------------------------------------ */

.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p.card-note:not(.tag):not(.tagline):not(.status) {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 14px;
}

.status.closed {
  color: var(--muted);
}

.status.closed .dot {
  background: var(--muted);
  box-shadow: none;
}

/* -- chain of command -------------------------------------------------------------------- */

.coc {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
}

.coc-tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.coc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent 60%);
}

.coc-head h3 {
  font-size: 22px;
  text-transform: uppercase;
}

.coc-block {
  color: var(--muted);
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

.coc-post {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
}

.coc-post + .coc-post {
  border-top: 1px solid var(--line);
}

.coc-callsign {
  color: var(--gold);
  font: 700 14px/1 var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.coc-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.coc-rank {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.coc-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coc-tag.is-filled {
  border-color: rgba(46, 158, 91, 0.45);
  background: rgba(46, 158, 91, 0.14);
  color: #7fd3a1;
}

.coc-post.is-vacant .coc-who {
  color: var(--muted);
  font-weight: 400;
}

.coc-post.is-vacant .coc-callsign {
  color: rgba(212, 175, 55, 0.55);
}

/* -- small screens ---------------------------------------------------------------------- */

@media (max-width: 720px) {
  .dispatch-inner > span:nth-child(n + 2):not(#dispatch-serving) {
    display: none;
  }

  .dispatch-inner > #dispatch-serving::before {
    content: "· ";
  }

  .coc-post {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 12px 16px;
  }

  .coc-callsign {
    grid-column: 1 / -1;
  }

  .coc-head {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beacon {
    animation: none;
  }
}
