/* Shared owner: taxon context + related-view continuation panel.
   GIS and Sources & evidence provide different facts but the same information
   hierarchy, so typography/chrome belongs here rather than to either surface. */
.ka-subject-context {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: var(--ka-space-24);
  align-items: center;
  padding: var(--ka-space-20);
  margin-bottom: var(--ka-space-20);
}
.ka-subject-context-summary {
  display: grid; gap: var(--ka-space-8);
  padding-left: var(--ka-space-24);
  border-left: 1px solid var(--ka-color-rule-hairline);
}
.ka-subject-context-title {
  margin: 0; font-family: var(--ka-font-latin-serif);
  font-size: var(--ka-text-section-title); font-weight: 700;
  line-height: var(--ka-line-section-title); color: var(--ka-color-ink-primary);
}
.ka-subject-context-copy {
  margin: 0; font-size: var(--ka-text-annotation);
  line-height: 1.5; color: var(--ka-color-ink-secondary);
}
.ka-subject-context-detail {
  margin: 0; font-size: var(--ka-text-data-label);
  line-height: 1.45; color: var(--ka-color-ink-quiet);
}
.ka-subject-context-related {
  display: grid; gap: var(--ka-space-8); margin-top: var(--ka-space-4);
}
.ka-subject-context-nav-label {
  font-family: var(--ka-font-mono); font-size: var(--ka-text-data-label);
  font-weight: 700; letter-spacing: var(--ka-track-data-label);
  text-transform: uppercase; color: var(--ka-color-ink-quiet);
}
.ka-subject-context-actions {
  display: flex; flex-wrap: wrap; gap: var(--ka-space-8);
}
.ka-subject-context-action {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: var(--ka-space-10); min-height: 40px;
  padding: var(--ka-space-8) var(--ka-space-12);
  border: 1px solid var(--ka-control-edge, var(--ka-color-rule-subtle));
  border-radius: var(--ka-radius-sm); background: var(--ka-color-paper-surface);
  box-shadow: var(--ka-control-press-inset); color: var(--ka-color-ink-primary);
  font-size: var(--ka-text-annotation); font-weight: 700; line-height: 1.15;
  text-decoration: none; white-space: nowrap;
}
.ka-subject-context-action:hover {
  border-color: var(--ka-control-edge-strong, var(--ka-color-rule-strong));
  background: var(--ka-color-paper-sunken); color: var(--ka-color-ink-primary);
}
.ka-subject-context-action:focus-visible {
  outline: 2px solid var(--ka-color-focus-ring); outline-offset: 2px;
}
@media (max-width: 900px) {
  .ka-subject-context { grid-template-columns: 1fr; }
  .ka-subject-context-summary {
    padding-left: 0; padding-top: var(--ka-space-16); border-left: 0;
    border-top: 1px solid var(--ka-color-rule-hairline);
  }
}
@media (max-width: 520px) {
  .ka-subject-context { padding: var(--ka-space-16); }
  .ka-subject-context-related { display: none; }
}
