/* ==========================================================================
   Blog, shared by the listings and single posts: breadcrumbs, the small
   kicker label, chips, author avatars and post cards. Loaded by
   adkory_blog_assets() (inc/blog.php) on blog views only.
   Small text uses Deep Coral (#C7351E), not Coral 500: it keeps AA contrast.
   ========================================================================== */

.adk-main { display: block; }
.adk-blog [hidden] { display: none !important; }

.adk-blog .adk-main a:focus-visible,
.adk-blog .adk-main button:focus-visible {
  outline: 2px solid var(--adk-coral-deep);
  outline-offset: 2px;
}

/* --- Breadcrumbs (Rank Math's trail; the separator is drawn here) ------- */
.adk-crumbs { margin: 0 0 20px; font-size: 13px; line-height: 1.4; color: var(--adk-stone); }
.adk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.adk-crumbs li { display: inline-flex; align-items: center; min-width: 0; margin: 0; }
.adk-crumbs li + li::before { content: "\203A"; margin: 0 9px; color: #A3A19A; }
.adk-crumbs a { color: var(--adk-stone); text-decoration: none; }
.adk-crumbs a:hover { color: var(--adk-ink); text-decoration: underline; text-underline-offset: 3px; }
.adk-crumbs [aria-current] {
  color: var(--adk-body);
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Kicker: the small label above a heading ---------------------------- */
.adk-kicker {
  margin: 0 0 8px;
  font-family: var(--adk-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--adk-coral-deep);
}

/* --- Chips --------------------------------------------------------------- */
.adk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 15px;
  border: 1px solid var(--adk-border);
  border-radius: 999px;
  background: var(--adk-white);
  color: var(--adk-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.adk-chip:hover { border-color: var(--adk-ink); color: var(--adk-ink); }
.adk-chip[aria-current] { background: var(--adk-ink); border-color: var(--adk-ink); color: #fff; }

/* --- Avatars: the author's photo, or a neutral initial ------------------- */
.adk-avatar {
  flex: none;
  width: var(--size, 40px);
  height: var(--size, 40px);
  border-radius: 50%;
  object-fit: cover;
}
.adk-avatar--empty {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--adk-border);
  background: var(--adk-cream);
  color: var(--adk-stone);
  font-size: calc(var(--size, 40px) * .42);
  font-weight: 700;
  line-height: 1;
}

/* --- Post cards (the whole card is clickable through its title link) ---- */
.adk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 32px 28px;
}
.adk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--adk-border);
  border-radius: var(--adk-radius);
  background: var(--adk-white);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.adk-card:hover {
  border-color: var(--adk-gray);
  box-shadow: 0 14px 32px -18px rgba(14, 14, 16, .28);
  transform: translateY(-2px);
}
.adk-card:focus-within { outline: 2px solid var(--adk-coral-deep); outline-offset: 2px; }
.adk-card .adk-card__title a:focus-visible { outline: none; }

/* Every featured image box has the images' own shape (1200x630, 1.91:1), so cover never trims. */
.adk-card__media { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--adk-cream); }
.adk-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.adk-card__media--empty { background: linear-gradient(135deg, var(--adk-cream), var(--adk-paper)); }

.adk-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.adk-card__cat {
  margin: 0;
  font-family: var(--adk-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--adk-coral-deep);
}
.adk-card__title { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.adk-card__title a { color: var(--adk-ink); text-decoration: none; }
.adk-card__title a::after { content: ""; position: absolute; inset: 0; }
.adk-card:hover .adk-card__title a {
  text-decoration: underline;
  text-decoration-color: var(--adk-coral-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.adk-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--adk-body); }
.adk-card__meta { margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--adk-stone); }

/* The large horizontal card (Latest, Start here, a lone Read next): image about 60%, text about 40%.
   The image sets the card's height. The text column doesn't count towards it (contain: size), takes
   the same height, centres its content, and clamps its lines so nothing spills. Below 1024px it's an
   ordinary stacked card. */
@media (min-width: 1024px) {
  .adk-card--featured { display: grid; grid-template-columns: 3fr 2fr; align-items: start; }
  .adk-card--featured .adk-card__body {
    contain: size;
    align-self: stretch;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: clamp(24px, 2.6vw, 40px);
  }
  .adk-card--featured .adk-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.2;
    letter-spacing: -.02em;
  }
  .adk-card--featured .adk-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: clamp(15px, 1.2vw, 17px);
  }
  .adk-card--featured .adk-card__meta { margin-top: 4px; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .adk-card, .adk-chip { transition: none; }
  .adk-card:hover { transform: none; }
}
