/*
Theme Name: Baseplay Tennis
Theme URI: https://baseplaytennis.com
Description: Custom theme for Baseplay Tennis — The Business of Tennis
Author: Baseplay Tennis
Version: 1.0
Template: generatepress
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --cream: #f5f2eb;
  --green: #1a472a;
  --green-light: #2d6a42;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gray: #6b6b6b;
  --gray-light: #d4d0c8;
  --red: #c0392b;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── TICKER ── */
.bp-ticker-bar {
  background: var(--green);
  color: var(--white);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.bp-ticker-inner {
  display: inline-block;
  animation: bpticker 35s linear infinite;
}
.bp-ticker-inner span { margin: 0 40px; }
.bp-ticker-inner span::before { content: '◆ '; color: var(--gold); }
@keyframes bpticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── TOP BAR ── */
.bp-top-bar {
  border-bottom: 1px solid var(--gray-light);
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.bp-top-bar-left { display: flex; gap: 20px; }
.bp-top-bar-left a:hover { color: var(--green); }
.bp-top-bar-right { display: flex; gap: 16px; align-items: center; }
.bp-btn-subscribe {
  background: var(--green);
  color: var(--white) !important;
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}
.bp-btn-subscribe:hover { background: var(--green-light); }

/* ── MASTHEAD ── */
.bp-masthead {
  padding: 24px 40px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 3px solid var(--black);
}
.bp-masthead-date {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.bp-masthead-logo { text-align: center; }
.bp-logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
  display: block;
}
.bp-logo-main span { color: var(--green); }
.bp-logo-tagline {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
.bp-masthead-right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.bp-social-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--gray);
  transition: all 0.2s;
}
.bp-social-icon:hover { border-color: var(--green); color: var(--green); }

/* ── NAV ── */
.bp-nav {
  border-bottom: 1px solid var(--gray-light);
  padding: 0 40px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.bp-nav a {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.bp-nav a:hover, .bp-nav a.active { color: var(--black); border-bottom-color: var(--green); }
.bp-nav a.active { color: var(--green); }

/* ── BREAKING BANNER ── */
.bp-breaking-banner {
  background: var(--gold);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bp-breaking-label {
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
}
.bp-breaking-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

/* ── MAIN CONTAINER ── */
.bp-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HERO GRID ── */
.bp-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-bottom: 1px solid var(--gray-light);
  margin-top: 32px;
}
.bp-hero-main { padding-right: 40px; border-right: 1px solid var(--gray-light); }
.bp-hero-image {
  width: 100%; aspect-ratio: 16/9;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 20px;
}
.bp-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.bp-hero-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.bp-hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 700; line-height: 1.2;
  margin-bottom: 14px; color: var(--black);
}
.bp-hero-headline a:hover { color: var(--green); }
.bp-hero-dek { font-size: 16px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.bp-hero-meta { font-size: 12px; color: var(--gray); display: flex; gap: 8px; align-items: center; padding-bottom: 32px; }
.bp-hero-meta span { color: var(--gray-light); }

/* ── LATEST STORIES SIDEBAR ── */
.bp-latest { padding-left: 32px; padding-bottom: 32px; padding-top: 8px; }
.bp-latest-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray);
  padding-bottom: 12px; border-bottom: 2px solid var(--black);
  margin-bottom: 20px;
}
.bp-latest-item { padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.bp-latest-item:last-child { border-bottom: none; }
.bp-latest-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px;
}
.bp-latest-headline {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; line-height: 1.3;
  margin-bottom: 6px; color: var(--black);
}
.bp-latest-headline a:hover { color: var(--green); }
.bp-latest-meta { font-size: 11px; color: var(--gray); }

/* ── SECTION HEADER ── */
.bp-section-header {
  display: flex; align-items: center; gap: 16px;
  margin: 40px 0 24px;
}
.bp-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; white-space: nowrap; color: var(--black);
}
.bp-section-line { flex: 1; height: 1px; background: var(--gray-light); }
.bp-section-header a { font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap; }

