/* ==========================================================================
   Bizz Journal Events — Design System
   Premium editorial / corporate publication aesthetic
   Tailwind CDN handles utilities; this file owns tokens + component polish
   ========================================================================== */

:root {
  /* Brand */
  --bj-primary: #2563eb;
  --bj-primary-hover: #1d4ed8;
  --bj-primary-soft: #eff6ff;
  --bj-secondary: #475569;
  --bj-secondary-soft: #f1f5f9;

  /* Surfaces */
  --bj-bg: #ffffff;
  --bj-surface: #f9fafb;
  --bj-surface-raised: #ffffff;
  --bj-border: #e5e7eb;
  --bj-border-strong: #d1d5db;

  /* Text */
  --bj-text: #334155;
  --bj-text-strong: #0f172a;
  --bj-text-muted: #64748b;
  --bj-text-inverse: #ffffff;

  /* Feedback */
  --bj-success: #16a34a;
  --bj-success-soft: #f0fdf4;
  --bj-warning: #f59e0b;
  --bj-warning-soft: #fffbeb;
  --bj-danger: #dc2626;
  --bj-danger-soft: #fef2f2;

  /* Elevation */
  --bj-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --bj-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --bj-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --bj-shadow-hover: 0 16px 48px rgba(37, 99, 235, 0.12);

  /* Radius */
  --bj-radius-sm: 0.5rem;
  --bj-radius: 0.75rem;
  --bj-radius-lg: 1rem;
  --bj-radius-xl: 1.25rem;

  /* Motion */
  --bj-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bj-duration: 220ms;

  /* Layout */
  --bj-nav-h: 4.5rem;
  --bj-admin-sidebar: 16.5rem;
  --bj-container: 72rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--bj-text);
  background: var(--bj-bg);
  line-height: 1.6;
  font-size: 16px;
}

::selection {
  background: var(--bj-primary-soft);
  color: var(--bj-text-strong);
}

:focus-visible {
  outline: 2px solid var(--bj-primary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--bj-duration) var(--bj-ease);
}

/* Typography scale */
.bj-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem); /* ~60px */
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--bj-text-strong);
}

.bj-page-title {
  font-size: clamp(1.875rem, 4vw, 2.625rem); /* ~42px */
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--bj-text-strong);
}

.bj-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); /* ~32px */
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--bj-text-strong);
}

.bj-card-title {
  font-size: 1.375rem; /* 22px */
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--bj-text-strong);
}

.bj-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bj-text);
}

.bj-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bj-primary);
}

/* Atmosphere — subtle editorial grain / gradient wash */
.bj-atmosphere {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(37, 99, 235, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(71, 85, 105, 0.05), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.bj-atmosphere::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Containers */
.bj-container {
  width: 100%;
  max-width: var(--bj-container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .bj-container {
    padding-inline: 2rem;
  }
}

/* Buttons */
.bj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--bj-radius);
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--bj-duration) var(--bj-ease),
    color var(--bj-duration) var(--bj-ease),
    border-color var(--bj-duration) var(--bj-ease),
    box-shadow var(--bj-duration) var(--bj-ease),
    transform var(--bj-duration) var(--bj-ease);
}

.bj-btn:hover {
  transform: translateY(-1px);
}

.bj-btn:active {
  transform: translateY(0);
}

.bj-btn:disabled,
.bj-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.bj-btn-primary {
  background: var(--bj-primary);
  color: var(--bj-text-inverse);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.bj-btn-primary:hover {
  background: var(--bj-primary-hover);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.bj-btn-secondary {
  background: var(--bj-secondary-soft);
  color: var(--bj-text-strong);
}

.bj-btn-secondary:hover {
  background: #e2e8f0;
}

.bj-btn-outline {
  background: transparent;
  border-color: var(--bj-border-strong);
  color: var(--bj-text-strong);
}

.bj-btn-outline:hover {
  border-color: var(--bj-primary);
  color: var(--bj-primary);
  background: var(--bj-primary-soft);
}

.bj-btn-danger {
  background: var(--bj-danger);
  color: #fff;
}

.bj-btn-danger:hover {
  background: #b91c1c;
}

.bj-btn-sm {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
}

.bj-btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.bj-btn-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bj-spin 0.7s linear infinite;
}

@keyframes bj-spin {
  to { transform: rotate(360deg); }
}

/* Cards */
.bj-card {
  background: var(--bj-surface-raised);
  border: 1px solid var(--bj-border);
  border-radius: var(--bj-radius-lg);
  box-shadow: var(--bj-shadow-sm);
  overflow: hidden;
  transition:
    box-shadow var(--bj-duration) var(--bj-ease),
    transform var(--bj-duration) var(--bj-ease),
    border-color var(--bj-duration) var(--bj-ease);
}

.bj-card:hover {
  box-shadow: var(--bj-shadow);
  border-color: #cbd5e1;
}

.bj-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--bj-shadow-hover);
}

