/* The Company tab's "Technology stack" section (pitchiq#828): brief-company-tech.jsx. Every value is Figma's
   (Evolve Edge: preview 609:2465, sheet content 521:8941, no search results 571:18639), through the shell's tokens
   where one equals it. */

/* An exported icon file at its own size, placed by its slot's modifier. */
.ebct-icon { position: relative; display: inline-block; flex: none; }
.ebct-icon > img { position: absolute; display: block; max-width: none; }

/* ---------- Preview card — 482:6272 (Content), 609:2352 (Empty) ---------- */
.ebct-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 20px;
  background: var(--evsh-white);
  box-shadow: 0 4px 8px 0 rgba(0, 32, 47, 0.1);   /* the prototype's card surface (pitchiq#908) */
  font-family: var(--evsh-font);
}

/* Technology categories — prototype `.tech-preview` (pitchiq#908): the categories one under the other, each closed by
   a rule from edge to edge of the card, then the View all bar 12px below. */
.ebct-preview { display: flex; flex-direction: column; padding: 0 16px 12px; }
.ebct-preview > .ebci-view-all { margin-top: 12px; }

/* Technology category — prototype `.tech-preview-group`: a 180px name column, then the technologies in two columns. */
.ebct-category {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  margin: 0 -16px;
  padding: 16px;
  border-bottom: 1px solid var(--evsh-bg-light-blue);
}
.ebct-category-label { display: flex; align-items: center; gap: 4px; align-self: start; min-width: 0; }
.ebct-category-name {   /* body/body-3 */
  overflow: hidden;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--evsh-neutral-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Category count — 482:6236 */
.ebct-badge {
  flex: none;
  box-sizing: border-box;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--evsh-neutral-blue-4);
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
  color: var(--evsh-neutral-blue-1);
  text-align: center;
}

/* Technology list — prototype `.tech-preview-grid`: two equal columns */
.ebct-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; padding: 0; list-style: none; }
/* Technology item — prototype `.technology-record` */
.ebct-record { display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-width: 0; }
.ebct-record-text { display: flex; flex: 1 0 0; flex-direction: column; align-items: flex-start; min-width: 0; }
.ebct-record-name {   /* subtitle/subtitle-3 */
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--evsh-neutral-1);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ebct-record-category {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--evsh-neutral-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* "[remaining]+ technologies" — 482:6223 */
.ebct-record--remaining { align-items: stretch; }
.ebct-remaining {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ebct-remaining:focus-visible { outline: 2px solid var(--evsh-blue-1); outline-offset: -2px; }
.ebct-remaining-tile { position: relative; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--evsh-neutral-blue-4); }
.ebct-remaining-label { font-size: 14px; line-height: 18px; font-weight: 400; color: var(--evsh-neutral-2); white-space: nowrap; }   /* body/body-3 */
/* The 24px icon slot sits 4px in; the file is the vertical dots (4.38 × 16.38), drawn turned a quarter as in Figma. */
.ebct-icon--more { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; }
.ebct-icon--more > img { left: 50%; top: 50%; width: 4.38px; height: 16.38px; transform: translate(-50%, -50%) rotate(90deg); }

/* ---------- Side sheet content — 521:8941 ---------- */
/* `--ebct-sheet-inset` and `--ebct-sheet-top` are the side and top padding of the sheet's scrolling content
   (`.ebci-sheet-content`: 28px and 24px; 16px and 20px at 700px and narrower); `--ebct-dock-pad` is the space above
   and under the search inside its surface. */
.ebct-sheet { --ebct-sheet-inset: 28px; --ebct-sheet-top: 24px; --ebct-dock-pad: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; font-family: var(--evsh-font); }

/* The search's surface (pitchiq#914 item 3). At the top of the sheet it is invisible and the search sits where it
   always did: 16px under the content's padding, 16px above the results. It is sticky inside the sheet's own
   scrolling content, so once the content scrolls it stops under the title: an opaque white band from edge to edge
   of the sheet, closed by the header's rule, while the title's own rule goes (the header has grown by one row).
   The band always has the same box, so nothing moves when it changes state, and the input is never redrawn. */
.ebct-search-dock {
  position: sticky;
  top: calc(-1 * var(--ebct-sheet-top));   /* sticky offsets count from inside the scroller's padding: up to the header */
  z-index: 1;
  margin: calc(16px - var(--ebct-dock-pad)) calc(-1 * var(--ebct-sheet-inset)) calc(-1px - var(--ebct-dock-pad));
  padding: var(--ebct-dock-pad) var(--ebct-sheet-inset);
  border-bottom: 1px solid transparent;
  background: var(--evsh-white);
}
.ebct-search-dock--in-header { border-bottom-color: var(--evsh-bg-light-blue); }
.ebci-sheet:has(.ebct-search-dock--in-header) > .ebci-sheet-header { border-bottom-color: transparent; }

/* Search — 571:19940 */
.ebct-search {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 38px;                    /* prototype: a 38px field 16px under the sheet's padding, the icon 8px in */
  padding: 0 10.5px 0 6.5px;
  border: 1.5px solid var(--evsh-neutral-4);
  border-radius: 12px;
  background: var(--evsh-white);
  cursor: text;
}
.ebct-search:focus-within { border-color: var(--evsh-blue-1); }
.ebct-search-icon { position: relative; flex: none; width: 20px; height: 20px; }
/* The 16px icon is centred in a 20px slot that sits 1px down; the file is 15.7858 square, 0.107px in. */
.ebct-icon--search { position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; }
.ebct-icon--search > img { left: 0.107px; top: 0.107px; width: 15.7858px; height: 15.7857px; }
.ebct-search-input {   /* body/body-2 */
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--evsh-neutral-1);
}
.ebct-search-input::placeholder { color: var(--evsh-neutral-3); opacity: 1; }

