/* Rama Marketplace — tokeny, kontener, przyciski i hub z 01-DECYZJE. */

.tq-market-page {
  --tld-paper: #f1f2ec;
  --tld-white: #fff;
  --tld-ink: #111915;
  --tld-muted: #626d66;
  --tld-line: #c4cac3;
  --tld-orange: #f15a31;
  background: var(--tld-paper);
  color: var(--tld-ink);
  padding-top: 76px;
}

.tq-market-wrap {
  width: min(1460px, calc(100% - 64px));
  margin-inline: auto;
}

.tq-market-hero {
  padding: 96px 0;
}

.tq-market-hero h1 {
  margin: 0 0 24px;
  color: var(--tld-ink);
  font-family: "General Sans", Inter, sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.tq-market-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tq-market-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--tld-line);
  border-radius: 0;
  background: var(--tld-white);
  box-shadow: none;
  color: var(--tld-ink);
  text-decoration: none;
}

.tq-market-card:focus-visible {
  outline: 2px solid var(--tld-ink);
  outline-offset: 4px;
}

.tq-market-card h2 {
  margin: 0;
  color: var(--tld-ink);
  font-family: "General Sans", Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tq-market-card p {
  max-width: 68ch;
  margin: 16px 0 0;
  color: var(--tld-ink);
  font-family: "General Sans", Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.tq-market-actions a,
.tq-market-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  box-sizing: border-box;
  min-width: 210px;
  min-height: 48px;
  padding: 15px 16px;
  border: 1px solid var(--tld-ink);
  background: transparent;
  color: var(--tld-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.tq-market-actions a.is-primary,
.tq-market-btn.is-primary {
  background: var(--tld-ink);
  color: var(--tld-white);
}

.tl-header--day nav a.is-current,
.tl-mobile-nav a.is-current {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

@media (min-width: 701px) {
  .tq-market-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1101px) {
  .tq-market-cards {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
  }
}

.tq-market-status {
  margin: 0 0 16px;
  color: var(--tld-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tq-market-hero > .tq-market-wrap > h1 {
  max-width: 68ch;
}

.tq-market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tq-market-people {
  font-family: "General Sans", Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.tq-market-people .tq-shell-wrap {
  width: min(1460px, calc(100% - 64px));
  margin-inline: auto;
}

.tq-market-people .tq-page-section {
  padding: 96px 0;
}

.tq-market-people .tq-eyebrow,
.tq-market-people .tq-results-count {
  margin: 0 0 12px;
  color: var(--tld-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tq-market-people h1,
.tq-market-people h2,
.tq-market-people h3,
.tq-market-people .tq-section-title {
  margin: 0 0 24px;
  color: var(--tld-ink);
  font-family: "General Sans", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.tq-market-people h1,
.tq-market-people .tq-section-title {
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.05;
}

.tq-market-people h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.tq-market-people h3 {
  font-size: 22px;
  line-height: 1.2;
}

.tq-market-people p,
.tq-market-people .tq-section-copy,
.tq-market-people .tq-person-about,
.tq-market-people .tq-person-subtitle,
.tq-market-people .tq-person-profile-lead {
  max-width: 68ch;
  margin: 0 0 16px;
  color: var(--tld-ink);
}

.tq-market-people .tq-people-workbench-head,
.tq-market-people .tq-people-results-head,
.tq-market-people .tq-person-profile-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.tq-market-people .tq-people-workbench-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.tq-market-people .tq-people-sidebar,
.tq-market-people .tq-person-card,
.tq-market-people .tq-person-profile-contact,
.tq-market-people .tq-badge-card,
.tq-market-people .tq-people-machine-row,
.tq-market-people .tq-people-signup-card,
.tq-market-people .tq-empty-state,
.tq-market-people .tq-person-section {
  padding: 24px;
  border: 1px solid var(--tld-line);
  border-radius: 0;
  background: var(--tld-white);
  box-shadow: none;
}

.tq-market-people .tq-people-filters,
.tq-market-people .tq-people-filters--sidebar {
  display: grid;
  gap: 16px;
}

.tq-market-people .tq-people-filters label {
  display: grid;
  gap: 8px;
}

.tq-market-people .tq-people-filters span {
  color: var(--tld-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tq-market-people .tq-people-filters input,
.tq-market-people .tq-people-filters select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--tld-ink);
  border-radius: 0;
  background: var(--tld-white);
  color: var(--tld-ink);
  font: inherit;
}

.tq-market-people .tq-filter-actions,
.tq-market-people .tq-filter-actions--stack {
  display: grid;
  gap: 12px;
}

.tq-market-people .tq-btn-primary,
.tq-market-people .tq-btn-ghost,
.tq-market-people .tq-card-link,
.tq-market-people .tq-text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 15px 16px;
  border: 1px solid var(--tld-ink);
  color: var(--tld-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.tq-market-people .tq-btn-primary {
  background: var(--tld-ink);
  color: var(--tld-white);
}

.tq-market-people .tq-btn-ghost,
.tq-market-people .tq-card-link,
.tq-market-people .tq-text-link {
  background: transparent;
}

.tq-market-people .tq-btn-primary:focus-visible,
.tq-market-people .tq-btn-ghost:focus-visible,
.tq-market-people .tq-card-link:focus-visible,
.tq-market-people .tq-text-link:focus-visible,
.tq-market-people a:focus-visible,
.tq-market-people input:focus-visible,
.tq-market-people select:focus-visible,
.tq-market-people button:focus-visible {
  outline: 2px solid var(--tld-ink);
  outline-offset: 4px;
}

.tq-market-people .tq-people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tq-market-people .tq-person-top,
.tq-market-people .tq-person-profile-identity {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tq-market-people .tq-person-avatar,
.tq-market-people .tq-profile-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--tld-line);
  background: var(--tld-paper);
}

.tq-market-people .tq-person-avatar.is-fallback,
.tq-market-people .tq-profile-avatar.is-fallback {
  object-fit: contain;
  padding: 8px;
}

.tq-market-people .tq-person-meta,
.tq-market-people .tq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tq-market-people .tq-role-pill,
.tq-market-people .tq-status-pill,
.tq-market-people .tq-chip {
  padding: 4px 8px;
  border: 1px solid var(--tld-line);
  color: var(--tld-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tq-market-people .tq-status-pill.is-free {
  border-color: var(--tld-ink);
  background: var(--tld-paper);
}

.tq-market-people .tq-person-facts,
.tq-market-people .tq-person-contact-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.tq-market-people .tq-person-facts li,
.tq-market-people .tq-person-contact-item {
  display: grid;
  gap: 4px;
}

.tq-market-people .tq-person-facts span,
.tq-market-people .tq-person-contact-item span {
  color: var(--tld-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tq-market-people .tq-person-profile-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.tq-market-people .tq-person-profile-sheet,
.tq-market-people .tq-badge-gallery,
.tq-market-people .tq-people-machine-list {
  display: grid;
  gap: 24px;
}

.tq-market-people .tq-people-machine-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tq-market-people .tq-people-signup-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 900px) {
  .tq-market-people .tq-people-workbench-grid,
  .tq-market-people .tq-person-profile-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tq-market-wrap {
    width: calc(100% - 32px);
  }

  .tq-market-hero {
    padding: 56px 0;
  }

  .tq-market-actions a,
  .tq-market-btn {
    min-width: 0;
    width: 100%;
  }

  .tq-market-people .tq-shell-wrap {
    width: calc(100% - 32px);
  }

  .tq-market-people .tq-page-section {
    padding: 56px 0;
  }

  .tq-market-people .tq-people-grid {
    grid-template-columns: 1fr;
  }

  .tq-market-people .tq-people-workbench-head,
  .tq-market-people .tq-people-results-head,
  .tq-market-people .tq-person-profile-topline,
  .tq-market-people .tq-people-signup-card,
  .tq-market-people .tq-people-machine-row {
    flex-direction: column;
    align-items: stretch;
  }
}
