/* A quiet blue workspace with compact opportunity rows and a useful filter rail. */
:root {
  color-scheme: light;
  --accent: #2458bc;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #1e2b43;
  --ink-2: #627087;
  --radius: 12px;
  --max: 1200px;
  --font-display: 'Trebuchet MS', ui-sans-serif, sans-serif;
}

/* Workspace and navigation. */
.app-header {
  background: var(--surface);
}
.section-title {
  flex-wrap: wrap;
  margin-top: 6px;
}
.section-title h1 {
  margin-bottom: 0;
  font-size: 1.4rem;
}
.discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.results {
  min-width: 0;
}
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar .card {
  box-shadow: none;
  border: 1px solid var(--line);
}
.segments {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.segments button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
}
.segments [aria-pressed='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #e8effc;
}
.welcome p {
  margin: 0;
  max-width: 30ch;
  font-weight: 600;
}
.welcome .btn {
  flex-shrink: 0;
  font-size: 0.875rem;
}
.list-toolbar {
  display: flex;
  gap: 8px;
}
.result-count {
  margin: 12px 0;
  color: var(--ink-2);
  font-size: 0.8rem;
}
.mobile-filters {
  display: none;
}
.tabbar button {
  gap: 3px;
  min-height: 58px;
}

/* Dense rows retain generous touch targets for opening and bookmarking. */
.opportunity-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.opportunity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.opportunity:last-child {
  border-bottom: 0;
}
.monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 4px;
  border: 1px solid #d6e2f9;
  border-radius: 11px;
  background: #edf3ff;
  color: #2458bc;
  font-size: 0.85rem;
  font-weight: 800;
}
.opportunity:nth-child(3n + 2) .monogram {
  background: #e7f4ee;
  color: #276954;
  border-color: #cae4d8;
}
.opportunity:nth-child(3n) .monogram {
  background: #fcf0e0;
  color: #915716;
  border-color: #ecd9bc;
}
.opportunity h3 {
  margin: 0;
  font-size: 0.95rem;
}
.title-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.title-button span {
  font-weight: 400;
}
.meta {
  color: var(--ink-2);
  font-size: 0.78rem;
  margin: 0 0 8px;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skill-chips span {
  padding: 2px 8px;
  border-radius: 5px;
  background: #f0f3f8;
  color: #526078;
  font-size: 0.72rem;
}
.match {
  margin: 7px 0 0;
  color: #567565;
  font-size: 0.75rem;
}
.bookmark {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--ink-2);
}
.bookmark[aria-pressed='true'] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Filters and profile forms. */
.filter-heading {
  justify-content: space-between;
}
.filter-heading h2 {
  margin: 0;
  font-size: 1rem;
}
.toggles {
  margin-bottom: 16px;
}
.toggles label {
  min-height: 44px;
}
.recommendation h2 {
  margin-top: 10px;
  font-size: 1.05rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
form[data-form='profile'], .portfolio-section, .skill-filter {
  max-width: 640px;
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.actions, .portfolio-section, .safety {
  margin-top: 20px;
}
.grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.grid > .card + .card {
  margin-top: 0;
}
.portfolio-art {
  display: flex;
  justify-content: space-around;
  height: 100px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: linear-gradient(125deg, #e4edff 50%, #fee6bd 50%);
  color: var(--accent);
  font-size: 70px;
}
@media (max-width: 700px) {
  .discovery-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .mobile-filters {
    display: inline-flex;
    flex-shrink: 0;
    padding: 0 12px;
    font-size: 0.8rem;
  }
  .welcome {
    align-items: start;
    flex-direction: column;
  }
  .opportunity {
    grid-template-columns: 32px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px 8px;
  }
  .monogram {
    width: 32px;
    height: 36px;
    font-size: 0.72rem;
  }
  .section-title > span {
    display: none;
  }
}
