body[data-service="org"] {
  --org-accent: #315b8a;
  --org-accent-soft: rgba(49, 91, 138, .12);
}

body[data-service="org"] .search-card {
  margin-bottom: 12px;
  padding: 13px 16px;
}

body[data-service="org"] .search-head {
  margin-bottom: 6px;
}

body[data-service="org"] .search-engine,
body[data-service="org"] .search-input,
body[data-service="org"] .search-button {
  min-height: 40px;
  font-size: 15px;
}

body[data-service="org"] .badge {
  min-height: 29px;
  padding: 3px 10px;
  font-size: 13px;
}

body[data-service="org"] .lead {
  font-size: 15px;
}

body[data-service="org"] .jump-hint,
body[data-service="org"] .quick-engines {
  margin-top: 7px;
}

body[data-service="org"] .chip {
  min-height: 34px;
  padding: 3px 10px;
  font-size: 13px;
}

body[data-service="org"] .org-search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  min-width: 0;
}

body[data-service="org"] .org-search-bottom .quick-engines {
  flex: 0 0 auto;
  margin-top: 0;
}

body[data-service="org"] .org-affiliates {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

body[data-service="org"] .org-affiliate-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body[data-service="org"] .org-affiliate-group strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

body[data-service="org"] .org-affiliate-group a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .045);
}

body[data-service="org"] .org-affiliate-group a:hover {
  color: var(--org-accent);
  border-color: rgba(49, 91, 138, .35);
  transform: translateY(-1px);
}

body[data-service="org"] .org-affiliate-group img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

body[data-service="org"] .directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-service="org"] .link-section {
  overflow: hidden;
  padding: 0 10px 9px;
  background: linear-gradient(180deg, rgba(49, 91, 138, .055), var(--card-soft) 36%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
}

body[data-service="org"] .link-section__title {
  margin: 0 -10px 7px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(49, 91, 138, .18);
  background: linear-gradient(135deg, rgba(49, 91, 138, .16), rgba(37, 99, 235, .08));
  color: var(--org-accent);
  font-size: 18px;
}

body[data-service="org"] .link-list {
  gap: 0;
}

body[data-service="org"] .link-list a {
  min-height: 28px;
  margin-top: -1px;
  padding: 2px 6px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 4px;
  background: var(--card);
  font-size: 15px;
}

body[data-service="org"] .link-list li:first-child a {
  margin-top: 0;
}

body[data-service="org"] .link-list a:hover {
  border-color: rgba(49, 91, 138, .34);
  background: #f6f9fd;
  box-shadow: 0 2px 8px rgba(49, 91, 138, .08);
}

body[data-service="org"] .link-favicon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  padding: 1px;
}

body[data-service="org"].theme-dark .link-section {
  background: linear-gradient(180deg, rgba(96, 165, 250, .08), var(--card-soft) 36%);
}

body[data-service="org"].theme-dark .link-section__title {
  border-bottom-color: rgba(147, 197, 253, .16);
  background: linear-gradient(135deg, rgba(96, 165, 250, .15), rgba(59, 130, 246, .08));
  color: #93c5fd;
}

body[data-service="org"].theme-dark .link-list a:hover {
  background: rgba(96, 165, 250, .09);
}

@media (max-width: 1100px) {
  body[data-service="org"] .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-service="org"] .org-search-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  body[data-service="org"] .directory-grid {
    grid-template-columns: 1fr;
  }

  body[data-service="org"] .org-affiliates {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
}
