/* Blog page (Blog.qmd): the banner hero, the three newest posts as cards,
   then a filterable, searchable index of every post. Builds on
   home/home.css (fonts, colours, cards) and people-page/people.css
   (banner hero, filters, counts). */

.home a.pchip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.home .pchip::before {
  content: "[ ";
  color: var(--faint);
}

.home .pchip::after {
  content: " ]";
  color: var(--faint);
}

.home .pchip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.home .hero-body > p:last-child {
  margin: 0 0 0 auto;
}

.home .blog .hero-body .fp-lead {
  flex: 1;
  min-width: 260px;
}

/* tools: category filters and grep */
.home .tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.home .tools .filters {
  margin-bottom: 0;
}

.home .grep {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 240px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
}

.home .grep:focus-within {
  border-color: var(--ink);
}

.home .grep input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}

.home .filter-status {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 0;
}

.home .filter-status b {
  color: var(--ink);
  font-weight: 500;
}

.home .fs-clear {
  font: inherit;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.home .brow[hidden],
.home .bgroup[hidden] {
  display: none;
}

.home .blog-list .empty {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  padding: 16px 0;
  margin: 0;
}

/* one post */
.home .bdate {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.home .glyph-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #15161b;
  color: #e9e9ec;
  font-family: var(--mono);
  font-size: 20px;
  border-radius: inherit;
}

.home .btitle {
  font-weight: 650;
  line-height: 1.35;
}

.home .btitle a:hover {
  color: var(--accent);
}

.home .bdesc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.home .btags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}

.home a.btag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

.home a.btag::before {
  content: "#";
}

.home a.btag:hover {
  color: var(--accent);
}

/* ---- latest cards and index rows ---- */

.home .latest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.home .lcard {
  padding-top: 0;
}

.home .lthumb {
  display: block;
  margin: 0 -28px 16px;
  height: 150px;
  overflow: hidden;
  background: #15161b;
}

.home .lthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .lthumb .glyph-tile {
  border-radius: 0;
}

.home .lmeta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 6px;
}

.home .ltitle {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 6px;
}

.home .irow {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.home .irow .btags {
  margin-top: 0;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .home .latest {
    grid-template-columns: minmax(0, 1fr);
  }

  .home .irow {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .home .irow .btags {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* placeholder mark for posts without an image: shown whole on white */
.home .lthumb .ph-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.home .lthumb .ph-tile img {
  width: auto;
  height: 76%;
  object-fit: contain;
}