/* ── STORY GRID ── */
.bp-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.bp-story-card { cursor: pointer; }
.bp-story-card-image {
  width: 100%; aspect-ratio: 16/9;
  background: #e0e0e0; overflow: hidden;
  margin-bottom: 14px; position: relative;
}
.bp-story-card-image img { width: 100%; height: 100%; object-fit: cover; }
.bp-exclusive {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: var(--black);
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px;
}
.bp-story-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}
.bp-story-headline {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; line-height: 1.3;
  margin-bottom: 8px; color: var(--black);
}
.bp-story-headline a:hover { color: var(--green); }
.bp-story-dek { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 10px; }
.bp-story-meta { font-size: 11px; color: var(--gray); display: flex; gap: 6px; }

/* ── APAC SECTION ── */
.bp-apac {
  background: var(--green);
  padding: 40px;
  margin: 0 -40px 48px;
}
.bp-apac .bp-section-header h2 { color: var(--white); }
.bp-apac .bp-section-line { background: rgba(255,255,255,0.2); }
.bp-apac .bp-section-header a { color: var(--gold); }
.bp-apac-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.bp-apac-image {
  width: 100%; aspect-ratio: 16/9;
  background: rgba(255,255,255,0.1);
  margin-bottom: 16px; overflow: hidden;
}
.bp-apac-image img { width: 100%; height: 100%; object-fit: cover; }
.bp-apac-headline {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; line-height: 1.25;
  color: var(--white); margin-bottom: 12px;
}
.bp-apac-headline a:hover { color: var(--gold); }
.bp-apac-dek { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 12px; }
.bp-apac-byline { font-size: 11px; color: var(--gold); font-weight: 500; }
.bp-apac-small { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.bp-apac-small:last-child { border-bottom: none; }
.bp-apac-small-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.bp-apac-small-headline {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--white); margin-bottom: 6px;
}
.bp-apac-small-headline a:hover { color: var(--gold); }
.bp-apac-small-meta { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ── NEWSLETTER CTA ── */
.bp-newsletter-cta {
  background: var(--black);
  padding: 48px 60px;
  margin: 0 -40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.bp-newsletter-cta-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.bp-newsletter-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 12px;
}
.bp-newsletter-cta p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.bp-newsletter-form { display: flex; gap: 0; }
.bp-newsletter-input {
  flex: 1; padding: 14px 18px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  border: none; background: rgba(255,255,255,0.1);
  color: var(--white); outline: none;
}
.bp-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.bp-newsletter-btn {
  padding: 14px 28px;
  background: var(--gold); color: var(--black);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.bp-newsletter-btn:hover { background: var(--gold-light); }

/* ── TWO COL LAYOUT ── */
.bp-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-bottom: 60px;
}

/* ── LIST STORIES ── */
.bp-list-story {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
}
.bp-list-thumb {
  width: 100px; height: 70px;
  background: #e0e0e0; overflow: hidden;
}
.bp-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-list-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px;
}
.bp-list-headline {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; line-height: 1.3;
  color: var(--black); margin-bottom: 6px;
}
.bp-list-headline a:hover { color: var(--green); }
.bp-list-meta { font-size: 11px; color: var(--gray); }

/* ── WIDGETS ── */
.bp-widget { margin-bottom: 36px; }
.bp-widget-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--black);
  padding-bottom: 10px; border-bottom: 2px solid var(--black);
  margin-bottom: 16px;
}
.bp-trending-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--gray-light);
}
.bp-trending-num {
  font-family: 'DM Mono', monospace;
  font-size: 20px; font-weight: 500; color: var(--gray-light);
  line-height: 1; min-width: 24px;
}
.bp-trending-headline {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--black);
}
.bp-tag {
  display: inline-block; padding: 5px 12px;
  border: 1px solid var(--gray-light);
  font-size: 11px; color: var(--gray);
  margin: 4px; border-radius: 2px;
  transition: all 0.15s;
}
.bp-tag:hover { border-color: var(--green); color: var(--green); }

