/* Additions on top of Blowfish's compiled CSS for Micro.blog-specific markup.
   Keep this small: anything Blowfish already styles should use its classes. */

/* Square tiles on the photos page */
.photo-tile {
  aspect-ratio: 1 / 1;
}

/* Micro.blog post images arrive inline in the content with fixed sizes */
.e-content img {
  height: auto;
  max-width: 100%;
  border-radius: 0.375rem;
}

/* Untitled microposts: keep paragraph spacing tight in lists */
.h-feed .e-content > p:first-child {
  margin-top: 0;
}
.h-feed .e-content > p:last-child {
  margin-bottom: 0;
}

/* Cards in category lists: lift slightly on hover */
.article-link--card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.article-link--card:hover {
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.25);
  border-color: rgba(var(--color-primary-400), 1);
}

/* Play badge over video thumbnails */
.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.5rem;
  height: 3.5rem;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.media-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #fff;
}

/* Embedded players (SoundCloud etc.) at the top of a card */
.card-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Search: highlighted matches and scope radios */
.search-results mark {
  background-color: rgba(var(--color-primary-200), 1);
  color: inherit;
  border-radius: 0.125rem;
}
.dark .search-results mark {
  background-color: rgba(var(--color-primary-800), 1);
}
.search-scope input {
  accent-color: rgba(var(--color-primary-600), 1);
}
/* Page title with the search box beside it (stacked on small screens) */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-header .search {
  width: 100%;
  max-width: 24rem;
}
@media (min-width: 768px) {
  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-header .search {
    flex: none;
    width: 18rem;
  }
}

/* The input sits inside a bordered box; draw focus on the box instead */
.search input[type="search"] {
  border: 0;
  box-shadow: none;
  outline: none;
}
.search form:focus-within {
  border-color: rgba(var(--color-primary-500), 1);
  box-shadow: 0 0 0 1px rgba(var(--color-primary-500), 1);
}

/* Name on the home page is a link for h-card, but shouldn't look like one */
.h-card .p-name a {
  color: inherit;
  text-decoration: none;
}