.bj-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bj-surface);
}

.bj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--bj-ease);
}

.bj-card-interactive:hover .bj-card-media img {
  transform: scale(1.04);
}

/* Forms */
.bj-field {
  position: relative;
  margin-bottom: 1rem;
}

.bj-input,
.bj-select,
.bj-textarea {
  width: 100%;
  appearance: none;
  background: var(--bj-bg);
  border: 1px solid var(--bj-border);
  border-radius: var(--bj-radius);
  padding: 1.15rem 1rem 0.55rem;
  font-size: 0.9375rem;
  color: var(--bj-text-strong);
  transition: border-color var(--bj-duration) var(--bj-ease), box-shadow var(--bj-duration) var(--bj-ease);
}

.bj-textarea {
  min-height: 8rem;
  padding-top: 1.35rem;
  resize: vertical;
}

.bj-input:focus,
.bj-select:focus,
.bj-textarea:focus {
  outline: none;
  border-color: var(--bj-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bj-label-float {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--bj-text-muted);
  pointer-events: none;
  transition: all 160ms var(--bj-ease);
  background: transparent;
}

.bj-textarea ~ .bj-label-float {
  top: 1.15rem;
  transform: none;
}

.bj-input:focus ~ .bj-label-float,
.bj-input:not(:placeholder-shown) ~ .bj-label-float,
.bj-textarea:focus ~ .bj-label-float,
.bj-textarea:not(:placeholder-shown) ~ .bj-label-float,
.bj-select:focus ~ .bj-label-float,
.bj-select:valid ~ .bj-label-float {
  top: 0.45rem;
  transform: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bj-primary);
}

.bj-field-error .bj-input,
.bj-field-error .bj-select,
.bj-field-error .bj-textarea {
  border-color: var(--bj-danger);
}

.bj-field-hint {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--bj-text-muted);
}

.bj-field-error-text {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--bj-danger);
}

/* Tables */
.bj-table-wrap {
  overflow: auto;
  border: 1px solid var(--bj-border);
  border-radius: var(--bj-radius-lg);
  background: #fff;
}

.bj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bj-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bj-surface);
  color: var(--bj-text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--bj-border);
  white-space: nowrap;
}

.bj-table tbody td {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--bj-border);
  color: var(--bj-text);
  vertical-align: middle;
}

.bj-table tbody tr {
  transition: background 150ms var(--bj-ease);
}

.bj-table tbody tr:hover {
  background: #f8fafc;
}

.bj-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Badges / pills */
.bj-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.bj-badge-blue { background: var(--bj-primary-soft); color: var(--bj-primary); }
.bj-badge-slate { background: var(--bj-secondary-soft); color: var(--bj-secondary); }
.bj-badge-green { background: var(--bj-success-soft); color: var(--bj-success); }
.bj-badge-amber { background: var(--bj-warning-soft); color: #b45309; }
.bj-badge-red { background: var(--bj-danger-soft); color: var(--bj-danger); }

.bj-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--bj-border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bj-text);
  transition: all var(--bj-duration) var(--bj-ease);
}

.bj-pill:hover,
.bj-pill.is-active {
  border-color: var(--bj-primary);
  color: var(--bj-primary);
  background: var(--bj-primary-soft);
}

/* Alerts */
.bj-alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: var(--bj-radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
}

