:root {
  --bn-ink: black;
  --bn-ink-muted: #37433d;
  --bn-gold: #d3a34c;
  --bn-gold-soft: #e6c07a;
  --bn-gold-deep: #a8721f;
  --bn-line: rgba(211,163,76,.28);
  --bn-surface-muted: #f7f0e2;
  --bn-cream: #f6f1e4;
  --bn-shadow: 0 10px 26px -16px rgba(14,40,34,.28);
  --bn-ease: cubic-bezier(.4,0,.2,1);
  --bn-max: 1340px;
  
  --bn-font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', serif;
  --bn-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--bn-font-sans);
  color: var(--bn-ink);
  margin: 0;
  padding: 0;
}

.content-area {
  /* Дублируем переменные для независимости блока контента */
  --bn-ink: black;
  --bn-ink-muted: #37433d;
  --bn-gold: #d3a34c;
  --bn-gold-soft: #e6c07a;
  --bn-gold-deep: #a8721f;
  --bn-line: rgba(211,163,76,.28);
  --bn-surface-muted: #f7f0e2;
  --bn-cream: #f6f1e4;

  --bn-font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', serif;
  --bn-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bn-ease: cubic-bezier(.4,0,.2,1);

  /* Базовая типографика для удобного чтения */
  font-family: var(--bn-font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--bn-ink);
  word-wrap: break-word;
}

/* ---------- АБЗАЦЫ И ТЕКСТ ---------- */
.content-area p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.content-area strong, 
.content-area b {
  font-weight: 600;
  color: #000000;
}

/* ---------- ЗАГОЛОВКИ ---------- */
.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
  font-family: var(--bn-font-serif);
  font-weight: 600;
  color: var(--bn-ink);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.content-area h1 { font-size: 2.4em; letter-spacing: -0.02em; }
.content-area h2 { 
  font-size: 1.6em; 
  /* Элегантная линия под H2 для разделения секций статьи */
  border-bottom: 1px solid var(--bn-line);
  padding-bottom: 10px;
}
.content-area h3 { font-size: 1.4em; }
.content-area h4 { font-size: 1.2em; }

/* Убираем отступ у самого первого заголовка на странице */
.content-area > *:first-child {
  margin-top: 0;
}

/* ---------- ССЫЛКИ ---------- */
.content-area a {
  color: var(--bn-gold-deep);
  text-decoration: underline;
  text-decoration-color: var(--bn-gold-soft);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--bn-ease), text-decoration-color 0.2s var(--bn-ease);
}

.content-area a:hover {
  color: var(--bn-ink);
  text-decoration-color: var(--bn-ink);
}

/* ---------- СПИСКИ ---------- */
.content-area ul,
.content-area ol {
  margin-top: 0;
  margin-bottom: 1.5em;
  padding-left: 1.2em;
}

.content-area li {
  margin-bottom: 0.6em;
}

/* Кастомные точки для неупорядоченного списка */
.content-area ul li {
  list-style-type: none;
  position: relative;
}

.content-area ul li::before {
  content: "•";
  color: var(--bn-gold);
  position: absolute;
  left: -1.2em;
  font-size: 1.2em;
  line-height: 1.4;
}

/* Кастомные цифры для нумерованного списка */
.content-area ol li {
  list-style-type: decimal;
}

.content-area ol li::marker {
  color: var(--bn-gold-deep);
  font-weight: 600;
  font-family: var(--bn-font-serif);
}

/* ---------- ЦИТАТЫ (BLOCKQUOTES) ---------- */
.content-area blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 3px solid var(--bn-gold);
  background: var(--bn-surface-muted);
  font-family: var(--bn-font-serif);
  font-size: 1.2em;
  font-style: italic;
  color: var(--bn-ink-muted);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.content-area blockquote p:last-child {
  margin-bottom: 0;
}
/* ---------- ТАБЛИЦЫ ---------- */
.content-area table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5em 0;
  font-size: 0.95em;
  text-align: left;
}

.content-area th,
.content-area td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bn-line);
}

.content-area th {
  font-family: var(--bn-font-serif);
  font-weight: 600;
  color: var(--bn-ink);
  background: var(--bn-surface-muted);
  border-bottom: 2px solid var(--bn-gold);
}

.content-area tr:hover td {
  background: rgba(247, 240, 226, 0.4);
}
@media (max-width: 767px) {
  .content-area table {
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    font-size: 13px;
    table-layout: auto;
  }

  .content-area th,
  .content-area td {
    min-width: 50px;
    padding: 4px 5px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .content-area th {
    font-size: 13px;
  }
}




/* ---------- ИЗОБРАЖЕНИЯ И МЕДИА ---------- */
.content-area img,
.content-area video,
.content-area iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 4px;
}

.content-area figure {
  margin: 2.5em 0;
}

