/* Graph Search plugin styles. Namespaced under #gs-* to avoid clashing with Skosmos. */

#gs-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #00857d; /* SAGE teal-ish; restyle to brand as needed */
  border: none;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
#gs-launcher:hover { background: #006b64; }

#gs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  background: rgba(0, 0, 0, 0.45);
}

#gs-panel {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  padding: 1.25rem 1.5rem 1.5rem;
}

#gs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
#gs-header .gs-title { font-size: 1.2rem; font-weight: 700; }
.gs-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.gs-close:hover { color: #000; }

.gs-intro { color: #555; font-size: 0.9rem; margin-bottom: 1rem; }

.gs-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.gs-word { color: #333; }

.gs-select,
.gs-input {
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fafafa;
}
.gs-input { min-width: 14rem; }
.gs-year { min-width: 6rem; width: 6rem; }

.gs-anchor-wrap { position: relative; display: inline-block; }
.gs-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #bbb;
  border-top: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.gs-menu-item { padding: 0.4rem 0.6rem; cursor: pointer; }
.gs-menu-item:hover { background: #eef6f5; }

.gs-run {
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  color: #fff;
  background: #00857d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.gs-run:hover { background: #006b64; }

#gs-results { margin-top: 1.1rem; }
.gs-summary { margin-bottom: 0.5rem; }
.gs-loading, .gs-empty { color: #666; font-style: italic; }
.gs-error { color: #b00020; }

.gs-list { list-style: none; padding: 0; margin: 0; columns: 2; }
@media (max-width: 560px) { .gs-list { columns: 1; } }
.gs-result { padding: 0.15rem 0; break-inside: avoid; }
.gs-result-link { text-decoration: none; }
.gs-result-link:hover { text-decoration: underline; }
.gs-date { color: #888; font-size: 0.85em; }

.gs-sparql { margin-top: 1rem; }
.gs-sparql summary { cursor: pointer; color: #00857d; font-size: 0.85rem; }
.gs-sparql pre {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #f4f4f4;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}