.bj-alert-info { background: var(--bj-primary-soft); border-color: #bfdbfe; color: #1e40af; }
.bj-alert-success { background: var(--bj-success-soft); border-color: #bbf7d0; color: #166534; }
.bj-alert-warning { background: var(--bj-warning-soft); border-color: #fde68a; color: #92400e; }
.bj-alert-danger { background: var(--bj-danger-soft); border-color: #fecaca; color: #991b1b; }

/* Navbar */
.bj-navbar {
  height: var(--bj-nav-h);
}

.bj-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bj-text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color var(--bj-duration) var(--bj-ease), background var(--bj-duration) var(--bj-ease);
}

.bj-nav-link:hover,
.bj-nav-link.is-active {
  color: var(--bj-text-strong);
  background: var(--bj-surface);
}

/* Section header */
.bj-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Fade / reveal */
.bj-fade-in {
  animation: bj-fade 500ms var(--bj-ease) both;
}

@keyframes bj-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bj-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--bj-ease), transform 500ms var(--bj-ease);
}

.bj-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Modal */
.bj-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bj-modal-backdrop.is-open {
  display: flex;
  animation: bj-fade 200ms var(--bj-ease);
}

.bj-modal {
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: var(--bj-radius-xl);
  box-shadow: var(--bj-shadow-lg);
  border: 1px solid var(--bj-border);
}

/* Dropdown */
.bj-dropdown {
  position: relative;
}

.bj-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  background: #fff;
  border: 1px solid var(--bj-border);
  border-radius: var(--bj-radius);
  box-shadow: var(--bj-shadow);
  padding: 0.375rem;
  display: none;
  z-index: 40;
}

.bj-dropdown.is-open .bj-dropdown-menu {
  display: block;
  animation: bj-fade 160ms var(--bj-ease);
}

.bj-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--bj-text);
  transition: background 140ms var(--bj-ease);
}

.bj-dropdown-item:hover {
  background: var(--bj-surface);
  color: var(--bj-text-strong);
}

/* Pagination */
.bj-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.bj-page-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bj-radius-sm);
  border: 1px solid var(--bj-border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bj-text);
  transition: all 150ms var(--bj-ease);
}

.bj-page-btn:hover,
.bj-page-btn.is-active {
  border-color: var(--bj-primary);
  color: var(--bj-primary);
  background: var(--bj-primary-soft);
}

/* Search */
.bj-search {
  position: relative;
}

.bj-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--bj-border);
  border-radius: var(--bj-radius);
  background: #fff;
  font-size: 0.9375rem;
  transition: border-color var(--bj-duration) var(--bj-ease), box-shadow var(--bj-duration) var(--bj-ease);
}

.bj-search-input:focus {
  outline: none;
  border-color: var(--bj-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bj-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bj-text-muted);
  pointer-events: none;
}

/* Skip link */
.bj-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bj-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--bj-radius-sm);
}

.bj-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Utility */
.bj-divider {
  height: 1px;
  background: var(--bj-border);
  border: 0;
}

.bj-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--bj-text);
}

.bj-prose h2,
.bj-prose h3 {
  color: var(--bj-text-strong);
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.bj-prose p + p {
  margin-top: 1rem;
}

/* Mobile nav drawer */
.bj-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.bj-mobile-nav.is-open {
  display: block;
}

.bj-mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(20rem, 88vw);
  background: #fff;
  border-left: 1px solid var(--bj-border);
  box-shadow: var(--bj-shadow-lg);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 280ms var(--bj-ease);
}

.bj-mobile-nav.is-open .bj-mobile-nav-panel {
  transform: none;
}

.bj-mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}

/* ── Editorial publication system ───────────────────────── */
:root {
  --bj-editorial-max: 42rem;
  --bj-kicker: 0.6875rem;
}

.bj-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--bj-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: box-shadow 220ms var(--bj-ease);
}

.bj-site-header .bj-nav-link {
  color: #475569 !important;
  background: transparent !important;
}

.bj-site-header .bj-nav-link:hover,
.bj-site-header .bj-nav-link.is-active {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.bj-site-header .bj-brand-name {
  color: #0f172a !important;
}

.bj-site-header .bj-brand-sub {
  color: #94a3b8 !important;
}

.bj-site-header .bj-nav-icon {
  color: #64748b !important;
}

.bj-site-header .bj-nav-cta-outline {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background: transparent !important;
}

.bj-kicker {
  display: inline-block;
  font-size: var(--bj-kicker);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bj-primary);
}

.bj-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bj-text-strong);
}

.bj-section-head > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.bj-section-head--compact {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.bj-section-head--compact h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.bj-section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bj-text-strong);
  line-height: 1.15;
}

