/* Local prototype of the accelerator company index. */
.grx-index {
  --surface: #1c1c1c;
  --raised: #242424;
  --line: #3b3b3b;
  --text: #f6f6f6;
  --muted: #b6b6b6;
  --blue: #5aa9e2;
  --blue-dark: #243645;
  background: var(--surface);
  color: var(--text);
  font-family: Poppins, sans-serif;
  scroll-margin-top: 22px;
}

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

.grx-index [hidden] { display: none !important; }

.grx-index .grx-container { width: min(100%, 1056px); margin-inline: auto; }

.grx-index .grx-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 305px);
  align-items: end;
  gap: 32px;
  padding-bottom: 31px;
}

.grx-index .grx-title {
  margin: 0;
  color: var(--text);
  font: 600 clamp(39px, 5.4vw, 65px)/.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}

.grx-index .grx-title span {
  display: block;
  color: var(--blue);
  font: 400 1.04em/1.05 'Billy Ohio', Georgia, serif;
  letter-spacing: 0;
}

.grx-index .grx-intro p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.grx-index .grx-directory-frame { border-top: 1px solid var(--line); }

.grx-index .grx-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 215px) minmax(160px, 195px);
  gap: 13px;
  padding: 22px 0 16px;
}

.grx-index .grx-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.grx-index .grx-search::before {
  content: '';
  position: absolute;
  pointer-events: none;
  left: 16px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.grx-index .grx-search::after {
  content: '';
  position: absolute;
  pointer-events: none;
  left: 27px;
  top: calc(50% + 4px);
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  background: var(--muted);
}

.grx-index input,
.grx-index select,
.grx-index button { font: inherit; }

.grx-index .grx-search input,
.grx-index select {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: var(--text);
  color-scheme: dark;
  font-size: 13px;
}

.grx-index .grx-search input { padding: 0 13px 0 40px; }
.grx-index .grx-search input::placeholder { color: var(--muted); opacity: 1; }
.grx-index select { padding: 0 10px; }

.grx-index :is(button, input, select, a):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.grx-index .grx-results-bar {
  min-height: 39px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.grx-index .grx-results-bar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.grx-index .grx-results-bar strong { color: var(--text); font-weight: 600; }

.grx-index .grx-text-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: 6px 3px;
  font-size: 12px;
  white-space: nowrap;
}

.grx-index .grx-list { margin: 0; padding: 0; list-style: none; }

.grx-index .grx-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 76px 26px;
  width: 100%;
  gap: 22px;
  align-items: center;
  min-height: 86px;
  padding: 13px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background-color .16s ease;
}

.grx-index .grx-list li:last-child { border-bottom: 1px solid var(--line); }
.grx-index .grx-row:hover { background: var(--raised); }
.grx-index .grx-row:focus-visible { outline-offset: -2px; }

.grx-index .grx-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.grx-index .grx-logo {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  overflow: hidden;
  background: white;
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 600;
}

.grx-index .grx-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.grx-index .grx-name {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.grx-index .grx-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.grx-index .grx-cohort-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.grx-index .grx-open {
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 20px;
  transition: transform .16s ease;
}

.grx-index .grx-row:hover .grx-open { transform: translateX(3px); }

.grx-index .grx-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 19px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.grx-index .grx-pager button,
.grx-index .grx-empty button {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 13px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}

.grx-index .grx-pager button:hover:not(:disabled),
.grx-index .grx-empty button:hover { background: var(--raised); border-color: var(--blue); }
.grx-index .grx-pager button:disabled { opacity: .38; cursor: default; }

.grx-index .grx-empty { text-align: center; padding: 36px 12px; border-block: 1px solid var(--line); }
.grx-index .grx-empty h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.grx-index .grx-empty p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

.grx-index .grx-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  color: var(--text);
  background: var(--raised);
  overflow: auto;
  overscroll-behavior: contain;
}

.grx-index .grx-dialog::backdrop { background: rgb(0 0 0 / .61); }
.grx-index .grx-dialog[open] { animation: grx-in .19s ease-out; }
@keyframes grx-in { from { transform: translateX(20px); opacity: .7; } to { transform: none; opacity: 1; } }

