/* Team browse — discovery layout scoped to this page */

body.teams-browse-body.teams-surface {
  background: #f8f9fc;
}

.teams-browse-page {
  max-width: 1300px;
  padding: 8px 24px 72px;
}

.tdir {
  --primary: #4f3fc0;
  --primary-bright: #6a5ae0;
  --primary-deep: #3f32a8;
  --primary-soft: #f2f0ff;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #1e1e2f;
  --muted: #5c5c74;
  --border: #e6e7f0;
  --green: #157a3a;
  --green-bg: #e8fbf0;
  --green-solid: #166534;
  --blue: #1d4ed8;
  --blue-bg: #eff6ff;
  --amber: #a16207;
  --amber-bg: #fefce8;
  --orange: #c2410c;
  --orange-bg: #fff7ed;
  --purple: #7e22ce;
  --purple-bg: #faf5ff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(30, 30, 47, 0.05);
  --shadow-md: 0 12px 28px rgba(30, 30, 47, 0.08);
  color: var(--text);
  line-height: 1.6;
}

.tdir *,
.tdir *::before,
.tdir *::after { box-sizing: border-box; }

.tdir svg { display: block; }

.tdir a { text-decoration: none; }

.tdir :focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

.tdir-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ── */
.tdir-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, clamp(220px, 28vw, 340px)) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 48px);
  direction: ltr;
  margin-top: 20px;
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(90deg, #f3f0ff 0%, #f8faff 100%);
}

.tdir-hero__copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  direction: rtl;
  text-align: start;
}

.tdir-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.tdir-hero__copy p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.tdir-hero__art {
  position: relative;
  grid-column: 1;
  width: 100%;
  min-width: 0;
}

.tdir-hero__art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.tdir-hero__copy .tdir-hero__btn {
  margin-top: 18px;
  font-size: 17px;
  min-height: 48px;
  padding: 0 22px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
}

.tdir-hero__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(79, 63, 192, 0.28);
}

.tdir-hero__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.tdir-hero__btn:hover { background: var(--primary-deep); }

.tdir-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(30, 30, 47, 0.06);
}

.tdir-float svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tdir-float--startup { top: 10px; inset-inline-start: 12px; color: var(--green); background: var(--green-bg); }
.tdir-float--sasoute { bottom: 12px; inset-inline-start: 28%; color: var(--amber); background: var(--amber-bg); }
.tdir-float--learning { top: 14px; inset-inline-end: 12px; color: var(--blue); background: var(--blue-bg); }

/* ── Filters ── */
.tdir-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tdir-filters__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tdir-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: min(100%, 220px);
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--muted);
}

.tdir-search svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tdir-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.tdir-search input::placeholder { color: var(--muted); font-weight: 500; }

.tdir-search:focus-within {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(106, 90, 224, 0.16);
  background: #fff;
}

.tdir-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tdir-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tdir-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tdir-chip--all.is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.tdir-chip--startup { border-color: transparent; background: var(--green-bg); color: var(--green); }
.tdir-chip--sasoute { border-color: transparent; background: var(--amber-bg); color: var(--amber); }
.tdir-chip--learning { border-color: transparent; background: var(--blue-bg); color: var(--blue); }

.tdir-chip--startup.is-on { background: var(--green-solid); color: #fff; }
.tdir-chip--sasoute.is-on { background: var(--orange); color: #fff; }
.tdir-chip--learning.is-on { background: var(--blue); color: #fff; }

.tdir-chip:hover { filter: saturate(1.05) brightness(0.98); }

.tdir-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 168px;
  min-width: 148px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--muted);
}

.tdir-drop.is-hidden { display: none; }

.tdir-drop--stage,
.tdir-drop--domain,
.tdir-drop--city {
  flex: 0 1 228px;
  min-width: 200px;
  height: 52px;
  gap: 10px;
  padding-inline: 10px 34px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(30, 30, 47, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tdir-drop--stage {
  border-color: rgba(106, 90, 224, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 246, 255, 0.95) 100%);
}

.tdir-drop--domain {
  border-color: rgba(29, 78, 216, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.96) 100%);
}

.tdir-drop--city {
  border-color: rgba(21, 122, 58, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 251, 240, 0.96) 100%);
}