.bj-section-head a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bj-primary);
  white-space: nowrap;
}

.bj-section-head a:hover {
  text-decoration: underline;
}

.bj-section-head--light {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.bj-section-head--light h2 {
  color: #fff;
}

.bj-section-head--light a {
  color: #93c5fd;
}


.bj-hero-story {
  position: relative;
  min-height: min(78vh, 40rem);
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}

/* Compact homepage hero (~50vh) */
.bj-home-hero {
  position: relative;
  min-height: clamp(18rem, 50vh, 28rem);
  max-height: 55vh;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
}

.bj-home-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 20%, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

.bj-home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.bj-home-hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.bj-home-hero__excerpt {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 38rem;
}

.bj-home-search {
  margin-top: 1.15rem;
  max-width: 40rem;
}

.bj-home-search__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.bj-home-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.875rem;
  outline: none;
}

.bj-home-search__type {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.4rem;
  padding: 0.4rem 0.45rem;
  max-width: 7.5rem;
}

.bj-home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.bj-home-cats__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 150ms ease, border-color 150ms ease;
}

.bj-home-cats__pill:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(96, 165, 250, 0.45);
  color: #fff;
}

.bj-home-hero__cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.bj-editorial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .bj-editorial-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.bj-editorial-grid__side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

@media (min-width: 640px) {
  .bj-editorial-grid__side {
    grid-template-columns: 1fr 1fr;
  }

  .bj-editorial-grid__side > :nth-child(-n+2) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .bj-home-search__type {
    display: none;
  }

  .bj-home-hero {
    max-height: none;
    min-height: auto;
  }
}

.bj-hero-story__media {
  position: absolute;
  inset: 0;
}

.bj-hero-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 800ms var(--bj-ease);
}

.bj-hero-story:hover .bj-hero-story__media img {
  transform: scale(1.06);
}

.bj-hero-story__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.72) 42%,
    rgba(15, 23, 42, 0.35) 70%,
    rgba(15, 23, 42, 0.2) 100%
  );
}

.bj-hero-story__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(72vh, 36rem);
  padding: 7rem 0 4rem;
}

.bj-hero-story__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 22ch;
  text-wrap: balance;
  margin-inline: auto;
}

.bj-hero-story__excerpt {
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.bj-hero-story--brand {
  background:
    linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 120%);
}

.bj-hero-story--brand .bj-hero-story__media {
  display: none;
}

.bj-hero-story--brand .bj-hero-story__scrim {
  background: radial-gradient(ellipse at 50% 20%, rgba(59, 130, 246, 0.35), transparent 55%);
}

.bj-cover-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.45);
}

.bj-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--bj-ease);
}

.bj-cover-frame:hover img {
  transform: scale(1.04);
}

/* Compact cover story slider */
.bj-cover-slider {
  position: relative;
}

.bj-cover-slider__viewport {
  overflow: hidden;
  border: 1px solid var(--bj-border);
  background: #fff;
  width: 100%;
}

.bj-cover-slider__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.bj-cover-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bj-cover-slider__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
}

@media (max-width: 639px) {
  .bj-cover-slider__row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .bj-cover-slider__row > :first-child .bj-cover-slider__card {
    border-right: 1px solid var(--bj-border);
  }
}

.bj-cover-slider__card {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 0.75rem 0.85rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  color: inherit;
  text-decoration: none;
  min-height: 7.5rem;
  height: 100%;
}

@media (min-width: 640px) {
  .bj-cover-slider__card {
    grid-template-columns: 7.25rem 1fr;
    gap: 0.9rem 1rem;
    padding: 0.85rem 1rem;
    min-height: 8.25rem;
  }
}

@media (min-width: 1024px) {
  .bj-cover-slider__card {
    grid-template-columns: 8rem 1fr;
    padding: 1rem 1.15rem;
  }
}

.bj-cover-slider__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.45);
}

.bj-cover-slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--bj-ease);
}

.bj-cover-slider__card:hover .bj-cover-slider__media img {
  transform: scale(1.04);
}

.bj-cover-slider__media .bj-ribbon {
  top: 0.4rem;
  padding: 0.2rem 0.5rem 0.2rem 0.4rem;
  font-size: 0.55rem;
}

