/* ==========================================================================
   Листинг блога и страница автора — новый дизайн
   Разметка: templates/template-blog-v2.php, single-creator-v2.php, template-parts/blog/blog-card.php
   Токены (.bd-single) и .bd-av, .bd-sheet — в blog-single.css
   ========================================================================== */

/* шапка листинга */
.bd-lhead { position: relative; background: var(--bd-ink); color: #fff; overflow: hidden; }
.bd-lhead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 0%, rgba(227,35,32,.22) 0%, rgba(227,35,32,0) 55%);
}
.bd-lhead__crumbs { position: relative; max-width: 1200px; margin: 0 auto; padding: 18px var(--bd-gutter) 0; }
.bd-single .bd-lhead .breadcrumbs { margin: 0; }
.bd-single .bd-lhead .breadcrumbs,
.bd-single .bd-lhead .breadcrumbs * { color: rgba(255,255,255,.85) !important; font-family: var(--bd-sans) !important; font-size: 14px !important; }
.bd-lhead__in { position: relative; max-width: 1200px; margin: 0 auto; padding: 72px var(--bd-gutter) 140px; }
.bd-lhead__title {
  margin: 0 0 16px; max-width: 900px;
  font-family: var(--bd-sans); font-variation-settings: "wdth" 118;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.01em;
  text-transform: none; color: #fff; text-align: left; text-wrap: balance;
}
.bd-lhead__lead { max-width: 620px; margin: 0 0 14px; font-family: var(--bd-serif); font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.82); }
.bd-lhead__count { margin: 0; font-family: var(--bd-sans); font-size: 14px; color: rgba(255,255,255,.6); }

.bd-sheet--listing { padding-top: 48px; }
.bd-listing__title {
  margin: 0 0 24px; font-family: var(--bd-sans); font-variation-settings: "wdth" 112;
  font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--bd-ink); text-transform: none;
}

/* список карточек */
.bd-single .bd-plist {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px;
  margin: 0; padding: 0; list-style: none;
}
.bd-single .bd-plist--featured { grid-template-columns: 1fr; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--bd-line); }

.bd-pcard { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; font-family: var(--bd-sans); }
.bd-pcard__img { aspect-ratio: 4 / 3; margin-bottom: 16px; border-radius: 8px; overflow: hidden; background: var(--bd-tint); }
.bd-pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bd-pcard:hover .bd-pcard__img img { transform: scale(1.04); }
.bd-pcard__body { display: flex; flex-direction: column; flex: 1; }
.bd-single .bd-pcard__title { margin: 0 0 10px; font-family: var(--bd-sans); font-size: 21px; line-height: 1.25; font-weight: 700; text-transform: none; text-wrap: balance; }
.bd-single .bd-pcard__title a { color: var(--bd-ink); text-decoration: none; border: 0; }
.bd-single .bd-pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bd-pcard:hover .bd-pcard__title a { color: var(--bd-red); }
.bd-single .bd-pcard__title a:focus-visible { outline: none; }
.bd-single .bd-pcard:focus-within { outline: 2px solid var(--bd-red); outline-offset: 6px; border-radius: 8px; }
.bd-pcard__excerpt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0 0 14px; font-family: var(--bd-serif); font-size: 16px; line-height: 1.55; color: #4a4345;
}
.bd-pcard__meta { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 14px; color: var(--bd-mut); }
.bd-pcard__av { width: 28px; height: 28px; font-size: 12px; }
.bd-pcard__author { color: var(--bd-ink); font-weight: 600; }
.bd-pcard__meta time::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px 0; border-radius: 50%; background: var(--bd-mut); vertical-align: middle; }

/* первая статья — крупно */
.bd-pcard--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.bd-pcard--featured .bd-pcard__img { aspect-ratio: 16 / 10; margin: 0; }
.bd-single .bd-pcard--featured .bd-pcard__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: 16px; }
.bd-pcard--featured .bd-pcard__excerpt { -webkit-line-clamp: 5; font-size: 18px; margin-bottom: 20px; }
.bd-pcard--featured .bd-pcard__av { width: 36px; height: 36px; }

/* шапка автора */
.bd-lhead--author .bd-lhead__in { padding-top: 48px; }
.bd-ahead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.bd-ahead__photo { display: block; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.bd-ahead__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-ahead .bd-lhead__title { margin-bottom: 8px; }
.bd-ahead__pos { margin: 0 0 16px; font-family: var(--bd-sans); font-size: 17px; color: rgba(255,255,255,.75); }
.bd-ahead__bio { max-width: 680px; font-family: var(--bd-serif); font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88); }
.bd-ahead__bio p { margin: 0 0 12px; }
.bd-ahead__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; font-family: var(--bd-sans); font-size: 14px; color: rgba(255,255,255,.6); }
.bd-ahead__links a { color: #fff; text-decoration: underline; text-decoration-color: var(--bd-red); text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .bd-single .bd-plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-pcard--featured { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 700px) {
  .bd-lhead__in { padding: 44px 16px 96px; }
  .bd-lhead__lead { font-size: 18px; }
  .bd-single .bd-plist { grid-template-columns: 1fr; gap: 36px; }
  .bd-single .bd-plist--featured { margin-bottom: 36px; padding-bottom: 36px; }
  .bd-ahead { grid-template-columns: 1fr; gap: 20px; }
  .bd-ahead__photo { width: 120px; height: 120px; }
  .bd-ahead__bio { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-pcard__img img { transition: none; }
}

/* полоса фона темы между шапкой сайта и тёмной шапкой листинга */
.site-container:has(.bd-listing) { background: #231F20; }
.bd-single.bd-listing { padding-top: 0 !important; background: var(--bd-ground) !important; }

