/* Personal branding for the blog. Loaded by both the private library and the
   public blog-only build. */

/* Accent colour carried over from the old blog */
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #3220f7;
  --md-primary-fg-color--light: #5a4cf9;
  --md-primary-fg-color--dark: #2415c4;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
}
[data-md-color-accent="custom"] {
  --md-accent-fg-color: #3220f7;
}
[data-md-color-scheme="slate"][data-md-color-accent="custom"] {
  --md-accent-fg-color: #8f85ff;
  --md-typeset-a-color: #8f85ff;
}

/* Header banner on the blog home page */
.blog-hero {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1.6rem;
  padding: 2rem 1.4rem;
  border-radius: 0.4rem;
  color: #ffffff;
  background: linear-gradient(rgba(10, 12, 30, 0.62), rgba(10, 12, 30, 0.62)),
    url("header.jpg") center / cover no-repeat;
}
.blog-hero img.blog-avatar {
  width: 6.5rem;
  height: 6.5rem;
  flex: none;
  border-radius: 50%;
  border: 0.15rem solid rgba(255, 255, 255, 0.85);
}
.blog-hero .blog-hero-name {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}
.blog-hero .blog-hero-tagline {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}
.blog-hero .blog-hero-links a {
  margin-right: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
}
.blog-hero .blog-hero-text {
  flex: 1 1 auto;
  min-width: 12rem;
}
.blog-hero .blog-hero-name { white-space: nowrap; }
.blog-hero .blog-badges {
  /* eight badges: two even rows of four */
  display: grid;
  grid-template-columns: repeat(4, 3.3rem);
  gap: 0.4rem;
  flex: none;
}
.blog-hero .blog-badges a {
  display: block;
  width: 3.3rem;
  height: 3.3rem;
  padding: 0.15rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
}
.blog-hero .blog-badges img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.blog-hero .blog-badges a:hover { transform: scale(1.08); }
@media (max-width: 960px) {
  .blog-hero { flex-wrap: wrap; }
  .blog-hero .blog-badges { margin-top: 0.4rem; }
}
@media (max-width: 600px) {
  .blog-hero { flex-direction: column; text-align: center; padding: 1.4rem 1rem; }
  .blog-hero .blog-hero-text { min-width: 0; }
  .blog-hero .blog-badges { justify-content: center; grid-template-columns: repeat(4, 3rem); }
}

/* The page title is in the banner on the home page */
.blog-home-title { display: none; }
