/* WP Body Atlas — Front-end Styles v1.0.11 */
:root {
  --wba-orange: #FF6A00;
  --wba-ink:    #111111;
  --wba-ink2:   #444444;
  --wba-ink3:   #888888;
  --wba-border: rgba(0,0,0,0.1);
  --wba-bg:     #f5f4f0;
  --wba-radius: 8px;
}

.wba-page { font-family: 'Sora', sans-serif; color: var(--wba-ink); }
.wba-wrap { margin: 0 auto; padding: 0 48px; }

/* Breadcrumb */
.wba-breadcrumb-wrap { background: var(--wba-bg); border-bottom: 1px solid var(--wba-border); padding: 9px 0; font-size: 12px; }
.wba-breadcrumb, .wba-breadcrumb-wrap nav { display: flex; gap: 8px; align-items: center; color: var(--wba-ink3); }
.wba-breadcrumb a, .breadcrumbs a { color: var(--wba-ink3); text-decoration: none; }
.wba-breadcrumb a:hover, .breadcrumbs a:hover { color: var(--wba-orange); }
.breadcrumbs { font-size: 12px; }

/* Hero (single entry) */
.wba-hero { background: #fff; padding: 56px 0 48px; border-bottom: 1px solid var(--wba-border); }
.wba-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wba-badge { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.wba-badge--type { background: rgba(255,106,0,.1); color: #FF6A00; border: 1px solid rgba(255,106,0,.25); }
.wba-badge--region { background: rgba(255,106,0,.06); color: #FF6A00; border: 1px solid rgba(255,106,0,.18); }
.wba-hero__title { font-size: clamp(28px,4vw,52px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; margin-bottom: 8px; }
.wba-hero__latin { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--wba-ink3); font-style: italic; margin-bottom: 16px; }
.wba-hero__summary { font-size: 15px; color: var(--wba-ink2); line-height: 1.75; max-width: 620px; }

/* ── Single entry layout ────────────────────────────────── */
/* Full-width white background behind the content grid */
.wba-entry-body {
  background: #ffffff;
  width: 100%;
}
.wba-content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-items: start;
  background: #ffffff;
}

/* Main content area */
.wba-main {
  min-width: 0;
  background: #ffffff;
  padding: 40px 48px 64px 48px;
}

/* Sections inside main */
.wba-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--wba-border); }
.wba-section:last-child { border-bottom: none; }
.wba-section__title { font-size: 18px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 16px; color: var(--wba-ink); }
.wba-section__sub { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.wba-text { font-size: 15px; color: var(--wba-ink2); line-height: 1.75; }

/* Data table */
.wba-data-table { width: 100%; border-collapse: collapse; }
.wba-data-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--wba-ink3); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--wba-border); white-space: nowrap; width: 140px; }
.wba-data-table td { font-size: 14px; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--wba-border); color: var(--wba-ink2); }
.wba-data-table tr:last-child th, .wba-data-table tr:last-child td { border-bottom: none; }

/* Injuries */
.wba-injuries { display: flex; flex-direction: column; gap: 12px; }
.wba-injury { background: #fafafa; border: 1px solid var(--wba-border); border-left: 3px solid var(--wba-orange); border-radius: 0 6px 6px 0; padding: 14px 18px; }
.wba-injury strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; color: var(--wba-ink); }
.wba-injury p { font-size: 13px; color: var(--wba-ink3); margin: 0; line-height: 1.6; }

/* Related grid */
.wba-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.wba-related-card { background: #fafafa; border: 1px solid var(--wba-border); border-radius: var(--wba-radius); padding: 14px; text-decoration: none; transition: border-color .2s; display: block; }
.wba-related-card:hover { border-color: var(--wba-orange); }
.wba-related-type { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--wba-orange); display: block; margin-bottom: 4px; }
.wba-related-name { font-size: 13px; font-weight: 600; color: var(--wba-ink); }

/* ── Sidebar (dark card, user spec) ──────────────────────── */
.wba-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* The outer sidebar wrapper that sticks */
.wba-entry-sidebar {
  position: sticky;
  top: 88px;
  background: #111;
  border-radius: 12px;
  padding: 10px;
  margin-top: 20px;
  margin-left: 20px;
  border-top: 3px solid #FF6A00;
}

/* Cards inside the dark sidebar */
.wba-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  padding: 18px 12px;
}
.wba-card:last-child { border-bottom: none; }

.wba-card__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}

/* Quick ref inside dark sidebar */
.wba-quick-ref { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.wba-quick-ref dt { color: rgba(255,255,255,.45); font-weight: 600; white-space: nowrap; }
.wba-quick-ref dd { color: rgba(255,255,255,.85); }

/* Term links inside dark sidebar */
.wba-term-link {
  display: inline-block;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  margin: 3px 2px;
  transition: all .2s;
}
.wba-term-link:hover {
  border-color: #FF6A00;
  color: #FF6A00;
  background: rgba(255,106,0,.1);
}

/* Ad zones */
.wba-ad { text-align: center; padding: 10px 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wba-entry-sidebar {
    position: static;
    margin-top: 20px;
    margin-bottom: 32px;
    margin-left: 0;
    order: -1;
  }
  .wba-content-wrap {
    grid-template-columns: 1fr;
  }
  .wba-main {
    padding: 32px 28px 48px;
  }
}

@media (max-width: 900px) {
  .wba-wrap { padding: 0 24px; }
  .wba-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wba-hero { padding: 36px 0 32px; }
  .wba-hero__title { letter-spacing: -1px; }
  .wba-related-grid { grid-template-columns: 1fr; }
  .wba-data-table th { width: 100px; }
  .wba-main { padding: 24px 20px 40px; }
}
