/*------------------- SISSA -------------------*/
.card.card-tender {
  /* border-top: 5px solid var(--card-accent, var(--math)); */
  margin-bottom: 2rem;

  .container-info {
    margin-top: 1rem;
    border-top: 1px solid #000;
    padding-top: 1rem;

    > div {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      margin-bottom: 0.8rem;
    }

    .value {
      font-size: 14px;
      font-weight: 500;
      color: #000;
      text-align: right;
      max-width: 50%;
    }
  }

  .card-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
    border-top: 1px solid #c5c7c9;
    padding-top: 1rem;

    .logo-container {
      display: flex;
      align-items: center;
      height: 50px;
      img {
        height: 100%;
        width: auto;
        position: relative;
        bottom: 0px;
      }
    }
  }

  .tender-type-label {
    text-transform: uppercase;
    margin-bottom: .41rem;
    font-weight: 400;
    font-size: 14px;
    color: #333;
  }
}

@media (min-width: 992px) {
  .view-tender-public-blocks-db {
    margin-bottom: 4rem;
    li:last-child:first-child,
    li:last-child {
      border-bottom: 1px solid #000;
    }
  }

  .card.card-tender {
    border-top: 1px solid #000;
    margin-bottom: 0rem;
    border-bottom: 0px;

    .card-body {
      >div:first-child {
        width: 60%;
        flex: 1;
      }

      .container-info {
        width: calc(40% - 2rem);
        border-top: 0px;
        border-left: 1px solid #000;
        border-right: 0px solid #000;
        margin: 0rem 2rem;
        padding: 0rem 2rem;
      }

      .card-bottom {
        min-width: 154px;
        padding: 0;
        margin: 0;
        border: 0px;
        display: flex;
        align-items: flex-start;

        img {
          margin: 1rem 0 0 0;
        }
      }
    }
  }
}

@media (min-width: 1024px) {
  .card.card-tender {
    & .container-info {
      > div {
        margin-bottom: 0.4rem;
      }
    }
  }
}

/* Per-area accent colour (from the `area` prop -> .card-tender--area-<slug>).
   The custom property inherits down to the card accent border (top on mobile,
   left on desktop). Mirrors card-news: token names in global-sissa.css differ
   from the slugs, so map them explicitly; "sissa"/"ilas" have no token and fall
   back to --math. */
.card-tender--area-mathematics {
  --card-accent: var(--math);
}
.card-tender--area-physics {
  --card-accent: var(--phisycs);
}
.card-tender--area-neuroscience,
.card-tender--area-neurobiology {
  --card-accent: var(--neuroscience);
}
