/* =========================================================
   Blog (Updates) — additions on top of the theme's .av-update-*
   and .av-detail-* styles in style.css, for the dynamic pages.
   ========================================================= */

/* Banner title on the detail page is a div (the post title is the page's h1). */
.promo-wrap div.display-1 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  line-height: 1.2;
}

/* Card / featured images are now links. */
a.av-update-card-image,
a.av-featured-image {
  display: block;
}

.av-card-main h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.av-card-main h3 a:hover {
  color: var(--primary);
}

a.av-card-label {
  text-decoration: none;
}

/* ---------- Toolbar search ---------- */

.av-update-toolbar {
  flex-wrap: wrap;
  gap: 16px;
}

.av-update-search {
  display: flex;
  align-items: center;
  flex: 0 1 280px;
  border: 1px solid var(--theme-border, #d8dde1);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.av-update-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.av-update-search button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 767px) {
  .av-update-search {
    flex-basis: 100%;
  }
}

/* ---------- Empty state ---------- */

.av-update-empty {
  padding: 70px 20px;
  margin-bottom: 60px;
  border: 1px dashed var(--theme-border, #d8dde1);
  border-radius: 12px;
  text-align: center;
}

.av-update-empty > i {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 18px;
}

.av-update-empty h3 {
  font-family: var(--font-family-headings);
  font-size: 24px;
  margin-bottom: 8px;
}

.av-update-empty p {
  color: #6b7480;
  margin-bottom: 24px;
}

.av-update-empty .av-update-btn {
  display: inline-flex;
}

/* ---------- Post body (admin rich-text output) ---------- */

.av-detail-content h2,
.av-detail-content h4 {
  font-family: var(--font-family-headings);
  color: #071b2b;
  margin: 32px 0 14px;
}

.av-detail-content h4 {
  font-size: 20px;
}

.av-detail-content ol {
  padding-left: 22px;
  margin-bottom: 24px;
}

.av-detail-content ol li {
  margin-bottom: 8px;
}

.av-detail-content > p a,
.av-detail-content li a {
  color: var(--primary);
  text-decoration: underline;
}
