/* ---------------------------------------------------------------------------
   Site-specific styles.

   Loaded after the Wowchemy theme stylesheet, so everything here is an
   intentional override. Keep this file small; prefer theme classes first.
   --------------------------------------------------------------------------- */

/* "CV" mark in the profile icon row (Font Awesome has no CV glyph). */
.cv-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

/* Publication thumbnails. The theme caps `.stream-item img` at 150px wide,
   so this selector has to be at least as specific to win. */
.stream-item img.pub-thumb {
  width: 200px;
  max-width: 100%;
  height: 150px;
  object-fit: fill;
}

@media (max-width: 575.98px) {
  .stream-item img.pub-thumb {
    width: 120px;
    height: 90px;
  }
}

/* Google Maps embed in the contact section. */
.map-embed {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* Search box above the topic filter. Transparent background and inherited text
   colour let one rule serve both the light and the dark palette. */
.pub-search {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: inherit;
  background-color: transparent;
  border: 2px solid rgba(128, 128, 128, 0.45);
  border-radius: 0.25rem;
}

.pub-search:focus {
  outline: 0;
  border-color: #08c;
}

.pub-search::placeholder {
  color: inherit;
  opacity: 0.55;
}

/* Shown only when search and topic together leave nothing. */
.pub-empty {
  opacity: 0.7;
  font-style: italic;
}

/* Topic filter above the publication list. Sized up from the theme's default
   button so the categories read as a primary control rather than a footnote. */
.pub-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pub-filter .btn {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-width: 2px;
}

.pub-filter-count {
  opacity: 0.7;
  font-size: 0.9em;
  font-weight: 400;
}

@media (max-width: 575.98px) {
  .pub-filter {
    gap: 0.45rem;
  }

  .pub-filter .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
  }
}

/* Bootstrap sets `display: flex` on `.media`, which outranks the browser's
   default `[hidden] { display: none }`. Filtered-out papers need this. */
.stream-item[hidden] {
  display: none !important;
}

/* Linked publication titles. The theme already shifts them to the accent colour
   on hover; suppress only the dark-mode underline so headings read as headings
   until pointed at. */
.stream-item .article-title a {
  text-decoration: none;
}

.stream-item .article-title a:hover,
.stream-item .article-title a:focus {
  text-decoration: underline;
}
