/* External database link-outs + sequence profile blocks */
.ext-db-section {
  background: #fff;
  border: 1px solid rgb(244 244 245);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.dark .ext-db-section {
  background: rgb(24 24 27);
  border-color: rgb(39 39 42);
}
.ext-db-card {
  display: block;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(244 244 245);
  transition: border-color 0.15s, background 0.15s;
}
.dark .ext-db-card {
  border-color: rgb(39 39 42);
}
.ext-db-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgb(250 250 250);
}
.dark .ext-db-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgb(39 39 42 / 0.5);
}
.ext-db-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.ext-db-compact h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(113 113 122);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ext-db-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgb(244 244 245);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
.dark .ext-db-link {
  border-color: rgb(39 39 42);
}
.ext-db-link:last-of-type {
  border-bottom: none;
}
.ext-db-link span {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}
.ext-db-link small {
  font-size: 0.7rem;
  color: rgb(113 113 122);
  display: none;
}
@media (min-width: 480px) {
  .ext-db-link small { display: block; }
}
.ext-db-link:hover span {
  color: rgb(219 39 119);
}
.ext-db-link i {
  font-size: 0.65rem;
  color: rgb(161 161 170);
}
.ext-db-attrib {
  font-size: 0.65rem;
  color: rgb(161 161 170);
  margin-top: 0.75rem;
  line-height: 1.4;
}
.ext-db-attrib a {
  color: rgb(219 39 119);
  text-decoration: none;
}
.ext-db-attrib a:hover {
  text-decoration: underline;
}

.ext-seq-section {
  background: #fff;
  border: 1px solid rgb(244 244 245);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.dark .ext-seq-section {
  background: rgb(24 24 27);
  border-color: rgb(39 39 42);
}
.ext-seq-block {
  margin-bottom: 1rem;
}
.ext-seq-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  word-break: break-all;
  padding: 0.75rem 1rem;
  background: rgb(250 250 250);
  border-radius: 0.5rem;
  border: 1px solid rgb(244 244 245);
}
.dark .ext-seq-code {
  background: rgb(39 39 42 / 0.5);
  border-color: rgb(63 63 70);
}
.ext-seq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .ext-seq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ext-seq-prop {
  background: rgb(250 250 250);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}
.dark .ext-seq-prop {
  background: rgb(39 39 42 / 0.5);
}
.ext-seq-prop span {
  display: block;
  color: rgb(113 113 122);
  margin-bottom: 0.15rem;
}
.ext-seq-prop strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgb(24 24 27);
}
.dark .ext-seq-prop strong {
  color: rgb(244 244 245);
}

/* Site search overlay */
.site-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
.site-search-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.site-search-panel {
  width: 100%;
  max-width: 36rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgb(228 228 231);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  overflow: hidden;
}
.dark .site-search-panel {
  background: rgb(24 24 27);
  border-color: rgb(63 63 70);
}
.site-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(244 244 245);
}
.dark .site-search-input-wrap {
  border-color: rgb(39 39 42);
}
.site-search-input-wrap i {
  color: rgb(161 161 170);
}
.site-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: inherit;
}
.site-search-kbd {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid rgb(228 228 231);
  color: rgb(113 113 122);
  font-family: inherit;
}
.dark .site-search-kbd {
  border-color: rgb(63 63 70);
}
.site-search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem;
}
.site-search-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(161 161 170);
  padding: 0.5rem 0.75rem 0.25rem;
}
.site-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.site-search-item:hover,
.site-search-item.is-active {
  background: rgb(253 242 248);
}
.dark .site-search-item:hover,
.dark .site-search-item.is-active {
  background: rgb(190 24 93 / 0.15);
}
.site-search-item-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.site-search-item-body {
  min-width: 0;
  flex: 1;
}
.site-search-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-search-item-meta {
  font-size: 0.75rem;
  color: rgb(113 113 122);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-search-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgb(113 113 122);
  font-size: 0.9rem;
}
.site-search-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgb(244 244 245);
  font-size: 0.7rem;
  color: rgb(161 161 170);
  display: flex;
  justify-content: space-between;
}
.dark .site-search-footer {
  border-color: rgb(39 39 42);
}