.robot-knowledge-panel {
  margin-top: 28px;
}

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

.robot-knowledge-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ink);
}

.robot-knowledge-heading h3 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.robot-knowledge-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.robot-knowledge-heading output {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.robot-knowledge-notice {
  margin: 18px 0;
}

.robot-knowledge-loading,
.robot-knowledge-error,
.robot-knowledge-empty {
  margin: 20px 0;
}

.robot-knowledge-loading {
  padding: 14px 16px;
  color: var(--muted);
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.38);
}

.robot-knowledge-error p {
  margin: 0;
}

.robot-knowledge-error button {
  margin-top: 12px;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.robot-knowledge-error button:hover,
.robot-knowledge-error button:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
  outline: 2px solid transparent;
}

.robot-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.robot-knowledge-card {
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  padding: 26px 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.robot-knowledge-card:nth-child(3n + 1) {
  background: rgba(255, 255, 255, 0.44);
}

.robot-knowledge-card .card-code {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.robot-knowledge-card h4 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.robot-knowledge-translation-status {
  align-self: flex-start;
  margin: -2px 0 12px;
  padding: 4px 7px;
  border: 1px solid rgba(174, 93, 0, 0.45);
  color: #895000;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.robot-knowledge-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.robot-knowledge-context span::before {
  content: "·";
  margin-right: 12px;
  color: var(--blue);
}

.robot-knowledge-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.robot-knowledge-no-summary {
  font-style: italic;
}

.robot-knowledge-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.robot-knowledge-facts li {
  min-width: 0;
}

.robot-knowledge-fact-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.robot-knowledge-facts strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.robot-knowledge-rights {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.robot-knowledge-rights.rights-verified_open_with_attribution {
  border-color: rgba(57, 145, 0, 0.45);
  color: #2b7000;
}

.robot-knowledge-rights.rights-rights_review_required,
.robot-knowledge-rights.rights-metadata_only {
  border-color: rgba(174, 93, 0, 0.45);
  color: #895000;
}

.robot-knowledge-license {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.robot-knowledge-license summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.robot-knowledge-license p {
  margin: 8px 0 0;
}

.robot-knowledge-source-link,
.robot-knowledge-secondary-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.robot-knowledge-secondary-link {
  margin-top: 8px;
  padding-top: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.robot-knowledge-source-link:hover,
.robot-knowledge-secondary-link:hover,
.robot-knowledge-source-link:focus-visible,
.robot-knowledge-secondary-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.robot-knowledge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.robot-knowledge-meta span,
.robot-knowledge-meta time {
  overflow-wrap: anywhere;
}

.robot-knowledge-pagination {
  margin-top: 20px;
}

@media (max-width: 1040px) {
  .robot-knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .robot-knowledge-card:nth-child(3n + 1) {
    background: rgba(255, 255, 255, 0.28);
  }

  .robot-knowledge-card:nth-child(2n + 1) {
    background: rgba(255, 255, 255, 0.44);
  }
}

@media (max-width: 680px) {
  .robot-knowledge-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .robot-knowledge-grid {
    grid-template-columns: 1fr;
  }

  .robot-knowledge-card,
  .robot-knowledge-card:nth-child(2n + 1),
  .robot-knowledge-card:nth-child(3n + 1) {
    min-height: 0;
    background: rgba(255, 255, 255, 0.36);
  }
}
