/* Typography overrides: Inter for body, Oswald for headings */

/* Body text */
html, body {
  font-family: var(--bwtv-font) !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings and key title elements (limit Oswald to H1–H2 and major titles) */
h1, h2,
.section-title,
.hero-title,
.single-title,
.tb-title,
.tb2-title,
.cat-title,
.tb-feat-title,
.tb-li-title,
.widget-title,
.pa-title,
.portrait-name,
.portrait-article-title,
.footer-title,
.apps-title,
.site-title {
  font-family: var(--bwtv-font-headings) !important;
  font-weight: 800;
}

/* Optional: keep buttons/labels that are part of identity in headings font */
.subnav .subnav-menu > li > a,
  .subnav .menu > li > a,
  .action-search .live-text,
  .live-link .live-text {
    font-family: var(--bwtv-font-headings) !important;
    font-weight: 700;
  }

  /* Inline Read Also – use headings font */
  .inline-readalso .ra-label,
  .inline-readalso .ra-link {
  font-family: var(--bwtv-font-headings) !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 20px !important;
  }

/* Ensure links and UI inherit Inter unless explicitly overridden */
a, button, input, select, textarea {
  font-family: inherit;
}
/* Tabular numerals for dates, meta, pagination */
.single-meta,
.cat-date,
.tb-li-date,
.tb-date,
.pa-date,
.live-date,
.lf-date,
.post-nav .page-numbers,
.pg-info,
time {
  font-variant-numeric: tabular-nums;
}

/* Single article body size – loaded after main.css to guarantee override */
  .single-article .single-content { font-size: 25px !important; line-height: 1.8; }
  @media (max-width: 640px) {
    .single-article .single-content { font-size: 25px !important; line-height: 1.75; }
  }

 /* Image captions inside article content */
 .single-content figure figcaption,
 .single-content .wp-block-image figcaption,
 .single-content .wp-element-caption,
 .single-content .wp-caption .wp-caption-text {
   color: var(--bwtv-color-muted);
   font-size: var(--fs-meta);
   line-height: var(--lh-meta);
   font-weight: 300;
   margin-top: 6px;
   text-align: center;
 }
 /* Left-align caption when image is floated/side aligned */
 .single-content .wp-block-image.alignleft figcaption,
 .single-content .wp-block-image.alignright figcaption,
 .single-content figure.alignleft figcaption,
 .single-content figure.alignright figcaption,
 .single-content .wp-caption.alignleft .wp-caption-text,
 .single-content .wp-caption.alignright .wp-caption-text {
   text-align: left;
 }
 /* Consistent vertical spacing around block images and classic captions */
 .single-content .wp-block-image,
 .single-content figure.wp-caption {
   margin: 1.2em 0;
 }

 /* Country taxonomy pills above the title + category pill at end of meta */
  .single-country { margin-top: 8px; margin-bottom: 6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .single-country .country-pill { display:inline-block; background: var(--bwtv-color-primary); border:1px solid var(--bwtv-color-primary); color:#000; font-weight:900; font-size:12px; padding:2px 8px; border-radius:2px; text-transform:uppercase; text-decoration:none; }
  .single-country .country-pill:hover { filter: brightness(0.96); text-decoration:none; }
/* For non-yellow variants, use white text for contrast */
body.single-variant-people .single-country .country-pill,
body.single-variant-sport .single-country .country-pill,
body.single-variant-elle  .single-country .country-pill { color:#fff; }
.single-meta .single-catpill { display:inline-block; background: var(--bwtv-color-primary); border:1px solid var(--bwtv-color-primary); color:#000; font-weight:900; font-size:12px; padding:2px 8px; border-radius:2px; text-transform:uppercase; text-decoration:none; }
/* Match country pill contrast rules for category pill */
body.single-variant-people .single-meta .single-catpill,
body.single-variant-sport .single-meta .single-catpill,
body.single-variant-elle  .single-meta .single-catpill { color:#fff; }
.single-meta .single-catpill:hover { filter: brightness(0.95); text-decoration:none; }

/* Split meta rows: row 1 (author + cat pill), row 2 (dates) */
.single-meta { display:grid; gap:4px; }
.single-meta .sm-row1 { display:flex; align-items:center; gap:8px; justify-content:space-between; }
.single-meta .sm-row2 { display:flex; align-items:center; gap:8px; color: var(--bwtv-color-muted); }
.single-meta .single-date { font-weight: 800; }
/* Emphasize author name */
.single-meta .single-by { font-weight: 400; }
.single-meta .single-by .single-author { font-weight: 800; text-decoration: none; border-bottom:1px solid transparent; }
.single-meta .single-by .single-author:hover { border-bottom-color: currentColor; }

/* Inline author block inside meta */
.single-meta .sm-au { display:flex; align-items:center; gap:10px; }
.single-meta .sm-au-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.single-meta .sm-au-meta { display:flex; flex-direction:column; line-height:1.1; }
.single-meta .sm-au-meta .single-author { font-weight:800; text-decoration:none; border-bottom:1px solid transparent; }
.single-meta .sm-au-meta .single-author:hover { border-bottom-color: currentColor; }
.single-meta .sm-au-view a { font-size:12px; text-transform:none; font-family: inherit; font-weight:400; color:#000; text-decoration:none; }
.single-meta .sm-au-view a:hover { text-decoration:underline; }

/* Reduce layout compute on LCP element: avoid text-wrap: balance on single titles */
.single-title,
.single-head .single-title { text-wrap: pretty; }

/* Share dropdown (loaded after main.min.css to ensure visibility) */
.share-dropdown { position: relative; }
.share-toggle { cursor: pointer; }
.share-menu { position:absolute; right:0; top:calc(100% + 6px); min-width: 180px; background:#fff; border:1px solid #e5e5e5; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.12); padding:6px; display:none; z-index: 1000; }
.share-dropdown.open .share-menu { display:block; }
.share-item:hover { background:#f7f7f7; }
.single-authorbox .sab-link:hover { text-decoration:underline; }

/* Table of contents (Sommaire) */
.single-toc { margin: 8px 0 16px; padding: 12px 14px; border:1px solid var(--bwtv-color-border); border-radius:10px; background:#fff; }
.single-toc .toc-title { font-family: var(--bwtv-font-headings); font-weight:800; font-size:12px; letter-spacing:.04em; color: var(--bwtv-color-muted); text-transform:uppercase; margin-bottom:8px; }
.single-toc .toc-list { margin:0; padding-left:18px; }
.single-toc .toc-item.toc-h3 { margin-left:12px; list-style:circle; }
.single-toc .toc-item a { color:#000; text-decoration:none; }
.single-toc .toc-item a:hover { text-decoration:underline; }
.single-toc .toc-item.active > a { color: var(--bwtv-color-primary); font-weight:700; }

/* Anchor offset for fixed headers */
.single-article h2[id], .single-article h3[id] { scroll-margin-top: 96px; }

/* Author info box */
.single-authorbox { display:flex; align-items:flex-start; gap:12px; padding:12px; border:1px solid var(--bwtv-color-border); background:#fff; border-radius:12px; margin: 10px 0 16px; }
.single-authorbox .sab-avatar { width:64px; height:64px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.single-authorbox .sab-body { flex:1 1 auto; min-width:0; }
.single-authorbox .sab-name { font-family: var(--bwtv-font-headings); font-weight:800; font-size: 16px; line-height:1.2; }
.single-authorbox .sab-name a { color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.single-authorbox .sab-name a:hover { border-bottom-color: currentColor; }
.single-authorbox .sab-bio { margin:4px 0 8px; color: var(--bwtv-color-muted); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.single-authorbox .sab-link { display:inline-block; font-family: var(--bwtv-font-headings); font-weight:800; font-size:12px; letter-spacing:.02em; text-transform:uppercase; color:#000; text-decoration:none; }
.single-authorbox .sab-link:hover { text-decoration:underline; }

/* Don't miss (À ne pas manquer) */
.dont-miss { position: relative; border:1px solid var(--bwtv-color-border); background:#fff; border-radius:2px; margin: 12px 0 18px; padding-top:24px; }
.dont-miss .dm-head { position:absolute; top:-15px; left:12px; padding:0 10px; background:#fff; line-height:1; }
.dont-miss .dm-label { font-family: var(--bwtv-font-headings); font-style: normal; font-weight:800; font-size:24px; line-height: normal; letter-spacing:.04em; color: rgb(34, 34, 34); text-transform:uppercase; }
.dont-miss .dm-list { list-style:none; margin:0; padding:0; }
.dont-miss .dm-link { display:block; padding:12px; color:#000; text-decoration:none; border-bottom:1px solid var(--bwtv-color-border); }
.dont-miss .dm-item:last-child .dm-link { border-bottom:0; }
.dont-miss .dm-link:hover { text-decoration:underline; }

/* Ensure spacing between bottom ad and next sections */
.single-ad-bottom { margin-bottom: 40px; }
@media (max-width: 640px) {
  .single-ad-bottom { margin-bottom: 24px; }
}

/* Homepage Video Section (before Elections) - Dark theme with horizontal scroll */
.tb-video { 
  margin: 28px -20px 20px; /* Full bleed on sides */ 
  padding: 24px 0;
  background: #000; 
  position: relative;
}
.tb-video .tb-head { 
  margin: 0 20px 16px; 
  padding-bottom: 12px;
  border-bottom: 3px solid var(--bwtv-color-primary);
}
.tb-video .tb-title { 
  font-family: var(--bwtv-font-headings); 
  font-weight: 900; 
  color: #fff;
  font-size: 24px;
  text-transform: uppercase;
}
.tb-video .tb-rule { display: none; }

/* Horizontal scrolling container */
.tb-video .tb-video-grid { 
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 20px 12px;
  -webkit-overflow-scrolling: touch;
}
.tb-video .tb-video-grid::-webkit-scrollbar { height: 6px; }
.tb-video .tb-video-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.1); border-radius: 3px; }
.tb-video .tb-video-grid::-webkit-scrollbar-thumb { background: var(--bwtv-color-primary); border-radius: 3px; }

.tb-video .vid-card { 
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}

.tb-video .vid-thumb { 
  position: relative; 
  display: block; 
  aspect-ratio: 16 / 9; 
  overflow: hidden; 
  border-radius: 8px; 
  background: #1a1a1a;
}
/* Dark overlay on thumbnail */
.tb-video .vid-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.tb-video .vid-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  transition: transform 0.3s ease;
}
.tb-video .vid-card:hover .vid-thumb img {
  transform: scale(1.05);
}
.tb-video .vid-noimg { 
  display: block; 
  width: 100%; 
  height: 100%; 
  background: #1a1a1a; 
}

/* Tag "NewsFeed" en haut à gauche */
.tb-video .vid-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Date et durée en bas */
.tb-video .vid-meta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.tb-video .vid-date,
.tb-video .vid-dur {
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.tb-video .vid-title { 
  margin: 10px 0 0; 
  font-size: 15px; 
  line-height: 1.3; 
  font-weight: 700;
  color: #fff;
}
.tb-video .vid-title a { 
  color: #fff; 
  text-decoration: none; 
  font-family: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-video .vid-title a:hover { 
  color: var(--bwtv-color-primary);
}

/* Navigation arrows */
.tb-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bwtv-color-primary);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  z-index: 10;
  transition: all 0.2s;
}
.tb-video-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.tb-video-nav.prev { left: 10px; }
.tb-video-nav.next { right: 10px; }
.tb-video-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .tb-video { margin-left: -16px; margin-right: -16px; }
  .tb-video .tb-head { margin-left: 16px; margin-right: 16px; }
  .tb-video .tb-video-grid { padding-left: 16px; padding-right: 16px; }
  .tb-video .vid-card { width: 280px; }
  .tb-video-nav { display: none; } /* Hide arrows on mobile, rely on swipe */
}
@media (max-width: 640px) {
  .tb-video .vid-card { width: 260px; }
  .tb-video .tb-title { font-size: 20px; }
}

/* Comments title typography (match label style) */
