/* Additions on top of the template's styles.css */

/* Company logos in the Experience list: a square tile sized to the
   title + company lines beside it. */
.company-logo {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  margin-right: 1.25rem;
  padding: 0.45rem;
  border: 1px solid #dee2e6;
  border-radius: 0.6rem;
  background-color: #fff;
  object-fit: contain;
}

/* Logos that are already a full square tile (app-icon style) fill the box. */
.company-logo.company-logo-fill {
  padding: 0;
  border: 0;
}

/* Wide banner logos use the tile's full width. */
.company-logo.company-logo-wide {
  padding-left: 0;
  padding-right: 0;
}

/* Nearly full width, with a sliver of side padding. */
.company-logo.company-logo-snug {
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

/* Patent and publication links: no underline unless hovered. */
#patents a {
  text-decoration: none;
}
#patents a:hover,
#patents a:focus {
  text-decoration: underline;
}

/* Logos pre-rendered at exact tile size (62px inside the border, with
   1x/2x/3x files) carry their own margins, so the browser draws them 1:1. */
.company-logo.company-logo-raster {
  padding: 0;
}

/* Logos made for a dark background. */
.company-logo.company-logo-dark {
  background-color: #000;
  border-color: #000;
}

/* Carnegie Mellon: white wordmark on Carnegie Red, as cmu.edu shows it. */
.company-logo.company-logo-red {
  background-color: #c41230;
  border-color: #c41230;
}

/* On narrow screens the dates drop below the title; line them up with the
   text instead of the logo (tile width + gap). */
@media (max-width: 767.98px) {
  #experience .flex-shrink-0,
  #education .flex-shrink-0 {
    margin-left: 5.25rem;
    margin-top: -0.75rem;
  }
  /* Education entries end without the subheading's bottom margin. */
  #education .flex-shrink-0 {
    margin-top: 0.25rem;
  }
}
