.badge.source-supported,
.badge.source-consulted {
  color: #785b20;
  background: #f6e9c9;
}

.segments.accessibility-priority { grid-template-columns: repeat(3, 1fr); }
.segments.voucher-status { grid-template-columns: repeat(4, 1fr); }
.segments.accessibility-priority > input,
.segments.voucher-status > input {
  width: 1px;
  min-height: 1px;
}

.conditional-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--rule);
  background: #f7f9f6;
}

.conditional-panel[hidden] { display: none; }

.conditional-panel > p {
  margin: 0 0 16px;
  color: #53605c;
  font-size: .82rem;
  line-height: 1.5;
}

.option-grid,
.voucher-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.option-grid .check {
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #fff;
}

.voucher-fields label span { color: #78827f; font-weight: 400; text-transform: none; }
.utility-check { margin-top: 16px; }

.match-explanation {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 3px solid #d8a94c;
  background: #faf6ec;
}

.match-explanation.verified-match,
.match-explanation.potential-fit,
.badge.strong-match {
  border-left-color: #2e7458;
  color: #215942;
  background: #e6f2eb;
}

.match-explanation.conflicts,
.match-explanation.above-known-standard,
.badge.near-match {
  border-left-color: #a63d2f;
  color: #8d3025;
  background: #f8e7e3;
}

.badge.possible-match {
  color: #785b20;
  background: #f6e9c9;
}

.result-section.near-matches,
.result-section.possible-matches {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.section-note {
  max-width: 850px;
  color: #53605c;
  font-size: .84rem;
  line-height: 1.55;
}

.listing .evidence {
  padding: 12px;
  background: #f5f7f4;
}

.listing .source-date { color: #707b77; }

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.result-section { margin-top: 36px; }

.other-results {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.methodology {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: #fff;
}

.methodology summary {
  font-weight: 700;
  cursor: pointer;
}

.methodology p {
  color: #53605c;
  font-size: .82rem;
  line-height: 1.55;
}

.report-counts {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin: 22px 0;
  border: 1px solid var(--rule);
  background: #fff;
}

.report-counts > div {
  min-width: 0;
  padding: 12px 9px;
  border-right: 1px solid var(--rule);
  text-align: center;
}

.report-counts > div:last-child { border-right: 0; }

.report-counts strong,
.report-counts span { display: block; }

.report-counts strong {
  color: var(--forest);
  font: 800 1.25rem "Playfair Display", serif;
}

.report-counts span {
  margin-top: 3px;
  color: #68726f;
  font-size: .62rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.directory-section {
  padding: 24px;
  border: 1px solid var(--rule);
  background: #f7f9f6;
}

.directory-section .section-heading {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.directory-section .section-heading h3,
.directory-card h4 { margin: 4px 0 0; }

.directory-section .section-heading > p {
  margin: 0;
  color: #53605c;
  font-size: .86rem;
  line-height: 1.55;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--rule);
  background: #fff;
}

.directory-card p {
  flex: 1;
  margin: 0;
  color: #53605c;
  font-size: .82rem;
  line-height: 1.5;
}

.directory-status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.directory-status.consulted {
  color: #215942;
  background: #dcefe5;
}

.directory-status.planned {
  color: #6e5b2b;
  background: #f4ead1;
}

.directory-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: .76rem;
}

.directory-foot span { color: #707b77; }
.directory-foot a { font-weight: 700; }

@media (max-width: 800px) {
  .report-counts { grid-template-columns: repeat(4, 1fr); }
  .report-counts > div:nth-child(4) { border-right: 0; }
  .report-counts > div:nth-child(-n + 4) { border-bottom: 1px solid var(--rule); }
  .directory-section .section-heading { grid-template-columns: 1fr; }
  .segments.voucher-status { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .report-counts { grid-template-columns: repeat(2, 1fr); }
  .report-counts > div:nth-child(2n) { border-right: 0; }
  .report-counts > div:nth-child(-n + 6) { border-bottom: 1px solid var(--rule); }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-section { padding: 18px; }
  .option-grid,
  .voucher-fields,
  .segments.accessibility-priority { grid-template-columns: 1fr; }
}