/* ── FOOTER ── */
.bp-footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 40px 0;
  margin-top: 60px;
}
.bp-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bp-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900; color: var(--white);
  margin-bottom: 12px;
}
.bp-footer-logo span { color: var(--green); }
.bp-footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.bp-footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.bp-footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px; transition: color 0.15s;
}
.bp-footer-col a:hover { color: var(--white); }
.bp-footer-bottom {
  display: flex; justify-content: space-between;
  padding: 20px 0;
  font-size: 11px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ── ARTICLE SINGLE ── */
.bp-article-header { max-width: 800px; margin: 48px auto 32px; padding: 0 40px; }
.bp-article-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.bp-article-title {
  font-family: 'Playfair Display', serif;
  font-size: 44px; font-weight: 700; line-height: 1.15;
  color: var(--black); margin-bottom: 20px;
}
.bp-article-dek {
  font-size: 20px; color: var(--gray);
  line-height: 1.5; margin-bottom: 20px;
  font-weight: 300; border-left: 3px solid var(--green);
  padding-left: 20px;
}
.bp-article-meta {
  font-size: 13px; color: var(--gray);
  display: flex; gap: 8px; align-items: center;
  padding-bottom: 32px; border-bottom: 1px solid var(--gray-light);
}
.bp-article-body { max-width: 800px; margin: 0 auto; padding: 32px 40px; }
.bp-article-body p { font-size: 17px; line-height: 1.8; color: #222; margin-bottom: 24px; }
.bp-article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  margin: 40px 0 16px; color: var(--black);
}
.bp-article-body h3 {
  font-size: 18px; font-weight: 600;
  margin: 32px 0 12px; color: var(--black);
}
.bp-article-body blockquote {
  border-left: 4px solid var(--green);
  padding: 4px 24px; margin: 32px 0;
  font-size: 20px; color: var(--gray);
  font-style: italic; line-height: 1.6;
}
.bp-bottom-line {
  background: var(--greenLight, #e8f5e9);
  border-left: 4px solid var(--green);
  padding: 24px 28px; margin: 40px 0;
}
.bp-bottom-line-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.bp-bottom-line p { font-size: 16px; color: #222; margin-bottom: 0; }

/* ── HIDE DEFAULT GP ELEMENTS ── */
.site-header, .main-navigation, .site-footer { display: none !important; }
.content-area { width: 100% !important; max-width: 100% !important; }
.site-main { margin: 0 !important; padding: 0 !important; }
.inside-article { padding: 0 !important; }

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE STYLES
   max-width: 768px
══════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── TOP BAR ── */
  .bp-top-bar {
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
    text-align: center;
  }
  .bp-top-bar-left { justify-content: center; }
  .bp-top-bar-right { justify-content: center; }

  /* ── MASTHEAD ── */
  .bp-masthead {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 16px;
    text-align: center;
    gap: 10px;
  }
  .bp-masthead-date { text-align: center; order: 3; display: none; }
  .bp-masthead-logo { order: 1; }
  .bp-masthead-right { justify-content: center; order: 2; }
  .bp-logo-main { font-size: 36px; }

  /* ── NAV ── */
  .bp-nav {
    padding: 0 8px;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .bp-nav a {
    padding: 10px 12px;
    font-size: 11px;
  }

  /* ── MAIN CONTAINER ── */
  .bp-main { padding: 0 16px; }

  /* ── HERO GRID — stack vertically ── */
  .bp-hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .bp-hero-main {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 24px;
  }
  .bp-hero-headline { font-size: 24px; }
  .bp-hero-dek { font-size: 15px; }

  /* ── LATEST STORIES — hide on mobile to save space ── */
  .bp-latest { padding: 20px 0 0; }
  .bp-latest-title { font-size: 10px; }
  .bp-latest-headline { font-size: 15px; }

  /* ── TOP STORIES GRID — single column ── */
  .bp-story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── APAC SECTION ── */
  .bp-apac {
    padding: 24px 16px;
    margin: 0 -16px 32px;
  }
  .bp-apac-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bp-apac-headline { font-size: 20px; }

  /* ── NEWSLETTER CTA ── */
  .bp-newsletter-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
    margin: 0 -16px 32px;
  }
  .bp-newsletter-cta h3 { font-size: 22px; }
  .bp-newsletter-form { flex-direction: column; gap: 8px; }
  .bp-newsletter-input { width: 100%; }
  .bp-newsletter-btn { width: 100%; text-align: center; }

  /* ── TWO COL — stack ── */
  .bp-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* ── FOOTER ── */
  .bp-footer { padding: 40px 16px 0; }
  .bp-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .bp-footer-top > div:first-child {
    grid-column: 1 / -1;
  }
  .bp-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 0;
  }

  /* ── ARTICLE SINGLE ── */
  .bp-article-header { padding: 24px 16px 16px; margin: 0; }
  .bp-article-title { font-size: 28px; }
  .bp-article-dek { font-size: 16px; }
  .bp-article-body { padding: 24px 16px; }
  .bp-article-body p { font-size: 16px; }
  .bp-article-body h2 { font-size: 22px; }

  /* ── LIST STORIES ── */
  .bp-list-story { grid-template-columns: 80px 1fr; gap: 12px; }
  .bp-list-thumb { width: 80px; height: 56px; }

}

/* Tablet: 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {

  .bp-main { padding: 0 24px; }

  .bp-masthead { padding: 16px 24px; }
  .bp-logo-main { font-size: 38px; }

  .bp-hero { grid-template-columns: 1fr 280px; }
  .bp-hero-headline { font-size: 26px; }

  .bp-story-grid { grid-template-columns: repeat(2, 1fr); }

  .bp-apac-grid { grid-template-columns: 1fr 1fr; }
  .bp-apac-grid > div:first-child { grid-column: 1 / -1; }

  .bp-newsletter-cta { padding: 40px 32px; }

  .bp-two-col { grid-template-columns: 1fr 260px; gap: 32px; }

  .bp-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bp-footer-top > div:first-child { grid-column: 1 / -1; }

}

/* ══════════════════════════════════════════
   ARCHIVE / CATEGORY PAGES
══════════════════════════════════════════ */

.bp-archive-header {
  padding: 40px 0 24px;
  border-bottom: 3px solid var(--black);
  margin-bottom: 40px;
}

.bp-archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.bp-archive-desc {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
}

/* Featured first article */
.bp-archive-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 0;
}

