/* ==================================================
   BidApp24 Cluster CSS (clean, deduped, stable)
   ================================================== */

/* ================================
   1) Typography + links (posts)
   ================================ */
.single-post .entry-content{font-size:16px;line-height:1.75;color:#555;}
.single-post .entry-content p{margin:0 0 1em;}
.single-post .entry-content h2{font-size:28px;line-height:1.25;margin:1.6em 0 .6em;color:#343a40;}
.single-post .entry-content h3{font-size:1.1em;line-height:1.3;margin:0 0 10px;padding-bottom:5px;border-bottom:1px solid #ddd;color:#343a40;}
.single-post .entry-content h4{font-size:1.1em;line-height:1.3;margin:0 0 10px;color:#0d47a1;}
.single-post .entry-content a{color:#0b63ce;text-decoration:none;font-weight:700;}
.single-post .entry-content a:hover{color:#084ea4;text-decoration:underline;}
.single-post .entry-content hr{border:0;height:1px;background:#eee;margin:30px 0;}
.single-post .entry-content figcaption{font-size:.95em;color:#555;}

/* Keep CTA link style stable */
.single-post .entry-content .bidapp24-cta__btn,
.single-post .entry-content .bidapp24-cta__btn:hover,
.single-post .entry-content .bidapp24-cta__btn:focus,
.single-post .entry-content .bidapp24-cta__btn:active{ text-decoration:none !important; }

/* WP button blocks (leave) */
.single-post .entry-content a.wp-block-button__link,
.single-post .entry-content a.wp-block-button__link:hover,
.single-post .entry-content a.wp-block-button__link:focus,
.single-post .entry-content a.wp-block-button__link:active{color:#fff !important;text-decoration:none !important;}

/* ================================
   2) Lists
   ================================ */
.single-post .entry-content :where(ul,ol){margin:12px 0 18px;}
.single-post .entry-content :where(ul,ol):not(.bidapp24-toc__list) > li::before{content:none;display:none;}
.single-post .entry-content ul:not(.bidapp24-toc__list){list-style:disc outside;padding-left:1.25em;}
.single-post .entry-content ol:not(.bidapp24-toc__list){list-style:decimal outside;padding-left:1.25em;}
.single-post .entry-content :where(ul,ol):not(.bidapp24-toc__list) > li{padding-left:0px;margin:0 0 10px;}
.single-post .entry-content :where(ul,ol):not(.bidapp24-toc__list) > li::marker{color:#555;}

/* ================================
   3) AdFox wrapper
   ================================ */
.bidapp24-adfox{margin:22px 0;min-height:90px;}

/* ================================
   4) CTA (single standard = PRIMARY)
   ================================ */
.bidapp24-cta{background:#2c3e50;color:#fff;padding:28px 22px;margin:28px 0;text-align:center;}
.bidapp24-cta__title{margin:0 0 14px;color:#fff;font-size:1.6em;}
.bidapp24-cta__text{font-size:1.1em;line-height:1.6;max-width:650px;margin:0 auto 16px;}
.bidapp24-cta__icon{display:inline-flex;}
.bidapp24-cta__note{margin:10px 0 0;opacity:.85;}

/* Fix: CTA title must stay white */
.bidapp24-cta .bidapp24-cta__title,
.bidapp24-cta h3.bidapp24-cta__title{
  color:#fff !important;border:none !important;background:none !important;padding:0;margin:0 0 14px;
}

/* CTA button geometry */
.bidapp24-cta .bidapp24-cta__btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:12px;border:2px solid transparent;
  text-decoration:none !important;font-weight:700;line-height:1.1;cursor:pointer;
  transition:background-color .2s ease, transform .2s ease, outline-color .2s ease;
  transform:scale(1);
}
.bidapp24-cta .bidapp24-cta__btn:hover,
.bidapp24-cta .bidapp24-cta__btn:focus{transform:scale(1.05);text-decoration:none;}
.bidapp24-cta .bidapp24-cta__icon{display:inline-flex;width:20px;height:20px;}
.bidapp24-cta .bidapp24-cta__btn svg{stroke:currentColor;}

/* PRIMARY colors */
.bidapp24-cta .bidapp24-cta__btn{
  background:#b45309;
  color:#fff !important;
  border-color:transparent;
}
.bidapp24-cta .bidapp24-cta__btn:hover,
.bidapp24-cta .bidapp24-cta__btn:focus{
  background:#92400e;
  color:#fff !important;
  outline:2px solid rgba(255,255,255,.55);
  outline-offset:2px;
}
/* Legacy variant classes (no visual change) */
.bidapp24-cta--secondary .bidapp24-cta__btn,
.bidapp24-cta--ghost .bidapp24-cta__btn{
  background:#b45309;
  color:#fff !important;
  border-color:transparent;
}

/* CTA note spacing */
.bidapp24-cta .bidapp24-cta__btn{ margin-bottom:12px !important; }
.bidapp24-cta__note{ margin:0 !important; display:block; line-height:1.2; }
.bidapp24-cta__note small{ display:block; font-size:13px; line-height:1.2; }
.bidapp24-cta__note em{ font-style:italic; }

/* ================================
   5) TABLE (BidApp24) — responsive
   ================================ */
.bidapp24-table-wrap{ margin:22px 0; }
.bidapp24-table{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  padding:5px;
  background:#fff;
}
.bidapp24-table > table{
  width:100%;
  min-width: var(--bidapp24-table-minw, 800px);
  border-collapse: collapse;
  font-size:.95em;
  line-height:1.5;
}
.bidapp24-table > table th,
.bidapp24-table > table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
  vertical-align: top;
}
.bidapp24-table > table thead th{
  font-weight:700;
  border-bottom:1px solid rgba(0,0,0,.14);
}
.bidapp24-table-note{
  margin:8px 0 0;
  font-size:13px;
  line-height:1.2;
  opacity:1;
  color:#4b5563;
  text-align:right;
  font-style:italic;
}

/* ================================
   6) HUB themes (category accents)
   ================================ */
body.category-b2b .bidapp24-note,.single-post article.category-b2b .bidapp24-note{background:#fffde7;border-left-color:#ff9800;}
body.category-art-rynok .bidapp24-note,.single-post article.category-art-rynok .bidapp24-note{background:#f3e5f5;border-left-color:#9c27b0;}
body.category-bezopasnost-sdelok .bidapp24-note,.single-post article.category-bezopasnost-sdelok .bidapp24-note{background:#e3f2fd;border-left-color:#2196f3;}
body.category-kollektsionirovanie .bidapp24-note,.single-post article.category-kollektsionirovanie .bidapp24-note{background:#f1f8e9;border-left-color:#7cb342;}
body.category-iskusstvo .bidapp24-note,.single-post article.category-iskusstvo .bidapp24-note{background:#fff8e1;border-left-color:#ffc107;}

/* ================================
   7) PARAMS via CSS vars (Hub/Deeper/Expert/TOC)
   ================================ */

/* NOTE/HUB */
.bidapp24-note{
  background: var(--bidapp24-bg, #f8f9fa);
  border-left: var(--bidapp24-bw, 4px) solid var(--bidapp24-border, #adb5bd);
  padding: var(--bidapp24-pad, 10px 15px);
  border-radius: var(--bidapp24-radius, 0);
  margin:25px 0;
  font-size:1em;
  color:#555;
}
.bidapp24-note a{color:#0056b3;text-decoration:none;font-weight:700;}
.bidapp24-note a:hover{text-decoration:underline;}

/* DEEPER */
.bidapp24-deeper{
  background: var(--bidapp24-bg, #fffde7);
  border-left: var(--bidapp24-bw, 3px) solid var(--bidapp24-border, #fbc02d);
  padding: var(--bidapp24-pad, 18px);
  border-radius: var(--bidapp24-radius, 0);
  margin:22px 0;
}
.bidapp24-deeper ul{margin-top:10px;padding-left:20px;}
.bidapp24-deeper__title{font-weight:700;margin:0 0 10px;border-bottom:1px solid #ddd;padding-bottom:6px;}

/* EXPERT */
.bidapp24-expert{
  background: var(--bidapp24-bg, #e3f2fd);
  border-left: var(--bidapp24-bw, 5px) solid var(--bidapp24-border, #2196f3);
  padding: var(--bidapp24-pad, 15px 20px);
  border-radius: var(--bidapp24-radius, 0);
  margin:25px 0;
  color:#555;
}
.bidapp24-expert__title{color:#0d47a1;font-size:1.1em;}
.bidapp24-expert__body p:last-child{margin-bottom:0;}

/* TOC (BidApp24) */
.bidapp24-toc{
  background: var(--bidapp24-bg, #f3f4f6);
  border-left: var(--bidapp24-bw, 4px) solid var(--bidapp24-border, #0b63ce);
  padding: var(--bidapp24-pad, 14px 16px);
  border-radius: var(--bidapp24-radius, 0px);
  margin:0 0 22px;
  min-height: 200px;       /* стартово 200px, потом подгоним */
  contain: layout;         /* изолирует пересчёт лэйаута внутри блока */
}
.bidapp24-toc__title{font-weight:800;margin:0 0 10px;color:#343a40;}
.bidapp24-toc__list{margin:0;padding-left:1.2em;list-style:decimal;}
.bidapp24-toc__list li{margin:0 0 8px;}
.bidapp24-toc__list a{font-weight:700;text-decoration:none;}
.bidapp24-toc__list a:hover{text-decoration:underline;}
.bidapp24-toc__item.level-3{margin-left:12px; list-style:disc;}

/* Stable anchor scroll */
.single-post .entry-content h2,
.single-post .entry-content h3{ scroll-margin-top:90px; }