.bj-cover-slider__body {
  min-width: 0;
}

.bj-cover-slider__title {
  margin-top: 0.3rem;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--bj-text-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bj-cover-slider__card:hover .bj-cover-slider__title {
  color: var(--bj-primary);
}

.bj-cover-slider__excerpt {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bj-cover-slider__meta {
  margin-top: 0.45rem;
  font-size: 0.7rem;
}

.bj-cover-slider__cta {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bj-primary);
}

.bj-cover-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bj-cover-slider__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--bj-border);
  background: #fff;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.bj-cover-slider__nav:hover {
  border-color: var(--bj-primary);
  color: var(--bj-primary);
}

.bj-cover-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bj-cover-slider__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.bj-cover-slider__dot.is-active {
  width: 1rem;
  background: var(--bj-primary);
}

.bj-ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0;
  z-index: 2;
  padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bj-primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.bj-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bj-muted);
}

.bj-meta-row time::before,
.bj-meta-row .bj-meta-sep::before {
  content: '';
}

.bj-card-lift {
  transition: transform 220ms var(--bj-ease), box-shadow 220ms var(--bj-ease);
}

.bj-card-lift:hover {
  transform: translateY(-3px);
}

.bj-img-zoom {
  overflow: hidden;
}

.bj-img-zoom img {
  transition: transform 480ms var(--bj-ease);
}

.bj-img-zoom:hover img {
  transform: scale(1.05);
}

.bj-editorial-list {
  display: flex;
  flex-direction: column;
}

.bj-editorial-list > * + * {
  border-top: 1px solid var(--bj-border);
}

.bj-list-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  align-items: start;
}

@media (min-width: 640px) {
  .bj-list-item {
    grid-template-columns: 7rem 1fr;
  }
}

.bj-list-item__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.bj-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--bj-ease);
}

.bj-list-item:hover .bj-list-item__thumb img {
  transform: scale(1.06);
}

.bj-list-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--bj-text-strong);
}

.bj-list-item:hover .bj-list-item__title {
  color: var(--bj-primary);
}

.bj-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bj-border);
  border: 1px solid var(--bj-border);
}

@media (min-width: 768px) {
  .bj-stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bj-stat-strip__item {
  background: #fff;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.bj-stat-strip__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bj-text-strong);
  line-height: 1;
}

.bj-stat-strip__label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bj-muted);
}

.bj-partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.bj-partner-mark {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  transition: color 180ms var(--bj-ease);
}

.bj-partner-mark:hover {
  color: var(--bj-text);
}

.bj-page-hero {
  position: relative;
  padding: 1.75rem 0 1.25rem;
  background:
    linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 120%);
  color: #fff;
  overflow: hidden;
}

.bj-page-hero h1,
.bj-page-hero h1.text-3xl,
.bj-page-hero h1.text-4xl {
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bj-page-hero p.text-lg,
.bj-page-hero .text-lg {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.bj-page-hero .bj-kicker {
  margin-bottom: 0.5rem;
}

.bj-page-hero .mt-8 {
  margin-top: 1rem;
}

.bj-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.35), transparent 50%);
  pointer-events: none;
}

.bj-page-hero > * {
  position: relative;
  z-index: 1;
}

.bj-reading {
  max-width: var(--bj-editorial-max);
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--bj-text);
}

.bj-reading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.85rem;
  color: var(--bj-text-strong);
}

.bj-reading h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  color: var(--bj-text-strong);
}

.bj-reading p + p {
  margin-top: 1.15rem;
}

.bj-reading img {
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.bj-sticky-rail {
  position: sticky;
  top: 5.5rem;
}

.bj-widget {
  border: 1px solid var(--bj-border);
  background: #fff;
  padding: 1.25rem;
}

.bj-widget + .bj-widget {
  margin-top: 1.25rem;
}

.bj-widget__title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bj-text-strong);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--bj-text-strong);
}

.bj-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bj-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--bj-border);
  color: var(--bj-muted);
  transition: all 180ms var(--bj-ease);
}

.bj-breadcrumb {
  color: #64748b;
}

.bj-breadcrumb__link:hover {
  color: var(--bj-primary);
}

.bj-breadcrumb__current {
  color: #fff;
}

.bj-breadcrumb--light {
  color: rgba(255, 255, 255, 0.65);
}