.content-area figure img {
  margin: 0 auto;
}

.content-area figcaption {
  text-align: center;
  font-size: 0.85em;
  color: var(--bn-ink-muted);
  margin-top: 12px;
  font-family: var(--bn-font-sans);
}

/* ---------- КОД И РАЗДЕЛИТЕЛИ ---------- */
.content-area hr {
  border: 0;
  height: 1px;
  background: var(--bn-line);
  margin: 3em 0;
}

/* Инлайн-код */
.content-area code {
  font-family: 'SFMono-Regular', Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--bn-surface-muted);
  color: var(--bn-gold-deep);
  padding: 3px 6px;
  border-radius: 4px;
}

/* Блоки кода */
.content-area pre {
  background: var(--bn-ink-muted);
  color: var(--bn-cream);
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.9em;
}

.content-area pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
/* ---------- КАРТОЧКА ПОСТА В ЛЕНТЕ (content.php) ---------- */
.bissnest-post-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--bn-line);
  padding-bottom: 40px;
}

/* На десктопе, если есть картинка, делаем горизонтальный лейаут (картинка слева, текст справа) */
@media (min-width: 768px) {
  .bissnest-post-card.has-post-thumbnail {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
}

/* Миниатюра */
.bissnest-post-card .post-thumbnail {
  flex-shrink: 0;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .bissnest-post-card.has-post-thumbnail .post-thumbnail {
    width: 45%;
    margin-bottom: 0;
  }
}

.bissnest-post-card .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.3s var(--bn-ease);
}

.bissnest-post-card .post-thumbnail a:hover img {
  opacity: 0.85;
}

/* Контентная часть карточки */
.bissnest-post-card .post-content-wrap {
  flex-grow: 1;
}