.bp-archive-featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bp-archive-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bp-archive-featured-image:hover img {
  transform: scale(1.02);
}

.bp-archive-featured-headline {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin: 12px 0;
}

.bp-archive-featured-headline a:hover { color: var(--green); }

.bp-archive-featured-dek {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.bp-archive-meta {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.03em;
}

/* Article grid */
.bp-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.bp-archive-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--cream);
}

.bp-archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bp-archive-card:hover .bp-archive-card-image img {
  transform: scale(1.02);
}

.bp-archive-card-headline {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin: 8px 0;
}

.bp-archive-card-headline a:hover { color: var(--green); }

.bp-archive-card-dek {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Pagination */
.bp-pagination {
  display: flex;
  gap: 8px;
  padding: 40px 0 60px;
  justify-content: center;
}

.bp-pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--gray-light);
  font-size: 13px;
  color: var(--gray);
  transition: all 0.15s;
}

.bp-pagination .page-numbers.current,
.bp-pagination .page-numbers:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Archive mobile */
@media (max-width: 768px) {
  .bp-archive-featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bp-archive-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bp-archive-title { font-size: 26px; }
  .bp-archive-featured-headline { font-size: 22px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .bp-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
.bp-ticker-bar a {
  color: inherit;
  text-decoration: none;
  pointer-events: all;
  cursor: pointer;
}
.bp-ticker-inner { pointer-events: all; }
.bp-ticker-bar { pointer-events: all; }

/* ══════════════════════════════════════════
   BBPRESS COMMUNITY FORUM STYLES
══════════════════════════════════════════ */

#bbpress-forums { font-family: 'DM Sans', sans-serif; }
#bbpress-forums li.bbp-header {
  background: var(--black) !important;
  color: var(--white) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 12px 16px !important;
  border: none !important;
}
#bbpress-forums li.bbp-header .bbp-forum-title,
#bbpress-forums li.bbp-header .bbp-forum-topic-count,
#bbpress-forums li.bbp-header .bbp-forum-reply-count,
#bbpress-forums li.bbp-header .bbp-forum-freshness {
  color: var(--white) !important;
}
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  border-bottom: 1px solid var(--gray-light) !important;
  padding: 16px !important;
  background: var(--white) !important;
  transition: background 0.1s !important;
}
#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
  background: #f5f2eb !important;
}
#bbpress-forums .bbp-forum-title a,
#bbpress-forums .bbp-topic-title a {
  font-family: 'Playfair Display', serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  text-decoration: none !important;
}
#bbpress-forums .bbp-forum-title a:hover,
#bbpress-forums .bbp-topic-title a:hover { color: var(--green) !important; }
#bbpress-forums .bbp-forum-content {
  font-size: 12px !important;
  color: var(--gray) !important;
  margin-top: 4px !important;
}
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-reply-count,
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
  font-size: 12px !important;
  color: var(--gray) !important;
  font-family: 'DM Mono', monospace !important;
}
#bbp-search-form input[type="text"] {
  border: 1px solid var(--gray-light) !important;
  padding: 8px 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
}
#bbp-search-form #bbp_search_submit {
  background: var(--green) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 8px 20px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
