/* Per-company pages (/companies/*.html).
 *
 * The one job this stylesheet has beyond looking tidy: make the state record and
 * the business-supplied block read as two different KINDS of thing, at a glance,
 * before anyone reads a word. The record is a solid card with the brand's navy
 * rule down the side; supplied information is flatter, dashed, and visibly
 * quieter. If those two ever start looking alike, the page has stopped being
 * trustworthy, whatever the wording says.
 *
 * Status badges reuse .dir-flag from style.css so a company reads identically
 * here, in the directory and in the homepage lookup.
 */

.container--narrow { max-width: 760px; }

/* ── breadcrumb ─────────────────────────────────────────────────────────── */

.crumbs {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.co-legal {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ── layer 1: the state record ──────────────────────────────────────────── */

.co-record {
  margin: 20px 0 28px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius);
}

.co-record__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.co-record__top h2 {
  margin: 0;
  font-size: 17px;
  color: var(--navy);
}

.co-record__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 14px;
}

.co-record__grid dt {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.co-record__grid dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.co-record__grid .is-bad { color: #b42318; }
.co-record__grid .is-warn { color: #b54708; }

.co-verdict {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.co-source {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── what the licence covers ────────────────────────────────────────────── */

.co-cats {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.co-cats li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.co-cats li:last-child { border-bottom: 0; }
.co-cats strong { color: var(--navy); }

/* ── layer 2: supplied by the business, and obviously so ────────────────── */

.co-supplied {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px dashed var(--gray);
  border-radius: var(--radius);
}

.co-supplied h2 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--muted);          /* deliberately not navy: this is not our claim */
}

.co-supplied__note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.co-supplied__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 15px;
}

.co-supplied__list dt {
  font-weight: 700;
  color: var(--muted);
  font-size: 13.5px;
}

.co-supplied__list dd { margin: 0; color: var(--text); }

.co-supplied__desc {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
}

.co-supplied--empty p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.co-claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.co-claim strong { color: var(--navy); }

/* ── next steps ─────────────────────────────────────────────────────────── */

.co-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

@media (max-width: 560px) {
  .co-record,
  .co-supplied { padding: 15px; }

  .co-record__grid { grid-template-columns: 1fr; gap: 10px; }

  .co-supplied__list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .co-supplied__list dd { margin-bottom: 10px; }

  .co-next .btn { flex: 1 1 100%; text-align: center; }
}
