/*
Theme Name:   Bramesh Kadence Child
Theme URI:    https://brameshtechanalysis.com/
Description:  Conversion- and AdSense-optimized Kadence child theme for Bramesh's Technical Analysis — matches the modern homepage aesthetic, adds CLS-safe AdSense slots, mid-post TradingView/Mentorship CTA, YMYL author box, bottom disclaimer, and Article/Person JSON-LD schema.
Author:       Bramesh Bhandari
Author URI:   https://brameshtechanalysis.com/about/
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  bramesh-kadence-child
*/

/* ==========================================================================
   1. Clean Editorial Typography & Reading Measure (Matches Homepage)
   ========================================================================== */
.single-post .entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: #0f172a;
}

.single-post .entry-content a {
  color: #0b5d56;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   2. CLS-Safe AdSense Containers (Reserves Height to Prevent Layout Shift)
   ========================================================================== */
.bta-ad-slot {
  margin: 26px 0;
  padding: 10px 0;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.bta-ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

/* Sticky Sidebar for Higher Desktop Ad Viewability (>50%) */
@media (min-width: 1024px) {
  .has-sidebar .primary-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* ==========================================================================
   3. Mid-Post TradingView Indicators & 1-on-1 Mentorship CTA Box
   ========================================================================== */
.bta-promo-box {
  margin: 28px 0;
  padding: 20px 24px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bta-promo-copy {
  flex: 1 1 280px;
}

.bta-promo-copy strong {
  display: block;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 4px;
}

.bta-promo-copy span {
  display: block;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.bta-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bta-btn-primary,
.bta-btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.bta-btn-primary {
  background: #0f766e;
  color: #ffffff !important;
}

.bta-btn-secondary {
  background: #1e293b;
  color: #f8fafc !important;
  border: 1px solid #475569;
}

/* ==========================================================================
   4. YMYL Author Authority Box & Post-Footer Disclaimer
   ========================================================================== */
.bta-author-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: #f1f5f9;
  border-left: 4px solid #0f766e;
  border-radius: 6px;
}

.bta-author-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0f172a;
}

.bta-author-box p {
  margin: 0 0 10px;
  font-size: 15px;
  color: #334155;
  line-height: 1.55;
}

.bta-author-box p:last-child {
  margin-bottom: 0;
}

.bta-disclaimer-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.bta-disclaimer-box strong {
  color: #78350f;
}

/* ==========================================================================
   5. Clean Data Tables for Nifty / Gann Levels
   ========================================================================== */
.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

.single-post .entry-content th {
  background: #0f172a;
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
}

.single-post .entry-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.single-post .entry-content tr:nth-child(even) td {
  background: #f8fafc;
}
