/* Innovation Capital II's own, on the old site's pages (scripts/old-site.ts). */

/* The way back, in the new site's navy, at the right of the old menu's bar:
   the header is the page's width and relative, and its menu ends 350px or
   more from the right at every width the page is drawn at (980 and over). */
.ic2-back {
  position: absolute;
  z-index: 60;
  top: 59px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  background: #0e1d40;
  box-shadow: 0 6px 18px rgb(14 29 64 / 0.25);
  color: #ffffff;
  font: 700 17px/1.2 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.ic2-back:hover {
  background: #1b3570;
}

.ic2-back:focus-visible {
  outline: 3px solid #1b78d0;
  outline-offset: 3px;
}

.ic2-back__arrow {
  font-size: 1.15em;
  line-height: 1;
}

/* A phone draws the 980-pixel page at about 0.4: there the button waits in
   the screen's corner, drawn large enough to read at that scale. (The
   screen's own width: the one question a page fitted to 980 cannot ask its
   viewport.) */
@media (max-device-width: 640px) {
  .ic2-back {
    position: fixed;
    top: auto;
    right: 28px;
    bottom: 36px;
    min-height: 96px;
    padding: 0 34px;
    gap: 16px;
    border-radius: 16px;
    font-size: 32px;
  }
}

/* The home page's team (its column strip, comp-ko2obgdf): five photos of
   220px, each in a fifth of the page and placed for a wide one, ran into each
   other below 1440px — and a phone draws the page at 980 — and each name and
   title stood where Wix had nudged it (from 40px left to 48px right of its
   photo, Angel's title higher, Tanya's photo lower). One rhythm for the five:
   each photo as wide as its column allows, up to its 220px, centred, at the
   same height; under it the name, then the title, centred on it. */
#comp-ko2obgdf .wixui-column-strip__column [data-mesh-id$='inlineContent-gridContainer'] {
  grid-template-rows: auto auto 1fr !important;
}

#comp-ko2obgdf .wixui-column-strip__column .wixui-image {
  justify-self: center !important;
  width: min(220px, calc(100% - 20px)) !important;
  height: auto !important;
  aspect-ratio: 1;
  margin: 15px auto 0 !important;
  left: auto !important;
}

#comp-ko2obgdf .wixui-column-strip__column .wixui-image > div,
#comp-ko2obgdf .wixui-column-strip__column .wixui-image img {
  width: 100% !important;
  height: 100% !important;
}

#comp-ko2obgdf .wixui-column-strip__column .wixui-rich-text {
  justify-self: center !important;
  width: min(181px, calc(100% - 16px)) !important;
  margin-inline: auto !important;
  left: auto !important;
}

/* Each name on its two lines, as Wix's 181px broke them, in boxes of one height. */
#comp-ko2obgdn, #comp-ko2obgds, #comp-ko2obgdy3, #comp-ko2obge6, #comp-lwq2pl1q1 {
  min-height: 52px !important;
  margin: 24px auto 0 !important;
}

#comp-ko2obgdo, #comp-ko2obgdt1, #comp-ko2obge01, #comp-ko2obge71, #comp-lwq2pl1r3 {
  margin: 16px auto 0 !important;
}

/* Vassil's title set its two lines closer than the other four. */
#comp-ko2obgdo p, #comp-ko2obgdt1 p, #comp-ko2obge01 p, #comp-ko2obge71 p, #comp-lwq2pl1r3 p {
  line-height: 1.67 !important;
}

/* The home page's investment tracks (comp-ko2obgep): each column's words in
   a box of 308-338px, wider than the column below 1440px, which cut them at
   both sides. Never wider than the column, centred in it. */
#comp-ko2obgep .wixui-column-strip__column .wixui-rich-text {
  max-width: calc(100% - 36px) !important;
  justify-self: center !important;
  margin-inline: auto !important;
}

/* The portfolio's filters (portfolio.js): its industries a list of the
   page's own, the chevron beside it only drawn; "All Companies" or "Exits",
   the one chosen dark; a row filtered out gone; "Not Found" only when
   nothing is left. */
select.ic2-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

[data-ic2-industry] ~ div {
  pointer-events: none;
}

.wixui-selection-tags__option:has(> input:checked) {
  background: #393e44 !important;
  color: #ffffff !important;
}

.wixui-selection-tags__option:has(> input:focus-visible) {
  outline: 2px solid #393e44;
  outline-offset: 3px;
}

tr[data-ic2-status][hidden] {
  display: none !important;
}

[data-ic2-empty]:not([data-shown]) {
  visibility: hidden !important;
}

[data-ic2-empty][data-shown] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* The contact form never sent without Wix: hidden, and on the home page
   (Get in Touch, comp-ko2obgj3) its half of the strip with it — the address
   and the email across the whole of it, centred. */
form.wixui-form,
#comp-ko2obgjb1 {
  display: none !important;
}

#comp-ko2obgj5 {
  flex: 1 1 100% !important;
}

/* …as tall as its words, and without the empty strip under it
   (comp-ko2obgno) that only drew the form's box longer. */
[data-mesh-id='comp-ko2obgj5inlineContent-gridContainer'] {
  min-height: 0 !important;
  padding-bottom: 64px;
}

#comp-ko2obgno {
  display: none !important;
}

/* What held the form's height in the page (comp-la11f53i4's 1027px, and
   comp-ko2obgiu and its column's), as tall as what is left: the strip, the
   socials and the partners' logos. */
[data-mesh-id='comp-la11f53i4inlineContent-gridContainer'] {
  min-height: 0 !important;
}

#comp-ko2obgiu,
#comp-ko2obgix {
  height: auto !important;
  min-height: 0 !important;
}

#comp-ko2obgj3 {
  margin-bottom: 28px !important;
}

#comp-ko2obgj5 .wixui-rich-text {
  justify-self: center !important;
  margin-inline: auto !important;
}

/* The Annual Review's chart, a picture of itself where its frame stood. */
.ic2-embed {
  display: block;
  width: 100%;
  height: auto;
}