.bj-breadcrumb--light .bj-breadcrumb__link:hover {
  color: #fff;
}

.bj-breadcrumb--light .bj-breadcrumb__current {
  color: #fff;
}

.bj-share a:hover {
  border-color: var(--bj-primary);
  color: var(--bj-primary);
  background: var(--bj-primary-soft);
}

.bj-share--light a,
.bj-share--light button {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.bj-share--light a:hover,
.bj-share--light button:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.bj-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--bj-border);
  color: var(--bj-muted);
  transition: all 180ms var(--bj-ease);
  cursor: pointer;
  background: transparent;
}

/* Magazine detail */
.bj-mag-hero {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}

.bj-mag-hero__media {
  position: absolute;
  inset: 0;
}

.bj-mag-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.12);
  opacity: 0.45;
}

.bj-mag-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.78) 45%,
    rgba(29, 78, 216, 0.45) 100%
  );
}

.bj-mag-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .bj-mag-hero__grid {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .bj-mag-hero__grid {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 3.5rem;
  }
}

/* Compact editorial cover — never scales up on wide screens */
.bj-mag-hero__cover {
  width: 100%;
  max-width: 11.5rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .bj-mag-hero__cover {
    max-width: 12.5rem;
  }
}

@media (min-width: 1024px) {
  .bj-mag-hero__cover {
    max-width: none;
    margin-inline: 0;
  }
}

.bj-mag-hero__frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 55px -18px rgba(2, 6, 23, 0.85);
}

.bj-mag-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

@media (min-width: 640px) {
  .bj-mag-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bj-mag-meta__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}

.bj-mag-meta__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.bj-mag-dek {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #334155;
  border-left: 3px solid var(--bj-primary);
  padding-left: 1.25rem;
  max-width: 42rem;
}

.bj-mag-content {
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .bj-mag-detail .bj-container > .grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
  }
}

.bj-fade-up {
  animation: bjFadeUp 520ms var(--bj-ease) both;
}

@keyframes bjFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bj-timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bj-border);
}

.bj-timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.bj-timeline__item::before {
  content: '';
  position: absolute;
  left: -1.7rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--bj-primary);
  box-shadow: 0 0 0 4px #fff;
}

.bj-agenda {
  border: 1px solid var(--bj-border);
}

.bj-agenda__row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--bj-border);
}

.bj-agenda__row:last-child {
  border-bottom: 0;
}

.bj-agenda__time {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bj-primary);
}

.bj-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.bj-countdown__cell {
  background: #0f172a;
  color: #fff;
  padding: 0.85rem 0.5rem;
}

.bj-countdown__num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bj-countdown__label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.bj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bj-border);
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.bj-filter-bar__pills {
  min-width: 0;
  max-width: 100%;
}

/* Category pill rail — single-line swipe on mobile */
.bj-pill-rail {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bj-pill-rail__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  padding: 0.15rem 0;
}

.bj-pill-rail__track::-webkit-scrollbar {
  display: none;
}

.bj-pill-rail__track .bj-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  max-width: none;
}

@media (max-width: 767px) {
  .bj-filter-bar {
    overflow: hidden;
  }

  .bj-filter-bar__pills,
  .bj-filter-bar > .bj-pill-rail {
    width: 100%;
    overflow: hidden;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
  }

  .bj-pill-rail__track {
    width: auto;
    max-width: none;
    padding-inline: 0.15rem 1.75rem;
  }

  .bj-pill-rail__track .bj-pill {
    padding: 0.38rem 0.8rem;
    font-size: 0.8125rem;
    font-weight: 550;
  }

  .bj-pill-rail::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    background: linear-gradient(to right, transparent, #fff);
    z-index: 1;
  }

  .bj-filter-bar--split {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .bj-filter-bar--split .bj-filter-bar__sort {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.15rem;
    border-top: 1px solid var(--bj-border);
    margin-inline: 0;
  }

  .bj-filter-bar--split .bj-select {
    flex: 1;
    max-width: 12rem;
  }
}

@media (min-width: 768px) {
  .bj-pill-rail__track {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    touch-action: auto;
  }
}

.bj-mosaic {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bj-mosaic--mags {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .bj-mosaic--mags > :first-child {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .bj-mosaic--news {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
  }
}
