.cert-rubric {
  margin: 0 0 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.cert-rubric summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.cert-rubric ul {
  margin: 0;
  padding: 0 18px 16px 36px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cert-board {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cert-person {
  padding: 18px 18px 22px;
  background: #f7fbfa;
  border-right: 1px solid var(--line);
}

.cert-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cert-name h2,
.cert-person h3,
.cert-review h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.cert-person h3,
.cert-review h3 {
  margin: 16px 0 10px;
  font-size: 15px;
}

.cert-state {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f1;
  color: #5c6562;
  font-size: 12px;
  line-height: 18px;
}

.cert-state.is-pending { background: #fff4e4; color: #c47d0e; }
.cert-state.is-certified { background: #e7f7f4; color: #128f8c; }
.cert-state.is-rejected { background: #fdecec; color: #b42318; }

.cert-meta,
.cert-intro,
.cert-hint,
.cert-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cert-intro { color: var(--ink); }

.cert-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.cert-shot {
  display: block;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: #e7f3f1;
  border: 1px solid var(--line);
}

.cert-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cert-review { padding: 8px 18px 18px; }

.cert-creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cert-check,
.cert-dir label,
.cert-family-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.cert-families {
  display: grid;
  gap: 10px;
}

.cert-family {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.cert-family-name span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-family-name small { color: var(--muted); }

.cert-dirs { margin-top: 10px; }

.cert-family.is-off .cert-dirs { display: none; }

.cert-dir {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 72px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #f0f4f3;
  font-size: 13px;
}

.cert-dir em {
  margin-left: 6px;
  color: #c47d0e;
  font-style: normal;
  font-size: 12px;
}

.cert-foot {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  align-items: end;
}

.cert-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 980px) {
  .cert-board { grid-template-columns: 1fr; }
  .cert-person { border-right: 0; border-bottom: 1px solid var(--line); }
  .cert-creds { grid-template-columns: 1fr 1fr; }
}