#bbpress-forums a.button,
#bbpress-forums input[type="submit"],
.bbp-submit-wrapper input[type="submit"] {
  background: var(--green) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 10px 24px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 2px !important;
}
.bbp-topic-content, .bbp-reply-content {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--black) !important;
  font-family: 'DM Sans', sans-serif !important;
}
.bbp-reply-author .bbp-author-name,
.bbp-topic-author .bbp-author-name {
  font-weight: 600 !important;
  color: var(--green) !important;
  font-size: 13px !important;
}
#bbpress-forums .bbp-breadcrumb { font-size: 12px !important; color: var(--gray) !important; }
#bbpress-forums .bbp-breadcrumb a { color: var(--green) !important; text-decoration: none !important; }
#new-post label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--gray) !important;
}
#new-post input[type="text"],
#new-post textarea {
  border: 1px solid var(--gray-light) !important;
  padding: 10px 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  width: 100% !important;
}
#new-post input[type="text"]:focus,
#new-post textarea:focus { border-color: var(--green) !important; }
@media (max-width: 768px) {
  #bbpress-forums .bbp-forum-topic-count,
  #bbpress-forums .bbp-forum-reply-count,
  #bbpress-forums .bbp-forum-freshness { display: none !important; }
}
/* Force horizontal scroll through plugin wrappers */
#bp-senior-table,
#bp-junior-table,
#bp-senior-table > div,
#bp-junior-table > div,
#bp-senior-table .STWT_Table_Div,
#bp-junior-table .STWT_Table_Div,
#bp-senior-table .dataTables_wrapper,
#bp-junior-table .dataTables_wrapper,
#bp-senior-table .dataTables_scroll,
#bp-junior-table .dataTables_scroll,
#bp-senior-table .dataTables_scrollBody,
#bp-junior-table .dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

#bp-senior-table table,
#bp-junior-table table {
  min-width: 1800px !important;
  width: max-content !important;
  table-layout: auto !important;
}

#bp-senior-table table th,
#bp-senior-table table td,
#bp-junior-table table th,
#bp-junior-table table td {
  display: table-cell !important;
  white-space: nowrap !important;
  padding: 12px 16px !important;
}

/* Paywall positioning fix */
.bp-paywall-overlay {
  position: relative;
  margin-top: -320px;
  padding-top: 320px;
  pointer-events: none;
}
.bp-paywall-cta {
  pointer-events: all;
  position: sticky;
  top: 50%;
  margin: 0 auto 40px;
}