.tdir-drop--stage:hover {
  border-color: rgba(106, 90, 224, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(106, 90, 224, 0.12);
}

.tdir-drop--domain:hover {
  border-color: rgba(29, 78, 216, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(29, 78, 216, 0.12);
}

.tdir-drop--city:hover {
  border-color: rgba(21, 122, 58, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(21, 122, 58, 0.12);
}

.tdir-drop--stage:focus-within {
  border-color: var(--primary-bright);
  box-shadow:
    0 0 0 3px rgba(106, 90, 224, 0.16),
    0 8px 20px rgba(106, 90, 224, 0.14);
  background: #fff;
}

.tdir-drop--domain:focus-within {
  border-color: var(--blue);
  box-shadow:
    0 0 0 3px rgba(29, 78, 216, 0.14),
    0 8px 20px rgba(29, 78, 216, 0.12);
  background: #fff;
}

.tdir-drop--city:focus-within {
  border-color: var(--green);
  box-shadow:
    0 0 0 3px rgba(21, 122, 58, 0.14),
    0 8px 20px rgba(21, 122, 58, 0.12);
  background: #fff;
}

.tdir-drop--stage .tdir-drop__badge,
.tdir-drop--domain .tdir-drop__badge,
.tdir-drop--city .tdir-drop__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
}

.tdir-drop--stage .tdir-drop__badge {
  background: linear-gradient(145deg, var(--primary-bright) 0%, var(--primary) 100%);
  box-shadow: 0 4px 12px rgba(79, 63, 192, 0.28);
}

.tdir-drop--domain .tdir-drop__badge {
  background: linear-gradient(145deg, #3b82f6 0%, var(--blue) 100%);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
}

.tdir-drop--city .tdir-drop__badge {
  background: linear-gradient(145deg, #22c55e 0%, var(--green-solid) 100%);
  box-shadow: 0 4px 12px rgba(21, 122, 58, 0.28);
}

.tdir-drop--stage .tdir-drop__badge .solar-ic,
.tdir-drop--domain .tdir-drop__badge .solar-ic,
.tdir-drop--city .tdir-drop__badge .solar-ic {
  width: 18px;
  height: 18px;
}

.tdir-drop--stage .tdir-drop__body,
.tdir-drop--domain .tdir-drop__body,
.tdir-drop--city .tdir-drop__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.tdir-drop--stage .tdir-drop__kicker {
  color: var(--primary-bright);
}

.tdir-drop--domain .tdir-drop__kicker {
  color: var(--blue);
}

.tdir-drop--city .tdir-drop__kicker {
  color: var(--green);
}

.tdir-drop--stage .tdir-drop__kicker,
.tdir-drop--domain .tdir-drop__kicker,
.tdir-drop--city .tdir-drop__kicker {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.tdir-drop--stage select,
.tdir-drop--domain select,
.tdir-drop--city select {
  height: auto;
  padding-inline-end: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.tdir-drop--stage .tdir-drop__chev {
  inset-inline-end: 12px;
  color: var(--primary-bright);
  opacity: 0.85;
}

.tdir-drop--domain .tdir-drop__chev {
  inset-inline-end: 12px;
  color: var(--blue);
  opacity: 0.85;
}

.tdir-drop--city .tdir-drop__chev {
  inset-inline-end: 12px;
  color: var(--green);
  opacity: 0.85;
}

.tdir-drop--stage,
.tdir-drop--domain,
.tdir-drop--city {
  cursor: pointer;
}

html.tdir-js .tdir-drop--stage .tdir-drop__body > select,
html.tdir-js .tdir-drop--domain .tdir-drop__body > select,
html.tdir-js .tdir-drop--city .tdir-drop__body > select {
  pointer-events: none;
  cursor: pointer;
}

.tdir-drop--stage:focus-visible,
.tdir-drop--domain:focus-visible,
.tdir-drop--city:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(106, 90, 224, 0.16),
    0 8px 20px rgba(106, 90, 224, 0.12);
}

.tdir-drop--domain:focus-visible {
  box-shadow:
    0 0 0 3px rgba(29, 78, 216, 0.14),
    0 8px 20px rgba(29, 78, 216, 0.12);
}

.tdir-drop--city:focus-visible {
  box-shadow:
    0 0 0 3px rgba(21, 122, 58, 0.14),
    0 8px 20px rgba(21, 122, 58, 0.12);
}

.tdir-drop--stage.is-open,
.tdir-drop--domain.is-open,
.tdir-drop--city.is-open {
  z-index: 40;
}

.tdir-drop--stage.is-open .tdir-drop__chev,
.tdir-drop--domain.is-open .tdir-drop__chev,
.tdir-drop--city.is-open .tdir-drop__chev {
  transform: rotate(180deg);
}

.tdir-drop__menu {
  max-height: min(20rem, 56vh);
  overflow: hidden;
  display: none;
  flex-direction: column;
  padding: 6px;
  border: 1px solid rgba(106, 90, 224, 0.16);
  border-radius: 14px;
  background: linear-gradient(165deg, #fcfbff 0%, #fff 28%);
  box-shadow:
    0 16px 40px rgba(79, 63, 192, 0.16),
    0 4px 12px rgba(30, 30, 47, 0.08);
  direction: rtl;
  animation: tdir-drop-in 0.18s ease;
}

.tdir-drop__menu:not([hidden]) {
  display: flex;
}

.tdir-drop--domain .tdir-drop__menu,
.tdir-drop__menu--domain {
  border-color: rgba(29, 78, 216, 0.16);
  background: linear-gradient(165deg, #f8fbff 0%, #fff 28%);
  box-shadow:
    0 16px 40px rgba(29, 78, 216, 0.14),
    0 4px 12px rgba(30, 30, 47, 0.08);
}

.tdir-drop--city .tdir-drop__menu,
.tdir-drop__menu--city {
  border-color: rgba(21, 122, 58, 0.16);
  background: linear-gradient(165deg, #f4fdf8 0%, #fff 28%);
  box-shadow:
    0 16px 40px rgba(21, 122, 58, 0.14),
    0 4px 12px rgba(30, 30, 47, 0.08);
}

.tdir-drop__menu--stage {
  border-color: rgba(106, 90, 224, 0.16);
  background: linear-gradient(165deg, #fcfbff 0%, #fff 28%);
  box-shadow:
    0 16px 40px rgba(79, 63, 192, 0.16),
    0 4px 12px rgba(30, 30, 47, 0.08);
}

.tdir-drop__menu-head {
  flex: none;
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary-bright);
  border-bottom: 1px solid rgba(106, 90, 224, 0.1);
}

.tdir-drop--domain .tdir-drop__menu-head,
.tdir-drop__menu--domain .tdir-drop__menu-head {
  color: var(--blue);
  border-bottom-color: rgba(29, 78, 216, 0.1);
}

.tdir-drop--city .tdir-drop__menu-head,
.tdir-drop__menu--city .tdir-drop__menu-head {
  color: var(--green);
  border-bottom-color: rgba(21, 122, 58, 0.1);
}

.tdir-drop__menu--stage .tdir-drop__menu-head {
  color: var(--primary-bright);
  border-bottom-color: rgba(106, 90, 224, 0.1);
}

.tdir-drop__menu-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 0 2px;
  scrollbar-width: thin;
}

@keyframes tdir-drop-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tdir-drop__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.tdir-drop__menu--stage .tdir-drop__option:hover,
.tdir-drop--stage .tdir-drop__option:hover {
  background: var(--primary-soft);
}

.tdir-drop__menu--domain .tdir-drop__option:hover,
.tdir-drop--domain .tdir-drop__option:hover {
  background: var(--blue-bg);
}

.tdir-drop__menu--city .tdir-drop__option:hover,
.tdir-drop--city .tdir-drop__option:hover {
  background: var(--green-bg);
}

.tdir-drop__menu--stage .tdir-drop__option.is-active,
.tdir-drop--stage .tdir-drop__option.is-active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.tdir-drop__menu--domain .tdir-drop__option.is-active,
.tdir-drop--domain .tdir-drop__option.is-active {
  background: var(--blue-bg);
  color: var(--blue);
}

.tdir-drop__menu--city .tdir-drop__option.is-active,
.tdir-drop--city .tdir-drop__option.is-active {
  background: var(--green-bg);
  color: var(--green-solid);
}

.tdir-drop__option.is-active::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.9;
}

.tdir-drop > svg:first-of-type,
.tdir-drop__chev {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tdir-drop__chev {
  position: absolute;
  inset-inline-end: 10px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  transition: transform 0.18s ease;
}

.tdir-drop select {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  padding-inline-end: 16px;
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tdir-drop:focus-within {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(106, 90, 224, 0.16);
  background: #fff;
}

.tdir-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.tdir-toggle label { cursor: pointer; }

.tdir-switch {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}

.tdir-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tdir-switch__slider {
  position: absolute;
  top: 10px;
  inset-inline: 0;
  height: 24px;
  border-radius: 99px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.tdir-switch__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.tdir-switch input:checked + .tdir-switch__slider { background: var(--primary); }

.tdir-switch input:checked + .tdir-switch__slider::before {
  inset-inline-start: calc(100% - 21px);
}

.tdir-switch input:focus-visible + .tdir-switch__slider {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

.tdir-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.tdir-clear:hover { color: var(--primary-deep); }

.tdir-apply {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tdir-apply:hover { background: var(--primary-deep); }

/* ── Results ── */
.tdir-results {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 16px;
}

.tdir-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.tdir-count b {
  color: var(--text);
  font-weight: 800;
}

.tdir-active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tdir-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding-inline: 10px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.tdir-active__chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.tdir-active__chip svg { width: 14px; height: 14px; fill: currentColor; }

/* ── Grid ── */
.tdir-wall-wrap { position: relative; min-height: 120px; margin-top: 16px; }

.tdir.is-pending .tdir-foot,
.tdir.is-pending .tdir-empty { opacity: 0.45; }

.tdir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.tdir-grid[hidden] { display: none !important; }

.tcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tcard__cover {
  position: relative;
  z-index: 1;
  height: 130px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(135deg, #c4b5fd, #6d28d9);
}

.tcard__cover--startup {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(135deg, #6ee7b7, #047857);
}

.tcard__cover--sasoute,
.tcard__cover--short_project {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(135deg, #fdba74, #c2410c);
}

.tcard__cover--learning {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(135deg, #93c5fd, #1d4ed8);
}

.tcard__cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tcard__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__hire {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-solid);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.tcard__hire-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.tcard__logo {
  position: absolute;
  bottom: -24px;
  inset-inline-start: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #6d28d9, #4f3fc0);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(30, 30, 47, 0.16);
  pointer-events: none;
}

.tcard__logo--startup { background: linear-gradient(135deg, #059669, #047857); }
.tcard__logo--sasoute,
.tcard__logo--short_project { background: linear-gradient(135deg, #ea580c, #c2410c); }
.tcard__logo--learning { background: linear-gradient(135deg, #2563eb, #1d4ed8); }

.tcard__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__body {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 36px 20px 20px;
}

.tcard__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tcard__title {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcard__type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.tcard__type svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tcard__type--startup { background: var(--green-bg); color: var(--green); }
.tcard__type--sasoute,
.tcard__type--short_project { background: var(--amber-bg); color: var(--amber); }
.tcard__type--learning { background: var(--blue-bg); color: var(--blue); }

.tcard__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tcard__meta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.tcard__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.tcard__meta-item svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tcard__meta-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard__meta-item--stage { flex: none; }

.tcard__desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcard__extra {
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcard__members {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  min-height: 28px;
}

.tcard__ava {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: 0 1px 3px rgba(30, 30, 47, 0.12);
  margin-inline-start: -8px;
}

.tcard__ava:first-child {
  margin-inline-start: 0;
}

.tcard__ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__ava-fb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f3fc0);
}

.tcard__ava--more {
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
}

.tcard__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.tcard__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tcard__btn--startup { background: var(--green-bg); color: var(--green); }
.tcard__btn--startup:hover { background: var(--green-solid); color: #fff; }
.tcard__btn--sasoute,
.tcard__btn--short_project { background: var(--orange-bg); color: var(--orange); }
.tcard__btn--sasoute:hover,
.tcard__btn--short_project:hover { background: var(--orange); color: #fff; }
.tcard__btn--learning { background: var(--blue-bg); color: var(--blue); }
.tcard__btn--learning:hover { background: var(--blue); color: #fff; }

.tdir-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--primary-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.85), transparent 55%),
    linear-gradient(180deg, #faf8ff 0%, #f0eaff 100%);
}

.tdir-promo__icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(106, 90, 224, 0.15);
  color: var(--primary);
}

.tdir-promo__icon .solar-ic {
  width: 36px;
  height: 36px;
}

.tdir-promo h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.tdir-promo p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tdir-promo__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(79, 63, 192, 0.28);
}

.tdir-promo__btn:hover { background: var(--primary-deep); }

/* ── Empty / pager ── */
.tdir-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tdir-empty__ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.tdir-empty__ic svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tdir-empty h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.tdir-empty p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.tdir-empty__btn { position: static; }

.tdir-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tdir-foot__count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tdir-pager { display: flex; flex-wrap: wrap; gap: 6px; }

.tdir-pager a,
.tdir-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.tdir-pager a:hover { border-color: var(--primary-bright); color: var(--primary); }

.tdir-pager .is-cur {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.tdir-pager .is-dis { opacity: 0.4; }

.tcard--skel {
  min-height: 320px;
  background: linear-gradient(100deg, #fff 30%, #f3f1fb 50%, #fff 70%);
  background-size: 200% 100%;
  animation: tdir-shimmer 1.2s ease infinite;
}

@keyframes tdir-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (min-width: 760px) {
  .tdir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .tdir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .tdir-filters {
    position: sticky;
    top: calc(var(--header-h, 72px) + 8px);
    z-index: 30;
  }
}

@media (max-width: 1099px) {
  .tdir-hero__art,
  .tdir-float { display: none; }

  .tdir-hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .tdir-hero__copy {
    grid-column: 1;
    width: 100%;
  }
}

@media (max-width: 700px) {
  html.tdir-js .tdir-apply { display: flex; }
}

@media (max-width: 768px) {
  .teams-browse-page { padding-inline: 16px; }

  .tdir-hero {
    padding: 24px 18px;
    text-align: start;
  }

  .tdir-hero__btn { width: 100%; }

  .tdir-filters,
  .tdir-filters__row {
    align-items: stretch;
  }

  .tdir-filters__row {
    flex-direction: column;
    min-width: 0;
  }

  .tdir-chips {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .tdir-chip { flex: none; }

  .tdir-search,
  .tdir-drop {
    flex: 0 0 auto;
    width: 100%;
    height: 44px;
    max-width: none;
  }

  .tdir-drop--stage,
  .tdir-drop--domain,
  .tdir-drop--city { height: 52px; }

  .tdir-toggle {
    justify-content: space-between;
    padding-inline-start: 0;
  }

  .tdir-search input,
  .tdir-drop select { font-size: 16px; }

  .tdir-foot { flex-direction: column; align-items: flex-start; }
  .tdir-pager { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tcard,
  .tcard--skel,
  .tdir-switch__slider,
  .tdir-switch__slider::before,
  .tcard__btn,
  .tdir-hero__btn {
    transition: none;
    animation: none;
  }

  .tcard:hover { transform: none; }
}