/* Категория (рубрика) */
.bissnest-post-card .post-meta-category {
  font-family: var(--bn-font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.bissnest-post-card .post-meta-category a {
  color: var(--bn-gold-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--bn-ease);
}

.bissnest-post-card .post-meta-category a:hover {
  color: var(--bn-ink);
}

/* Заголовок поста */
.bissnest-post-card .entry-title {
  font-family: var(--bn-font-serif);
  font-size: clamp(24px, 3vw, 32px); /* Адаптивный размер */
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px 0;
}

.bissnest-post-card .entry-title a {
  color: var(--bn-ink);
  text-decoration: none;
  transition: color 0.2s var(--bn-ease);
}

.bissnest-post-card .entry-title a:hover {
  color: var(--bn-gold-deep);
}

/* Мета-данные (Дата и Автор) */
.bissnest-post-card .entry-meta {
  font-family: var(--bn-font-sans);
  font-size: 13px;
  color: var(--bn-ink-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bissnest-post-card .entry-meta .byline a {
  color: var(--bn-ink);
  font-weight: 500;
  text-decoration: none;
}
.bissnest-post-card .entry-meta .byline a:hover {
  color: var(--bn-gold-deep);
}

.bissnest-post-card .entry-meta > span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--bn-gold);
}

/* Краткое описание (Excerpt) */
.bissnest-post-card .entry-summary {
  font-family: var(--bn-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bn-ink-muted);
  margin-bottom: 24px;
}

.bissnest-post-card .entry-summary p {
  margin: 0;
}

/* Ссылка "Читать далее" */
.bissnest-post-card .read-more-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--bn-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--bn-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s var(--bn-ease);
}

.bissnest-post-card .read-more-link span {
  margin-left: 6px;
  color: var(--bn-gold-deep);
  transition: transform 0.2s var(--bn-ease);
}

.bissnest-post-card .read-more-link:hover {
  color: var(--bn-gold-deep);
}

.bissnest-post-card .read-more-link:hover span {
  transform: translateX(4px);
}

/* ---------- ПАГИНАЦИЯ (the_posts_pagination) ---------- */
.pagination {
  margin: 60px 0;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bn-line);
  background: transparent;
  color: var(--bn-ink);
  font-family: var(--bn-font-sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s var(--bn-ease);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers:focus {
  border-color: var(--bn-gold-deep);
  color: var(--bn-gold-deep);
}

.nav-links .page-numbers.current {
  background: var(--bn-gold);
  border-color: var(--bn-gold);
  color: #000;
  pointer-events: none;
}

.nav-links .dots {
  border: none;
  background: transparent;
  pointer-events: none;
  color: var(--bn-ink-muted);
}

  .bissnest-footer-widget {
    --bn-ink: black;
    --bn-ink-muted: #37433d;
    --bn-gold: #d3a34c;
    --bn-gold-soft: #e6c07a;
    --bn-gold-deep: #a8721f;
    --bn-line: rgba(211,163,76,.28);
    --bn-line-dark: rgba(246,241,228,.14);
    --bn-surface-muted: #f7f0e2;
 
    --bn-ink-2: #123128;
    --bn-ink-3: #183a2f;
    --bn-cream: #f6f1e4;
    --bn-cream-dim: rgba(246,241,228,.72);
    --bn-cream-faint: rgba(246,241,228,.14);
 
    --bn-ease: cubic-bezier(.4,0,.2,1);
    --bn-max: 1340px;
 
    --bn-font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', serif;
    --bn-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
 
    font-family: var(--bn-font-sans);
    background: var(--bn-ink-2);
    color: var(--bn-cream);
    padding: 70px 0 20px;
  }
 
  .bissnest-footer-widget,
  .bissnest-footer-widget * { box-sizing: border-box; }
  .bissnest-footer-widget a { color: inherit; text-decoration: none; transition: color .2s var(--bn-ease); }
  .bissnest-footer-widget a:hover { color: var(--bn-gold-soft); }
  .bissnest-footer-widget .wrap { max-width: var(--bn-max); margin: 0 auto; padding: 0 15px; }
 
  .bissnest-footer-widget .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
 
  .bissnest-footer-widget .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
 
  .bissnest-footer-widget .logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
  }
  .bissnest-footer-widget .logo-mark { display: flex; width: 34px; height: 34px; flex-shrink: 0; }
  .bissnest-footer-widget .logo-text { display: flex; flex-direction: column; line-height: 1; }
  .bissnest-footer-widget .logo-word {
    font-family: var(--bn-font-serif);
    font-weight: 600;
    font-size: clamp(24px, 2.8vw, 29px);
    letter-spacing: .2px;
    color: var(--bn-cream);
  }
  .bissnest-footer-widget .logo-tag {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bn-gold);
    letter-spacing: .4px;
    font-family: var(--bn-font-serif);
    margin-left: 2px;
  }
 
  .bissnest-footer-widget .brand-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bn-cream-dim);
    max-width: 320px;
    margin: 0 0 28px 0;
  }
 
  .bissnest-footer-widget .footer-title {
    font-family: var(--bn-font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--bn-cream);
    margin: 0 0 24px 0;
  }
 
  .bissnest-footer-widget .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .bissnest-footer-widget .footer-links a {
    font-size: 15px;
    color: var(--bn-cream-dim);
  }
  .bissnest-footer-widget .footer-links a:hover {
    color: var(--bn-gold-soft);
  }
 
  .bissnest-footer-widget .footer-bottom {
    border-top: 1px solid var(--bn-line-dark);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
 
  .bissnest-footer-widget .copyright {
    font-size: 14px;
    color: var(--bn-cream-dim);
    margin: 0;
  }
 
  .bissnest-footer-widget .social-links {
    display: flex;
    gap: 12px;
  }
  .bissnest-footer-widget .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bn-ink-3);
    color: var(--bn-cream);
    transition: background .2s var(--bn-ease), color .2s var(--bn-ease), transform .2s var(--bn-ease);
  }
  .bissnest-footer-widget .social-links a:hover {
    background: var(--bn-gold);
    color: var(--bn-ink);
    transform: translateY(-2px);
  }
 
  /* Форма подписки на рассылку */
  .bissnest-footer-widget .newsletter-form {
    display: flex;
    width: 100%;
    max-width: 320px;
  }
  .bissnest-footer-widget .newsletter-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--bn-line-dark);
    border-radius: 4px 0 0 4px;
    background: rgba(255,255,255,0.03);
    color: var(--bn-cream);
    font-family: var(--bn-font-sans);
    font-size: 15px;
    transition: border-color .25s var(--bn-ease), background .25s var(--bn-ease);
  }
  .bissnest-footer-widget .newsletter-input:focus {
    outline: none;
    border-color: var(--bn-gold);
    background: rgba(255,255,255,0.06);
  }
  .bissnest-footer-widget .newsletter-input::placeholder {
    color: var(--bn-cream-faint);
  }
  .bissnest-footer-widget .newsletter-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    background: var(--bn-gold);
    color: var(--bn-ink);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: none;
    transition: background .18s var(--bn-ease);
  }
  .bissnest-footer-widget .newsletter-btn:hover {
    background: var(--bn-gold-soft);
  }
 
  /* Адаптивность футера */
  @media (max-width: 1024px) {
    .bissnest-footer-widget .footer-grid {
      grid-template-columns: 1.5fr 1fr 1fr;
    }
    .bissnest-footer-widget .footer-brand {
      grid-column: 1 / -1;
    }
  }
  @media (max-width: 768px) {
    .bissnest-footer-widget .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }
    .bissnest-footer-widget .newsletter-form {
      max-width: 400px;
    }
  }
  @media (max-width: 500px) {
    .bissnest-footer-widget .footer-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .bissnest-footer-widget .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
    }
  }