/* Status — 521:7691 */
.ebct-status { margin: 0; padding: 0 4px; font-size: 12px; line-height: 20px; font-weight: 400; color: var(--evsh-neutral-2); white-space: nowrap; }

/* Technology categories — 521:7693; Accordion — 521:7694 */
.ebct-accordions { display: flex; flex-direction: column; gap: 16px; }
.ebct-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 16px 16px;
  border: 1px solid var(--evsh-bg-light-blue);   /* pitchiq#914 item 2: the light rule and no shadow, collapsed and expanded alike */
  border-radius: 18px;
  background: var(--evsh-white);
  scroll-margin-top: var(--ebct-below-dock);
}
.ebct-accordion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--evsh-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ebct-accordion--expanded > .ebct-accordion-header { padding-bottom: 13px; border-bottom: 1px solid var(--evsh-bg-light-blue); }
/* A category brought into view (opened for it, or reached with the keyboard) stops 16px under the search's band
   (its padding twice, the 38px field and its rule), not behind it. */
.ebct-accordions { --ebct-below-dock: calc(2 * var(--ebct-dock-pad) + 38px + 1px + 16px); }
.ebct-accordion-header { scroll-margin-top: var(--ebct-below-dock); }
.ebct-accordion-header:focus-visible { outline: 2px solid var(--evsh-blue-1); outline-offset: 2px; }
.ebct-accordion-title {   /* subtitle/subtitle-2 */
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: var(--evsh-neutral-1);
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* The chevron (20px) closes the row, 4px from the edge; it points down when collapsed and up when expanded. */
.ebct-icon--chevron { width: 20px; height: 20px; margin-left: auto; margin-right: 4px; }
.ebct-icon--chevron > img { left: 0; top: 0; width: 20px; height: 20px; }
.ebct-accordion--expanded .ebct-icon--chevron { transform: rotate(180deg); }

/* Technology table — 521:7720 */
.ebct-table { display: flex; flex-direction: column; overflow: hidden; }
/* Prototype's table: 29% / 47% / the rest, 12px between columns, a 32px heading row and 56px rows ruled above. */
.ebct-table-header { display: flex; align-items: flex-start; box-sizing: border-box; height: 32px; background: var(--evsh-white); }
.ebct-table-heading { flex: 1 0 0; box-sizing: border-box; min-width: 0; padding-right: 12px; font-size: 12px; line-height: 18px; font-weight: 900; color: var(--evsh-neutral-2); white-space: nowrap; }
.ebct-table-row { display: flex; align-items: center; box-sizing: border-box; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--evsh-bg-light-blue); }
.ebct-table-heading:nth-child(1), .ebct-table-cell:nth-child(1) { flex: 0 0 29%; }
.ebct-table-heading:nth-child(2), .ebct-table-cell:nth-child(2) { flex: 0 0 47%; }
.ebct-table-heading:last-child, .ebct-table-cell:last-child { padding-right: 0; }
.ebct-table-cell {   /* body/body-3 */
  flex: 1 0 0;
  box-sizing: border-box;
  min-width: 0;
  padding-right: 12px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--evsh-neutral-2);
  overflow-wrap: anywhere;
}
.ebct-table-cell--technology { display: flex; align-items: center; gap: 12px; }
.ebct-table-name { flex: 1 0 0; min-width: 0; color: var(--evsh-neutral-1); overflow-wrap: anywhere; }

/* No results found — 571:18639 */
.ebct-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 196px;
  padding: 24px 16px 48px;   /* 24/16/16 around the state, plus the state's own 32 below */
}
.ebct-icon--no-results { width: 24px; height: 24px; }
.ebct-icon--no-results > img { left: 0; top: 0; width: 24px; height: 24px; }
.ebct-no-results-text { margin: 0; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--evsh-neutral-blue-2); white-space: nowrap; }

/* Narrower columns (prototype, 1279px and below): the category's name above its technologies. */
@media (max-width: 1279px) {
  .ebct-category { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* 700px and narrower (prototype; pitchiq#908): smaller records, 16 apart. */
@media (max-width: 700px) {
  .ebct-sheet { --ebct-sheet-inset: 16px; --ebct-sheet-top: 20px; }   /* the sheet's content padding there (brief-company.css) */
  /* The sheet's table (prototype `.technology-accordion table { min-width: 470px }`): on a phone it keeps a readable
     width and scrolls sideways inside its category, so no technology name breaks in the middle of a word. */
  .ebct-table { overflow-x: auto; }
  .ebct-table-header, .ebct-table-row { min-width: 470px; }
  .ebct-table-cell { font-size: 12px; }
  .ebct-category-name { font-size: 13px; }
  .ebct-records { gap: 16px; }
  .ebct-record-name { font-size: 13px; }
  .ebct-record-category { max-width: 130px; font-size: 10px; }
  .ebct-record .ebci-avatar { width: 28px; height: 28px; }
}
