*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #222;
}


.site-header {
  background: linear-gradient(120deg, #223c63, #3b7aa6);
  color: #fff;
  padding: 1.5rem 1rem;
}

.site-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 60px;       /* adjust as needed */
  width: auto;
  z-index: 10;
  border-radius: 6px; v
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
}

.header-content h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.6rem;
}

.header-content p {
  margin: 0;
  opacity: 0.9;
}

.container {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mode-button {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid #c5c5d0;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.mode-button.active {
  background: #223c63;
  color: #fff;
  border-color: #223c63;
}

.panel {
  display: none;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.panel.active {
  display: block;
}

.panel h2 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
}

input,
select {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #c5c5d0;
  font-size: 0.9rem;
}

input:focus,
select:focus {
  outline: 2px solid #3b7aa6;
  outline-offset: 1px;
  border-color: #3b7aa6;
}

.taxonomy-selector h3,
.selected-skills h3,
#find-results h3 {
  margin-bottom: 0.5rem;
}

.selector-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}

.selector-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selector-block.align-bottom {
  justify-content: flex-end;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d0d4dd;
  background: #f9fafc;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.1s ease, transform 0.05s ease, box-shadow 0.05s ease;
}

.badge:hover {
  background: #e7f0fb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}


.badge.claimed-any {
  border-width: 2px;
}

select option.claimed-option {
  font-weight: 600;
  background-color: #e6f4ea;
}

.badge.selected {
  background: #223c63;
  color: #fff;
  border-color: #223c63;
}

.badge-list-selected .badge {
  background: #223c63;
  color: #fff;
}

.badge-label-main {
  font-weight: 500;
}

.badge-label-sub {
  opacity: 0.8;
}

.badge-remove {
  font-size: 0.9em;
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.primary-button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #223c63, #3b7aa6);
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status-message {
  font-size: 0.85rem;
  opacity: 0.85;
}

.status-message.error {
  color: #b91c1c;
}

.status-message.success {
  color: #166534;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.result-card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #e0e3ea;
  padding: 0.75rem 0.9rem;
  background: #fdfdff;
}


.resource-remove-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid #e0e3ea;
  background: #ffffff;
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-remove-btn:hover {
  background: #f3f4f6;
}

.resource-remove-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.result-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
}

.result-name {
  font-weight: 600;
}

.result-meta {
  font-size: 0.8rem;
  opacity: 0.85;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #ddd;
}

@media (max-width: 640px) {
  .header-content h1 {
    font-size: 1.3rem;
  }
}


.helper-text {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}
select option.claimed-option {
  font-weight: 600;
  background-color: #fde2e4 !important;
  color: #000;
}

/* Category headings above pills */
.badge-category-heading {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #111 !important;      /* strong dark baseline */
  margin-top: 1rem !important;
  margin-bottom: 0.35rem !important;
  letter-spacing: -0.01em;
}

/* Preserve category tint added by JS — keep it subtle */
.badge-category-heading[style*="color:"] {
  opacity: 0.9; /* keep dark weight while allowing tint */
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;          /* vertical spacing between rows */
  align-items: flex-start;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;          /* vertical spacing between rows */
  align-items: flex-start;
}

.info-bar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.info-icon {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 0.5rem;
}

.info-content {
  max-width: 700px;
  font-size: 0.9rem;
  line-height: 1.4;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

/* If you don't already have a .hidden utility class */
.hidden {
  display: none;
}