.grx-index .grx-drawer-inner { padding: clamp(22px, 6vw, 44px); }
.grx-index .grx-drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grx-index .grx-drawer-top .grx-logo { width: 66px; height: 66px; flex-basis: 66px; border-radius: 12px; }

.grx-index .grx-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.grx-index .grx-close:hover { border-color: var(--blue); color: var(--blue); }
.grx-index .grx-drawer-inner .grx-cohort-label { display: block; color: var(--blue); margin: 24px 0 8px; }
.grx-index .grx-drawer-inner h3 { margin: 0; color: var(--text); font: 600 clamp(32px, 5vw, 44px)/1.04 Georgia, serif; overflow-wrap: anywhere; }
.grx-index .grx-drawer-description { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 20px 0; }

.grx-index .grx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.grx-index .grx-tags span { color: #e0e0e0; background: #333; padding: 4px 9px; border-radius: 5px; font-size: 11px; overflow-wrap: anywhere; }
.grx-index .grx-founders-heading { border-top: 1px solid var(--line); padding-top: 19px; margin: 0 0 8px; color: var(--text); font-size: 14px; }
.grx-index .grx-people { list-style: none; margin: 0; padding: 0; }

.grx-index .grx-person { display: flex; align-items: center; gap: 11px; padding: 10px 0; min-height: 61px; }
.grx-index .grx-person-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.grx-index .grx-person-copy strong { display: block; color: var(--text); font-weight: 600; font-size: 13px; }
.grx-index .grx-person-copy span { display: block; color: var(--muted); font-size: 12px; }
.grx-index .grx-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; filter: grayscale(100%); background: #3a3a3a; font-size: 12px; }
.grx-index .grx-person a { flex: 0 0 auto; color: var(--blue); font-size: 12px; padding: 10px 0 10px 5px; text-decoration: none; }
.grx-index .grx-person a:hover { text-decoration: underline; }
body.grx-dialog-open { overflow: hidden; }

.grx-index .grx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 880px) {
  .grx-index .grx-controls { grid-template-columns: minmax(0, 1fr) minmax(134px, .55fr) minmax(120px, .48fr); gap: 10px; }
  .grx-index .grx-row { gap: 12px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) 61px 19px; }
}

@media (max-width: 620px) {
  .grx-index .grx-intro { grid-template-columns: 1fr; gap: 15px; padding-bottom: 21px; }
  .grx-index .grx-intro p { font-size: 14px; max-width: 330px; }
  .grx-index .grx-controls { padding-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grx-index .grx-search { grid-column: 1 / -1; }
  .grx-index .grx-search input { font-size: 13px; padding-left: 35px; }
  .grx-index .grx-search::before { left: 12px; }
  .grx-index .grx-search::after { left: 23px; }
  .grx-index .grx-row { grid-template-columns: minmax(0, 1fr) 18px; padding: 12px 3px; gap: 6px 10px; }
  .grx-index .grx-identity { grid-column: 1; grid-row: 1; gap: 10px; }
  .grx-index .grx-logo { flex-basis: 39px; width: 39px; height: 39px; border-radius: 7px; }
  .grx-index .grx-name { font-size: 15px; }
  .grx-index .grx-cohort-label { grid-column: 1; grid-row: 3; margin-left: 49px; font-size: 10px; }
  .grx-index .grx-summary { grid-column: 1; grid-row: 2; margin-left: 49px; font-size: 12px; }
  .grx-index .grx-open { grid-column: 2; grid-row: 1; }
  .grx-index .grx-dialog { border: 0; }
  .grx-index .grx-drawer-inner .grx-cohort-label { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grx-index .grx-dialog[open] { animation: none; }
  .grx-index :is(.grx-row, .grx-open) { transition: none; }
}

.grx-index .grx-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (max-width: 991px) {
  .meni-list.grxd-nav-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 70px;
    right: 0;
    width: min(320px, 100vw);
    height: auto;
    padding: 15px 20px;
    background: #1c1c1c;
    border: 1px solid #555;
    z-index: 1001;
  }
  .meni-list.grxd-nav-open .menu-item { display: block; margin: 0; padding: 15px 10px; }
  .meni-list.grxd-nav-open .menu-list-bg { display: none; }
}
