:root {
  --bg: var(--rm-bg, #fafafa);
  --card: var(--rm-surface, #fff);
  --text: var(--rm-text, rgba(0, 0, 0, 0.87));
  --muted: var(--rm-text-muted, rgba(0, 0, 0, 0.62));
  --accent: var(--rm-primary, #4051b5);
  --banner: #fff3cd;
  --border: var(--rm-border, rgba(0, 0, 0, 0.12));
}
* { box-sizing: border-box; }
body {
  margin: 0;
  line-height: 1.6;
}
.content { max-width: 61rem; margin: 0 auto; padding: 1.75rem 1rem 3rem; }
/* Connection map: approach full viewport width */
body:has(.map-page) .content,
body:has(.map-page) .rm-content {
  max-width: min(96vw, 92rem);
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.search-form input[type="search"],
.search-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
button.btn-secondary {
  background: #e8ecf1;
  color: var(--text);
}
button.btn-llm {
  background: #059669;
}
.report-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}
.report-form input[type="search"] {
  width: 100%;
}
.llm-status {
  margin: 0.75rem 0;
}
.badge.llm-ready {
  background: #d1fae5;
  color: #065f46;
}
.hint { color: var(--muted); font-size: 0.95rem; }
.error { color: #b00020; }
.cards { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.05);
  padding: 1rem;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #e8ecf1;
  margin-right: 0.35rem;
}
.badge.type { background: #dbeafe; }
.badge.conf-high { background: #d1fae5; }
.badge.conf-medium { background: #fef3c7; }
.badge.conf-low { background: #fee2e2; }
.score { float: right; color: var(--muted); font-size: 0.85rem; }
.id { font-family: monospace; color: var(--muted); }
.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  min-height: 70vh;
}
.map-layout--wide {
  width: 100%;
}
.map-selection {
  min-height: 1.6rem;
}
.map-selection-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}
.map-selection-title {
  font-weight: 700;
  color: var(--text);
}
.map-selection-kind {
  color: var(--muted);
  font-weight: 500;
}
.map-selection-kind::before {
  content: "·";
  margin-right: 0.65rem;
  color: var(--border);
}
.map-selection-fns {
  letter-spacing: 0.02em;
}
.map-selection-empty {
  margin: 0;
}
.map-footnotes-below {
  margin-top: 0.25rem;
}
.map-footnotes-below .map-references {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.map-search-form input[type="text"] {
  width: 10rem;
}
.map-search-form select {
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.map-clear-entity {
  align-self: center;
  font-size: 0.85rem;
  white-space: nowrap;
}
.map-note {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
}
.cy-wrap {
  position: relative;
  min-height: calc(100vh - 14rem);
}
.cy-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  height: calc(100vh - 14rem);
  min-height: 520px;
}
.map-legend-panel {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 10;
  max-width: min(420px, calc(100% - 16px));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.map-legend-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}
.map-legend-panel[open] summary {
  margin-bottom: 0.35rem;
}
.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.legend-inactive {
  opacity: 0.3;
}
.leg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.leg-dot-resource { background: #2563eb; }
.leg-dot-person { background: #059669; }
.leg-dot-grant { background: #d97706; }
.leg-dot-course { background: #7c3aed; }
.leg-dot-publication { background: #db2777; }
.leg-line {
  display: inline-block;
  width: 22px;
  height: 0;
  flex-shrink: 0;
  border: none;
  border-top-width: 3px;
  border-top-style: solid;
}
.leg-dot-output { background: #0891b2; }
.leg-dot-unit { background: #475569; }
.map-readme {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  max-width: 52rem;
}
.leg-line-ownership { border-top-color: #0f766e; border-top-width: 3px; }
.leg-line-participation { border-top-color: #2563eb; border-top-width: 2px; }
.leg-line-participation-director { border-top-color: #1e40af; border-top-style: dashed; border-top-width: 2px; }
.leg-line-participation-grant { border-top-color: #d97706; border-top-width: 2px; }
.leg-line-participation-scholarly { border-top-color: #db2777; border-top-width: 2px; }
.leg-line-peer {
  border-top-color: #64748b;
  border-top-style: dotted;
  border-top-width: 2px;
}
.leg-line-direct { border-top-color: #1e40af; }
.leg-line-affiliated { border-top-color: #64748b; border-top-style: dashed; border-top-width: 2px; }
.leg-line-collaborates { border-top-color: #7c3aed; border-top-style: dotted; border-top-width: 2px; }
.leg-line-grant { border-top-color: #d97706; }
.leg-line-course { border-top-color: #7c3aed; }
.leg-line-admin { border-top-color: #9ca3af; border-top-style: dotted; border-top-width: 2px; }
.leg-line-contact { border-top-color: #64748b; border-top-width: 2px; }
.leg-line-scholarly { border-top-color: #db2777; border-top-width: 2px; }
.node-panel {
  display: none;
}
.edge-list {
  margin: 0.25rem 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
}
.map-fn-ref a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75em;
}
.map-fn-ref {
  white-space: nowrap;
  margin-left: 0.1em;
}
.map-references {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.map-references h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.map-footnotes {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.map-footnotes li {
  margin-bottom: 0.35rem;
}
.map-footnotes .fn-num {
  font-weight: 600;
  margin-right: 0.25rem;
}
.report-raw-md {
  margin-top: 1rem;
}
.report-raw-md summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.report-main {
  margin-bottom: 0.5rem;
}
.map-empty {
  padding: 2rem;
  text-align: center;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}
.llm-narrative {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.report-llm-stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #14532d;
}
.report-llm-stats-item strong {
  font-weight: 600;
  margin-right: 0.25rem;
}
.report-llm-stats-sub {
  color: #166534;
  font-size: 0.88rem;
  margin-left: 0.15rem;
}
.report-llm-stats-sep {
  color: #4ade80;
  font-weight: 600;
}
.llm-narrative h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.llm-disclaimer {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.report-record h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.markdown-body {
  font-size: 1rem;
  line-height: 1.6;
}
.markdown-body h3,
.markdown-body h4 {
  margin: 1.25rem 0 0.5rem;
  line-height: 1.3;
}
.markdown-body h3:first-child,
.markdown-body h4:first-child {
  margin-top: 0;
}
.markdown-body p {
  margin: 0.75rem 0;
}
.markdown-body ul,
.markdown-body ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.5rem;
}
.markdown-body li {
  margin: 0.35rem 0;
}
.markdown-body a {
  color: var(--accent);
  text-decoration: none;
}
.markdown-body a:hover {
  text-decoration: underline;
}
.markdown-body strong {
  font-weight: 600;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}
.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.markdown-body th {
  background: #f1f5f9;
  font-weight: 600;
}
.markdown-body .footnote {
  font-size: 0.88rem;
  color: var(--muted);
}
.markdown-body .footnote-ref a {
  text-decoration: none;
  font-weight: 600;
}
.report-provenance {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.report-provenance summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
}
.report-provenance-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0.5rem;
}
.report-provenance-dl dt {
  font-weight: 600;
  color: var(--muted);
}
.report-provenance-dl dd {
  margin: 0;
}
.report-md {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  white-space: pre-wrap;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0;
}
.report-llm-progress {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem 1rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  color: #1e3a5f;
}
.report-llm-progress.is-active {
  animation: report-llm-fade-in 0.2s ease-out;
}
.report-llm-progress-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.report-llm-progress-detail {
  margin: 0.55rem 0 0.75rem;
  font-size: 0.92rem;
  color: #334155;
}
.report-llm-progress-error {
  margin: 0 0 0.75rem;
}
.report-page-loading {
  opacity: 0.55;
  pointer-events: none;
}
.report-llm-elapsed {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: #475569;
}
.report-llm-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #93c5fd;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: report-llm-spin 0.8s linear infinite;
  flex-shrink: 0;
}
.report-llm-progress-track {
  height: 4px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
}
.report-llm-progress-bar {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  animation: report-llm-indeterminate 1.4s ease-in-out infinite;
}
@keyframes report-llm-spin {
  to { transform: rotate(360deg); }
}
@keyframes report-llm-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@keyframes report-llm-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.stats { border-collapse: collapse; width: 100%; max-width: 600px; }
.stats th, .stats td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.edge-evidence {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
}
.chain-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.chain-toggle {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}
.chain-panel {
  margin-top: 0.75rem;
}
.chain-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
.chain-step {
  margin: 0.5rem 0;
}
.chain-step code {
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .cy-wrap {
    min-height: calc(100vh - 16rem);
  }
  .cy-container {
    height: calc(100vh - 16rem);
    min-height: 360px;
  }
  .map-selection-line {
    font-size: 0.98rem;
  }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.35rem;
}
.filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.filter-label select {
  min-width: 10rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  font-weight: 400;
}
.card-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0.5rem;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.editor-meta {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.editor-meta summary {
  cursor: pointer;
  font-weight: 600;
}
.preview-brand {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.preview-dev-link {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.rm-dev-view-btn {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: #5c4a00;
  background: #ffe08a;
  border: 1px solid #e0c35a;
  border-radius: 4px;
}
.rm-dev-view-btn:hover {
  background: #ffd666;
  color: #4a3c00;
  text-decoration: none;
}
.rm-standard-view .content {
  padding-top: 1.5rem;
}
.standard-escape {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.standard-escape a {
  margin-right: 0.75rem;
}

.preview-jobs,
.preview-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
  list-style: none;
  padding: 0;
}
@media (max-width: 52rem) {
  .preview-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 32rem) {
  .preview-goals {
    grid-template-columns: 1fr;
  }
}
.preview-goals > li {
  margin: 0;
  padding: 0;
}
.preview-job,
.preview-goal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem 2rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
}
.preview-job:hover,
.preview-goal:hover {
  border-color: var(--accent);
}
.preview-goal:focus-visible,
.preview-job:focus-visible,
.pathway-btn:focus-visible,
.pathway-btn-secondary:focus-visible,
a:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 2px;
}
.preview-goal-title,
.preview-job strong {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
}
.preview-goal-desc,
.preview-job span {
  color: var(--muted);
  font-size: 0.9rem;
}
.preview-goal-cue {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}
.standard-escape-top {
  margin: 0 0 0.75rem;
  padding-top: 0;
  border-top: none;
}
.search-q-label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.result-group {
  margin: 1.25rem 0 1.75rem;
}
.result-group-title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--text);
}
.result-group-count {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.result-count {
  margin: 0.5rem 0 0.75rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a.pathway-btn {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  background: #4051b5;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid #4051b5;
  line-height: 1.2;
}
a.pathway-btn:hover {
  background: #3645a0;
  color: #ffffff !important;
  text-decoration: none;
}
a.pathway-btn-secondary {
  background: #ffffff;
  color: #4051b5 !important;
  border: 1px solid #4051b5;
}
a.pathway-btn-secondary:hover {
  background: #eef0fb;
  color: #4051b5 !important;
}
.pathway-hubs a {
  color: var(--accent);
  font-weight: 500;
}
.preview-secondary {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.preview-secondary summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.preview-secondary-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.preview-secondary-list a {
  color: var(--accent);
}
.card-facts {
  margin: 0.65rem 0 0.35rem;
  display: grid;
  gap: 0.45rem;
}
.card-facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
.card-facts dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.card-facts dd {
  margin: 0;
  color: var(--text);
}
.badge.access-green {
  background: #d1fae5;
  color: #065f46;
}
.badge.access-yellow {
  background: #fef3c7;
  color: #92400e;
}
.badge.access-red {
  background: #fee2e2;
  color: #991b1b;
}
.badge.access-unknown {
  background: #e5e7eb;
  color: #374151;
}
.badge.verify-confirmed,
.badge.verify-verified_catalog_course {
  background: #dbeafe;
  color: #1e3a8a;
}
.badge.verify-likely {
  background: #e0e7ff;
  color: #3730a3;
}
.badge.verify-needs_review {
  background: #ffedd5;
  color: #9a3412;
}
.badge.verify-archived {
  background: #f3f4f6;
  color: #4b5563;
}
.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: auto;
  font-weight: 500;
  padding-top: 1.4rem;
}
.filter-checkbox input {
  width: auto;
  margin: 0;
}
.zero-result-terms {
  margin-top: 0.35rem;
}
@media (max-width: 40rem) {
  .card-facts > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
.preview-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.preview-search {
  margin: 1rem 0;
}
.pathway-strip {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.pathway-strip-label {
  margin-right: 0.35rem;
  color: var(--text, #1a1a1a);
  font-weight: 500;
}
.pathway-strip a {
  color: var(--accent);
  text-decoration: none;
}
.pathway-strip a:hover {
  text-decoration: underline;
}
.pathway-strip-sep {
  margin: 0 0.35rem;
  color: var(--border);
}
.pathway-strip-all {
  font-weight: 500;
}
.pathway-card {
  margin: 1.25rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.pathway-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--accent);
}
.pathway-card p {
  margin: 0 0 0.65rem;
  color: var(--text, #1a1a1a);
}
.pathway-hubs {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.pathway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pathway-btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.pathway-btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}
.pathway-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.pathway-btn-secondary:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
}
.pathway-footnote {
  margin-top: 1.75rem;
}
.result-group-subtitle {
  font-size: 1rem;
  margin: 0.85rem 0 0.45rem;
  color: var(--muted);
  font-weight: 500;
}
.result-group-loose {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
details.result-group-loose > summary {
  cursor: pointer;
  list-style: none;
}
details.result-group-loose > summary::-webkit-details-marker {
  display: none;
}
details.result-group-loose > summary::before {
  content: "▸ ";
  color: var(--muted);
}
details.result-group-loose[open] > summary::before {
  content: "▾ ";
}

.catalog-local-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e6c200;
  border-radius: 6px;
  background: #fffbea;
  font-size: 0.92rem;
  color: #4a4000;
}
.catalog-local-hint code {
  font-size: 0.88em;
}

.pager-row {
  margin: 1.25rem 0 0;
  text-align: center;
}
.pager-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.3rem;
}
.pager-btn:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.connection-list {
  margin: 1.25rem 0;
}
.connection-list-heading {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.connection-group {
  margin-bottom: 1rem;
}
.connection-group-title {
  font-size: 1rem;
  margin: 0 0 0.45rem;
  color: var(--muted);
}
.connection-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.connection-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.connection-item-head {
  margin: 0 0 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.connection-rel {
  font-size: 0.88rem;
  color: var(--muted);
}
.connection-evidence {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.connection-evidence-wrap > summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--accent);
}
.connection-item-links {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}
.map-graph-panel {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.75rem;
}
.map-graph-panel > summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.report-technical {
  margin-top: 1rem;
}

.rm-public-footer {
  margin: 2rem auto 1.5rem;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid var(--border);
  max-width: 52rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.92rem;
}
.rm-public-footer a { color: var(--muted); }
.preview-utility {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
}

.search-intent-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent, #4051b5);
  background: color-mix(in srgb, var(--accent, #4051b5) 8%, transparent);
}
.search-intent-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.search-intent-summary {
  margin: 0 0 0.65rem;
  max-width: 42rem;
}
.search-intent-links {
  margin: 0;
  padding-left: 1.2rem;
}
.search-intent-links li {
  margin: 0.2rem 0;
}

.searched-for {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.searched-for-label {
  font-weight: 600;
  margin-right: 0.35rem;
  color: var(--text, inherit);
}
.searched-for-chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text, inherit);
}
.searched-for-sep {
  margin: 0 0.2rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.5rem 0.85rem;
  background: #fff;
  color: #1a237e;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.skip-link:focus {
  left: 0.75rem;
}
